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 |
|---|---|---|---|---|---|---|
Simplify a list by remove zeros on right hand side | def MhEZ(FN88):
eoKs = -1
for YRbF in range(len(FN88)):
if abs(FN88[YRbF]) > BVxk:
eoKs = YRbF
return FN88[:eoKs + 1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Zph(IqQl):\n for LihS in IqQl:\n if LihS == 0:\n IqQl.remove(LihS)\n IqQl.append(0)\n return IqQl",
"def Z03m(DumB: list) -> iu5r[int]:\n return [WKvO for WKvO in DumB if WKvO != 0] + [WKvO for WKvO in DumB if WKvO == 0]",
"def JPoI(YKHO, xYvp: List[int]) -> None:\n ... | [
"0.68204486",
"0.6741805",
"0.66045904",
"0.6549311",
"0.65383345",
"0.6470629",
"0.6458993",
"0.6444168",
"0.64283675",
"0.64080495",
"0.6401907",
"0.6370814",
"0.63668054",
"0.63651717",
"0.63514364",
"0.6336873",
"0.633462",
"0.63027376",
"0.6301348",
"0.6291057",
"0.62873... | 0.0 | -1 |
Writes the dictionary into a JSON file | def LCKv(YKHO):
try:
from os.path import getsize
if getsize(YKHO.db_path) / 1024 > 1024 ** 3:
print('File Size Limit reached (> 1 GB)')
return False
except FileNotFoundError:
pass
try:
YKHO._lock()
with open(YKHO.db_path, 'w') as _RR0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lsrz(YKHO, Mu0k=None):\n HeoJ = qQXR.dumps(YKHO.json_dict, indent=2)\n YKHO._write_json_text(HeoJ, Mu0k)",
"def Lsrz(YKHO, ytgA, **c_sp):\n qQXR.dump(YKHO._dict, ytgA)",
"def uP8n(cmPJ, Ux0P):\n with open(Ux0P, 'w') as KAfx:\n qQXR.dump(cmPJ, KAfx, indent=4, sort_keys=True)\n print('-... | [
"0.8372794",
"0.827657",
"0.81439865",
"0.8140624",
"0.81330544",
"0.8123982",
"0.80605495",
"0.8054747",
"0.8021045",
"0.7963498",
"0.7939668",
"0.7877664",
"0.7827506",
"0.7780276",
"0.77772033",
"0.77772033",
"0.7754394",
"0.77496463",
"0.7724768",
"0.77154714",
"0.7698979... | 0.0 | -1 |
Compute the discounted reward backwards in time | def AC1_(uf5y, KMvS=0.99):
g2lU = oyIN.zeros_like(uf5y)
S8qo = 0
for a1PO in range(len(uf5y) - 1, -1, -1):
S8qo = S8qo * KMvS + uf5y[a1PO]
g2lU[a1PO] = S8qo
return g2lU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _KvT(YKHO):\n HZCX = YKHO.episode_qualities[-2]\n PG8L = YKHO.episode_qualities[-1]\n vOGg = PG8L - HZCX\n return vOGg",
"def AC1_(vwlo):\n g2lU = oyIN.zeros_like(vwlo)\n S8qo = 0\n for a1PO in reversed(range(0, len(vwlo))):\n S8qo = S8qo * lA6Z + vwlo[a1PO]\n g2lU[a1PO] = ... | [
"0.7364386",
"0.7289322",
"0.72852564",
"0.72272784",
"0.71608216",
"0.71490854",
"0.71231914",
"0.70985013",
"0.7051685",
"0.7003924",
"0.6974387",
"0.695452",
"0.695371",
"0.6940347",
"0.6930859",
"0.6926646",
"0.69232625",
"0.691938",
"0.690888",
"0.68827343",
"0.686575",
... | 0.6623506 | 33 |
L{UserAgent.parse_OPERA} should return a UserAgent instance for an Opera 9 UserAgent string. | def yjsM(YKHO):
YWSi = YE2Q.parse_OPERA('Opera/9.20 (Windows NT 6.0; U; en)')
YKHO.assertEqual(YWSi.browser, vOEc.OPERA)
YKHO.assertEqual(YWSi.version, (9, 20)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8Qh(YKHO):\n YWSi = YE2Q.fromHeaderValue('Opera/9.20 (Windows NT 6.0; U; en)')\n YKHO.assertEqual(YWSi.browser, vOEc.OPERA)",
"def reml(YKHO) -> None:\n if not YKHO.os:\n YKHO.os = lkAZ(YKHO.user_agent, YKHO.ua_hash, YKHO.ua_spaceless, YKHO.VERSION_TRUNCATION).parse()\n YKHO.all_detai... | [
"0.8164038",
"0.56154656",
"0.5230294",
"0.5143173",
"0.5108097",
"0.5104196",
"0.5098348",
"0.4981631",
"0.49663305",
"0.49302748",
"0.49302748",
"0.48782483",
"0.4854487",
"0.48433423",
"0.48423147",
"0.48137057",
"0.48036197",
"0.47970572",
"0.47911474",
"0.47638467",
"0.4... | 0.8391486 | 0 |
Returns True if s is a valid coding or noncoding variant, else False. | def IEVA(KCHu, nhSb=True):
l3Z7(KCHu)
if KCHu == e87M:
return True
elif nhSb:
for GTba in KCHu.split(', '):
kUBT = fhJl.match(GTba)
if kUBT is None:
return False
return True
else:
for GTba in KCHu.split(', '):
kUBT = s9P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzCw(YKHO, KCHu):\n if len(KCHu) == 0:\n return False\n if KCHu in YKHO.whitelist:\n return True\n if KCHu in YKHO.blacklist:\n return False\n if 't' in KCHu and 'f(t' not in KCHu and ('At' not in KCHu):\n return False\n if '1nf' in KCHu:\n return False\n if... | [
"0.72035474",
"0.6961041",
"0.66656667",
"0.6562472",
"0.6549987",
"0.6363448",
"0.63200104",
"0.6189151",
"0.61818963",
"0.6130783",
"0.607805",
"0.6077228",
"0.6064334",
"0.60626346",
"0.6010145",
"0.59984577",
"0.59979177",
"0.59434646",
"0.5941066",
"0.5933571",
"0.592555... | 0.7935333 | 0 |
Store a new experience in the buffer. Params | def qsPF(YKHO, QTBn, XeOP, vOGg, rxHc, Imx0):
if len(YKHO.data) < YKHO.max_data:
YKHO.data.append(tuple((QTBn, XeOP, vOGg, rxHc, Imx0)))
else:
YKHO.data[YKHO.pos] = tuple((QTBn, XeOP, vOGg, rxHc, Imx0))
YKHO.pos += 1
YKHO.pos %= YKHO.max_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, GsKL):\n YKHO.buffer.append(GsKL)",
"def SStx(YKHO, GsKL: Experience) -> None:\n YKHO.buffer.append(GsKL)",
"def VUF1(YKHO, GsKL):\n YKHO.memory.store(GsKL)",
"def lVty(YKHO, GsKL):\n YKHO.memory.append(GsKL)",
"def SStx(YKHO, GsKL):\n YKHO.buffer.append(GsKL)\n YKHO.number... | [
"0.78609574",
"0.75496125",
"0.7474227",
"0.74703896",
"0.74410576",
"0.7265206",
"0.72429717",
"0.68903375",
"0.6808411",
"0.6795076",
"0.66981685",
"0.6487271",
"0.63401425",
"0.6324192",
"0.61409914",
"0.6092154",
"0.6092154",
"0.6092154",
"0.6092154",
"0.6092154",
"0.6092... | 0.0 | -1 |
given a sklearn confusion matrix (cm), make a nice plot Arguments | def kSPN(Bcwd, HOVt, leAC='Confusion matrix', iMGt=None, NkkI=True):
vjyh = oyIN.trace(Bcwd) / float(oyIN.sum(Bcwd))
YBwF = 1 - vjyh
if iMGt is None:
iMGt = QrM1.get_cmap('Blues')
QrM1.figure(figsize=(6, 6), dpi=100)
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LwSz(Bcwd, tGDF):\n JI1i = QrM1.figure(figsize=(10, 10))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyIN.arange(len(tGDF))\n QrM1.xticks(wIWT, tGDF, rotation=45)\n QrM1.yticks(wIWT, tGDF)\n for YRbF, r845 ... | [
"0.79997694",
"0.79955804",
"0.7947871",
"0.79360676",
"0.79129595",
"0.7897813",
"0.7879448",
"0.786082",
"0.786082",
"0.78540397",
"0.78501374",
"0.78499055",
"0.78404397",
"0.7835427",
"0.7828328",
"0.78253037",
"0.78049725",
"0.78017557",
"0.77822274",
"0.77789044",
"0.77... | 0.0 | -1 |
The suffix name of a Global Datastore. If `global_replication_group_id_suffix` is changed, creates a new resource. | def o_uN(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'global_replication_group_id_suffix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_uN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def o_uN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def Ilxf(YKHO, ZI14):\n return '{}.{}'.format(YKHO.METRIC_NAME, ZI14)",
"def yhzQ(YKHO):\n ... | [
"0.75821406",
"0.73900175",
"0.63114595",
"0.61062473",
"0.5968661",
"0.59345704",
"0.59345704",
"0.57732475",
"0.5765001",
"0.5738848",
"0.5736284",
"0.57362837",
"0.57362837",
"0.5734576",
"0.5734576",
"0.5734576",
"0.57225764",
"0.5674524",
"0.56390136",
"0.5615383",
"0.55... | 0.7615214 | 0 |
The number of node groups (shards) on the global replication group. | def aIPA(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'num_node_groups') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIPA(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'num_node_groups')",
"def frCB(YKHO) -> int:\n return YKHO.db_nodes",
"def HuZS(YKHO):\n return YKHO._ngroups",
"def jLqK(YKHO):\n return YKHO.lib.numGroups",
"def B8fO(YKHO):\n return len(oyIN.unique(YKHO._group_index))",
"def EK... | [
"0.83522993",
"0.7570014",
"0.7472229",
"0.7387607",
"0.7048615",
"0.69270694",
"0.6922376",
"0.69174105",
"0.6895419",
"0.68828934",
"0.68451977",
"0.6731325",
"0.67147917",
"0.6699222",
"0.6685127",
"0.6661887",
"0.6639857",
"0.663934",
"0.65800893",
"0.65800893",
"0.657947... | 0.78166443 | 1 |
An ElastiCache Parameter Group to use for the Global Replication Group. Required when upgrading a major engine version, but will be ignored if left configured after the upgrade is complete. Specifying without a major version upgrade will fail. Note that ElastiCache creates a copy of this parameter group for each member... | def wXF1(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'parameter_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DX6B(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['GlobalReplicationGroupGlobalNodeGroupArgs']]]]:\n return qe4Y.get(YKHO, 'global_node_groups')",
"def SSNs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def SSNs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'g... | [
"0.6315814",
"0.63098454",
"0.62625235",
"0.60960543",
"0.5960076",
"0.59239274",
"0.5815941",
"0.57479596",
"0.5639791",
"0.5609459",
"0.55557096",
"0.5471414",
"0.5464035",
"0.5462186",
"0.5452672",
"0.5417358",
"0.53788215",
"0.53788215",
"0.5352837",
"0.5352837",
"0.53338... | 0.58646685 | 9 |
The ARN of the ElastiCache Global Replication Group. | def hMqs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')",
"def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')",
"def R2Qp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_arn')",
"def SSNs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",... | [
"0.71488994",
"0.71488994",
"0.6600374",
"0.6444652",
"0.6354316",
"0.63009393",
"0.6265935",
"0.62371606",
"0.61776507",
"0.60630816",
"0.60525155",
"0.6001442",
"0.5932023",
"0.5887166",
"0.58703905",
"0.58703905",
"0.5858196",
"0.5858196",
"0.5858196",
"0.5858196",
"0.5858... | 0.0 | -1 |
A flag that indicate whether AuthToken (password) is enabled. | def tgLp(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'auth_token_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgLp(YKHO) -> qe4Y.Output[bool]:\n return qe4Y.get(YKHO, 'auth_token_enabled')",
"def sjOI(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_password_verification')",
"def lIHv(YKHO):\n return YKHO._api_manager.auth_enabled()",
"def QLuM(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_password_po... | [
"0.78541464",
"0.7331558",
"0.6996196",
"0.6887527",
"0.6690571",
"0.6675807",
"0.66285187",
"0.66285187",
"0.65334976",
"0.64619863",
"0.6442612",
"0.6406916",
"0.6386982",
"0.6367639",
"0.6358182",
"0.63502973",
"0.63328105",
"0.6332606",
"0.6330039",
"0.63299274",
"0.63182... | 0.7631044 | 1 |
The full ID of the global replication group. | def SSNs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'global_replication_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSNs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def SSNs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_... | [
"0.8922953",
"0.8715425",
"0.78609776",
"0.78609776",
"0.7817306",
"0.7778254",
"0.77731085",
"0.77731085",
"0.77731085",
"0.77731085",
"0.77731085",
"0.7698093",
"0.76713616",
"0.75895303",
"0.75221556",
"0.74650776",
"0.7431197",
"0.7431197",
"0.7431197",
"0.74202573",
"0.7... | 0.8451429 | 2 |
The suffix name of a Global Datastore. If `global_replication_group_id_suffix` is changed, creates a new resource. | def o_uN(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'global_replication_group_id_suffix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_uN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def o_uN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def Ilxf(YKHO, ZI14):\n return '{}.{}'.format(YKHO.METRIC_NAME, ZI14)",
"def yhzQ(YKHO):\n sEAN ... | [
"0.7614175",
"0.738855",
"0.6312056",
"0.61064863",
"0.5966678",
"0.59341055",
"0.59341055",
"0.5774106",
"0.57656735",
"0.5739979",
"0.57364786",
"0.57357436",
"0.57357436",
"0.5733982",
"0.5733982",
"0.5733982",
"0.57242996",
"0.56722844",
"0.56390625",
"0.5616552",
"0.5537... | 0.7580979 | 1 |
The number of node groups (shards) on the global replication group. | def aIPA(YKHO) -> h8nf[qe4Y.Input[int]]:
return qe4Y.get(YKHO, 'num_node_groups') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIPA(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'num_node_groups')",
"def frCB(YKHO) -> int:\n return YKHO.db_nodes",
"def HuZS(YKHO):\n return YKHO._ngroups",
"def jLqK(YKHO):\n return YKHO.lib.numGroups",
"def B8fO(YKHO):\n return len(oyIN.unique(YKHO._group_index))",
"def EK... | [
"0.83522993",
"0.7570014",
"0.7472229",
"0.7387607",
"0.7048615",
"0.69270694",
"0.6922376",
"0.69174105",
"0.6895419",
"0.68828934",
"0.68451977",
"0.6731325",
"0.67147917",
"0.6699222",
"0.6685127",
"0.6661887",
"0.6639857",
"0.663934",
"0.65800893",
"0.65800893",
"0.657947... | 0.78166443 | 2 |
An ElastiCache Parameter Group to use for the Global Replication Group. Required when upgrading a major engine version, but will be ignored if left configured after the upgrade is complete. Specifying without a major version upgrade will fail. Note that ElastiCache creates a copy of this parameter group for each member... | def wXF1(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'parameter_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DX6B(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['GlobalReplicationGroupGlobalNodeGroupArgs']]]]:\n return qe4Y.get(YKHO, 'global_node_groups')",
"def SSNs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def SSNs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'g... | [
"0.6315814",
"0.63098454",
"0.62625235",
"0.60960543",
"0.5960076",
"0.59239274",
"0.5815941",
"0.57479596",
"0.5639791",
"0.5609459",
"0.55557096",
"0.5471414",
"0.5464035",
"0.5462186",
"0.5452672",
"0.5417358",
"0.53788215",
"0.53788215",
"0.5352837",
"0.5352837",
"0.53338... | 0.58646685 | 8 |
The ARN of the ElastiCache Global Replication Group. | def hMqs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')",
"def WtDz(YKHO) -> str:\n return HEOD.get(YKHO, 'logGroupArn')",
"def R2Qp(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'group_arn')",
"def SSNs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",... | [
"0.71488994",
"0.71488994",
"0.6600374",
"0.6444652",
"0.6354316",
"0.63009393",
"0.6265935",
"0.62371606",
"0.61776507",
"0.60630816",
"0.60525155",
"0.6001442",
"0.5932023",
"0.5887166",
"0.58703905",
"0.58703905",
"0.5858196",
"0.5858196",
"0.5858196",
"0.5858196",
"0.5858... | 0.5613111 | 83 |
A flag that indicate whether AuthToken (password) is enabled. | def tgLp(YKHO) -> qe4Y.Output[bool]:
return qe4Y.get(YKHO, 'auth_token_enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgLp(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'auth_token_enabled')",
"def sjOI(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_password_verification')",
"def lIHv(YKHO):\n return YKHO._api_manager.auth_enabled()",
"def QLuM(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_passwo... | [
"0.7631044",
"0.7331558",
"0.6996196",
"0.6887527",
"0.6690571",
"0.6675807",
"0.66285187",
"0.66285187",
"0.65334976",
"0.64619863",
"0.6442612",
"0.6406916",
"0.6386982",
"0.6367639",
"0.6358182",
"0.63502973",
"0.63328105",
"0.6332606",
"0.6330039",
"0.63299274",
"0.631826... | 0.78541464 | 0 |
The full ID of the global replication group. | def SSNs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'global_replication_group_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SSNs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def SSNs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'g... | [
"0.8715425",
"0.8451429",
"0.78609776",
"0.78609776",
"0.7817306",
"0.7778254",
"0.77731085",
"0.77731085",
"0.77731085",
"0.77731085",
"0.77731085",
"0.7698093",
"0.76713616",
"0.75895303",
"0.75221556",
"0.74650776",
"0.7431197",
"0.7431197",
"0.7431197",
"0.74202573",
"0.7... | 0.8922953 | 0 |
The suffix name of a Global Datastore. If `global_replication_group_id_suffix` is changed, creates a new resource. | def o_uN(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'global_replication_group_id_suffix') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_uN(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def o_uN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_id_suffix')",
"def Ilxf(YKHO, ZI14):\n return '{}.{}'.format(YKHO.METRIC_NAME, ZI14)",
"def yhzQ(YKHO):\n ... | [
"0.76153",
"0.75822884",
"0.6310976",
"0.61057687",
"0.5970051",
"0.5932896",
"0.5932896",
"0.57726175",
"0.57640594",
"0.57391673",
"0.5734596",
"0.5734596",
"0.5734333",
"0.57328695",
"0.57328695",
"0.57328695",
"0.5721953",
"0.5675663",
"0.5639129",
"0.56149757",
"0.553959... | 0.7389755 | 2 |
The number of node groups (shards) on the global replication group. | def aIPA(YKHO) -> qe4Y.Output[int]:
return qe4Y.get(YKHO, 'num_node_groups') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aIPA(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'num_node_groups')",
"def aIPA(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'num_node_groups')",
"def frCB(YKHO) -> int:\n return YKHO.db_nodes",
"def HuZS(YKHO):\n return YKHO._ngroups",
"def jLqK(YKHO):\n return YK... | [
"0.7817279",
"0.7817279",
"0.756935",
"0.74731565",
"0.738736",
"0.7049554",
"0.6928447",
"0.69225883",
"0.69194317",
"0.6897756",
"0.68817127",
"0.6847009",
"0.6732832",
"0.6714874",
"0.6701356",
"0.668684",
"0.66623384",
"0.66416687",
"0.6640439",
"0.6582336",
"0.6582336",
... | 0.8353321 | 0 |
An ElastiCache Parameter Group to use for the Global Replication Group. Required when upgrading a major engine version, but will be ignored if left configured after the upgrade is complete. Specifying without a major version upgrade will fail. Note that ElastiCache creates a copy of this parameter group for each member... | def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'parameter_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DX6B(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['GlobalReplicationGroupGlobalNodeGroupArgs']]]]:\n return qe4Y.get(YKHO, 'global_node_groups')",
"def SSNs(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'global_replication_group_id')",
"def SSNs(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'g... | [
"0.6313579",
"0.63073087",
"0.62603456",
"0.6095352",
"0.5959134",
"0.5922795",
"0.58640176",
"0.58640176",
"0.58640176",
"0.58640176",
"0.58136064",
"0.5638838",
"0.56087625",
"0.5553142",
"0.5468814",
"0.5461911",
"0.5460051",
"0.54499197",
"0.54151094",
"0.5376083",
"0.537... | 0.5747309 | 11 |
Extract the Coordinate Reference System from a dataset. | def r7uO(oxOY, format='crs'):
ucxv = None
if 'crs' in oxOY.attrs:
ucxv = QS5L(oxOY.attrs['crs'])
elif 'crs' in oxOY.data_vars:
for hkS8 in oxOY['crs'].attrs:
try:
ucxv = QS5L(oxOY['crs'].attrs[hkS8])
except gDhm:
pass
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRbY(YKHO):\n BHsk = oyIN.zeros((YKHO.dataset.shape[0], 2))\n for YRbF in range(len(YKHO.dataset)):\n BHsk[YRbF, 0] = YKHO.dataset[YRbF][0]\n BHsk[YRbF, 1] = YKHO.dataset[YRbF][1]\n return BHsk",
"def UlWi(v0Tn, Dnx8):\n ZWCE = ['x', 'y', 'tx', 'ty', 'allx', 'ally', 'graph']\n ei... | [
"0.59560275",
"0.5592134",
"0.5390888",
"0.5387635",
"0.53737056",
"0.53553116",
"0.53114814",
"0.5290935",
"0.5283114",
"0.5252196",
"0.52475035",
"0.5243139",
"0.52332735",
"0.522357",
"0.52214783",
"0.5212131",
"0.52078825",
"0.5201327",
"0.519319",
"0.519319",
"0.51886505... | 0.50162125 | 39 |
Extract the bounding box in projection coordinates. | def pmnP(oxOY):
uPnQ = K3I5(oxOY)
if uPnQ is not None:
if isinstance(oxOY, zuVY.Dataset):
Htse = oxOY.dims
elif isinstance(oxOY, zuVY.DataArray):
Htse = dict(zip(oxOY.dims, oxOY.shape))
HN6s = Htse['y']
co3n = Htse['x']
HjHK = (oyIN.array([0, 0, co... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C1GJ(YKHO):\n JQRm = YKHO.ij_to_latlon(-1, -1)\n jjWr = YKHO.ij_to_latlon(-1, YKHO.domain_size[1] + 1)\n DtyP = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, YKHO.domain_size[1] + 1)\n Cuj6 = YKHO.ij_to_latlon(YKHO.domain_size[0] + 1, -1)\n return (JQRm, jjWr, DtyP, Cuj6)",
"def JcC1(YKHO):\n ... | [
"0.8108404",
"0.8057351",
"0.77959454",
"0.7715172",
"0.7651218",
"0.7582781",
"0.7534013",
"0.7534013",
"0.7519656",
"0.7519656",
"0.7515429",
"0.75096154",
"0.750104",
"0.7454508",
"0.74472535",
"0.7413669",
"0.7404383",
"0.7316415",
"0.7286997",
"0.7282726",
"0.72694683",
... | 0.0 | -1 |
This function helps to read the input file and returns them as a dataframe. | def ZAQi(eZ_W, TW6e, TneH, LJIS):
jQ3Z = rLdf.read_csv(eZ_W)
EVev = int(TW6e * len(jQ3Z.index))
kvqp = []
for YRbF in jQ3Z.columns:
kvqp.append(tuple((YRbF,)))
if sum(jQ3Z[YRbF]) >= EVev:
TneH[tuple((YRbF,))] = sum(jQ3Z[YRbF])
else:
LJIS[tuple((YRbF,))] = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iXC1(YKHO) -> rLdf.DataFrame:\n with open(YKHO.file_path, 'r') as nHI3:\n MOPg = nHI3.readline()\n MOPg = MOPg.replace('\\n', '')\n if ',' in MOPg:\n MOPg = MOPg.split(',')\n else:\n MOPg = MOPg.split()\n if MOPg == YKHO.NORMAL_HEADERS:\n return YK... | [
"0.7691001",
"0.7207224",
"0.71596456",
"0.71007",
"0.70995665",
"0.70475525",
"0.7046122",
"0.7046122",
"0.7046122",
"0.6969183",
"0.6926419",
"0.6921795",
"0.6884629",
"0.68508315",
"0.6849374",
"0.6840854",
"0.6813222",
"0.6809105",
"0.677179",
"0.6743672",
"0.6733037",
... | 0.0 | -1 |
Check if `obj` is a sedes object. A sedes object is characterized by having the methods `serialize(obj)` and `deserialize(serial)`. | def Cv6d(YEnM):
return hasattr(YEnM, 'serialize') and hasattr(YEnM, 'deserialize') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jEcB(YEnM):\n if isinstance(YEnM, bool):\n return _J6_\n tO9_ = 'Did not find sedes handling type {}'.format(type(YEnM).__name__)\n raise TypeError(tO9_)",
"def xKy2(YEnM):\n return isinstance(YEnM, object) and type(YEnM) is not type and (type(YEnM) is not SnBA.FunctionType)",
"def Napc(... | [
"0.6362382",
"0.6030905",
"0.5873585",
"0.5794478",
"0.5767871",
"0.5730364",
"0.5640401",
"0.5622459",
"0.56045324",
"0.55965614",
"0.55854946",
"0.55301404",
"0.5494655",
"0.5486527",
"0.539866",
"0.53887683",
"0.53822213",
"0.5375352",
"0.5356565",
"0.5345841",
"0.5338948"... | 0.83887005 | 0 |
figure out if the given number is a prime number | def FBNJ(exwG):
if exwG % 2 == 0:
return False
C5jQ = int(epAf.floor(epAf.sqrt(exwG)))
for YRbF in range(3, C5jQ + 1, 2):
if exwG % YRbF == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n return False",
"def T1qg(FGW3):\n if FGW3 < 2:\n return False\n elif FGW3 == 2:\n return True\n elif FGW3 % 2... | [
"0.86495465",
"0.85478884",
"0.8541501",
"0.85288024",
"0.8469142",
"0.8460555",
"0.8454103",
"0.8430223",
"0.8421361",
"0.842064",
"0.8416806",
"0.8416377",
"0.8405139",
"0.83764076",
"0.8348792",
"0.8346897",
"0.8343302",
"0.8321562",
"0.8300475",
"0.8265365",
"0.8262659",
... | 0.77229595 | 87 |
Generates a random string in hexadecimal with 32 random bytes by default | def wDpi(YKHO, u54L=32):
if u54L < 32:
Ylbp = ({'message': 'Invalid nonce length'}, 400)
else:
bEAa = FXSn.token_hex(pBSp(u54L))
t4on = 'client-generate-nonces.txt'
Ylbp = YKHO.check_nonce(bEAa, t4on, u54L)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LHkZ() -> str:\n Mkmy = tuKI.randrange(0, 255)\n Mkmy = hex(Mkmy)[2:]\n if len(Mkmy) == 1:\n return f'0{Mkmy}'\n return Mkmy",
"def VToW(lIP9=64):\n return MRxC.b2a_hex(Hy7s.urandom(lIP9)).decode()",
"def e7Tf():\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.digits) for... | [
"0.82645386",
"0.81677413",
"0.8086821",
"0.79797643",
"0.7977213",
"0.7943085",
"0.78975016",
"0.7897451",
"0.78172857",
"0.77781373",
"0.76804245",
"0.7676209",
"0.76457465",
"0.7632983",
"0.7600389",
"0.75729936",
"0.75143594",
"0.7462125",
"0.74536085",
"0.74450815",
"0.7... | 0.0 | -1 |
Test connected graph with multiple transpose conv2d | def pKuh(YKHO):
ZylS.compat.v1.reset_default_graph()
with ZylS.device('/cpu:0'):
C3ST = ZylS.keras.Sequential()
C3ST.add(ZylS.keras.layers.Conv2DTranspose(1, (4, 4), input_shape=(28, 28, 3)))
C3ST.add(ZylS.keras.layers.MaxPooling2D((2, 2)))
C3ST.add(ZylS.keras.layers.Conv2DTransp... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d4rw(YKHO):\n ZylS.compat.v1.reset_default_graph()\n bGrB = hTOc()\n nenD = fIov(ZylS.compat.v1.get_default_graph(), ['input_1'], ['conv2d_transpose/BiasAdd'])\n YKHO.assertEqual(nenD.get_all_ops()['conv2d_transpose/conv2d_transpose'].type, 'Conv2DTranspose')",
"def DYf_(YKHO):\n \"\"\" Testin... | [
"0.7270202",
"0.68293214",
"0.67820853",
"0.67175436",
"0.6554241",
"0.65433484",
"0.65023184",
"0.6411989",
"0.6232234",
"0.61262786",
"0.61207384",
"0.6111881",
"0.60179955",
"0.59919953",
"0.59837484",
"0.5981406",
"0.595129",
"0.5950664",
"0.5948734",
"0.5945841",
"0.5941... | 0.7934786 | 0 |
Test connected graph construction on a keras graph with dropout op | def Z9AT(YKHO):
ZylS.compat.v1.reset_default_graph()
bGrB = ZuWV()
nenD = fIov(ZylS.compat.v1.get_default_graph(), ['input_1'], ['dropout_keras_model/Softmax'])
YKHO.assertTrue(U1Xu(nenD))
YKHO.assertTrue(POns(nenD))
YKHO.assertEqual(0, nenD.branch_count)
YKHO.assertEqual(8, len(nenD.get_all... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZuWV():\n g4y1 = ZylS.keras.Input(shape=(10, 10, 3))\n WKvO = ZylS.keras.layers.Conv2D(16, (3, 3))(g4y1)\n WKvO = ZylS.keras.layers.Dropout(rate=0.4)(WKvO)\n WKvO = ZylS.identity(WKvO)\n WKvO = ZylS.keras.layers.Conv2D(8, (2, 2))(WKvO)\n WKvO = ZylS.keras.layers.Flatten()(WKvO)\n o4Jx = Zy... | [
"0.6803065",
"0.66139233",
"0.65148234",
"0.65076566",
"0.6350817",
"0.62594265",
"0.6244908",
"0.61929727",
"0.61395353",
"0.6099732",
"0.6070375",
"0.60554826",
"0.5931202",
"0.5928226",
"0.5914595",
"0.58959526",
"0.58830434",
"0.58760273",
"0.58518887",
"0.58432823",
"0.5... | 0.7467137 | 0 |
This should probably be worked into the new_fragment machinery it basically just assigns an external_ref that is designed according to a custom template and ensured to be unique. But if _get_next_name gets folded into the interface, then new_fragment should use it internally when creating a reference fragment. | def bPzQ(YKHO, _uqo, **B2fa):
sP6J = YKHO._get_next_name(_uqo)
jKyr = YKHO.fg.new_fragment(_uqo, 'Output', Name=sP6J, external_ref=sP6J, **B2fa)
YKHO._refs.append(jKyr)
return jKyr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdKk(YKHO, _uqo):\n sP6J = '%s ASSEMBLY' % _uqo.external_ref\n try:\n YKHO.fg.get(sP6J)\n except OpaB:\n return sP6J\n TQU9 = 0\n while True:\n sP6J = '%s ASSEMBLY alt %d' % (_uqo.external_ref, TQU9)\n try:\n YKHO.fg.get(sP6J)\n TQU9 += 1\n ... | [
"0.5709572",
"0.5610815",
"0.5585535",
"0.5460988",
"0.5428736",
"0.53512573",
"0.5341894",
"0.5315185",
"0.5315067",
"0.5300112",
"0.5278231",
"0.5274674",
"0.5243231",
"0.5242421",
"0.52257574",
"0.51911384",
"0.51852965",
"0.5163999",
"0.51316637",
"0.50838184",
"0.5050216... | 0.63499963 | 0 |
Create and save a User with the given email and password. | def xWi2(YKHO, D3lj, jTXt, **wdCM):
if not D3lj:
raise ValueError('The given email must be set')
D3lj = YKHO.normalize_email(D3lj)
CBIr = YKHO.model(email=D3lj, **wdCM)
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('Vous devez renseigner un email!')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save(using=YKHO._db)\n return CBIr",
"def xWi2(YKHO, D3lj, jTXt, **wdCM):\... | [
"0.8511467",
"0.85078454",
"0.85021895",
"0.85021806",
"0.8489139",
"0.8489139",
"0.8488738",
"0.8488738",
"0.8488738",
"0.84858716",
"0.84768116",
"0.8475896",
"0.84750444",
"0.84750444",
"0.84750444",
"0.84750444",
"0.84750444",
"0.84750444",
"0.84750444",
"0.84750444",
"0.... | 0.85441065 | 0 |
Configures the bot with a Telegram Token. Returns a bot instance. | def bot5():
JdDN = Hy7s.environ.get('TELEGRAM_TOKEN')
if not JdDN:
bo34.error('The TELEGRAM_TOKEN must be set')
raise NotImplementedError
return aoUU.Bot(JdDN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, rjWG: str) -> None:\n super(a7j3, YKHO).__init__()\n YKHO.TOKEN = rjWG\n YKHO.URL = f'https://api.telegram.org/bot{rjWG}/'\n G9jH.debug('Telegram Bot ready')",
"def aoUU(YKHO, hJxb=None, GIwF=None, H5ew=None):\n return rw_n(YKHO, hJxb, GIwF, H5ew)",
"async def set_bot():\n YKHO... | [
"0.71838427",
"0.598269",
"0.5755125",
"0.56100076",
"0.56100076",
"0.5572895",
"0.5554391",
"0.554791",
"0.5497328",
"0.5492029",
"0.54629433",
"0.5387489",
"0.53853995",
"0.5382343",
"0.5382343",
"0.5310844",
"0.5294854",
"0.5289101",
"0.52847594",
"0.52706236",
"0.5263624"... | 0.7841998 | 0 |
Returns the sum of the first n integers [1, n]. | def wwGP(exwG):
return exwG * (exwG + 1) // 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SdCg(exwG):\n if exwG > 0:\n return sum(range(exwG + 1))\n else:\n return 0",
"def c3OH(exwG):\n sum = 0\n G1Hx = 0\n while G1Hx != exwG:\n G1Hx += 1\n sum += G1Hx\n return sum",
"def WFmP(exwG):\n wjRY = 0\n for YRbF in range(1, exwG + 1):\n wjRY ... | [
"0.8372894",
"0.82741934",
"0.82374406",
"0.8102394",
"0.8029557",
"0.7925527",
"0.7882119",
"0.7874917",
"0.77134466",
"0.77134466",
"0.75713056",
"0.74466485",
"0.7434572",
"0.74294776",
"0.7387028",
"0.7360476",
"0.7307361",
"0.72442234",
"0.72421163",
"0.7233952",
"0.7123... | 0.0 | -1 |
Asks user to specify a city, month, and day to analyse. | def RxGd():
print("Hello! Let's explore some US bikeshare data!")
j5sA = input('Which city would you like to see bikeshare data from?\n')
while j5sA.lower() not in gysO:
j5sA = input('We only have data for Chicago, New York City, and Washington. Pick again\n')
DbAa = ['month', 'day', 'both', 'no... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)",
"def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit... | [
"0.66761404",
"0.663546",
"0.6440627",
"0.6404285",
"0.6388439",
"0.6347631",
"0.6313973",
"0.6287964",
"0.62619716",
"0.626152",
"0.6253766",
"0.6250932",
"0.6239717",
"0.6222759",
"0.6185614",
"0.6158984",
"0.6146623",
"0.6144539",
"0.61367893",
"0.6131773",
"0.6129655",
... | 0.5747328 | 82 |
Loads data for the specified city and filters by month and day if applicable. | def UlWi(j5sA, x0eS, CjKC):
jQ3Z = rLdf.read_csv(OerS[j5sA.lower()])
jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])
jQ3Z['month'] = jQ3Z['Start Time'].dt.month
jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.dayofweek
if x0eS != 'all':
x0eS = X_bn.index(x0eS.lower()) + 1
jQ3Z ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =... | [
"0.813227",
"0.8108956",
"0.8046483",
"0.8042587",
"0.8009157",
"0.80073005",
"0.7999508",
"0.7998818",
"0.79889566",
"0.7979226",
"0.7973997",
"0.7961329",
"0.79560906",
"0.7947187",
"0.794649",
"0.7908341",
"0.79083204",
"0.7904475",
"0.79011774",
"0.78934294",
"0.78827393"... | 0.7889157 | 20 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
try:
QKdG = jQ3Z['month'].mode()[0]
sve5 = X_bn[QKdG - 1]
print('The most popular month is: ', sve5.title())
except:
print('Not suitable for your selection.')
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ... | [
"0.8023522",
"0.802221",
"0.7914353",
"0.7826378",
"0.7821697",
"0.78140223",
"0.7765606",
"0.7739828",
"0.7735833",
"0.7733764",
"0.7686237",
"0.76675326",
"0.7651101",
"0.7644171",
"0.7639292",
"0.7636152",
"0.76248395",
"0.76227194",
"0.7611663",
"0.7599656",
"0.75825727",... | 0.7343545 | 51 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
EaVT = jQ3Z['Start Station'].mode()[0]
print('The most common Start Station is: ', EaVT)
Vmr7 = jQ3Z['End Station'].mode()[0]
print('The most common End Station is: ', Vmr7)
uHSi = jQ3Z.groupby(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(nPrm):\n print('\\nCalculating The M... | [
"0.78170687",
"0.76637906",
"0.75547594",
"0.74924624",
"0.7475916",
"0.7447317",
"0.74322265",
"0.7424947",
"0.74187243",
"0.7401574",
"0.7388717",
"0.73868257",
"0.7366443",
"0.7360476",
"0.735797",
"0.7356537",
"0.73533744",
"0.7352685",
"0.7351529",
"0.73434633",
"0.73414... | 0.7235295 | 37 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
iVHS = jQ3Z['Trip Duration'].sum()
bJiw = JRYC.timedelta(seconds=int(iVHS))
print('The total travel time was: ', bJiw)
hUiG = jQ3Z['Trip Duration'].mean()
RB_u = JRYC.timedelta(seconds=int(hUiG))
print('The mean... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.78020316 | 45 |
A string representation of the candidate semester of this event. Assumes that there are only spring and fall semesters, separated at 07/01. | def YzNf(YKHO):
return g5gG(YKHO.start_time) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzNf(YKHO):\n return YKHO.course.semester",
"def vB0J(YKHO):\n return '{0}th year, section {1}, {2} {3}'.format(YKHO.batch, YKHO.batch_id, YKHO.batch, YKHO.batch_id)",
"def zAg0(YKHO):\n return '%s, %02d, %s' % (YKHO.code, YKHO.section, YKHO.semester)",
"def hi_2(YKHO):\n if YKHO.semester.low... | [
"0.7017857",
"0.6556487",
"0.6232291",
"0.60339814",
"0.59314996",
"0.56894875",
"0.56170887",
"0.55374897",
"0.54927564",
"0.5439712",
"0.54395586",
"0.5403159",
"0.5381232",
"0.5254202",
"0.5158659",
"0.5129786",
"0.49786425",
"0.49498373",
"0.49333057",
"0.49302572",
"0.48... | 0.7237193 | 0 |
Verify applications can be sorted. | def dakN(YKHO):
assert YKHO.app2 < YKHO.app1
assert YKHO.app3 > YKHO.app2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5Cw(YKHO):\n pass",
"def gAIf(YKHO):\n pvPC = YKHO.create_app_with_contributors(8, 0, name='three')\n WPdd = YKHO.create_app_with_contributors(9, 0, name='two')\n anHw = YKHO.create_app_with_contributors(10, 0, name='one')\n kS8W = YKHO.create_app_with_contributors(7, 0, name='four')\n WyN... | [
"0.58484405",
"0.5786501",
"0.57349646",
"0.5719213",
"0.5642342",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
"0.56104136",
... | 0.5777742 | 2 |
Loop through the graph via DFS. Take note of each node visited. Get the neighbors of each visited node and, if one of the neighbors has been visited previously, the graph is acyclic (we have found a "back edge"). Return True is the graph is acyclic ("no cycles"). Otherwise False. | def ZTM3(pNZh):
azXi = []
d7CQ = cH4a(pNZh)
for Q6kx in d7CQ:
azXi.insert(0, Q6kx)
mowx = pNZh.get_neighbors(Q6kx)
for AAbN in mowx:
if AAbN in azXi:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OgLE(YKHO):\n azXi = set()\n pmON = []\n for Q6kx in YKHO.node_set:\n if Q6kx not in azXi:\n if YKHO.is_cyclic_helper(Q6kx, azXi, pmON) is True:\n return True\n azXi.clear()\n pmON.clear()\n return False",
"def mLRq(YKHO):\n azXi = [False for YRbF in rang... | [
"0.79722095",
"0.79352635",
"0.7882874",
"0.7679681",
"0.75684035",
"0.7491147",
"0.745476",
"0.7437086",
"0.742106",
"0.74135935",
"0.73694307",
"0.7327075",
"0.7285766",
"0.71912336",
"0.7112109",
"0.7097216",
"0.7024811",
"0.6963287",
"0.69419026",
"0.6941177",
"0.6887429"... | 0.8334848 | 0 |
Display buttons on my deck part of the screen | def h6ly(Vjhr, fRFN, oO0D, CDPr, vzaY, CBIr):
OF2Z = wAYe(CBIr)
if CBIr.character_card == '':
V_Tw = D04X('Character: 0/1', '', (250, 250, 250), 50, 560, 150, 30, font_color=(255, 60, 60), alpha=150)
else:
V_Tw = D04X('Character: 1/1', '', (250, 250, 250), 50, 560, 150, 30, font_color=(0, 0,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DBDi(Vjhr, fRFN, oO0D, CDPr):\n nBRS = D04X('Save', 'build_deck_screen', (250, 250, 250), 1150, 0, 50, 50, font_color=(0, 0, 0), alpha=150)\n nBRS.update()\n nBRS.draw(Vjhr)\n T3TS = D04X('Build your deck by picking 40 cards below: ', 'build_deck_screen', (250, 250, 250), 300, 0, 600, 50, font_colo... | [
"0.7215322",
"0.7088829",
"0.706845",
"0.6976967",
"0.69417405",
"0.6860475",
"0.68331236",
"0.67572856",
"0.6740697",
"0.6568086",
"0.6565316",
"0.65535647",
"0.6535624",
"0.6518689",
"0.6500669",
"0.6498479",
"0.6438394",
"0.6407794",
"0.63959336",
"0.63953567",
"0.63482314... | 0.71127164 | 1 |
Display buttons in my hand on battle screen | def mlYt(Vjhr, fRFN, oO0D, CDPr, vzaY, CBIr):
if oO0D.battle_screen_action_indicator != 'stage-0':
V_Tw = D04X('>', '', (0, 0, 0), 1100, 660, 50, 50)
if len(CBIr.hand_list) % 7 == 0 and len(CBIr.hand_list) != 0:
if oO0D.battle_screen_my_hand_page_id != len(CBIr.hand_list) // 7:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C2Ml(Vjhr, fRFN, oO0D, CDPr, vzaY, CBIr):\n GCV7 = D04X('Lv: ' + CBIr.character_card.level + ' HP: ' + CBIr.character_card.health + ' Card #: ' + str(len(CBIr.hand_list)), '', (0, 0, 0), 1000, 0, 200, 30, alpha=100)\n GCV7.update()\n GCV7.draw(Vjhr)\n if 'stage-2-character-action-1' in oO0D.battl... | [
"0.7400225",
"0.72634995",
"0.72240454",
"0.7212437",
"0.7196902",
"0.7156687",
"0.711871",
"0.70304376",
"0.7024443",
"0.693146",
"0.6888981",
"0.6838892",
"0.6826134",
"0.6818473",
"0.67814416",
"0.6760153",
"0.66341984",
"0.66273",
"0.6626192",
"0.66169685",
"0.66049874",
... | 0.77452433 | 0 |
Assign default training parameters. | def cBKH():
qMFG = 100
Pp2K = 64
BVxk = 0.0001
return (qMFG, Pp2K, BVxk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E28F(VULH):\n if VULH:\n JkES, Ep8u, _hZ2 = cBKH()\n return (JkES, Ep8u, _hZ2)\n print('Select number of epochs to train (default 100):')\n JkES = int(input())\n print('Select batch size (default 64):')\n Ep8u = int(input())\n print('Select learning rate (default 0.0001):')\n ... | [
"0.75077623",
"0.7238071",
"0.7210219",
"0.71838194",
"0.7112171",
"0.70919997",
"0.7058195",
"0.6993066",
"0.67845136",
"0.6687815",
"0.6683278",
"0.66686547",
"0.66615415",
"0.6625849",
"0.662339",
"0.662339",
"0.6563328",
"0.6550092",
"0.6549268",
"0.65455294",
"0.653711",... | 0.7801491 | 0 |
This test should be implemented. The goal is to test that we are able to query for a device's min sensor reading. | def UMy5(YKHO):
QePW = YKHO.client().get('/devices/{}/readings/min/'.format(YKHO.device_uuid))
YKHO.assertEqual(QePW.json.get('value', None), 22) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LKF0(B3B9):\n if P4t4.config['TESTING']:\n w2B8 = iHv3.connect('test_database.db')\n else:\n w2B8 = iHv3.connect('database.db')\n w2B8.row_factory = iHv3.Row\n DpUl = w2B8.cursor()\n DpUl.execute('select min(value) from readings where device_uuid=\"{}\"'.format(B3B9))\n usx6 = D... | [
"0.6890985",
"0.6571122",
"0.6453831",
"0.63936716",
"0.6268402",
"0.62332904",
"0.62310725",
"0.61720884",
"0.61489606",
"0.6097589",
"0.60669273",
"0.60669273",
"0.60360056",
"0.60324496",
"0.6026906",
"0.60188735",
"0.5962089",
"0.5957457",
"0.594849",
"0.5937988",
"0.5936... | 0.7703251 | 0 |
This test should be implemented. The goal is to test that we are able to query for a device's max sensor reading. | def hRhB(YKHO):
QePW = YKHO.client().get('/devices/{}/readings/max/'.format(YKHO.device_uuid))
YKHO.assertEqual(QePW.json.get('value', None), 100) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZxtG(B3B9):\n if P4t4.config['TESTING']:\n w2B8 = iHv3.connect('test_database.db')\n else:\n w2B8 = iHv3.connect('database.db')\n w2B8.row_factory = iHv3.Row\n DpUl = w2B8.cursor()\n DpUl.execute('select MAX(value) from readings where device_uuid=\"{}\"'.format(B3B9))\n usx6 = D... | [
"0.69908476",
"0.67816466",
"0.66820204",
"0.649431",
"0.6472194",
"0.6464675",
"0.6440061",
"0.6235329",
"0.6178303",
"0.6152396",
"0.61118066",
"0.6083506",
"0.6083506",
"0.6075236",
"0.5995309",
"0.5978684",
"0.5974685",
"0.58784515",
"0.5873748",
"0.58549875",
"0.58403736... | 0.8063827 | 0 |
This test should be implemented. The goal is to test that we are able to query for a device's mean sensor reading value. | def kY7q(YKHO):
QePW = YKHO.client().get('/devices/{}/readings/mean/'.format(YKHO.device_uuid))
YKHO.assertEqual(QePW.json.get('value', None), 61) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GAAg(YKHO):\n s6vv = YKHO.info_list.get_value_info()\n print(s6vv['amount'])\n YKHO.assertEqual(s6vv['mean'], 135.0)",
"def Y8y_(B3B9):\n if P4t4.config['TESTING']:\n w2B8 = iHv3.connect('test_database.db')\n else:\n w2B8 = iHv3.connect('database.db')\n w2B8.row_factory = iHv3... | [
"0.6797275",
"0.6746199",
"0.67386156",
"0.67386156",
"0.6603054",
"0.6469152",
"0.6420717",
"0.63960916",
"0.62147856",
"0.6162081",
"0.6131403",
"0.61129016",
"0.6111855",
"0.60883254",
"0.60755956",
"0.60737747",
"0.6071952",
"0.6054504",
"0.6048195",
"0.6011008",
"0.59919... | 0.80363446 | 0 |
GET a list of Pages. | def NMoC(YKHO, QePW):
Gqqd = YKHO.get_queryset().all()
return _1tc(QePW, 'list.html', {'pages': Gqqd}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KTi3(QePW):\n QpfX = K1Ja(QePW)\n Gqqd = QePW.website.get_pages()\n return SGJU('pages/list_pages.html', {'pages': Gqqd}, QpfX)",
"def list(YKHO, QePW):\n YGfp = QePW.query_params.get('url', None)\n ZMzz = kziG(instance=rgUz(url=YGfp), many=False)\n return oGir(ZMzz.data)",
"def Pfmr(YKHO... | [
"0.77786064",
"0.7577209",
"0.7013189",
"0.6987679",
"0.69482005",
"0.6886229",
"0.6827389",
"0.67998",
"0.67509806",
"0.6702824",
"0.6658481",
"0.66021645",
"0.65862703",
"0.65639615",
"0.6552138",
"0.65515673",
"0.64796925",
"0.64738864",
"0.6440241",
"0.6409216",
"0.638137... | 0.75349367 | 3 |
Initialize state tomography fitter with experimental data. | def FIMM(YKHO, Aofo, SFUt, dzpf):
YKHO._circuits = SFUt
YKHO._result = Aofo
YKHO._qubit_list = sorted(dzpf)
YKHO._meas_basis = None
YKHO._prep_basis = None
super().set_measure_basis('Pauli')
super().set_preparation_basis('Pauli')
YKHO._data = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k3MF(YKHO, **ASiz):\n YKHO._update(time_step=0.0, **ASiz)",
"def HA9M(YKHO, QTBn):\n QTBn.tau = YKHO.rng.gamma(0.5, 1 / YKHO.fixed.tau_rate)\n RHJb = YKHO.rng.standard_normal(YKHO.fixed.n)\n RHJb = RHJb - RHJb.mean()\n QTBn.eta = RHJb\n QTBn.spatial = YKHO.state.eta\n QTBn.alpha = YKHO.r... | [
"0.6305635",
"0.6159471",
"0.6149039",
"0.6100188",
"0.6086526",
"0.60727346",
"0.6029454",
"0.60261595",
"0.60190654",
"0.60018253",
"0.59867364",
"0.5957666",
"0.5954296",
"0.59436774",
"0.59387785",
"0.59387785",
"0.59387785",
"0.59387785",
"0.59387785",
"0.59277606",
"0.5... | 0.0 | -1 |
Disambiguate some word according to tag guessing to reduce cases. return word list with dismbiguate. | def L2CG(YKHO, vwCE, Y5bi):
if len(vwCE) == 0 or len(vwCE) != len(Y5bi):
return vwCE
else:
HeSP = []
YwMo = list(zip(vwCE, Y5bi))
for YRbF in range(len(YwMo)):
wOex = YwMo[YRbF][0]
if YRbF + 1 < len(YwMo):
C7AK = YwMo[YRbF + 1][1]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G7kN(YKHO, vwCE, Y5bi):\n if len(vwCE) == 0 or len(vwCE) != len(Y5bi):\n return vwCE\n else:\n HeSP = []\n YwMo = zip(vwCE, Y5bi)\n for YRbF in range(len(YwMo)):\n if YRbF + 1 <= len(YwMo):\n if YwMo[YRbF][0] == u'أن' and YKHO.tagger.isVerbTag(YwMo[YR... | [
"0.8081535",
"0.67247176",
"0.65766335",
"0.6324581",
"0.6324581",
"0.6203217",
"0.61880946",
"0.61800396",
"0.61464",
"0.61140853",
"0.60791016",
"0.6070367",
"0.60469097",
"0.604219",
"0.60194933",
"0.6017979",
"0.59741116",
"0.5970288",
"0.5942556",
"0.5856558",
"0.5848363... | 0.8451448 | 0 |
Disambiguate some word according to tag guessing to reduce cases. return word list with dismbiguate. | def G7kN(YKHO, vwCE, Y5bi):
if len(vwCE) == 0 or len(vwCE) != len(Y5bi):
return vwCE
else:
HeSP = []
YwMo = zip(vwCE, Y5bi)
for YRbF in range(len(YwMo)):
if YRbF + 1 <= len(YwMo):
if YwMo[YRbF][0] == u'أن' and YKHO.tagger.isVerbTag(YwMo[YRbF + 1][1]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2CG(YKHO, vwCE, Y5bi):\n if len(vwCE) == 0 or len(vwCE) != len(Y5bi):\n return vwCE\n else:\n HeSP = []\n YwMo = list(zip(vwCE, Y5bi))\n for YRbF in range(len(YwMo)):\n wOex = YwMo[YRbF][0]\n if YRbF + 1 < len(YwMo):\n C7AK = YwMo[YRbF + 1... | [
"0.8450991",
"0.6725538",
"0.65770364",
"0.63254696",
"0.63254696",
"0.62011534",
"0.61856633",
"0.6182049",
"0.61485046",
"0.6114921",
"0.6078041",
"0.6071126",
"0.6046797",
"0.6042672",
"0.6019203",
"0.60183555",
"0.5975254",
"0.59701055",
"0.5943359",
"0.5858394",
"0.58491... | 0.8082038 | 1 |
Set the daemon status and optionally notify the network event log. Can return a deferred, but can't ever return/throw an error. | def Bica(YKHO, jGRS):
if jGRS:
RKD7.debug('The DHCP daemon is running')
else:
RKD7.debug('The DHCP daemon is NOT running')
YKHO.daemon_running = jGRS
return ntd0.succeed(None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BRgj(QTBn, bo34, Ekc2=False):\n rRzo = Hy7s.environ.get('NOTIFY_SOCKET')\n if rRzo is None:\n return\n try:\n iG42 = GGmw.socket(GGmw.AF_UNIX, GGmw.SOCK_DGRAM | GGmw.SOCK_CLOEXEC)\n if rRzo[0] == '@':\n rRzo = '\\x00' + rRzo[1:]\n iG42.connect(rRzo)\n iG42... | [
"0.60928535",
"0.5974307",
"0.5337039",
"0.5258123",
"0.52459043",
"0.52405065",
"0.5232672",
"0.52219564",
"0.5196447",
"0.51791424",
"0.5144387",
"0.5139187",
"0.5137963",
"0.51335806",
"0.5129074",
"0.512557",
"0.5073991",
"0.505162",
"0.5044884",
"0.5013629",
"0.5013629",... | 0.70232785 | 0 |
Set up the Selenium WebDriver | def w6BP(YKHO):
E_qD = cSpz.Chrome(YKHO.CHROME_DRIVER_PATH, options=YKHO.CHROME_DRIVER_OPTIONS)
E_qD.implicitly_wait(1)
E_qD.set_window_size(1024, 768)
return E_qD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zW6E():\n xAU6 = lE6K()\n xAU6.headless = True\n E_qD = cSpz.Firefox(options=xAU6, executable_path='./geckodriver')\n E_qD.implicitly_wait(30)\n return E_qD",
"def MCqD(YKHO):\n try:\n YKHO.driver = cSpz.Firefox()\n except Exception:\n YKHO.driver = False",
"def FCbF(YKHO... | [
"0.80957204",
"0.7895889",
"0.77725184",
"0.7755568",
"0.75431895",
"0.7535406",
"0.7531819",
"0.7520694",
"0.74798405",
"0.74716574",
"0.74412465",
"0.7428584",
"0.74038625",
"0.7334214",
"0.7235906",
"0.71374977",
"0.7127531",
"0.705608",
"0.7005122",
"0.6949775",
"0.694822... | 0.5845121 | 77 |
Returns the input image with 4 channels. | def qvpR(VXjJ, Cwt5=1.0, yDqo=oyIN.float32, jth9=False):
VXjJ = FRkN.ensure_float01(VXjJ, dtype=yDqo, copy=jth9)
Z9rn = FRkN.num_channels(VXjJ)
if Z9rn == 4:
return VXjJ
else:
if isinstance(Cwt5, oyIN.ndarray):
MgmI = Cwt5
else:
MgmI = oyIN.full(VXjJ.shape... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cMYb(YKHO):\n LNo8 = oyIN.frombuffer(YKHO.image, dtype=oyIN.uint8)\n return LNo8.reshape(*YKHO.size, YKHO.channels)",
"def UXSc(slice, qhsJ=[], ViYq=0):\n assert slice.ndim < 3\n VXjJ = oyIN.zeros(slice.shape)\n VXjJ = VXjJ[:, :, oyIN.newaxis]\n VXjJ = oyIN.repeat(VXjJ, 4, 2)\n ViYq = 25... | [
"0.65052915",
"0.62954444",
"0.6291726",
"0.62606514",
"0.6210046",
"0.6197939",
"0.61012167",
"0.6079313",
"0.60474336",
"0.5965715",
"0.59653324",
"0.59547",
"0.5927908",
"0.59140015",
"0.589234",
"0.5862352",
"0.58399814",
"0.57753974",
"0.5772434",
"0.57709444",
"0.575892... | 0.0 | -1 |
Converts to k8s object. | def xKKk(YKHO):
return KsAw.V1EnvVar(name=YKHO.name, value_from=KsAw.V1EnvVarSource(field_ref=KsAw.V1ObjectFieldSelector(field_path=YKHO.field_path))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IxMu(GPtr, gnx_):\n return aEgH.K8SManager(GPtr, gnx_)",
"def V8E7(YKHO):\n return WwwH.client.V1Service(api_version='v1', kind='Service', metadata=WwwH.client.V1ObjectMeta(name=YKHO._k8s_service_name), spec=WwwH.client.V1ServiceSpec(selector={'app.kubernetes.io/name': YKHO.app.name}, ports=[WwwH.clien... | [
"0.5636383",
"0.5443655",
"0.5418372",
"0.5281964",
"0.5244229",
"0.5205539",
"0.51404375",
"0.5109452",
"0.5026323",
"0.4930715",
"0.48713803",
"0.4821201",
"0.48063555",
"0.4779449",
"0.47574177",
"0.47288087",
"0.4722481",
"0.4696967",
"0.46841544",
"0.46777323",
"0.467523... | 0.599036 | 0 |
Define the layers and initialize them. Pytorch initializes the layers by default, with random weights, sampled from certain distribution. However, in some cases you might want to explicitly initialize some layers, either by sampling from a different distribution, or by using pretrained weights (word embeddings / transf... | def FIMM(YKHO, KTQ3, Norb, a6Jb, inPX, eCOH):
super(y7b2, YKHO).__init__()
mfVz = False
YKHO.word_embeddings = U78l.Embedding(num_embeddings=KTQ3.shape[0], embedding_dim=KTQ3.shape[1])
YKHO.init_embeddings(KTQ3, mfVz)
YKHO.drop_emb = U78l.Dropout(inPX)
YKHO.hidden_dim = Norb
YKHO.lstm = U78l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data.... | [
"0.75832784",
"0.7390319",
"0.7380712",
"0.72391194",
"0.72320354",
"0.72320354",
"0.72320354",
"0.71570826",
"0.71200925",
"0.7118806",
"0.7114382",
"0.7111402",
"0.7105092",
"0.7077508",
"0.7073865",
"0.7031268",
"0.70299476",
"0.6989486",
"0.69741344",
"0.6965085",
"0.6962... | 0.0 | -1 |
Define the layers and initialize them. Pytorch initializes the layers by default, with random weights, sampled from certain distribution. However, in some cases you might want to explicitly initialize some layers, either by sampling from a different distribution, or by using pretrained weights (word embeddings / transf... | def FIMM(YKHO, KTQ3, Norb, a6Jb, inPX, eCOH):
super(yISA, YKHO).__init__()
mfVz = False
YKHO.word_embeddings = U78l.Embedding(num_embeddings=KTQ3.shape[0], embedding_dim=KTQ3.shape[1])
YKHO.init_embeddings(KTQ3, mfVz)
YKHO.drop_emb = U78l.Dropout(inPX)
YKHO.hidden_dim = Norb
YKHO.lstm = U78l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yYlq(gEmA):\n if gEmA.weight.ndimension() == 4:\n _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size()\n exwG = Ya2q * H2v2 * TVTK\n elif gEmA.weight.ndimension() == 2:\n _LFN, exwG = gEmA.weight.size()\n M1Jx = epAf.sqrt(2.0 / exwG)\n NXpY = M1Jx * epAf.sqrt(3.0)\n gEmA.weight.data.... | [
"0.75831205",
"0.7390998",
"0.7380499",
"0.7238596",
"0.7231267",
"0.7231267",
"0.7231267",
"0.71567327",
"0.7121631",
"0.7117871",
"0.71157223",
"0.71108466",
"0.7104864",
"0.7079051",
"0.70735395",
"0.70315176",
"0.70293117",
"0.6989293",
"0.6973822",
"0.69655734",
"0.69622... | 0.0 | -1 |
Returns an int64_list from a bool / enum / int / uint. | def Oety(BWXx):
if type(BWXx) != list and type(BWXx) != oyIN.ndarray:
BWXx = [BWXx]
return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tuple)):\n Aofo.append(Kmpz(d7pR))\n elif d7pR is True:\n Aofo.append(1)\n elif d7pR is False:\n Aofo.append(0)\n else:\n Aofo.append(d7pR)\n return Aofo",
... | [
"0.6880756",
"0.65959364",
"0.64623183",
"0.6449189",
"0.6366776",
"0.62898964",
"0.6271142",
"0.6215376",
"0.61042506",
"0.59511524",
"0.59452623",
"0.5903748",
"0.5866437",
"0.5866437",
"0.5856854",
"0.58461636",
"0.58444816",
"0.583239",
"0.5803493",
"0.57961476",
"0.57961... | 0.5653262 | 34 |
Plot value count top values of a list of categorical features | def C1GE(jQ3Z, fRn_, tlxW=10, a2vR=False, BqxI=None):
fRn_ = list(set(fRn_))
WfCS = fRn_
if len(WfCS) != 0:
for YRbF, fvDH in sorted(list(enumerate(WfCS)), key=lambda WKvO: WKvO[1]):
LZpg, aNZO = QrM1.subplots()
LZpg.set_size_inches(4.5, 5.5)
LZpg.set_size_inches(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZiRd(AmnI, KxLt, LeZt, exwG):\n OeUg = oyIN.asarray(KxLt.get_feature_names())\n for YRbF, Ghho in enumerate(LeZt):\n WJ3Z = oyIN.argsort(AmnI.coef_[YRbF])[-exwG:]\n print('{}: {}'.format(Ghho, ', '.join(OeUg[WJ3Z])))",
"def xzHL(jQ3Z, fRn_, a2vR=False, BqxI=None):\n fRn_ = list(set(fRn... | [
"0.7120824",
"0.7003644",
"0.68860495",
"0.6388988",
"0.6388988",
"0.6301415",
"0.6292761",
"0.62668765",
"0.62416637",
"0.61124873",
"0.60949624",
"0.6066097",
"0.59973836",
"0.5977678",
"0.5945544",
"0.5930342",
"0.59113705",
"0.58947104",
"0.587464",
"0.58605313",
"0.58580... | 0.7627669 | 0 |
Plot value count bottom values of a list of categorical features | def onZX(jQ3Z, fRn_, es2x=10, a2vR=False, BqxI=None):
fRn_ = list(set(fRn_))
WfCS = fRn_
if len(WfCS) != 0:
for YRbF, fvDH in sorted(list(enumerate(WfCS)), key=lambda WKvO: WKvO[1]):
LZpg, aNZO = QrM1.subplots()
LZpg.set_size_inches(4.5, 5.5)
LZpg.set_size_inches(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xzHL(jQ3Z, fRn_, a2vR=False, BqxI=None):\n fRn_ = list(set(fRn_))\n if len(fRn_) != []:\n U1Zn = []\n aBa7 = []\n for fvDH in fRn_:\n if jQ3Z[fvDH].nunique() < 30:\n U1Zn.append(fvDH)\n else:\n aBa7.append(fvDH)\n if U1Zn != ... | [
"0.7504523",
"0.6826147",
"0.6235299",
"0.6231499",
"0.61579686",
"0.6136962",
"0.6119237",
"0.6079324",
"0.6073302",
"0.6070827",
"0.6039404",
"0.6030102",
"0.60080373",
"0.6001914",
"0.59463054",
"0.59300244",
"0.5867888",
"0.58644736",
"0.58378446",
"0.58209765",
"0.577144... | 0.70301676 | 1 |
Plot box_plot of continuous features | def wzBf(jQ3Z, bP0K, SRY4=0.05, a2vR=False, BqxI=None):
bP0K = list(set(bP0K))
if len(bP0K) != 0:
j2wQ = min(2, len(bP0K))
r845 = int(len(bP0K) / 2) + 1
QrM1.figure(figsize=(4.5 ** j2wQ, 4.5 ** j2wQ))
for YRbF, fvDH in enumerate(bP0K):
if SRY4 != None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wLS1(nPrm):\n uuEx.boxplot(nPrm, width=0.5, palette='colorblind')\n uuEx.swarmplot(nPrm, color='red', alpha=0.75)",
"def wD3Z(jQ3Z, ZUpF, APjA, f9ID=False, dRHZ=0):\n LZpg, aNZO = QrM1.subplots(figsize=(8, 6))\n if f9ID:\n QrM1.yscale('log')\n uuEx.boxplot(ax=aNZO, data=jQ3Z, x=str(ZUpF... | [
"0.738606",
"0.69259024",
"0.6848107",
"0.68190604",
"0.67502296",
"0.6716791",
"0.66170007",
"0.65864587",
"0.6500164",
"0.64726126",
"0.6431978",
"0.64090055",
"0.6396103",
"0.6375251",
"0.6252211",
"0.6212638",
"0.6208042",
"0.6180333",
"0.6087304",
"0.60672355",
"0.606636... | 0.6945767 | 1 |
Number of different values of column cat2 for every category of column cat1 | def bfob(jQ3Z, uemn, xHEg, wytA=(12, 5), NkkI=False, RBZG=1, a2vR=False, BqxI=None):
Kn81 = jQ3Z.groupby(uemn)[xHEg].nunique().sort_values(ascending=False)
if NkkI == True:
Kn81 = Kn81 * 100.0 / Kn81.sum()
QrM1.figure(figsize=wytA)
kj9G = uuEx.barplot(Kn81.index, Kn81.values, alpha=0.8)
if N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NmPQ(nPrm, Nkno, wjLZ):\n yov1 = []\n gzac = []\n for YRbF in range(len(wSG4(nPrm, Nkno))):\n yov1.append(wSG4(nPrm[wjLZ], Nkno)[YRbF])\n gzac.append(wSG4(nPrm, Nkno)[YRbF])\n return oyIN.array(yov1) / oyIN.array(gzac)",
"def zL7A(jQ3Z, uemn, xHEg, wytA=(10, 5), jk7u=None, rTQi=None... | [
"0.67674106",
"0.67157376",
"0.6492828",
"0.63434833",
"0.62586606",
"0.61451375",
"0.6054594",
"0.599374",
"0.5957393",
"0.59001034",
"0.5840279",
"0.5781809",
"0.57635784",
"0.5712137",
"0.56852424",
"0.5645349",
"0.56419456",
"0.56388676",
"0.5598011",
"0.5576568",
"0.5559... | 0.66553867 | 2 |
Plot percentage of NaN values in DataFrame, having more than perc_missing missing values | def bqS_(jQ3Z, q3LT=0.1, a2vR=False, BqxI=None):
s_Vt = {}
for fvDH in jQ3Z.columns:
sUrt = WDdz(jQ3Z[fvDH])
if sUrt > float(q3LT * 100):
s_Vt[fvDH] = sUrt
if s_Vt != {}:
SRCq = rLdf.DataFrame(sorted(list(s_Vt.items()), key=lambda WKvO: WKvO[1]))
aNZO = SRCq.plot(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsCv(jQ3Z):\n DuZT = (jQ3Z.isnull().sum() / jQ3Z.isnull().count()).sort_values(ascending=False)\n return DuZT",
"def BgSb(jQ3Z):\n jQ3Z = rLdf.concat({'num_missing_values': jQ3Z.isnull().sum(), 'pct_missing_values': jQ3Z.isnull().mean().round(4)}, axis=1)",
"def Ujeh(jQ3Z, feMA=False):\n a5jf =... | [
"0.7952677",
"0.7921611",
"0.77834946",
"0.7768306",
"0.7561069",
"0.7561069",
"0.7532111",
"0.7452284",
"0.73001266",
"0.7278602",
"0.709151",
"0.7075814",
"0.7007777",
"0.6971477",
"0.6943784",
"0.68844634",
"0.6859328",
"0.6807048",
"0.68033564",
"0.67266923",
"0.6710772",... | 0.76193565 | 4 |
Repeat parameters across channels. The input is shaped as (B, ...), while to output (B same_on_frame, ...), which to guarentee that the same transformation would happen for each frame. (B1, B2, ..., Bn) => (B1, ... B1, B2, ..., B2, ..., Bn, ..., Bn) | ch_size | | ch_size | ..., | ch_size | | def jymm(YKHO, xqoZ: torch.Tensor, lFAT: int) -> ht2j.Tensor:
_8eK = xqoZ[:, None, ...].repeat(1, lFAT, *[1] * len(xqoZ.shape[1:]))
return _8eK.reshape(-1, *list(xqoZ.shape[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jymm(YKHO, xqoZ: Tensor, lFAT: int) -> llWB:\n _8eK = xqoZ[:, None, ...].repeat(1, lFAT, *[1] * len(xqoZ.shape[1:]))\n return _8eK.reshape(-1, *list(xqoZ.shape[1:]))",
"def ThRa(jzdc, DVQL, jDK_=0):\n assert len(jzdc.size()) == 1\n return o6Pz(ht2j.transpose(jzdc.repeat(DVQL, 1), 0, 1))",
"def ... | [
"0.7620403",
"0.6074459",
"0.5826648",
"0.5709121",
"0.5581889",
"0.55670077",
"0.55209374",
"0.55194014",
"0.5514113",
"0.5478754",
"0.54762536",
"0.53994197",
"0.53724164",
"0.5360325",
"0.53582597",
"0.53510237",
"0.5270185",
"0.52180547",
"0.52076817",
"0.51726884",
"0.51... | 0.7709468 | 0 |
Determine if a integer is 1to9 pandigital. | def zdpa(FGW3):
BHGE = str(FGW3)
return bool(len(BHGE) == len(mKBm) and set(BHGE) == mKBm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TD9c(exwG):\n return len(str(exwG)) == 9 and set(list(str(exwG))) == zvTx",
"def POJ5(WKvO):\n KCHu = str(WKvO)\n if len(KCHu) != 9:\n return False\n m8av = set((int(hcXw) for hcXw in KCHu))\n for YRbF in range(1, 10):\n if YRbF not in m8av:\n return False\n return ... | [
"0.7422858",
"0.733428",
"0.70909494",
"0.69369304",
"0.67518604",
"0.6617841",
"0.6441147",
"0.64259875",
"0.6385047",
"0.6318548",
"0.62343526",
"0.62120765",
"0.6196197",
"0.6175988",
"0.61095095",
"0.6080749",
"0.6052421",
"0.6038843",
"0.6017177",
"0.59212697",
"0.590043... | 0.73672175 | 1 |
Fixture that returns the ADLSGen2APIClient instance's api_cleint. This particular fixture uses Oauth2 authentication method. Useful for testing the underlying filesystem_api. | def hw4v(qIxc):
if not qIxc.account_name:
raise Exception('Test runs only if --account-name is passed.')
return sCu9(authentication_method='Oauth2', account_name=qIxc.account_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d4y1() -> iJSR:\n return iJSR()",
"def d4y1() -> iJSR:\n return iJSR()",
"def x0hE():\n nNXP = xdtr(hmac_secret='secret')\n\n @nNXP.register_auth()\n def jRxN():\n if Oa1e.test_authorized_for:\n return Oa1e.test_authorized_for\n return []\n\n @nNXP.register_hydrat... | [
"0.6785753",
"0.66747195",
"0.63828295",
"0.63753825",
"0.62899333",
"0.6119664",
"0.6117024",
"0.6100626",
"0.6077277",
"0.6066913",
"0.5999952",
"0.5993765",
"0.5966186",
"0.59625614",
"0.5954186",
"0.5949536",
"0.5925619",
"0.59187615",
"0.5855007",
"0.5851206",
"0.5811116... | 0.0 | -1 |
Fixture that returns the ADLSGen2FileSystem instance's api_cleint. This particular fixture uses Oauth authentication method. Useful for testing the underlying filesystem_api. | def Q8Lo(qIxc):
if not all([qIxc.account_name, qIxc.filesystem_id]):
raise Exception('Test runs only if --account-name and --filesystem-id are passed.')
return vzOO(authentication_method='Oauth2', account_name=qIxc.account_name, filesystem_id=qIxc.filesystem_id, create=qIxc.create_filesystem, dns_suffix... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0hE():\n nNXP = xdtr(hmac_secret='secret')\n\n @nNXP.register_auth()\n def jRxN():\n if Oa1e.test_authorized_for:\n return Oa1e.test_authorized_for\n return []\n\n @nNXP.register_hydrator()\n def ONjb(W5Ak):\n return [{'fingerprint': WKvO.fingerprint} for WKvO in... | [
"0.559453",
"0.5591121",
"0.5488617",
"0.5391888",
"0.5339344",
"0.5287714",
"0.5243161",
"0.5228053",
"0.5224948",
"0.5223098",
"0.5209177",
"0.52059853",
"0.51966625",
"0.5163451",
"0.5163208",
"0.5153197",
"0.5147478",
"0.5135651",
"0.51353383",
"0.5122661",
"0.5119685",
... | 0.47784147 | 62 |
Creates an object that can map from a continuous value to a color based on a colormap specified. | def FIMM(YKHO, MynD, n4wC, iMGt='Blues', eJTR='hex'):
assert MynD < n4wC, 'vmin must be smaller than vmax'
assert eJTR.lower() in ['hex', 'rgba'], 'kind must be one of ["hex", "rgba"]'
YKHO.vmin = MynD
YKHO.vmax = n4wC
YKHO.cmap = iMGt
YKHO.kind = eJTR
CkYf = I8kJ.colors.Normalize(vmin=MynD,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xPm8(Rqvf=(0.0, 1.0), mYH6=(0.8, 0.0), OHQT=(1.0, 1.0), ZUbE=(0.8, 0.8), Vq81=(0.2, 0.2, 0.2, 1.0)):\n B66D = YU_E.vtkLookupTable()\n B66D.SetRange(Rqvf)\n B66D.SetHueRange(mYH6)\n B66D.SetSaturationRange(OHQT)\n B66D.SetValueRange(ZUbE)\n B66D.SetNanColor(Vq81)\n B66D.Build()\n return ... | [
"0.6762387",
"0.6556902",
"0.63383216",
"0.629819",
"0.6250554",
"0.6137054",
"0.6106124",
"0.61004657",
"0.6091736",
"0.6079629",
"0.60712326",
"0.60680234",
"0.60680234",
"0.60680234",
"0.60680234",
"0.6038515",
"0.60258806",
"0.59936917",
"0.5982682",
"0.59752053",
"0.5945... | 0.71058923 | 0 |
This function computes the global entropy score E (diversity). A metropolitan area's entropy score. | def Yl40(YKHO):
oi8j = []
FnHz = oyIN.sum(YKHO.pop_sum)
QWcs = oyIN.asarray(oyIN.sum(YKHO.pop, axis=0))[0]
for uOe2 in QWcs:
fD99 = uOe2 / FnHz * oyIN.log(1 / (uOe2 / FnHz))
oi8j.append(fD99)
oqGu = oyIN.sum(oi8j)
return oqGu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hFiK(YKHO):\n ROV4 = [YRbF / sum(YKHO.has.values()) for YRbF in YKHO.has.values()]\n vHRy = [YRbF * epAf.log(YRbF, 2) for YRbF in ROV4]\n oqGu = -sum(vHRy)\n return oqGu",
"def oqGu(nPrm):\n tTpl = 0\n ewCu = g760.Counter(nPrm)\n vC9B = len(nPrm)\n for UHFx in ewCu.values():\n ... | [
"0.72293425",
"0.68516284",
"0.683191",
"0.66374046",
"0.6574769",
"0.6550297",
"0.6527979",
"0.64763755",
"0.64545864",
"0.6440966",
"0.64393514",
"0.64383745",
"0.6435785",
"0.6427947",
"0.64278364",
"0.6414083",
"0.6413632",
"0.64118075",
"0.64092076",
"0.64018685",
"0.640... | 0.68663275 | 1 |
This function computes the local entropy index H for all localities. The functions cal_localEntropy() for local diversity and cal_globalEntropy for global entropy are called as input. If population intensity was previously computed, the spatial version will be returned, else the non spatial version will be selected (ra... | def EdGY(YKHO):
yISK = YKHO.cal_localEntropy()
mBB5 = YKHO.cal_globalEntropy()
cGyw = mBB5 * oyIN.sum(YKHO.pop_sum)
mFtT = oyIN.asarray(mBB5 - yISK)
nwbn = oyIN.asarray(YKHO.pop_sum) * mFtT / cGyw
return nwbn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FK0i(YKHO):\n if len(YKHO.locality) == 0:\n e2AD = oyIN.asarray(YKHO.pop / YKHO.pop_sum)\n else:\n oncX = oyIN.sum(YKHO.locality, axis=1).reshape(YKHO.n_location, 1)\n e2AD = oyIN.asarray(YKHO.locality / oncX)\n oqGu = e2AD * oyIN.log(1 / e2AD)\n oqGu[oyIN.isnan(oqGu)] = 0\n ... | [
"0.72056544",
"0.6376065",
"0.61589575",
"0.58960253",
"0.56866074",
"0.562748",
"0.561921",
"0.5561674",
"0.54936486",
"0.54901147",
"0.5486283",
"0.54682726",
"0.5378474",
"0.53664356",
"0.535996",
"0.53436524",
"0.53331566",
"0.5322959",
"0.52852094",
"0.52813184",
"0.5279... | 0.82291174 | 0 |
Return a requests Response object on success or None on failure | def ODeu():
ir5x = {'stall_warnings': 'true'}
Mkmy = G4JS.post('https://stream.twitter.com/1.1/statuses/sample.json', data=ir5x, auth=Muc3, stream=True, timeout=300)
if Mkmy.status_code != 200:
l_ZK(Mkmy)
return None
if Mkmy.encoding is None:
Mkmy.encoding = 'utf-8'
return Mk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T_2m(lWQw):\n return G4JS.get(lWQw)",
"def jxrn(YKHO, bD7m: str) -> G4JS.Response:\n if bD7m.startswith(Dn70['base']):\n try:\n geh0 = G4JS.get(bD7m, auth=YKHO.auth)\n A20E = geh0.json()['meta']['code']\n if A20E not in [200, 201, 204]:\n raise YY1... | [
"0.7232029",
"0.6719551",
"0.66641635",
"0.66160625",
"0.6533793",
"0.65278095",
"0.6495072",
"0.6411002",
"0.6397186",
"0.6390121",
"0.63795906",
"0.63582784",
"0.6348996",
"0.6308855",
"0.63029873",
"0.630005",
"0.62949765",
"0.6290181",
"0.62747884",
"0.62747884",
"0.62604... | 0.0 | -1 |
Return a 'speakable' timestamp, e.g. 8am, noon, 9pm, etc. | def i65N(E3oo):
BUkQ = f'{E3oo.strftime('%I').lstrip('0')} {E3oo.strftime('%p')}'
if BUkQ == '12 PM':
return 'noon'
elif BUkQ == '12 AM':
return 'midnight'
return BUkQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E3oo(eXeU):\n yo7_ = qcWV.today()\n return yo7_.strftime('%A %B %d, %-I:%M %p')",
"def pqi0():\n import time\n return str(time.strftime('%a %d %b %Y %I:%M:%S %p'))",
"def gt0E():\n na1r.info('In get_time_stamp')\n CWhL = ITS7.time()\n QpbA = qcWV.datetime.fromtimestamp(CWhL).strftime('... | [
"0.6661555",
"0.65137535",
"0.65072346",
"0.64812773",
"0.64656293",
"0.64320934",
"0.64185804",
"0.64050627",
"0.63539547",
"0.63497597",
"0.6348212",
"0.6323478",
"0.63144654",
"0.6304702",
"0.62973917",
"0.6291501",
"0.6251585",
"0.6243039",
"0.6242076",
"0.62325555",
"0.6... | 0.79561013 | 0 |
Generates a correct path for any platform | def zOLB(*qIxc):
return Hy7s.path.join(*qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wtrP():\n return '/tsi/'",
"def XwHO(XNWQ=''):\n if a9EH.system() != 'Windows':\n if XNWQ == '':\n BTLB = HwRy.argv[0].split('/')[:-1]\n return '/'.join(BTLB)\n else:\n BTLB = HwRy.argv[0].split('/')[:-1]\n return '/'.join(BTLB) + '/' + XNWQ\n ... | [
"0.68407935",
"0.67291874",
"0.66797614",
"0.6464132",
"0.6391632",
"0.63854575",
"0.6374949",
"0.6321801",
"0.6293019",
"0.6263794",
"0.61730903",
"0.6149489",
"0.6119712",
"0.61058307",
"0.6069464",
"0.5989377",
"0.5944702",
"0.5884633",
"0.5876261",
"0.58601445",
"0.585961... | 0.0 | -1 |
Gets the default location of Minecraft for this system | def bwKq():
if a9EH.system() == 'Windows':
return zOLB(Hy7s.getenv('APPDATA'), '.minecraft')
elif a9EH.system() == 'Darwin':
return zOLB(Hy7s.getenv('HOME'), 'Library', 'Application Support', 'minecraft')
else:
return zOLB(Hy7s.getenv('HOME'), '.minecraft') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bCmR(YKHO):\n return YKHO.default_alt_loc",
"def ngV7(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_secondary_location')",
"def hbd3(YKHO):\n return YKHO._overridden_location or YKHO.get_default_location()",
"def Y45c(YKHO):\n return YKHO.enu_2_local()",
"def Rci7(YKHO):\n Rci7 = YKHO.a... | [
"0.6796112",
"0.6690159",
"0.6681357",
"0.65638244",
"0.64394754",
"0.63865715",
"0.63452643",
"0.63273835",
"0.6317721",
"0.6317721",
"0.6317721",
"0.6303396",
"0.6303396",
"0.62629807",
"0.62240577",
"0.6176864",
"0.6176864",
"0.6176864",
"0.6176864",
"0.6176864",
"0.617686... | 0.8103766 | 0 |
Opens URL in the default browser | def r46S(bD7m):
import webbrowser
webbrowser.open_new(bD7m) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def open(bD7m):\n HywK.open(bD7m)",
"def QM3s(YKHO):\n HywK.open(YKHO.url)",
"def R90Q(mWFP):\n bD7m = r2JL.get_webServer(mWFP)\n SYsl = r46S()\n SYsl.get(bD7m)\n return SYsl",
"def oTNk(bD7m):\n HywK.open(bD7m)",
"def iXC1(YKHO, bD7m=''):\n if bD7m:\n HywK.open(bD7m)",
"de... | [
"0.8300836",
"0.824589",
"0.80313796",
"0.7982461",
"0.7885389",
"0.7706711",
"0.7696021",
"0.7672873",
"0.7672488",
"0.7662576",
"0.7551381",
"0.7441665",
"0.74353623",
"0.7414981",
"0.74112564",
"0.7294314",
"0.7282164",
"0.72268164",
"0.72234035",
"0.72146",
"0.7204085",
... | 0.81538117 | 2 |
Returns the file name, derived from the path | def g_2H(pmON):
return Hy7s.path.basename(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gIsw(pmON):\n return Hy7s.path.basename(pmON).split('.')[0]",
"def Ooqe(pmON):\n return pmON.split('\\\\').pop().split('/').pop().rsplit('.', 1)[0]",
"def g_2H(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]",
"def g_2H(YKHO):\n return YKHO.path.name[6:]",
"def k... | [
"0.841461",
"0.83068866",
"0.8304893",
"0.82852703",
"0.82507",
"0.8241181",
"0.81059855",
"0.810212",
"0.8101138",
"0.8002947",
"0.7876396",
"0.7809701",
"0.7807089",
"0.77653134",
"0.7728102",
"0.77166677",
"0.7706979",
"0.76581496",
"0.7640988",
"0.7635858",
"0.75833327",
... | 0.87579036 | 0 |
Gets the parent directory of the end of path | def gmqI(pmON):
return Hy7s.path.dirname(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gx8i(Emd4, pmON):\n if pmON[-1] == '/':\n pmON = pmON[:-1]\n U5bT = Hy7s.path.dirname(pmON)\n return U5bT",
"def su__(pmON):\n return SOoY(Hy7s.path.dirname(pmON))",
"def gmqI(pmON):\n return Hy7s.path.abspath(Hy7s.path.join(pmON, Hy7s.pardir))",
"def PAwq(pmON):\n _AKB = Hy7s.pa... | [
"0.8631019",
"0.86226535",
"0.8482168",
"0.8416384",
"0.836997",
"0.8308873",
"0.81717604",
"0.7833703",
"0.7683455",
"0.75546896",
"0.7370464",
"0.72962385",
"0.7266949",
"0.7264568",
"0.7248265",
"0.72423804",
"0.7222234",
"0.71652234",
"0.70380044",
"0.6964497",
"0.6919675... | 0.8882332 | 0 |
from a binary string to a list of [id,weight,value]. | def Bj8b(B6By):
rY1w = [[id, X3eO['weights'][id], X3eO['values'][id]] for id in range(len(B6By)) if B6By[id] == 1]
return rY1w | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l_65(LFxn: str) -> list:\n qw7D = list()\n for hcXw in LFxn:\n el4E = PNX8.bin_value(hcXw, 8)\n qw7D.extend([int(WKvO) for WKvO in list(el4E)])\n return qw7D",
"def SRCm(YKHO, nPrm):\n vC9B = len(nPrm) * 8\n Aofo = [0] * vC9B\n oeNL = 0\n for Npgh in nPrm:\n YRbF = 7... | [
"0.64919543",
"0.6369273",
"0.6161091",
"0.6039952",
"0.5935068",
"0.58602935",
"0.58450687",
"0.58346134",
"0.5802277",
"0.58013606",
"0.57577527",
"0.5723122",
"0.5716271",
"0.57105553",
"0.56988865",
"0.565404",
"0.5635822",
"0.563525",
"0.56202936",
"0.5611972",
"0.560164... | 0.0 | -1 |
Verify Templates Design keywords. notemplates is a compatibility tests for repo without `templates` directory | def Cub6(rPXJ, kmfe):
I7OS = b8V_.cookiecutter(f'tests/test-templates/{rPXJ}', no_input=True, output_dir=kmfe)
Qh6f = Hy7s.path.join(I7OS, 'requirements.txt')
with T_Uj.open(Qh6f, encoding='utf8') as eHNT:
F1Np = eHNT.read().splitlines()
assert F1Np == ['pip==19.2.3', 'Click==7.0', 'pytest==4.6.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ARTG():\n assert len(DqlU) > 0",
"def JZUv():\n for a1PO in DqlU:\n assert len(a1PO.name) > 0",
"def jd7z(YKHO):\n YKHO.assertCorrectTemplateUsed('common/home.html')",
"def tRA3(YKHO, geh0):\n YKHO.assertGSoCTemplatesUsed(geh0)\n YKHO.assertTemplateUsed(geh0, 'modules/gsoc/admin/lis... | [
"0.7111534",
"0.6666861",
"0.65406275",
"0.6487179",
"0.6421827",
"0.63946855",
"0.63901585",
"0.63757336",
"0.63595605",
"0.63183606",
"0.6218981",
"0.619849",
"0.6161492",
"0.613266",
"0.613266",
"0.6100594",
"0.6085184",
"0.60767275",
"0.59393513",
"0.5919201",
"0.5910538"... | 0.65004456 | 3 |
Compute the average power of the signal x in a specific frequency band. | def tyON(nPrm, UH90, Ebru, D0nm=None, Qth0=False):
from scipy.signal import welch
from scipy.integrate import simps
Ebru = oyIN.asarray(Ebru)
gqRb, ODP9 = Ebru
if D0nm is not None:
umV7 = D0nm * UH90
else:
umV7 = 2 / gqRb * UH90
J1c0, AwYh = welch(nPrm, UH90, nperseg=umV7)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _4gQ(XJjw, *d7pR):\n yivf = oyIN.array(XJjw)\n VYvU = oyIN.abs(yivf) ** 2\n if len(d7pR) < 1:\n naF9 = oyIN.mean(VYvU)\n else:\n naF9 = oyIN.mean(VYvU, axis=d7pR[0])\n return naF9",
"def aJxZ(qeBY):\n gZiL = oyIN.mean(qeBY, axis=1)\n return gZiL",
"def u2eB(EcVT, uNJx, gC... | [
"0.7155431",
"0.68030465",
"0.66364723",
"0.62977445",
"0.62147605",
"0.60456085",
"0.6014055",
"0.59779775",
"0.5957791",
"0.59175956",
"0.58937895",
"0.5854286",
"0.5835787",
"0.58209395",
"0.581682",
"0.5793635",
"0.578129",
"0.5776566",
"0.57712775",
"0.5752855",
"0.57368... | 0.54986525 | 40 |
Return VerticalPanel positioned under Panel holding Canvas. | def iLhG(YKHO):
if not YKHO.vpanel:
YKHO.vpanel = _Sx_()
ws9c().add(YKHO.vpanel)
return YKHO.vpanel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kQpN(YKHO):\n return",
"def WnvX(YKHO):\n return YKHO._vertical",
"def n0pY(YKHO):\n YKHO.panel = lnPd.Panel(YKHO)\n YKHO.init_plot()\n YKHO.canvas = mNBt(YKHO.panel, -1, YKHO.fig)\n YKHO.control_box = EXmm(YKHO.panel, -1, 'Information board')\n YKHO.vbox = lnPd.BoxSizer(lnPd.VERTICAL)... | [
"0.59304374",
"0.5891619",
"0.5868168",
"0.5845361",
"0.56416017",
"0.55967766",
"0.5532673",
"0.54355943",
"0.5425686",
"0.52850765",
"0.5281079",
"0.52607864",
"0.5256582",
"0.52467227",
"0.5237199",
"0.52117944",
"0.520629",
"0.5177642",
"0.5177642",
"0.51756483",
"0.51203... | 0.7619186 | 0 |
Return canvas topoffset position. | def IZEN(YKHO):
return YKHO.canvas.getAbsoluteTop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wvNT(YKHO):\n raise NotImplementedError",
"def zojy(YKHO):\n return YKHO.position.y + YKHO.size.y + YKHO.bulk",
"def tlxW(YKHO):\n return YKHO.points['topRight'].y",
"def tlxW(YKHO):\n return YKHO.points['topRight'].y",
"def TwAD(YKHO):\n return YKHO.rect.midtop",
"def LVAh(YKHO):\n ... | [
"0.72364736",
"0.7140133",
"0.71326786",
"0.71326786",
"0.7042159",
"0.6944361",
"0.6920801",
"0.67182386",
"0.6553493",
"0.6536355",
"0.6505047",
"0.64384615",
"0.6414971",
"0.6367798",
"0.6331739",
"0.6323262",
"0.6314093",
"0.63107616",
"0.62790745",
"0.62784046",
"0.62769... | 0.789404 | 0 |
Return page horizontal scroll offset. | def LwAE(YKHO):
return YKHO.frame.scrollLeft | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uksB(YKHO):\n return YKHO.pageLeft",
"def G6AJ(YKHO) -> int:\n TQ78: int = YKHO.page_number\n if TQ78 <= 1:\n return 0\n return (TQ78 - 1) * YKHO.get_page_size()",
"def uhrn(YKHO):\n return 0 if YKHO.page_size == 0 else YKHO.page_slice[0] + 1",
"def NZ85(YKHO) -> int:\n YKHO.tk_r... | [
"0.69253963",
"0.67402333",
"0.63669795",
"0.6355653",
"0.61935073",
"0.61398447",
"0.61341226",
"0.6121505",
"0.6121505",
"0.6062614",
"0.6013576",
"0.59761524",
"0.5965584",
"0.59297615",
"0.5900503",
"0.58795595",
"0.58795404",
"0.5856518",
"0.5819797",
"0.5810518",
"0.580... | 0.7284408 | 0 |
Return page vertical scroll offset. | def BkVw(YKHO):
return YKHO.frame.scrollTop | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G6AJ(YKHO) -> int:\n TQ78: int = YKHO.page_number\n if TQ78 <= 1:\n return 0\n return (TQ78 - 1) * YKHO.get_page_size()",
"def YQ42(YKHO):\n return _VfD.Point_getYOffset(YKHO)",
"def JjJt(YKHO):\n return YKHO.position_y + YKHO.margin_top + YKHO.padding_top + YKHO.border_top_width",
... | [
"0.68147075",
"0.6493165",
"0.6470923",
"0.6470406",
"0.63588506",
"0.6256047",
"0.6245041",
"0.62061375",
"0.6198362",
"0.6152118",
"0.6121141",
"0.6095557",
"0.609246",
"0.60858583",
"0.6024968",
"0.60186183",
"0.5990239",
"0.59896463",
"0.5985493",
"0.5972965",
"0.59450394... | 0.6441127 | 4 |
Set Canvas element id. Argument is the id text. | def vKYR(YKHO, l5Ny):
YKHO.id = l5Ny
try:
YKHO.canvas.setID(YKHO.id)
except (TypeError, AttributeError):
pass
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, LZbL):\n pass",
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def V_9M(YKHO, id):\n YKHO.id = id\n print('self id = ' + str(YKHO.id))",
"def id(YKHO, id):\n YKHO._id = id",
"def id(YK... | [
"0.67934334",
"0.67737395",
"0.6765662",
"0.6758977",
"0.6753172",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6605382",
"0.6593913",
"0.6567454",
"0.65555596",
"0.6528973",
... | 0.0 | -1 |
Get Canvas element id. | def A2Fq(YKHO):
try:
return YKHO.canvas.getID()
except (TypeError, AttributeError):
return YKHO.id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mLJR(YKHO):\n return _VfD.Dimensions_getId(YKHO)",
"def mLJR(YKHO):\n return _VfD.Point_getId(YKHO)",
"def id(YKHO):\n return id(YKHO._component)",
"def UVlm(YKHO):\n return YKHO.__id",
"def Rvyr(YKHO, wl_9):\n bo34.debug('core.cuboid ... getting id of %s', wl_9)\n bo34.debug('from : ... | [
"0.63365096",
"0.62944233",
"0.62823427",
"0.612597",
"0.61065453",
"0.6096312",
"0.6091381",
"0.60819",
"0.60819",
"0.60728997",
"0.60728997",
"0.60728997",
"0.60728997",
"0.60728997",
"0.60728997",
"0.6066748",
"0.60233265",
"0.60220987",
"0.5999465",
"0.5992309",
"0.599230... | 0.6058908 | 16 |
Converts the python sequence (tuples and lists) to an un ordered list | def Y5zU(YNZ4: 'Sequence') -> str:
DumB = (f'<li>{JjjQ(ZfUD)}</li>' for ZfUD in YNZ4)
return '<ul>\n' + '\n'.join(DumB) + '\n</ul>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mFWN(Uqbu):\n if isinstance(Uqbu, (list, tuple)):\n return list(Uqbu)\n else:\n return [Uqbu]",
"def _Jar(dy_H: Union[TimeSeries, Sequence[TimeSeries]]) -> bdIy[YXTX]:\n return [dy_H] if not isinstance(dy_H, bdIy) else dy_H",
"def lovD(WKvO):\n return WKvO if isinstance(WKvO, list... | [
"0.7171209",
"0.7075143",
"0.6932708",
"0.68989366",
"0.6858652",
"0.6792945",
"0.67869085",
"0.67027855",
"0.66101676",
"0.6588554",
"0.65431666",
"0.65118504",
"0.64956164",
"0.6436783",
"0.6404273",
"0.64024276",
"0.6393895",
"0.63901395",
"0.6380912",
"0.63746196",
"0.633... | 0.0 | -1 |
Returns the sum of the function values of f evaluated at values x0, x1, x2, ..., xn where xs=[x0,x1,x2,...,xn] | def WWoO(eHNT, fUYa):
sum = 0
for WKvO in fUYa:
sum += eHNT(WKvO)
return sum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWoO(eHNT, fUYa):\n Y4f8 = 0\n for mLGw in fUYa:\n wwCK = int(mLGw)\n clJO = eHNT(wwCK)\n Y4f8 = Y4f8 + clJO\n return Y4f8",
"def Dyub(WKvO):\n eHNT = 0.0\n for B9Ij in range(_Fei.ntrain):\n eHNT += Uv2R(WKvO, B9Ij)\n return eHNT",
"def aP2T(eHNT, fUYa):\n v... | [
"0.7689102",
"0.677604",
"0.67113",
"0.66471976",
"0.6618757",
"0.6492451",
"0.64732724",
"0.63708246",
"0.6328787",
"0.6316019",
"0.62078315",
"0.6148149",
"0.6132703",
"0.60836047",
"0.5986995",
"0.5977715",
"0.59347856",
"0.59131885",
"0.59122735",
"0.59122735",
"0.5893695... | 0.8387013 | 0 |
This method run before each test. If test objects (data structures) already initialized skip. | def FCbF(YKHO):
qZLi = SC2F.glob(cp4j)
if not YKHO.sessionizing:
YKHO.sessionizing = bFiu()
YKHO.sessionizing.initialize(*qZLi)
if not YKHO.sites_session_counter:
YKHO.merge_and_sort_input_files(*qZLi)
YKHO.process_input_files() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n pass",
"def D42W(Emd4):\n pass",
"def FCbF(YKHO):\n i_Aq._Base__nb_objects = 0",
"def FCbF(YKHO):\n i_Aq._Base__nb_objects = 0",
"def FCbF(YKHO):\n i_Aq._Base__nb_objects = 0",
"def FCbF(YKHO):\n i_Aq._Base__nb_objects = 0",
"def FCbF(YKHO):\n i_Aq._Base__nb_objec... | [
"0.7356431",
"0.72856975",
"0.7214756",
"0.7214756",
"0.7214756",
"0.7214756",
"0.7214756",
"0.7214756",
"0.7055025",
"0.7034403",
"0.6953418",
"0.6950764",
"0.6943474",
"0.6943117",
"0.69019616",
"0.684371",
"0.6801573",
"0.6800003",
"0.6773715",
"0.6773715",
"0.6769694",
... | 0.0 | -1 |
Place the active window in the middle of the screen | def m7Im():
WZHJ = x0jD()
cIiC = UBsI(WZHJ)
y2Jm = _tYi()
LrGk = B2MA(WZHJ, cIiC)
Oy_y = R_pu()
XsU7(WZHJ, LrGk, Oy_y, cIiC, y2Jm)
dBDR(WZHJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(KnxT):\n KnxT.update_idletasks()\n k_Ti = KnxT.winfo_screenwidth()\n fsQy = KnxT.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in KnxT.geometry().split('+')[0].split('x')))\n WKvO = k_Ti / 2 - 7 * zNig[0] / 13\n LVAh = fsQy / 2 - 6 * zNig[1] / 11\n KnxT.geometry('+%d+%d' % (... | [
"0.79966515",
"0.7973493",
"0.7970798",
"0.79106516",
"0.7908796",
"0.7885023",
"0.7834887",
"0.78096235",
"0.77864593",
"0.77566457",
"0.7718074",
"0.76976424",
"0.7646006",
"0.759631",
"0.759631",
"0.75170386",
"0.7370159",
"0.7297165",
"0.72718257",
"0.7175345",
"0.7096375... | 0.6607998 | 40 |
Place the active window in the bottom left corner of the screen | def v9Gq():
WZHJ = x0jD()
cIiC = e60G(WZHJ)
y2Jm = z5FS()
LrGk = LufI(WZHJ, cIiC)
Oy_y = AqHL()
XsU7(WZHJ, LrGk, Oy_y, cIiC, y2Jm)
dBDR(WZHJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gyf0(YKHO):\n yzQ0 = 600\n MKlR = 300\n yK2S = YKHO.parent.winfo_screenwidth()\n lWrn = YKHO.parent.winfo_screenheight()\n WKvO = yK2S / 2 - 0.5 * yzQ0\n LVAh = lWrn / 2 - 0.5 * MKlR\n YKHO.parent.geometry('%dx%d+%d+%d' % (yzQ0, MKlR, WKvO, LVAh))",
"def uTXp(YKHO):\n Vjhr = CsJA.QDes... | [
"0.7852993",
"0.76210344",
"0.7476628",
"0.7427107",
"0.7110935",
"0.7055845",
"0.68054163",
"0.6776939",
"0.67633384",
"0.6706597",
"0.66986203",
"0.6689711",
"0.6684727",
"0.66516566",
"0.6648298",
"0.6631068",
"0.6507404",
"0.6495565",
"0.6495565",
"0.6449752",
"0.64315635... | 0.7485281 | 2 |
Split windows, focus on the new window, and return the new window. | def lpha(GxR8, WnvX=False, DikD=True):
ccKF = wJcb(['vsplit' if WnvX else 'split'])
if DikD:
ccKF.append('enew')
ccKF.run(GxR8)
return GxR8.current.window | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raT0(cuiw):\n\n def raT0():\n tGRm = cuiw.handles\n mWFP = cuiw.execute_script('window.open()')\n assert len(cuiw.handles) == len(tGRm) + 1\n GdVE = list(set(cuiw.handles) - set(tGRm))\n return GdVE.pop()\n return raT0",
"def uMEX(YKHO):\n n2Q1 = ITS7.time()\n t... | [
"0.6843045",
"0.6658341",
"0.6456951",
"0.6413343",
"0.64051354",
"0.63260406",
"0.63051087",
"0.6170292",
"0.59696925",
"0.5965667",
"0.5954286",
"0.59186965",
"0.5891547",
"0.5858402",
"0.58511937",
"0.58058786",
"0.5693715",
"0.5686892",
"0.5685447",
"0.56737304",
"0.56337... | 0.56581986 | 20 |
Vertically split windows, focus on the new window, and return the new window. | def LftE(GxR8, DikD=True):
return lpha(GxR8, True, DikD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def raT0(cuiw):\n\n def raT0():\n tGRm = cuiw.handles\n mWFP = cuiw.execute_script('window.open()')\n assert len(cuiw.handles) == len(tGRm) + 1\n GdVE = list(set(cuiw.handles) - set(tGRm))\n return GdVE.pop()\n return raT0",
"def lpha(GxR8, WnvX=False, DikD=True):\n cc... | [
"0.6696572",
"0.65526664",
"0.6546986",
"0.65454763",
"0.65320134",
"0.63900703",
"0.61894244",
"0.61151457",
"0.6024209",
"0.5999345",
"0.5976759",
"0.5772122",
"0.5749668",
"0.5729732",
"0.56777453",
"0.564488",
"0.56050384",
"0.5602524",
"0.5498536",
"0.54270434",
"0.54030... | 0.48737007 | 75 |
Will center the currently focused window on line line_no. | def fcfb(Q82t):
return wJcb([str(Q82t), _HVP.normal('z.'), 'redraw!']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(KnxT):\n KnxT.update_idletasks()\n k_Ti = KnxT.winfo_screenwidth()\n fsQy = KnxT.winfo_screenheight()\n zNig = tuple((int(bGrB) for bGrB in KnxT.geometry().split('+')[0].split('x')))\n WKvO = k_Ti / 2 - 7 * zNig[0] / 13\n LVAh = fsQy / 2 - 6 * zNig[1] / 11\n KnxT.geometry('+%d+%d' % (... | [
"0.7087361",
"0.7021938",
"0.69975656",
"0.6938597",
"0.68613523",
"0.6642707",
"0.6622737",
"0.65862757",
"0.657932",
"0.6537366",
"0.6537366",
"0.6528483",
"0.6497942",
"0.6495269",
"0.6426588",
"0.6420842",
"0.6409015",
"0.6406213",
"0.63755536",
"0.63755536",
"0.6366713",... | 0.769848 | 0 |
Date is internal UTC ISO format string. Output should be "today", "yesterday", "in 5 days", etc. Arrow will try to humanize down to the minute, so we need to catch 'today' as a special case. | def lOii(_c1T):
try:
suE3 = LgWF.get(_c1T).to('local')
wzkt = LgWF.utcnow().to('local')
if suE3.date() == wzkt.date():
GH5J = 'Today'
else:
GH5J = suE3.humanize(wzkt)
if GH5J == 'in a day':
GH5J = 'Tomorrow'
except:
GH5J... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOii(_c1T):\n try:\n suE3 = LgWF.get(_c1T)\n wzkt = LgWF.utcnow()\n wzkt = wzkt.replace(hour=0, minute=0, second=0)\n if suE3.date() == wzkt.date():\n GH5J = 'Today'\n else:\n GH5J = suE3.humanize(wzkt)\n if GH5J == 'in a day':\n ... | [
"0.7299229",
"0.6316933",
"0.623622",
"0.61559504",
"0.5996783",
"0.5975734",
"0.58404326",
"0.58039963",
"0.57811826",
"0.57704353",
"0.5769235",
"0.5741685",
"0.567308",
"0.56673306",
"0.5662842",
"0.56438786",
"0.5624631",
"0.5599852",
"0.55823165",
"0.5573989",
"0.5570482... | 0.7053984 | 1 |
Loads images and labels from the given directory in PASCAL VOC format. | def mQpY(Emd4, h_xa: str, Hx8A: Optional[int]=None, BXLT: Optional[str]=None) -> 'Dataset':
GSzn = XAXe.get_cache_files_pascal_voc(h_xa, BXLT)
if not XAXe.is_cached(GSzn):
ecF5 = XAXe.get_label_map_pascal_voc(h_xa)
ibBO = XAXe.PascalVocCacheFilesWriter(label_map=ecF5, max_num_images=Hx8A)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NsxH(AGPF):\n N3o8, B1MQ = (AGPF + '/ILSVRC2012_img_train', AGPF + '/ILSVRC2012_img_val')\n h4TO = Hy7s.listdir(N3o8)\n ppBc = []\n for UXqs in h4TO:\n lfDe = Hy7s.path.join(N3o8, UXqs)\n xkjI = Hy7s.listdir(lfDe)\n for rTBW in xkjI:\n p4m8 = Hy7s.path.join(lfDe, rTB... | [
"0.6542538",
"0.6446743",
"0.62993336",
"0.6207669",
"0.61119",
"0.61032426",
"0.61006826",
"0.60944206",
"0.60626346",
"0.6026999",
"0.59973633",
"0.5986289",
"0.5985126",
"0.5978871",
"0.59532017",
"0.59505475",
"0.5946941",
"0.59357435",
"0.59327054",
"0.5930023",
"0.59246... | 0.5631647 | 48 |
Returns a Transform with the given frames. | def _hVZ(VHW9: str, AsRo: str) -> IVoa:
yvT9 = IVoa()
yvT9.header.frame_id = VHW9
yvT9.child_frame_id = AsRo
yvT9.transform.rotation.w = 1
yvT9.transform.translation.x = 0.1
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K3I5(YKHO, Wu9o, B5fV):\n if not YKHO._pipeline:\n return None\n try:\n c8Th = YKHO._get_frame_index(Wu9o)\n except ValueError:\n raise nAmq('Frame {0} is not in the available frames'.format(Wu9o))\n try:\n ftxj = YKHO._get_frame_index(B5fV)\n except ValueError:\n ... | [
"0.64223534",
"0.6363581",
"0.60932153",
"0.6016298",
"0.60145336",
"0.5937197",
"0.5937197",
"0.5937197",
"0.5868103",
"0.5840218",
"0.58271337",
"0.57548267",
"0.57184625",
"0.5640878",
"0.5603786",
"0.5562078",
"0.5558426",
"0.55530345",
"0.5549237",
"0.5548251",
"0.554738... | 0.66231483 | 0 |
r"""Computes the logarithm of the density matrix for a batch of visible quantum numbers `(xr,xc)` and stores the result into `out`. Specifically, for each element of the batch i, this function should compute out[i]=log(rho(xr[i],xc[i])). If xr is None, it is assumed that xr has twice as many quantum numbers and contain... | def uVnk(YKHO, zuVY, g0Hx=None, yvT9=None):
if g0Hx is None:
return YKHO._plog_val(zuVY, yvT9)
else:
return YKHO._plog_val(VEDo.hstack((zuVY, g0Hx)), yvT9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PIaB(YKHO, zuVY, g0Hx=None, yvT9=None):\n if g0Hx is None:\n return YKHO._pder_log(zuVY, yvT9)\n else:\n return YKHO._pder_log(VEDo.hstack((zuVY, g0Hx)), yvT9)",
"def QF3p(YKHO, EcVT, dBuj=None):\n uYqq = []\n for dG7G, n294, SdIb in zip(YKHO._logweights, YKHO._spaces, YKHO._kdes):\... | [
"0.67536134",
"0.5929095",
"0.5787016",
"0.5787016",
"0.57842773",
"0.57700914",
"0.5677975",
"0.5523281",
"0.5417427",
"0.53904533",
"0.53785",
"0.53733927",
"0.53521395",
"0.5330728",
"0.5298528",
"0.52868307",
"0.5277517",
"0.5247273",
"0.52235293",
"0.52163136",
"0.520864... | 0.6746137 | 1 |
Initializes a new instance of the uniform edge sampler. | def FIMM(YKHO, ekHH, bdGm, Fbjb, gQVb, yokr=0):
YKHO.sample_size = ekHH
YKHO.seed, YKHO.seed2 = igb0.get_seed(yokr)
YKHO.neighbours = bdGm
YKHO.lengths = Fbjb
YKHO.offsets = gQVb
super(kmP2, YKHO).__init__() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _mSQ, BNvS):\n YKHO.weights = _mSQ\n YKHO.edge_score_norm = BNvS",
"def FIMM(YKHO, jzdc, Fg_i, *qIxc, **B2fa):\n YKHO.a = jzdc\n YKHO.b = Fg_i\n super(EbFG, YKHO).__init__(*qIxc, **B2fa)",
"def FIMM(YKHO, *qIxc):\n PZpo.TNGraphEdgeI_swiginit(YKHO, PZpo.new_TNGraphEdgeI(*qIxc))"... | [
"0.62703085",
"0.6190725",
"0.6130677",
"0.6081981",
"0.6041637",
"0.600893",
"0.59430003",
"0.59430003",
"0.59147745",
"0.59108746",
"0.5893205",
"0.58904165",
"0.58743054",
"0.5865136",
"0.5862257",
"0.5861973",
"0.5816936",
"0.5816936",
"0.5816936",
"0.58011127",
"0.577944... | 0.68228763 | 0 |