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 |
|---|---|---|---|---|---|---|
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.83065915",
"0.81933653",
"0.819034",
"0.819034",
"0.81895167",
"0.81260854",
"0.8121158",
"0.8121158",
"0.8076653",
"0.8051997",
"0.8051997",
"0.8051997",
"0.8051997",
"0.8051997",
"0.800331",
"0.78704953",
"0.7845633",
"0.7828545",
"0.78267735",
"0.7813666",
"0.780187",
... | 0.8052682 | 28 |
close the underlying sqlite connection does nothing if db is not open | def DDI8(YKHO):
if YKHO._dbopen:
YKHO._dbcon.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ssTe(JXPP):\n if hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db.close()",
"def ssTe(P1dF):\n if hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db.close()",
"def ssTe(UzPC: sqlite3.Connection):\n UzPC.commit()\n UzPC.close()",
"def ssTe(P1dF):\n if hasattr(Oa1e, 'sqlite_db'):\n ... | [
"0.8454129",
"0.8149841",
"0.8129209",
"0.8094868",
"0.8084425",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"0.8078737",
"... | 0.7719619 | 36 |
Get the value at the position i. This function enables the direct use of [] on the class variable. | def OP2O(YKHO, YRbF):
if YRbF < YKHO.n:
return YKHO.v[YRbF] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, YRbF):\n return YKHO.__x[YRbF]",
"def OP2O(YKHO, YRbF):\n return YKHO._ar[YRbF]",
"def OP2O(YKHO, YRbF):\n return YKHO.data[YRbF]",
"def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)",
"def OP2O(YKHO, YRbF):\n return YKHO._items[YRbF]",
"def OP2O(YKHO, d6pt):\n retu... | [
"0.7798214",
"0.7780655",
"0.7698075",
"0.7553668",
"0.7417038",
"0.7406207",
"0.73919463",
"0.73919463",
"0.73455113",
"0.72985995",
"0.7201157",
"0.7168332",
"0.711198",
"0.711198",
"0.7078776",
"0.7071229",
"0.70249987",
"0.6970516",
"0.6964313",
"0.6954501",
"0.69464606",... | 0.76488507 | 3 |
Log an error to wsgi.error Prepends timestamp and request info to message, and writes the result out to the WSGI server's error stream (wsgi.error). | def Po8m(YKHO, Ol8d):
P6bq = jKi7.text_type
_X1y = P6bq('{0:%Y-%m-%d %H:%M:%S} [FALCON] [ERROR] {1} {2}?{3} => {4}\n').format(qcWV.now(), YKHO.method, YKHO.path, YKHO.query_string, Ol8d)
YKHO._wsgierrors.write(_X1y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XObx(Ol8d):\n E3oo = ct8j(m7L9())\n Ol8d = '{} - [ERROR] - {}'.format(E3oo, Ol8d)\n THCz(Ol8d)",
"def P1dF(rhwM: str):\n bo34.error(rhwM)",
"def Po8m(SnlE, Ol8d):\n PurT(bo34.error, SnlE, Ol8d)",
"def Dj64(YKHO, QePW, P1dF):\n YKHO.log.error('An error occurred at request ' + repr(QePW) ... | [
"0.7171848",
"0.69868",
"0.6958807",
"0.6930659",
"0.69059",
"0.6839625",
"0.6751055",
"0.67479265",
"0.674449",
"0.67396736",
"0.66925055",
"0.6686761",
"0.66611993",
"0.6657639",
"0.6657271",
"0.66560084",
"0.6643298",
"0.6623296",
"0.66136605",
"0.6601584",
"0.6571023",
... | 0.808306 | 0 |
Get the value of the indexth node in the linked list. If the index is invalid, return 1. | def NMoC(YKHO, d6pt):
if d6pt < 0 or d6pt >= YKHO._size:
return -1
jvSB = YKHO._head
for bGrB in range(d6pt):
jvSB = jvSB.next
return jvSB.val | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, d6pt: int) -> int:\n Q6kx = YKHO.get_node(d6pt)\n if Q6kx:\n return Q6kx.val\n else:\n return -1",
"def NMoC(YKHO, d6pt: int) -> int:\n r9Hf = 0\n DpUl = YKHO.head\n while DpUl != None:\n if r9Hf == d6pt:\n return DpUl.val\n DpUl = DpUl.next... | [
"0.8311008",
"0.82245135",
"0.8102407",
"0.79835325",
"0.7973164",
"0.7967605",
"0.79506755",
"0.7929558",
"0.7907135",
"0.7801121",
"0.77369666",
"0.77333367",
"0.7653241",
"0.758598",
"0.75087315",
"0.74754",
"0.74559134",
"0.73894787",
"0.73894787",
"0.7385615",
"0.7339518... | 0.7953716 | 6 |
Add a node of value val before the first element of the list. | def PgMl(YKHO, wEf2):
ac0X = o7DN(wEf2)
if YKHO._size == 0:
YKHO._head = ac0X
YKHO._tail = YKHO._head
else:
ac0X.next = YKHO._head
YKHO._head = ac0X
YKHO._size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rMGb(YKHO, BWXx):\n YKHO.head = o7DN(BWXx, YKHO.head)",
"def byB9(YKHO, wEf2: Generic[T]) -> None:\n V3IK = YKHO.node.next\n YKHO.node.next = o7DN(wEf2)\n zDCE = YKHO.node.next\n zDCE.prev = YKHO.node\n zDCE.next = V3IK\n V3IK.prev = zDCE",
"def PgMl(YKHO, wEf2):\n Q6kx = Msxl(wEf2)... | [
"0.75359005",
"0.75086516",
"0.7265766",
"0.7210811",
"0.7187026",
"0.7126818",
"0.7114664",
"0.7041331",
"0.7002334",
"0.6998083",
"0.6960361",
"0.6928426",
"0.6926228",
"0.6917831",
"0.6886178",
"0.6874261",
"0.6874261",
"0.6840014",
"0.68365437",
"0.679333",
"0.6742933",
... | 0.67412835 | 21 |
Add a node of value val after the last element of the list. | def oHxR(YKHO, wEf2):
tRER = o7DN(wEf2)
if YKHO._size == 0:
YKHO._head = ac0X
YKHO._tail = YKHO._head
else:
YKHO._tail.next = tRER
YKHO._tail = tRER
YKHO._size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nin_(Emd4, Q6kx, BWXx):\n if Q6kx.next_ is None:\n Q6kx.next_ = o7DN(BWXx)\n return\n Emd4._add_last(Q6kx.next_, BWXx)",
"def tj6L(YKHO, BWXx):\n if YKHO.head is None:\n YKHO.add_first(BWXx)\n return\n YKHO._add_last(YKHO.head, BWXx)",
"def oHxR(YKHO, wEf2):\n Q6k... | [
"0.77002114",
"0.7513865",
"0.74891615",
"0.7414042",
"0.7398241",
"0.7382787",
"0.73721033",
"0.72939277",
"0.72939277",
"0.72505826",
"0.72505206",
"0.7214177",
"0.7208675",
"0.7198463",
"0.7197716",
"0.71453947",
"0.711029",
"0.68684894",
"0.68575907",
"0.66421765",
"0.658... | 0.71226496 | 16 |
Add a node of value val before the indexth node in the list. If the index equals the length of the list, the node will be appended to the end of the list. If the index is greater than the length, the node will not be inserted. | def taMJ(YKHO, d6pt, wEf2):
if d6pt < 0 or d6pt > YKHO._size:
return
elif d6pt == 0:
YKHO.addAtHead(wEf2)
return
elif d6pt == YKHO._size:
YKHO.addAtTail(wEf2)
return
jvSB = YKHO._head
for bGrB in range(d6pt - 1):
jvSB = jvSB.next
Esd_ = o7DN(wEf2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def taMJ(YKHO, d6pt, wEf2):\n if d6pt > 0 and (not YKHO.head):\n return\n jbXL = o7DN(wEf2)\n if d6pt == 0 and (not YKHO.head):\n YKHO.head = jbXL\n YKHO.tail = YKHO.head\n return\n if d6pt == 0 and YKHO.head:\n jbXL.nxt = YKHO.head\n YKHO.head = jbXL\n ... | [
"0.7801983",
"0.7746048",
"0.77117217",
"0.756655",
"0.7557875",
"0.75423664",
"0.75372857",
"0.75194174",
"0.74926656",
"0.74786055",
"0.7406398",
"0.739157",
"0.739157",
"0.7191553",
"0.7156409",
"0.6995385",
"0.6900678",
"0.68737906",
"0.6870034",
"0.6850803",
"0.68461645"... | 0.73364395 | 13 |
initializeWeights return the random weights for Neural Network given the number of node in the input layer and output layer | def _Dec(Ya2q, _LFN):
_hZ2 = PZyS(6) / PZyS(Ya2q + _LFN + 1)
XcU5 = oyIN.random.rand(_LFN, Ya2q + 1) * 2 * _hZ2 - _hZ2
return XcU5 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(JNdR, _U7A, j61H):\n l70R = []\n C5tv = JNdR * _U7A + _U7A * j61H\n for upAO in range(C5tv):\n upAO = 0.01 * tuKI.random()\n l70R.append(upAO)\n return l70R",
"def vB93(YKHO, SUd8=None):\n if SUd8:\n pass\n else:\n WKvO = YKHO.weights_shape[1]\n LVAh ... | [
"0.7995273",
"0.7987062",
"0.79761446",
"0.77877796",
"0.7781093",
"0.7772578",
"0.7736843",
"0.76852494",
"0.7664244",
"0.7654055",
"0.7639197",
"0.76340383",
"0.76330215",
"0.75987977",
"0.75979745",
"0.7582952",
"0.756378",
"0.749872",
"0.7494168",
"0.7485116",
"0.74713874... | 0.7468421 | 22 |
Notice that z can be a scalar, a vector or a matrix return the sigmoid of input z | def m1Hg(epBp):
return mFhB(epBp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))",
"def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-1 * epBp))",
"def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))",
"def m1Hg(epBp):\n return 1 / (1 + oyIN.exp(-epBp))",
"def m1... | [
"0.89285356",
"0.8770069",
"0.87670714",
"0.8723193",
"0.87211955",
"0.8716885",
"0.8681525",
"0.86775136",
"0.86584294",
"0.86462337",
"0.8634294",
"0.8619663",
"0.8604683",
"0.8585694",
"0.8568702",
"0.8556937",
"0.8535373",
"0.85267645",
"0.85234636",
"0.8511279",
"0.85052... | 0.89412093 | 0 |
Returns True if debugger REPL is currently active. | def HFvB() -> bool:
global _is_debugger_active
return SUAG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n30Z(YKHO):\n try:\n import SublimeREPL\n return bool(YKHO.get_virtualenv())\n except ImportError:\n return False",
"def otaF():\n return 'INTERACTIVE_MODE' in Hy7s.environ and Hy7s.environ['INTERACTIVE_MODE'] == 'true'",
"def yEjg():\n if HwRy.flags.interactive:\n r... | [
"0.69906026",
"0.6908528",
"0.6903691",
"0.6875724",
"0.6796649",
"0.6792559",
"0.6785219",
"0.6719658",
"0.667868",
"0.66521037",
"0.65209067",
"0.6504046",
"0.64560485",
"0.6451899",
"0.641265",
"0.6363826",
"0.63502914",
"0.63413477",
"0.6339366",
"0.6336778",
"0.63202816"... | 0.7801601 | 0 |
Returns the namespace of the current running job or ''. | def gTqV(jeGQ=True) -> str:
IesV = Nakb(required=jeGQ)
if IesV:
oCfW = IesV.get_current_job()
if oCfW:
return oCfW.task.namespace
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _63S(YKHO):\n return YKHO._execution_namespace.maps[0]",
"def _63S(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace')",
"def _63S(YKHO) -> qe4Y.Out... | [
"0.7477391",
"0.74336064",
"0.74336064",
"0.74336064",
"0.7420307",
"0.7420307",
"0.7420307",
"0.7420307",
"0.7420307",
"0.7300208",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
"0.7246103",
... | 0.8890766 | 0 |
Increments the resource limits used with the supplied job limits. | def bU7i(YKHO, vBqM: Dict[str, int]) -> None:
for zNFK, UHFx in vBqM.items():
YKHO.limits_used[zNFK] += UHFx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTMm(YKHO, vBqM: Dict[str, int]) -> None:\n for zNFK, UHFx in vBqM.items():\n YKHO.limits_used[zNFK] -= UHFx",
"def RGt2(YKHO, oCfW: Job, a80l: Tuple[Tuple, dict]) -> None:\n YKHO._jobs_pending_limits.append((oCfW, a80l))",
"def FKr9(YKHO):\n WLLB = YKHO.RATE_LIMIT_COUNT - YKHO.rate_limit_r... | [
"0.7476188",
"0.62513745",
"0.5766711",
"0.5553519",
"0.5472164",
"0.5360784",
"0.53416866",
"0.5199512",
"0.5175988",
"0.5175453",
"0.51278937",
"0.50853205",
"0.5075789",
"0.5073169",
"0.5043231",
"0.5030346",
"0.501035",
"0.49935257",
"0.49776602",
"0.49582",
"0.49422598",... | 0.75109017 | 0 |
Returns True if the value is valid. Valid Nested Values must have all of their subvalues be valid. | def ch65(YKHO, BWXx: Any) -> bool:
return YKHO.type_registry.is_valid_nested(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wO50(YKHO):\n for U6D_, BWXx in YKHO.items():\n if not 0 <= BWXx <= 1:\n return False\n return True",
"def SGVO(YKHO):\n return YKHO.has_valid_values() and YKHO.has_valid_sum()",
"def ch65(YKHO, BWXx):\n return BWXx in YKHO.values",
"def xzCw(YKHO):\n return YKHO._validat... | [
"0.6912215",
"0.68771243",
"0.6813258",
"0.6422075",
"0.6400205",
"0.63942474",
"0.6225781",
"0.6197763",
"0.6194301",
"0.6171466",
"0.61584455",
"0.6151103",
"0.61449265",
"0.61285686",
"0.611772",
"0.61024266",
"0.6100298",
"0.60888094",
"0.6087818",
"0.6078333",
"0.607575"... | 0.82905567 | 0 |
Apply tags to a value. Returns the original value. | def BVO4(IesV: Scheduler, ePSo: Job, _yhC: SchedulerExpression, BWXx: Any, dJ1p: List[Tuple[str, Any]]) -> sD2T:
def suE3(qIxc):
BWXx, dJ1p = qIxc
mt_5 = IesV.backend.record_value(BWXx)
ePSo.value_tags.append((mt_5, dJ1p))
return BWXx
return IesV.evaluate((BWXx, dJ1p), parent_jo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fpWH(OaeV, xqoZ, BWXx):\n RI88 = pDPe(OaeV, xqoZ, BWXx)\n if RI88 is None and BWXx:\n try:\n RI88 = dict((XP5J.split('=') for XP5J in BWXx))\n except:\n raise k8wH.BadParameter(\"'%s' contains a malformed tag.\" % BWXx, param=xqoZ, param_hint='transform')\n return R... | [
"0.60863465",
"0.60103345",
"0.58741117",
"0.5756815",
"0.56959736",
"0.5685469",
"0.559556",
"0.5582953",
"0.55477524",
"0.5525336",
"0.5520321",
"0.550311",
"0.5488146",
"0.54735464",
"0.5465069",
"0.5444343",
"0.54108995",
"0.54002804",
"0.5390809",
"0.53198767",
"0.530468... | 0.60370874 | 1 |
test get single order endpoint | def jzeS(YKHO):
geh0 = YKHO.client.get('/api/v1/parcels/100')
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pzLN(x0hE):\n _hkX = x0hE.get('/v1/orders/1/', headers={'Authorization': 'Bearer ' + iYE2(x0hE)})\n assert _hkX.status_code == 200\n assert b'order_id' in _hkX.data",
"def uMky(YKHO):\n gj8r = YKHO._create_orders(1)[0]\n _hkX = YKHO.app.get('/orders/{}'.format(gj8r.id), content_type='applicati... | [
"0.86216414",
"0.79897094",
"0.79393685",
"0.79091305",
"0.7850304",
"0.78040946",
"0.7795355",
"0.7675466",
"0.76710373",
"0.75352573",
"0.75261855",
"0.74449664",
"0.7442665",
"0.73159933",
"0.730178",
"0.7255196",
"0.7191828",
"0.7168795",
"0.71075267",
"0.71075267",
"0.71... | 0.681013 | 35 |
test get single user orders endpoint | def H0yf(YKHO):
geh0 = YKHO.client.get('/api/v1/users/5/parcels')
Aofo = qQXR.loads(geh0.data.decode())
YKHO.assertEqual(Aofo['message'], 'User does not have orders', msg='User orders')
YKHO.assertEqual(geh0.status_code, 200) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cQYt(x0hE):\n _hkX = x0hE.get('/v1/orders/1/', headers={'Authorization': 'Bearer ' + NQoL(x0hE)})\n assert _hkX.status_code == 401\n assert b'Not authorized' in _hkX.data",
"def pzLN(x0hE):\n _hkX = x0hE.get('/v1/orders/1/', headers={'Authorization': 'Bearer ' + iYE2(x0hE)})\n assert _hkX.stat... | [
"0.84673715",
"0.7977571",
"0.7890604",
"0.76547015",
"0.7630685",
"0.7593679",
"0.75713634",
"0.7476535",
"0.7325753",
"0.725968",
"0.71052",
"0.70971084",
"0.70817274",
"0.7028726",
"0.701616",
"0.70158327",
"0.69560057",
"0.6910765",
"0.68999344",
"0.6897784",
"0.68625677"... | 0.75452715 | 7 |
Allows using [] operator for a BitBoard object to set the nth bit from the right. | def O1R3(YKHO, exwG, HkJz):
YKHO.num ^= (oyIN.uint64(-HkJz) ^ YKHO.num) & BTEQ << oyIN.uint64(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OP2O(YKHO, d6pt):\n ahpf, yjzm = divmod(d6pt, llJG._UNSIGNED_INT)\n return YKHO.bits[ahpf] & 1 << yjzm",
"def OP2O(YKHO, exwG):\n return YKHO.num >> oyIN.uint64(exwG) & BTEQ",
"def yIgz(YKHO, YRbF):\n return 1 + YRbF << 1",
"def KFD6(wEf2, or8S):\n return wEf2 >> or8S & 1",
"def Y5Gl(YKH... | [
"0.6600082",
"0.6420377",
"0.63657767",
"0.62556946",
"0.6144708",
"0.6117865",
"0.6029796",
"0.6002378",
"0.5959951",
"0.586552",
"0.5807293",
"0.5789982",
"0.57855594",
"0.5774379",
"0.57019717",
"0.5695542",
"0.5632656",
"0.5592799",
"0.559118",
"0.55899686",
"0.5588455",
... | 0.6546778 | 1 |
Allows using the equality operator (==) on a BitBoard object. Returns True if self and other have the same number, False otherwise. | def xa14(YKHO, Elif):
return YKHO.num == Elif.num | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return YKHO.board == Elif.board",
"def xa14(YKHO, Elif) -> None:\n for G1Hx, Ty9i in enumerate(YKHO.board):\n if Ty9i != Elif.board[G1Hx]:\n return False\n return True",
"def xa14(YKHO, Elif):\n for rdlD in range(YKHO.n):\n if YKHO.board[rdlD] != Eli... | [
"0.8070382",
"0.805799",
"0.77454346",
"0.767191",
"0.76465017",
"0.76300716",
"0.7608308",
"0.75929505",
"0.7576381",
"0.75488883",
"0.75417995",
"0.7526526",
"0.75236315",
"0.75236315",
"0.7514441",
"0.7502197",
"0.7491754",
"0.74679625",
"0.7439439",
"0.74248344",
"0.73516... | 0.79679054 | 2 |
Returns the indices of bits with value 1. Returns list of int the indices of bits with value 1 | def _0VL(YKHO):
if YKHO.num == 0:
return []
UOVU = []
for YRbF in [0, 1, 2, 3, 4, 5, 6, 7]:
rdlD = YKHO.num >> wgwu[YRbF] & F0Zk
_0VL = yoDX[rdlD]
for d6pt in _0VL:
UOVU.append(d6pt + YRbF * 8)
return UOVU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ds4v(jBIq):\n RPSO = []\n for YRbF in range(16):\n if jBIq & 1 << YRbF != 0:\n RPSO.append(YRbF)\n return RPSO",
"def oSaS(YKHO):\n ruSK = YKHO.load_mask()\n return [YRbF for YRbF, Ty9i in enumerate(ruSK) if Ty9i == 1]",
"def UOVU(YKHO):\n return list(range(YKHO.lsb, YKH... | [
"0.6909748",
"0.6833257",
"0.67429155",
"0.67052376",
"0.6481154",
"0.6463856",
"0.64460653",
"0.64271104",
"0.6426531",
"0.64205873",
"0.63719845",
"0.636592",
"0.6326136",
"0.6322175",
"0.6287802",
"0.6279872",
"0.6268501",
"0.6246899",
"0.6188786",
"0.6179556",
"0.61688864... | 0.750294 | 0 |
Adds the speficied dictionary of error tables as an instance variable. (Replaces an older value disctionary if set) | def OoXw(YKHO, aFK8):
YKHO.error_distribution = aFK8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gtav(YKHO, TImI):\n YKHO.errorDict.update(TImI)",
"def sScq(YKHO):\n for _TKD in YKHO.task_ids.keys():\n YKHO.training_errors[_TKD] = []\n YKHO.validation_errors[_TKD] = []",
"def XkqC(YKHO, TImI):\n YKHO._errorDict = TImI",
"def EYvN(YKHO, P1dF: Error) -> None:\n YKHO._errors[P... | [
"0.63875175",
"0.63237154",
"0.6250422",
"0.61268705",
"0.58674365",
"0.57235926",
"0.5662186",
"0.5658745",
"0.56573224",
"0.5638606",
"0.5595749",
"0.5590731",
"0.5580868",
"0.54845446",
"0.5465659",
"0.545673",
"0.54328537",
"0.538873",
"0.53511834",
"0.5336923",
"0.532571... | 0.69739336 | 0 |
populates a dictionary counting all ngrams in the specified text. | def n8cN(YKHO, l5Ny, exwG=3):
YKHO.n = exwG
YKHO.vocab = mBkc(V22M(l5Ny))
s2mk = wr3U(l5Ny)
for CG35 in list(pCSA(s2mk, YKHO.n)):
YKHO.lm_dict[tuple(CG35[:-1])][CG35[-1]] += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tbgJ(YKHO, exwG):\n hlel = {}\n for YRbF in range(len(YKHO.text) - exwG + 1):\n KCHu = ' '.join(YKHO.text[YRbF:YRbF + exwG])\n hlel.setdefault(KCHu, 0)\n hlel[KCHu] += 1\n return hlel",
"def bpO1(l5Ny, exwG):\n import re\n fMtn = {}\n SGOI = re.findall('[^\\\\.\\\\?!\"]... | [
"0.76285636",
"0.743605",
"0.72238445",
"0.7215294",
"0.70278937",
"0.6968827",
"0.6953542",
"0.694321",
"0.69221735",
"0.6906369",
"0.6857672",
"0.6839784",
"0.67987186",
"0.67811936",
"0.6777076",
"0.67605853",
"0.67380834",
"0.6720923",
"0.67070496",
"0.65778077",
"0.65403... | 0.6347514 | 32 |
create_app creates an Flask app object, and a socket io object. It also registers a blue print that is imported by the files in the main package | def LUif(dsE5=False):
global app
P4t4.config.from_object(__name__)
P4t4.config['UPLOAD_FOLDER'] = '/uploads'
P4t4.debug = dsE5
P4t4.config['SECRET_KEY'] = 'asdq2312ds1242!67#'
from .main import main as CBFj
P4t4.register_blueprint(CBFj)
yfb1.init_app(P4t4)
return P4t4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LUif():\n P4t4 = L2w0(__name__)\n P4t4.register_blueprint(tfH8)\n P4t4.register_blueprint(Tj1O)\n return P4t4",
"def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n NCls.init_app(P4t4)\n kHcr.init_app(P4t4)\n DvJO.init_ap... | [
"0.7563264",
"0.7527995",
"0.7485648",
"0.74477476",
"0.74352574",
"0.73063874",
"0.7306316",
"0.7302207",
"0.72605777",
"0.7174654",
"0.7147145",
"0.7112591",
"0.70951277",
"0.7070864",
"0.70504856",
"0.7037347",
"0.7022989",
"0.6999846",
"0.69853395",
"0.6979507",
"0.696476... | 0.7959263 | 0 |
Put a dummy file in the storage path for a specific org / repo / oid combination This is useful where we want to test download / verify actions without relying on 'put' actions to work This assumes cleanup is done somewhere else (e.g. in the 'storage_path' fixture) | def YPr9(ITdu, QAIN, boHx, Ux0P, zNig=1):
dMng = Hy7s.path.join(ITdu, QAIN, boHx)
Hy7s.makedirs(dMng, exist_ok=True)
with open(Hy7s.path.join(dMng, Ux0P), 'wb') as eHNT:
for Z9rn in (b'0' for bGrB in range(zNig)):
eHNT.write(Z9rn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x57P(YKHO):\n hnFq = oP9e(s3_client=HzmH())\n with trZe.raises(Exception) as tTpl:\n hnFq.update({}, 'filename.json')\n assert str(tTpl.value) == 'Unable to get the json data path: developer-analytics-audit-report/filename.json'",
"def J0LL(YKHO):\n DDLl = Bd4i(**YKHO.config)\n id = BfD... | [
"0.6258613",
"0.6189135",
"0.61518425",
"0.60565114",
"0.60427105",
"0.6016234",
"0.5982426",
"0.5973468",
"0.59150803",
"0.58627594",
"0.5852138",
"0.583377",
"0.5828712",
"0.58081144",
"0.5781546",
"0.5768488",
"0.57525533",
"0.57150567",
"0.5677788",
"0.5660889",
"0.564079... | 0.6378536 | 0 |
Updates the configured email address in json with the specified one. | async def update_email_address(YKHO, OaeV, Hxmi: str):
taDc = OaeV.message.author
if not ov8O.validate_email_address(Hxmi):
await OaeV.send('Enter a valid Email Address..!')
return
if not YKHO.email_list:
with open('data/email/emails.json', 'r', encoding='utf-8') as nUeQ:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def add_email_address(YKHO, OaeV, Hxmi: str):\n taDc = OaeV.message.author\n if not ov8O.validate_email_address(Hxmi):\n await OaeV.send('Enter a valid Email Address..!')\n return\n if not YKHO.email_list:\n with open('data/email/emails.json', 'r', encoding='utf-8') as nUeQ:\n ... | [
"0.6758696",
"0.6649319",
"0.66205174",
"0.65814",
"0.6533284",
"0.65299386",
"0.6464649",
"0.64231926",
"0.6363455",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.63367385",
"0.62972623",
"0.6... | 0.73792857 | 0 |
Returns the first element child of this element. | def gQcZ(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C9Cw(YKHO):\n U5bT = L3iJ.xmlFirstElementChild(YKHO._o)\n if U5bT is None:\n return None\n qn2R = RM48(_obj=U5bT)\n return qn2R",
"def asyk(YKHO):\n pass",
"def cntZ(YKHO) -> cFlk:\n return laHg.cast(cFlk, YKHO[0])",
"def Syvv(YKHO):\n return YKHO.top()",
"def cntZ(YKHO, mWF... | [
"0.8507301",
"0.8238897",
"0.79082304",
"0.7360048",
"0.72247976",
"0.72134984",
"0.71871084",
"0.6927866",
"0.68941164",
"0.6875892",
"0.68544686",
"0.68317795",
"0.6822144",
"0.6801163",
"0.677644",
"0.6774803",
"0.6774803",
"0.6774803",
"0.6774803",
"0.6774803",
"0.6754091... | 0.88465154 | 0 |
Returns the pytz timezone for a given profile. | def sbS6(z39Z):
try:
return rIAI(z39Z['timezone'])
except:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vsdc(MbZJ=''):\n return FXGE.timezone(MbZJ)",
"def Vsdc():\n return YdD0.get_timezone(_meq())",
"def Vsdc(rIAI: str=None) -> qcWV.tzinfo:\n if rIAI[0] in ('+', '-'):\n rIAI = 'UTC' + rIAI\n Aofo = yl4j.gettz(rIAI)\n if Aofo is not None and (not hasattr(Aofo, '_timezone_')):\n s... | [
"0.69419193",
"0.67402077",
"0.66546315",
"0.6631868",
"0.66101515",
"0.6541733",
"0.6470264",
"0.6251289",
"0.62325686",
"0.6216805",
"0.61196643",
"0.6094955",
"0.60639185",
"0.60381806",
"0.5943455",
"0.58599806",
"0.5823649",
"0.57957953",
"0.57694757",
"0.575144",
"0.575... | 0.83175576 | 0 |
Returns the name of the materializer. | def mWFP(YKHO):
assert False, 'To be implemented by child' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TwaK(YKHO):\n return YKHO.mediatorName",
"def mWFP(YKHO):\n return YKHO.__name if YKHO.__name else ''",
"def mWFP(YKHO):\n return YKHO.__name__",
"def mWFP(YKHO):\n return YKHO.__class__.__name__",
"def mWFP(YKHO):\n return YKHO.__class__.__name__",
"def mWFP(YKHO):\n return YKHO.__... | [
"0.65224195",
"0.63775295",
"0.62668407",
"0.6200436",
"0.6200436",
"0.6200436",
"0.6200436",
"0.6200436",
"0.618134",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61380786",
"0.61333406",
"0.... | 0.0 | -1 |
Return the neighbor edges of a set of nodes. | def k10A(yvY1, pZdl, IMzz=False):
QwJh = []
for exwG in pZdl:
QwJh.extend([exwG for exwG in jHsn.neighbors(yvY1, exwG) if exwG not in pZdl])
QwJh = set(QwJh)
T3uK = [tTpl for tTpl in yvY1.edges(QwJh)]
if IMzz:
Ff8F = set(pZdl).union(QwJh)
T3uK = list(filter(lambda tTpl: tTpl[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mC4V(YKHO) -> fHNa[AzJI[int, int]]:\n mC4V: fHNa[AzJI[int, int]] = set()\n for Lnes in YKHO.nodes:\n for QnLu in YKHO.nodes[Lnes]:\n D70y = (Lnes, QnLu)\n if YKHO.directed:\n mC4V.add(D70y)\n elif D70y[::-1] not in mC4V:\n mC4V.add(D70... | [
"0.7348738",
"0.7197039",
"0.7146783",
"0.6978789",
"0.6972652",
"0.6972293",
"0.69439906",
"0.6938552",
"0.6898308",
"0.6862105",
"0.68566513",
"0.6813812",
"0.67470586",
"0.6730679",
"0.6730679",
"0.6730679",
"0.67134553",
"0.67109674",
"0.66546625",
"0.663519",
"0.6599332"... | 0.659339 | 21 |
Find the local community for the seed node. | def mEHz(yvY1, JZlj, upAO, IdZu=False):
pZdl = JZlj if isinstance(JZlj, list) else [JZlj]
me2V = k6mi(yvY1, nodes_in_community=pZdl, weight=upAO)
T3uK = k10A(yvY1, nodes_in_community=pZdl)
if IdZu:
print('==========\nInitial community has nodes:', pZdl)
print('Neighbor edges:', T3uK)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v7nJ(YKHO):\n return YKHO._community",
"def MhUi(yvY1, P6bq, v7nJ):\n PW5R = yvY1.node[P6bq]\n try:\n return PW5R[v7nJ]\n except KeyError:\n raise jHsn.NetworkXAlgorithmError('No community information')",
"def hlM4(tk5Y, pNZh, azXi):\n v7nJ = [tk5Y]\n azXi.add(tk5Y)\n G5h... | [
"0.652206",
"0.6459925",
"0.5959517",
"0.58640003",
"0.5684736",
"0.5551548",
"0.55422515",
"0.5508503",
"0.5450635",
"0.544914",
"0.5366517",
"0.53642875",
"0.5312185",
"0.5310343",
"0.53053504",
"0.5293446",
"0.52867824",
"0.52631557",
"0.52428997",
"0.51661354",
"0.5139232... | 0.7691389 | 0 |
A Test Fixture method that sets up your testing evironment. | def FCbF(YKHO):
YKHO.phonebook = rXP9() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCbF(YKHO):\n ct9j()",
"def FCbF(YKHO):\n YKHO.setup_beets()",
"def tbq9(YKHO):\n pass",
"def FCbF(YKHO):\n SGZM()\n from espresso import app\n from espresso import db\n from espresso import RESTAURANTS_API_BASE\n from espresso import DEF_MAX_STR_LEN\n YKHO.app = app\n YKHO.... | [
"0.80293226",
"0.7630762",
"0.7500551",
"0.74952453",
"0.7489597",
"0.7480113",
"0.74644",
"0.74414784",
"0.7425531",
"0.74181616",
"0.7417286",
"0.7369186",
"0.7368695",
"0.73341686",
"0.7333627",
"0.7332773",
"0.7328504",
"0.73250586",
"0.7321159",
"0.7321159",
"0.7305308",... | 0.0 | -1 |
Set up a 2D list with 0 as starting value. Basically an empty maze | def LVvf(TVTK: int, H2v2: int) -> list[int]:
return [0] * TVTK * H2v2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lm0U(Cs6h):\n for YRbF in range(4):\n Cs6h.append([])\n for r845 in range(4):\n Cs6h[YRbF].append(0)",
"def zNEO(YKHO):\n Cs6h = []\n for rdlD in range(YKHO.__row_count):\n gAQa = []\n for fvDH in range(YKHO.__col_count):\n gAQa.append(aQih.create_ro... | [
"0.7078072",
"0.6726312",
"0.6667954",
"0.65988696",
"0.6592018",
"0.6586149",
"0.65791607",
"0.65193844",
"0.6518248",
"0.6514708",
"0.6500651",
"0.64990073",
"0.6433521",
"0.6429563",
"0.6405995",
"0.6403955",
"0.6391828",
"0.63908464",
"0.63875794",
"0.6382868",
"0.6342751... | 0.8038226 | 0 |
Convert string to int, float or bool. | def bp7k(vIwR):
if Myyj(vIwR):
return int(vIwR)
elif QpCZ(vIwR):
return float(vIwR)
elif _gPR(vIwR)[0]:
return _gPR(vIwR)[1]
elif vIwR == 'None':
return None
else:
return vIwR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pEH5(KCHu):\n KCHu = KCHu.strip()\n if S69H.match(KCHu):\n return int(KCHu)\n elif r6a1.match(KCHu):\n return float(KCHu)\n elif vvR0.match(KCHu):\n return KCHu.lower() == 'true'\n return KCHu",
"def RChb(j93S):\n if j93S == 'true':\n return True\n elif j93S =... | [
"0.76828194",
"0.76553977",
"0.73779297",
"0.72374725",
"0.7179624",
"0.71139807",
"0.70939726",
"0.70842993",
"0.7072454",
"0.7065246",
"0.70618755",
"0.69620097",
"0.6934844",
"0.69268525",
"0.69156003",
"0.6890665",
"0.68512964",
"0.68299043",
"0.68206966",
"0.6815045",
"0... | 0.72516483 | 3 |
Sets the learning rate | def e_63(K0do, KMvS, qtWj, F8hG, dfHy, LIcp):
zTNR = -1
if qtWj <= zTNR:
tspZ = 1e-06 + (ma4o - 1e-06) * dfHy / (LIcp * zTNR)
else:
tspZ = ma4o * KMvS ** F8hG
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kVtO(YKHO, mVUw):\n YKHO.SGD.set_learning_rate(mVUw)",
"def NcuP(YKHO):\n b0Ix = YKHO.params.base_lr * (1 - float(YKHO.epoch) / YKHO.params.num_epoch) ** YKHO.params.power\n for Lwm5 in YKHO.opt.param_groups:\n Lwm5['lr'] = b0Ix\n print('Change learning rate into %f' % b0Ix)\n YKHO.summ... | [
"0.8623272",
"0.76981455",
"0.7697208",
"0.7697208",
"0.7636927",
"0.758479",
"0.7572249",
"0.7514606",
"0.7490861",
"0.74744666",
"0.74288964",
"0.7413075",
"0.739503",
"0.73916996",
"0.73894364",
"0.73817927",
"0.73783433",
"0.7377333",
"0.7363047",
"0.7362884",
"0.7362884"... | 0.0 | -1 |
Returns whether or not current DCC support URI scheme implementation | def Xpwv():
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ldUk(bD7m):\n return bD7m.startswith(('http://', 'https://'))",
"def IsB9(YKHO):\n return YKHO._isRegularURI",
"def DoJA(YKHO, *qIxc):\n return _VfD.SBase_isPkgURIEnabled(YKHO, *qIxc)",
"def HbQh(YKHO, pmON):\n from urllib.parse import urlparse\n ht58, RYr6, DOop, qgo9, LSGI, ZILt = urlpar... | [
"0.7197058",
"0.65631914",
"0.63984764",
"0.6365035",
"0.63350475",
"0.6291965",
"0.6282432",
"0.62231255",
"0.6218938",
"0.6122386",
"0.6116158",
"0.609617",
"0.6037339",
"0.58740777",
"0.5857427",
"0.5800984",
"0.5788891",
"0.57773966",
"0.5712446",
"0.57089776",
"0.5688984... | 0.859689 | 0 |
Load the image of mask. This works with Supervisely annotation json file. | def FEdX(pmON, LNo8, BkHD='module_unet', hgjH=True):
with open(pmON, 'r') as nUeQ:
nPrm = qQXR.load(nUeQ)
aagL = qVdq(BkHD, data=nPrm)
if aagL is not False:
YEnM = nPrm['objects'][aagL]
Wxnj = YEnM['bitmap']['data']
hLRM = YEnM['bitmap']['origin']
else:
ZHfW = oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FEdX(YKHO):\n PIgS = oW3z(YKHO.ica_dir, YKHO._mask_fname, pat_type='re.match')\n return IEng.load_img(PIgS)",
"def vP4t(YKHO, r8m5):\n U34r = YKHO.image_info[r8m5]\n GRho = Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.dirname(U34r['path'])), 'masks')\n r8hN = frG3.io.imread(Hy7s.path.join(GRho, ... | [
"0.7540442",
"0.75327075",
"0.7476259",
"0.73453903",
"0.70858043",
"0.707864",
"0.6993998",
"0.69673216",
"0.69632465",
"0.69568247",
"0.69354737",
"0.6841621",
"0.6828853",
"0.68196183",
"0.68090135",
"0.67677844",
"0.67606544",
"0.6743097",
"0.67394066",
"0.67362666",
"0.6... | 0.7401739 | 3 |
Apply the given mask to the image. | def f2Y_(LNo8, ZHfW, qfpW):
for Z9rn in range(3):
LNo8[:, :, Z9rn] = oyIN.where(ZHfW == 1, LNo8[:, :, Z9rn] + qfpW[Z9rn], LNo8[:, :, Z9rn])
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f2Y_(YKHO, M9V5=None, _Lsm=None):\n pass",
"def RDgj(LNo8, ZHfW, pKMv=True):\n exwG, r8hN, G1Hx = oyIN.shape(LNo8)\n LNo8 = oyIN.reshape(LNo8, (exwG * r8hN, G1Hx))\n ZHfW = oyIN.ravel(ZHfW)\n if pKMv:\n LNo8[oyIN.invert(ZHfW), :] = 0\n LNo8 = oyIN.reshape(LNo8, (exwG, r8hN, G1Hx)... | [
"0.75504893",
"0.73056287",
"0.72248185",
"0.72057945",
"0.7145598",
"0.7126981",
"0.70481926",
"0.7020258",
"0.69846356",
"0.69273317",
"0.68956983",
"0.6871981",
"0.68613625",
"0.68212813",
"0.67841756",
"0.66909254",
"0.6669622",
"0.6626324",
"0.66110665",
"0.65875024",
"0... | 0.71063143 | 6 |
Load a JSON file into a dictionary object | def lc9H(pmON):
with open(pmON) as KAfx:
return qQXR.load(KAfx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lc9H(qaEx):\n with open(qaEx, 'r') as wM3v:\n cmPJ = qQXR.loads(wM3v.read())\n return cmPJ",
"def WEhu(pmON):\n with open(pmON) as eHNT:\n cmPJ = qQXR.load(eHNT)\n return cmPJ",
"def lc9H(Ux0P: str) -> cuzp:\n with open(Ux0P, 'r') as wM3v:\n return qQXR.load(wM3v)",
"d... | [
"0.8200822",
"0.8155211",
"0.81521964",
"0.81478196",
"0.80547947",
"0.8003142",
"0.7955173",
"0.79148436",
"0.78972894",
"0.78889567",
"0.7887031",
"0.786984",
"0.78247756",
"0.7800903",
"0.77757156",
"0.7761933",
"0.77475476",
"0.7707722",
"0.7693044",
"0.7685587",
"0.76743... | 0.73054796 | 72 |
Return primary monitor desktop offset in points. | def Hh4C(RIzf=False):
global __desktop_offset
if RaPm is None or RIzf:
DiwG()
return RaPm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X4H3(YKHO):\n return vc2v(YKHO.desktopBytes, divby=1000)",
"def pAK3(YKHO):\n return YKHO.get_par('offset')",
"def JFrE(YKHO):\n return PvyL(YKHO._screenPos)",
"def JFrE(YKHO):\n return PvyL(YKHO._screenPos)",
"def JFrE(YKHO):\n return PvyL(YKHO._screenPos)",
"def UFe5(dEMJ=False):\n ... | [
"0.6662204",
"0.6655784",
"0.664291",
"0.664291",
"0.664291",
"0.64892423",
"0.64192665",
"0.64087564",
"0.6281043",
"0.6261143",
"0.6179859",
"0.6086983",
"0.6045123",
"0.6001935",
"0.59499735",
"0.5931384",
"0.5931384",
"0.5923738",
"0.5847856",
"0.5838969",
"0.5837365",
... | 0.71903294 | 0 |
Return primary monitor workarea offset in points. Workarea is the desktop area not covered with taskbar and appbars. | def CzEX(RIzf=False):
global __workarea_offset
if xldt is None or RIzf:
IZV1()
return xldt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hh4C(RIzf=False):\n global __desktop_offset\n if RaPm is None or RIzf:\n DiwG()\n return RaPm",
"def ueuK(l_yL):\n LAGc = int(l_yL.winfo_screenwidth() / 2 - l_yL.winfo_width() / 2)\n Az31 = int(l_yL.winfo_screenheight() / 2 - l_yL.winfo_height() / 2)\n return (LAGc, Az31)",
"def pA... | [
"0.63393426",
"0.61591697",
"0.6150354",
"0.60519344",
"0.5935901",
"0.5818543",
"0.5691967",
"0.55492973",
"0.55326104",
"0.5528017",
"0.5526002",
"0.55244094",
"0.5519584",
"0.5519127",
"0.5495766",
"0.54810524",
"0.5468406",
"0.5464962",
"0.54371643",
"0.54123706",
"0.5399... | 0.6507861 | 0 |
This function plots heatmap for the confusion matrix generated using y_targeted and y_predicted data | def LwSz(yHUx, bdkc, xL0_, btfg):
Bcwd = YsYU(yHUx, bdkc)
oyIN.set_printoptions(precision=2)
Bcwd = Bcwd / Bcwd.astype(oyIN.float).sum(axis=1)
print('Normalized confusion matrix:\n', Bcwd)
LZpg = QrM1.figure(figsize=(10, 7))
iMGt = QrM1.cm.Blues
QrM1.imshow(Bcwd, interpolation='nearest', cma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zi6W(H96n, Rfzd):\n uuEx.set(font_scale=1.5)\n LZpg, aNZO = QrM1.subplots(figsize=(3, 3))\n aNZO = uuEx.heatmap(YsYU(H96n, Rfzd), annot=True, cbar=False)\n QrM1.xlabel('Predicted label')\n QrM1.ylabel('True label')\n return (LZpg, aNZO)",
"def RRX_(H96n, aTLP, SoKf):\n Crrw = list(set(H9... | [
"0.8066013",
"0.80252665",
"0.7778315",
"0.7759368",
"0.77332276",
"0.77152336",
"0.7713815",
"0.7702695",
"0.7671126",
"0.76672614",
"0.7659139",
"0.7652628",
"0.7648334",
"0.76348954",
"0.7628704",
"0.76260024",
"0.7625177",
"0.7621298",
"0.7617312",
"0.76113206",
"0.759762... | 0.77046 | 7 |
If the value is None, none of the options are selected, even if the choices have an empty option. | def nnvc(YKHO):
YKHO.check_html(YKHO.widget(choices=(('', 'Unknown'),) + YKHO.beatles), 'beatles', None, html='<select multiple name="beatles">\n <option value="">Unknown</option>\n <option value="J">John</option>\n <option value="P">Paul</option>\n <option value="G">Geor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f89i(QePW):\n uPxI = TXoP.Structure()\n uPxI.add('mySelect', TXoP.Integer())\n xAU6 = [(1, 'a'), (2, 'b'), (3, 'c')]\n L03z = dsf8.Form(uPxI, 'form')\n L03z['mySelect'].widget = dsf8.SelectChoice(xAU6, none_option=(None, '--select--'))\n return L03z",
"def iOdm(YKHO, BWXx):\n if BWXx is ... | [
"0.73666894",
"0.71223015",
"0.6943403",
"0.6818605",
"0.679304",
"0.66263384",
"0.64865226",
"0.647536",
"0.6461249",
"0.64589727",
"0.63959527",
"0.6200899",
"0.61092174",
"0.60448635",
"0.5958023",
"0.5958023",
"0.5958023",
"0.5958023",
"0.5958023",
"0.5875806",
"0.583616"... | 0.645006 | 10 |
If the value corresponds to a label (but not to an option value), none of the options are selected. | def Kdri(YKHO):
YKHO.check_html(YKHO.widget(choices=YKHO.beatles), 'beatles', ['John'], html='<select multiple name="beatles">\n <option value="J">John</option>\n <option value="P">Paul</option>\n <option value="G">George</option>\n <option value="R">Ringo</option>\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LfuX(YKHO, BWXx):\n return BWXx in YKHO._get_selected_values_set()",
"def Ml90(MTKo, Jyyj):\n if Jyyj.attr.default and MTKo[0] == Jyyj.attr.default:\n return ' selected=\"selected\"'\n else:\n return ''",
"def IUkh(YKHO, wEf2):\n for Z9rn in YKHO.choices:\n if wEf2 == Z9rn.... | [
"0.6433461",
"0.6280617",
"0.61070347",
"0.60176915",
"0.5815001",
"0.5782318",
"0.57336885",
"0.57087183",
"0.56286997",
"0.562658",
"0.561335",
"0.5601482",
"0.5585172",
"0.55557424",
"0.54440963",
"0.5425419",
"0.54213285",
"0.5419213",
"0.5282968",
"0.528117",
"0.527784",... | 0.59219635 | 4 |
Sums all the mortgage amortization. It should add to the total principal, but currently the calculation is off | def CYCC(YKHO):
return sum(YKHO.table['amortization']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XAXL(YKHO):\n pass",
"def FOdN(YKHO, Elif):\n vyDA = FYl6(YKHO.principle + Elif.principle, YKHO.interest_rate + Elif.interest_rate, YKHO.year + YKHO.year)\n return vyDA",
"def zSxe(YKHO) -> ZjSO:\n return YKHO.total_principal + YKHO.total_interest",
"def YhpA(YKHO):\n return oyIN.sum(YKHO.... | [
"0.647219",
"0.639063",
"0.6294372",
"0.61901015",
"0.61525685",
"0.61238",
"0.60279775",
"0.6022122",
"0.5950162",
"0.587477",
"0.57335323",
"0.57253546",
"0.57229096",
"0.5661687",
"0.56520647",
"0.5635031",
"0.56190145",
"0.5566339",
"0.5544127",
"0.5538678",
"0.5524931",
... | 0.61009634 | 6 |
Determines if the default value is a class instance or undefined | def jaEv(YKHO):
return getattr(YKHO, '_auto_create', False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RPLq(YKHO):\n if YKHO.auto_create:\n return YKHO.instance_class\n return BfDw.undefined",
"def Rhek(YKHO):\n WmM4 = VuRd.get_default_instance_type()\n n5sN = VuRd.get_instance_type_by_name(None)\n YKHO.assertEqual(WmM4, n5sN)",
"def kCXs(YKHO) -> bool:\n ...",
"def kCXs(YKHO) -> ... | [
"0.7069194",
"0.6725037",
"0.65143675",
"0.65143675",
"0.65143675",
"0.6465582",
"0.6364496",
"0.6363402",
"0.63292426",
"0.63022715",
"0.6200147",
"0.6176509",
"0.6147603",
"0.60661495",
"0.60496604",
"0.60468775",
"0.6045812",
"0.59634167",
"0.5938387",
"0.59352845",
"0.589... | 0.0 | -1 |
Serialize instance to JSON If the value is a HasProperties instance, it is serialized with the include_class argument passed along. Otherwise, to_json is called. | def Napc(YKHO, BWXx, **B2fa):
B2fa.update({'include_class': B2fa.get('include_class', True)})
if YKHO.serializer is not None:
return YKHO.serializer(BWXx, **B2fa)
if BWXx is None:
return None
if isinstance(BWXx, vTMR):
return BWXx.serialize(**B2fa)
return YKHO.to_json(BWXx, *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(BWXx, **B2fa):\n if isinstance(BWXx, vTMR):\n return BWXx.serialize(**B2fa)\n try:\n return qQXR.loads(qQXR.dumps(BWXx))\n except TypeError:\n raise TypeError(\"Cannot convert type {} to JSON without calling 'serialize' on an instance of Instance Property and registering a cu... | [
"0.74319196",
"0.6433768",
"0.6339223",
"0.6339223",
"0.61455107",
"0.61295074",
"0.6098114",
"0.6036568",
"0.6005711",
"0.596792",
"0.59677947",
"0.5962791",
"0.594594",
"0.59456927",
"0.59456927",
"0.594365",
"0.594365",
"0.594365",
"0.594365",
"0.594365",
"0.594365",
"0.... | 0.8178763 | 0 |
Function for creating DataFrame of trial history related variables. Can be used for design matrix X or to pick and choose useful columns. | def exfV(XaEZ, e5kH):
c_0p = {}
c_0p['choice'] = oyIN.zeros(len(e5kH))
c_0p['choice'][e5kH['trialerror'].isin([0, 3, 5, 7]).values] = 1
gBgq = rLdf.DataFrame(data=c_0p, index=e5kH.index)
c_0p = {}
c_0p['reward'] = oyIN.zeros(len(gBgq))
c_0p['reward'][e5kH['trialerror'].isin([0]).values] = 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def phc6(efFY, JxoE, haxR, Kt_s, Tuqy):\n jQ3Z = rLdf.DataFrame()\n jQ3Z['voltage'] = efFY\n jQ3Z['current'] = JxoE\n jQ3Z['E'] = haxR\n jQ3Z['T'] = Kt_s\n jQ3Z['mode'] = Tuqy\n return jQ3Z",
"def _GLj(XaEZ, e5kH):\n c_0p = {}\n c_0p['choice'] = oyIN.zeros(len(e5kH))\n c_0p['choice'... | [
"0.6419075",
"0.63809985",
"0.6367483",
"0.63235784",
"0.63175976",
"0.625328",
"0.6215031",
"0.60782367",
"0.6038968",
"0.60110885",
"0.60077137",
"0.5887368",
"0.58663785",
"0.5858449",
"0.58322334",
"0.58090556",
"0.5769348",
"0.57577574",
"0.57574666",
"0.57538664",
"0.57... | 0.65549505 | 0 |
Helper function to rename pillow orientation columns to reflect initial training CS. | def rmO3(XaEZ, euNW, yyt8):
eZsX = {'ori_270_pillow': 270, 'ori_135_pillow': 135, 'ori_0_pillow': 0}
QsHS = yyt8.columns
QsHS = [KCHu for KCHu in QsHS if 'pillow' in KCHu]
lWbi = []
c_0p = {}
for EaDy in QsHS:
if 'ori_' in EaDy:
fEKv = eZsX[EaDy]
gtI8 = ulkN.looku... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u4Cg(YKHO):\n YKHO.shape = YKHO.shape.T",
"def pTCP(YKHO, aZAq):\n pmON = aZAq\n zhen = hnIv.open(aZAq)\n JPti = zhen._getexif()\n if JPti != None:\n for TZ9E, BWXx in JPti.items():\n AgdR = qKcR.get(TZ9E, TZ9E)\n if AgdR == 'Orientation':\n if BWXx ... | [
"0.58279693",
"0.5704302",
"0.56078434",
"0.55085444",
"0.54635656",
"0.5456614",
"0.54549474",
"0.53871775",
"0.53042644",
"0.5288474",
"0.5285983",
"0.5256764",
"0.52397776",
"0.52055573",
"0.52053845",
"0.51986295",
"0.5175399",
"0.5164373",
"0.514934",
"0.51314",
"0.51243... | 0.0 | -1 |
Return HTTP Date format string for the given date. | def SJMJ(Csk6=None):
if not Csk6:
Csk6 = qcWV.datetime.utcnow()
return Csk6.strftime('%a, %d %b %Y %H:%M:%S GMT') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JANu(doIl):\n return doIl.strftime('%a, %d %b %Y %H:%M:%S GMT')",
"def pbww(YKHO, nPrm):\n if YKHO.datetime_formatting == 'rfc-2822':\n return pbww(nPrm)\n return nPrm.isoformat()",
"def SJMJ(IMJE=None):\n return snaW(IMJE, usegmt=True)",
"def JvEs(_c1T):\n CjKC = _c1T.day\n x0eS... | [
"0.7564408",
"0.71736807",
"0.70907044",
"0.7041993",
"0.7020039",
"0.6957993",
"0.69402647",
"0.6937533",
"0.681382",
"0.6779001",
"0.6757382",
"0.6748315",
"0.6686438",
"0.6681356",
"0.6680811",
"0.6673426",
"0.6640214",
"0.6639268",
"0.6624753",
"0.6600319",
"0.6589593",
... | 0.7430065 | 1 |
Get the item groups defined on this menu item. | def YJzV(YKHO):
return [Z9rn for Z9rn in YKHO.children if isinstance(Z9rn, mJa2)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def moMn(YKHO):\n return YKHO.get_data('groups')",
"def moMn(YKHO):\n return YKHO._groups",
"def moMn(YKHO):\n return YKHO._groups",
"def moMn(YKHO):\n return YKHO._groups",
"def ubVI(YKHO):\n return [Oa1e[0] for Oa1e in C4gk.getgrall()]",
"def ubVI():\n return cQ68.getGroups()",
"def... | [
"0.7455532",
"0.72525597",
"0.72525597",
"0.72525597",
"0.7091769",
"0.70838684",
"0.7030034",
"0.70178616",
"0.6910916",
"0.68864363",
"0.6714535",
"0.67005545",
"0.6623934",
"0.6593663",
"0.6585952",
"0.6513092",
"0.64993805",
"0.64914525",
"0.64826405",
"0.6476484",
"0.643... | 0.7998321 | 0 |
Yield successive nsized chunks from l. | def eHxA(vC9B, exwG):
for YRbF in Ni9Y(0, len(vC9B), exwG):
yield vC9B[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]",
"def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ... | [
"0.8038813",
"0.79248375",
"0.7923423",
"0.7885103",
"0.78773195",
"0.7815877",
"0.77655786",
"0.77556044",
"0.77441615",
"0.7731815",
"0.77288336",
"0.772473",
"0.77028215",
"0.76889825",
"0.76889825",
"0.7664208",
"0.76570904",
"0.7655856",
"0.7655856",
"0.76458347",
"0.764... | 0.74221736 | 99 |
Check whether all operators defined in this graph. | def eSRS(YKHO) -> bool:
for yhyn in YKHO.__ops:
khtY = YWvJ(uS0y, YKHO.__ops[yhyn])
g4y1: cuzp[str, uS0y] = khtY.input_ops
for YRbF in g4y1.values():
if khtY not in YRbF.output_op_list:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwcB(YKHO):\n qLGm = set()\n for O6J1 in range(YKHO.subgraph.OperatorsLength()):\n khtY = YKHO.subgraph.Operators(O6J1)\n Wiix = YKHO.get_op_code_str(khtY)\n if Wiix not in YKHO.convert_map:\n qLGm.add(Wiix)\n if qLGm:\n tO9_ = 'The following operators are not su... | [
"0.681793",
"0.67518973",
"0.66923434",
"0.6670488",
"0.66500777",
"0.6538026",
"0.6447377",
"0.6429194",
"0.63006896",
"0.61979556",
"0.6182226",
"0.60867333",
"0.6051191",
"0.599039",
"0.5912957",
"0.586952",
"0.5859405",
"0.58540213",
"0.5836321",
"0.58137226",
"0.58137226... | 0.6921312 | 0 |
return float unix timestamp for timestamp string | def cUyl(UPT2):
JRYC = d5IO.parser.parse(UPT2)
return ITS7.mktime(JRYC.timetuple()) + JRYC.microsecond / 1000000.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QGdl(E3oo):\n return E3oo / 1000000.0",
"def X2x9(YKHO, E3oo):\n return int(E3oo * 1000000.0)",
"def u7it(Ei1M):\n return int(round(Ei1M * 1000000.0))",
"def azw4():\n return int(ITS7.time())",
"def _v3t(E3oo):\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S')\n return int(ITS7.mktime... | [
"0.76481307",
"0.75004333",
"0.7454796",
"0.72080797",
"0.71833223",
"0.71688515",
"0.7116566",
"0.70855683",
"0.7076595",
"0.70574826",
"0.69982064",
"0.69758546",
"0.6914333",
"0.6886947",
"0.6824994",
"0.68143016",
"0.6757515",
"0.674048",
"0.6712844",
"0.67057204",
"0.669... | 0.6710278 | 19 |
format timestamp to datetime string | def dd_C(E3oo, bDaW=False):
Bjmr = '%Y-%m-%dT%H:%M:%S'
try:
a1PO = qcWV.datetime.fromtimestamp(int(E3oo)).strftime(Bjmr)
if bDaW:
if E3oo == 0:
a1PO = '%s.000' % a1PO
else:
a1PO = '{0}.{1:03d}'.format(a1PO, int(E3oo * 1000 % 1000))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zb98(E3oo):\n return f'<!date^{int(E3oo)}^{{date_pretty}} at {{time}}| >'",
"def bpfo(Emd4, E3oo):\n return FdZ9(E3oo).strftime('%Y-%m-%d %H:%M:%S')",
"def dd_C(E3oo):\n try:\n _c1T = qcWV.strptime(E3oo, '%Y-%m-%d %H:%M:%S+00:00')\n return qcWV.strftime(_c1T, '%m-%d-%Y')\n except ... | [
"0.8000468",
"0.796402",
"0.7861729",
"0.78546417",
"0.78546417",
"0.78546417",
"0.7721323",
"0.7688386",
"0.7688386",
"0.75868225",
"0.74758357",
"0.746605",
"0.7423134",
"0.7406287",
"0.73696965",
"0.7364619",
"0.73340565",
"0.7333523",
"0.7280673",
"0.7199112",
"0.7189158"... | 0.7278687 | 19 |
Tells the GUI wether the option should be enabled or disabled. Returns True if the option should be enabled and False if it should be disabled. is_set is a function that returns True if an option is enabled and has been edited by the user, else False. It takes one argument, the name of an option as a string. get_value ... | def ikt2(YKHO, bIdP, Zmkp):
ACnF = any([bIdP(_AKB) for _AKB in YKHO.parents]) or not YKHO.parents
UTmO = all([not bIdP(rhlp) or YKHO.non_parent_exceptions.count(rhlp) or rhlp == YKHO.name for rhlp in YKHO.non_parents]) or not YKHO.non_parents
return ACnF and UTmO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GvUf(YKHO, bIdP, Zmkp):\n Mkmy = YKHO._canEnable(bIdP, Zmkp)\n if Mkmy and bIdP(YKHO._speaker) and (Zmkp(YKHO._speaker)[0] in YKHO._enable_values):\n return Mkmy\n else:\n return False",
"def tYgd(xAU6, mWFP, WmM4=False):\n BWXx = xAU6.get(mWFP)\n if not BWXx:\n return WmM... | [
"0.56875503",
"0.5626715",
"0.5483612",
"0.5368945",
"0.5270328",
"0.5239146",
"0.5170919",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5101752",
"0.5095999",
"0.5095999",
"0.5095999",
... | 0.5683669 | 1 |
Returns True for mandatory options. Similar to canEnable. | def q7VK(YKHO, bIdP, Zmkp):
if YKHO._mandatory and (not bIdP(YKHO.name)):
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jeGQ(YKHO) -> qe4Y.Input[bool]:\n return qe4Y.get(YKHO, 'required')",
"def ZtlS(YKHO) -> bool:\n if YKHO.no_params or YKHO.params_optional:\n return False\n else:\n return True",
"def nK9O(YKHO, *qIxc, **B2fa):\n pass",
"def jeGQ(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y... | [
"0.6743455",
"0.6681238",
"0.66694736",
"0.6602361",
"0.6602361",
"0.6564656",
"0.6442865",
"0.6415704",
"0.6413495",
"0.6411688",
"0.63829434",
"0.6381977",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
"0.6379248",
... | 0.6311278 | 70 |
Compare two events Compared to `compare_dict`, this transforms "Detail" keys from JSON serialized string into dict. This compares only based on the keys in 'a'. Therefore, you should put the test event as the first parameter. | def Ppqo(jzdc: dict, Fg_i: dict):
for H5ew, BWXx in jzdc.items():
assert H5ew in Fg_i
if H5ew not in Fg_i:
continue
if H5ew == 'Detail' and isinstance(BWXx, str):
BWXx = qQXR.loads(BWXx)
Fg_i[H5ew] = qQXR.loads(Fg_i[H5ew])
if isinstance(BWXx, dict)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bjF(MpXb):\n shnL = None\n Ctiz = None\n try:\n with open(PGrj + '/output/baseline/{}.json'.format(MpXb.replace(' ', ''))) as LKq2:\n try:\n with open(PGrj + '/output/results/{}.json'.format(MpXb.replace(' ', ''))) as Xz4u:\n shnL = qQXR.load(LKq2)\... | [
"0.5772593",
"0.5763287",
"0.5721768",
"0.5622362",
"0.5537146",
"0.55266505",
"0.55023146",
"0.54470634",
"0.5401647",
"0.5398616",
"0.53715765",
"0.5329773",
"0.5314032",
"0.53100026",
"0.52800256",
"0.5275216",
"0.5203936",
"0.5172735",
"0.517142",
"0.5154183",
"0.51533127... | 0.86670905 | 0 |
Feed forward network to calculate the spacial action probabilities. | def NQ1r(bySB, maxY):
ce6T = []
aA2X = []
with ZylS.variable_scope('actor_spacial_x', reuse=ZylS.AUTO_REUSE):
for YRbF in range(int(len(maxY) / 2)):
ce6T.append(ZylS.layers.dense(bySB, units=maxY[YRbF * 2], activation=ZylS.nn.softmax, name='output%d' % YRbF))
with ZylS.variable_scope... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BoEA(YKHO, g4y1):\n YZVl = 0\n for YRbF in range(len(g4y1)):\n YZVl = YZVl + g4y1[YRbF] * YKHO.weights[YRbF]\n return YKHO.activate(YZVl)",
"def ZJrz(YKHO):\n nEJ5 = YKHO.d_graph\n ZS8O = set()\n SH5w = YKHO.graph.nodes() if YKHO.quiet else PRqg(YKHO.graph.nodes(), desc='Computing tr... | [
"0.6254032",
"0.6204487",
"0.61677766",
"0.6157795",
"0.61552924",
"0.6149894",
"0.6118731",
"0.6103347",
"0.6071567",
"0.6036709",
"0.60204804",
"0.5996701",
"0.598876",
"0.59558094",
"0.59341127",
"0.5931776",
"0.5927991",
"0.5927204",
"0.59151554",
"0.59147096",
"0.5904977... | 0.0 | -1 |
Plot Absolute Total Travel Time vs distance | def YdvX(Kiac):
Lbes, qGo7 = y0OR(data_frame=Kiac, x_var='distance', y_var='totalTT', label_var='mpr', pivot='flow', x_label='Distance [m]', y_label='Total Travel Time [s]', t_label='Flow [veh/h]: ', legends=['0 \\%', '10 \\%', '20 \\%', '30 \\%', '40 \\%'], fnt_size={'fontsize': 16})
return (Lbes, qGo7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(jQ3Z):\n print('\\nCalculating Total Travel Time...\\n')\n SWox = ITS7.time()\n QG_8 = rLdf.to_datetime(jQ3Z['End Time']) - rLdf.to_datetime(jQ3Z['Start Time'])\n print()\n DWr2 = jQ3Z['Total Travel Time'].sum()\n g1uA = DWr2 % 60\n Vzn4 = DWr2 // 60 % 60\n zzkK = DWr2 // 3600 % 60... | [
"0.5991333",
"0.5974185",
"0.5959261",
"0.5911471",
"0.5909492",
"0.5871874",
"0.5866941",
"0.5857713",
"0.5854735",
"0.5851414",
"0.579076",
"0.5785121",
"0.57847613",
"0.57735",
"0.57709414",
"0.5756345",
"0.5755743",
"0.57532287",
"0.5749566",
"0.5745649",
"0.574251",
"0... | 0.5704738 | 28 |
Plot Absolute Total Travel Time vs distance | def cSKJ(Kiac):
Lbes, qGo7 = y0OR(data_frame=Kiac, x_var='distance', y_var='meanTT', label_var='mpr', pivot='flow', x_label='Distance [m]', y_label='Average Travel Time [s]', t_label='Flow [veh/h]: ', legends=['0 \\%', '10 \\%', '20 \\%', '30 \\%', '40 \\%'], fnt_size={'fontsize': 16})
return (Lbes, qGo7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(jQ3Z):\n print('\\nCalculating Total Travel Time...\\n')\n SWox = ITS7.time()\n QG_8 = rLdf.to_datetime(jQ3Z['End Time']) - rLdf.to_datetime(jQ3Z['Start Time'])\n print()\n DWr2 = jQ3Z['Total Travel Time'].sum()\n g1uA = DWr2 % 60\n Vzn4 = DWr2 // 60 % 60\n zzkK = DWr2 // 3600 % 60... | [
"0.5991333",
"0.5974185",
"0.5959261",
"0.5911471",
"0.5909492",
"0.5871874",
"0.5866941",
"0.5857713",
"0.5854735",
"0.5851414",
"0.579076",
"0.5785121",
"0.57847613",
"0.57735",
"0.57709414",
"0.5756345",
"0.5755743",
"0.57532287",
"0.5749566",
"0.5745649",
"0.574251",
"0... | 0.0 | -1 |
Plot Absolute Total Travel Time vs distance | def aDGM(Kiac):
Lbes, qGo7 = y0OR(data_frame=Kiac, x_var='distance', y_var='timetC', label_var='mpr', pivot='flow', x_label='Distance [m]', y_label='Time To Collision [s]', t_label='Flow [veh/h]: ', legends=['0 \\%', '10 \\%', '20 \\%', '30 \\%', '40 \\%'], fnt_size={'fontsize': 16})
return (Lbes, qGo7) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(jQ3Z):\n print('\\nCalculating Total Travel Time...\\n')\n SWox = ITS7.time()\n QG_8 = rLdf.to_datetime(jQ3Z['End Time']) - rLdf.to_datetime(jQ3Z['Start Time'])\n print()\n DWr2 = jQ3Z['Total Travel Time'].sum()\n g1uA = DWr2 % 60\n Vzn4 = DWr2 // 60 % 60\n zzkK = DWr2 // 3600 % 60... | [
"0.5991333",
"0.5974185",
"0.5959261",
"0.5911471",
"0.5909492",
"0.5871874",
"0.5866941",
"0.5857713",
"0.5854735",
"0.5851414",
"0.579076",
"0.5785121",
"0.57847613",
"0.57735",
"0.57709414",
"0.5756345",
"0.5755743",
"0.57532287",
"0.5749566",
"0.5745649",
"0.574251",
"0... | 0.56232554 | 43 |
Get stage configuration including the global section, temporary, source and destination directories. | def INFv(YKHO, u9PO: str):
INFv = YKHO._app_cfg['stages'][u9PO]
aTkz = YKHO._app_cfg['global']
INFv['parameters'].update(**aTkz)
return INFv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UIm1(YKHO):\n return YKHO._read_config()",
"def WmM4(YKHO, EtM5=False):\n return YKHO._build_config(state='default', stage=EtM5)",
"def wOGa(YKHO):\n return {'source': YKHO.source, 'location': YKHO.location, 'uri': YKHO.uri, 'options': YKHO.options, 'cache_dir': YKHO.cache_dir}",
"def tgzD(YKHO)... | [
"0.58905184",
"0.5842106",
"0.57821536",
"0.5687692",
"0.5644515",
"0.56425613",
"0.56335044",
"0.5619607",
"0.5595299",
"0.55899024",
"0.55805373",
"0.555469",
"0.55391836",
"0.55324036",
"0.5525109",
"0.54951656",
"0.5491966",
"0.5477152",
"0.54655063",
"0.54613763",
"0.545... | 0.707392 | 0 |
Path to the temporary directory | def wXKj(YKHO) -> str:
return YKHO._tmp_dir_path | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KKzN():\n return Hy7s.getcwd() + '/temp/'",
"def U9hK():\n return gbPf.mkdtemp()",
"def U9hK(YKHO):\n pmON = gbPf.gettempdir()\n return Hy7s.path.join(pmON, 'parquet-index-test-' + str(qxeD.uuid4()))",
"def wQf6():\n return gbPf.mkdtemp()",
"def VD5O(YKHO):\n return YKHO.get_raw('temp... | [
"0.86474264",
"0.8441564",
"0.8403943",
"0.82864594",
"0.82856137",
"0.8266832",
"0.82653344",
"0.8205435",
"0.8198226",
"0.81844383",
"0.80655783",
"0.8050048",
"0.7944794",
"0.7937984",
"0.7909771",
"0.7899935",
"0.78797644",
"0.7853521",
"0.78517514",
"0.7803357",
"0.77985... | 0.8389147 | 3 |
Two numpy one hot arrays | def lonc(pan_, KeL5, WYZJ=True):
if WYZJ:
UXqs = oyIN.argmax(pan_, axis=1)
YEmv = oyIN.argmax(KeL5, axis=1)
else:
UXqs = pan_
YEmv = KeL5
vjyh = aFTQ(UXqs, YEmv)
rhd_ = Rrc1(UXqs, YEmv)
AOzf = Uw2c(UXqs, YEmv)
PiZT = CCGu(UXqs, YEmv)
return (vjyh, rhd_, AOzf, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLLm(YKHO, LVAh):\n KLLm = oyIN.zeros((YKHO.n_samples, YKHO.n_classes))\n KLLm[oyIN.arange(YKHO.n_samples), LVAh.T] = 1\n return KLLm",
"def FAW1(Crrw):\n yqX4 = oyIN.array(Crrw)\n tXH6 = len(oyIN.unique(yqX4))\n U9dU = len(yqX4)\n U5bT = oyIN.zeros((tXH6, U9dU))\n U5bT[yqX4, oyIN.ara... | [
"0.7473184",
"0.732682",
"0.72331905",
"0.7110888",
"0.7049653",
"0.70042974",
"0.70032334",
"0.6987552",
"0.69430614",
"0.6938048",
"0.69335353",
"0.6922968",
"0.6922968",
"0.6922968",
"0.6922968",
"0.6916119",
"0.69056004",
"0.6866187",
"0.6865059",
"0.68593395",
"0.6838912... | 0.0 | -1 |
Takes the average of each value for a given key in the given list of dicts, returning a single dict containing the average for each key. | def fEkq(usx6):
if len(usx6) == 1:
return usx6[0]
ha45 = {G1Hx: [usx6[r845][G1Hx] for r845 in range(len(usx6))] for G1Hx in usx6[0].keys()}
return {G1Hx: Pusg(oyIN.add, Ty9i) / len(Ty9i) for G1Hx, Ty9i in ha45.items()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZRaq(YDX_, H5ew):\n HCj1 = 0\n for mLGw in YDX_:\n HCj1 += float(mLGw[H5ew])\n return round(HCj1 / len(YDX_), 2)",
"def IEPS(YDX_):\n qqgr = sum(YDX_) / len(YDX_)\n return qqgr",
"def tkwp(xR4a):\n for H5ew, BWXx in xR4a.items():\n xR4a[H5ew] = sum(BWXx) / len(BWXx)\n ret... | [
"0.81283087",
"0.8076289",
"0.7022589",
"0.69858956",
"0.6862206",
"0.6595517",
"0.6592123",
"0.65357",
"0.6532652",
"0.63524765",
"0.63381326",
"0.63339394",
"0.6297491",
"0.62593675",
"0.6240509",
"0.6238489",
"0.6205266",
"0.6198819",
"0.6161661",
"0.61496556",
"0.6128529"... | 0.63392335 | 10 |
Calculate true and false positives per binary classification threshold. | def Vrk8(Y8eF, OU5i, uxJJ=None, xF06=None, cuiw=None, d0LG=None):
Q1aP = wvc0(Y8eF).to_numpy(session=cuiw, **d0LG or dict())
if not (Q1aP == 'binary' or (Q1aP == 'multiclass' and uxJJ is not None)):
raise ValueError(f'{Q1aP} format is not supported')
fTlg(Y8eF, OU5i, xF06, session=cuiw, **d0LG or di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fOCb(BFeB, gwAu=0.5):\n return (BFeB >= gwAu) * oyIN.ones(len(BFeB))",
"def hypE(o3Uj, yLaY):\n rhd_ = 0\n AOzf = 0\n vjyh = 0\n Dyub = 0\n gXXc = sum((jzdc == Fg_i for jzdc, Fg_i in zip(o3Uj, yLaY)))\n jTes = 0\n G9Fx = 0\n Bt4n = 0\n for YRbF in range(len(o3Uj)):\n if o... | [
"0.72858477",
"0.7178873",
"0.71700084",
"0.70652574",
"0.6872478",
"0.6812764",
"0.67682606",
"0.67504483",
"0.6720072",
"0.6555941",
"0.6544707",
"0.6531244",
"0.650584",
"0.6488155",
"0.6440363",
"0.64390707",
"0.6436647",
"0.64338964",
"0.64246184",
"0.6423984",
"0.642181... | 0.0 | -1 |
returns the residual for the given measurement (z). Does not alter the state of the filter. | def BqAM(YKHO, epBp):
raise 'Not implemented yet'
return epBp - BJ1H(YKHO._H, YKHO._x) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BqAM(YKHO, epBp):\n return oyIN.subtract(epBp, YKHO.HJacob(YKHO.x) @ YKHO.x_prior)",
"def uuHL(bypm):\n return YKHO.h_S(cflT, bypm) - eRbF",
"def ed_d(WKvO, epBp=None, gNly=oyIN.inf):\n if epBp is None:\n return WKvO\n cDK5 = WKvO.shape[0]\n ed_d = oyIN.zeros_like(WKvO)\n kFiY = XN... | [
"0.7594592",
"0.7394567",
"0.68412524",
"0.6240067",
"0.5935702",
"0.59130114",
"0.58512014",
"0.57680964",
"0.5740834",
"0.56955564",
"0.56799614",
"0.56455976",
"0.5625991",
"0.56134766",
"0.55619967",
"0.5553281",
"0.5550101",
"0.54963684",
"0.5495011",
"0.54783815",
"0.54... | 0.8129559 | 0 |
Reject requests for sessions with email addresses Do not lookup user with current email and assign to customer as it is privilege escalation Also don't provide ValidationError that email exists as can be used to check db contents | def YBiq(YKHO):
if getattr(YKHO.instance, 'email', None):
raise sUXu(YKHO.registered_error)
return YKHO.cleaned_data['email'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G_e6(YKHO):\n eOtH = YKHO.authenticate_user(YKHO.auth_user_data).data['token']\n aDQb = gxEw('authentication:verify_email', kwargs={'token': eOtH})\n geh0 = YKHO.client.get(aDQb, HTTP_AUTHORIZATION=f'token {eOtH}')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)",
"def NDUF(YKHO):\n... | [
"0.6736022",
"0.64072067",
"0.63895",
"0.63715184",
"0.6368517",
"0.6353353",
"0.6351078",
"0.6268455",
"0.62545395",
"0.62186426",
"0.6199948",
"0.6199948",
"0.6166389",
"0.6159571",
"0.61542916",
"0.6153669",
"0.61323494",
"0.6130199",
"0.6130199",
"0.60694695",
"0.604942",... | 0.0 | -1 |
A list of parameter rules. See `config_rule_parameters` below. | def OXNE(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AggregateCompliancePackConfigRuleConfigRuleParameterArgs']]]]:
return qe4Y.get(YKHO, 'config_rule_parameters') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXNE(YKHO) -> h8nf[bdIy['outputs.CompliancePackConfigRuleConfigRuleParameter']]:\n return qe4Y.get(YKHO, 'config_rule_parameters')",
"def OXNE(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['CompliancePackConfigRuleConfigRuleParameterArgs']]]]:\n return qe4Y.get(YKHO, 'config_rule_parameters')",
"def c_NS(... | [
"0.6591533",
"0.65825087",
"0.657194",
"0.65262836",
"0.6484703",
"0.64447474",
"0.6372168",
"0.6284343",
"0.6219744",
"0.6164855",
"0.6155788",
"0.6104082",
"0.6095166",
"0.60067964",
"0.60000676",
"0.59681064",
"0.5962869",
"0.5956988",
"0.59493977",
"0.5942893",
"0.5938839... | 0.6327826 | 7 |
The rule ID of Aggregate Config Rule. | def LEfj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'config_rule_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def La_l(YKHO) -> str:\... | [
"0.8523939",
"0.8523939",
"0.8523939",
"0.8523939",
"0.8289458",
"0.81522363",
"0.81522363",
"0.76127535",
"0.740866",
"0.7401294",
"0.7344906",
"0.7344906",
"0.73176056",
"0.7157632",
"0.7157632",
"0.6953851",
"0.6953851",
"0.6928749",
"0.68633544",
"0.68353754",
"0.6479877"... | 0.81129134 | 8 |
A list of Config Rule Parameters. See `config_rule_parameters` below. | def OXNE(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['CompliancePackConfigRuleConfigRuleParameterArgs']]]]:
return qe4Y.get(YKHO, 'config_rule_parameters') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OXNE(YKHO) -> h8nf[bdIy['outputs.CompliancePackConfigRuleConfigRuleParameter']]:\n return qe4Y.get(YKHO, 'config_rule_parameters')",
"def OXNE(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['AggregateCompliancePackConfigRuleConfigRuleParameterArgs']]]]:\n return qe4Y.get(YKHO, 'config_rule_parameters')",
"... | [
"0.7549047",
"0.73954594",
"0.7373033",
"0.72942793",
"0.6999339",
"0.64008105",
"0.6108071",
"0.6046775",
"0.6030475",
"0.6016424",
"0.59917104",
"0.5981634",
"0.5906509",
"0.5904397",
"0.5820268",
"0.5790313",
"0.5786285",
"0.5779738",
"0.57746214",
"0.57685894",
"0.5677224... | 0.7695557 | 0 |
The rule ID of Config Rule. | def LEfj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'config_rule_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def LEfj(YKHO) -> str:\n return qe4Y.get(YKHO, 'config_rule_id')",
"def La_l(YKHO) -> str:\... | [
"0.9227865",
"0.9227865",
"0.9227865",
"0.9227865",
"0.88453764",
"0.88097996",
"0.88097996",
"0.8082578",
"0.7680346",
"0.7680346",
"0.7512799",
"0.74273443",
"0.7417218",
"0.7417218",
"0.71960586",
"0.71960586",
"0.7013749",
"0.68643725",
"0.6795767",
"0.6651074",
"0.663275... | 0.87683296 | 7 |
Creates a file name with whitespaces and comma in it. | def b8V_():
if HwRy.platform == 'win32':
Ux0P = u'foo, bar, ~p#o,,ué^t%t .txt'
else:
Ux0P = u'foo, bar, ~p#o,,ué^t%t 和平.txt'
with open(Ux0P, 'w') as eHNT:
eHNT.write('Bingo!')
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def loba(YKHO):\n assert YKHO.__patient_name and YKHO.__location_name, 'New filename could not be determined, one or more needed arguments is empty!'\n q0MN = YKHO.__patient_name.split(' ')\n q0MN.reverse()\n return Hy7s.path.join(Hy7s.path.dirname(YKHO.file._path), '%s MR %s%s' % (YKHO.__location_name... | [
"0.6311297",
"0.61566633",
"0.6099529",
"0.5912327",
"0.58958834",
"0.5796131",
"0.5716558",
"0.57034683",
"0.5701581",
"0.566149",
"0.5656592",
"0.5636747",
"0.56219584",
"0.5620714",
"0.55743927",
"0.55133545",
"0.54821044",
"0.5458007",
"0.5458007",
"0.5458007",
"0.5447742... | 0.0 | -1 |
Returns the final render limits in drawing units. | def UmcJ(hLRM: tuple[float, float], yU7p: tuple[float, float], NXpY: float) -> tuple[float, float, float, float]:
JRC0, LChT = hLRM
IA3S = JRC0 + yU7p[0] * NXpY
dCLF = LChT + yU7p[1] * NXpY
return (JRC0, LChT, IA3S, dCLF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def etkV(YKHO):\n Caaf = YKHO._get_render_area()\n return (Caaf.width(), Caaf.height())",
"def c5uu(YKHO):\n return YKHO._limits",
"def hN1Z(YKHO):\n return (YKHO.modelSizeX, YKHO.modelSizeY)",
"def MxBW(YKHO):\n return _VfD.Model_getExtentUnits(YKHO)",
"def ukKr(YKHO):\n if YKHO.pixel ==... | [
"0.64869076",
"0.6246936",
"0.62459916",
"0.6198676",
"0.61402845",
"0.6135662",
"0.6098194",
"0.6047764",
"0.6047367",
"0.60120845",
"0.6002889",
"0.6002087",
"0.5988555",
"0.59336525",
"0.58845633",
"0.5884055",
"0.5876222",
"0.5874457",
"0.58665425",
"0.5848205",
"0.582979... | 0.58823484 | 16 |
If user does not exist raise 404 | def cFcJ(YKHO):
Mkmy = YKHO.client.get(gxEw('jp_browser_user_addons', args=['not_a_user']))
NaW5(Mkmy.status_code, 404) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bF6V(YKHO):\n _hkX = YKHO.app.get('/users/thisuserdoesntexist')\n assert _hkX.status_code == 404",
"def vEH7(YKHO):\n geh0 = YKHO.client.get('/api/v2/projects/queries/non_existent/touched/')\n YKHO.assertEqual(geh0.status_code, 404)",
"def EmYe(YKHO):\n YKHO.sign_in()\n geh0 = YKHO.client... | [
"0.7784908",
"0.75018907",
"0.7315309",
"0.7218134",
"0.71437484",
"0.7109212",
"0.7105639",
"0.7088962",
"0.70444095",
"0.70382386",
"0.69319147",
"0.6901871",
"0.6898351",
"0.68502396",
"0.6784059",
"0.67245686",
"0.6715634",
"0.6709655",
"0.6661238",
"0.6653801",
"0.660908... | 0.0 | -1 |
Returns windows' bottom left and upper right coordinates. | def Afg7(YKHO):
return (YKHO._points[0][1], YKHO._points[0][3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pmnP(YKHO):\n XOP0 = oyIN.asarray([YKHO.coords[G1Hx][0] for G1Hx in range(YKHO.dim)])\n K3QL = oyIN.asarray([YKHO.coords[G1Hx][-1] for G1Hx in range(YKHO.dim)])\n return (XOP0, K3QL)",
"def yH9b(YKHO):\n YKHO._updateExtents()\n return (YKHO._mMinX, YKHO._mMaxY)",
"def HhD9(YKHO):\n XOP0 =... | [
"0.7588765",
"0.7371377",
"0.7364667",
"0.7273465",
"0.7175858",
"0.71603",
"0.6978559",
"0.6955939",
"0.69496405",
"0.69457185",
"0.69152683",
"0.6864769",
"0.6842592",
"0.6741698",
"0.6732085",
"0.6692326",
"0.6636758",
"0.65708774",
"0.65470517",
"0.65089947",
"0.6504737",... | 0.0 | -1 |
find item at index O(logn) | def OP2O(YKHO, d6pt):
Q6kx = YKHO.head
d6pt += 1
for ABDL in reversed(range(YKHO.max_levels)):
while Q6kx.width[ABDL] <= d6pt:
d6pt -= Q6kx.width[ABDL]
Q6kx = Q6kx.next[ABDL]
return Q6kx.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(ybN4, H5ew):\n for YRbF in range(len(ybN4)):\n if ybN4[YRbF] == H5ew:\n return YRbF\n return -1",
"def tGyG(ezWE):\n for H5ew, BWXx in enumerate(ezWE):\n if BWXx == H5ew:\n return BWXx\n return -1",
"def neBz(YKHO, ZfUD):\n wEsz = str(ZfUD)\n try:\... | [
"0.73403645",
"0.7285283",
"0.7256406",
"0.72192067",
"0.7076826",
"0.70636237",
"0.7017031",
"0.7004161",
"0.6980659",
"0.6977091",
"0.6956756",
"0.6955723",
"0.6947856",
"0.69336104",
"0.6928404",
"0.6908248",
"0.68609035",
"0.6830031",
"0.67474884",
"0.6713557",
"0.6701740... | 0.0 | -1 |
Checks if the username is taken. | def MksC(YKHO, NtEF):
return YKHO._send_command_to_entity_server(bypm.SERVER_COMMAND_IS_USERNAME_TAKEN, NtEF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUbN(YKHO, NtEF: str) -> bool:\n return not YKHO.registry.name_taken(NtEF)",
"def mxq9(YKHO, NtEF):\n if YKHO.username_regex.search(NtEF) is not None:\n print('Correct username')\n return True\n else:\n print('Wrong username')\n return False",
"def MksC(NtEF):\n if m... | [
"0.81478673",
"0.80027384",
"0.7977952",
"0.79088664",
"0.78071237",
"0.77540445",
"0.77000445",
"0.76849204",
"0.76560986",
"0.7654159",
"0.76199186",
"0.759584",
"0.7577727",
"0.7518458",
"0.75051093",
"0.7501145",
"0.74822515",
"0.74822515",
"0.7481107",
"0.7427473",
"0.74... | 0.83023614 | 0 |
Sets an entity owner's account type. | def cna6(YKHO, NtEF, dhPZ):
return YKHO._send_command_to_entity_server(bypm.SERVER_COMMAND_ENTITY_OWNER_SUDO_OPERATION, bypm.SERVER_COMMAND_SET_ENTITY_OWNER_ACCOUNT_TYPE + ':' + NtEF + '|' + dhPZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FG0N(YKHO, FG0N):\n YKHO._owner_type = FG0N",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def dhPZ(YKHO, dhPZ):\n YKHO._account_type = dhPZ",
"def zXgc(YKHO, zXgc):\n ... | [
"0.7410548",
"0.7158551",
"0.7158551",
"0.7158551",
"0.7158551",
"0.6882924",
"0.684857",
"0.6795967",
"0.62622094",
"0.61940455",
"0.6181932",
"0.6143483",
"0.598256",
"0.59306407",
"0.5928705",
"0.5928705",
"0.59151745",
"0.5794388",
"0.57399946",
"0.573809",
"0.57057524",
... | 0.8488248 | 0 |
Test that 404 is received if stream keying is active and no key is supplied. | def zOpa(YKHO):
yield YKHO.connect(YKHO.get_body_node(connect=True, useKey=True))
try:
yield YKHO.proxy.send(YKHO.get_body_node(useKey=False))
except c0MM.HTTPBNetworkTerminated as e:
YKHO.failUnlessEqual(tTpl.body_tag.getAttribute('condition', None), 'item-not-found')
else:
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irPd(YKHO):\n YKHO.expect_datatore_lookup('SomeBlobKey', False)\n YKHO.mox.ReplayAll()\n YKHO.assertResponse('404 %s' % B3z0.responses[404], [], '', YKHO.app, YKHO._environ)",
"def jMan(YKHO):\n yield YKHO.connect(YKHO.get_body_node(connect=True, useKey=False))\n try:\n yield YKHO.proxy... | [
"0.71751565",
"0.68717134",
"0.6758383",
"0.6712094",
"0.6623941",
"0.65079397",
"0.63736016",
"0.63221323",
"0.62995946",
"0.6291591",
"0.6198733",
"0.61873883",
"0.6119805",
"0.6104908",
"0.60972327",
"0.6089556",
"0.60793036",
"0.6070781",
"0.6057753",
"0.60511345",
"0.602... | 0.6948038 | 1 |
Test that 404 is received if stream keying is active and an invalid key is supplied. | def vWJX(YKHO):
yield YKHO.connect(YKHO.get_body_node(connect=True, useKey=True))
try:
yield YKHO.proxy.send(YKHO.get_body_node(useKey=True, key='0' * 40))
except c0MM.HTTPBNetworkTerminated as e:
YKHO.failUnlessEqual(tTpl.body_tag.getAttribute('condition', None), 'item-not-found')
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irPd(YKHO):\n YKHO.expect_datatore_lookup('SomeBlobKey', False)\n YKHO.mox.ReplayAll()\n YKHO.assertResponse('404 %s' % B3z0.responses[404], [], '', YKHO.app, YKHO._environ)",
"def opIF():\n EMZs.abort(404, P6bq._('Not Found. Transport Key not found.'))",
"def phj_(qv1X):\n qv1X.get(V0zr, te... | [
"0.70581234",
"0.6773711",
"0.6703525",
"0.6577645",
"0.64888525",
"0.6487448",
"0.6433129",
"0.64217377",
"0.64207226",
"0.63452977",
"0.6323731",
"0.63000107",
"0.6277581",
"0.6276906",
"0.6187017",
"0.6178576",
"0.61544955",
"0.6140631",
"0.6140631",
"0.61278945",
"0.60901... | 0.63721424 | 9 |
Test that 404 is received if we supply a key on a connection without active keying. | def jMan(YKHO):
yield YKHO.connect(YKHO.get_body_node(connect=True, useKey=False))
try:
yield YKHO.proxy.send(YKHO.get_body_node(key='0' * 40))
except c0MM.HTTPBNetworkTerminated as e:
YKHO.failUnlessEqual(tTpl.body_tag.getAttribute('condition', None), 'item-not-found')
else:
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def irPd(YKHO):\n YKHO.expect_datatore_lookup('SomeBlobKey', False)\n YKHO.mox.ReplayAll()\n YKHO.assertResponse('404 %s' % B3z0.responses[404], [], '', YKHO.app, YKHO._environ)",
"def opIF():\n EMZs.abort(404, P6bq._('Not Found. Transport Key not found.'))",
"def kr6A(YKHO, H5ew, Wcwb, O_CR):\n ... | [
"0.74655044",
"0.7324034",
"0.67250246",
"0.6582305",
"0.6524632",
"0.651834",
"0.65116256",
"0.6484993",
"0.64640075",
"0.6426485",
"0.63820726",
"0.6365951",
"0.6349338",
"0.634543",
"0.63412136",
"0.63242966",
"0.63227385",
"0.6307354",
"0.63016105",
"0.6301024",
"0.627006... | 0.64702964 | 8 |
Calculates the scaled dot product attention | def DM8l(T8ck, nMvt, cAlv, ZHfW=None):
LwVP = ZylS.matmul(T8ck, nMvt, transpose_b=True)
WiZd = ZylS.cast(ZylS.shape(nMvt)[-1], ZylS.float32)
_q8E = LwVP / ZylS.math.sqrt(WiZd)
if ZHfW is not None:
_q8E += ZHfW * -1000000000.0
_mSQ = ZylS.nn.softmax(_q8E, axis=-1)
o4Jx = ZylS.matmul(_mSQ,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUzg(vexM, G1Hx, Ty9i, ZHfW):\n LwVP = ZylS.matmul(vexM, G1Hx, transpose_b=True)\n WiZd = ZylS.cast(ZylS.shape(G1Hx)[-1], ZylS.float32)\n _q8E = LwVP / ZylS.sqrt(WiZd)\n if ZHfW is not None:\n _q8E += ZHfW * 1e-09\n HfyR = ZylS.nn.softmax(_q8E, axis=-1)\n hlel = ZylS.matmul(HfyR, Ty9i)... | [
"0.70013",
"0.69744056",
"0.6910764",
"0.6848379",
"0.6848379",
"0.6844328",
"0.684218",
"0.683746",
"0.681162",
"0.669818",
"0.65013546",
"0.6460076",
"0.64451927",
"0.6365774",
"0.6238608",
"0.62133294",
"0.6199948",
"0.6149572",
"0.59957415",
"0.5993061",
"0.59593284",
"... | 0.0 | -1 |
Testing the header BundleFailed. This function will test all code values for this enum class. | def kKba(YKHO):
wfRC = 17
bKDN = xxyF.ErrorType.OFPET_BUNDLE_FAILED
APFA = 0
itSR = xxyF.ErrorType.get_class(bKDN).__iter__()
u54L = xxyF.ErrorType.get_class(bKDN).__len__()
while APFA < YKHO.MAX_BUNDLE_FAILED_CODE_VALUE or u54L > 0:
nPrm = _Moe(tuKI.randint(2, 250)).pack()
RQ5D ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fTN2(YKHO):\n wfRC = 2\n bKDN = xxyF.ErrorType.OFPET_BAD_ACTION\n APFA = 0\n itSR = xxyF.ErrorType.get_class(bKDN).__iter__()\n u54L = xxyF.ErrorType.get_class(bKDN).__len__()\n while APFA < YKHO.MAX_BAD_ACTION_CODE_VALUE or u54L > 0:\n nPrm = _Moe(tuKI.randint(2, 250)).pack()\n ... | [
"0.6854216",
"0.68238926",
"0.6742314",
"0.66837996",
"0.66063106",
"0.6599182",
"0.6596785",
"0.6550373",
"0.64881974",
"0.6480709",
"0.6388697",
"0.6345695",
"0.63311666",
"0.6312015",
"0.6262921",
"0.6209131",
"0.6205707",
"0.6202694",
"0.61926794",
"0.6191609",
"0.6164562... | 0.7616201 | 0 |
Generates batches of images from image_generator. Yields batches of images, image embeddings and class labels | def hfA0(fOXV, C3ST, Ep8u, bySB=True):
while True:
rOE2 = wLyO(fOXV)
zowJ, VFGi, x1UU = ([], [], [])
for VXjJ, ogYM in rOE2:
if bySB:
VXjJ = oyIN.expand_dims(VXjJ, 0)
HW89 = C3ST.predict(VXjJ)
VFGi.append(HW89)
zowJ.appe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BbHL(gNnx, kmfe, qtWj, ik2X, Ep8u=128):\n UXqs = oyIN.random.randint(0, ik2X, size=(Ep8u, 1))\n UXqs = vnL1.to_categorical(UXqs, num_classes=ik2X)\n ryc1 = gNnx.predict([oyIN.random.rand(10, 100), UXqs])\n ryc1 = ryc1 * 127.5 + 127.5\n ryc1 = oyIN.squeeze(oyIN.round(ryc1).astype(oyIN.uint8))\n ... | [
"0.724984",
"0.7093016",
"0.7084492",
"0.695288",
"0.6944777",
"0.6895919",
"0.68900627",
"0.68779296",
"0.68654627",
"0.6860123",
"0.68406713",
"0.6833361",
"0.68241405",
"0.67093205",
"0.670478",
"0.66874576",
"0.666385",
"0.6634802",
"0.66271895",
"0.6620623",
"0.66002846"... | 0.73834807 | 0 |
residual block for convolutional encoder | def uuHL(he5B, input):
ROpF = input.shape
bGrB, MKlR, yzQ0, Csk6 = ROpF
jtyf = yHwh(he5B, (5, 5), padding='valid', activation='elu')(input)
V70B = yHwh(he5B, (1, 1), padding='valid', activation='linear')(jtyf)
vCua = Ym4f(cropping=2)(input)
dcxj = XVRe()([V70B, vCua])
return dcxj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QufS(WKvO, d6pt, YPaw='encoding'):\n if YPaw != 'encoding':\n d6pt = 'decode_{}'.format(d6pt)\n gb7z = bISY.Conv2D(128, (3, 3), padding='same', activation='selu', kernel_initializer=MuED, name='conv1_res_{}'.format(d6pt))(WKvO)\n gb7z = bISY.Conv2D(128, (3, 3), padding='same', kernel_initialize... | [
"0.7649921",
"0.74739087",
"0.74001074",
"0.73615426",
"0.7342737",
"0.73328227",
"0.73307055",
"0.7252453",
"0.7178753",
"0.71580565",
"0.69932663",
"0.698503",
"0.6974107",
"0.69735676",
"0.6959267",
"0.6935483",
"0.69116217",
"0.689626",
"0.68945765",
"0.68642795",
"0.6785... | 0.6471796 | 28 |
Function for gathering lists of image paths on the disk and splitting them to train and test data classes list of classes that should be gathered in dataset_path. They are names of folders, and then names of folders are considered as labels | def bmbR(mC1D, KndY=('glare_small', 'normal'), NI2E=0.25):
InMW = []
RLKD = []
for Emd4 in KndY:
dir = Hy7s.path.join(mC1D, Emd4)
e5N9 = SC2F.glob(dir + '/*.png')
e5N9.extend(SC2F.glob(dir + '/*.jpg'))
UXqs = None
if Emd4 == 'glare_small' or Emd4 == 'glare':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nz75(YKHO, KndY):\n mUkZ, ZJoE = ([], [])\n for i6XV in KndY:\n ww6k = YKHO.data_path + YKHO.dataset + '/' + i6XV\n jePI = [eHNT for eHNT in U9eF(ww6k) if EFYe(gzes(ww6k, eHNT))]\n tAT2 = 0\n for gIsw in jePI:\n if gIsw != '.DS_Store':\n f4BB = ww6k =... | [
"0.7684645",
"0.7579565",
"0.7276159",
"0.7268057",
"0.72623914",
"0.72380525",
"0.719673",
"0.7180717",
"0.71574926",
"0.7132667",
"0.70951617",
"0.7068589",
"0.70428675",
"0.70253223",
"0.70020163",
"0.69968307",
"0.695199",
"0.69496536",
"0.6892565",
"0.68697196",
"0.68610... | 0.76423645 | 1 |
Create an instance of type LinkedList. Allow data to be passed in. | def FIMM(YKHO, nPrm=None):
YKHO.head = None
YKHO.tail = None
if nPrm is not None:
try:
for ZfUD in nPrm:
if ZfUD is nPrm[0]:
YKHO.head = o7DN(ZfUD, next=None)
YKHO.tail = YKHO.head
else:
YKHO.head... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0",
"def uwhX():\n CLNC = _sfu()\n CLNC.push(20)\n CLNC.push(4)\n CLNC.push(15)\n CLNC.push(85)\n return CLNC",
"def FIMM(YKHO, nPrm=None):\n if nPrm is not None:\n YKHO._size = 1\n ... | [
"0.6913204",
"0.68632394",
"0.6852119",
"0.6798918",
"0.66747683",
"0.66606814",
"0.6533949",
"0.6531399",
"0.6500879",
"0.6485104",
"0.6449696",
"0.6448955",
"0.6448955",
"0.644425",
"0.64330465",
"0.64116734",
"0.6401485",
"0.6358894",
"0.6353688",
"0.6348854",
"0.63437706"... | 0.7110324 | 0 |
Creates date object from MAL date string | def z3Lu(oPTj):
if oPTj:
return qcWV.strptime(oPTj, GGme).date()
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BOAD(vIwR):\n NArs = vIwR.strip().split('-')\n lO87 = int(NArs[0])\n x0eS = int(NArs[1])\n CjKC = int(NArs[2])\n Csk6 = _c1T(lO87, x0eS, CjKC)\n return Csk6",
"def _BvQ(Emd4, JvEs: str):\n cSTY = [int(_pUq) for _pUq in JvEs.split('/')]\n return r2Tc.from_date(_c1T(cSTY[2], cSTY[0], cS... | [
"0.7390956",
"0.724717",
"0.7034429",
"0.7033988",
"0.70308965",
"0.6910145",
"0.69050604",
"0.6902696",
"0.6837709",
"0.68255466",
"0.6800793",
"0.6792672",
"0.6729699",
"0.67273295",
"0.66814417",
"0.66730183",
"0.663877",
"0.65925974",
"0.65781224",
"0.65544796",
"0.653991... | 0.61020505 | 67 |
calculate the PPS skew fall difference. | def sYoZ(YKHO):
qUok = YKHO.read_channel(2)
ix_i = YKHO.read_channel(3)
if len(qUok) == 0 or len(ix_i) == 0:
print('TDC readout error')
return
try:
g2Km = 0
baT3 = 0
Osr4 = []
while True:
l4bR = qUok[g2Km] - ix_i[baT3]
if abs(l4bR) ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uRwD(YKHO) -> float:\n return float(KG9w.skew(YKHO.tsdf.pct_change().values, bias=True, nan_policy='omit'))",
"def oAe0(OYZ_, MulT):\n return MulT / OYZ_",
"def oAe0(OYZ_, MulT):\n return MulT / OYZ_",
"def a4ld():\n GpjW = 0.0384\n return GpjW",
"def _oWe(YKHO):\n return oyIN.cross(Y... | [
"0.602884",
"0.59352046",
"0.59352046",
"0.59067804",
"0.5774577",
"0.5734194",
"0.56210107",
"0.5607008",
"0.56009334",
"0.55715984",
"0.5516547",
"0.5466388",
"0.5451766",
"0.54362035",
"0.54031175",
"0.5386985",
"0.53595835",
"0.53456163",
"0.5338788",
"0.5325208",
"0.5304... | 0.5063408 | 47 |
Normalize a matrix so that each row vector has a Euclidean norm of 1. If a vector is passed in, we treat it as a matrix with a single row. | def zdGZ(SppC, jDK_=1):
if len(SppC.shape) == 1:
SppC = SppC[oyIN.newaxis, :]
di96 = oyIN.linalg.norm(SppC, axis=jDK_)[:, oyIN.newaxis]
Aofo = oyIN.divide(SppC, di96, out=oyIN.zeros(SppC.shape), where=di96 != 0)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JGX3(*iArr):\n iArr = oyIN.array(iArr).flatten()\n CkYf = oyIN.linalg.norm(iArr)\n if CkYf == 0:\n return iArr\n return iArr / CkYf",
"def NkkI(F_On):\n if len(oyIN.asarray(F_On).shape) == 1:\n return F_On / oyIN.linalg.norm(F_On)\n CkYf = oyIN.linalg.norm(F_On, axis=1)\n r... | [
"0.7969215",
"0.72398895",
"0.7218774",
"0.71803224",
"0.71326554",
"0.7077896",
"0.7066542",
"0.7039434",
"0.7027425",
"0.70229024",
"0.7010408",
"0.70064217",
"0.6987403",
"0.6976482",
"0.69626105",
"0.69532454",
"0.69477797",
"0.6938035",
"0.69054806",
"0.6894304",
"0.6855... | 0.7671009 | 1 |
Check if a numpy matrix contains a row with the same values as the variable `row`. | def k9gG(SppC, rdlD):
return (SppC == rdlD).all(axis=1).any() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHqo(FWzL):\n for rdlD in range(len(FWzL)):\n for fvDH in range(len(FWzL)):\n if FWzL[rdlD].count(FWzL[rdlD][fvDH]) != 1:\n return True",
"def Z6sC(rdlD, qw7D):\n return any((qw7D[:] == rdlD).all(1))",
"def _BRF(YKHO, hkxX, rdlD, BWXx):\n for iVRZ in range(0, spQE)... | [
"0.77201223",
"0.75901115",
"0.7516611",
"0.7009039",
"0.70081276",
"0.69381815",
"0.68853056",
"0.67625016",
"0.6672804",
"0.6664632",
"0.66555256",
"0.66123796",
"0.6610709",
"0.65916854",
"0.64841956",
"0.6450899",
"0.6398128",
"0.63943046",
"0.63871175",
"0.6374781",
"0.6... | 0.84777 | 0 |
Return an ordered list of indices. Batches will be constructed based on this order. | def oKXt(YKHO):
return YKHO.d1.ordered_indices() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oKXt(YKHO):\n return oyIN.arange(len(YKHO), dtype=oyIN.int64)",
"def oKXt(YKHO):\n return YKHO.base_dataset.ordered_indices()",
"def DzXR(YKHO):\n bS0K = []\n for Z9rn in YKHO.components:\n bS0K.extend(Z9rn.get_indexes())\n return bS0K",
"def lvRE(YKHO):\n return [tTFA(mWFP, d6pt... | [
"0.7877737",
"0.78238994",
"0.7392575",
"0.73646766",
"0.7234698",
"0.7088341",
"0.7078515",
"0.7076954",
"0.707424",
"0.70301586",
"0.70283735",
"0.69826525",
"0.6944714",
"0.69391733",
"0.68995196",
"0.6896396",
"0.6883154",
"0.6861051",
"0.6805219",
"0.6694801",
"0.6588738... | 0.73083484 | 4 |
Find a global threshold for a grayscale image by choosing the threshold to be the mean of the two peaks of the bimodal histogram. Will fail and return 0 if the histogram is not bimodal | def njb9(pdhd):
exwG = 255
LVAh = oyIN.histogram(pdhd.ravel(), bins=exwG + 1, range=(0, exwG))[0].astype(float)
iter = 0
while not djIe(LVAh):
MKlR = oyIN.ones(3) / 3
LVAh = oyIN.convolve(LVAh, MKlR, mode='same')
iter += 1
if iter > 10000:
return 0
ogdh = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lHg_(VXjJ):\n Q6gp = VXjJ.flatten()\n ImAk = oyIN.arange(0, 257, 1)\n uHUu, ra6D = oyIN.histogram(Q6gp, ImAk)\n ImAk = (ra6D[:-1] + ra6D[1:]) / 2\n IQWq = oyIN.cumsum(uHUu * oyIN.arange(0, 256, 1))\n yg3d = oyIN.cumsum(uHUu)\n r8hN, exwG = VXjJ.shape\n iztg = oyIN.sum(Q6gp[[0, exwG - 1,... | [
"0.7353051",
"0.70555973",
"0.70077443",
"0.6897841",
"0.6839656",
"0.6743144",
"0.6651191",
"0.6638801",
"0.661403",
"0.65546846",
"0.6524581",
"0.6514374",
"0.64493847",
"0.63868046",
"0.63337594",
"0.62814605",
"0.62776625",
"0.6271481",
"0.62531227",
"0.62234646",
"0.6220... | 0.0 | -1 |
A worker leaves a barrier. This is useful for garbage collection of used barriers. | def JDLc(YKHO, U3lI, Xbjn):
YKHO.barriers[Xbjn].leave()
if YKHO.barriers[Xbjn].all_leave():
del YKHO.barriers[Xbjn] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_DX():\n assert VQ6Z.exit_barrier is not None\n VQ6Z.exit_barrier.wait()\n with VQ6Z.lock:\n for pOv4 in VQ6Z.exit_list:\n pOv4()\n VQ6Z.finish_barrier.wait()",
"def sHQK():\n import mpi4py.rc\n XwTP.rc.initialize = False\n from XwTP import MPI\n if MPI.Is_initializ... | [
"0.68815327",
"0.6371032",
"0.6312291",
"0.5838245",
"0.5810506",
"0.5764221",
"0.575634",
"0.57377344",
"0.57220906",
"0.57218015",
"0.5670469",
"0.56654644",
"0.5598296",
"0.55571437",
"0.54274553",
"0.54264617",
"0.5423499",
"0.54172754",
"0.54132414",
"0.5405347",
"0.5385... | 0.81848615 | 0 |
Return the line graph of this graph. | def aR4T(YKHO, Kemh=True, rKLW=False):
raise Exception("Graph store doesn't support creating an line matrix.") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XkPg(YKHO):\n Ty9i = YKHO.vertices + YKHO.vertices[0]\n return NTRO(Ty9i, properties=YKHO.properties, crs=YKHO.crs)",
"def LYw4(YKHO):\n return YKHO._line_axes",
"def aR4T():\n LZpg = QrM1.figure()\n aNZO = QrM1.axes()\n WKvO = [1, 2, 3]\n LVAh = [5, 6, 7]\n QrM1.plot(WKvO, LVAh)\n ... | [
"0.69421196",
"0.66094303",
"0.65163636",
"0.6508966",
"0.64072347",
"0.6395848",
"0.6268945",
"0.6254995",
"0.62520796",
"0.62520796",
"0.62454784",
"0.6243992",
"0.6210982",
"0.61400455",
"0.6048266",
"0.6040779",
"0.6035213",
"0.602751",
"0.59967977",
"0.59967977",
"0.5973... | 0.69998544 | 0 |
The id of the current worker using the graph store. When a worker connects to a graph store, it is assigned with a worker id. This is useful for the graph store server to identify who is sending requests. The worker id is a unique number between 0 and num_workers. This is also useful for user's code. For example, user'... | def U3lI(YKHO):
return YKHO._worker_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U3lI(YKHO):\n return YKHO.assignment.WorkerId",
"def vRjh():\n if sEAN.get_env(FVTS) is not None:\n jQY2 = qQXR.loads(Hy7s.environ.get(FVTS))\n P8ER = jQY2.get(yebN)\n LEgg = P8ER.get(Km9w)\n vytA = P8ER.get(pYQ3)\n _y2n = LEgg + '-' + str(vytA)\n elif sEAN.get_env... | [
"0.79644775",
"0.6867604",
"0.67427415",
"0.6534",
"0.6517408",
"0.65023816",
"0.63878566",
"0.626391",
"0.62478197",
"0.62402785",
"0.61907613",
"0.61850846",
"0.61850846",
"0.6155047",
"0.6154011",
"0.613194",
"0.6098799",
"0.6036889",
"0.59988403",
"0.5997603",
"0.59669125... | 0.8178549 | 0 |
Linear learning rate schedule. | def m9zl(lJf5: float) -> YrBT[[float], float]:
def JfyU(DKt2: float) -> float:
"""
Progress will decrease from 1 (beginning) to 0.
:param progress_remaining: (float)
:return: (float) current learning rate
"""
return DKt2 * lJf5
return JfyU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZT_s(qtWj, RCJ4):\n tspZ = RCJ4\n if qtWj == 23:\n tspZ *= 0.5\n elif qtWj == 21:\n tspZ *= 0.1\n elif qtWj == 16:\n tspZ *= 0.1\n elif qtWj == 11:\n tspZ *= 0.1\n return tspZ",
"def ZT_s(qtWj, tspZ):\n b0Ix = tspZ\n if qtWj > 10:\n b0Ix *= 0.1\n ... | [
"0.75147927",
"0.7498791",
"0.74401283",
"0.7395729",
"0.73818046",
"0.73818046",
"0.73818046",
"0.73818046",
"0.7321529",
"0.73215175",
"0.7317692",
"0.731659",
"0.731496",
"0.72786736",
"0.7256097",
"0.7231925",
"0.7225809",
"0.72007567",
"0.71790355",
"0.71790355",
"0.7156... | 0.7111894 | 22 |
Get the command line arguments | def yaFo():
wvEv = j1Jz.ArgumentParser(description='Training script for Lux RL agent.')
wvEv.add_argument('--id', help='Identifier of this run', type=str, default=str(tuKI.randint(0, 10000)))
wvEv.add_argument('--learning_rate', help='Learning rate', type=float, default=0.001)
wvEv.add_argument('--gamma... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbGV(YKHO):\n pass",
"def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc",
"def jgwn():\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('-s', '--symbol', help='symbol query')\n wvEv.add_argument('-l', '--limit', help='limit on number of image results', default='max... | [
"0.81876403",
"0.78115046",
"0.7758656",
"0.7589955",
"0.7581819",
"0.75676763",
"0.7533646",
"0.75306165",
"0.7524564",
"0.7522715",
"0.74770534",
"0.7473281",
"0.74606335",
"0.74426633",
"0.7437458",
"0.7433479",
"0.7403201",
"0.7399979",
"0.73626983",
"0.7356871",
"0.73470... | 0.0 | -1 |
Checks if current value is prime. Returns True or False. | def T1qg(BWXx):
if BWXx < 2:
raise ValueError
for YRbF in range(2, BWXx):
if BWXx % YRbF == 0:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T1qg(YKHO):\n pass",
"def T1qg(mLGw: int) -> bool:\n return TFEx(mLGw - 1) % mLGw != 0",
"def T1qg(BWXx: int) -> bool:\n if BWXx == 1:\n return False\n if BWXx <= 0:\n raise ValueError('Value must be greater than zero')\n for YRbF in range(2, int(BWXx ** (1 / 2)) + 1):\n ... | [
"0.80649674",
"0.7807129",
"0.7773812",
"0.76800424",
"0.7579584",
"0.75628823",
"0.7498487",
"0.74832773",
"0.7441865",
"0.7435454",
"0.7424535",
"0.74090767",
"0.73964554",
"0.7391202",
"0.73834187",
"0.737528",
"0.73695165",
"0.73431134",
"0.734006",
"0.7332288",
"0.732334... | 0.76975924 | 3 |