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 |
|---|---|---|---|---|---|---|
Sets the termination_state of this ConnectionEndPoint. | def UNdt(YKHO, UNdt: str):
BbPm = ['LP_CAN_NEVER_TERMINATE', 'LT_NOT_TERMINATED', 'TERMINATED_SERVER_TO_CLIENT_FLOW', 'TERMINATED_CLIENT_TO_SERVER_FLOW', 'TERMINATED_BIDIRECTIONAL', 'LT_PERMENANTLY_TERMINATED', 'TERMINATION_STATE_UNKNOWN']
if UNdt not in BbPm:
raise ValueError('Invalid value for `termin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dfvh(YKHO, oc6O):\n YKHO.__termination = oc6O",
"def amYg(YKHO, amYg):\n YKHO._terminated = amYg",
"def amYg(YKHO, amYg):\n YKHO._terminated = amYg",
"def amYg(YKHO, amYg):\n YKHO._terminated = amYg",
"def wOXs(YKHO, wOXs):\n YKHO._terminating_on = wOXs",
"def vZ4h(YKHO, vZ4h: str):\n ... | [
"0.6452473",
"0.5807092",
"0.5807092",
"0.5807092",
"0.5624698",
"0.55612886",
"0.54337186",
"0.5364221",
"0.5222837",
"0.4969389",
"0.4969389",
"0.49535656",
"0.48852345",
"0.4882801",
"0.48434332",
"0.48371",
"0.48204172",
"0.47924957",
"0.47783226",
"0.47641855",
"0.476255... | 0.6799398 | 0 |
Gets the layer_protocol_name of this ConnectionEndPoint. | def EwEf(YKHO) -> str:
return YKHO._layer_protocol_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lzjZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'layer_name')",
"def lzjZ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'layer_name')",
"def iquo(YKHO) -> str:\n return YKHO.__parameters.protocol",
"def EwEf(YKHO, EwEf: str):\n BbPm = ['OTSiA', 'OCH', 'OTU', 'ODU', 'ETH', 'E... | [
"0.6991893",
"0.6737981",
"0.6655885",
"0.66094315",
"0.6580004",
"0.6526617",
"0.64756644",
"0.64686406",
"0.6449779",
"0.6433681",
"0.6416226",
"0.64074725",
"0.63770485",
"0.63522774",
"0.63161236",
"0.62349397",
"0.61921996",
"0.618826",
"0.6171238",
"0.6171238",
"0.61439... | 0.87370723 | 0 |
Sets the layer_protocol_name of this ConnectionEndPoint. | def EwEf(YKHO, EwEf: str):
BbPm = ['OTSiA', 'OCH', 'OTU', 'ODU', 'ETH', 'ETY', 'DSR']
if EwEf not in BbPm:
raise ValueError('Invalid value for `layer_protocol_name` ({0}), must be one of {1}'.format(EwEf, BbPm))
YKHO._layer_protocol_name = EwEf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EwEf(YKHO) -> str:\n return YKHO._layer_protocol_name",
"def gEmA(YKHO, gEmA):\n YKHO._layer = gEmA",
"def q0dR(YKHO, q0dR):\n YKHO._protocol_id = q0dR",
"def q0dR(YKHO, q0dR):\n YKHO._protocol_id = q0dR",
"def bYMk(YKHO, bYMk):\n YKHO._protocol_version = bYMk",
"def NovM(YKHO):\n Y... | [
"0.70598274",
"0.5782147",
"0.57290965",
"0.57289034",
"0.5708312",
"0.5688233",
"0.56085056",
"0.56085056",
"0.56085056",
"0.56085056",
"0.5562985",
"0.54273206",
"0.5392024",
"0.53690857",
"0.53411305",
"0.52844375",
"0.5257484",
"0.52147466",
"0.5196867",
"0.50834507",
"0.... | 0.79915446 | 0 |
Gets the connectivity_service_end_point of this ConnectionEndPoint. | def VR2O(YKHO) -> str:
return YKHO._connectivity_service_end_point | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VR2O(YKHO, VR2O: str):\n YKHO._connectivity_service_end_point = VR2O",
"def up9T(YKHO):\n return YKHO._endpoint",
"def hmph(YKHO):\n return YKHO._endpoint",
"def Y1wH(YKHO):\n try:\n if YKHO._connected_interface:\n return YKHO._connected_interface\n except rIt9:\n ... | [
"0.70261055",
"0.63055533",
"0.62776625",
"0.6240966",
"0.61877346",
"0.6100025",
"0.60089487",
"0.60035914",
"0.59879875",
"0.5943736",
"0.5943736",
"0.56929696",
"0.5629272",
"0.5618605",
"0.56028825",
"0.55782425",
"0.5570696",
"0.5567195",
"0.5560139",
"0.5560139",
"0.556... | 0.825556 | 0 |
Gets the parent_node_edge_point of this ConnectionEndPoint. | def vPxf(YKHO) -> x1iM[str]:
return YKHO._parent_node_edge_point | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KViK(YKHO):\n return YKHO.parent_edge",
"def oeGc(YKHO):\n return YKHO._edges_parent",
"def DtVU(YKHO):\n return YKHO._parent_id",
"def PAwq(YKHO):\n return bBBw.or_none(YKHO.parent)",
"def H7rZ(YKHO):\n return YKHO._parent_id",
"def H7rZ(YKHO):\n return YKHO._parent_id",
"def _AK... | [
"0.7909449",
"0.7849635",
"0.72225994",
"0.71083087",
"0.6985489",
"0.6985489",
"0.69378465",
"0.6932805",
"0.6929256",
"0.6897707",
"0.6897707",
"0.6897707",
"0.68958336",
"0.686817",
"0.68395025",
"0.68314517",
"0.6809207",
"0.6806697",
"0.6785802",
"0.6785802",
"0.67726624... | 0.7929555 | 0 |
Sets the client_node_edge_point of this ConnectionEndPoint. | def _8xk(YKHO, _8xk: List[str]):
YKHO._client_node_edge_point = _8xk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vPxf(YKHO, vPxf: List[str]):\n YKHO._parent_node_edge_point = vPxf",
"def bCkD(YKHO, D70y):\n YKHO.parent_edge = D70y",
"def _8xk(YKHO) -> x1iM[str]:\n return YKHO._client_node_edge_point",
"def yAvQ(YKHO, Q6kx):\n YKHO.__node = Q6kx",
"def jq5z(YKHO, Lnes):\n YKHO._node_id = Lnes",
"d... | [
"0.64545894",
"0.5764588",
"0.5657335",
"0.5621235",
"0.56201965",
"0.5616962",
"0.54884785",
"0.54075307",
"0.53285813",
"0.5285194",
"0.527346",
"0.52295053",
"0.50200117",
"0.49891022",
"0.4982168",
"0.49503762",
"0.49278897",
"0.49262947",
"0.49262947",
"0.49262947",
"0.4... | 0.84220517 | 0 |
Gets the connection_port_direction of this ConnectionEndPoint. | def C9Q0(YKHO) -> str:
return YKHO._connection_port_direction | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JuZs(YKHO, bIwZ):\n if bIwZ == 1:\n YKHO.__port_b_direction = YKHO.__bus.read_byte_data(YKHO.__ioaddress, YKHO.IODIRB)\n return YKHO.__port_b_direction\n else:\n YKHO.__port_a_direction = YKHO.__bus.read_byte_data(YKHO.__ioaddress, YKHO.IODIRA)\n return YKHO.__port_a_direction... | [
"0.7422299",
"0.7100193",
"0.6954227",
"0.6906184",
"0.6850313",
"0.6784414",
"0.6750329",
"0.6648726",
"0.6547236",
"0.65026873",
"0.64180374",
"0.6364987",
"0.63177645",
"0.6307946",
"0.6284133",
"0.6239046",
"0.62192076",
"0.6218952",
"0.6201423",
"0.6183298",
"0.61322004"... | 0.8515388 | 0 |
Sets the connection_port_direction of this ConnectionEndPoint. | def C9Q0(YKHO, C9Q0: str):
BbPm = ['BIDIRECTIONAL', 'INPUT', 'OUTPUT', 'UNIDENTIFIED_OR_UNKNOWN']
if C9Q0 not in BbPm:
raise ValueError('Invalid value for `connection_port_direction` ({0}), must be one of {1}'.format(C9Q0, BbPm))
YKHO._connection_port_direction = C9Q0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1um(YKHO, bIwZ, XSoh):\n if bIwZ == 1:\n YKHO.__bus.write_byte_data(YKHO.__ioaddress, YKHO.IODIRB, XSoh)\n YKHO.__port_b_direction = XSoh\n else:\n YKHO.__bus.write_byte_data(YKHO.__ioaddress, YKHO.IODIRA, XSoh)\n YKHO.__port_a_direction = XSoh\n return",
"def C9Q0(YKHO)... | [
"0.72491103",
"0.6883171",
"0.61560464",
"0.59813505",
"0.5803918",
"0.5802289",
"0.5751801",
"0.56792367",
"0.56702006",
"0.56702006",
"0.5623771",
"0.5623771",
"0.5603514",
"0.55927914",
"0.558962",
"0.5573132",
"0.55627877",
"0.5492916",
"0.5368065",
"0.53601414",
"0.53387... | 0.77216226 | 0 |
Gets the connection_port_role of this ConnectionEndPoint. | def ZMI3(YKHO) -> str:
return YKHO._connection_port_role | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZMI3(YKHO, ZMI3: str):\n BbPm = ['SYMMETRIC', 'ROOT', 'LEAF', 'TRUNK', 'UNKNOWN']\n if ZMI3 not in BbPm:\n raise ValueError('Invalid value for `connection_port_role` ({0}), must be one of {1}'.format(ZMI3, BbPm))\n YKHO._connection_port_role = ZMI3",
"def i44Y(YKHO):\n return YKHO._port",
... | [
"0.6675221",
"0.6536682",
"0.64771336",
"0.643482",
"0.63028085",
"0.62838185",
"0.62733996",
"0.62726057",
"0.6268773",
"0.61741924",
"0.61579907",
"0.61579907",
"0.61579907",
"0.6105567",
"0.6075074",
"0.5997939",
"0.59857833",
"0.59406775",
"0.59406775",
"0.59406775",
"0.5... | 0.8586469 | 0 |
Assert two lists almost equal. | def FQvv(YKHO, WbPA, S69B):
YKHO.assertListEqual(WbPA.keys(), S69B.keys())
for YRbF, r845 in zip(WbPA.keys(), S69B.keys()):
YKHO.assertListAlmostEqual(list(WbPA[YRbF]), list(S69B[r845])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSpG(YKHO, Kt9y, I_KI, tO9_=None):\n YKHO.assertSequenceEqual(Kt9y, I_KI, tO9_, seq_type=list)",
"def mokZ(jzdc, Fg_i):\n assert len(jzdc) == len(Fg_i)\n for d6pt, aEqx in enumerate(jzdc):\n n5sN = Fg_i[d6pt]\n if isinstance(n5sN, str) and isinstance(aEqx, str) and n5sN.isspace() and a... | [
"0.78839517",
"0.7867425",
"0.7808863",
"0.77782553",
"0.7636701",
"0.76267934",
"0.7588335",
"0.75672525",
"0.74624133",
"0.7422582",
"0.73967344",
"0.73932785",
"0.73869914",
"0.71999514",
"0.71991336",
"0.71881765",
"0.7184004",
"0.7180751",
"0.7178104",
"0.71668005",
"0.7... | 0.0 | -1 |
Assert two lists almost equal. | def ZqX6(YKHO, Kt9y, I_KI):
for YRbF, r845 in zip(Kt9y, I_KI):
vnj6, VgAz = YKHO.round_values(YRbF, r845)
YKHO.assertAlmostEqual(vnj6, VgAz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSpG(YKHO, Kt9y, I_KI, tO9_=None):\n YKHO.assertSequenceEqual(Kt9y, I_KI, tO9_, seq_type=list)",
"def mokZ(jzdc, Fg_i):\n assert len(jzdc) == len(Fg_i)\n for d6pt, aEqx in enumerate(jzdc):\n n5sN = Fg_i[d6pt]\n if isinstance(n5sN, str) and isinstance(aEqx, str) and n5sN.isspace() and a... | [
"0.7885452",
"0.7868807",
"0.7810357",
"0.77803063",
"0.7637246",
"0.7626845",
"0.7587751",
"0.75673944",
"0.74629027",
"0.7420716",
"0.7399396",
"0.73926336",
"0.7385423",
"0.72009677",
"0.7188644",
"0.7184486",
"0.71817434",
"0.71804357",
"0.71670157",
"0.70920306",
"0.7074... | 0.71981436 | 14 |
Return the system id. | def AoGC(YKHO):
return Oz1B.SystemManagement(YKHO.client).get_system_id() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AoGC(YKHO):\n return YKHO.machine_config_file_value('DEFAULT.SID').strip('\"')",
"def aUdr(YKHO) -> str:\n return qe4Y.get(YKHO, 'file_system_id')",
"def xwxm(YKHO):\n tZo8 = YKHO.user_systems_mgr.get_system_id()\n return tZo8",
"def XhGS(YKHO, csmH):\n h52Y = YKHO.getSystemByName(csmH)\n ... | [
"0.83615786",
"0.7682273",
"0.7644981",
"0.7439022",
"0.72430104",
"0.7030237",
"0.70283455",
"0.7012562",
"0.68498755",
"0.6808678",
"0.6769043",
"0.6738126",
"0.6701721",
"0.6693738",
"0.6680318",
"0.66737354",
"0.66718143",
"0.6656414",
"0.6632786",
"0.6624779",
"0.6610771... | 0.9230369 | 0 |
Return the system model name. | def _Xzw(YKHO):
return Oz1B.SystemManagement(YKHO.client).get_system_model_name() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TbE8(YKHO) -> str:\n return YKHO._get_string(wLjv.Prop_RenderModelName_String)",
"def TbE8(YKHO):\n ZGE9 = []\n ZGE9.append(YKHO.get_model_type_hash())\n ZGE9.append(str(int(ITS7.time())))\n return '_'.join(ZGE9) + '.model'",
"def ZGE9(YKHO) -> str:\n return YKHO.profile_device.model_name... | [
"0.8073972",
"0.7907462",
"0.7865882",
"0.7822895",
"0.77484596",
"0.77091956",
"0.7602069",
"0.7596205",
"0.7582411",
"0.75579596",
"0.74520415",
"0.73455113",
"0.7313186",
"0.72846437",
"0.7255404",
"0.7246455",
"0.72429657",
"0.72080094",
"0.7186412",
"0.71400344",
"0.7137... | 0.9344253 | 0 |
The network UUID of an external gateway for the router. | def bjKs(YKHO) -> str:
return qe4Y.get(YKHO, 'external_network_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8qp(YKHO):\n return gTEQ('PrlVirtNet_GetNetworkId', YKHO.handle)",
"def DJw5(YKHO, eVVj):\n KrnO = qxeD.uuid5(qxeD.NAMESPACE_DNS, GGmw.gethostname())\n return 'dhcp%s-%s' % (KrnO, eVVj.id)",
"def MRpl(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'private_network_uuid')",
"def OZUW(YKHO... | [
"0.69283426",
"0.68110025",
"0.67746633",
"0.668923",
"0.668923",
"0.668923",
"0.6625821",
"0.6577762",
"0.65629625",
"0.6535451",
"0.651444",
"0.651444",
"0.64417446",
"0.6367765",
"0.63646585",
"0.6359441",
"0.6353521",
"0.63178164",
"0.63145465",
"0.62964016",
"0.6283311",... | 0.7114002 | 0 |
Function to fetch the chain from a blockchain node, parse the data, and store it locally. | def GFFV():
uoWw = f'{AKPC}/chain'
geh0 = G4JS.get(uoWw)
if geh0.status_code == 200:
hGN5 = []
eNCK = qQXR.loads(geh0.content)
for XkN1 in eNCK['chain']:
for UShr in XkN1['transactions']:
UShr['index'] = XkN1['index']
UShr['hash'] = XkN1['p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Njmp():\n geh0 = {'chain': P2Mq.chain, 'length': len(P2Mq.chain)}\n return (pz3A(geh0), 200)",
"def Njmp(YKHO):\n Nqcn = iHv3.connect('app_process::memory:', check_same_thread=False)\n QZbM = Nqcn.cursor()\n QZbM.execute('SELECT * FROM blockchain LIMIT 1')\n rlnY = QZbM.fetchall()\n Nqcn... | [
"0.60987407",
"0.5816403",
"0.56391543",
"0.56332684",
"0.54955184",
"0.5480293",
"0.54046446",
"0.5368525",
"0.5321379",
"0.5166924",
"0.51448447",
"0.5138189",
"0.5032647",
"0.5009114",
"0.50053024",
"0.50045025",
"0.49803552",
"0.49783364",
"0.49729702",
"0.49098444",
"0.4... | 0.4319509 | 81 |
First name of the concerned natural person | def CJFr(YKHO, DYo2=qXQp):
if DYo2 != qXQp:
YKHO.__reg_first_name = DYo2
try:
YKHO.__contact.AdditionalInfo().FirstName(YKHO.__reg_first_name)
except:
pass
else:
if not YKHO.__reg_first_name:
YKHO.__reg_first_name = None
return YKHO.__r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz1W(YKHO) -> str:\n return YKHO.first_name",
"def c9ua(YKHO) -> str:\n return YKHO._first_name",
"def EXnB(YKHO):\n return YKHO.known_as if YKHO.known_as else YKHO.first_name",
"def fz1W(YKHO):\n return YKHO._first_name",
"def c9ua(YKHO):\n return YKHO._first_name",
"def c9ua(YKHO):\n... | [
"0.7882423",
"0.7805149",
"0.77341115",
"0.7712801",
"0.7661111",
"0.7661111",
"0.7661111",
"0.76325965",
"0.7625189",
"0.7625189",
"0.7606487",
"0.75807947",
"0.75807947",
"0.7543393",
"0.75275517",
"0.7521005",
"0.7509602",
"0.7509602",
"0.7509602",
"0.7509602",
"0.7509602"... | 0.711053 | 59 |
Last name of the concerned natural person | def fV9G(YKHO, Umhr=qXQp):
if Umhr != qXQp:
YKHO.__reg_last_name = Umhr
try:
YKHO.__contact.AdditionalInfo().LastName(YKHO.__reg_last_name)
except:
pass
else:
if not YKHO.__reg_last_name:
YKHO.__reg_last_name = None
return YKHO.__reg_la... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zp3f():\n return gqe6()",
"def CCKR(YKHO) -> str:\n return YKHO.last_name",
"def Tm8r(YKHO):\n return YKHO.lastname",
"def CCKR(Br4M, DM04):\n SSA0 = Br4M[DM04]['NAME'].split()\n return SSA0[1]",
"def jBHA(YKHO):\n return YKHO._lastname",
"def Gs8i(YKHO):\n return YKHO.lastName",... | [
"0.8193164",
"0.80822515",
"0.80346006",
"0.7993029",
"0.79857093",
"0.79683965",
"0.79683965",
"0.79683965",
"0.79683965",
"0.79683965",
"0.79646444",
"0.79491335",
"0.79422885",
"0.79334354",
"0.79334354",
"0.79180735",
"0.79180735",
"0.79180735",
"0.79180735",
"0.7912743",
... | 0.76919675 | 21 |
returns the ClientType based on where the CrmId is found on the linked objects | def RLD6(YKHO):
YKHO.__client_type = Q9fX.getClientType(YKHO.__contact)
return YKHO.__client_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IYd2(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'client_type')",
"def type(YKHO):\n return hYym.CorrelationId_type(YKHO)",
"def Ykf4(JZXy, pan_):\n WKvO = [Mkmy for Mkmy in JZXy.synset_relations if Mkmy.target == pan_.id]\n if len(WKvO) != 1:\n raise Exception('Synsets not linked or lin... | [
"0.5487231",
"0.5164598",
"0.51574206",
"0.51353335",
"0.5011951",
"0.49763677",
"0.49734464",
"0.49716905",
"0.49659985",
"0.49616665",
"0.49428558",
"0.49414885",
"0.4923532",
"0.49094817",
"0.48822343",
"0.48643944",
"0.48532623",
"0.48462522",
"0.48260435",
"0.48219457",
... | 0.5837794 | 0 |
the structure of board is a 2d list (21x21) the surroundings of board is always filled with Edge. you can put (x, y) where the range of x and y is 1 to 19. x represents vertical axis y represents horizontal axis this method should return list which contains two 2tuple (e.g [(6, 17), (12, 15)]). | def BZN_(YKHO, iBIi):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iBIi(YKHO):\n iBIi = []\n if YKHO.flop:\n iBIi.extend(YKHO.flop)\n if YKHO.turn:\n iBIi.append(YKHO.turn)\n if YKHO.river:\n iBIi.append(YKHO.river)\n return tuple(iBIi) if iBIi else None",
"def GUba(YNdt: int, kr18: int) -> list:\n iBIi = []\n ... | [
"0.7138627",
"0.6863729",
"0.6824034",
"0.6652067",
"0.6637112",
"0.65947896",
"0.6561225",
"0.6458626",
"0.64301455",
"0.6420492",
"0.6367527",
"0.6358973",
"0.6356009",
"0.63284135",
"0.6282831",
"0.62593085",
"0.6249902",
"0.6245804",
"0.62330335",
"0.6230744",
"0.62263054... | 0.0 | -1 |
Test that force_bytes knows how to convert to bytes an exception containing nonASCII characters in its args. | def UB32(YKHO):
tf1m = 'This is an exception, voilà'
BQDi = ValueError(tf1m)
Aofo = Fb0K(BQDi)
YKHO.assertEqual(Aofo, tf1m.encode('utf-8')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbrZ(YKHO):\n YKHO.assertRaises(UnicodeError, XRlH, b'\\xff')",
"def U6JP():\n try:\n raise ValueError('I💜🐍')\n except ValueError:\n QBQr()",
"def ocuF():\n try:\n raise ValueError('I💜🐍')\n except ValueError:\n QBQr()",
"def Xwhn():\n try:\n raise ... | [
"0.77594966",
"0.7754345",
"0.748256",
"0.74188924",
"0.7351609",
"0.7313225",
"0.7176732",
"0.71660197",
"0.71446127",
"0.71294063",
"0.7124105",
"0.71056265",
"0.7031364",
"0.70092523",
"0.6898177",
"0.6873759",
"0.68179154",
"0.6805716",
"0.6797002",
"0.67729616",
"0.67559... | 0.81311226 | 0 |
Translates the input file into a json text. | def NsmO(aq4b):
zM7p = {'content': aq4b}
Mz_6 = [{'type': qyF9(5), 'maxResults': 50}]
XzWK = []
XzWK.append({'features': Mz_6, 'image': zM7p})
nPrm = qQXR.dumps({'requests': XzWK})
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PSj2(YKHO, okC2):\n S5VI = qQXR.load(okC2)\n YKHO.language = j1ZM['lang']\n YKHO.translations = j1ZM['strings']",
"def CQ2n(Emd4, eZ_W):\n with open(eZ_W) as eHNT:\n return qQXR.load(eHNT)",
"def CQ2n(Emd4, eZ_W):\n with open(eZ_W) as eHNT:\n return qQXR.load(eHNT)",
"def CQ2... | [
"0.7513639",
"0.68007874",
"0.68007874",
"0.66803414",
"0.66803414",
"0.65688586",
"0.65220004",
"0.6511892",
"0.6482155",
"0.6418868",
"0.6394679",
"0.63921416",
"0.63604486",
"0.6353644",
"0.6273617",
"0.6259363",
"0.6204062",
"0.6163943",
"0.6163943",
"0.613355",
"0.610954... | 0.0 | -1 |
Determines whether a given user from the authentication server has a certain right or not. | def Hu5_(YKHO, NtEF: str, _tIi: str) -> bool:
L03z: str = QIYp({'username': NtEF, 'right': _tIi})
MOPg: dict = {'Content-type': 'application/x-www-form-urlencoded'}
UzPC: TayO = YKHO.__get_connection()
UzPC.request('GET', '/users/' + str(NtEF) + '/rights/' + str(_tIi), L03z, MOPg)
geh0: SmhL = UzPC.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bwQw(QePW):\n bo34.debug('right_user_check')\n xAU6 = {'api_file': {'GET': True, 'POST': False}}\n nMlH = QePW.request.resolver_match.url_name\n if not QePW.request.user.is_authenticated:\n return False\n NXOt = xAU6[nMlH][QePW.request.method]\n if NXOt:\n return True\n raise... | [
"0.6864294",
"0.6832401",
"0.6566839",
"0.65181917",
"0.650468",
"0.6478974",
"0.64769286",
"0.64769286",
"0.6463664",
"0.64017993",
"0.6368617",
"0.634587",
"0.6326526",
"0.63013756",
"0.6293979",
"0.62584096",
"0.62548155",
"0.62485784",
"0.62485784",
"0.6244719",
"0.624461... | 0.7994539 | 0 |
Returns total seconds of a timedelta in a way that's safe for Python < 2.7 | def z0YJ(g75m):
if hasattr(g75m, 'total_seconds'):
return g75m.total_seconds()
else:
return (nnVk.microseconds + (nnVk.seconds + nnVk.days * 24 * 3600) * 10 ** 6) / 10.0 ** 6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z0YJ(RA_F):\n try:\n return RA_F.total_seconds()\n except AttributeError:\n return RA_F.days * 24 * 3600 + RA_F.seconds + float(RA_F.microseconds) / 10 ** 6",
"def z0YJ(g75m):\n return (g75m.microseconds + (g75m.seconds + g75m.days * 24 * 3600) * 10 ** 6) / 10 ** 6",
"def Zhzg(g75m):... | [
"0.78919387",
"0.78847253",
"0.783023",
"0.78134507",
"0.76809853",
"0.7531021",
"0.7426013",
"0.73222214",
"0.7240662",
"0.72142905",
"0.705758",
"0.70381075",
"0.6971049",
"0.69674176",
"0.69023997",
"0.6851663",
"0.68447584",
"0.6843502",
"0.6830019",
"0.6829389",
"0.68122... | 0.74855494 | 6 |
Powers or unpowers the bells. | def bEDq(QTBn):
if not JDVs:
if QTBn:
for yQ5t in PKI_:
xi8C.output(yQ5t, xi8C.HIGH)
elif not QTBn:
for yQ5t in PKI_:
xi8C.output(yQ5t, xi8C.LOW)
else:
G9jH.debug('Bell state: ' + str(QTBn)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuaT(YKHO):\n YKHO.player.sprite.handlePowers(YKHO.get_remaining_time())",
"def Pth7(YKHO) -> None:\n pass",
"def Pth7(YKHO):\n raise NotImplementedError()",
"def nVKP(YKHO, YqsA, emRN):\n pass",
"def Tq0x(YKHO):\n raise NotImplementedError",
"def naF9(YKHO, m2vp, iHgw=-1):\n m2vp =... | [
"0.64014935",
"0.6041298",
"0.5899135",
"0.5873446",
"0.58522767",
"0.5775622",
"0.5713468",
"0.5671503",
"0.5662006",
"0.56604326",
"0.56582326",
"0.5653668",
"0.56442696",
"0.5575584",
"0.5575584",
"0.55735165",
"0.55625665",
"0.5539788",
"0.55348086",
"0.5527003",
"0.55260... | 0.6172118 | 1 |
Calculate Perspective and Inverse Perspective Transform Matrices | def Ompv(SQnc, dqpM):
ul7d = XC5k.getPerspectiveTransform(SQnc, dqpM)
Q4iM = XC5k.getPerspectiveTransform(dqpM, SQnc)
return (ul7d, Q4iM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OmYE():\n zZcM = oyIN.float32([(220, 720), (1110, 720), (570, 470), (722, 470)])\n zr3f = oyIN.float32([[320, 720], [920, 720], [320, 1], [920, 1]])\n E3D9 = XC5k.getPerspectiveTransform(zZcM, zr3f)\n xQLp = XC5k.getPerspectiveTransform(zr3f, zZcM)\n return (E3D9, xQLp)",
"def fb1Z(y5bX, C7Ls)... | [
"0.77655315",
"0.6772391",
"0.67308986",
"0.669059",
"0.6618192",
"0.65587133",
"0.64216304",
"0.6264239",
"0.6257005",
"0.62168366",
"0.6215676",
"0.6160854",
"0.6142326",
"0.6108185",
"0.6086129",
"0.6077356",
"0.60574424",
"0.6047167",
"0.6012863",
"0.599367",
"0.5987706",... | 0.7251248 | 1 |
Convert parameters from X,Y plane to Image Plane Points | def J_mJ(WKvO, LVAh):
y5bX = oyIN.array([oyIN.flipud(oyIN.transpose(oyIN.vstack([WKvO, LVAh])))])
return y5bX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvMg(LTIa, kEC0):\n return [BS9d(AU8u, kEC0) for AU8u in LTIa]",
"def eHQW(WKvO, LVAh, epBp, kNbz=[], kEC0=[], hLRM=None):\n if hLRM != None:\n WKvO = WKvO - hLRM\n jzdc, Fg_i, Z9rn, Csk6 = kEC0\n es2x = oyIN.sqrt(jzdc * jzdc + Fg_i * Fg_i + Z9rn * Z9rn)\n jzdc, Fg_i, Z9rn, Csk6 = (jzdc... | [
"0.65616685",
"0.64299065",
"0.6374554",
"0.63244987",
"0.6322487",
"0.6310065",
"0.6286317",
"0.6259193",
"0.62357223",
"0.6208368",
"0.6159411",
"0.60882986",
"0.6084627",
"0.60737157",
"0.60300255",
"0.60300255",
"0.6017754",
"0.5987526",
"0.5984642",
"0.59726226",
"0.5969... | 0.59584945 | 21 |
load_data takes path and loads in the dataset identified in this project into a pandas df. It then prints high level information about the dataframe for the users reference and returns this dataframe | def UlWi(pmON):
ZLJ_ = ['Item Year', 'Original Value', 'Standard Value', 'Original Currency', 'Standard Currency', 'Orignal Measure', 'Standard Measure', 'Location', 'Commodity']
p179 = [int, float, float, object, object, object, object, object]
V9mC = dict(zip(ZLJ_, p179))
BfPw = rLdf.read_csv(pmON, us... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi():\n jQ3Z = rLdf.read_csv('https://raw.githubusercontent.com/Andrea-Giuliani/Python-Project/master/data/final_dataset.csv', sep=',')\n return jQ3Z",
"def ar53(a9K4):\n nPrm = rLdf.read_csv(a9K4)\n nPrm.head()\n return nPrm",
"def UlWi():\n nPrm = gMbG.load_iris()\n jQ3Z = rLdf.Dat... | [
"0.67460644",
"0.64907336",
"0.64832234",
"0.6358895",
"0.63168895",
"0.62954944",
"0.62547684",
"0.6236128",
"0.6230134",
"0.6215533",
"0.6180172",
"0.61594254",
"0.6152189",
"0.6103808",
"0.6073373",
"0.6071692",
"0.6057447",
"0.6054861",
"0.6051355",
"0.6035068",
"0.602572... | 0.0 | -1 |
Test that updates properly overwrite and are untagged. | def IsIF(YKHO):
G6QD = SZ_z.DocumentFields({'foo@': 'bar'})
YKHO.assertEquals('bar', G6QD['foo'])
G6QD.update({'foo@': 'bbq'})
YKHO.assertEquals('bbq', G6QD['foo']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def Tbie(YKHO):\n pass",
"def xJf2(YKHO):\n pass",
"def aD2m(YKHO):\n pass",
"def fxzc(YKHO):\n pass",
"def JS6T(TBXe):\n vP0A = {'hash_dir': str(TBXe), 'update_on_change': {'monkey.txt': \"echo -ne ... | [
"0.723041",
"0.723041",
"0.723041",
"0.7100334",
"0.7058294",
"0.70286316",
"0.6987502",
"0.69788766",
"0.68703234",
"0.6843875",
"0.6841047",
"0.680045",
"0.67363405",
"0.66987944",
"0.66319287",
"0.6622596",
"0.6543176",
"0.6509451",
"0.6463772",
"0.6427286",
"0.6409471",
... | 0.59169775 | 86 |
Creates and returns a connection to a Microsoft SQL Server database. | def iJSg(_M9w, QRFO=True, E_qD='{ODBC Driver 17 for SQL Server}', jX_P='pyodbc'):
L_qe = x8vg.open_system_config(prod=QRFO, config_type='DB_CONFIG')[_M9w]
if jX_P == 'pyodbc':
UzPC = pjM5.connect(driver=E_qD, server=L_qe['server'], database=L_qe['database'], uid=L_qe['username'], pwd=L_qe['password'])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A5HY(YKHO):\n fzsX = Hy7s.environ['COMPUTERNAME']\n w2B8 = nfKA.connect('Driver=ODBC Driver 11 for SQL Server;SERVER=' + fzsX + '\\\\HAZUSPLUSSRVR; UID=SA;PWD=Gohazusplus_02')\n YKHO.conn = w2B8\n return w2B8",
"def HagN():\n try:\n w2B8 = MuIv.connect(G38f.db_name)\n except MuIv.Err... | [
"0.69744205",
"0.6950537",
"0.67107075",
"0.64784396",
"0.6422242",
"0.6395865",
"0.638747",
"0.638506",
"0.6319929",
"0.6319132",
"0.6210808",
"0.6189856",
"0.6167106",
"0.61432165",
"0.6121374",
"0.6109558",
"0.61014706",
"0.60880446",
"0.60853744",
"0.60759133",
"0.6063821... | 0.72884434 | 0 |
Return the camera's mac address as the serial number. | def OIdI(YKHO) -> str:
return YKHO.mac_address | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B1Iq(YKHO):\n Uu_n = qxeD.UUID(int=qxeD.getnode()).hex[-12:]\n return Uu_n",
"def Pp4r(YKHO) -> str:\n return YKHO.camera_info['wifi_mac']",
"def HXjy(YKHO) -> str:\n return YKHO._device.mac",
"def Pt6R(YKHO) -> str:\n return YKHO.camera_info['device_sn']",
"def ShR8(YKHO):\n return Y... | [
"0.74284977",
"0.7396035",
"0.7244921",
"0.7241079",
"0.7186397",
"0.71549183",
"0.6929182",
"0.6929182",
"0.68750423",
"0.686168",
"0.6835941",
"0.6835715",
"0.68190706",
"0.67833877",
"0.6717112",
"0.6596283",
"0.65792704",
"0.6549326",
"0.6522258",
"0.6508936",
"0.6494126"... | 0.77441496 | 0 |
Displays normalized confusion matrix. | def YMoE(C3ST, Z5wO, H96n, _tnD, leAC):
tGDF = ['Skipped', 'Not Skipped']
print('Confusion Matrix: %s' % leAC)
print(YsYU(H96n, _tnD))
o_qv = LwSz(C3ST, Z5wO, H96n, display_labels=tGDF, cmap=QrM1.cm.Blues, normalize='true')
o_qv.ax_.set_title('Confusion Matrix %s (Normalized)' % leAC)
print('Con... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO.accuracy, YKHO.error, YKHO.recall, YKHO.precision))\n QrM1.title('Confusion Matrix')\n QrM... | [
"0.769349",
"0.76869637",
"0.751314",
"0.74637914",
"0.7293348",
"0.7269612",
"0.72648704",
"0.72433674",
"0.72433656",
"0.7228648",
"0.7225077",
"0.72247624",
"0.7224549",
"0.7219793",
"0.7218805",
"0.72116745",
"0.71959615",
"0.71941775",
"0.71938807",
"0.71917826",
"0.7187... | 0.0 | -1 |
Creates a classification model. | def LQs7(vqPN, Pha6, qV0r, Uszf, Crrw, svPB):
hQYN = Kb4M.Module(LZiX.BERT_MODEL_HUB, trainable=True)
Vjqk = dict(input_ids=Pha6, input_mask=qV0r, segment_ids=Uszf)
jeOW = hQYN(inputs=Vjqk, signature='tokens', as_dict=True)
RLZ8 = jeOW['pooled_output']
wjbX = RLZ8.shape[-1].value
hfzA = ZylS.get... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQs7(YKHO):\n YKHO.classifier = HmMl(max_depth=1)",
"def LQs7(YKHO, Nq1b: float=1):\n YKHO.classifier = v9Rb(max_depth=5)",
"def LQs7():\n C3ST = ileL()\n C3ST.add(l6ZH(units=128, activation='relu', input_shape=(784,)))\n C3ST.add(l6ZH(units=128, activation='relu'))\n C3ST.add(l6ZH(units=... | [
"0.7451048",
"0.716728",
"0.70753753",
"0.69427526",
"0.69337225",
"0.69306064",
"0.6929345",
"0.68631464",
"0.68004555",
"0.6769279",
"0.6737084",
"0.66838384",
"0.66709864",
"0.660953",
"0.65912193",
"0.6564333",
"0.6534873",
"0.6526978",
"0.6525293",
"0.6521778",
"0.651739... | 0.0 | -1 |
Returns the element at the top of the stack | def tlxW(YKHO):
return super().peek() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tlxW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Stack is empty')\n return YKHO._head._element",
"def tlxW(YKHO):\n if YKHO.stack == []:\n return None\n return YKHO.stack[-1]",
"def tlxW(YKHO):\n if YKHO.is_empty():\n raise rWmY('Stack is empty')\n return YKHO._head._e... | [
"0.8426997",
"0.83845615",
"0.8306367",
"0.8226858",
"0.807717",
"0.80328375",
"0.80252784",
"0.8019078",
"0.797039",
"0.79673326",
"0.7955196",
"0.79414254",
"0.7932987",
"0.7927457",
"0.7792212",
"0.77724975",
"0.7744826",
"0.7740041",
"0.76800865",
"0.76103806",
"0.7591366... | 0.71395046 | 61 |
Return a saved state value, None if item is undefined. | def OP2O(YKHO, ZfUD):
return YKHO._state['data'].get(ZfUD, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def JgjC(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def JgjC(YKHO, ... | [
"0.63567495",
"0.63567495",
"0.63567495",
"0.6147721",
"0.6147721",
"0.6143838",
"0.61314815",
"0.60985714",
"0.60985714",
"0.60985714",
"0.5938411",
"0.5815865",
"0.5792894",
"0.57494944",
"0.57324725",
"0.57256",
"0.5721121",
"0.5721121",
"0.5684823",
"0.5684823",
"0.568482... | 0.6427416 | 0 |
Return a saved state value, None if item is undefined. | def JgjC(YKHO, ZfUD):
return YKHO._state['data'].get(ZfUD, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ZfUD):\n return YKHO._state['data'].get(ZfUD, None)",
"def OP2O(YKHO, ... | [
"0.64281183",
"0.64281183",
"0.6357475",
"0.6357475",
"0.6357475",
"0.61450446",
"0.6130774",
"0.6099511",
"0.6099511",
"0.6099511",
"0.59375536",
"0.58148605",
"0.5792937",
"0.57490504",
"0.5732397",
"0.5725432",
"0.572095",
"0.572095",
"0.56847996",
"0.56847996",
"0.5684799... | 0.6148605 | 5 |
Create a dataset from a list of Examples and Fields. | def FIMM(YKHO, _73Q, ryzr=None, **B2fa):
if ryzr is not None:
kBCW = isinstance(_73Q, list)
_73Q = filter(ryzr, _73Q)
if kBCW:
_73Q = list(_73Q)
YKHO.examples = _73Q | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cNYr(K2u2):\n __n6 = x3i3()\n __n6._addData(K2u2[0])\n __n6._addData(K2u2[1])\n __n6._addData(K2u2[3])\n __n6._addData(K2u2[5])\n __n6._addData(K2u2[6])\n __n6._addData(K2u2[9])\n __n6._addData(K2u2[8])\n __n6._addData(K2u2[4])\n return __n6",
"def Vp8A(YKHO):\n lNWu = {'trai... | [
"0.66175133",
"0.65675855",
"0.6489426",
"0.64110506",
"0.6397567",
"0.63752276",
"0.6319362",
"0.6216499",
"0.6209005",
"0.6183818",
"0.61597437",
"0.6138031",
"0.61348975",
"0.6127125",
"0.61253273",
"0.61253273",
"0.61253273",
"0.6124141",
"0.6122481",
"0.60865337",
"0.606... | 0.0 | -1 |
Create Dataset objects for multiple splits of a dataset. | def RYsB(Emd4, tk5Y='.data', EvQg=None, ClYY=None, QOe9=None, **B2fa):
pmON = Emd4.download(tk5Y)
ppBc = None if EvQg is None else Emd4(Hy7s.path.join(pmON, EvQg), **B2fa)
TnHC = None if ClYY is None else Emd4(Hy7s.path.join(pmON, ClYY), **B2fa)
Zwka = None if QOe9 is None else Emd4(Hy7s.path.join(pmON,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QUwd(YKHO, lpha, tBO7=None):\n return YKHO._as_dataset(split=lpha, shuffle_files=tBO7)",
"def F_Ph(YKHO):\n YKHO.train, YKHO.valid, bGrB, bGrB = bHtP(YKHO.data, YKHO.data, test_size=0.2)\n YKHO.valid, YKHO.test, bGrB, bGrB = bHtP(YKHO.valid, YKHO.valid, test_size=0.5)",
"def zWTv(YKHO, lpha, Ep8u)... | [
"0.714736",
"0.71266127",
"0.7124513",
"0.6978415",
"0.69318837",
"0.6857103",
"0.6852228",
"0.6806051",
"0.6730736",
"0.67166394",
"0.66391075",
"0.66319656",
"0.6599639",
"0.65770274",
"0.6532192",
"0.6507811",
"0.65007865",
"0.64922684",
"0.6482739",
"0.64560986",
"0.63962... | 0.0 | -1 |
Computes the rowwise cosine similarity matrix of a rating matrix. | def SJM4(MrN5):
LhAI = gKk5(MrN5)
oyIN.fill_diagonal(LhAI, 0)
return LhAI | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xFIi(SppC):\n if type(SppC) is not Tnfp:\n SppC = Tnfp(SppC)\n exwG = SppC.shape[0]\n usx6, WfCS, nPrm = ([], [], [])\n lEuQ = [sorted([(ZfUD, or8S) for or8S, ZfUD in enumerate(SppC.rows[YRbF])]) for YRbF in range(exwG)]\n for YRbF in range(exwG):\n PsTS, Emh4 = (SppC.data[YRbF], l... | [
"0.77840763",
"0.7654144",
"0.7522678",
"0.7134965",
"0.71157086",
"0.6820214",
"0.67638975",
"0.66730607",
"0.6665848",
"0.6656157",
"0.6655661",
"0.6623994",
"0.66095823",
"0.6570017",
"0.6487632",
"0.64274234",
"0.6385559",
"0.63674223",
"0.63396907",
"0.6329559",
"0.63160... | 0.72332346 | 3 |
Indicates whether the task state's result is cached. | def ImCi(YKHO):
if YKHO.should_persist:
return YKHO._result_value_hash is not None
else:
return YKHO._result is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ImCi(YKHO):\n return False",
"def ImCi(mWFP, cM24='pkl'):\n return Hy7s.path.exists(_OIP(mWFP, cM24))",
"def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True",
"def VfG7(YKHO):\n try:\n wyyA = YKHO.get_cache()\n return True\n... | [
"0.74749434",
"0.68324715",
"0.68149173",
"0.6738329",
"0.6655201",
"0.66187906",
"0.65679663",
"0.6416865",
"0.6415875",
"0.6382452",
"0.6292968",
"0.62685287",
"0.62240446",
"0.6211946",
"0.6159335",
"0.61113095",
"0.60873556",
"0.60792947",
"0.6072414",
"0.6051632",
"0.604... | 0.79039913 | 0 |
Loads the hash of the persisted value for this task, if it exists. If the persisted value is available in the cache, this object's `is_cached` property will become True. Otherwise, nothing will happen. | def DO_i(YKHO):
assert YKHO.is_initialized
assert not YKHO.is_cached
if not YKHO.should_persist:
return
if not YKHO._cache_accessor.can_load():
return
YKHO._load_value_hash() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YjaO(YKHO):\n dIeA = YKHO._cache_accessor.load_artifact()\n if dIeA is None or dIeA.content_hash is None:\n raise AssertionError(OHBX(f\"\\n Failed to load cached value (hash) for descriptor\\n {YKHO._cache_accessor.provenance.descriptor!r}.\\n This sug... | [
"0.72252256",
"0.63859934",
"0.5972734",
"0.5886148",
"0.5879905",
"0.5804419",
"0.574814",
"0.5677867",
"0.5613093",
"0.5568389",
"0.5543914",
"0.54435587",
"0.54258996",
"0.5423656",
"0.5395598",
"0.53953743",
"0.5376388",
"0.53689486",
"0.53612226",
"0.53522384",
"0.535086... | 0.71849906 | 1 |
Returns copies of the provided TaskStates with any unnecessary state and ancestors "stripped" off; these copies can be safely transmitted to another process for computation. | def WIMr(YKHO, wspz):
PRSr = {}
def XDyv(YBh4):
"""Returns a stripped copy of a TaskState."""
XgLW = YBh4.task_key
if XgLW in PRSr:
return PRSr[XgLW]
assert YBh4 in YKHO.all_states
assert YBh4 not in YKHO.non_serializable_states
QHHS = jth9.copy(YBh4)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XDyv(YBh4):\n XgLW = YBh4.task_key\n if XgLW in PRSr:\n return PRSr[XgLW]\n assert YBh4 in YKHO.all_states\n assert YBh4 not in YKHO.non_serializable_states\n QHHS = jth9.copy(YBh4)\n PRSr[XgLW] = QHHS\n QHHS._result = None\n if YBh4 in YKHO.external_dependency_states:\n Q... | [
"0.7007315",
"0.6059291",
"0.57722616",
"0.5648813",
"0.54974157",
"0.54269755",
"0.53582656",
"0.53353125",
"0.52991706",
"0.52278084",
"0.5219097",
"0.5181115",
"0.5153454",
"0.5147667",
"0.5111569",
"0.51057416",
"0.5078182",
"0.5068822",
"0.5066051",
"0.49776638",
"0.4975... | 0.84246093 | 0 |
Create a time stamp | def ct8j(YKHO, AIu6):
AIu6.dbtime = ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.localtime(AIu6.created))
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ghLW() -> str:\n return qcWV.datetime.now().strftime('%Y%m%d')",
"def Gz62():\n return str(qcWV.now().strftime('%H%M%S'))",
"def IJ8b():\n return F803('%Y%m%dT%H%M%S')",
"def YLTo():\n return qcWV.now().strftime('%Y-%m-%d-%H-%M-%S')",
"def YnO1(YKHO):\n bo34.debug('Get a timestamp')\n ... | [
"0.8233453",
"0.80581737",
"0.79409295",
"0.7885426",
"0.77232575",
"0.76477885",
"0.76388806",
"0.7607675",
"0.7506243",
"0.7500952",
"0.7491634",
"0.7403374",
"0.73812056",
"0.73719895",
"0.7358379",
"0.72903913",
"0.72595435",
"0.72434366",
"0.72373694",
"0.7206951",
"0.71... | 0.0 | -1 |
Check if two boards are equal | def goQM(iBIi, k7RY):
return (k7RY == iBIi).all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif) -> None:\n for G1Hx, Ty9i in enumerate(YKHO.board):\n if Ty9i != Elif.board[G1Hx]:\n return False\n return True",
"def xa14(YKHO, Elif):\n for rdlD in range(YKHO.n):\n if YKHO.board[rdlD] != Elif.board[rdlD]:\n return False\n return True",
"d... | [
"0.7675659",
"0.75886476",
"0.75203764",
"0.7315694",
"0.70487416",
"0.6995405",
"0.697579",
"0.69640183",
"0.6950214",
"0.6934378",
"0.69289273",
"0.6896391",
"0.68638206",
"0.6810947",
"0.68063855",
"0.67953414",
"0.67835134",
"0.67559415",
"0.6735635",
"0.6714601",
"0.6604... | 0.77490914 | 2 |
Returns the learning rate scaled by schedule(s) that will be used for the next training step | def RCJ4(YKHO, fUW0: types.OptimizerStates) -> HRJ_.Optional[oLG2.ndarray]:
if YKHO.lr_schedule is not None:
YPaw = fUW0[-1].count
return YKHO.lr_schedule(YPaw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FvGu(aOou, pSFx, ybL1, Ep8u):\n del pSFx, ybL1\n OmaG = BJsk.BASE_LEARNING_RATE * Ep8u / 128\n b0Ix = OmaG\n for hObQ, aMlA in cAYu:\n if aOou >= aMlA:\n b0Ix = OmaG * hObQ\n else:\n break\n return b0Ix",
"def fggk(YKHO):\n for IesV in YKHO.schedulers:\n ... | [
"0.79894197",
"0.7785588",
"0.77826655",
"0.76667386",
"0.76645464",
"0.7660921",
"0.74982613",
"0.74174136",
"0.74023986",
"0.7375447",
"0.7314137",
"0.7252626",
"0.7250394",
"0.72385687",
"0.7227012",
"0.7188356",
"0.717606",
"0.7163271",
"0.7159572",
"0.7149901",
"0.714215... | 0.0 | -1 |
simple base conversion using the RFC4648 base32 alphabet | def ClEl(lISx):
yPrR = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'
WKvO = 0
for Ko6S in str(lISx.upper().strip(' ')):
WKvO = WKvO * len(yPrR) + yPrR.index(Ko6S)
return hex(WKvO).lstrip('0x').rstrip('L').upper() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMSA(FGW3, P8oC=36):\n if P8oC == 10:\n return str(FGW3)\n if not isinstance(FGW3, int):\n raise TypeError('number must be an integer')\n gZgb = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'\n if P8oC > 62 or P8oC <= 1:\n print('base should be between 2 and 6... | [
"0.694653",
"0.6893029",
"0.68493384",
"0.6781506",
"0.6748476",
"0.6748476",
"0.6748476",
"0.6748476",
"0.673473",
"0.67151284",
"0.66982746",
"0.66775656",
"0.6672081",
"0.66119474",
"0.66039515",
"0.6559059",
"0.6518085",
"0.6504039",
"0.64883107",
"0.64749783",
"0.6462858... | 0.68664634 | 2 |
Converts a twodimensional grid with onedimensional coordinate variables to an array where each grid value is associated with its coordinates. | def JP5I(WKvO, LVAh, epBp, tO9_=None, e5kH=False):
if epBp.ndim != 2:
raise oTVD('ERROR grid2triple: `z` must be two dimensions !\n')
if isinstance(WKvO, zuVY.DataArray):
WKvO = WKvO.values
if isinstance(LVAh, zuVY.DataArray):
LVAh = LVAh.values
if isinstance(epBp, zuVY.DataArray... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qfzt(YKHO):\n lnPd = []\n V1sm = []\n for QlGa in YKHO.waypoints:\n lnPd.append(QlGa.location.x)\n V1sm.append(QlGa.location.y)\n return oyIN.array([lnPd, V1sm])",
"def VPlo(YKHO, LD1b, k_Cy):\n ErJO, Nkqa = LD1b.shape\n y8vs = oyIN.ndarray((ErJO, Nkqa, 2))\n for QnmL in ra... | [
"0.7030514",
"0.6824461",
"0.66414434",
"0.659834",
"0.6587743",
"0.65657645",
"0.6543118",
"0.6542288",
"0.6476765",
"0.6476106",
"0.6450794",
"0.62825483",
"0.62591165",
"0.62475705",
"0.62113106",
"0.6190677",
"0.61894315",
"0.6177104",
"0.61621207",
"0.6114646",
"0.610391... | 0.0 | -1 |
Create and configure connexion app. | def LUif(sEAN):
TWdE = DTsL.App(__name__, specification_dir='openapi/', options={'swagger_url': '/swagger'})
P4t4 = TWdE.app
nzvw = {'prod': 'config.Prod', 'testing': 'config.Testing', 'dev': 'config.Dev'}
suDX = nzvw.get(sEAN)
P4t4.config.from_object(suDX)
print(P4t4.config)
P4t4.redis = qo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)",
"def LUif(GPtr: dict) -> L2w0:\n for H5ew, BWXx ... | [
"0.74086744",
"0.71356195",
"0.71240467",
"0.7108809",
"0.7074317",
"0.7031925",
"0.70253813",
"0.7023434",
"0.7022537",
"0.7013904",
"0.70036703",
"0.69989914",
"0.69644254",
"0.6951114",
"0.69442946",
"0.693363",
"0.6925931",
"0.6923495",
"0.6898156",
"0.68892235",
"0.68874... | 0.7772478 | 0 |
Predicts the next action the bot should take after seeing x. This should be overwritten by more advanced policies to use ML to predict the action. Returns the index of the next action | def edQv(YKHO, Edrf, zrIJ):
WKvO = YKHO.featurize(Edrf, zrIJ)
bo34.debug('Current tracker state [\n\t{}]'.format('\n\t'.join(['{}'.format(tTpl) for tTpl in YKHO.featurizer.decode_features(WKvO, zrIJ.input_features)])))
bK40 = YKHO.recall(WKvO, zrIJ)
Aofo = [0.0] * zrIJ.num_actions
if bK40 is not Non... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YEmv(YKHO, WKvO):\n YKHO.eval()\n YKHO.forward(WKvO)\n PjQx = oyIN.argmax(YKHO.inputs[-1], axis=1)\n return PjQx",
"def hiD2(YKHO, WKvO):\n bVvo = YKHO.session.graph.get_operation_by_name('input_x').outputs[0]\n sv_g = YKHO.session.graph.get_operation_by_name('output/predictions').outputs[0... | [
"0.6715775",
"0.66838646",
"0.6628312",
"0.66075236",
"0.657193",
"0.6548782",
"0.6548782",
"0.6548782",
"0.6548782",
"0.6533695",
"0.64771754",
"0.64747757",
"0.6376165",
"0.635955",
"0.63558674",
"0.6354287",
"0.635243",
"0.63053787",
"0.62928694",
"0.6230337",
"0.6215346",... | 0.62475294 | 19 |
Set up an interceptor so all grpc calls will have the apikey added on the header, in order to authenticate. | def QVs1(YKHO, rSTc):
YKHO.header_interceptor = K0bS.header_adder_interceptor('lc-api-key', rSTc)
try:
YKHO.intercept_channel = IYqO.intercept_channel(YKHO.channel, YKHO.header_interceptor)
except ValueError as e:
raise Exception('Attempted to connect on termninated client, channel has been ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NLCy(YKHO, rJDA):\n YKHO.headers['x-rapidapi-key'] = rJDA",
"def FIMM(YKHO, rJDA):\n YKHO._api_key = rJDA\n YKHO.headers = {'hibp-api-key': rJDA, 'user-agent': 'haveibeenpywned.py'}\n 'Dict of additional headers required for api calls to the haveibeenpwned.com\\n api'",
"def FIMM(YKHO):\... | [
"0.6686443",
"0.63640404",
"0.59382933",
"0.5867886",
"0.5780181",
"0.5739476",
"0.57209116",
"0.57013947",
"0.56940454",
"0.569231",
"0.56693566",
"0.56687033",
"0.5631621",
"0.56137",
"0.5556618",
"0.55513924",
"0.5533995",
"0.5528315",
"0.55266106",
"0.5516029",
"0.5476392... | 0.79679054 | 0 |
Convert the datapoints into a pandas DataFrame. | def onUf(YKHO, Txl5: str='external_id', lCrd: bool=True, dCak: bool=False, mcig: bool=False) -> CwDs.DataFrame:
rLdf = YWvJ(ImMB, HOS5('pandas'))
if Txl5 in ['external_id', 'externalId']:
Ilxn = YKHO.external_id if YKHO.external_id is not None else YKHO.id
elif Txl5 == 'id':
Ilxn = YKHO.id
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N4Lu(YKHO, j3aw):\n hkxX = YKHO[j3aw][:]\n ZLJ_ = YKHO.get_columns(j3aw)\n M_Ra = YKHO.get_timestamps(j3aw)[...]\n if len(ZLJ_) < hkxX.shape[1]:\n ZLJ_.resize(hkxX.shape[1])\n ZHfW = RlXw(hkxX) != 0\n try:\n hkxX[ZHfW] = XTiz.nan\n except ValueError:\n pass\n bOBl =... | [
"0.76260304",
"0.7595923",
"0.74861777",
"0.7397173",
"0.7382126",
"0.71352553",
"0.7028942",
"0.6888257",
"0.6883333",
"0.68173844",
"0.68173844",
"0.6742965",
"0.6644486",
"0.66278166",
"0.66209453",
"0.6607725",
"0.66036254",
"0.66008824",
"0.6582569",
"0.65765226",
"0.656... | 0.0 | -1 |
Convert the DatapointsArrayList into a pandas DataFrame. | def onUf(YKHO, Txl5: Literal['id', 'external_id']='external_id', lCrd: bool=True, dCak: bool=False) -> CwDs.DataFrame:
rLdf = YWvJ(ImMB, HOS5('pandas'))
K2kF = [ga2c.to_pandas(Txl5, lCrd, dCak) for ga2c in YKHO]
if not K2kF:
return rLdf.DataFrame(index=rLdf.to_datetime([]))
return SFkA(K2kF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hbal(YKHO) -> 'pd.DataFrame':\n import pandas as rLdf\n jQ3Z = rLdf.DataFrame([rdlD.as_series() for rdlD in YKHO.rows])\n return jQ3Z",
"def o87x(Wc9F):\n from pytraj.utils import _import_pandas\n ObZL, rLdf = _import_pandas()\n if not ObZL:\n xFMF('pandas')\n if isinstance(Wc9F, ... | [
"0.70076054",
"0.68862015",
"0.680678",
"0.67758507",
"0.6767373",
"0.67039317",
"0.66800386",
"0.6670868",
"0.66436577",
"0.66392887",
"0.6600126",
"0.65596896",
"0.65596896",
"0.65123266",
"0.6492922",
"0.64803016",
"0.6430784",
"0.63652426",
"0.6329354",
"0.6299667",
"0.62... | 0.56777686 | 84 |
Get filename for simulated community produced by mete.sim_spatial_whole() | def tE2X(o4sw, ywwl, HcHF, _qal, RieQ=False, nJJd=None, XYPc=None):
if not XYPc:
XYPc = 'S%s_N%s' % (o4sw, ywwl)
if nJJd:
UdVP = '_empirSAD'
else:
UdVP = ''
if RieQ:
ke6T = 'transect'
else:
ke6T = 'grid'
return './comms/simulated_comms_%s%s_C%s_B%s_%s.txt'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ux0P(YKHO):\n return Hy7s.path.basename(YKHO._spatial_filename)",
"def Xgr0(Emd4, jNha, uwaB):\n return Hy7s.path.join(jNha, '%s.hdf5' % uwaB['mos_type'])",
"def Xgr0(Emd4, jNha, uwaB):\n return Hy7s.path.join(jNha, '%s.hdf5' % uwaB['mos_type'])",
"def ZfiH(YKHO):\n clHY = YKHO.config.get('gr... | [
"0.65646577",
"0.6268533",
"0.6268533",
"0.6141475",
"0.6039565",
"0.59756315",
"0.5955562",
"0.5923402",
"0.5783788",
"0.572006",
"0.5696253",
"0.5686741",
"0.56813705",
"0.5656483",
"0.56059337",
"0.557937",
"0.5579157",
"0.5563723",
"0.552336",
"0.5519685",
"0.55115503",
... | 0.5922241 | 8 |
Function implements sieve of Eratosthenes (for all numbers uptil N). Returns array erat_sieve If erat_sieve[i] is True, then 2i + 3 is a prime. | def TbLa(ywwl):
_2hz = [True] * int(ywwl / 2)
KYJZ = []
KYJZ.append(2)
for YRbF in range(int((epAf.sqrt(ywwl) - 3) / 2) + 1):
if _2hz[YRbF] == True:
r845 = YRbF + (2 * YRbF + 3)
while r845 < int(ywwl / 2):
_2hz[r845] = False
r845 += 2 * YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odKY(exwG):\n Aofo = []\n KwQv = qw7D.array('i', (True for YRbF in range(0, exwG + 1)))\n for G1Hx in range(2, exwG + 1):\n if KwQv[G1Hx]:\n Aofo.append(G1Hx)\n YRbF = G1Hx * G1Hx\n while YRbF <= exwG:\n KwQv[YRbF] = False\n YRbF +=... | [
"0.7732913",
"0.7636703",
"0.7548963",
"0.7507189",
"0.7439305",
"0.7436849",
"0.7405845",
"0.73973405",
"0.73973405",
"0.7349964",
"0.73457396",
"0.7325795",
"0.7229576",
"0.72279704",
"0.7197789",
"0.7099972",
"0.7085385",
"0.70812255",
"0.7055499",
"0.70475835",
"0.7027430... | 0.77103347 | 1 |
Returns a string reprentation of this object. | def wHJl(YKHO):
cmPJ = {'Question Text': YKHO.text, 'Answers': ' '.join(YKHO.answers), 'Referers': ' '.join(YKHO.referers), 'Named entities': ' '.join(YKHO.named_entities)}
return repr(cmPJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl(YKHO):\n return str(YKHO)",
"def wHJl... | [
"0.82876116",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.8179296",
"0.816321",
"0.8133825",
"0.8133825",
"0.8133825",
"0.8133825",
"0.8127164",
"0.8127164",
"... | 0.0 | -1 |
The set of words that are ignored (e.g. stopwords) | def fIKg(YKHO):
if not YKHO._vocab:
YKHO.vocab()
return YKHO._censored | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUDJ(YKHO):\n V22M = set([])\n for eOtH in YKHO.importantTokenList():\n if eOtH.isStopWord() == False:\n V22M.add(eOtH.text.lower())\n return V22M",
"def uZiT(YKHO):\n V22M = YKHO.con.getIgnoredWords()\n zBH8 = YKHO.con.getGuildsInfo()\n for ZfUD in zBH8:\n YKHO.ign... | [
"0.7929255",
"0.7721634",
"0.76417553",
"0.7594571",
"0.7561156",
"0.7558134",
"0.75047934",
"0.74923915",
"0.7464799",
"0.74498874",
"0.74433726",
"0.7439269",
"0.7437416",
"0.74312687",
"0.74305564",
"0.7424451",
"0.7424451",
"0.7424451",
"0.7424451",
"0.73937154",
"0.73705... | 0.0 | -1 |
Return the vocab dictionary | def CtWL(YKHO):
yLbG = -1
if not YKHO._vocab:
Z9rn = YKHO._conn.cursor()
Z9rn.execute('select feature, censored, word_id from vocab')
Csk6 = {}
for Rs4w, EqBn, P2GO in Z9rn:
Csk6[P2GO] = Rs4w
Csk6[Rs4w] = P2GO
if EqBn == 1:
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CtWL():\n rmc3 = nI3D + ['mouse', 'dog', 'tree']\n return yH2p(rmc3)",
"def xYxb(YKHO):\n YKHO.parse_transcript()\n YKHO.purge_words()\n YKHO.analyze_words()\n YKHO.sort_word_analysis()",
"def wV7L():\n CtWL = set()\n CtWL.update(list(vIwR.ascii_letters))\n CtWL.update(list(vIwR.... | [
"0.7800878",
"0.75961435",
"0.7437031",
"0.7317012",
"0.73040634",
"0.72950774",
"0.7268286",
"0.7198509",
"0.7144368",
"0.71350545",
"0.7107896",
"0.705793",
"0.70412797",
"0.7035426",
"0.70024836",
"0.69716805",
"0.69458526",
"0.69275844",
"0.68653035",
"0.68614393",
"0.684... | 0.74990356 | 2 |
Integer. Group ID of current path group. Could be used for switching active path group. | def id(YKHO):
return YKHO._group | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> int:\n return YKHO._group_id",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO):\n return YKHO._id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._gr... | [
"0.787597",
"0.7829336",
"0.7829336",
"0.776296",
"0.7749905",
"0.7749905",
"0.7749905",
"0.7592762",
"0.74955857",
"0.7440735",
"0.734738",
"0.734646",
"0.7330007",
"0.7330007",
"0.7330007",
"0.7271022",
"0.70585907",
"0.7036965",
"0.70027983",
"0.70027983",
"0.70027983",
... | 0.77427405 | 7 |
String. Selector of current path group. Path group selector determines which path in active path group will be use to next I/O. | def PKko(YKHO):
return YKHO._selector | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmON(YKHO, uOe2):\n return",
"def pNjG(*qIxc):\n return jKuN.get_group_selector(*qIxc)",
"def jkOI(YKHO):\n pass",
"def n8un(YKHO):\n return YKHO.selmgr.select_path()",
"def l6cZ(*qIxc):\n return jKuN.set_group_selector(*qIxc)",
"def PKko(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe... | [
"0.64250207",
"0.6143256",
"0.6095452",
"0.59830743",
"0.57778186",
"0.5769308",
"0.5540597",
"0.54764575",
"0.54764575",
"0.5355067",
"0.53290826",
"0.522171",
"0.52134025",
"0.5175387",
"0.5168265",
"0.51633954",
"0.51424783",
"0.5118612",
"0.511272",
"0.5078855",
"0.505106... | 0.57455444 | 6 |
String. WWID of current mpath. | def gjHJ(YKHO):
return YKHO._uuid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ShR8(YKHO) -> str:\n return '_'.join(['wavin', YKHO._controller_id, str(YKHO._name), 'battery'])",
"def E0XI(YKHO):\n PObu = str(YKHO._result.uid)\n if not PObu.startswith('/zport/dmd'):\n PObu = '/zport/dmd/' + PObu\n return PObu",
"def smW4(YKHO):\n return YKHO._engine.device_path()... | [
"0.6177691",
"0.60953784",
"0.60286385",
"0.59536564",
"0.59037435",
"0.58918136",
"0.58785886",
"0.58785886",
"0.58731186",
"0.5863684",
"0.58540994",
"0.5815289",
"0.5815289",
"0.5808639",
"0.57726943",
"0.57599044",
"0.5754434",
"0.5745627",
"0.57430816",
"0.57271993",
"0.... | 0.73362756 | 0 |
List of DMMP_mpath objects. | def PAYn(YKHO):
return YKHO._path_groups | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OB4o(YKHO, sH8T):\n lYEE = []\n W2XT = YKHO.read_mounts()\n for r8hN in W2XT:\n if sH8T == r8hN.device:\n lYEE.append(r8hN.mountpoint)\n return lYEE",
"def QIkE(YKHO):\n return [r8hN.split()[0] for r8hN in YKHO.xlist('get-mounts')[1]]",
"def Qoei():\n gptl = ['device', '... | [
"0.6262625",
"0.57818997",
"0.5664515",
"0.547284",
"0.5466374",
"0.5382272",
"0.5359383",
"0.535148",
"0.5316523",
"0.52730924",
"0.5256024",
"0.51935726",
"0.5149534",
"0.5080365",
"0.5072454",
"0.50651854",
"0.5028563",
"0.5024082",
"0.50062305",
"0.5006047",
"0.49944177",... | 0.0 | -1 |
The string for DEVNAME used by kernel in uevent. | def Pyyt(YKHO):
return YKHO._sysfs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ueYb(YKHO):\n mWFP = YKHO._device['name']\n if not mWFP or mWFP == '--':\n mWFP = YKHO._mac\n return mWFP",
"def mWFP(YKHO):\n return YKHO.devname",
"def mWFP(YKHO):\n return f'{ueYb(YKHO._data, 0, YKHO._name)}'",
"def yxaP(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'devic... | [
"0.7653964",
"0.7651574",
"0.7606604",
"0.75387293",
"0.75387293",
"0.7465343",
"0.7465343",
"0.7457964",
"0.743613",
"0.73530847",
"0.73530847",
"0.73530847",
"0.727464",
"0.7246561",
"0.7210606",
"0.7110714",
"0.7101008",
"0.70763487",
"0.70535266",
"0.7051693",
"0.7044535"... | 0.77354324 | 0 |
M,N are two matrices of vectors, returns a matrix which is M if M,N have positive dot product, and 0 otherwise | def olcA(E3D9, ywwl):
cuIS = oyIN.sum(oyIN.multiply(E3D9, ywwl), axis=0)
if oyIN.any(oyIN.logical_and(cuIS <= 0, oyIN.all(E3D9 == oyIN.array((0, 0)).reshape((2, 1, 1)), axis=0))):
print('clipping happened')
return oyIN.where(cuIS <= 0, oyIN.zeros_like(E3D9), E3D9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U6Ys(WKvO, LVAh):\n assert len(WKvO.shape) == 2\n assert len(LVAh.shape) == 2\n assert WKvO.shape[1] == LVAh.shape[0]\n epBp = oyIN.zeros((WKvO.shape[0], LVAh.shape[1]))\n for YRbF in range(WKvO.shape[0]):\n for r845 in range(LVAh.shape[1]):\n vDft = WKvO[YRbF, :]\n ... | [
"0.72495085",
"0.7174039",
"0.71379566",
"0.6967614",
"0.6911988",
"0.68983024",
"0.6875445",
"0.6848363",
"0.6824717",
"0.6817393",
"0.6791111",
"0.6785556",
"0.6755931",
"0.6749309",
"0.6747172",
"0.6725255",
"0.67065775",
"0.66520125",
"0.66332483",
"0.65919644",
"0.659113... | 0.0 | -1 |
Returns the scheduling actions based on highest Qvalues. This requires the model weights to be already saved. | def u5rl(YKHO):
YKHO.models = [uyMl(f'dqn_{_TKD}.h5') for _TKD in range(len(YKHO.models))]
xASv = []
ugyC = [0] * len(YKHO.models)
while not all(ugyC):
rNYq = U8Lr([('is_scheduled', ugyC)])
r8IL = YKHO._get_best_action(rNYq)
xASv.append(r8IL)
ugyC[r8IL['task_id']] = r8IL[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NXPA(YKHO):\n yolY = YKHO.getQFunction()\n CU1M = -5000\n TJiw = []\n for (QTBn, XeOP), vexM in yolY.items():\n if vexM > CU1M:\n CU1M = vexM\n TJiw = [XeOP]\n elif vexM == CU1M:\n TJiw.append(XeOP)\n return YKHO.tuple_to_dictionary(tuKI.choice(TJiw... | [
"0.767564",
"0.71033466",
"0.69351465",
"0.6854587",
"0.68315357",
"0.6827179",
"0.68225276",
"0.67966247",
"0.67770445",
"0.67721236",
"0.67721236",
"0.67337626",
"0.67147684",
"0.6710782",
"0.66831255",
"0.6642326",
"0.66293216",
"0.6593363",
"0.65867025",
"0.65508795",
"0.... | 0.7105697 | 1 |
Splits a longer list to respect batch size | def eHxA(yv6U, ztRo=I_oC):
for YRbF in range(0, len(yv6U), ztRo):
yield yv6U[YRbF:YRbF + ztRo] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXED(list, ztRo):\n for YRbF in range(0, len(list), ztRo):\n yield list[YRbF:YRbF + ztRo]",
"def Dywm(bCES, ztRo=100):\n G9jH.debug(f'Splitting list of {len(bCES)} length, chunk size = {ztRo}')\n WgRK = []\n for YRbF in range(0, len(bCES), ztRo):\n WgRK.append(bCES[YRbF:YRbF + ztRo]... | [
"0.75917864",
"0.75681007",
"0.7379371",
"0.7313012",
"0.72504157",
"0.7228511",
"0.7125443",
"0.7111731",
"0.7098357",
"0.706227",
"0.7031203",
"0.7005405",
"0.69943714",
"0.6993998",
"0.6941382",
"0.69374204",
"0.6936441",
"0.6932338",
"0.6922199",
"0.6912759",
"0.68996865"... | 0.7232765 | 5 |
Takes a word and returns true if there are hiragana or katakana present within the word | def V12M(GIN8):
for G1Hx in GIN8:
if G1Hx in WNIU or G1Hx in jKTq or G1Hx in IUoL:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HMLo(WKvO):\n mXDZ = ZbWC.compile('[\\\\p{IsHira}\\\\p{IsKatakana}]', ZbWC.UNICODE)\n U5bT = bool(mXDZ.search(WKvO))\n return U5bT",
"def pbT6(l5Ny):\n return any((GIN8 in l5Ny for GIN8 in [u'我好看么', u'称赞']))",
"def t6BJ(GIN8: str) -> bool:\n GIN8 = rNLf(GIN8)\n return GIN8 in kcbU",
"de... | [
"0.6930642",
"0.68723994",
"0.66538167",
"0.6580591",
"0.6552416",
"0.65398663",
"0.64157027",
"0.6405542",
"0.6381708",
"0.6371139",
"0.6359613",
"0.63581526",
"0.6336159",
"0.6310224",
"0.63045526",
"0.6291132",
"0.628089",
"0.6279967",
"0.6273224",
"0.6266891",
"0.625361",... | 0.87406576 | 0 |
Override to default the region to the user's profile region. | def t5Qk(YKHO, E5H6, QePW, **B2fa):
if E5H6.name == 'region':
if QePW.user.profile.region is not None:
B2fa['initial'] = QePW.user.profile.region.pk
return E5H6.formfield(**B2fa)
return super(Bmlu, YKHO).formfield_for_foreignkey(E5H6, QePW, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn0c(YKHO):\n return YKHO.config.region",
"def hbCS(z39Z=None):\n if Hy7s.getenv('AWS_DEFAULT_REGION'):\n return Hy7s.getenv('AWS_DEFAULT_REGION')\n elif z39Z is not None:\n return xwOz(profile_name=z39Z)\n return xwOz(profile_name='default')",
"def zn0c(YKHO) -> str:\n return ... | [
"0.6674411",
"0.65948874",
"0.6539426",
"0.6539426",
"0.6539426",
"0.6539426",
"0.6539426",
"0.6539426",
"0.6532454",
"0.65130454",
"0.65130454",
"0.65130454",
"0.65130454",
"0.64127284",
"0.6336552",
"0.6322187",
"0.6308277",
"0.6253582",
"0.6200991",
"0.6195054",
"0.6139514... | 0.0 | -1 |
Generates a list of random colours in RGB given a random number generator and the size of this list | def CeBr(xlLU: random.Random, zNig: int) -> x1iM[bSef]:
return [wmuL(xlLU) for bGrB in range(zNig)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xt3l():\n Mkmy = ajWY(0, 255)\n Oa1e = ajWY(0, 255)\n Fg_i = ajWY(0, 255)\n return [Mkmy, Oa1e, Fg_i]",
"def OLAd() -> x1iM[float]:\n return [oyIN.random.uniform(), oyIN.random.uniform(), oyIN.random.uniform()]",
"def Is1h(R1f6):\n F4JO = []\n for YRbF in Ni9Y(R1f6):\n F4JO.appe... | [
"0.7871541",
"0.748539",
"0.7485229",
"0.74038225",
"0.72706544",
"0.71166867",
"0.70931363",
"0.7082866",
"0.7052505",
"0.696605",
"0.6933918",
"0.69295365",
"0.6914378",
"0.6914372",
"0.6912016",
"0.6897092",
"0.6876162",
"0.68433",
"0.68433",
"0.68433",
"0.6812373",
"0.6... | 0.8515019 | 0 |
Calculate the greatcircle distance bewteen two points on the Earth surface. | def fCjQ(lCHq, ANJu, JYmd=False):
if len(lCHq.shape) == 1:
lCHq = oyIN.array([lCHq])
if len(ANJu.shape) == 1:
ANJu = oyIN.array([ANJu])
lCHq = oyIN.radians(lCHq)
ANJu = oyIN.radians(ANJu)
Csk6 = oyIN.power(oyIN.sin((ANJu[:, 0] - lCHq[:, 0]) / 2), 2) + oyIN.cos(lCHq[:, 0]) * oyIN.cos(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6",
"def T97B(GgQG, ... | [
"0.76110846",
"0.75128585",
"0.74005204",
"0.736278",
"0.7334611",
"0.7330116",
"0.72670156",
"0.72396517",
"0.722976",
"0.7168491",
"0.71659577",
"0.7156992",
"0.71539944",
"0.7124056",
"0.71109474",
"0.71105796",
"0.70962393",
"0.70885754",
"0.70604175",
"0.705747",
"0.7027... | 0.0 | -1 |
return current thread name. | def CIty():
rz6X = T6FA.current_thread()
return rz6X.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sATt(YKHO) -> h8nf[str]:\n return YKHO.thread_name",
"def W0tD(Tl1c):\n for MgeT in T6FA.enumerate():\n if MgeT.ident == Tl1c:\n return MgeT.name",
"def g9xW(YKHO):\n return NnkB.t_usernames.get(T6FA.get_ident())",
"def VsgD(YKHO) -> str:\n return YKHO._task_name",
"def UN... | [
"0.80912495",
"0.77005726",
"0.69585633",
"0.6890283",
"0.6844813",
"0.67890924",
"0.674684",
"0.670793",
"0.6689467",
"0.668167",
"0.6630126",
"0.6606617",
"0.6594408",
"0.6587215",
"0.65800315",
"0.65798545",
"0.6551568",
"0.6512428",
"0.6499626",
"0.648431",
"0.6480289",
... | 0.90061885 | 0 |
remove duplicate keys while preserving order. optionally return values. | def ftiE(x2nx, iwRe=None):
PwWw = {}
sjXb = []
hkxX = []
for YRbF, ZfUD in enumerate(x2nx):
if ZfUD in PwWw:
continue
PwWw[ZfUD] = 1
sjXb.append(ZfUD)
if iwRe:
hkxX.append(iwRe[YRbF])
return (sjXb, hkxX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L6YV(WKvO):\n return list(dict.fromkeys(WKvO))",
"def sHC1(IqQl):\n return list(U8Lr.fromkeys(IqQl))",
"def dDv2(IqQl):\n return list(dict.fromkeys(IqQl))",
"def EIZV(yv6U):\n return list(dict.fromkeys(yv6U))",
"def xFUr(YKHO, WKvO):\n return list(dict.fromkeys(WKvO))",
"def MOT_(OxJJ)... | [
"0.75429296",
"0.72203714",
"0.7036629",
"0.7017405",
"0.6760333",
"0.6731918",
"0.6579014",
"0.65164787",
"0.64843994",
"0.6472747",
"0.6425572",
"0.6410459",
"0.6388204",
"0.6381012",
"0.63454247",
"0.6309064",
"0.62704206",
"0.62684274",
"0.6259605",
"0.61603624",
"0.61588... | 0.775089 | 0 |
creates a line on the given axes using style_args. returns line_name | def SywQ(YKHO, MPlV, uGt8):
JpZy = YKHO.server.stream_data
SLsv = XTiz.arange(0, 2, 1)
CjQX = XTiz.array([0] * 2)
zFiD, = MPlV.plot(SLsv, CjQX, '-', **uGt8)
nWoM = uGt8['label']
if nWoM in JpZy:
JpZy[nWoM + '_old_' + E3oo()] = JpZy[nWoM]
JpZy[nWoM] = {'y': [], 'line': zFiD, 'last_len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BPZT(pImw, zq9g, jDK_, PZjk):\n Mkmy = 0\n Oa1e = 0\n Fg_i = 0\n jzdc = 0.4\n d7Eb = [Mkmy, Oa1e, Fg_i, jzdc]\n zFiD = {'style': '-', 'color': d7Eb}\n return zFiD",
"def O_lX(js4S=True, *qIxc):\n jDK_ = ccKF.radioButtonGrp(uSz2['lineAxisRBG'], q=True, sl=True)\n u54L = ccKF.floatFi... | [
"0.62994033",
"0.6173251",
"0.61364174",
"0.6051291",
"0.5881077",
"0.58236307",
"0.5810255",
"0.58049214",
"0.5775597",
"0.5750251",
"0.5716448",
"0.57113814",
"0.5684895",
"0.5669201",
"0.5652392",
"0.56158364",
"0.5613863",
"0.55943674",
"0.5562825",
"0.55502826",
"0.55340... | 0.7652667 | 0 |
Convert a ``datetime`` object to a JSON (JavaScript) string Formats the provided datetime object to a ``str`` that is compliant with the | def jput(BWXx: datetime) -> str:
if BWXx is None or not isinstance(BWXx, qcWV):
raise ValueError('provided value is not a valid datetime object')
return BWXx.strftime('%Y-%m-%dT%H:%M:%SZ') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UKOV(YEnM):\n if isinstance(YEnM, (qcWV.date, qcWV.datetime)):\n return YEnM.isoformat()",
"def erUo(YEnM):\n if isinstance(YEnM, qcWV):\n return YEnM.isoformat()",
"def u8GA(YEnM):\n if isinstance(YEnM, (qcWV.datetime, qcWV.date, qcWV.time)):\n return YEnM.isoformat()\n re... | [
"0.7582491",
"0.75781405",
"0.74525875",
"0.7391628",
"0.7342249",
"0.7333236",
"0.7204316",
"0.7185797",
"0.7180997",
"0.7174835",
"0.70906",
"0.7060324",
"0.70553344",
"0.69751024",
"0.6969093",
"0.6942338",
"0.69343144",
"0.69328296",
"0.6923455",
"0.69231457",
"0.6921015"... | 0.61615 | 81 |
Convert 1d numpy array to dataframe for plotting. | def Iyma(kPcD, SBh1, rZ9h):
yvT9 = rLdf.DataFrame({'component': 'L2_dist', 'n': SBh1, 'value': kPcD, 'id': rZ9h})
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hMxI(CiHI: np.ndarray) -> rLdf.DataFrame:\n return rLdf.DataFrame(data=CiHI[1:, 1:], index=CiHI[1:, 0], columns=CiHI[0, 1:])",
"def VwCh(qaEx):\n jQ3Z = zuVY.open_dataset(qaEx).to_dataframe()\n jQ3Z = jQ3Z.reset_index()\n return jQ3Z",
"def Hbal(YKHO) -> 'pd.DataFrame':\n import pandas as rL... | [
"0.7372338",
"0.6829325",
"0.67939925",
"0.67582446",
"0.6741496",
"0.6593171",
"0.65855",
"0.6417954",
"0.6330275",
"0.6313056",
"0.6305333",
"0.6293269",
"0.62197083",
"0.6147745",
"0.6120145",
"0.6108317",
"0.6108003",
"0.6107391",
"0.609676",
"0.6074362",
"0.6046519",
"... | 0.54785275 | 95 |
Plot 'true' and noisy coefficients. | def ySlt(dixj):
grdi = rLdf.concat([KnAH(dixj['obj_noisy'], SBh1, 'obj'), Iyma(dixj['dist_obj'], SBh1, 'obj'), KnAH(dixj['pos_noisy'], SBh1, 'pos'), Iyma(dixj['dist_pos'], SBh1, 'pos'), KnAH(dixj['neg_noisy'], SBh1, 'neg'), Iyma(dixj['dist_neg'], SBh1, 'neg')])
jk7u = (min(SBh1), max(SBh1))
rTQi = (-1.1, 1.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _nid(YKHO, aNZO):\n a1PO = YKHO.t\n uVKC = YKHO.x_true\n Fg_i = YKHO.b\n aNZO.plot(a1PO, uVKC, 'k-', label='true image', lw=1.5)\n aNZO.plot(a1PO, Fg_i, 'ro', label='blurred')\n aNZO.set_title('True')\n aNZO.set_xlabel('$t$')\n aNZO.set_ylabel('$x$')\n MRRk = aNZO.legend(loc='upper l... | [
"0.71557194",
"0.6376786",
"0.6281781",
"0.62380886",
"0.6158362",
"0.6118943",
"0.61107737",
"0.6098007",
"0.60626245",
"0.6027678",
"0.59956294",
"0.5971492",
"0.5943495",
"0.59327364",
"0.5911246",
"0.5910142",
"0.5910142",
"0.5910142",
"0.5909054",
"0.59012383",
"0.587855... | 0.6278804 | 3 |
Plot the scatter plot of measured values v. predicted values, with an identity line and a best fitted line to show the prediction difference. | def U874(Y8eF, aMgO, aNZO=None):
Kacw(Y8eF, aMgO)
if aNZO is None:
aNZO = QrM1.gca()
C3ST = nkHP()
if isinstance(Y8eF, rLdf.Series):
Y8eF = Y8eF.values
ThDj = Y8eF.reshape((-1, 1))
C3ST.fit(ThDj, aMgO)
WKvO = oyIN.linspace(min(min(Y8eF), min(aMgO)), max(max(Y8eF), max(aMgO)))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K7tx(YKHO):\n PjQx = [YKHO.f(WKvO, YKHO.coefficients) for WKvO in YKHO.x_values]\n QrM1.scatter(YKHO.x_values, YKHO.y_values, label='Actual data', c='b')\n QrM1.plot(YKHO.x_values, PjQx, label='Predicted data', c='r')\n QrM1.title(f'Graph of Prediected and Actual data points.')\n QrM1.xlabel('x-... | [
"0.7619803",
"0.73825103",
"0.6910162",
"0.6828525",
"0.6798043",
"0.67719805",
"0.6752657",
"0.6736895",
"0.6719012",
"0.6635017",
"0.6582754",
"0.65477663",
"0.646825",
"0.6449293",
"0.6447603",
"0.6417375",
"0.64155245",
"0.64023745",
"0.6390852",
"0.6390345",
"0.6378697",... | 0.60029083 | 47 |
Takes in a dataframe and generates an interactive figure in plotly and exports it as an SVG file in the figures folder. | def _baD(jQ3Z: pd.DataFrame=None, Q01g: bool=False):
if jQ3Z is None:
jQ3Z = kTQ_.pd_load_data(Q01g)
jQ3Z = jQ3Z.reset_index()
jQ3Z = jQ3Z[['STATE', 'FPA_ID']]
IBC3 = jQ3Z.groupby('STATE').count()
IBC3 = IBC3.rename(columns={'FPA_ID': 'Count'})
LZpg = iEax.Figure(data=iEax.Choropleth(loc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S9QW(YKHO, hxoQ, PPHi, HmAy, H406):\n LZpg = Xlvp.scatter(hxoQ, x=PPHi, y=HmAy, hover_name=hxoQ.index, color='Lib_Tag_contour_ratio', hover_data=['Contour_soma_ratio_Lib', 'Lib_Tag_contour_ratio', 'ImgNameInfor_Lib'], width=1050, height=950)\n LZpg.write_html(H406, auto_open=True)",
"def k3TL(jQ3Z):\n ... | [
"0.6491675",
"0.6076382",
"0.59671855",
"0.59521836",
"0.592906",
"0.5924873",
"0.588453",
"0.5880291",
"0.5853218",
"0.5849005",
"0.5834654",
"0.5828318",
"0.5821972",
"0.5789379",
"0.57887715",
"0.5768348",
"0.5747316",
"0.57470936",
"0.5695773",
"0.56733716",
"0.5663988",
... | 0.0 | -1 |
The method used to make sure that the number of starting chips for each player can be set. | def L9L5(YKHO):
d9Ss = [1, 10, 100, 9999]
for t76p in d9Ss:
BH3N = _apf()
BH3N.setup_new_game()
BH3N.set_pack_number(1)
BH3N.set_starting_chips(t76p)
YKHO.assertEqual(BH3N.starting_chips, t76p, msg='The number of player starting chips was not correctly set with ' + str(t7... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M54F(YKHO):\n YKHO.assertEqual(len(YKHO.partialDeck.deck), 46)",
"def qhm5():\n return True",
"def xb5c(YKHO):\n EFAA = ''\n while True:\n WwfR()\n try:\n YKHO.n_players = int(input(f'{EFAA}Please insert the number of players (between 2 to 6): \\n'))\n if YKH... | [
"0.5986601",
"0.5935184",
"0.591481",
"0.58434373",
"0.57822806",
"0.5757061",
"0.5752133",
"0.5748309",
"0.57169116",
"0.56981397",
"0.56899023",
"0.56770945",
"0.56551063",
"0.56398237",
"0.5611947",
"0.5601338",
"0.55866843",
"0.55602324",
"0.55322117",
"0.5494507",
"0.548... | 0.76785713 | 0 |
Compute softmax values for each sets of scores in x. | def N93T(WKvO):
return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T",
"def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)",
"def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)",
"de... | [
"0.7797633",
"0.77625954",
"0.77602196",
"0.7757519",
"0.76584935",
"0.76584935",
"0.76584935",
"0.76584935",
"0.7589092",
"0.7433975",
"0.7410552",
"0.7397003",
"0.7360935",
"0.73204947",
"0.7271785",
"0.72655344",
"0.7264959",
"0.7259807",
"0.72332364",
"0.72179425",
"0.720... | 0.69552547 | 95 |
Return whether the buffer is full. | def LWCs(YKHO):
return YKHO.idx == YKHO.len | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xCxZ(YKHO):\n return len(YKHO.buffer) == YKHO.bufferSize",
"def Yykn(YKHO):\n return YKHO.__size == len(YKHO.__buffer)",
"def LWCs(YKHO):\n return len(YKHO) == YKHO.buffer_size",
"def LWCs(YKHO):\n return len(YKHO) == YKHO.buffer_size",
"def LWCs(YKHO):\n return len(YKHO) == YKHO.buffer_... | [
"0.902843",
"0.88964313",
"0.8631627",
"0.8631627",
"0.8631627",
"0.8631627",
"0.8273404",
"0.8033453",
"0.786584",
"0.7722272",
"0.7716352",
"0.75985116",
"0.7564237",
"0.75423336",
"0.75304025",
"0.75304025",
"0.75271684",
"0.7520153",
"0.7509155",
"0.7410427",
"0.7410427",... | 0.67810583 | 91 |
Get a statistic by index. | def J1nZ(Emd4, or8S: int) -> 'PermutationStatistic':
return Emd4(*YEJB._STATISTICS[or8S]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1nZ(YKHO, d6pt):\n d6pt = int(d6pt) if d6pt else 0\n return YKHO.by_index.get(d6pt)",
"def NMoC(YKHO, d6pt):\n raise NotImplementedError()",
"def xHzW(YKHO, d6pt: int) -> object:\n return YKHO.data[d6pt]",
"def OP2O(YKHO, d6pt):\n return YKHO.data_source.get_sample(d6pt)",
"def OP2O(YKH... | [
"0.7498371",
"0.71451086",
"0.7102152",
"0.6922391",
"0.67885476",
"0.66309804",
"0.66093",
"0.6583636",
"0.657459",
"0.65730995",
"0.6543232",
"0.65285486",
"0.6507778",
"0.64874345",
"0.64874345",
"0.6459586",
"0.64476395",
"0.64476395",
"0.642201",
"0.6396596",
"0.639335",... | 0.709509 | 3 |
Given a bijection, check which statistics are preserved. | def wQpw(Emd4, d0J_: BijectionType) -> bDy6[str]:
return (eQSh.name for eQSh in Emd4._get_all() if eQSh.preserved_in(d0J_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jcgp(Emd4, d0J_: BijectionType) -> cuzp[str, x1iM[str]]:\n N0bt = oRi_(list)\n qcLm = Emd4._get_all()\n for sueA, fQRO in Lx3t(qcLm, qcLm):\n if all((sueA.func(G1Hx) == fQRO.func(Ty9i) for G1Hx, Ty9i in d0J_.items())):\n N0bt[sueA.name].append(fQRO.name)\n return dict(N0bt)",
"d... | [
"0.66531956",
"0.63910055",
"0.55745256",
"0.5352943",
"0.52362436",
"0.5194983",
"0.5103389",
"0.5067221",
"0.5019369",
"0.48898706",
"0.4860377",
"0.48361117",
"0.48361117",
"0.48361117",
"0.48343045",
"0.481323",
"0.4766111",
"0.47515914",
"0.4739123",
"0.472368",
"0.46902... | 0.5517658 | 3 |
Gets environment variable as string. | def tv8Y(YqMg, WmM4=''):
return Hy7s.environ.get(YqMg, WmM4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E6J6(H5ew: str) -> str:\n BWXx = Hy7s.getenv(H5ew)\n assert isinstance(BWXx, str), f'the {H5ew} environment variable must be set and a string, value={BWXx!r}'\n return BWXx",
"def sEAN(SRYB):\n return Hy7s.environ[SRYB]",
"def TYk2(XuY2: str) -> str:\n if XuY2 in Hy7s.environ.keys():\n ... | [
"0.81528544",
"0.7418339",
"0.7405049",
"0.72382337",
"0.72329384",
"0.72261554",
"0.7057835",
"0.69984245",
"0.69965094",
"0.69708145",
"0.6922805",
"0.68801343",
"0.68776995",
"0.685753",
"0.68367887",
"0.68226147",
"0.6817827",
"0.6792033",
"0.6738943",
"0.67099005",
"0.66... | 0.7531773 | 1 |
Convert a scipy sparse matrix to a torch sparse tensor. | def FXf_(On0F):
On0F = On0F.tocoo().astype(oyIN.float32)
_0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64))
hkxX = ht2j.from_numpy(On0F.data)
ROpF = ht2j.Size(On0F.shape)
return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO",
"def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,... | [
"0.8300307",
"0.81481314",
"0.80456084",
"0.8032226",
"0.80131984",
"0.799705",
"0.799705",
"0.79850143",
"0.79850143",
"0.79850143",
"0.7976765",
"0.7964795",
"0.77543104",
"0.7712594",
"0.74288416",
"0.74288416",
"0.7353584",
"0.7196928",
"0.7156608",
"0.6987555",
"0.696929... | 0.80297416 | 15 |
Returns true if a plugin is loaded, otherwise false | def rXL1(YKHO, LYOs):
if LYOs in YKHO.plugins:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qPgS(YKHO, t0qN):\n return YKHO._get_name(t0qN) in YKHO.loaded_plugins",
"def PzdK(YKHO):\n pmON = YKHO.world.config['plugin']['path']\n if not YKHO.load_glob(pmON):\n return False\n if not YKHO.check_deps():\n return False\n return True",
"def BYNO(YKHO, mWFP: str) -> bool:\n ... | [
"0.82449305",
"0.75101715",
"0.7230979",
"0.7069812",
"0.70386356",
"0.691805",
"0.6850626",
"0.6843381",
"0.6841373",
"0.68310064",
"0.66861874",
"0.66766804",
"0.66580296",
"0.6645501",
"0.66317517",
"0.6622345",
"0.65992326",
"0.65837264",
"0.6525645",
"0.65177065",
"0.643... | 0.72091687 | 3 |
Returns if a user is an admin or not | def uJBC(YKHO, CVgL):
if CVgL in YKHO.config['admins']:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._properties and YKHO.is_admin == 'YES':\n return True\n return False",
"def uJBC(CBIr):\n return jDAC(CBIr, zJiV)",
... | [
"0.893059",
"0.87329084",
"0.8720758",
"0.86934495",
"0.8606972",
"0.8575092",
"0.85193145",
"0.8454654",
"0.8378569",
"0.8346424",
"0.8324324",
"0.8313925",
"0.8262614",
"0.82554847",
"0.8234557",
"0.8232175",
"0.82130915",
"0.82102287",
"0.820046",
"0.8189302",
"0.81726366"... | 0.75662035 | 52 |
Determines the minimum and maximum values for any particular tuple index within the list. Returns | def XT48(YKHO, sjXb: list) -> list:
if not isinstance(sjXb, list):
sjXb = [sjXb]
XT48 = {}
for H5ew in sjXb:
XT48[H5ew] = [None, None]
for HZUM in YKHO.list:
for H5ew in sjXb:
if XT48[H5ew][0] is None:
XT48[H5ew][0] = HZUM[H5ew]
XT48[H5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y1lg(YKHO, ZlgM, elzz):\n jpzO = Xp8w = None\n for KCHu in elzz:\n if KCHu.keyword == 'min-elements':\n jpzO = KCHu.arg\n elif KCHu.keyword == 'max-elements':\n Xp8w = KCHu.arg\n if jpzO is None:\n g5rF = ZlgM.search_one('min_elements')\n if g5rF:\n ... | [
"0.7201116",
"0.7053451",
"0.7039965",
"0.6910799",
"0.6879111",
"0.6841572",
"0.68235934",
"0.6786338",
"0.67859083",
"0.67341435",
"0.67099017",
"0.6705208",
"0.6695408",
"0.66835827",
"0.6665411",
"0.6641725",
"0.6620347",
"0.6598788",
"0.6563562",
"0.6549405",
"0.65433556... | 0.0 | -1 |
Determines whether the lines AB and BC make a counterclockwise or clockwise turn. | def XSoh(jzdc: tuple, Fg_i: tuple, Z9rn: tuple) -> int:
return (Fg_i[1] - jzdc[1]) * (Z9rn[0] - Fg_i[0]) - (Fg_i[0] - jzdc[0]) * (Z9rn[1] - Fg_i[1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VWkc(YKHO):\n KCHu = sum(((pG0V[1][0] - pG0V[0][0]) * (pG0V[1][1] + pG0V[0][1]) for pG0V in YKHO.segment_tuples))\n return KCHu > 0",
"def TRH2(KwKv, YBrO, Qz2I):\n return tQzj(KwKv, YBrO, Qz2I) > 0",
"def UP_c(iXlf):\n Ty9i = iXlf\n f0tD = ((Ty9i[1][0] - Ty9i[0][0]) * (Ty9i[1][1] + Ty9i[0][... | [
"0.74345213",
"0.7050063",
"0.6938256",
"0.6867639",
"0.67281264",
"0.6570195",
"0.65248144",
"0.6483469",
"0.6362939",
"0.6355596",
"0.6348816",
"0.6348816",
"0.6196705",
"0.60618496",
"0.60286784",
"0.5938162",
"0.5816794",
"0.57985514",
"0.5764117",
"0.57534015",
"0.575023... | 0.0 | -1 |
Determine if CCW (1), CW(1), or colinear(0) | def C3ap(jzdc: tuple, Fg_i: tuple, Z9rn: tuple) -> int:
Csk6 = XSoh(jzdc, Fg_i, Z9rn)
if Csk6 == 0:
return 0
elif Csk6 > 0:
return 1
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRH2(LTIa):\n LTIa = oyIN.asanyarray(LTIa, dtype=oyIN.float64)\n if len(LTIa.shape) != 2 or LTIa.shape[1] != 2:\n raise ValueError('CCW is only defined for 2D')\n Jgwa = oyIN.diff(LTIa[:, 0])\n NsEU = oyIN.column_stack((LTIa[:, 1], LTIa[:, 1])).reshape(-1)[1:-1].reshape((-1, 2)).sum(axis=1)\... | [
"0.6975806",
"0.66116494",
"0.6606028",
"0.65576446",
"0.6379163",
"0.6352987",
"0.6342742",
"0.625941",
"0.6167342",
"0.61235267",
"0.60807854",
"0.6079656",
"0.6001425",
"0.59949446",
"0.58525217",
"0.57770985",
"0.57654357",
"0.573804",
"0.5721898",
"0.57122684",
"0.571094... | 0.0 | -1 |
Determines if the slope of a line is positive. | def wdnT(zFiD: tuple) -> bool:
return zFiD[0][1] < zFiD[1][1] == zFiD[0][0] < zFiD[1][0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KaYZ(YKHO):\n if YKHO.high_elevation != YKHO.low_elevation:\n return True\n return False",
"def VMex(YKHO):\n if YKHO.b == 0:\n return None\n else:\n return -1 * YKHO.a / YKHO.b",
"def Wt_O(YKHO, VMex):\n if YKHO.slope_interval[0] <= abs(VMex) <= YKHO.slope_interval[1]:\... | [
"0.736785",
"0.67845374",
"0.66309035",
"0.6547908",
"0.64874506",
"0.6483003",
"0.6478444",
"0.63426495",
"0.63259435",
"0.6320206",
"0.62273353",
"0.6205177",
"0.6158633",
"0.613933",
"0.61122525",
"0.6104726",
"0.6096476",
"0.6087337",
"0.6063536",
"0.6063536",
"0.59833056... | 0.83179325 | 0 |
Checks if a point is within the rectangle with edge as one of the diagonals. | def H4Lq(AU8u: tuple, D70y: tuple) -> bool:
return xac_(AU8u[0], D70y[0][0], D70y[1][0]) and xac_(AU8u[1], D70y[0][1], D70y[1][1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bJYl(AU8u, lued):\n CLNC = lued.getP1()\n r902 = lued.getP2()\n return CLNC.getX() < AU8u.getX() < r902.getX() and CLNC.getY() < AU8u.getY() < r902.getY()",
"def Zur9(YKHO, AU8u):\n zNig = YKHO.size\n A4Ls = YKHO.centre\n OvQ2, Z5ot = (A4Ls.x - zNig / 2, A4Ls.x + zNig / 2)\n xj9N, Y3W3 =... | [
"0.70133144",
"0.69797367",
"0.6935007",
"0.69121915",
"0.687569",
"0.687569",
"0.6854568",
"0.6748199",
"0.67210734",
"0.6670797",
"0.6650344",
"0.66328245",
"0.6617512",
"0.6605541",
"0.6605422",
"0.65742147",
"0.6531653",
"0.6525218",
"0.65238535",
"0.6522948",
"0.6522948"... | 0.70146877 | 0 |
Dot product of two vectors. | def uYbU(FXhF: tuple, RMVR: tuple) -> float:
return FXhF[0] * RMVR[0] + FXhF[1] * RMVR[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(len(jzdc))]))",
"def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)",
"def QLUs(hQH... | [
"0.87841845",
"0.86563873",
"0.8642669",
"0.86284196",
"0.86162174",
"0.8601663",
"0.85943055",
"0.85549754",
"0.8492725",
"0.84826726",
"0.84747356",
"0.843237",
"0.8408973",
"0.8401954",
"0.8375448",
"0.8345248",
"0.8324872",
"0.83216214",
"0.8315376",
"0.82187545",
"0.8203... | 0.8244592 | 19 |
Magnitude of a vector. | def YXbZ(iArr: tuple) -> float:
return epAf.sqrt(iArr[0] ** 2 + iArr[1] ** 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def b3Gc(Ty9i):\n return epAf.sqrt(Lzxs(Ty9i))",
"def YXbZ(iArr):\n return epAf.sqrt(Lzxs(iArr))",
"def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))",
"def WTaY(Ty9i):\n Ty9i = oyIN.atleast_2d(Ty9i)\n return... | [
"0.82161707",
"0.82127446",
"0.8133831",
"0.80984265",
"0.80711746",
"0.7985293",
"0.7820759",
"0.77244526",
"0.77204585",
"0.76303875",
"0.7613427",
"0.744135",
"0.7276982",
"0.72540486",
"0.703484",
"0.7024954",
"0.6985379",
"0.6943243",
"0.690651",
"0.6875509",
"0.68388605... | 0.75406647 | 11 |
Returns true if the vector is a zero vector, otherwise false. | def nTxr(iArr: tuple) -> bool:
return iArr[0] == 0 and iArr[1] == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VDDj(he6J):\n PZES = [PNxx(tTpl) for tTpl in he6J]\n return all(PZES)",
"def Witr(YKHO):\n for a1PO in YKHO:\n if a1PO != W_f1:\n return False\n return True",
"def PNxx(YKHO):\n return YKHO.count == 0",
"def Witr(YKHO):\n return YKHO._express.is_zero()",
"def Witr(YK... | [
"0.8560863",
"0.78165585",
"0.7557371",
"0.753894",
"0.74890184",
"0.7482657",
"0.7468545",
"0.74608725",
"0.745997",
"0.7423766",
"0.74129486",
"0.741105",
"0.7316494",
"0.7311554",
"0.7263635",
"0.70921254",
"0.7089508",
"0.707456",
"0.7040816",
"0.7008552",
"0.69950205",
... | 0.8220028 | 1 |
Creates a convex line segment between two points. In the context of polygon creation, desc_y is set to True if we are building the top left or top right corner. Desc_X is set to True if we are building the top right or bottom right corner. This impacts the order we accept points and how we interpret the direction of po... | def HUmw(VX1z: list, tgm6: bool=False, J9x6: bool=False) -> list:
if len(VX1z) < 3:
return VX1z
zFiD = []
k6sK = None
xf8o = VX1z[-1]
xMXg = -2
while VX1z[xMXg][1] == xf8o[1]:
xf8o = VX1z[xMXg]
xMXg -= 1
for AU8u in VX1z:
if AU8u == xf8o:
break
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AS5c(YKHO, o4D3, si3g, ajwV, skBL):\n if oyIN.allclose(o4D3, 0.0):\n jzdc = [o4D3, si3g, 0.0]\n for (iHFL, dI90), (LjHT, MIa8) in YKHO._mesh.sincos:\n Mkmy = ajwV\n Fg_i = [Mkmy * LjHT, skBL, Mkmy * MIa8]\n Z9rn = [Mkmy * iHFL, skBL, Mkmy * dI90]\n Y... | [
"0.61220574",
"0.5985634",
"0.58928055",
"0.586802",
"0.5844202",
"0.5812266",
"0.5790249",
"0.57509595",
"0.5726299",
"0.5695145",
"0.5691318",
"0.56896853",
"0.5685234",
"0.5680852",
"0.56595385",
"0.563459",
"0.5601871",
"0.5600169",
"0.5596646",
"0.55840945",
"0.5568787",... | 0.74640554 | 0 |
Determines if a line segment described by d_y, d_x, and b is right of a point. | def QrEA(AU8u: tuple, zFiD: tuple, iKuP: float, vgEw: float, Fg_i: float, ao6X: bool=False, yYKB: bool=False) -> bool:
LChT, dCLF = (zFiD[0][1], zFiD[1][1])
if LChT > dCLF:
LChT, dCLF = (dCLF, LChT)
if not xac_(AU8u[1], LChT, dCLF):
return False
if ao6X and AU8u[1] == LChT:
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DG_A(AU8u: tuple, zFiD: tuple, iKuP: float, vgEw: float, Fg_i: float) -> bool:\n if not H4Lq(AU8u, zFiD):\n return False\n if Fg_i == None and AU8u[0] == zFiD[0][0]:\n return True\n return iKuP * AU8u[0] == (AU8u[1] - Fg_i) * vgEw",
"def _Owp(KwKv, YBrO, Qz2I, fwyA):\n try:\n ... | [
"0.779486",
"0.6765233",
"0.6753991",
"0.6690972",
"0.66500854",
"0.65380234",
"0.65158004",
"0.64917606",
"0.6466559",
"0.64534605",
"0.63823503",
"0.63814336",
"0.6377494",
"0.6278903",
"0.62738436",
"0.6271943",
"0.62362576",
"0.6226385",
"0.6216552",
"0.62099683",
"0.6205... | 0.7685959 | 1 |
Determines if a point is on the segment. | def DG_A(AU8u: tuple, zFiD: tuple, iKuP: float, vgEw: float, Fg_i: float) -> bool:
if not H4Lq(AU8u, zFiD):
return False
if Fg_i == None and AU8u[0] == zFiD[0][0]:
return True
return iKuP * AU8u[0] == (AU8u[1] - Fg_i) * vgEw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VS3o(AU8u, IN58, VCKa):\n WKvO = AU8u[0]\n LVAh = AU8u[1]\n if WKvO < IN58[0] and WKvO < VCKa[0]:\n return False\n if WKvO > IN58[0] and WKvO > VCKa[0]:\n return False\n if LVAh < IN58[1] and LVAh < VCKa[1]:\n return False\n if LVAh > IN58[1] and LVAh > VCKa[1]:\n ... | [
"0.7799579",
"0.76022875",
"0.76022875",
"0.7578741",
"0.755237",
"0.750448",
"0.7461112",
"0.74219817",
"0.7264109",
"0.7250185",
"0.7214966",
"0.7196955",
"0.7158082",
"0.71503884",
"0.71443844",
"0.7110474",
"0.7107299",
"0.70606035",
"0.7057359",
"0.70439357",
"0.7029545"... | 0.69189537 | 27 |
Determines if the new edge would intersect the hull at any point. | def X4H2(e0qG: list, b7Ss: list, a77C: tuple) -> bool:
bKkd = xx9t(e0qG[0][0], e0qG[0][1], e0qG[1][1])
for G1Hx in range(0, len(b7Ss) - 1):
if e0qG[0][0] == b7Ss[G1Hx] or e0qG[0][0] == b7Ss[G1Hx + 1]:
continue
elif e0qG[0][1] == b7Ss[G1Hx] or e0qG[0][1] == b7Ss[G1Hx + 1]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mkre(YKHO):\n ylbe = YKHO.upper_binary_tree().single_edge_cut_shapes()\n zgTg = YKHO.lower_binary_tree().single_edge_cut_shapes()\n return not any((WKvO in ylbe for WKvO in zgTg))",
"def pZCz(b7Ss, KAOR):\n for RpU_ in b7Ss:\n if not IQ5w(face=RpU_, instance=KAOR)[0]:\n return F... | [
"0.6484378",
"0.63872766",
"0.62879694",
"0.6258108",
"0.6223334",
"0.62019885",
"0.6185283",
"0.6149708",
"0.6138869",
"0.61183757",
"0.6070646",
"0.60460234",
"0.6039633",
"0.6038786",
"0.6038608",
"0.6034174",
"0.5997268",
"0.59944534",
"0.59907645",
"0.5983716",
"0.597896... | 0.7658259 | 0 |
returns the dictionary representation of a Rectangle | def SRkh(YKHO):
return {'id': YKHO.id, 'x': YKHO.x, 'size': YKHO.size, 'y': YKHO.y} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjUt(YKHO):\n return yjUt(YKHO.rectangles)",
"def SRkh(YKHO):\n mawX = {'x': YKHO.x, 'y': YKHO.y, 'id': YKHO.id, 'height': YKHO.height, 'width': YKHO.width}\n return mawX",
"def SRkh(YKHO):\n PxHz = {'x': YKHO.x, 'y': YKHO.y, 'id': YKHO.id, 'height': YKHO.height, 'width': YKHO.width}\n retur... | [
"0.8602724",
"0.8201665",
"0.8108615",
"0.8052318",
"0.79804254",
"0.774604",
"0.7632502",
"0.7477445",
"0.73376447",
"0.7333853",
"0.7112657",
"0.68645644",
"0.67418987",
"0.6740587",
"0.67366946",
"0.671641",
"0.6686742",
"0.6686742",
"0.6638892",
"0.6613355",
"0.66103834",... | 0.626603 | 32 |
Nose will execute this function after executing all the tests. Remove files generated during test runs | def Wyrp(Emd4):
YKHO = Emd4()
YKHO.remove_files_created_during_previous_runs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n YKHO.remove_test_files()",
"def tBIc(YKHO):\n hHwD = Hy7s.path.split(Hy7s.path.realpath(xAKo))[0]\n for eHNT in SC2F.glob(Hy7s.path.join(hHwD, '*')):\n if eHNT.split('.')[-1] in ['o', 'out', 'pyc', 'log']:\n Yn3K.call(['rm', eHNT])",
"def tBIc(YKHO):\n Hy7s.remov... | [
"0.79564494",
"0.7922551",
"0.7731818",
"0.7725066",
"0.7597718",
"0.7541712",
"0.75238997",
"0.7476529",
"0.7441866",
"0.7432386",
"0.74241424",
"0.74227935",
"0.7406666",
"0.7307176",
"0.7307176",
"0.7307176",
"0.73070675",
"0.7299069",
"0.72886336",
"0.72333694",
"0.723083... | 0.0 | -1 |
Gets the action_time of this Lifecycle. The time at which the job and files will be deleted, regardless of whether it has been retrieved or not. Maximal time is 1 day from job creation | def EHkv(YKHO):
return YKHO._action_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sTah(YKHO) -> int:\n if not YKHO.actions:\n return 0\n else:\n return YKHO.actions[-1].time_end",
"def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')",
"def Yq1m(YKHO) -> str:\n return qe4Y.get(YKHO, 'delete_time')",
"def F0B_(YKHO) -> str:\n return qe4Y.get(YKHO, ... | [
"0.6351681",
"0.6334942",
"0.6334942",
"0.6254808",
"0.62357366",
"0.615849",
"0.61072457",
"0.6091936",
"0.6077282",
"0.60503584",
"0.59982574",
"0.5907601",
"0.5900668",
"0.58995885",
"0.5868122",
"0.5856616",
"0.5840132",
"0.57963824",
"0.57763684",
"0.57763684",
"0.577636... | 0.78159416 | 0 |