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.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.81218547",
"0.81218547",
"0.80773693",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80526286",
"0.80042696",
"0.7871678",
"0.7845623",
"0.7828392",
"0.7827006",
"0.78138447",
"... | 0.80533457 | 20 |
Constructor for a Neuron object | def FIMM(YKHO, _mSQ):
if len(_mSQ) == 0:
raise Exception('Error: Invalid input weights')
YKHO._weights = _mSQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, jHsn):\n if not isinstance(jHsn, int):\n raise TypeError('nx must be an integer')\n if jHsn < 1:\n raise ValueError('nx must be a positive integer')\n '\\n W = The weights vector for the neuron. Upon instantiation\\n using a random normal distribution.\\n ... | [
"0.79738605",
"0.7597465",
"0.7353959",
"0.7231481",
"0.7207281",
"0.7183412",
"0.70984834",
"0.7091131",
"0.7090566",
"0.7077017",
"0.7047264",
"0.702352",
"0.7021905",
"0.7018575",
"0.7009885",
"0.69210434",
"0.6920294",
"0.6898878",
"0.6868661",
"0.68676364",
"0.6855767",
... | 0.0 | -1 |
Update the current weight with the given weight delta | def MyUA(YKHO, NiVw):
YKHO._weights = yw76.vector_sum(YKHO._weights, NiVw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value",
"def MyUA(YKHO):\n pass",
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()",
"def vvCV(YKHO, We7B, hSYI):\n YKHO.sum1 -= YKHO.data_set[We7B].weight\n YKHO.data... | [
"0.79364264",
"0.76176095",
"0.75691634",
"0.7566814",
"0.75202656",
"0.7497759",
"0.74281836",
"0.7407178",
"0.7337497",
"0.7301701",
"0.7270133",
"0.7265375",
"0.7262237",
"0.714753",
"0.71333677",
"0.7102003",
"0.7041415",
"0.7021671",
"0.70161235",
"0.69539577",
"0.690912... | 0.8541726 | 0 |
Deletes the agent element on the canvas, and redraws it at the new state location | def QdZT(YKHO, AJEJ):
if YKHO.update_animation:
YKHO.canvas.delete(YKHO.agent)
rdlD, fvDH = AJEJ
o4D3 = fvDH * YKHO.GRID_ROW_HEIGHT
si3g = rdlD * YKHO.GRID_ROW_HEIGHT
YKHO.agent = YKHO.canvas.create_image(o4D3 + YKHO.GRID_ROW_HEIGHT / 2, si3g + YKHO.GRID_ROW_HEIGHT / 2, image... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n YKHO.canvas.delete('node_' + YKHO.identifier)\n YKHO.canvas.tag_unbind('node_' + YKHO.identifier, '<Any>')",
"def ZubH(YKHO):\n YKHO.movement = ''\n YKHO.canvas.delete(YKHO.ball)",
"def INFO(YKHO):\n if not YKHO.canvas:\n return\n if not YKHO.canvas.isClosed():\n ... | [
"0.6978077",
"0.6698394",
"0.63849384",
"0.63558096",
"0.6339495",
"0.6298731",
"0.6262945",
"0.62217695",
"0.6190558",
"0.616468",
"0.61136556",
"0.61136556",
"0.6109834",
"0.60887885",
"0.60701597",
"0.6048633",
"0.601569",
"0.599125",
"0.5968352",
"0.5968352",
"0.59576297"... | 0.6304387 | 5 |
Deletes the agent element on the canvas, and redraws it at the start location | def Lko3(YKHO, rEkR):
if YKHO.update_animation:
YKHO.canvas.delete(YKHO.agent)
rdlD, fvDH = rEkR
o4D3 = fvDH * YKHO.GRID_ROW_HEIGHT
si3g = rdlD * YKHO.GRID_ROW_HEIGHT
YKHO.agent = YKHO.canvas.create_image(o4D3 + YKHO.GRID_ROW_HEIGHT / 2, si3g + YKHO.GRID_ROW_HEIGHT / 2, image... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO):\n YKHO.canvas.delete('node_' + YKHO.identifier)\n YKHO.canvas.tag_unbind('node_' + YKHO.identifier, '<Any>')",
"def ZubH(YKHO):\n YKHO.movement = ''\n YKHO.canvas.delete(YKHO.ball)",
"def ThF5():\n YKHO.parent_class.canvas.delete('all')",
"def VD94(YKHO):\n for ufJO in YKHO.... | [
"0.6850116",
"0.67763364",
"0.66194516",
"0.6546015",
"0.6516195",
"0.6437526",
"0.6368342",
"0.635552",
"0.63020915",
"0.62905496",
"0.62492776",
"0.62403834",
"0.6193632",
"0.6142521",
"0.6142521",
"0.6109802",
"0.610264",
"0.6091745",
"0.60832644",
"0.6077725",
"0.6076658"... | 0.6123724 | 15 |
If the provided HTTP request header contains a 'updatedSince' value, parses the value and returns it as a number of seconds since 1970. | def Mo8E(QePW):
if 'updatedSince' in QePW.arguments:
bypm = QePW.arguments['updatedSince'][0]
fHeP = OrZp.match(bypm)
r8hN = fHeP.groupdict()
lO87 = 0
if r8hN['year']:
try:
lO87 = int(r8hN['year'])
except:
pass
x... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s3fC(YKHO):\n return (qcWV.utcnow() - YKHO.last_update_datetime).total_seconds()",
"def pw_q(YKHO, C6wh=None):\n bD7m = '{0}/{1}'.format(YKHO.get_pull_url(), 'since')\n NArs = P8oC.get_params(('seconds',), locals())\n return (Xqgu.Request('GET', bD7m, NArs), gpan.parse_json)",
"def wlAs(IznC):\... | [
"0.6073428",
"0.58592075",
"0.5749036",
"0.57252103",
"0.56871647",
"0.56829596",
"0.5681911",
"0.5597623",
"0.5597623",
"0.5570426",
"0.55699205",
"0.5503255",
"0.5460118",
"0.54585403",
"0.5436943",
"0.54296196",
"0.5428707",
"0.54115844",
"0.5392215",
"0.5388706",
"0.53838... | 0.68917334 | 0 |
Pushes a diagnostic to the inflight diagnostics stack. | def PhXP(YKHO, sx8w: Diagnostic) -> None:
YKHO._inflight_diagnostics.append(sx8w) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vmM2(YKHO, sx8w: Diagnostic) -> jd6F[Ke9m, None, None]:\n YKHO._inflight_diagnostics.append(sx8w)\n try:\n yield sx8w\n finally:\n YKHO._inflight_diagnostics.pop()",
"def wUuw(YKHO, sx8w):\n YKHO._diagnostics_list.append(sx8w)",
"def YuKk(YKHO: _Diagnostic, E5BI: infra.Stack) -> N... | [
"0.6217021",
"0.618841",
"0.57341397",
"0.55969477",
"0.5326345",
"0.52847344",
"0.52583814",
"0.5046785",
"0.5046785",
"0.5035475",
"0.4979315",
"0.49768132",
"0.49152374",
"0.49132392",
"0.48740172",
"0.48603904",
"0.48577407",
"0.48576224",
"0.4847173",
"0.48314714",
"0.48... | 0.82572174 | 0 |
Return true if the queue is not empty | def eRwN(YKHO):
return not YKHO.empty() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def lsmZ(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0... | [
"0.9118835",
"0.90226334",
"0.90096045",
"0.90096045",
"0.89602274",
"0.89586806",
"0.8947663",
"0.8911488",
"0.8892824",
"0.88819426",
"0.88758475",
"0.8866937",
"0.8796679",
"0.8788819",
"0.87555903",
"0.87411493",
"0.87411493",
"0.8708874",
"0.8636329",
"0.860362",
"0.8569... | 0.0 | -1 |
Get the environment config file. | def knDs(YKHO):
Fv2L = Hy7s.path.join(YKHO.juju_home, 'environments.yaml')
if not Hy7s.path.exists(Fv2L):
raise BybI('Juju environments.yaml not found %s' % Fv2L)
return Fv2L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nug2():\n return UEiy.get_deployr_config_file()",
"def Nu1S(YKHO):\n return YKHO[ByCR]",
"def S673() -> GkAb:\n GPtr = Hy7s.getenv('TOM_CONFIG', '')\n return GkAb(GPtr)",
"def tgzD(fjgt):\n \"\"\" script absolute location \"\"\"\n Yb80 = Hy7s.path.dirname(tq_1.getfile(tq_1.currentframe(... | [
"0.7840051",
"0.7779786",
"0.75120795",
"0.74376327",
"0.7372582",
"0.7329114",
"0.73032075",
"0.7278699",
"0.72614646",
"0.7240988",
"0.72286487",
"0.7194988",
"0.71946055",
"0.7146135",
"0.7136438",
"0.7124891",
"0.71054673",
"0.7084764",
"0.707211",
"0.70672953",
"0.705607... | 0.7823943 | 1 |
returns a json set of documents with the given attributes | def TgwQ(YKHO, bNfU, Voci, DkIV=None, C3ST=None, ezgq=None, qpgY=None, nHqQ=None, BMRM=None):
m6JG = bNfU * (Voci - 1)
Wunn = []
if DkIV:
Wunn.append({'brand': DkIV})
if C3ST:
Wunn.append({'model': C3ST})
if ezgq:
Wunn.append({'price': {'$gt': ezgq}})
if qpgY:
Wun... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ol4k(XkHx=None, t8OZ=None, Hngk=qQXR.values()):\n return qQXR.objects(required_fields=XkHx, optional_fields=t8OZ, elements=Hngk)",
"def NMoC(YKHO):\n R7S5 = QePW.args.getlist('attributes')\n try:\n ZlgM = EfUA([iVRZ(vexM) for vexM in R7S5]).select_from(l5Ny('patient'))\n print(ZlgM)\n ... | [
"0.6897233",
"0.6227147",
"0.61913586",
"0.59923625",
"0.5919395",
"0.57320637",
"0.57306385",
"0.57058734",
"0.55986124",
"0.55965334",
"0.55608904",
"0.5548245",
"0.5530532",
"0.55280334",
"0.5478374",
"0.5478374",
"0.5461847",
"0.54339606",
"0.5407311",
"0.5392416",
"0.537... | 0.0 | -1 |
Convenience method to return an Instagram object with the default credentials/setup | def LBEz():
d66D = kz5o()
kUZF = Hy7s.path.abspath(tq_1.getfile(tq_1.currentframe()))
T4vF = Hy7s.path.dirname(kUZF)
M7du, a3YT = d66D.get_account('Instagram')
ygzC = rSjt.default_mongodb(d66D)
x0hE = rSjt(M7du, a3YT, ygzC, T4vF)
return x0hE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, NtEF=None, jTXt=None):\n YKHO.username = GPtr['AUTH']['USERNAME']\n YKHO.password = GPtr['AUTH']['PASSWORD']\n YKHO.login = GPtr['URL']['LOGIN']\n YKHO.nav_url = GPtr['URL']['NAV']\n YKHO.tag_url = GPtr['URL']['TAGS']\n YKHO.direct_url = GPtr['URL']['DM']\n YKHO.driver = cSpz.Ch... | [
"0.6764892",
"0.607418",
"0.58953965",
"0.58937913",
"0.58239806",
"0.57799137",
"0.57614213",
"0.5460017",
"0.54169947",
"0.5402411",
"0.5358456",
"0.5353845",
"0.5325129",
"0.53091663",
"0.5261959",
"0.5250193",
"0.523959",
"0.52378243",
"0.52058744",
"0.51471525",
"0.51471... | 0.6771792 | 0 |
Finds and returns the smallest unused element from 0 to n. | def PI0b(ezWE):
for WKvO in range(len(ezWE) + 1):
if WKvO not in ezWE:
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d8i8(IqQl, exwG):\n if exwG <= 0:\n raise Exception('Invalid argument')\n tNCC = list(sorted(set(IqQl)))\n return tNCC[exwG - 1]",
"def vlKL(YKHO, exwG=1):\n E5BI = [YKHO]\n CL9V = None\n UHFx = 0\n while UHFx < exwG and E5BI:\n ZfUD = E5BI.pop()\n if isinstance(ZfUD... | [
"0.72080666",
"0.70314085",
"0.6650083",
"0.65984404",
"0.64688796",
"0.6426433",
"0.6358506",
"0.63570064",
"0.63551736",
"0.63042235",
"0.6289911",
"0.6261654",
"0.6171056",
"0.61558825",
"0.60650325",
"0.6059295",
"0.6016449",
"0.5981935",
"0.59537464",
"0.5949816",
"0.594... | 0.0 | -1 |
Return the machine status, as defined in `Server.status_data()`. Requires read access. | def jGRS(Wxnj=200):
return (pz3A(N5z6.status_data()), Wxnj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO):\n return YKHO.read_register(259, 0, 3)",
"def QtQ8(YKHO):\n YKHO.sendCommand(cmdBytes=b'\\xfe')\n kERt = YKHO.readReply(inputEndpoint=YKHO.epStatus, unpackingFormat=YKHO.statusPackingFormat, timeout=1000)\n jGRS = YKHO.Status(*kERt)\n YKHO.lastStatus = jGRS\n return jGRS",
"de... | [
"0.75821817",
"0.74087423",
"0.7262589",
"0.72497797",
"0.7208214",
"0.71589094",
"0.71352714",
"0.7088371",
"0.7081893",
"0.7078567",
"0.7051613",
"0.7011308",
"0.6992414",
"0.69921654",
"0.69677454",
"0.6932528",
"0.6932527",
"0.6929364",
"0.69280344",
"0.69222456",
"0.6911... | 0.0 | -1 |
Returns the next action in the path chosen earlier (in registerInitialState). Return Directions.STOP if there is no further action to take. | def bk5W(YKHO, QTBn):
if 'actionIndex' not in dir(YKHO):
YKHO.actionIndex = 0
YRbF = YKHO.actionIndex
YKHO.actionIndex += 1
if YRbF < len(YKHO.actions):
return YKHO.actions[YRbF]
else:
return o5oX.STOP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XeOP(YKHO):\n HUMG = YKHO.strategy.get_next_move(YKHO)\n return HUMG",
"def AMEM(YKHO, QTBn):\n if YKHO.globSeq == []:\n YKHO.globSeq = YKHO.graphSearch(QTBn)\n if not YKHO.globSeq:\n return o5oX.STOP\n return YKHO.globSeq.pop(0)",
"def AMEM(YKHO, QTBn):\n if YKHO.gl... | [
"0.72917974",
"0.70389724",
"0.70389724",
"0.69733477",
"0.6870712",
"0.6823267",
"0.6764109",
"0.6656355",
"0.65738255",
"0.65582967",
"0.6466158",
"0.6421366",
"0.6365749",
"0.636001",
"0.6213877",
"0.61840165",
"0.61811143",
"0.6180762",
"0.6158909",
"0.6149792",
"0.611905... | 0.70153034 | 5 |
Return a new array of given shape and type, filled with zeros. | def VNqG(ROpF, OaeV=None, yDqo=None, cCim=None, **B2fa):
if cCim is None or cCim == 'default':
return Bd8I(ROpF, OaeV, yDqo, **B2fa)
else:
return tTmF(cCim, ROpF, OaeV, yDqo, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VNqG(ROpF, yDqo=None):\n if not isinstance(ROpF, (list, tuple, DKnh)):\n ROpF = [ROpF]\n if yDqo is None:\n yDqo = GPtr.floatX\n return a2Be(XTiz.array(0, dtype=yDqo), *ROpF)",
"def VNqG(ROpF, yDqo=None):\n return vBWh(ROpF, 0, yDqo)",
"def VNqG(ROpF, yDqo=None):\n raise NotImp... | [
"0.8132084",
"0.79774994",
"0.7806014",
"0.7804865",
"0.7555395",
"0.75531137",
"0.75531137",
"0.75450706",
"0.7493995",
"0.7481365",
"0.73668027",
"0.73498267",
"0.73498267",
"0.7321162",
"0.7316188",
"0.73155236",
"0.7279779",
"0.72638404",
"0.72082555",
"0.7204798",
"0.713... | 0.7639992 | 4 |
Returns a new array of given shape and type, without initializing entries. | def lsmZ(ROpF, OaeV=None, yDqo=None, cCim=None):
if cCim is None or cCim == 'default':
return jJIB(ROpF, OaeV, yDqo)
else:
return nS9M(cCim, ROpF, OaeV, yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(ROpF, yDqo=None, T4Wy='C'):\n return gyIm.__new__(SppC, ROpF, yDqo, order=T4Wy)",
"def lsmZ(ROpF, yDqo=XTiz.float64, T4Wy='C'):\n if not U6YZ():\n if T4Wy not in ('C', 'c', None):\n mDxu('empty', 'order', T4Wy, 'C')\n return vT81(ROpF, yDqo)\n return XTiz.empty(ROpF, yD... | [
"0.6719834",
"0.6454388",
"0.62059367",
"0.61502916",
"0.6148206",
"0.61432266",
"0.60802484",
"0.6027261",
"0.5993374",
"0.598559",
"0.59465975",
"0.5937943",
"0.5887122",
"0.58601445",
"0.58567154",
"0.5855918",
"0.58521485",
"0.58349085",
"0.57767516",
"0.5776116",
"0.5755... | 0.6731557 | 0 |
Computes the QR decomposition of a matrix. Factor the matrix a as qr, where q is orthonormal and r is uppertriangular. | def jOpO(jzdc, Tuqy='reduced'):
return icyA(Tuqy)(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tCou(YKHO):\n if YKHO.m != YKHO.n:\n raise NotImplementedError('QR decomposition not yet available ' + 'for non-square matrices')\n rIiq = [he6J.Vector.fromMatrixColumn(YKHO, r845) for r845 in range(YKHO.m)]\n fH9L, SqKM = ([], [])\n for r845 in range(YKHO.m):\n P6bq = rIiq[r845]\n ... | [
"0.78373367",
"0.71434283",
"0.7103119",
"0.70709246",
"0.6754979",
"0.67185795",
"0.65997547",
"0.6596669",
"0.654969",
"0.6548519",
"0.6543868",
"0.6505561",
"0.6419069",
"0.64135516",
"0.63907015",
"0.6237312",
"0.6204373",
"0.61034983",
"0.6077926",
"0.60377324",
"0.60061... | 0.70407236 | 4 |
r"""Raise a square matrix, ``M``, to the (integer) power ``n``. This implementation uses exponentiation by squaring which is significantly faster than the naive implementation. The time complexity for exponentiation by squaring is | def _lLc(E3D9, exwG):
if exwG < 0:
E3D9 = mI3e(E3D9)
exwG = abs(exwG)
if exwG == 0:
return _QSz.eye(E3D9.shape[-2])
elif exwG == 1:
return E3D9
elif exwG == 2:
return YGfs.dot(E3D9, E3D9)
elif exwG == 3:
return YGfs.dot(YGfs.dot(E3D9, E3D9), E3D9)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _VUL(YKHO, jzdc, exwG, r8hN):\n Ylbp = 1\n while exwG != 0:\n if exwG % 2 != 0:\n Ylbp *= jzdc\n Ylbp %= r8hN\n exwG -= 1\n else:\n jzdc *= jzdc\n jzdc %= r8hN\n exwG //= 2\n return Ylbp",
"def _Jb_(YKHO, exwG):\n ass... | [
"0.7324359",
"0.6994466",
"0.688606",
"0.6770768",
"0.67672056",
"0.67287374",
"0.6562684",
"0.6559036",
"0.65072244",
"0.65032387",
"0.65009516",
"0.64860487",
"0.6431551",
"0.63874245",
"0.6353842",
"0.6319853",
"0.6318266",
"0.6240905",
"0.62354445",
"0.617687",
"0.6163312... | 0.7684998 | 0 |
Return int representing number of User model state changes found in transaction. | def f_m4(YKHO, zkur: DatabaseTask, cuiw: Session, iw_6, TRwB, bVp6, PUiQ, gFQt, c8ok) -> AzJI[int, fHNa]:
Jjrd = 0
wjS6: fHNa[int] = set()
if not bVp6:
return (Jjrd, wjS6)
l01Y = zkur.abi_values['UserFactory']['abi']
tc4F = zkur.web3.eth.contract(address=E9Vb['user_factory'], abi=l01Y)
V... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yt84(YKHO):\n return len(YKHO.transactions)",
"def yt84(YKHO):\n return len(YKHO.transactions)",
"def yt84(YKHO):\n return len(YKHO.transactions)",
"def a3KE(YKHO) -> int:\n return abs(YKHO._snapshot_index - YKHO._last_save_snapshot) + YKHO._branch_save_count",
"def xyYX(YKHO):\n return ... | [
"0.6988201",
"0.6988201",
"0.6903699",
"0.64198303",
"0.63206166",
"0.6203949",
"0.6162762",
"0.6143286",
"0.61164224",
"0.6096743",
"0.6076003",
"0.60643697",
"0.6055905",
"0.60403544",
"0.5994034",
"0.5971175",
"0.59317255",
"0.59227324",
"0.59190136",
"0.5913419",
"0.59125... | 0.0 | -1 |
Retrieves the normalized timestamp. | def hXLB(YKHO):
if YKHO._normalized_timestamp is None:
if YKHO._number_of_seconds is not None:
YKHO._normalized_timestamp = SOnQ.Decimal(YKHO._deciseconds) / xHrl.DECISECONDS_PER_SECOND
YKHO._normalized_timestamp += SOnQ.Decimal(YKHO._number_of_seconds)
if YKHO._time_zone... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXLB(YKHO):\n if YKHO._normalized_timestamp is None:\n if YKHO._number_of_seconds is not None and YKHO.fraction_of_second is not None:\n YKHO._normalized_timestamp = SOnQ.Decimal(YKHO._number_of_seconds) + YKHO.fraction_of_second\n return YKHO._normalized_timestamp",
"def cxNx(YKHO):\... | [
"0.8163219",
"0.81526613",
"0.8087778",
"0.7107699",
"0.7048998",
"0.7046271",
"0.69856256",
"0.69384164",
"0.6928798",
"0.69227886",
"0.6920317",
"0.6907221",
"0.6855104",
"0.6834434",
"0.6827448",
"0.68216074",
"0.68162423",
"0.6809892",
"0.6770422",
"0.67637455",
"0.676183... | 0.78769654 | 3 |
Copies the RFC2579 datetime to a date and time string. | def bew1(YKHO):
if YKHO._number_of_seconds is None:
return None
return f'{YKHO._year:04d}-{YKHO._month:02d}-{YKHO._day_of_month:02d} {YKHO._hours:02d}:{YKHO._minutes:02d}:{YKHO._seconds:02d}.{YKHO._deciseconds:01d}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zb98(YKHO, nPrm):\n nPrm = Gfg6(nPrm)\n if YKHO.datetime_formatting == 'rfc-2822':\n return Zb98(nPrm)\n return nPrm.isoformat()",
"def w4Xq(YKHO, a1PO=None):\n if a1PO is None:\n a1PO = qcWV.utcnow()\n return snaW(XbVV(a1PO.timetuple()), usegmt=True)",
"def bew1(YKHO):\n if... | [
"0.67275983",
"0.6695923",
"0.6570495",
"0.6565789",
"0.6399404",
"0.6334223",
"0.6276405",
"0.62224025",
"0.62159836",
"0.61995256",
"0.619647",
"0.617536",
"0.6167912",
"0.616259",
"0.6099004",
"0.60932136",
"0.6081595",
"0.6063091",
"0.6035128",
"0.60258853",
"0.5979532",
... | 0.639128 | 5 |
Return a sample from a random variate. | def hyDT(zNig=1, JfyU='normal', **B2fa):
B2fa.update(size=zNig)
V7Th = JfyU.lower()
if V7Th in ['normal', 'gaussian', 'gauss']:
rk2X = eQSh.norm.rvs
elif V7Th in ['uniform']:
rk2X = eQSh.uniform(-1, 2).rvs
elif V7Th in ['lorentzian', 'cauchy']:
rk2X = eQSh.cauchy.rvs
elif... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QmA1(YKHO):\n yGTL = YKHO._get_mean()\n mvm2 = YKHO.random.normal(yGTL)\n return mvm2",
"def mvm2(YKHO):\n return YKHO.domain[gigf.rand_state.choice(len(YKHO.domain))]",
"def QmA1(YKHO):\n yGTL = YKHO._get_mean().reshape((1, YKHO.out_dim))\n WTkW = YKHO.variables['s']\n mvm2 = YKHO.ran... | [
"0.74732286",
"0.73824406",
"0.7360074",
"0.72706866",
"0.7201482",
"0.7157491",
"0.7125936",
"0.7070458",
"0.6995438",
"0.69871664",
"0.69417167",
"0.691943",
"0.69034404",
"0.6845009",
"0.68344057",
"0.67346376",
"0.67301464",
"0.6720028",
"0.6699844",
"0.66531813",
"0.6651... | 0.0 | -1 |
Returns API instance for cloud provider. | def IC86(kT1P):
if kT1P == HRfc.ProviderPrefix.GCS:
return Dqie.GcsApi()
elif kT1P == HRfc.ProviderPrefix.S3:
return agVp.S3Api()
raise ValueError('Provider API value must be "gs" or "s3".') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IC86(YKHO):\n return YKHO.api",
"def nNXP(YKHO):\n if YKHO._api is None:\n YKHO._api = fyIx(YKHO)\n return YKHO._api",
"def rVS7(YKHO):\n try:\n Vt89 = None\n if tuple(EhpD.__version__) < tuple('1.6.0'):\n import oauth2client.client\n Vt89 = GLmK.clien... | [
"0.6938213",
"0.66804665",
"0.6465663",
"0.645735",
"0.645735",
"0.645735",
"0.645735",
"0.6449945",
"0.64465636",
"0.64265794",
"0.6422378",
"0.6416929",
"0.63810474",
"0.634576",
"0.6292377",
"0.62358004",
"0.6193966",
"0.6150923",
"0.61457396",
"0.61454266",
"0.6131071",
... | 0.69704527 | 0 |
Draw detected bounding boxes. | def _1rj(kBtA, Vnlb, Z_LA, ozGX, knl1=0.5):
for gr5d, _2sc in enumerate(Z_LA):
l40E = ozGX[gr5d]
noZV = oyIN.where(l40E[:, -1] >= knl1)[0]
if len(noZV) == 0:
continue
for YRbF in noZV:
cviu = [int(tTpl) for tTpl in l40E[YRbF, :4]]
p1kx = l40E[YRbF,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sGG5(YKHO, NncF, hlel):\n for YRbF, edvT in enumerate(NncF):\n if edvT[2] > hlel.shape[1] or edvT[3] > hlel.shape[0] or edvT[0] < 0 or (edvT[1] < 0):\n continue\n XC5k.rectangle(oyIN.asarray(hlel), (edvT[0], edvT[1]), (edvT[2], edvT[3]), YKHO.colors[YRbF % len(YKHO.colors)], thickne... | [
"0.77598673",
"0.7638101",
"0.7510348",
"0.72977304",
"0.7150563",
"0.7103931",
"0.7101873",
"0.7083905",
"0.7020769",
"0.6993739",
"0.6974172",
"0.69637305",
"0.6859061",
"0.68521667",
"0.68319523",
"0.6830371",
"0.6809837",
"0.6805064",
"0.67750585",
"0.6774759",
"0.6742592... | 0.0 | -1 |
Find the quantile which corresponds to a given value, based on a rolling window | def gCsP(YEnM, KnxT, Encw=None):
return YEnM.rolling(window=KnxT, min_periods=Encw).apply(lambda WKvO: eQSh.percentileofscore(WKvO, WKvO[-1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aM62(YEnM, aM62, KnxT, Encw=None, GoGv='linear'):\n return YEnM.rolling(window=KnxT, min_periods=Encw).quantile(aM62, interpolation=GoGv)",
"def hzm0(YKHO, d6Md):\n or8S = oyIN.searchsorted(YKHO.quantiles, d6Md, side='left')\n if or8S >= YKHO.n - 1:\n return or8S / YKHO.n\n if oyIN.abs(d6M... | [
"0.7717787",
"0.61630803",
"0.59890836",
"0.5905023",
"0.5796287",
"0.57600486",
"0.5695445",
"0.5688301",
"0.5684145",
"0.5641279",
"0.5595518",
"0.55840075",
"0.55814624",
"0.5574285",
"0.5565961",
"0.5564753",
"0.5556741",
"0.5551058",
"0.55195904",
"0.5509968",
"0.5484216... | 0.74475795 | 1 |
How many friends does _user_ have? | def n1Iq(CBIr):
uJjO = CBIr['id']
V4PE = aSzr[uJjO]
return len(V4PE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHHC(DW23):\n pR0U = []\n for aKC2 in DW23:\n for DumB in aKC2['friends']:\n pR0U.append(DumB)\n UHFx = mBkc()\n for trG9 in pR0U:\n UHFx[trG9] += 1\n return UHFx",
"def qHHC(DW23):\n Z9rn = mBkc()\n Z9rn.update((Fiq8 for CBIr in DW23 for Fiq8 in CBIr['friends'])... | [
"0.76322424",
"0.7539812",
"0.74160075",
"0.72380906",
"0.71189487",
"0.703479",
"0.6933848",
"0.68708676",
"0.65430224",
"0.64357305",
"0.6395951",
"0.62994045",
"0.6272538",
"0.6253553",
"0.6249366",
"0.6245729",
"0.6233796",
"0.6211341",
"0.6203296",
"0.61625165",
"0.61239... | 0.8672473 | 0 |
Destructor for the ``JLink`` instance. Closes the JLink connection if one exists. | def fFx9(YKHO):
YKHO._finalize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fFx9(YKHO):\n if YKHO.__database_connection:\n YKHO.__database_connection.close()\n YKHO.__database_connection = None\n if YKHO.__lucene_connection:\n YKHO.__lucene_connection.close()\n YKHO.__lucene_connection = None",
"def ngVb(YKHO):\n try:\n edQT.close(YKHO.con... | [
"0.70151716",
"0.6929349",
"0.687491",
"0.6787984",
"0.6753865",
"0.67448676",
"0.6672462",
"0.66579664",
"0.6620929",
"0.660229",
"0.6511459",
"0.6494374",
"0.64813477",
"0.6461889",
"0.641958",
"0.640157",
"0.63782",
"0.6369384",
"0.63608706",
"0.6327888",
"0.6327543",
"0... | 0.0 | -1 |
Finalizer ("destructor") for the ``JLink`` instance. Stops the SWO if enabled and closes the JLink connection if one exists. Called when exiting the context manager or when this object is destructed (garbage collected). | def lLi1(YKHO):
if YKHO._initialized:
if YKHO.connected():
if YKHO.swo_enabled():
YKHO.swo_stop()
if YKHO.opened():
YKHO.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xSHO(YKHO):\n YKHO._protocol.destroy()\n YKHO._protocol = None",
"def fFx9(YKHO):\n if YKHO._close_on_exit:\n YKHO.close()",
"def DDI8(YKHO):\n YKHO._update_cond()\n J4KH(YKHO._impl)",
"def fFx9(YKHO):\n YKHO.close_connection()\n YKHO.close_engine()",
"def W4JM(YKHO):\n Y... | [
"0.7009699",
"0.6834285",
"0.66978455",
"0.66726774",
"0.6637629",
"0.65925676",
"0.6588747",
"0.65618676",
"0.6524396",
"0.65225303",
"0.6515733",
"0.64915806",
"0.6450616",
"0.64314955",
"0.6426532",
"0.6417308",
"0.6406179",
"0.6402182",
"0.63948053",
"0.63896024",
"0.6379... | 0.6590026 | 6 |
Returns whether the DLL is open. | def buHT(YKHO):
return bool(YKHO._dll.JLINKARM_IsOpen()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WGC8(YKHO):\n buHT = gk2W.c_bool()\n Aofo = YKHO._lib.NRFJPROG_is_dll_open(gk2W.byref(buHT))\n if Aofo != Xj2n.SUCCESS:\n raise yiLL(Aofo)\n return buHT.value",
"def UERb(YKHO):\n return YKHO._is_open",
"def WGC8(YKHO) -> bool:\n pass",
"def WGC8(YKHO):\n return YKHO.__port.is... | [
"0.8668237",
"0.7349179",
"0.72719353",
"0.72139436",
"0.7168035",
"0.7164919",
"0.7164339",
"0.6957772",
"0.6935094",
"0.6889131",
"0.6811832",
"0.6811832",
"0.6801945",
"0.6798037",
"0.6733291",
"0.67018276",
"0.6690784",
"0.6680774",
"0.6678992",
"0.66655904",
"0.66569847"... | 0.7768863 | 1 |
Returns the number of emulators which are connected via USB to the host. | def QpJq(YKHO):
return YKHO._dll.JLINKARM_EMU_GetNumDevices() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MRE0(YKHO):\n return gTEQ('PrlVmCfg_GetUsbDevicesCount', YKHO.handle)",
"def C_sb():\n dsE5('MpOrLibUsb.get_device_count()')\n mLGw = FOgT.__get_device_count_Mpusb()\n mLGw = mLGw + FOgT.__get_device_count_Libusb()\n return mLGw",
"def U4WG(YKHO):\n return YKHO.drt_manager.get_number_of_d... | [
"0.75948143",
"0.7488303",
"0.7421823",
"0.7240447",
"0.712322",
"0.7011725",
"0.6707582",
"0.6692651",
"0.6673403",
"0.6633537",
"0.6535353",
"0.644166",
"0.63627905",
"0.63612276",
"0.63183844",
"0.63135296",
"0.61730975",
"0.61198235",
"0.6083296",
"0.6074928",
"0.6061014"... | 0.79808414 | 0 |
Returns the number of devices that are supported by the opened JLink DLL. | def K8Hy(YKHO):
return int(YKHO._dll.JLINKARM_DEVICE_GetInfo(-1, 0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def anDP(YKHO):\n EggN = aTac()\n YKHO._dll.ShamrockGetNumberDevices(dWW6(EggN))\n return EggN.value",
"def DUZc():\n ytKZ()\n return Wd0U.CountDevices()",
"def C_sb():\n dsE5('MpOrLibUsb.get_device_count()')\n mLGw = FOgT.__get_device_count_Mpusb()\n mLGw = mLGw + FOgT.__get_device_cou... | [
"0.8036905",
"0.74780697",
"0.73417294",
"0.7198005",
"0.7023647",
"0.7010175",
"0.6907719",
"0.6780509",
"0.6728959",
"0.66914535",
"0.6675222",
"0.6625763",
"0.6375574",
"0.6238672",
"0.621861",
"0.6217971",
"0.61899847",
"0.61450744",
"0.6122327",
"0.6098339",
"0.6085897",... | 0.8533519 | 0 |
Returns the device's version. | def DpZH(YKHO):
DpZH = int(YKHO._dll.JLINKARM_GetDLLVersion())
IJ4N = DpZH / 10000
cbKy = DpZH / 100 % 100
o5Dc = DpZH % 100
o5Dc = '' if o5Dc == 0 else chr(o5Dc + ord('a') - 1)
return '%d.%02d%s' % (IJ4N, cbKy, o5Dc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n return YKHO._arm.get_version()",
"async def get_version(YKHO):\n RKD7.info('get_version')\n DpZH = ''\n hlel = await YKHO.send_command(YKHO.cmd_get_version)\n DpZH = hlel.split('Version ')[1].split(',')[0]\n RKD7.info(f'get_version: version: {DpZH}')\n return DpZH",
"def ... | [
"0.82263726",
"0.8171299",
"0.80680877",
"0.78703",
"0.78276557",
"0.7793323",
"0.7788481",
"0.7726637",
"0.7725001",
"0.77039313",
"0.77039313",
"0.76895887",
"0.76895887",
"0.7688344",
"0.7668107",
"0.76536644",
"0.76510096",
"0.76383454",
"0.76312083",
"0.7631014",
"0.7627... | 0.0 | -1 |
Returns the DLL's compatible JLink firmware version. | def mSJf(YKHO):
Ilxn = YKHO.firmware_version.split('compiled')[0]
lnz_ = YKHO.MAX_BUF_SIZE
LaVg = (gk2W.c_char * lnz_)()
Ylbp = YKHO._dll.JLINKARM_GetEmbeddedFWString(Ilxn.encode(), LaVg, lnz_)
if Ylbp < 0:
raise UAju.JLinkException(Ylbp)
return gk2W.string_at(LaVg).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uCIf(YKHO):\n LaVg = (gk2W.c_char * YKHO.MAX_BUF_SIZE)()\n YKHO._dll.JLINKARM_GetFirmwareString(LaVg, YKHO.MAX_BUF_SIZE)\n return gk2W.string_at(LaVg).decode()",
"def uCIf(YKHO):\n return YKHO._get_system_status()['firmware']",
"def DpZH(YKHO):\n DpZH = int(YKHO._dll.JLINKARM_GetDLLVersion()... | [
"0.81136453",
"0.7407501",
"0.7352537",
"0.73288053",
"0.7198567",
"0.7127076",
"0.7099566",
"0.69830626",
"0.6921074",
"0.69126314",
"0.687439",
"0.68079406",
"0.6804166",
"0.6751391",
"0.66990024",
"0.6666999",
"0.66542935",
"0.6648657",
"0.6644194",
"0.6637442",
"0.6600397... | 0.77596503 | 1 |
Returns the product name of the connected JLink. | def n8KJ(YKHO):
LaVg = (gk2W.c_char * YKHO.MAX_BUF_SIZE)()
YKHO._dll.JLINKARM_EMU_GetProductName(LaVg, YKHO.MAX_BUF_SIZE)
return gk2W.string_at(LaVg).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n8KJ(YKHO):\n return YKHO._product_name",
"def n8KJ(YKHO):\n return YKHO._stub.List(YKHO._message).product_name",
"def Lx3t(YKHO):\n return YKHO.__values['product_name']",
"def n8KJ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'product_name')",
"def gO1D(YKHO):\n Oz1B = YKHO._get_host_det... | [
"0.72924954",
"0.7274736",
"0.70811665",
"0.69281614",
"0.66689706",
"0.6582853",
"0.6564504",
"0.65499675",
"0.65312827",
"0.6528013",
"0.63338166",
"0.6318037",
"0.62749875",
"0.62446964",
"0.6211255",
"0.6199241",
"0.61873746",
"0.6156995",
"0.6150432",
"0.60853916",
"0.60... | 0.73690933 | 0 |
Returns the serial number of the connected JLink. | def OIdI(YKHO):
return YKHO._dll.JLINKARM_GetSN() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IC8e(YKHO) -> int:\n return YKHO._serial_num",
"def Dr8N(YKHO):\n gqk9 = YKHO._configurations[D8gy.connection_hops]\n lhVa = gqk9[K4DX.unix_remote][TH47.adb_shell]\n OIdI = lhVa['command_params']['serial_number']\n return OIdI",
"def _RhT(YKHO):\n Pt6R = nPgD(64)\n YKHO._dll.ShamrockGe... | [
"0.74930537",
"0.7472519",
"0.7297177",
"0.72521365",
"0.7209481",
"0.71740746",
"0.7126016",
"0.7054488",
"0.7054488",
"0.6969124",
"0.6953128",
"0.6952548",
"0.68861836",
"0.6873921",
"0.68738985",
"0.68629664",
"0.6844236",
"0.6748973",
"0.6740233",
"0.6600878",
"0.6553017... | 0.7896385 | 0 |
Returns a string of the builtin licenses the JLink has. | def KbHS(YKHO):
lnz_ = YKHO.MAX_BUF_SIZE
LaVg = (gk2W.c_char * lnz_)()
Ylbp = YKHO._dll.JLINK_GetAvailableLicense(LaVg, lnz_)
if Ylbp < 0:
raise UAju.JLinkException(Ylbp)
return gk2W.string_at(LaVg).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CFCl(YKHO):\n LaVg = (gk2W.c_char * YKHO.MAX_BUF_SIZE)()\n Aofo = YKHO._dll.JLINK_EMU_GetLicenses(LaVg, YKHO.MAX_BUF_SIZE)\n if Aofo < 0:\n raise UAju.JLinkException(Aofo)\n return gk2W.string_at(LaVg).decode()",
"def KbHS(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'licenses')",
"def... | [
"0.7823846",
"0.7631993",
"0.6969341",
"0.68796015",
"0.6644712",
"0.66071224",
"0.65296596",
"0.6483877",
"0.6422204",
"0.63812995",
"0.63121504",
"0.62354946",
"0.61277324",
"0.6099809",
"0.6060002",
"0.60524994",
"0.6048665",
"0.60459536",
"0.6032868",
"0.6027193",
"0.5985... | 0.77635115 | 1 |
Returns a string of the installed licenses the JLink has. | def CFCl(YKHO):
LaVg = (gk2W.c_char * YKHO.MAX_BUF_SIZE)()
Aofo = YKHO._dll.JLINK_EMU_GetLicenses(LaVg, YKHO.MAX_BUF_SIZE)
if Aofo < 0:
raise UAju.JLinkException(Aofo)
return gk2W.string_at(LaVg).decode() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbHS(YKHO):\n lnz_ = YKHO.MAX_BUF_SIZE\n LaVg = (gk2W.c_char * lnz_)()\n Ylbp = YKHO._dll.JLINK_GetAvailableLicense(LaVg, lnz_)\n if Ylbp < 0:\n raise UAju.JLinkException(Ylbp)\n return gk2W.string_at(LaVg).decode()",
"def KbHS(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'licenses')"... | [
"0.8306052",
"0.7703566",
"0.6928596",
"0.692542",
"0.65299475",
"0.6383517",
"0.63345724",
"0.63305396",
"0.62964326",
"0.62551224",
"0.61774635",
"0.61500096",
"0.61296695",
"0.6076609",
"0.6066867",
"0.6051764",
"0.60314894",
"0.6010827",
"0.59672576",
"0.58672863",
"0.586... | 0.7874683 | 1 |
Returns the current target interface of the JLink. | def anki(YKHO):
return YKHO._tif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tcPU(YKHO):\n return YKHO.current_interface",
"def g8TL(YKHO):\n if YKHO.get_target_interface_cache is None:\n ygBj = YKHO.interfaces\n RCiw = []\n for YmHP in ygBj:\n if YKHO.controllers[YKHO.controller] == YmHP['iscsi']['controllerId']:\n RCiw.append([Ym... | [
"0.74000406",
"0.69656324",
"0.69513327",
"0.68279874",
"0.68279874",
"0.68279874",
"0.68279874",
"0.68279874",
"0.68279874",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808537",
"0.6808... | 0.0 | -1 |
Sets the source to be used for tracing. The ``source`` must be one of the ones provided by ``enums.JLinkTraceSource``. | def bpV3(YKHO, JZXy):
YKHO._dll.JLINKARM_SelectTraceSource(JZXy)
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xUuB(YKHO, KoHv):\n YKHO.source = KoHv",
"def xUuB(YKHO, JZXy):\n YKHO.data['source'] = JZXy",
"def JZXy(YKHO, JZXy: str):\n if JZXy is None:\n raise ValueError('Invalid value for `source`, must not be `None`')\n YKHO._source = JZXy",
"def YcVY(YKHO, JZXy):\n YKHO._source = JZXy",
... | [
"0.7424912",
"0.7381461",
"0.7311171",
"0.7253388",
"0.68773925",
"0.6792636",
"0.6792636",
"0.6792636",
"0.6792636",
"0.6792636",
"0.6792636",
"0.6792636",
"0.6792282",
"0.67182785",
"0.67182785",
"0.66947204",
"0.66931814",
"0.6658792",
"0.66483253",
"0.6540488",
"0.6418507... | 0.8096896 | 0 |
Returns whether the CPU core was halted. | def UauM(YKHO):
Aofo = int(YKHO._dll.JLINKARM_IsHalted())
if Aofo < 0:
raise UAju.JLinkException(Aofo)
return Aofo > 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VGiB(YKHO):\n VGiB = gk2W.c_bool()\n Aofo = YKHO._lib.NRFJPROG_is_halted(gk2W.byref(VGiB))\n if Aofo != Xj2n.SUCCESS:\n raise yiLL(Aofo)\n return VGiB.value",
"def UauM(YKHO) -> bool:\n raise NotImplementedError('halted not implemented.')",
"def VGiB(YKHO):\n return YKHO.pos == -1"... | [
"0.731646",
"0.7074767",
"0.6659457",
"0.6351942",
"0.63516337",
"0.6337303",
"0.63280857",
"0.6253793",
"0.6239191",
"0.62254965",
"0.6181615",
"0.6158565",
"0.6153918",
"0.61407137",
"0.613136",
"0.6123029",
"0.6111543",
"0.6089472",
"0.60701245",
"0.60701245",
"0.60701245"... | 0.68827885 | 2 |
Returns the device family of the target CPU. | def pRSB(YKHO):
return YKHO._dll.JLINKARM_GetDeviceFamily() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nBrb(YKHO):\n qBg8 = gk2W.c_int()\n Aofo = YKHO._lib.NRFJPROG_read_device_family(gk2W.byref(qBg8))\n if Aofo != Xj2n.SUCCESS:\n raise yiLL(Aofo)\n return ERzE(qBg8.value).name",
"def W0TO(YKHO):\n return YKHO._family",
"def begE() -> str:\n import torch\n if torch.cuda.is_availa... | [
"0.6909385",
"0.64434975",
"0.6229879",
"0.6129597",
"0.6112738",
"0.60420865",
"0.59965724",
"0.59965724",
"0.59965724",
"0.59877867",
"0.5918032",
"0.5864088",
"0.5853863",
"0.583038",
"0.583038",
"0.58042604",
"0.58042604",
"0.57857424",
"0.57783484",
"0.57301265",
"0.5730... | 0.716312 | 0 |
Gets all memory zones supported by the current target. Some targets support multiple memory zones. This function provides the ability to get a list of all the memory zones to facilate using the memory zone routing functions. | def TqLP(YKHO):
UHFx = YKHO.num_memory_zones()
if UHFx == 0:
return list()
LaVg = (NcoE.JLinkMemoryZone * UHFx)()
Ylbp = YKHO._dll.JLINK_GetMemZones(LaVg, UHFx)
if Ylbp < 0:
raise UAju.JLinkException(Ylbp)
return list(LaVg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVKv():\n EzjL = Gmp0.CloudFlare(raw=True)\n klRQ = 0\n SV4W = 1\n hZZz = []\n while klRQ < SV4W:\n klRQ += 1\n J8Ug = EzjL.zones.get(params={'per_page': 100, 'page': klRQ})\n _j99 = J8Ug['result']\n hZZz += _j99\n SV4W = J8Ug['result_info']['total_pages']\n ... | [
"0.6585587",
"0.65258205",
"0.63066727",
"0.6225679",
"0.60217327",
"0.5960012",
"0.5951327",
"0.59063154",
"0.5888627",
"0.5866608",
"0.58184415",
"0.57988656",
"0.5772288",
"0.57269365",
"0.5702966",
"0.5702966",
"0.569103",
"0.5649603",
"0.5636322",
"0.56067634",
"0.560375... | 0.76450336 | 0 |
Returns the number of currently active breakpoints. | def YzKt(YKHO):
return YKHO._dll.JLINKARM_GetNumBPs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSYt(YKHO):\n return YKHO._get_active()",
"def uIaz(YKHO):\n return YKHO._dll.JLINKARM_GetNumWPs()",
"def kQni(YKHO):\n return YKHO._number_of_launches",
"def lz0n(YKHO):\n return len(YKHO.launches)",
"def xHS4(YKHO):\n return YKHO._pctx.breakpoints.model.memory_breakpoints",
"def mBSS... | [
"0.68647236",
"0.6606399",
"0.65112054",
"0.6283962",
"0.62659574",
"0.6215089",
"0.6161328",
"0.6122804",
"0.61183375",
"0.60720783",
"0.5995464",
"0.5945322",
"0.5942329",
"0.5907465",
"0.58732694",
"0.5870776",
"0.5852851",
"0.5849535",
"0.5793954",
"0.5735826",
"0.5728418... | 0.80561495 | 0 |
Returns the number of currently active watchpoints. | def uIaz(YKHO):
return YKHO._dll.JLINKARM_GetNumWPs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSYt(YKHO):\n return YKHO._get_active()",
"def ynHR(YKHO):\n return YKHO._dll.JLINKARM_GetNumWPUnits()",
"def DB_1():\n return jvSB.count()",
"def mp_k(YKHO):\n mUc3 = sum((iXC1 is not None for iXC1 in YKHO.__running + YKHO.__clientRunning))\n return mUc3",
"def Z9CC(YKHO):\n r9Hf = 0... | [
"0.70356363",
"0.69373614",
"0.6885585",
"0.6530227",
"0.64867383",
"0.6481708",
"0.63767076",
"0.63373053",
"0.6336179",
"0.6310618",
"0.6266817",
"0.62354225",
"0.62295246",
"0.62138057",
"0.61786413",
"0.61730844",
"0.61463946",
"0.60659444",
"0.60367024",
"0.60361654",
"0... | 0.8069319 | 0 |
Clears the trace event specified by the given handle. | def QtHh(YKHO, nVrR):
nPrm = gk2W.c_int(nVrR)
Ylbp = YKHO._dll.JLINK_STRACE_Control(aVkO.JLinkStraceCommand.TRACE_EVENT_CLR, gk2W.byref(nPrm))
if Ylbp < 0:
raise UAju.JLinkException('Failed to clear STRACE event.')
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def cancel_listen_log(YKHO, nVrR: str) -> None:\n YKHO.logger.debug('Canceling listen_log for %s', YKHO.name)\n await YKHO.AD.logging.cancel_log_callback(YKHO.name, nVrR)",
"def Y7Bk(YKHO):\n YKHO.events[kpjI()][0].clear()",
"def iPd4(YKHO, nVrR):\n return not YKHO._dll.JLINKARM_ClrDataEvent(... | [
"0.5847377",
"0.5841807",
"0.5766414",
"0.5558014",
"0.5521317",
"0.5482951",
"0.542024",
"0.5380767",
"0.5358833",
"0.53535414",
"0.5263508",
"0.524865",
"0.52404356",
"0.52147174",
"0.5135786",
"0.51096904",
"0.5055153",
"0.50205714",
"0.5013537",
"0.49863973",
"0.49727026"... | 0.7246619 | 0 |
Returns whether or not SWO is enabled. | def hcD_(YKHO):
return YKHO._swo_enabled | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B_CI() -> bool:\n return m8Q1",
"def F5eS(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'sso_enabled')",
"def Debg(YKHO):\n return YKHO._program.get('enabled') is True",
"def n30Z(YKHO):\n return YKHO.sdk.is_enabled",
"def etR_(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enabled')... | [
"0.79768133",
"0.71558595",
"0.71338975",
"0.69183356",
"0.6888833",
"0.6888833",
"0.6888833",
"0.6888833",
"0.6888833",
"0.6888833",
"0.6856378",
"0.6809233",
"0.67789936",
"0.67789936",
"0.67789936",
"0.67789936",
"0.67789936",
"0.67789936",
"0.67789936",
"0.67789936",
"0.6... | 0.872539 | 0 |
Enables SWO output on the target device. Configures the output protocol, the SWO output speed, and enables any ITM & stimulus ports. This is equivalent to calling ``.swo_start()``. | def wFzj(YKHO, VwSQ, AKXY=9600, nyar=1):
if YKHO.swo_enabled():
YKHO.swo_stop()
Ylbp = YKHO._dll.JLINKARM_SWO_EnableTarget(VwSQ, AKXY, aVkO.JLinkSWOInterfaces.UART, nyar)
if Ylbp != 0:
raise UAju.JLinkException(Ylbp)
YKHO._swo_enabled = True
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xXEC(YKHO):\n YKHO.__rtcconfig = YKHO.__helper.updatebyte(YKHO.__rtcconfig, 7, 1)\n YKHO.__rtcconfig = YKHO.__helper.updatebyte(YKHO.__rtcconfig, 4, 1)\n YKHO.__bus.write_byte_data(YKHO.__rtcaddress, YKHO.CONTROL, YKHO.__rtcconfig)\n return",
"def vsIe(YKHO, AKXY=9600):\n if YKHO.swo_enabled()... | [
"0.63976353",
"0.63337696",
"0.5933786",
"0.58872557",
"0.58789283",
"0.58205724",
"0.5778575",
"0.5746097",
"0.5728807",
"0.57080215",
"0.57026577",
"0.5694266",
"0.56766576",
"0.5658336",
"0.5641077",
"0.56345475",
"0.5598635",
"0.5560024",
"0.55540895",
"0.55470467",
"0.55... | 0.68389094 | 0 |
[Init method used to create an Api Class for making api calls] | def FIMM(YKHO, NKRf, zb3C, Cxz5, ZxQ0, AQ5A=None):
YKHO.base_url = NKRf
YKHO.client_id = zb3C
YKHO.client_secret = Cxz5
YKHO.client_scope = ZxQ0
if not AQ5A:
AQ5A = RkCj.resource_filename(__name__, 'apis.json')
with open(AQ5A, encoding='utf-8') as UL8i:
NYXC = qQXR.loads(UL8i.rea... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.api = fyIx(consumer_key=Vt89['consumer_key'], consumer_secret=Vt89['consumer_secret'], access_token_key=Vt89['access_token_key'], access_token_secret=Vt89['access_token_secret'])",
"def FIMM(YKHO, HrYv=False):\n YKHO.api_use = HrYv",
"def FIMM(YKHO, nNXP):\n YKHO.api = nNXP\n ... | [
"0.8332173",
"0.8107438",
"0.80506295",
"0.8048945",
"0.79582095",
"0.78818417",
"0.78173226",
"0.781485",
"0.7814437",
"0.77590585",
"0.775339",
"0.77218103",
"0.77134943",
"0.7671552",
"0.7656446",
"0.7640684",
"0.75828683",
"0.7570891",
"0.7547598",
"0.75290906",
"0.750584... | 0.7338808 | 33 |
Takes in a one dimensional array of weights and repeats them to match shape Shape is expected to have the channels as the final dimension. | def rkl5(_mSQ, ROpF):
ASll = _mSQ.unsqueeze(-1)
return ASll.expand(_mSQ.shape[0], ROpF[-1]).reshape(ROpF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lWPx(YKHO):\n a4cC = oyIN.floor(YKHO.weights).astype(int)\n return oyIN.repeat(YKHO.data, a4cC, axis=0)",
"def LqCw(_mSQ, exwG):\n SuPp = [(Z9rn % 3, Z9rn % 3 + 1) for Z9rn in range(exwG)]\n GamQ = ht2j.cat([_mSQ[:, jzdc:Fg_i, :, :] for jzdc, Fg_i in SuPp], dim=1)\n return GamQ",
"def qWRR(Y... | [
"0.6672087",
"0.65662587",
"0.61086744",
"0.6061735",
"0.593376",
"0.5924741",
"0.5821838",
"0.5821838",
"0.5752013",
"0.5740862",
"0.57109016",
"0.57063967",
"0.56983244",
"0.5653005",
"0.56268436",
"0.55902416",
"0.5578135",
"0.55723166",
"0.55514884",
"0.5545613",
"0.55306... | 0.80602807 | 0 |
Saves an array as an image at the save_location using pillow | def WCXl(qw7D, QJFF):
LNo8 = hnIv.fromarray(qw7D)
LNo8.save(QJFF)
LNo8.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiiI(VXjJ: np.ndarray, pmON: str) -> None:\n dU0b = hnIv.fromarray(VXjJ)\n dU0b.save(pmON)",
"def WCXl(ezWE, Ux0P):\n ezWE = ezWE.copy().clip(0, 255).astype('uint8')\n Xn71 = hnIv.fromarray(ezWE)\n Xn71.save(Ux0P)",
"def cWWj(qw7D: np.ndarray, pmON: str) -> None:\n VXjJ = hnIv.fromarray(q... | [
"0.7332789",
"0.73029846",
"0.7209719",
"0.7165053",
"0.7107845",
"0.68785155",
"0.68467116",
"0.6779601",
"0.6759873",
"0.67471975",
"0.6730639",
"0.6710754",
"0.66934115",
"0.662847",
"0.66220987",
"0.66107297",
"0.66057",
"0.6593635",
"0.65773165",
"0.65741265",
"0.6570185... | 0.8270457 | 0 |
Rewrite `get_bboxes` of `GFLHead` for default backend. Rewrite this function to deploy model, transform network output for a batch into bbox predictions. | def NJtw(OaeV, YKHO, pJb0, dnMe, cCzM=None, Scjb=None, _Fei=None, Lwtl=False, yTZA=True, **B2fa):
yJUA = OaeV.cfg
SuKz = ZXne(yJUA)
DDLl = JLXL(yJUA)
d3XD = len(pJb0)
Wr8h = [gfbt.size()[-2:] for gfbt in pJb0]
rs1f = YKHO.prior_generator.grid_priors(Wr8h, dtype=dnMe[0].dtype, device=dnMe[0].devi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OWmw(C3ST, Xn71, DPnA, p5yl, oUSw=None):\n g4y1, uVsb = sXvj(Xn71, oUSw, DPnA, p5yl)\n if _Fei.DEDUP_BOXES > 0:\n Ty9i = oyIN.array([1, 1000.0, 1000000.0, 1000000000.0, 1000000000000.0])\n zr4t = oyIN.round(g4y1['rois'] * _Fei.DEDUP_BOXES).dot(Ty9i)\n bGrB, d6pt, biB3 = oyIN.unique(z... | [
"0.6367146",
"0.63244224",
"0.63055766",
"0.62705636",
"0.61812466",
"0.61450016",
"0.6081446",
"0.6073175",
"0.60689294",
"0.60434335",
"0.6026332",
"0.6024328",
"0.5992725",
"0.5925751",
"0.5912662",
"0.5903787",
"0.5903787",
"0.5890349",
"0.5886075",
"0.5878742",
"0.584486... | 0.6346811 | 1 |
Return thread if user is a recipient. | def uy4o(YKHO):
hWQ8.objects.create(user=YKHO.user, thread=YKHO.thread)
YKHO.assertEqual(Esm4.public.get_by_user(thread_id=YKHO.thread.pk, user=YKHO.user), YKHO.thread) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uy4o(YKHO):\n nG3o = YKHO.create_user()\n MgeT = YKHO.create_thread(recipient=nG3o)\n YKHO.assertTrue(MgeT.first_message.visible_to_user(nG3o))",
"def KNvH(YKHO):\n vC92 = YKHO.create_user()\n MgeT = YKHO.create_thread(sender=vC92, status='pending')\n YKHO.assertTrue(MgeT.first_message.visi... | [
"0.75965565",
"0.67605346",
"0.63787115",
"0.63627005",
"0.6216186",
"0.6161424",
"0.60673016",
"0.6064786",
"0.59087336",
"0.5839849",
"0.5759381",
"0.568783",
"0.5608954",
"0.55944204",
"0.55939007",
"0.55842644",
"0.5551689",
"0.55199635",
"0.5511284",
"0.5464091",
"0.5454... | 0.7548641 | 1 |
Raise ObjectDoesNotExist if user doesn't have access. | def A1Tm(YKHO):
YKHO.assertRaises(rIt9, Esm4.public.get_by_user, **{'thread_id': YKHO.thread.pk, 'user': YKHO.user}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4il(YKHO, QePW, tTee, CBIr):\n return CBIr == QePW.user or QePW.user.is_superuser",
"def J4ca(YKHO):\n BfDw.test_not_logged_cannot_access(YKHO, YKHO.url)",
"def J4ca(YKHO):\n BfDw.test_not_logged_cannot_access(YKHO, YKHO.url)",
"def J4ca(YKHO):\n BfDw.test_not_logged_cannot_access(YKHO, YKHO... | [
"0.64512146",
"0.63119334",
"0.63119334",
"0.63119334",
"0.63119334",
"0.6311788",
"0.62217945",
"0.61707735",
"0.6165318",
"0.6149082",
"0.6141078",
"0.6141058",
"0.6130155",
"0.6103009",
"0.60953027",
"0.6091384",
"0.6080652",
"0.6068873",
"0.6054344",
"0.6051795",
"0.60517... | 0.69305414 | 0 |
returns a normalized version of X where the mean value of each feature is 0 and the standard deviation is 1. This is often a good preprocessing step to do when working with learning algorithms. | def CY9O(EcVT):
MvdF, yGTL, WTkW = (EcVT, 0, 0)
for YRbF in range(EcVT.shape[1]):
VU_J = oyIN.mean(EcVT[:, YRbF])
WljZ = oyIN.std(EcVT[:, YRbF])
MvdF[:, YRbF] = (MvdF[:, YRbF] - VU_J) / WljZ
if YRbF == 0:
yGTL = VU_J
WTkW = WljZ
else:
y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ydI2(EcVT):\n M1Jx = EcVT.std(axis=0)\n M1Jx = oyIN.where(M1Jx == 0, 1, M1Jx)\n DG22 = (EcVT - EcVT.mean(axis=0)) / M1Jx\n return DG22",
"def YCQc(EcVT):\n j7NI = oyIN.mean(EcVT, axis=0)\n qQqn = oyIN.std(EcVT, axis=0)\n qQqn[0, 0] = 1\n DJLM = (EcVT - j7NI) / qQqn\n DJLM[:, 0] = 1... | [
"0.8660045",
"0.84428126",
"0.8317792",
"0.82743424",
"0.8112482",
"0.7913407",
"0.76978165",
"0.76978165",
"0.76791483",
"0.76587653",
"0.76496303",
"0.75858235",
"0.7574672",
"0.75739104",
"0.7536636",
"0.74333113",
"0.7418857",
"0.72757375",
"0.7270763",
"0.7205566",
"0.71... | 0.76297015 | 11 |
tf.Node > String > [tf.Variable]? > (tf.Op, tf.Op) Create an Adam optimiser operation, along with an operation for initialising only the variables used internally by the optimiser. | def tT4T(oUmU, mWFP, kc1W=None):
Wox9 = ZylS.train.AdamOptimizer(name=mWFP + '.adam_optimiser')
return (Wox9.minimize(oUmU, var_list=kc1W, name=mWFP + '.minimise'), ZylS.variables_initializer(Wox9.variables())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E1dE(oUmU, mWFP, kc1W=None):\n return ZylS.train.AdamOptimizer(name=mWFP + '.adam_optimiser').minimize(oUmU, var_list=kc1W, name=mWFP + '.minimise')",
"def bt4h(N77f, Cwt5, dgWh, znmT, _hZ2):\n K0do = ZylS.train.AdamOptimizer(learning_rate=Cwt5, beta1=dgWh, beta2=znmT, epsilon=_hZ2)\n EvQg = K0do.mi... | [
"0.7339279",
"0.7098565",
"0.68570757",
"0.6683464",
"0.6683464",
"0.6646473",
"0.65805656",
"0.62965107",
"0.62862504",
"0.61791027",
"0.6176915",
"0.61711526",
"0.61447394",
"0.61211",
"0.610805",
"0.610314",
"0.608412",
"0.6071762",
"0.6050657",
"0.59981775",
"0.5984885",
... | 0.7426982 | 0 |
LossNode > String > [tf.Variable]? > Optimiser Create an Adam optimiser with default learning parameters set to minimise the given loss node. | def E1dE(oUmU, mWFP, kc1W=None):
return ZylS.train.AdamOptimizer(name=mWFP + '.adam_optimiser').minimize(oUmU, var_list=kc1W, name=mWFP + '.minimise') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tT4T(oUmU, mWFP, kc1W=None):\n Wox9 = ZylS.train.AdamOptimizer(name=mWFP + '.adam_optimiser')\n return (Wox9.minimize(oUmU, var_list=kc1W, name=mWFP + '.minimise'), ZylS.variables_initializer(Wox9.variables()))",
"def qp5T(YKHO, N77f, b0Ix, SRYB):\n Jel3 = ZylS.train.AdamOptimizer(learning_rate=b0Ix... | [
"0.77614534",
"0.65809083",
"0.64527076",
"0.64447564",
"0.628383",
"0.627875",
"0.62308496",
"0.61939293",
"0.6152135",
"0.614899",
"0.60573304",
"0.6016081",
"0.6007274",
"0.5994265",
"0.5990766",
"0.590552",
"0.58883333",
"0.58883333",
"0.58530587",
"0.5850922",
"0.5848501... | 0.80250835 | 0 |
if getting a string, return pennies on the dollar, or strippeddown string | def gyo7(YRbF, Lf93=True):
if isinstance(YRbF, (str, QMSQ)):
try:
if Lf93:
return int(YRbF.replace('.', '').replace('$', '').strip())
else:
return float(YRbF.replace('$', '').strip())
except ValueError:
return YRbF.strip()
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EURg(input, **B2fa):\n while input.startswith('$'):\n input = input[1:]\n while input.endswith('$'):\n input = input[0:-1]\n return input",
"def A03g(Z5kt):\n if Z5kt[0] == '$':\n Z5kt = Z5kt[1:]\n if Z5kt.find('.') != -1:\n return Z5kt.replace('.', '')\n return ... | [
"0.6857114",
"0.64056754",
"0.63071275",
"0.6249889",
"0.5957392",
"0.5881029",
"0.57987446",
"0.56835437",
"0.5664021",
"0.5550171",
"0.55480945",
"0.55463266",
"0.5540557",
"0.5522002",
"0.5508715",
"0.5503365",
"0.5463383",
"0.5450946",
"0.54354465",
"0.5419111",
"0.540591... | 0.60157084 | 4 |
Feed forward our observation (forward propagation) and get the value of the actions given that we're in some set of states denoted by the observation | def KVH6(YKHO, rNYq):
rNYq = vuvg.relu(YKHO.fc1(rNYq))
xASv = YKHO.fc2(rNYq)
return xASv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, dS28, YNO3):\n O4JO = ht2j.cat((dS28, YNO3), 1)\n AFtz = YKHO.model(O4JO)\n return AFtz",
"def KVH6(YKHO, QTBn):\n WKvO = QTBn\n RDhP = YKHO.feature_layer(WKvO)\n Dg7R = YKHO.value_layer(RDhP)\n dN3z = YKHO.advantage_layer(RDhP)\n U89Q = Dg7R + (dN3z - dN3z.mean(dim=1, keep... | [
"0.7010782",
"0.67776686",
"0.6724738",
"0.6628955",
"0.66276807",
"0.66244805",
"0.65987736",
"0.6567183",
"0.65112364",
"0.6508202",
"0.65061283",
"0.65017265",
"0.64783996",
"0.6467277",
"0.6464391",
"0.6432744",
"0.6400561",
"0.6390434",
"0.6366373",
"0.6351905",
"0.63382... | 0.6431425 | 16 |
This function stores memory transitions. It takes in the current state, the action taken, the reward received, and the resulting state. | def GwRw(YKHO, QTBn, XeOP, vOGg, AJEJ):
d6pt = YKHO.memory_counter % YKHO.max_mem_size
YKHO.memory[d6pt, :] = oyIN.hstack((QTBn, [XeOP, vOGg], AJEJ))
YKHO.memory_counter += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VUF1(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.replay_memory.append((QTBn, XeOP, vOGg, rxHc, _ins))",
"def tJtd(YKHO, QTBn, XeOP, rxHc, vOGg, _ins):\n if len(YKHO.memory) >= YKHO.size_max_memory:\n YKHO.memory.pop(0)\n YKHO.memory += [j7A7(QTBn, XeOP, rxHc, vOGg, _ins)]",
"def GwRw(YKHO, ... | [
"0.78003925",
"0.7743828",
"0.7680608",
"0.7605921",
"0.74234176",
"0.7423264",
"0.7420604",
"0.7280403",
"0.7150004",
"0.7060317",
"0.70299804",
"0.70268667",
"0.70176506",
"0.69925076",
"0.69925076",
"0.69904715",
"0.69667745",
"0.6926161",
"0.6858057",
"0.6842293",
"0.6714... | 0.82133657 | 0 |
Return true if there is at least one graphpoint with a dsName equal to dpName. | def JpiY(YKHO, Vxxz):
from DataPointGraphPoint import DataPointGraphPoint
return any((isinstance(U_NH, DataPointGraphPoint) and U_NH.dpName == Vxxz for U_NH in YKHO.getGraphPoints(includeThresholds=False))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zyJg(YKHO, Vxxz):\n from DataPointGraphPoint import DataPointGraphPoint\n return [U_NH for U_NH in YKHO.graphPoints() if isinstance(U_NH, DataPointGraphPoint) and U_NH.dpName == Vxxz]",
"def vtfo(YKHO, mWFP):\n assert mWFP, 'Must input a valid dataset name.'\n return mWFP in YKHO.manager.data['da... | [
"0.6595093",
"0.6454463",
"0.6090387",
"0.6087896",
"0.607874",
"0.5942403",
"0.5921128",
"0.5857084",
"0.5807831",
"0.57941604",
"0.57728535",
"0.5758609",
"0.5742762",
"0.5714896",
"0.56621575",
"0.56566477",
"0.5627397",
"0.56004417",
"0.5542626",
"0.55242914",
"0.5519199"... | 0.80648524 | 0 |
Sets the learning rate to the initial LR divided by 5 at 60th, 120th and 160th epochs | def e_63(K0do, jBUu):
tspZ = AS37(_Fei.Lr, jBUu, _Fei.NUM_STEPS, _Fei.POWER)
for gaZW in K0do.param_groups:
gaZW['lr'] = tspZ
return tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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.summary_writer.add_scalar('learning_rate', b0Ix, YKHO.epoch)",
"def... | [
"0.7851729",
"0.7771049",
"0.7768421",
"0.75833607",
"0.7561154",
"0.75322944",
"0.7503269",
"0.7494458",
"0.7488913",
"0.74887127",
"0.74767107",
"0.7437975",
"0.7413997",
"0.7398021",
"0.7382977",
"0.7349557",
"0.7335179",
"0.7331621",
"0.7325815",
"0.7320968",
"0.73129857"... | 0.0 | -1 |
Select the column from dataset DataFrame and specified in col_name as label | def uwWX(YKHO, AAHb, G9qH):
YKHO.labels = YKHO.df[AAHb]
if G9qH is True:
print('not supported yet')
else:
YKHO.label_dict = {UXqs: or8S for or8S, UXqs in enumerate(oyIN.unique(YKHO.df[AAHb]))}
YKHO.inv_label_dict = {Ty9i: G1Hx for G1Hx, Ty9i in YKHO.label_dict.items()}
YKHO.labels.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HgpW(Es0b):\n return yX5q[Es0b].to_frame()",
"def Ud_e(YKHO, EfUA, iVRZ):\n if (YKHO.stack and YKHO.stack[-1].get('is_selected_from')) and isinstance(iVRZ, Pe9W._ColumnClause) and (not iVRZ.is_literal) and (iVRZ.table is not None) and (not isinstance(iVRZ.table, Pe9W.Select)):\n return iVRZ.labe... | [
"0.71116245",
"0.6975817",
"0.67848754",
"0.6755907",
"0.6674073",
"0.6640554",
"0.66266197",
"0.6534864",
"0.6457352",
"0.6382403",
"0.6370733",
"0.62386644",
"0.6228517",
"0.6224601",
"0.6166545",
"0.61638635",
"0.6116705",
"0.6104086",
"0.607919",
"0.60582227",
"0.60575294... | 0.67795783 | 3 |
Split dataset in n_subset parts and create as many dataset objects containing samples of original dataset chosen randomly with replacement | def vYLi(YKHO, XVdl):
a1PO = qcWV.now().strftime('%Y-%m-%d %H:%M:%S')
print('[INFO] {} - Random sampling with replacement ...'.format(a1PO))
XHgJ = []
Yqkn = YKHO
RET9 = epAf.ceil(Yqkn.n_samples / XVdl)
for YRbF in range(XVdl):
YKHO.permutation()
Dvh2 = 0
Ybwo = RET9
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GaMM(YKHO, UHFx):\n zNig = 0\n for XkN1 in YKHO.blocks:\n zNig += len(XkN1[1])\n vcn7 = XTiz.random.permutation(zNig)[:UHFx]\n vcn7.sort()\n oeNL = 0\n d6pt = 0\n U5bT = x3i3()\n for XkN1 in YKHO.blocks:\n while vcn7[d6pt] < oeNL + len(XkN1[1]):\n hksT = vcn7[d6... | [
"0.73276055",
"0.7179101",
"0.7172126",
"0.7058606",
"0.6954144",
"0.69088185",
"0.6906458",
"0.6873635",
"0.68358445",
"0.6793397",
"0.67461157",
"0.6732814",
"0.67272097",
"0.6716224",
"0.6622986",
"0.66004455",
"0.6593303",
"0.6583319",
"0.65280646",
"0.6527357",
"0.651893... | 0.73997825 | 0 |
Create a tensorflow layer Returns | def eLpg(YKHO):
hlel = None
if YKHO.output_bias is not None:
jEd_ = ZylS.keras.initializers.Constant(YKHO.output_bias)
else:
jEd_ = None
b1O8 = None
if YKHO.activation_name == 'relu' or YKHO.activation_name == 'elu':
b1O8 = ZylS.keras.initializers.he_normal()
elif YKHO.ac... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s6ah(THkp, exwG, YDYE):\n z7JX = ZylS.contrib.layers.variance_scaling_initializer(mode='FAN_AVG')\n gEmA = ZylS.layers.Dense(units=exwG, activation=YDYE, kernel_initializer=z7JX, name='layer')\n return gEmA(THkp)",
"def dwyS(g4y1, FtXE, OVDz, _Rzr, ECMu=None):\n lzjZ = 'layer%s' % _Rzr\n with ... | [
"0.7084781",
"0.6995747",
"0.68748116",
"0.6861905",
"0.682327",
"0.6651122",
"0.6620249",
"0.6570826",
"0.65648794",
"0.65595657",
"0.6548422",
"0.6535935",
"0.65260965",
"0.65102136",
"0.6508955",
"0.6496199",
"0.6476136",
"0.6464349",
"0.64168966",
"0.63907206",
"0.6385728... | 0.7174275 | 0 |
Keep track of token indices. | def K1tm(J_Es, vgXP):
for or8S, bGrB in enumerate(J_Es.leaves()):
as6a = J_Es.leaf_treeposition(or8S)
yV28 = J_Es[as6a[:-1]]
yV28[0] = (yV28[0], or8S + vgXP)
return J_Es | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bBjF(YKHO, s2mk):\n xDYK = []\n for on8l in s2mk:\n if on8l in YKHO.wtoi.keys():\n xDYK.append(YKHO.wtoi[on8l])\n else:\n xDYK.append(1)\n for bGrB in range(YKHO.sentence_max_length - len(xDYK)):\n xDYK.append(0)\n if len(xDYK) > YKHO.sentence_max_length:\... | [
"0.7355989",
"0.70700705",
"0.68557656",
"0.6582347",
"0.6553393",
"0.65030026",
"0.64334935",
"0.6419829",
"0.63889736",
"0.6381239",
"0.6324228",
"0.6306379",
"0.6181237",
"0.6153679",
"0.6147161",
"0.6081978",
"0.60737103",
"0.6031734",
"0.6025489",
"0.601966",
"0.60065824... | 0.0 | -1 |
Transforms bin_indices into group indices, skips empty bins | def INw9(Kr4p, ZHfW):
assert len(Kr4p) == len(ZHfW), 'Different length'
KDvG = XTiz.unique(Kr4p)
Aofo = list()
for bSdt in KDvG:
Aofo.append(XTiz.where(ZHfW & (Kr4p == bSdt))[0])
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XMzK(ezWE, Pyrc, mC4V='right'):\n mC4V = mC4V.lower()\n if mC4V.startswith('r'):\n _tIi = True\n elif mC4V.startswith('l'):\n _tIi = False\n else:\n RuntimeError(\"``edges`` must be 'right' or 'left'!\")\n DkWr = 0\n if not _tIi:\n DkWr = -1\n oeNL = oyIN.digiti... | [
"0.6790227",
"0.60028476",
"0.59623134",
"0.59570706",
"0.5907395",
"0.5899478",
"0.5867087",
"0.5864903",
"0.5864903",
"0.58454823",
"0.5812525",
"0.58035856",
"0.57689106",
"0.5740283",
"0.5694048",
"0.56503814",
"0.56228024",
"0.5616195",
"0.5608595",
"0.5593722",
"0.55829... | 0.81799394 | 0 |
Computes cumulative distribution function (CDF) by ordered weights, be sure that sum(ordered_weights) == 1 | def x1Q9(MzO8):
return XTiz.cumsum(MzO8) - 0.5 * MzO8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(_mSQ):\n return oyIN.cumsum(_mSQ) / sum(_mSQ)",
"def ei4X(YKHO, UXqs: str, _mSQ: str=None) -> oyIN.array:\n if not _mSQ == None:\n tyNF = YKHO.sample.sort_values(UXqs)\n yzQ0 = tyNF[_mSQ].values\n return oyIN.array([tyNF[UXqs].values, oyIN.cumsum(yzQ0) / oyIN.sum(yzQ0)])\n ... | [
"0.7808867",
"0.6640013",
"0.6417415",
"0.64035153",
"0.63425964",
"0.6248766",
"0.6175385",
"0.6148169",
"0.6113682",
"0.61068696",
"0.6064439",
"0.5981427",
"0.5885678",
"0.587889",
"0.58629364",
"0.5734454",
"0.57086366",
"0.5649806",
"0.56232774",
"0.56004256",
"0.5599004... | 0.90470666 | 0 |
sum weight |x x_mean|^power | def KN1_(jzdc, _mSQ, naF9=2.0):
JBMS = XTiz.average(jzdc, weights=_mSQ)
return XTiz.average(XTiz.abs(JBMS - jzdc) ** naF9, weights=_mSQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Sv4c(YKHO, g4y1):\n Sv4c = 0\n for YRbF in range(YKHO.num_inputs):\n Sv4c += YKHO.weights[YRbF] * g4y1[YRbF]\n return Sv4c",
"def JBMS(YKHO):\n return YKHO.sum / YKHO.sum_weights",
"def Gq7O(WKvO, xF06=None):\n if xF06 is None:\n return WKvO.mean()\n else:\n assert WK... | [
"0.6961444",
"0.67395484",
"0.67359936",
"0.6699103",
"0.658371",
"0.6554287",
"0.65318036",
"0.6461502",
"0.64557815",
"0.6414253",
"0.6407969",
"0.63851166",
"0.63240147",
"0.63123304",
"0.62184125",
"0.618818",
"0.6184783",
"0.6156386",
"0.61452264",
"0.6136528",
"0.613234... | 0.6044014 | 28 |
Calculates damage factor on size. If weapon size is greater than the target size, then only the area that falls within the target will the damage be applied. | def _Mzx(FWEd, SFa2):
if FWEd <= SFa2:
return a033
return SFa2 ** 2 / FWEd ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BxgD(a033, FWEd, SFa2, XjJ6, wL7J):\n h_YC = 1 + XjJ6.get('active', {}).get('tracking_disruption', 0)\n G0bn = 1 + wL7J.get('active', {}).get('target_painter', 0)\n jA2G = 1 - wL7J.get('active', {}).get('web', 0)\n if jA2G == 0 or FWEd / jA2G * h_YC <= SFa2 * G0bn:\n return a033\n Kq0f = ... | [
"0.6976738",
"0.614433",
"0.6112917",
"0.5962203",
"0.5929868",
"0.59076524",
"0.58056116",
"0.57666886",
"0.5642174",
"0.563287",
"0.5591096",
"0.5555944",
"0.55480963",
"0.55103374",
"0.54974663",
"0.5475105",
"0.540319",
"0.54011244",
"0.5390442",
"0.5346287",
"0.53433824"... | 0.87186164 | 0 |
Return the name of the sensor. | def mWFP(YKHO):
return f'{KMJc.DOMAIN}_{YKHO._name}_{YKHO._sensor_name}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91898125",
"0.91688734",
"0.8901384",
"0.8770892",
"0.8510443",
"0.8479362",
"0.84436846",
"0.8298963",
"0.81862175",
"0.8106185",
"0.8079505",
"0.80660695",
"0.76988834",
"0.76104885",
"0.7609674",
"0.75989187",
"0.75989187",
"0.75989187",
"0.75374687",
"0.75150275",
"0.7... | 0.8049362 | 12 |
getType(self) Return which type of actor this dna represents. | def YwLH(YKHO):
if YKHO.type == 's':
type = 'suit'
elif YKHO.type == 'b':
type = 'boss'
else:
n3T8.error('Invalid DNA type: ', YKHO.type)
return type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO.__animal_type",
"def YwLH(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO.type_",
"def YwLH(YKHO):\n return YKHO.tipo",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO.type",
"def YwLH(YKHO):\n return YKHO._type",
"def... | [
"0.6910517",
"0.66695154",
"0.6614324",
"0.6612874",
"0.6590619",
"0.6590619",
"0.6584954",
"0.6531742",
"0.65230954",
"0.65230954",
"0.64523363",
"0.64400464",
"0.64396113",
"0.63819426",
"0.63387024",
"0.6311867",
"0.6297006",
"0.62708443",
"0.62708443",
"0.62708443",
"0.62... | 0.6902624 | 1 |
Get a list of the trainable variables of the model. | def r51G(YKHO):
return YKHO.arch.variables | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bjkb(YKHO):\n return [Ty9i for XP5J in YKHO.parameters for Ty9i in XP5J.trainable_variables]",
"def r51G(YKHO):\n NArs = ZylS.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, YKHO.scope)\n return NArs",
"def E9Ml(YKHO):\n YKHO.variables_to_train = None\n if not YKHO.train_encoder:\n ... | [
"0.84106857",
"0.83313924",
"0.81297374",
"0.8062774",
"0.8009906",
"0.79164755",
"0.78840417",
"0.78840417",
"0.77977896",
"0.776468",
"0.764058",
"0.7587395",
"0.7582669",
"0.7574112",
"0.75313574",
"0.74282765",
"0.74051094",
"0.73525757",
"0.73479426",
"0.7243529",
"0.715... | 0.85341656 | 0 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: str) -> bool:
Q6kx = YKHO.find(GIN8)
return Q6kx and Q6kx.is_word | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7753436",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079"... | 0.74830437 | 28 |
Return a new point that is twice the old. | def aj0M(YKHO):
if YKHO == r51j:
return r51j
vC9B = (3 * YKHO.__x * YKHO.__x + YKHO.__a) * r4a9(2 * YKHO.__y, YKHO.__p) % YKHO.__p
rNcn = (vC9B * vC9B - 2 * YKHO.__x) % YKHO.__p
Sb1k = (vC9B * (YKHO.__x - rNcn) - YKHO.__y) % YKHO.__p
return tnXN(YKHO.__p, YKHO.__a, YKHO.__b, rNcn, Sb1k) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S4yt(EBgd, V3xq=ANGj, QGQJ=Hy8o):\n WKvO, LVAh = (EBgd.x, EBgd.y)\n LFlW = 3 * WKvO * WKvO\n LFlW = LFlW + V3xq.a\n KCHu = LFlW / (2 * LVAh)\n kNbz = KCHu * KCHu - WKvO - WKvO\n eLqP = KCHu * (WKvO - kNbz) - LVAh\n return SSRA(kNbz, eLqP, False, V3xq)",
"def qmLn(YKHO) -> m7iN:\n retu... | [
"0.61314666",
"0.59783435",
"0.5895904",
"0.58678436",
"0.58678436",
"0.57877463",
"0.5724592",
"0.5666498",
"0.56604123",
"0.55943537",
"0.5563196",
"0.55497",
"0.55385524",
"0.55383086",
"0.55383086",
"0.5525608",
"0.5501164",
"0.549951",
"0.5491453",
"0.5474937",
"0.546985... | 0.56892234 | 7 |
This method initialize each metric object @ In, inputDict, dict, dictionary containing initialization parameters @ Out, none | def uIcm(YKHO, QjUf):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO, VDKe, g4y1, vILx):\n super().initialize(VDKe, g4y1, vILx)\n for z5fp in YKHO.assemblerDict['Metric']:\n YKHO.metricsDict[z5fp[2]] = z5fp[3]",
"def Eb2i(YKHO):\n YKHO.metrics = {}\n YKHO.metrics['train_loss'] = oyIN.zeros(0)\n YKHO.metrics['test_loss'] = oyIN.zeros(0)\n YKH... | [
"0.82911104",
"0.75114757",
"0.71064746",
"0.7009915",
"0.68746525",
"0.68383324",
"0.68123096",
"0.6762167",
"0.6748141",
"0.67178404",
"0.6662818",
"0.66391",
"0.65985054",
"0.6591558",
"0.65275997",
"0.6515109",
"0.6511732",
"0.65076417",
"0.65033007",
"0.648643",
"0.64581... | 0.7064249 | 3 |
Return the sources slug instead of the id. | def UpuU(YKHO, YEnM):
nPrm = super(dzV9, YKHO).to_representation(YEnM)
if YEnM.pk is None:
JZXy = GKAd.LOGIN_SOURCE_LOOKUP[GKAd.LOGIN_SOURCE_UNKNOWN]
elif YEnM.source in YKHO.ALLOWED_SOURCES:
JZXy = GKAd.LOGIN_SOURCE_LOOKUP[YEnM.source]
else:
JZXy = GKAd.LOGIN_SOURCE_LOOKUP[GKAd.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UBGL(YKHO) -> str:\n return YKHO._source_id",
"def UBGL(YKHO) -> str:\n return YKHO._source_id",
"def UBGL(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'source_id')",
"def dHcn(YKHO):\n return YKHO.get_object().slug",
"def _zUn(YKHO) -> str:\n return qe4Y.get(YKHO, 'source_identifier')",
... | [
"0.64594555",
"0.64594555",
"0.64080256",
"0.63634866",
"0.6338882",
"0.6338882",
"0.6310398",
"0.6266359",
"0.621801",
"0.6207257",
"0.6205775",
"0.6200629",
"0.61520404",
"0.6078017",
"0.60490143",
"0.59617907",
"0.5901329",
"0.586367",
"0.583934",
"0.58195454",
"0.58195454... | 0.0 | -1 |
Map a point to bitvector corresponding to the bin that contains it. | def wgcE(YKHO, AU8u: float, yJiH=0.0):
d6pt = YKHO.pt2index(AU8u, yJiH)
return E9Hy(d6pt, YKHO.num_bits) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wgcE(YKHO, AU8u: float, Zsg6: int, yJiH=0.0):\n assert isinstance(Zsg6, int)\n if YKHO.periodic:\n AU8u = YKHO._wrap(AU8u)\n d6pt = YKHO.pt2index(AU8u, Zsg6, alignleft=True)\n if YKHO.periodic:\n d6pt = onW7(d6pt)\n return E9Hy(d6pt, Zsg6)",
"def k53_(YKHO, Xf84):\n if len(YKH... | [
"0.65505666",
"0.62339324",
"0.61689186",
"0.61579394",
"0.5941974",
"0.577782",
"0.57645077",
"0.5728357",
"0.57117677",
"0.5679318",
"0.56495726",
"0.5640364",
"0.5601922",
"0.55837655",
"0.5542495",
"0.5530292",
"0.55136764",
"0.55078244",
"0.5478354",
"0.54094404",
"0.540... | 0.62397605 | 1 |
`y = 1 / (1 + exp(x))` | def m1Hg(WKvO):
return 1 / (1 + oyIN.exp(-WKvO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dRO0(Emd4, WKvO):\n return 1.0 / (1.0 + oyIN.exp(-WKvO))",
"def I5l8(WKvO):\n LVAh = ht2j.exp(WKvO)\n return LVAh",
"def kLQb(WKvO):\n raise NotImplementedError",
"def b27A(YKHO, WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))",
"def LVAh(WKvO, Y7fn):\n return oyIN.exp(-Y7fn) - oyIN.exp(-Y7... | [
"0.7997834",
"0.7724845",
"0.7702413",
"0.7686887",
"0.75947547",
"0.7583827",
"0.7548484",
"0.75173676",
"0.75157094",
"0.750876",
"0.74851584",
"0.7484046",
"0.74639034",
"0.7461077",
"0.7455336",
"0.74522334",
"0.7447609",
"0.74427867",
"0.7434122",
"0.7428947",
"0.7407589... | 0.754051 | 11 |
Called when the user specifies an intent for this skill | def E97p(McO3, cuiw):
print('on_intent requestId=' + McO3['requestId'] + ', sessionId=' + cuiw['sessionId'])
E2VF = McO3['intent']
q8Qy = McO3['intent']['name']
if 'access_token' not in cuiw:
tLFF(cuiw)
print(cuiw['access_token'])
if q8Qy == 'Tracking':
return XK6t(E2VF, cuiw)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E97p(McO3, cuiw):\n E2VF = McO3['intent']\n q8Qy = McO3['intent']['name']\n if q8Qy not in eduI:\n q8Qy = 'NullSkill'\n if q8Qy in eduI:\n try:\n return eduI[q8Qy].execute(E2VF, cuiw)\n except Exception as e:\n wVCK.print_exc()\n return srwk().r... | [
"0.7143966",
"0.6956116",
"0.6949057",
"0.6905333",
"0.68928874",
"0.67641324",
"0.6754843",
"0.6722764",
"0.6720773",
"0.67161995",
"0.6699252",
"0.6691263",
"0.6670276",
"0.6645522",
"0.6642719",
"0.6638686",
"0.6607724",
"0.6594981",
"0.6575682",
"0.6570076",
"0.65620786",... | 0.6473436 | 33 |
Initialize the weights in detector. | def vB93(YKHO, mL4f=None):
super(LTuM, YKHO).init_weights(mL4f)
YKHO.backbone.init_weights(pretrained=mL4f)
if YKHO.with_neck:
if isinstance(YKHO.neck, U78l.Sequential):
for r8hN in YKHO.neck:
r8hN.init_weights()
else:
YKHO.neck.init_weights()
if Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def vJuA(YKHO):\n raise NotImplementedError",
"def Y7Gu(YKHO, _mSQ):\n YKHO.init_w = _mSQ",
"def sTi3(YKHO):\n dIoi.WeightsInitialize... | [
"0.8447639",
"0.8180315",
"0.80988675",
"0.8020772",
"0.7919424",
"0.786902",
"0.7741314",
"0.77346873",
"0.76798457",
"0.7664226",
"0.7656543",
"0.76477873",
"0.75892216",
"0.75275147",
"0.7513663",
"0.7504854",
"0.7503682",
"0.7497825",
"0.7497825",
"0.7497825",
"0.7478873"... | 0.72344816 | 43 |
calculates unix time {timestamp} unix time | def dSib(YKHO, XMyW):
dSib = ITS7.mktime(XMyW.timetuple())
return dSib | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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(_c1T.timetuple())) * 1000",
"def QGdl(E3oo):\n return E3oo / 1000000.0",
"def u7it(Ei1M):\n return int(round(Ei1M * 1000000.0))",
"def tAwz(Emd4, E3oo):\n if... | [
"0.75879526",
"0.72743046",
"0.7240875",
"0.6981259",
"0.6971941",
"0.69171464",
"0.68840486",
"0.6867971",
"0.67354965",
"0.6705537",
"0.6673837",
"0.66143626",
"0.66042805",
"0.6556207",
"0.6547878",
"0.6538946",
"0.65306395",
"0.65190667",
"0.6467715",
"0.64343226",
"0.641... | 0.7110069 | 3 |
Return a reference configuration. | def Y6k6(YKHO) -> fhLb.Config:
GPtr = fhLb.get_config_from_nested_dict({YKHO._get_nid('rets/read_data'): {'frequency': 'T', 'start_date': '2010-01-04 09:00:00', 'end_date': '2010-01-04 16:30:00', 'ar_coeffs': [0], 'ma_coeffs': [0], 'scale': 0.1, 'burnin': 0, 'seed': 0}, YKHO._get_nid('rets/filter_ath'): {'col_mode'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tgzD(YKHO):\n if YKHO.allow_reco():\n return YKHO.chs_config()\n else:\n return YKHO.get_config_j(YKHO.id)",
"def GPtr(YKHO):\n return YKHO._config",
"def GPtr():\n return viqz",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def w... | [
"0.65092355",
"0.65013164",
"0.64974004",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037",
"0.64919037"... | 0.0 | -1 |
Coalesce this whole slice into a single one. Brutally. | def ArD4(YKHO) -> QAlO:
return QAlO(hx9F._coalesce_types(YKHO.slice_buffer), YKHO.source_slice, YKHO.templated_slice) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WDSQ(YKHO):\n return YKHO.merge(1)",
"def Pusg(YKHO):\n return YKHO.crop(*YKHO.ink_offsets)",
"def O358(YKHO):\n for YRbF in range(len(YKHO)):\n if YKHO[YRbF] != W_f1:\n return YKHO.__class__(YKHO[YRbF:])\n return YKHO.__class__([])",
"def ArD4(YKHO, nfgB):\n return YKHO.... | [
"0.5401775",
"0.5277561",
"0.5086095",
"0.50274026",
"0.50246334",
"0.50178045",
"0.49937516",
"0.49930096",
"0.49813202",
"0.49351832",
"0.4933961",
"0.49174333",
"0.49125135",
"0.4882212",
"0.48642638",
"0.48623437",
"0.485516",
"0.48501262",
"0.48427582",
"0.48148936",
"0.... | 0.6366621 | 0 |
Filter a dict of occurrences to just those within a slice. | def wM3g(DFmE: slice, mNSi: Dict[str, List[int]]) -> cuzp[str, x1iM[int]]:
iku2 = {H5ew: [oeNL for oeNL in mNSi[H5ew] if oeNL >= DFmE.start and oeNL < DFmE.stop] for H5ew in mNSi.keys()}
return {H5ew: iku2[H5ew] for H5ew in iku2.keys() if iku2[H5ew]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HwUi(weiJ, YWxY):\n for G1Hx in set(weiJ.keys()) - YWxY:\n weiJ.pop(G1Hx)",
"def filter(YKHO, dict):\n for oeNL, PWrs in enumerate(YKHO._sequence):\n for H5ew, BWXx in dict.items():\n nPrm = YKHO.dictionary[PWrs]\n if not (nPrm.has_key(H5ew) and nPrm[H5ew].find(BWXx)... | [
"0.6243578",
"0.6126197",
"0.60437065",
"0.6037379",
"0.59448564",
"0.5802446",
"0.574578",
"0.5740564",
"0.562094",
"0.558148",
"0.5568815",
"0.55339736",
"0.54904217",
"0.5432098",
"0.54097915",
"0.5405255",
"0.54017603",
"0.5372058",
"0.5365594",
"0.5335989",
"0.53254646",... | 0.76616806 | 0 |
Generates a pretty(er) name from a database table name. | def W0tD(k9X4):
return k9X4[k9X4.find('_') + 1:].replace('_', ' ').capitalize() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yUXE(YKHO, QF7s: str, tyNF: str) -> str:\n return tyNF",
"def GTA_() -> str:\n pass",
"def cbER(YKHO, uPxI, tyNF):\n return '\"{}\".\"{}\"'.format(uPxI, tyNF)",
"def qdnu(P8oC, k9X4: str, tyNF: Table) -> str:\n return hr_R(k9X4, upper=True)",
"def gsmf(YKHO, mWFP: AnyStr) -> bytes:\n mWF... | [
"0.79033035",
"0.773714",
"0.73384494",
"0.71828234",
"0.71329236",
"0.6959852",
"0.6873793",
"0.679506",
"0.67729133",
"0.676234",
"0.6733919",
"0.6698664",
"0.6696577",
"0.6682367",
"0.6632467",
"0.6570783",
"0.6557303",
"0.6554159",
"0.6529655",
"0.6529655",
"0.6529655",
... | 0.75213325 | 2 |
A basic infix arithmetic parsing class Optimize [bool] Specifies whether to "optimize" the code. This mainly resolves constant integers. | def FIMM(YKHO, WIl5: bool=True, BA9O: bool=True, s2mk: dict[str, int]=Rw7J):
YKHO.optimize = WIl5
YKHO.sort = BA9O
YKHO.tokens = s2mk | {'(': [0, None], ')': [0, None]} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WX99(YKHO, jBhe):\n jBhe = ZbWC.sub('\\\\+\\\\+', '.add(1)', jBhe)\n jBhe = ZbWC.sub('--', '.sub(1)', jBhe)\n gpRq = ZbWC.search('[+\\\\-*/]=', jBhe)\n Aofo = ''\n if gpRq:\n Ty9i = jBhe[:gpRq.start()].rstrip(' ')\n hQHm = Ty9i.strip(' ')\n ypAs = [hQHm, gpRq.group()[:1], '(... | [
"0.5747159",
"0.5733757",
"0.56535786",
"0.5597894",
"0.5584964",
"0.5555246",
"0.55296665",
"0.5471911",
"0.5377449",
"0.5376744",
"0.5339946",
"0.53193134",
"0.53180784",
"0.53176147",
"0.53149587",
"0.5303363",
"0.5261037",
"0.52405995",
"0.5207025",
"0.5182001",
"0.517084... | 0.4640844 | 80 |
Converts infix algebra to postfix algebra. expr [str] The input expression | def XtMr(YKHO, VN2L: str) -> str:
E5BI: list[str] = []
hlel: str = ''
VN2L = f'({VN2L})'
VN2L = YKHO.tokenize_expr(VN2L)
for eOtH in VN2L:
if eOtH == '(':
E5BI.append('(')
elif eOtH == ')':
while E5BI[-1] != '(':
hlel += f'{E5BI.pop()} '
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XtMr(VN2L):\n IPme = S9Ut()\n hEAh = []\n Q4kH = VN2L.split()\n\n def lfdS(chr):\n if chr.isdigit():\n hEAh.append(chr)\n elif chr == '(':\n IPme.push('(')\n elif IPme.peek() == '(' or IPme.empty():\n IPme.push(chr)\n elif chr == ')':\n ... | [
"0.80606633",
"0.7964601",
"0.75717115",
"0.7413668",
"0.7239577",
"0.72022945",
"0.71805865",
"0.7122943",
"0.71209925",
"0.70804083",
"0.6996111",
"0.6981953",
"0.6951314",
"0.6925259",
"0.68769896",
"0.6873741",
"0.6764516",
"0.66924584",
"0.6663781",
"0.6653798",
"0.66431... | 0.78375685 | 2 |
Converts infix algebra to prefix algebra. expr [str] The input expression | def dQt5(YKHO, VN2L: str) -> str:
VN2L = reversed(VN2L)
VN2L = list(VN2L)
for YRbF, tTpl in enumerate(VN2L):
if tTpl == '(':
VN2L[YRbF] = ')'
elif tTpl == ')':
VN2L[YRbF] = '('
VN2L = ''.join(VN2L)
VN2L = YKHO.infix_to_postfix(VN2L)
VN2L = reversed(VN2L)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mhJf(Emd4, lsX7):\n bo34.info(f'in the calculate prefix expression {lsX7}')\n UqER = lsX7.split()\n E5BI = []\n for tTpl in reversed(UqER):\n if tTpl.isdigit():\n E5BI.append(int(tTpl))\n elif len(E5BI) < 2:\n bo34.info('invalid input')\n raise Excepti... | [
"0.664578",
"0.6562387",
"0.6492114",
"0.6489635",
"0.64423674",
"0.64218444",
"0.6409474",
"0.6332373",
"0.6211638",
"0.614548",
"0.5933642",
"0.5890488",
"0.58857906",
"0.5869483",
"0.58240837",
"0.5795316",
"0.5790727",
"0.57855725",
"0.57208693",
"0.57087123",
"0.56760514... | 0.7931066 | 0 |
Test case for get_ban | def q3Dt(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bDs0(YKHO):\n pass",
"def UcLU(YKHO):\n pass",
"def eeVW(YKHO):\n pass",
"async def test_ban(YKHO, OaeV):\n try:\n pass\n except Exception as e:\n await mxAh.bot_errors(OaeV, H4yH.format(tTpl))",
"def ruKW(YKHO):\n pass",
"def Q8kX(YKHO):\n pass",
"def mxaa(YKHO):... | [
"0.7934899",
"0.7560778",
"0.75315344",
"0.7478688",
"0.7169812",
"0.66973203",
"0.6488742",
"0.628112",
"0.6273042",
"0.62508875",
"0.621656",
"0.6197768",
"0.6180028",
"0.6118127",
"0.6111247",
"0.61067003",
"0.6090702",
"0.60592026",
"0.6037157",
"0.6023306",
"0.59936166",... | 0.9343103 | 0 |
check if image is rgb only accept rgb image when building train set | def yLNB(YKHO, p4m8):
LNo8 = hnIv.open(p4m8)
LNo8 = oyIN.asarray(LNo8)
if len(LNo8.shape) < 3:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CdmZ(Xn71):\n if Xn71.ndim == 3:\n return True\n else:\n return False",
"def CdmZ(VXjJ: np.ndarray) -> bool:\n return len(VXjJ.shape) >= 1 and VXjJ.shape[-1] == 3",
"def d7Eb(YKHO) -> bool:\n return YKHO.image_shape[2] == 3",
"def WtxG(oxOY: 'Dataset') -> bool:\n return False... | [
"0.75897574",
"0.7488315",
"0.7052029",
"0.6925399",
"0.67762756",
"0.6470295",
"0.6423139",
"0.64042914",
"0.63852924",
"0.6360768",
"0.63093615",
"0.6304243",
"0.6286628",
"0.62787783",
"0.6255236",
"0.62297255",
"0.6175592",
"0.6144822",
"0.6069844",
"0.6052767",
"0.605276... | 0.7507989 | 1 |
Return regexp that matches if this regexp matches nonzero number of times. | def fzsM(YKHO):
return YKHO.opt.NonZeroCount(YKHO._trg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBSf(WKvO, F2Ej='+'):\n LVAh = '(' + '|'.join(WKvO) + ')' + F2Ej\n return LVAh",
"def wPFE(mXDZ, eeAL=True):\n return ('(' if eeAL else '(?:') + mXDZ + ')+'",
"def TErK(gLiZ):\n return UIgY('[' + ZbWC.escape(gLiZ) + ']')",
"def ez_c():\n WQbP(iH3q)",
"def Z0R5(KCHu, mXDZ):\n return no... | [
"0.59987944",
"0.5888315",
"0.5827049",
"0.58187586",
"0.58134586",
"0.5812111",
"0.56728774",
"0.56495696",
"0.56469375",
"0.56469375",
"0.5555703",
"0.5485504",
"0.5458883",
"0.54250723",
"0.5409904",
"0.5331216",
"0.5303408",
"0.5298016",
"0.524574",
"0.524451",
"0.5232507... | 0.0 | -1 |
Test for user registration if the username given email is invalid. | def Y_i8(YKHO):
geh0 = YKHO.signup_a_user(YKHO.user_invalid_email)
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(geh0.data['errors']['email'], ['Enter a valid email address.'])
YKHO.assertNotIn('token', geh0.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9OY():\n D3lj = QePW.args.get('email')\n if not D3lj:\n return pz3A({'valid': False, 'error': 'Please provide an email address'})\n CBIr = mv1M.query.filter_by(email=D3lj).first()\n if CBIr:\n return pz3A({'valid': False, 'error': 'An account with that email address has already regis... | [
"0.7547907",
"0.74165046",
"0.73967505",
"0.732267",
"0.72933745",
"0.72748053",
"0.7253366",
"0.72475505",
"0.7102373",
"0.70894736",
"0.70877165",
"0.7083112",
"0.707519",
"0.707519",
"0.70706815",
"0.70548916",
"0.70492876",
"0.70419025",
"0.70329314",
"0.70305437",
"0.700... | 0.78273094 | 0 |
Test for user registration if the username entered already exists. | def OBVp(YKHO):
YKHO.signup_a_user(YKHO.user_data)
L2K3 = YKHO.signup_a_user(YKHO.user_data_duplicate_username)
YKHO.assertEqual(L2K3.status_code, jGRS.HTTP_400_BAD_REQUEST)
YKHO.assertEqual(L2K3.data['errors']['username'], ['user with this username already exists.'])
YKHO.assertNotIn('token', L2K3.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zs5O(L03z, Jyyj):\n NtEF = Jyyj.data\n CBIr = Nc2H.query(Nc2H.username == NtEF).get()\n if CBIr:\n raise _FIc.ValidationError('username exists, choose a different one!')",
"def D8VZ(YKHO):\n with YKHO.client:\n geh0 = YKHO.client.post('/users/signup', data=dict(username='eschoppik',... | [
"0.7591259",
"0.7430318",
"0.7417273",
"0.74149245",
"0.7358232",
"0.7342233",
"0.7337628",
"0.72507143",
"0.72231424",
"0.72068596",
"0.7179421",
"0.7179032",
"0.7161134",
"0.71544224",
"0.71408266",
"0.7131557",
"0.710796",
"0.7104845",
"0.7086091",
"0.70827687",
"0.70806",... | 0.7743392 | 0 |
test if a password is valid | def pwat(YKHO):
geh0 = YKHO.signup_a_user(YKHO.password_lacks_specialchar)
YKHO.assertEqual(geh0.data['errors']['password'], ['please consider a password that has a number, an uppercase letter, lowercase letter and a special character'])
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'])]))\n UpdD(None, RnXU)",
"def jqmR():\n assert EvfH('Longpassword') == False\n assert EvfH('123456') == False\n assert EvfH('short') == False\n assert EvfH('C0rect') == False\n assert EvfH('Correct8') == True",
... | [
"0.8705191",
"0.83413756",
"0.8287537",
"0.8198838",
"0.8192774",
"0.81880254",
"0.81536615",
"0.81281936",
"0.8101539",
"0.80953294",
"0.8084486",
"0.8037322",
"0.8026895",
"0.7993859",
"0.7971347",
"0.7969647",
"0.79630464",
"0.7938657",
"0.79173964",
"0.79091793",
"0.79054... | 0.732713 | 67 |
test if username is all digits | def dPDI(YKHO):
geh0 = YKHO.signup_a_user(YKHO.username_nodigits)
YKHO.assertEqual(geh0.data['errors']['username'], ['username is invalid'])
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gt2s(NtEF):\n import string\n if not (len(NtEF) > 2 and len(NtEF) < 65):\n return False\n if not NtEF[0] in string.letters:\n return False\n r8hN = TFh5.match(NtEF)\n return r8hN.start() == 0 and r8hN.end() == len(NtEF)",
"def Gt2s(YKHO, NtEF):\n gVaL = '^[a-zA-Z]{3,}$'\n r... | [
"0.749222",
"0.7390373",
"0.7346093",
"0.72677433",
"0.71696174",
"0.7146475",
"0.71124524",
"0.7102446",
"0.70952034",
"0.702313",
"0.698527",
"0.69834036",
"0.6970932",
"0.6950866",
"0.6871124",
"0.6868775",
"0.68443054",
"0.6786281",
"0.67423356",
"0.6703983",
"0.6701515",... | 0.0 | -1 |
Split the remote URI and filename | def YgMV(lmHp: str) -> tuple:
MkGY = 'www'
Tyi0 = '/'
Vy1y = lmHp.find(MkGY)
qnae = lmHp[Vy1y:].find(Tyi0) + Vy1y
if Vy1y == -1:
qnae = lmHp.find(Tyi0)
if qnae == -1:
j8eK = lmHp
nUeQ = '/'
else:
j8eK = lmHp[:qnae]
nUeQ = lmHp[q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def izOI(BAem):\n Ylbp = KVWQ.urlunsplit(BAem)\n if Hy7s.name == 'nt' and BAem[0] == 'file' and ('|' not in BAem[2]):\n RqeO = 'file://' if BAem[2].startswith('//') else 'file:/'\n Ylbp = Ylbp.replace('file:', RqeO)\n return Ylbp",
"def QZnC(YKHO, j8eK, QvK3=None):\n QvK3 = QvK3 if QvK3... | [
"0.62937796",
"0.6218686",
"0.6200895",
"0.6087369",
"0.60476273",
"0.600817",
"0.6003365",
"0.59986997",
"0.59732485",
"0.5964299",
"0.59405315",
"0.5875241",
"0.58545583",
"0.5850874",
"0.58473027",
"0.583716",
"0.5829513",
"0.5802676",
"0.57771903",
"0.5771919",
"0.5765623... | 0.6659016 | 0 |
Function for removing stopwords from spanish and unique characters | def ZtIO(YKHO, A97Q: str):
ROnQ = [GIN8 for GIN8 in A97Q.split() if GIN8 not in di0c.words('spanish') and len(GIN8) > 1]
return ' '.join(ROnQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUcs(V22M):\n g68O = []\n for GIN8 in V22M:\n if GIN8 not in di0c.words('spanish'):\n g68O.append(GIN8)\n return g68O",
"def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)",
... | [
"0.78694767",
"0.78489774",
"0.78407156",
"0.77401924",
"0.7587487",
"0.7525981",
"0.7499562",
"0.7496318",
"0.74817586",
"0.74798423",
"0.74761623",
"0.7443526",
"0.7443526",
"0.7443526",
"0.7443526",
"0.7389394",
"0.7344267",
"0.73368216",
"0.73099554",
"0.7297928",
"0.7294... | 0.7678101 | 4 |
returns the ID of this network (property) | def id(YKHO):
if YKHO.cloudnet:
return YKHO.cloudnet.id
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o8qp(YKHO):\n return gTEQ('PrlVirtNet_GetNetworkId', YKHO.handle)",
"def OZUW(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'network_id')",
"def OZUW(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'network_id')",
"def OZUW(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'network_id')... | [
"0.740598",
"0.7344751",
"0.7344751",
"0.7344751",
"0.7227023",
"0.71360755",
"0.70091057",
"0.68451583",
"0.68192357",
"0.67939615",
"0.67931455",
"0.67740667",
"0.6738172",
"0.67250645",
"0.67078197",
"0.67078197",
"0.66984546",
"0.6672266",
"0.66280186",
"0.6627441",
"0.66... | 0.7068746 | 6 |
Returns a gaussian function with the given parameters | def IAWS(H2v2, JPqE, fXzF, bF5a, Fk0k, DWJ0, Uk87, foh_, EYJt, BJFm, K8M6, D7aI):
bF5a = float(bF5a)
Fk0k = float(Fk0k)
DWJ0 = oyIN.deg2rad(DWJ0)
JPqE = JPqE * oyIN.cos(DWJ0) - fXzF * oyIN.sin(DWJ0)
fXzF = JPqE * oyIN.sin(DWJ0) + fXzF * oyIN.cos(DWJ0)
def zJRM(WKvO, LVAh):
fsgT = WKvO *... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO, *SGPK):\n dQgj, WTkW, caa_, pmez = SGPK\n return caa_ * oyIN.exp(-(WKvO - dQgj) ** 2 / (2.0 * WTkW ** 2)) + pmez",
"def IAWS(K5WD, WKvO):\n k0lF, Fg_i, yGTL, WTkW = K5WD\n return Fg_i + k0lF * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / WTkW ** 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return ... | [
"0.7934865",
"0.7810317",
"0.7587476",
"0.74887896",
"0.7464076",
"0.7385345",
"0.7374554",
"0.7266868",
"0.7266868",
"0.7266868",
"0.72426987",
"0.7226114",
"0.72215724",
"0.71309364",
"0.71272105",
"0.7118073",
"0.7088956",
"0.70818025",
"0.7071268",
"0.70585066",
"0.703256... | 0.6399046 | 78 |
Returns a gaussian function with the given parameters | def lEns(H2v2, JPqE, fXzF, bF5a, Fk0k, Uk87, foh_, EYJt, BJFm, K8M6):
bF5a = float(bF5a)
Fk0k = float(Fk0k)
BJFm = float(BJFm)
K8M6 = float(K8M6)
return lambda WKvO, LVAh: H2v2 * oyIN.exp(-(((JPqE - WKvO) / bF5a) ** 2 + ((fXzF - LVAh) / Fk0k) ** 2) / 2) + Uk87 * oyIN.exp(-(((foh_ - WKvO) / BJFm) ** ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IAWS(WKvO, *SGPK):\n dQgj, WTkW, caa_, pmez = SGPK\n return caa_ * oyIN.exp(-(WKvO - dQgj) ** 2 / (2.0 * WTkW ** 2)) + pmez",
"def IAWS(K5WD, WKvO):\n k0lF, Fg_i, yGTL, WTkW = K5WD\n return Fg_i + k0lF * oyIN.exp(-0.5 * (WKvO - yGTL) ** 2 / WTkW ** 2)",
"def IAWS(WKvO, yGTL, WTkW):\n return ... | [
"0.7936006",
"0.78110605",
"0.7589353",
"0.749031",
"0.74657845",
"0.7387422",
"0.73763347",
"0.7267818",
"0.7267818",
"0.7267818",
"0.7243705",
"0.7227015",
"0.72231114",
"0.713038",
"0.7127564",
"0.7118518",
"0.70896465",
"0.7083726",
"0.70708406",
"0.70604295",
"0.70323956... | 0.0 | -1 |