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 |
|---|---|---|---|---|---|---|
Returns self's representation as string. | def wHJl(YKHO):
HS_I = f'INFORMATION OF OBJECT {type(YKHO)}\n'
HS_I += '--------------------\n'
HS_I += f'Name: {YKHO.name}\n'
HS_I += f'Path: {YKHO.path}\n'
HS_I += f'Type: {YKHO.type} \n'
HS_I += f'ExecTime: {YKHO.exec_time}\n'
if YKHO.date_time is None:
HS_I += 'No date available\... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def gTzM(YKHO):\n return ... | [
"0.89628625",
"0.8961602",
"0.89406544",
"0.8880429",
"0.88601524",
"0.88601524",
"0.8843841",
"0.8748147",
"0.86094433",
"0.8599834",
"0.8598615",
"0.8580235",
"0.85088044",
"0.8501855",
"0.84811246",
"0.8470184",
"0.8470184",
"0.8468653",
"0.8410766",
"0.8393124",
"0.838808... | 0.0 | -1 |
returns True if player collders with base or pipes. | def u8DF(YKHO, N89E):
oyg0 = {}
oyg0['w'] = Rulv['player'][0].get_width()
oyg0['h'] = Rulv['player'][0].get_height()
if YKHO.y + oyg0['h'] >= VEzp - 1:
YKHO.ground_collision = True
else:
P183 = a9eO.Rect(YKHO.x, YKHO.y, oyg0['w'], oyg0['h'])
M8c9 = Rulv['pipe'][0].get_width()... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wND7(YKHO, N89E):\n for bCYe in N89E:\n if YKHO.x + YKHO.width >= bCYe.x and YKHO.x <= bCYe.x + bCYe.width:\n if YKHO.y <= bCYe.hole_position - bCYe.hole_size / 2 or YKHO.y + YKHO.height >= bCYe.hole_position + bCYe.hole_size / 2:\n return True\n return False",
"def zdo... | [
"0.7098677",
"0.6799011",
"0.66760033",
"0.6626132",
"0.6582139",
"0.6389496",
"0.6354717",
"0.63387716",
"0.6255984",
"0.6255607",
"0.6244017",
"0.6222011",
"0.62032276",
"0.6177739",
"0.61326474",
"0.6129885",
"0.6124405",
"0.60894734",
"0.60894734",
"0.60894734",
"0.608316... | 0.7078596 | 1 |
Make n sublists from list. | def E0cw(mZmz, exwG):
zIio = len(mZmz)
mZmz = iter(mZmz)
Nk3Y = int(oyIN.ceil(1.0 * zIio / exwG))
if Nk3Y * (exwG - 1) == zIio:
BbOj = exwG - 1
else:
BbOj = exwG
CJwC = iter(lambda: list(Hs6x.islice(mZmz, Nk3Y)), [])
return (CJwC, BbOj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CJwC(rl9D, exwG):\n Aofo = []\n for o7uO in range(0, len(rl9D), exwG):\n Aofo.append(rl9D[o7uO:o7uO + exwG])\n return Aofo",
"def JTuS(IqQl, exwG=3):\n HOQ7 = [IqQl[WKvO:WKvO + exwG] for WKvO in range(0, len(IqQl), exwG)]\n m9db = HOQ7[-1]\n while len(m9db) < exwG:\n m9db.appe... | [
"0.8042416",
"0.8004553",
"0.78409004",
"0.78151214",
"0.7806494",
"0.76257926",
"0.7608379",
"0.7602063",
"0.7602063",
"0.7581908",
"0.749389",
"0.74802107",
"0.74651635",
"0.74649596",
"0.7440564",
"0.74325585",
"0.7428016",
"0.74162465",
"0.7411053",
"0.74098754",
"0.73902... | 0.79975253 | 2 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.7768423",
"0.76866263",
"0.7208788",
"0.6967824",
"0.6877953",
"0.68563765",
"0.67518103",
"0.67518103",
"0.67276084",
"0.6719054",
"0.6670052",
"0.65201855",
"0.65201855",
"0.65201855",
"0.65201855",
"0.65201855",
"0.65201855",
"0.6430014",
"0.6426398",
"0.63692266",
"0.6... | 0.6523184 | 14 |
Returns the page's title. | def leAC(YKHO):
return YKHO.driver.title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Upwb(YKHO):\n return YKHO.get_page_title()",
"def fyvm(YKHO):\n return YKHO._page_title",
"def fyvm(YKHO):\n return YKHO.driver.title",
"def Upwb(YKHO):\n fyvm = YKHO.driver.title\n return fyvm",
"def W0tD(YKHO):\n h35j = YKHO.soup.find(id='page-title')\n return h35j.text.strip()",... | [
"0.91230834",
"0.9038198",
"0.8638122",
"0.843534",
"0.8322703",
"0.8307781",
"0.82419395",
"0.8146626",
"0.8141279",
"0.8131605",
"0.8131605",
"0.81301016",
"0.81301016",
"0.81301016",
"0.8126535",
"0.81073874",
"0.81073874",
"0.81073874",
"0.81073874",
"0.81073874",
"0.8107... | 0.0 | -1 |
Returns the url in which this page is located. | def bD7m(YKHO):
return YKHO.driver.current_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bD7m(YKHO):\n return YKHO.get_absolute_url()",
"def MNjf(YKHO):\n return str(YKHO.driver.current_url)",
"def hKhs(YKHO):\n return YKHO._current_response.url",
"def bD7m(YKHO):\n return YKHO.urlparts.geturl()",
"def bD7m(YKHO) -> str:\n f4IJ = YKHO.mainFrame\n if not f4IJ:\n rai... | [
"0.832524",
"0.8263309",
"0.8207343",
"0.8196008",
"0.81304246",
"0.8086371",
"0.8086371",
"0.7999026",
"0.7997812",
"0.7997812",
"0.79919326",
"0.79894674",
"0.79885083",
"0.7976511",
"0.793229",
"0.7924897",
"0.7923546",
"0.792009",
"0.7917661",
"0.7878477",
"0.7875341",
... | 0.7877864 | 20 |
Trading signals using Relative Strength index (RSI) | def EFHt(jQ3Z, exwG):
Gaon = rLdf.DataFrame(index=jQ3Z.index)
H0q3 = gi43(jQ3Z, exwG)['RSI']
Gaon['compa_achat'] = oyIN.nan
Gaon['compa_vente'] = oyIN.nan
Gaon['compa_achat'][exwG:] = oyIN.where(H0q3[exwG:] > 0.3, 1, 0)
Gaon['signal_achat'] = Gaon['compa_achat'].diff()
Gaon['compa_vente'][ex... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gi43(nPrm, pQ4c):\n X_7r = sorted(nPrm.keys())\n Wfw0, VGhm = (1e-11, 1e-12)\n for G1Hx in range(1, pQ4c + 1):\n DDI8 = float(nPrm[X_7r[G1Hx]]['4. close'])\n pZ_F = float(nPrm[X_7r[G1Hx - 1]]['4. close'])\n if DDI8 > pZ_F:\n Wfw0 += DDI8 - pZ_F\n else:\n ... | [
"0.7153572",
"0.7089959",
"0.65869766",
"0.6573284",
"0.6572858",
"0.6528096",
"0.6507203",
"0.6502207",
"0.64622307",
"0.644622",
"0.6402002",
"0.634247",
"0.6310879",
"0.6310879",
"0.6308145",
"0.6304577",
"0.62967503",
"0.6243419",
"0.61899",
"0.61881083",
"0.6097654",
"... | 0.67531276 | 2 |
This method overrides the default 'str(Edge)' method creating a string as 'Source name > Destination name, duration'. | def zAg0(YKHO):
return f'{YKHO.src.getName()}->{YKHO.dest.getName()}, duration: {YKHO.duration}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def seNU(YKHO, tTpl):\n hQHm, jlSq = YKHO.edges[tTpl]\n return '[%d,%d]' % (hQHm, jlSq)",
"def zAg0(YKHO):\n return f'({YKHO.get_source()}, {YKHO.get_destination()})'",
"def UY6f(YKHO):\n hfsm = '{0} to '.format(YKHO.source_node)\n for Mkmy in range(0, len(YKHO.sink_nodes) - 1):\n YF2W = ... | [
"0.74145824",
"0.7064785",
"0.706228",
"0.6978953",
"0.69717854",
"0.69705427",
"0.69014406",
"0.68661076",
"0.6864238",
"0.68629456",
"0.6836681",
"0.6824131",
"0.6810875",
"0.6746301",
"0.6741133",
"0.67249405",
"0.67190856",
"0.6671154",
"0.66659015",
"0.6663686",
"0.66512... | 0.7314915 | 1 |
Get a data loader from the Pipeline for the current epoch and mode. A given pipeline can only provide one loader at a time. This helps to prevent issues with multithreading. ```python pipe = Pipeline(...) | def DMw_(YKHO) -> uLKX[pVAc, ZylS.data.Dataset]:
d5QZ = YKHO.ctx_lock.acquire(blocking=False)
if not d5QZ:
raise ValueError('You cannot generate a new loader from this Pipeline before closing its other loader.')
if YKHO.ctx_mode not in YKHO.data:
YKHO.ctx_lock.release()
raise KeyErro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RuZU(bySB, Crrw, Ep8u, lJCJ, Tuqy='train'):\n __n6 = smLN(bySB, Crrw, lJCJ, Tuqy)\n zQKy = pVAc(dataset=__n6, batch_size=Ep8u, shuffle=False)\n return zQKy",
"def lBI2(YKHO, nPrm, mTdV):\n __n6 = q5jJ(nPrm, YKHO.reader)\n RFg8 = TzQn(__n6.lengths(), YKHO.batch_size, shuffle=False)\n DWkG = ... | [
"0.7100053",
"0.69138813",
"0.68338645",
"0.67909986",
"0.67225224",
"0.67044985",
"0.6616646",
"0.6600325",
"0.659967",
"0.6589547",
"0.65759873",
"0.65756744",
"0.6539965",
"0.64984006",
"0.6478972",
"0.64192885",
"0.64159507",
"0.6414413",
"0.64110816",
"0.6406717",
"0.638... | 0.6278907 | 35 |
A pytest fixture that creates a redis client and cleans up the db, specifically for activity testing | def OU5R():
ojgl = OeZe.Redis(db=1)
yield ojgl
ojgl.flushdb() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ULQY(rrBf='function'):\n\n @trZe.fixture(scope=rrBf)\n def bGrB(QePW, LMs4, mxyV):\n w6GW = 0\n if hasattr(QePW.config, 'workerinput'):\n eOwu = QePW.config.workerinput\n U3lI = eOwu['workerid']\n w6GW = int(U3lI[2:])\n if w6GW >= 16:\n rai... | [
"0.7144316",
"0.71138227",
"0.70871496",
"0.69100636",
"0.68500286",
"0.67742413",
"0.6753221",
"0.6753221",
"0.67451197",
"0.6734737",
"0.67139566",
"0.6621863",
"0.6611779",
"0.657047",
"0.6565794",
"0.6511837",
"0.64965194",
"0.6464468",
"0.64636075",
"0.645595",
"0.645130... | 0.7509707 | 0 |
Find out which worker serves this item, e.g. queue name. Items are almost uniformly distributed by workers using hash of item. | def Ay_J(ZfUD):
return hash(ZfUD) % lZDZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gwjq(YKHO):\n IjTN = YKHO.get_available_workers()\n if YKHO.algo == 'random':\n Acvy = tuKI.choice(IjTN)\n YKHO.last_used_worker = Acvy\n return Acvy\n elif YKHO.algo == 'round-robin':\n if YKHO.last_used_worker == None:\n YKHO.last_used_worker = IjTN[0]\n ... | [
"0.6607423",
"0.649531",
"0.6173041",
"0.60876393",
"0.58396834",
"0.5833222",
"0.58108574",
"0.5791406",
"0.57776177",
"0.5772834",
"0.571862",
"0.56120175",
"0.55368644",
"0.5509166",
"0.54373765",
"0.5429507",
"0.5427007",
"0.5407989",
"0.53719705",
"0.5368685",
"0.5356896... | 0.80551064 | 0 |
Binds zero or more values to a nested context. Once the context is exited, the binding is removed. If `stackname` is not provided, the value is bound to the default context. If `stackname` is provided, the value is bound to that context. If `raise_on_conflicts` is True, then `ValueError` is raised if an existing bindin... | def XkiF(uBrG: typing.Optional[str]=None, YikI: bool=False, RlvR: bool=False, **B2fa):
E5BI = QpfX.ContextStack.get_contextstack(uBrG)
if YikI or RlvR:
IMu1 = set()
for mZ1z in B2fa.keys():
try:
E5BI.lookup(mZ1z)
if YikI:
raise Valu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rdNo():\n SRYB = JmfY()\n with SRYB.binding(3):\n with SRYB.binding(5):\n with SRYB.binding(7):\n assert SRYB.value == 7\n assert SRYB.value == 5\n assert SRYB.value == 3",
"def iFBA(YKHO, QpfX):\n if YKHO.variable_binds:\n QpfX.bind_variable... | [
"0.50173825",
"0.4940032",
"0.49002287",
"0.48247653",
"0.4787421",
"0.47838825",
"0.47523388",
"0.4731402",
"0.46958518",
"0.4691713",
"0.46788555",
"0.4674001",
"0.46127763",
"0.45474398",
"0.4526066",
"0.4517163",
"0.44960696",
"0.44845438",
"0.44734892",
"0.44614238",
"0.... | 0.7606014 | 0 |
Return a second element of pair. | def tKrx(q2Xo: Pair) -> tjUW:
return q2Xo(False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q8Iq(LihS):\n return LihS[1]",
"def q2Xo(WKvO, LVAh):\n\n def NMoC(d6pt):\n if d6pt == 0:\n return WKvO\n elif d6pt == 1:\n return LVAh\n return NMoC",
"def djgT(OxJJ):\n G9jH.debug('About to get an element')\n U6D_ = OxJJ[xiPs]\n G9jH.debug('Got the el... | [
"0.73325616",
"0.72724026",
"0.7229566",
"0.71876675",
"0.69989675",
"0.6882651",
"0.68803227",
"0.68613213",
"0.67648935",
"0.6763206",
"0.67571837",
"0.6756444",
"0.6648742",
"0.6616746",
"0.65999675",
"0.6518494",
"0.65149504",
"0.6482823",
"0.6461663",
"0.6426516",
"0.638... | 0.0 | -1 |
r""" Load a model from mindspore, with pretrained weights. | def SUd8(eVVj, tvqd=None, dJL_=True, **B2fa):
if not isinstance(eVVj, U78l.Cell):
bo34.error('Failed to combine the net and the parameters.')
tO9_ = 'Argument net should be a Cell, but got {}.'.format(type(eVVj))
raise TypeError(tO9_)
if tvqd is None:
if hasattr(eVVj, tvqd):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO):\n YKHO.model = uyMl('model/weights.18-0.39.hdf5')",
"def uyMl(YKHO):\n YKHO.model = t2lc.load(open(YKHO.weights_file, 'rb'))",
"def Y7RH(C3ST, eG0V, U3Fm=True):\n EUCJ = Hy7s.path.join(eG0V, 'model_weights', 'model.h5')\n QTBn = ht2j.load(EUCJ)\n C3ST.load_state_dict(QTBn, strict... | [
"0.7634005",
"0.75626314",
"0.74228907",
"0.7376433",
"0.73456436",
"0.7336394",
"0.7301409",
"0.7287557",
"0.7287557",
"0.724183",
"0.7235183",
"0.7226349",
"0.7226349",
"0.7226349",
"0.72246355",
"0.7223796",
"0.72188556",
"0.721566",
"0.72145873",
"0.72135085",
"0.7212289"... | 0.0 | -1 |
Assemble data from this detector according to where the pixels are. | def S_OC(YKHO, nPrm):
assert nPrm.shape[-3:] == (16, 256, 256)
T1N1, A4Ls = YKHO._plotting_dimensions()
lgK3 = T1N1[::-1]
yvT9 = oyIN.empty(nPrm.shape[:-3] + lgK3, dtype=nPrm.dtype)
yvT9[:] = oyIN.nan
for Jw8b in range(16):
i2V1 = nPrm[..., Jw8b, :, :]
T8ck = 'Q{:d}'.format(Jw8b ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi(YKHO):\n from neurosynth.analysis.reduce import average_within_regions\n WCdu = YKHO.dataset.image_table.ids\n slyz = average_within_regions(YKHO.dataset, YKHO.mask_img, threshold=YKHO.thresh)\n u3k0 = average_within_regions(YKHO.dataset, YKHO.mask_img, threshold=YKHO.thresh_low)\n YKHO.dat... | [
"0.63154393",
"0.6149041",
"0.6090849",
"0.6051537",
"0.6009963",
"0.6004166",
"0.59911704",
"0.5988662",
"0.59863114",
"0.5982509",
"0.59801984",
"0.59758836",
"0.5950164",
"0.5940209",
"0.5933865",
"0.5914238",
"0.5898919",
"0.5829917",
"0.57873863",
"0.5760631",
"0.5724495... | 0.0 | -1 |
Return 0 if the filename's executable bit is consistent with the presence of a shebang line and the shebang line is in the whitelist of acceptable shebang lines, and 1 otherwise. | def uYFd(Ux0P, KGo4):
with open(Ux0P, mode='r', encoding='utf8') as nUeQ:
hGN5 = nUeQ.read()
if '# noqa: shebang' in hGN5:
return 0
xY56 = Hy7s.access(Ux0P, Hy7s.X_OK)
if xY56 and KGo4:
print('ERROR: {} is executable, but should not be'.format(Ux0P))
print("note: fix via ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L2WR(zFiD):\n return zFiD.startswith('#!')",
"def CN1Q(mdek):\n try:\n with xDSY.open(mdek, encoding='latin-1') as ytgA:\n twTI = ytgA.read(2)\n except (OSError, IOError):\n return mdek\n return twTI == '#!'",
"def C6JH(YKHO, zFiD):\n return YKHO._line_counter == 1 a... | [
"0.71224546",
"0.69903606",
"0.6810888",
"0.67788845",
"0.66881007",
"0.65338343",
"0.6467387",
"0.64555705",
"0.64096373",
"0.6393082",
"0.6386801",
"0.63791966",
"0.63206875",
"0.6297469",
"0.6228155",
"0.62271696",
"0.6219301",
"0.61999345",
"0.61739624",
"0.6170773",
"0.6... | 0.79877186 | 0 |
Set up the `TdAmeritradeClient` Client. | def FCbF(YKHO) -> None:
GPtr = kwpV()
GPtr.read('config/config.ini')
zb3C = GPtr.get('main', 'client_id')
vSyi = GPtr.get('main', 'redirect_uri')
YKHO.td_credentials = Swhr(client_id=zb3C, redirect_uri=vSyi, credential_file='config/td_credentials.json')
YKHO.td_client = tS9P(credentials=YKHO.td_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pntg(YKHO):\n YKHO.client = i9zE()",
"def mGiP(YKHO):\n raise NotImplementedError",
"def bJcK(YKHO):\n B2fa = {'developer_key': YKHO._developer_key, 'oauth_storage': YKHO._oauth_storage}\n if YKHO._dsn:\n B2fa['api_url'] = YKHO._dsn\n if YKHO._oauth_credentials_path:\n B2fa['oa... | [
"0.6712329",
"0.6377244",
"0.6351844",
"0.6145731",
"0.6080136",
"0.6076193",
"0.6025631",
"0.59393644",
"0.587428",
"0.58516884",
"0.58251536",
"0.57975674",
"0.5791412",
"0.5791412",
"0.5781198",
"0.5763696",
"0.5761944",
"0.57186943",
"0.56997794",
"0.56997794",
"0.5699779... | 0.6880982 | 0 |
Create an instance and make sure it's a `Orders` object. | def YGzp(YKHO):
YKHO.assertIsInstance(YKHO.td_client.orders(), y1XM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7np(YKHO):\n YKHO.assertIsInstance(YKHO.td_client.saved_orders(), YXo2)",
"def CW30(YKHO):\n YKHO.assertIsInstance(YKHO.order, KpX3)",
"def OQ28(YKHO):\n _c1T = qcWV.now()\n T4Wy = L9Jq(customer_id=1, date=_c1T, shipped=True)\n YKHO.assertEqual(T4Wy.id, None)\n YKHO.assertEqual(T4Wy.cust... | [
"0.77282757",
"0.69488144",
"0.6697552",
"0.66710955",
"0.65238315",
"0.65045106",
"0.645742",
"0.63065356",
"0.6258186",
"0.62565076",
"0.6193996",
"0.61921805",
"0.61537707",
"0.6113751",
"0.6072887",
"0.6011924",
"0.6004057",
"0.5967821",
"0.5964125",
"0.59359163",
"0.5935... | 0.856467 | 0 |
Returns the string representation of the model using alias | def gTzM(YKHO) -> str:
return CgYo.pformat(YKHO.dict(by_alias=True)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n return YKHO.alias",
"def zAg0(YKHO):\n return YKHO.alias_name",
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def mWFP(YKHO):\n return f'{YKHO.alias}'",
"def vbQv(YKHO) -> str:\n return YKHO._str_representation_for('a... | [
"0.77665764",
"0.7684419",
"0.7211168",
"0.69702244",
"0.6875296",
"0.68531543",
"0.67518157",
"0.67518157",
"0.6728296",
"0.67206675",
"0.666829",
"0.6518271",
"0.6518271",
"0.6518271",
"0.6518271",
"0.6518271",
"0.6518271",
"0.64322966",
"0.6425343",
"0.6369365",
"0.6367516... | 0.6521663 | 12 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
Hu0p = rLdf.value_counts(jQ3Z['month'])
XYie = B877[Hu0p.idxmax()].title()
print('Most common month is {}'.format(XYie))
KBuT = rLdf.value_counts(jQ3Z['dow'])
afjJ = KBuT.idxmax()
print('Most... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
Efme = rLdf.value_counts(jQ3Z['Start Station'])
EaVT = Efme.idxmax()
print('Most common start station is {}'.format(EaVT))
cPX5 = rLdf.value_counts(jQ3Z['End Station'])
Vmr7 = cPX5.idxmax()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.7665365",
"0.76264536",
"0.7610902",
"0.75852126",
"0.7576492",
"0.7567089",
"0.75577486",
"0.7538181",
"0.75294757",
"0.7502035",
"0.74997437",
"0.7496321",
"0.74872565",
"0.74840283",
"0.7475714",
"0.7472988",
"0.7437631",
"0.74366206",
"0.7433223",
"0.7428372",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
bJiw = jQ3Z['Trip Duration'].sum()
print('Total time traveled is {} seconds, or {} minutes'.format(bJiw, bJiw / 60))
RB_u = jQ3Z['Trip Duration'].mean()
print('Mean time traveled is {} seconds, or {} minutes'.format(RB_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8252095",
"0.8146775",
"0.8097095",
"0.80126446",
"0.79879653",
"0.79831284",
"0.7978518",
"0.7970333",
"0.7965546",
"0.7963726",
"0.7961668",
"0.79615265",
"0.79524153",
"0.7949122",
"0.7944759",
"0.7938008",
"0.7923721",
"0.79203206",
"0.7919978",
"0.79188186",
"0.791769... | 0.0 | -1 |
Shuffle an iterator. This works by holding `bufsize` items back and yielding them sometime later. This is NOT 100% random, proved or anything. | def VsmN(OxJJ, vK3y=10000):
OxJJ = iter(OxJJ)
LaVg = []
try:
while True:
for YRbF in Ni9Y(tuKI.randint(1, vK3y - len(LaVg))):
LaVg.append(OxJJ.next())
tuKI.shuffle(LaVg)
for YRbF in Ni9Y(tuKI.randint(1, vK3y)):
if LaVg:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CH8T(nPrm, vK3y=1000):\n LaVg = []\n for mvm2 in nPrm:\n if len(LaVg) < vK3y:\n LaVg.append(next(nPrm))\n G1Hx = JseQ.randint(0, len(LaVg) - 1)\n mvm2, LaVg[G1Hx] = (LaVg[G1Hx], mvm2)\n yield mvm2",
"def CH8T(nPrm, vK3y=1000):\n LaVg = []\n for mvm2 in nPrm:... | [
"0.79744333",
"0.7963003",
"0.7748517",
"0.65737647",
"0.60058916",
"0.58965933",
"0.58293134",
"0.57738155",
"0.5648408",
"0.56429213",
"0.5637663",
"0.56065327",
"0.55395484",
"0.55350447",
"0.5524606",
"0.55148536",
"0.54481757",
"0.5423012",
"0.5407668",
"0.5393907",
"0.5... | 0.7673671 | 3 |
Test calling async_get_hass via different paths. | async def test_async_get_hass_can_be_called(ajET: HomeAssistant) -> None:
m5fy = V7ok.Event()
def xo13() -> bool:
"""Test if it's possible to call async_get_hass."""
try:
if fUKV.async_get_hass() is ajET:
return True
raise Exception
except xDmq:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VIzB(ajET):\n return kX7b(ajET, 'test', 'automation')",
"def VIzB(ajET):\n return kX7b(ajET, 'test', 'automation')",
"def VIzB(ajET):\n return kX7b(ajET, 'test', 'automation')",
"def VIzB(ajET):\n return kX7b(ajET, 'test', 'automation')",
"async def async_setup(ajET, GPtr) -> bool:\n ret... | [
"0.7077647",
"0.7077647",
"0.7077647",
"0.7077647",
"0.6945242",
"0.6928248",
"0.6928248",
"0.6890802",
"0.6890802",
"0.68614763",
"0.6856721",
"0.68334764",
"0.67497545",
"0.6735876",
"0.6728308",
"0.67246693",
"0.67246693",
"0.67246693",
"0.67246693",
"0.67246693",
"0.67236... | 0.7142369 | 0 |
Test a State as JSON. | def TLew() -> None:
tmKi = qcWV(1984, 12, 8, 12, 0, 0)
QTBn = fUKV.State('happy.happy', 'on', {'pig': 'dog'}, last_updated=tmKi, last_changed=tmKi, context=fUKV.Context(id='01H0D6K3RFJAYAV2093ZW30PCW'))
aEqx = '{"entity_id":"happy.happy","state":"on","attributes":{"pig":"dog"},"last_changed":"1984-12-08T12:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gp_y(YKHO):\n YKHO.assertEqual('to_dict' in dir(YKHO.state), True)",
"def Gp_y(YKHO):\n YKHO.assertEqual('to_dict' in dir(YKHO.state), True)",
"def gb_j(YKHO):\n xDh8 = Zy4R({nC76.incident_number.value: 1, nC76.incident_state.value: nC76.state_on_scene.value}, number=1, validate=False)\n YKHO.a... | [
"0.6890753",
"0.6890753",
"0.6786047",
"0.6730235",
"0.6730235",
"0.6727921",
"0.6650306",
"0.6580752",
"0.6451194",
"0.6444785",
"0.64354545",
"0.6432946",
"0.6419117",
"0.638322",
"0.6372852",
"0.6327764",
"0.6323441",
"0.6299381",
"0.62971663",
"0.6280912",
"0.62547517",
... | 0.71600187 | 0 |
Get the full name of an object in memory. | def flGP(YEnM) -> str:
i8q0 = type(YEnM)
mWFP = i8q0.__name__
if (yR_P := getattr(i8q0, '__module__', None)):
return f'{yR_P}.{mWFP}'
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hRqW(YEnM):\n if hasattr(YEnM, '__name__'):\n return nOOm(YEnM.__name__, QCJc)\n return nOOm(str(YEnM), QCJc)",
"def mWFP(YEnM):\n return type(YEnM).__name__",
"def B_QI(YKHO):\n return YKHO.obj_name",
"def mWFP(YKHO):\n return YKHO._obj.name",
"def mWFP(YEnM):\n return getattr... | [
"0.8158748",
"0.77044755",
"0.76686716",
"0.76677805",
"0.7661225",
"0.76525205",
"0.75754607",
"0.75748885",
"0.7568351",
"0.75460416",
"0.742152",
"0.74094886",
"0.74094886",
"0.7348092",
"0.7308361",
"0.7308361",
"0.7308361",
"0.7308361",
"0.7308361",
"0.7267531",
"0.72612... | 0.7434926 | 10 |
Gets the id of this Plan. An identifier used to correlate this plan in future requests to the broker. This MUST be globally unique within a platform marketplace. MUST be a nonempty string. Using a GUID is RECOMMENDED. | def id(YKHO) -> str:
return YKHO._id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wERM(YKHO) -> str:\n return qe4Y.get(YKHO, 'plan_id')",
"def wERM(YKHO) -> str:\n return qe4Y.get(YKHO, 'plan_id')",
"def wERM(YKHO) -> str:\n return qe4Y.get(YKHO, 'plan_id')",
"def wERM(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'plan_id')",
"def id(YKHO):\n return YKHO._id",
"def u... | [
"0.76140636",
"0.76140636",
"0.76140636",
"0.72315997",
"0.6964676",
"0.69559985",
"0.69421226",
"0.6934949",
"0.6934949",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370867",
"0.68370456",
... | 0.0 | -1 |
Gets the name of this Plan. The CLIfriendly name of the plan. MUST be unique within the service. All lowercase, no spaces. MUST be a nonempty string. | def mWFP(YKHO) -> str:
return YKHO._name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BGj5(YKHO) -> str:\n return qe4Y.get(YKHO, 'plan_name')",
"def BE2C(YKHO) -> str:\n return qe4Y.get(YKHO, 'plan_display_name')",
"def WM8E(YKHO):\n nPrm = fT9b.objects(company_id=YKHO.company_id)\n if nPrm:\n return nPrm\n return None",
"def BE2C(YKHO) -> h8nf[str]:\n return qe4Y... | [
"0.88716453",
"0.836111",
"0.8144526",
"0.7965616",
"0.764789",
"0.75479466",
"0.7434774",
"0.73871607",
"0.7250772",
"0.72246695",
"0.70380944",
"0.69284827",
"0.6911817",
"0.6911817",
"0.6911817",
"0.6911817",
"0.6911817",
"0.689459",
"0.68701327",
"0.68678075",
"0.68678075... | 0.0 | -1 |
Gets the description of this Plan. A short description of the plan. MUST be a nonempty string. | def JBZA(YKHO) -> str:
return YKHO._description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jINW(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'report_plan_description')",
"def qUyJ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'plan')",
"def JBZA(YKHO):\n if YKHO._description is None:\n return YKHO._name\n else:\n return YKHO._description",
"def JBZA(YKHO):\n if... | [
"0.80970615",
"0.7438911",
"0.74274737",
"0.74176675",
"0.74176675",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",
"0.73944473",... | 0.7272247 | 94 |
Sets the description of this Plan. A short description of the plan. MUST be a nonempty string. | def JBZA(YKHO, JBZA: str):
if JBZA is None:
raise ValueError('Invalid value for `description`, must not be `None`')
YKHO._description = JBZA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def AqxA(YKHO, JBZA):\n YKHO.description = JBZA",
"def JBZA(YKHO, JBZA):\n YKHO._description = JBZA",
"def JBZA(YKHO, JBZA: str):\n YK... | [
"0.790535",
"0.790535",
"0.790535",
"0.790535",
"0.7799079",
"0.7784607",
"0.77783275",
"0.77783275",
"0.77783275",
"0.77783275",
"0.77783275",
"0.77726555",
"0.77611893",
"0.77611893",
"0.77611893",
"0.77611893",
"0.77611893",
"0.77611893",
"0.77611893",
"0.77611893",
"0.776... | 0.0 | -1 |
Gets the free of this Plan. When false, service instances of this plan have a cost. The default is true. | def ftQ2(YKHO) -> bool:
return YKHO._free | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gt0w(YKHO):\n return YKHO._name == 'free'",
"def gt0w(YKHO):\n return YKHO._is_free",
"def tQiv(YKHO):\n if YKHO.customerserved == None:\n return True",
"def gt0w(YKHO) -> bool:\n return YKHO.ship is None",
"def yHm1(YKHO, Q6kx: Node):\n return Q6kx.free_to_use",
"def pOQA(YKHO)... | [
"0.6983332",
"0.68636227",
"0.6467902",
"0.62829214",
"0.5978461",
"0.5956307",
"0.5949424",
"0.5946638",
"0.58994114",
"0.5812597",
"0.5774198",
"0.57523406",
"0.5744412",
"0.57357824",
"0.5726536",
"0.5713163",
"0.56854355",
"0.56791115",
"0.56692445",
"0.5663902",
"0.56338... | 0.62756515 | 4 |
Sets the free of this Plan. When false, service instances of this plan have a cost. The default is true. | def ftQ2(YKHO, ftQ2: bool):
YKHO._free = ftQ2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IEcv(YKHO):\n YKHO.free = True",
"def on4T(YKHO):\n YKHO._set('shipping', 'method_code', '__free__')",
"def gt0w(YKHO):\n return YKHO._name == 'free'",
"def iHBh(YKHO, iHBh):\n YKHO._units_free = iHBh",
"def gt0w(YKHO):\n return YKHO._is_free",
"def BWBX(YKHO, bool):\n if bool is Tr... | [
"0.7275027",
"0.6494522",
"0.6454611",
"0.60796064",
"0.5994019",
"0.5862144",
"0.585918",
"0.57694805",
"0.57651556",
"0.57542866",
"0.57168293",
"0.56863624",
"0.5659583",
"0.56412804",
"0.55927736",
"0.5527179",
"0.55240166",
"0.5474422",
"0.54653597",
"0.5431024",
"0.5421... | 0.70384 | 1 |
Gets the bindable of this Plan. Specifies whether service instances of the service plan can be bound to applications. This field is OPTIONAL. If specified, this takes precedence over the bindable attribute of the service. If not specified, the default is derived from the service. | def UfSM(YKHO) -> bool:
return YKHO._bindable | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UfSM(YKHO, UfSM: bool):\n YKHO._bindable = UfSM",
"def DPm_(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'bind_only')",
"def yZaC(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'service_bindings')",
"def uqi2(YKHO):\n return YKHO.BINDING_DRIVERS",
"def... | [
"0.63641316",
"0.61987835",
"0.60513264",
"0.5675154",
"0.5486227",
"0.54654336",
"0.5457823",
"0.5413149",
"0.5413149",
"0.5413149",
"0.5413149",
"0.53789556",
"0.5369091",
"0.5275373",
"0.5258155",
"0.5258155",
"0.5258155",
"0.5258155",
"0.51375794",
"0.5133354",
"0.5114695... | 0.697259 | 0 |
Loads the model object from the file at model_filepath key in config dict | def uyMl(Kz8N):
uqvc = Kz8N['model_filepath']
if __name__ == '__main__':
SkYi = uqvc
else:
SkYi = rKSA.file(uqvc).getFile().name
GRku(SkYi)
Sjf9 = k6eJ.load(SkYi)
return Sjf9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, VqRE):\n print('Loading model', VqRE)\n YKHO.model = t2lc.load(open(VqRE, 'rb'))",
"def tyeH(YKHO, VqRE):\n uyMl(VqRE, YKHO)",
"def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)",
"def uyMl(Ux0P):\n pass",
"def uyMl(YKHO, WJHQ):\n raise NotImplementedError",
"def uyMl(Ux0P)... | [
"0.8003713",
"0.79353654",
"0.78803885",
"0.7821255",
"0.77290976",
"0.7727811",
"0.77178013",
"0.7655489",
"0.76402634",
"0.7628092",
"0.76220965",
"0.7531104",
"0.7524048",
"0.7499661",
"0.7466175",
"0.74481565",
"0.7429898",
"0.7429898",
"0.742212",
"0.73958445",
"0.739581... | 0.0 | -1 |
Returns the point of intersection of two rays. (x1, y1) and (x2, y2) are the locations of end points of two rays respectively. k1 and k2 are the slopes of two rays. | def nyOy(o4D3, si3g, LEev, ajwV, skBL, Xyq7):
jzdc = oyIN.array([[LEev, -1], [Xyq7, -1]])
Fg_i = oyIN.array([LEev * o4D3 - si3g, Xyq7 * ajwV - skBL])
return eGi5(jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OuYx(j93S, EBgd, Nqp_, HpuQ):\n kYGz = EBgd[1] - j93S * EBgd[0]\n ftz7 = HpuQ[1] - Nqp_ * HpuQ[0]\n WKvO = (kYGz - ftz7) / (Nqp_ - j93S)\n LVAh = j93S * WKvO + kYGz\n return (WKvO, LVAh)",
"def XMlP(cnXz, Ijzj):\n if cnXz.slope - Ijzj.slope == 0:\n return None\n Jity = (Ijzj.inter... | [
"0.7260474",
"0.7250444",
"0.7240456",
"0.718194",
"0.7065502",
"0.7013777",
"0.7004658",
"0.69724834",
"0.6967774",
"0.6948447",
"0.69301325",
"0.6922634",
"0.6910678",
"0.6910338",
"0.68161076",
"0.68131495",
"0.6796201",
"0.679498",
"0.679498",
"0.679498",
"0.6777503",
"... | 0.81012785 | 0 |
Assumes that original_data_df is a DataFrame with dates as index and date_time_index is a DatetimeIndex. Select the rows from original_data_df whose index is closest (but no look ahead bias) to the date_time_index. | def BBM0(pgDK: pd.DataFrame, WXKt: pd.DatetimeIndex) -> rLdf.DataFrame:
eCh4 = pgDK.reset_index()
ma1E = list(eCh4)[0]
KBRL = rLdf.DataFrame(data=WXKt, columns=[ma1E])
yq2t = rLdf.merge_asof(KBRL, eCh4, on=ma1E)
yq2t.set_index(WXKt, inplace=True)
yq2t.drop([ma1E], axis=1, inplace=True)
retur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r7TK(rdlD: DataFrame, W8bp: DataFrame, wzpZ: timedelta) -> hxoQ:\n qcWV = rdlD['datetime']\n W8bp['temporal_distance'] = (W8bp['datetime'] - qcWV).abs()\n iku2 = W8bp[(W8bp['temporal_distance'] < wzpZ) & (W8bp['temporal_distance'] > -wzpZ)]\n if iku2.shape[0] > 0:\n iku2['target_id'] = rdlD[... | [
"0.6284115",
"0.62073296",
"0.55536836",
"0.55418015",
"0.5497696",
"0.5497612",
"0.5492979",
"0.5489142",
"0.5471317",
"0.54092896",
"0.5383564",
"0.5367185",
"0.53595644",
"0.5354238",
"0.534749",
"0.53312296",
"0.53081244",
"0.52897227",
"0.5277363",
"0.5230715",
"0.517198... | 0.7521175 | 0 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew):
if YKHO.hash[H5ew % YKHO.bucket] and YKHO.hash[H5ew % YKHO.bucket][H5ew // YKHO.bucket] != None:
return YKHO.hash[H5ew % YKHO.bucket][H5ew // YKHO.bucket]
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.78472656",
"0.75723326",
"0.7530791",
"0.746818",
"0.74612",
"0.7426853",
"0.7400674",
"0.7394499",
"0.73412204",
"0.73071384",
"0.7251794",
"0.7241336",
"0.7225238",
"0.71816325",
"0.7170687",
"0.7168327",
"0.7139852",
"0.7085259",
"0.7037432",
"0.6957842",
"0.6833843",
... | 0.6511877 | 32 |
Helper method that reads a .txt file and returns the text body | def Nwr9(xtX7, nUeQ):
nPrm = ''
if Hy7s.path.isfile(Hy7s.path.join(xtX7, nUeQ + '.txt')):
Ux0P = Hy7s.path.join(xtX7, nUeQ)
with open(Ux0P + '.txt', 'r', encoding='utf8') as nUeQ:
nPrm = nUeQ.read().replace('\n', ' ')
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1uR(pxgt):\n if pxgt not in kZw_.data.texts:\n RKD7('No text file ' + pxgt + ' found.', 'WARNING')\n return ''\n return '\\n'.join([vC9B.body for vC9B in kZw_.data.texts[pxgt].lines])",
"def Nwr9(YKHO, nUeQ):\n with open(nUeQ) as eHNT:\n l5Ny = eHNT.read()\n return l5Ny",
... | [
"0.75668734",
"0.75173575",
"0.7512219",
"0.7504254",
"0.749569",
"0.74923563",
"0.7485025",
"0.74258655",
"0.7418658",
"0.73488826",
"0.72942305",
"0.72942305",
"0.72709924",
"0.7265409",
"0.72482836",
"0.72218215",
"0.72181046",
"0.7183789",
"0.71759516",
"0.716839",
"0.716... | 0.6686049 | 98 |
Return ``True`` if the given component name is in the attribute, either as part of a hierarchical name or within a relations otherwise ``False``. | def BIn7(UksD, hkS8):
if isinstance(hkS8, tuple):
for _pUq in hkS8:
if BIn7(UksD, _pUq) is True:
return True
return hkS8 == UksD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4Ok(YKHO, mWFP, koMu):\n N06i = mWFP.find('.')\n return N06i and mWFP.startswith(koMu + '.')",
"def N3YT(YKHO, mWFP):\n return mWFP.endswith(YKHO.apex)",
"def xc3U(YKHO, mWFP):\n if not '.' in mWFP:\n return mWFP in YKHO.__data\n RYsB = mWFP.split('.')\n jvSB = YKHO.__data\n fo... | [
"0.6452182",
"0.6394515",
"0.632652",
"0.6275222",
"0.6261962",
"0.6229489",
"0.60757077",
"0.6059231",
"0.60565615",
"0.60545224",
"0.6053808",
"0.6007388",
"0.59715414",
"0.5958837",
"0.59113485",
"0.5897499",
"0.5891211",
"0.58405197",
"0.5840504",
"0.5814832",
"0.58089674... | 0.6740318 | 0 |
checks if the car given can be placed on the board. | def rGie(YKHO, _6NH):
fRFq = _6NH.car_coordinates()
for AU8u in fRFq:
if not (0 <= AU8u[EcVT] < P5Bq and 0 <= AU8u[fuBA] < P5Bq):
return False
if YKHO.__board[AU8u[fuBA]][AU8u[EcVT]] != KAvf:
return False
if not (isinstance(_6NH.get_name(), str) and _6NH.get_name() in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bGhc(YKHO):\n if YKHO.position[0] < 13 or YKHO.position[1] < 13 or YKHO.position[0] > 829 or (YKHO.position[1] > 567):\n YKHO.hit = True\n return True\n if YKHO.position[1] > 42 and YKHO.mainCar.position[1] < 276 or (YKHO.position[1] > 305 and YKHO.mainCar.position[1] < 539):\n if YK... | [
"0.7106348",
"0.7095909",
"0.70721704",
"0.7065554",
"0.6967242",
"0.68194324",
"0.68143886",
"0.67427164",
"0.6626688",
"0.6569953",
"0.65398705",
"0.6520896",
"0.65035224",
"0.6417347",
"0.6393642",
"0.63882995",
"0.6362742",
"0.6351389",
"0.6328573",
"0.62905467",
"0.62623... | 0.8337656 | 0 |
Model defination for the MaskRCNN model based on ResNet. | def nrOS(YKHO, bySB, Crrw, LT6S):
if not LT6S:
return (None, YKHO.predict(bySB, Crrw))
else:
return (YKHO.train(bySB, Crrw), None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n GPtr = Fhm6()\n Ey8h = Hy7s.path.join(Hy7s.getcwd(), 'Mask_RCNN', 'mask_rcnn_coco.h5')\n YKHO.model = aq_r.MaskRCNN(mode='inference', config=GPtr, model_dir='./logs')\n YKHO.model.load_weights(Ey8h, by_name=True)",
"def FIMM(YKHO, zi3C: tuple=(224, 224, 3), wjbX: int=64, hr1G: float... | [
"0.7195952",
"0.6818102",
"0.67997277",
"0.6756083",
"0.67105514",
"0.67105514",
"0.6701979",
"0.6698285",
"0.6692641",
"0.66133016",
"0.6590539",
"0.6583176",
"0.6583176",
"0.65701604",
"0.6563081",
"0.65594697",
"0.6554396",
"0.65392524",
"0.6534752",
"0.65188736",
"0.65038... | 0.0 | -1 |
Convert a variant from the extractor module to a ProteinVar. | def Alzo(j93S, Nqp_, SRYB, CtXk=[], Mdp9=1):
if j93S == '?' or Nqp_ == '?':
return [No3A(type='unknown', weight_position=Mdp9)]
if SRYB.reference_start == SRYB.reference_end:
EImu = SRYB.sample_end - SRYB.sample_start
pTXs, CRe8 = rKSe(Nqp_, SRYB.sample_start + 1, SRYB.sample_end)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XYgD(v0pW='1', oeNL='1', bf9h='A', Zc6P='G', ICn2='ADK'):\n TpbX = '_'.join([v0pW, oeNL, bf9h, Zc6P])\n pPTc = {'CHROM': v0pW, 'POS': oeNL, 'INFO': 'Annotation={0}'.format(ICn2), 'vep_info': {'A': [{'Gene': ICn2, 'Consequence': 'transcript_ablation'}]}, 'variant_id': TpbX}\n return pPTc",
"def Qw8_(... | [
"0.5840249",
"0.54267955",
"0.5335209",
"0.5324151",
"0.5324151",
"0.52737814",
"0.52535325",
"0.52474743",
"0.5220146",
"0.51636815",
"0.51298743",
"0.5097008",
"0.50848585",
"0.50745046",
"0.50745046",
"0.50698054",
"0.5024712",
"0.5012119",
"0.5011296",
"0.4940082",
"0.492... | 0.48805666 | 22 |
Calculates percentage of population unserved in each administrative area. | def nhfz(YKHO, SGPK, yEHD):
lhKE = SGPK[0].valueAsText
mLGw = SGPK[1].valueAsText
TIo0 = SGPK[2].valueAsText
sDVW = Ki1S().keys()[0]
HMVi.dict_population_sources = Ki1S()
ZHfW, EqBn = ZyFD(lhKE)
e48A = gnqL(EqBn)
_3NM = NUIB(e48A)
yKcO = ITS7.clock()
Vp4K = ZO_c.MakeFeatureLayer_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def elP9(YKHO, Ylv3, Xj5f):\n yKcO = ITS7.clock()\n g_Vz = dict()\n kp21 = ZO_c.gp.ZonalStatisticsAsTable_sa(Ylv3, 'Name', Xj5f, 'in_memory\\\\pop', '', 'SUM')\n with ZO_c.da.SearchCursor(kp21, ['Name', 'SUM']) as N1p7:\n for rdlD in N1p7:\n g_Vz[rdlD[0]] = rdlD[1]\n ZO_c.AddMessag... | [
"0.6668088",
"0.58394146",
"0.5674042",
"0.5663613",
"0.5656417",
"0.56438226",
"0.55905",
"0.5570515",
"0.55652076",
"0.5550263",
"0.5532599",
"0.54658294",
"0.542205",
"0.53856725",
"0.53851324",
"0.53718036",
"0.5349437",
"0.5342848",
"0.5337808",
"0.5337081",
"0.5332716",... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.0 | -1 |
Estimates access to safe water by administrative area. | def FIMM(YKHO):
YKHO.label = 'Service Overview'
YKHO.description = 'Estimates access to safe water by ' + 'administrative area.'
YKHO.canRunInBackground = True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EH2f(YKHO):\n return YKHO._area_water",
"def Lhxs(YKHO):\n return YKHO._water_area",
"def v5y9(YKHO):\n kcwm, BWz1 = oyIN.unique(YKHO.world_map, return_counts=True)\n i5rG = dict(zip(kcwm, BWz1))\n UsU7 = i5rG.get('H', 0)\n QHGo = YKHO.potential_waste_area - UsU7\n return QHGo",
"def... | [
"0.63519794",
"0.6185255",
"0.603458",
"0.603458",
"0.5957896",
"0.56513727",
"0.55700916",
"0.55689526",
"0.5454787",
"0.54401356",
"0.54195416",
"0.5319345",
"0.5299744",
"0.52733105",
"0.52611375",
"0.52467024",
"0.52467024",
"0.5234555",
"0.52326405",
"0.52281785",
"0.521... | 0.0 | -1 |
Calculates percentage of population unserved in each administrative area. | def nhfz(YKHO, SGPK, yEHD):
vxW9 = SGPK[0].valueAsText
TIo0 = SGPK[1].valueAsText
sDVW = Ki1S().keys()[0]
HMVi.dict_population_sources = Ki1S()
ZHfW, EqBn = ZyFD(vxW9)
e48A = gnqL(EqBn)
_3NM = NUIB(e48A)
yKcO = ITS7.clock()
Vp4K = ZO_c.MakeFeatureLayer_management(_3NM, 'Functioning',... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def elP9(YKHO, Ylv3, Xj5f):\n yKcO = ITS7.clock()\n g_Vz = dict()\n kp21 = ZO_c.gp.ZonalStatisticsAsTable_sa(Ylv3, 'Name', Xj5f, 'in_memory\\\\pop', '', 'SUM')\n with ZO_c.da.SearchCursor(kp21, ['Name', 'SUM']) as N1p7:\n for rdlD in N1p7:\n g_Vz[rdlD[0]] = rdlD[1]\n ZO_c.AddMessag... | [
"0.6668664",
"0.5839155",
"0.56743354",
"0.56640565",
"0.565617",
"0.5644306",
"0.5589657",
"0.55702996",
"0.5565565",
"0.5550086",
"0.55336434",
"0.5465807",
"0.5422712",
"0.53869104",
"0.53859884",
"0.5372059",
"0.534922",
"0.5343472",
"0.5338272",
"0.5337467",
"0.5332279",... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934892",
"0.67108226",
"0.67077166",
"0.66976327",
"0.66976327",
"0.66976327",
"0.66976327",
"0.66964275",
"0.66964275",
"0.66964275",
"0.66926295",
"0.6667634",
"0.66608125",
"0.6470319",
"0.6442931",
"0.639529",
"0.639529",
"0.639529",
"0.639529",
"0.639529",
"0.639529"... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.0 | -1 |
Set whether tool is licensed to execute. | def ku2f(YKHO):
if ZO_c.CheckExtension('Spatial') == 'Available':
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def riqM(YKHO):\n pass",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Available':\n return True\n else:\n return False\n except:\n return False\n return True",
"def ku2f(YKHO):\n try:\n if ZO_c.CheckExtension('Spatial') == 'Ava... | [
"0.6934165",
"0.6712352",
"0.6709214",
"0.6699145",
"0.6699145",
"0.6699145",
"0.6699145",
"0.66979116",
"0.66979116",
"0.66979116",
"0.6694129",
"0.6668929",
"0.6662326",
"0.64707255",
"0.64440554",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.63952094",
"0.639... | 0.0 | -1 |
Sets the version of this Version. | def DpZH(YKHO, DpZH):
YKHO._version = DpZH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version.value = DpZH",
"def DpZH(YKHO, DpZH):\n YKHO._version = DpZ... | [
"0.8730095",
"0.871925",
"0.87022656",
"0.8679339",
"0.8344522",
"0.82383585",
"0.82383585",
"0.81777775",
"0.81777775",
"0.81582433",
"0.8150186",
"0.8084147",
"0.8084147",
"0.8084147",
"0.8082304",
"0.80111265",
"0.79386246",
"0.7893357",
"0.78905547",
"0.78625876",
"0.7836... | 0.82741886 | 14 |
Sets the revision of this Version. | def XkTm(YKHO, XkTm):
YKHO._revision = XkTm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VUpC(YKHO, o5Dc):\n YKHO._revision = o5Dc",
"def XkTm(YKHO, XkTm: int):\n YKHO._revision = XkTm",
"def XkTm(YKHO, XkTm: str):\n YKHO._revision = XkTm",
"def XkTm(YKHO, BWXx: int):\n YKHO._properties['revision'] = BWXx",
"def XkTm(YKHO, XkTm):\n if XkTm is None:\n raise ValueError(... | [
"0.8584595",
"0.83528525",
"0.8248898",
"0.7952109",
"0.7802905",
"0.723632",
"0.7192657",
"0.71647084",
"0.7131358",
"0.7047144",
"0.7047144",
"0.6770561",
"0.65898454",
"0.6589597",
"0.6556107",
"0.6498872",
"0.6308707",
"0.627332",
"0.62510425",
"0.6198325",
"0.6190892",
... | 0.823728 | 3 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Adds a Sprite to the level to be calculated in the gamespace. | def H2v5(YKHO, Jqc7: Sprite):
if isinstance(Jqc7, b1Zn):
Jqc7.batch = YKHO._batch
YKHO.collidables.append(Jqc7)
if isinstance(Jqc7, X5UH):
YKHO.physical_objects.append(Jqc7)
if isinstance(Jqc7, mVZ4):
YKHO.players.append(Jqc7)
elif isinstance(Jqc7,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gfOy(YKHO, Jqc7):\n YKHO.sprites += [Jqc7]",
"def vfxv(YKHO, WKvO, LVAh, ZfUD):\n if ZfUD.visible:\n Ilxn = ((WKvO, LVAh), ZfUD.surface)\n YKHO.lst_sprites.append(Ilxn, ZfUD.layer)",
"def H2v5(YKHO, Jqc7: Sprite, e81N: int):\n Jqc7.speed = YKHO.speed\n Jqc7.set(e81N, YKHO.position... | [
"0.7786752",
"0.7159622",
"0.7049269",
"0.687144",
"0.6839198",
"0.6837379",
"0.682122",
"0.6744083",
"0.6732605",
"0.6653627",
"0.6635155",
"0.663496",
"0.6631244",
"0.65886587",
"0.6429011",
"0.63870645",
"0.6220744",
"0.6199979",
"0.6093937",
"0.605511",
"0.60404027",
"0... | 0.64168036 | 15 |
Determines output length of a convolution given input length. | def imq2(zk33, QJWG, dvgN, _0fC, ivFb=1):
if zk33 is None:
return None
assert dvgN in {'same', 'valid', 'full', 'causal'}
txET = QJWG + (QJWG - 1) * (ivFb - 1)
if dvgN in ['same', 'causal']:
UUD3 = zk33
elif dvgN == 'valid':
UUD3 = zk33 - txET + 1
elif dvgN == 'full':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UZnS(zk33, QJWG, gcfy, _0fC, ivFb=1):\n if zk33 is None:\n return None\n assert gcfy in {'same', 'valid'}\n txET = QJWG + (QJWG - 1) * (ivFb - 1)\n if gcfy == 'same':\n UUD3 = zk33\n elif gcfy == 'valid':\n UUD3 = zk33 - txET + 1\n return (UUD3 + _0fC - 1) // _0fC",
"de... | [
"0.81399393",
"0.8133421",
"0.80097514",
"0.8004172",
"0.7926656",
"0.78795385",
"0.7840828",
"0.7829322",
"0.7561639",
"0.7370216",
"0.7027363",
"0.68248284",
"0.67579466",
"0.6716161",
"0.6705633",
"0.6691066",
"0.6665935",
"0.66021687",
"0.6494143",
"0.6489043",
"0.6470792... | 0.7927494 | 4 |
Returns the User model that is active in this project. | def egNl():
try:
return QDl1.get_model(gCuF.AUTH_USER_MODEL)
except ValueError:
raise rqaQ("AUTH_USER_MODEL must be of the form 'app_label.model_name'")
except LookupError:
raise rqaQ("AUTH_USER_MODEL refers to model '%s' that has not been installed" % gCuF.AUTH_USER_MODEL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def egNl(YKHO):\n return egNl()",
"def vCWU(Emd4):\n return mv1M",
"def YrZb(YKHO):\n return YKHO.__user_model",
"def TKWP(YKHO):\n YKHO.assert_active()\n return YKHO._state.user",
"def vCWU(YKHO):\n return YKHO.auth.store.user_model",
"def vCWU(YKHO):\n return YKHO.auth.store.user_m... | [
"0.8067029",
"0.77632517",
"0.7673435",
"0.764427",
"0.7588742",
"0.7588742",
"0.7588742",
"0.7588742",
"0.74277645",
"0.74277645",
"0.74277174",
"0.74277174",
"0.74277174",
"0.74167943",
"0.74167943",
"0.7372528",
"0.7341826",
"0.722174",
"0.7184379",
"0.7172528",
"0.7138338... | 0.66504693 | 53 |
Channelwise global contrast normalizatin was applied to normalize image color | def qONb(VXjJ):
WKvO = (VXjJ[:, :, 0] - VXjJ[:, :, 0].reshape(-1).mean()) / VXjJ[:, :, 0].reshape(-1).std()
LVAh = (VXjJ[:, :, 1] - VXjJ[:, :, 1].reshape(-1).mean()) / VXjJ[:, :, 1].reshape(-1).std()
epBp = (VXjJ[:, :, 2] - VXjJ[:, :, 2].reshape(-1).mean()) / VXjJ[:, :, 2].reshape(-1).std()
UqpO = oyIN.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJz2(EcVT):\n EcVT = EcVT.reshape((EcVT.shape[0], -1))\n EcVT -= EcVT.mean(axis=1)[:, None]\n qQqn = EcVT.std(axis=1)\n ymkl = (2 * qQqn.min() + qQqn.mean()) / 3\n EcVT /= oyIN.maximum(ymkl, qQqn).reshape((EcVT.shape[0], 1))\n return EcVT",
"def PHa8(EcVT, KnxT, yOrK):\n f65o, xMux, A3Vt... | [
"0.7324822",
"0.7097831",
"0.691599",
"0.68743074",
"0.684631",
"0.6827291",
"0.67813665",
"0.6772193",
"0.67719185",
"0.6765907",
"0.6745143",
"0.6725407",
"0.6725407",
"0.6724712",
"0.67225945",
"0.6720964",
"0.670743",
"0.6669981",
"0.66360724",
"0.6619221",
"0.66087276",
... | 0.62449086 | 60 |
Function which calls the pipelines for detecting lane line in an image | def O2Qn():
ckRy = SC2F(Hy7s.path.join('data', 'images', '*.jpg'))
for pmON in ckRy:
LNo8 = SnjK.imread(pmON)
_aP5 = zg3L(LNo8)
QrM1.imshow(_aP5)
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H0yZ(x_oc):\n H2v2, TVTK, Qi3c = x_oc.shape\n ITiw = LnPY.grayscale(x_oc)\n KDkY = LnPY.gaussian_blur(ITiw, idx7.GAUSSIAN_BLUR_KERNEL_SIZE)\n mC4V = LnPY.canny(KDkY, idx7.CANNY_LOW_THRESHOLD, idx7.CANNY_HIGH_THRESHOLD)\n KSv_ = LnPY.region_of_interest(mC4V, oyIN.array([[(idx7.ROI_BOTTOM_LEFT_X, ... | [
"0.82297957",
"0.8147209",
"0.75170505",
"0.75126725",
"0.75120014",
"0.75053775",
"0.7502724",
"0.74798",
"0.7445648",
"0.7409397",
"0.73276454",
"0.72516805",
"0.71656245",
"0.71145433",
"0.7030858",
"0.6968747",
"0.6954989",
"0.69330555",
"0.6902115",
"0.6897309",
"0.68852... | 0.7210299 | 12 |
Sum a list of numarray objects. | def mbku(YKHO, hCOe):
hC2V = oyIN.zeros(hCOe[0].shape, dtype=hCOe[0].dtype)
for LNo8 in hCOe:
hC2V += LNo8
return hC2V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hU6H(W1Td, *mGsV):\n Aofo = oyIN.zeros(mGsV[0].shape, dtype=oyIN.float32)\n BmEm = oyIN.empty(Aofo.shape, dtype=oyIN.bool)\n BmEm[:] = False\n for qw7D in mGsV:\n rdUB = ~oyIN.isclose(qw7D, W1Td)\n BmEm |= rdUB\n Aofo[rdUB] += qw7D[rdUB]\n Aofo[~BmEm] = W1Td\n return Aofo... | [
"0.6983192",
"0.6939414",
"0.6925427",
"0.6799837",
"0.675245",
"0.6713486",
"0.6709129",
"0.67029166",
"0.66698015",
"0.664225",
"0.6628721",
"0.66098255",
"0.66030157",
"0.65912277",
"0.6586802",
"0.65699935",
"0.6529821",
"0.6526253",
"0.65150017",
"0.64535254",
"0.6438986... | 0.7411337 | 0 |
Gets the vegan of this BrandedFoodObjectDietLabels. | def Bplr(YKHO) -> oGmD:
return YKHO._vegan | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bplr(YKHO, Bplr: BrandedFoodObjectDietLabelsVegan):\n YKHO._vegan = Bplr",
"def CShO(YKHO) -> iPgy:\n return YKHO._vegetarian",
"def Ty9i(YKHO):\n return YKHO.veto",
"def Ty9i(YKHO):\n return YKHO.veto",
"def dqFy(YKHO):\n return YKHO.diet",
"def LZVn(YKHO):\n BWXx = YKHO.data['_sou... | [
"0.74447525",
"0.73733914",
"0.6126256",
"0.6126256",
"0.6054349",
"0.596917",
"0.59496284",
"0.5940826",
"0.59064806",
"0.5893553",
"0.58821565",
"0.58025455",
"0.58025455",
"0.58025455",
"0.5800712",
"0.57313055",
"0.57219374",
"0.5684075",
"0.56752646",
"0.5668819",
"0.566... | 0.9212992 | 0 |
Gets the vegetarian of this BrandedFoodObjectDietLabels. | def CShO(YKHO) -> iPgy:
return YKHO._vegetarian | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bplr(YKHO) -> oGmD:\n return YKHO._vegan",
"def CShO(YKHO, CShO: BrandedFoodObjectDietLabelsVegetarian):\n YKHO._vegetarian = CShO",
"def dqFy(YKHO):\n return YKHO.diet",
"def xlfn(YKHO):\n return YKHO.data.food",
"def Bplr(YKHO, Bplr: BrandedFoodObjectDietLabelsVegan):\n YKHO._vegan = B... | [
"0.7816483",
"0.704188",
"0.5917522",
"0.5893856",
"0.5699702",
"0.558004",
"0.5472972",
"0.5458647",
"0.5458647",
"0.5458647",
"0.535875",
"0.5328663",
"0.53167206",
"0.52419746",
"0.5220224",
"0.51675266",
"0.51231086",
"0.50253534",
"0.4999375",
"0.49903873",
"0.49759707",... | 0.9132459 | 0 |
Our constructor class that instantiates movie rental shop. | def FIMM(YKHO):
YKHO.stock = {'the godfather': 10, 'jaws': 9, 'alien': 4, 'fury': 6, 'die hard': 3, 'lord of the rings': 2, 'the hobbit': 11, 'star wars': 5, 'harry potter': 4, 'hot fuzz': 8} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, mWFP):\n YKHO.name = mWFP\n YKHO.movie = ''\n YKHO.rentalBasis = 0\n YKHO.rentalTime = 0\n YKHO.bill = 0\n YKHO.shop = D8gX()",
"def FIMM(YKHO, nccz, leAC, XSPX):\n super().__init__(nccz, leAC)\n YKHO._director = XSPX",
"def FIMM(YKHO, EiNU, pTZR, GXjR, RUE3, RrWF, XSPX, ... | [
"0.7774639",
"0.7000859",
"0.699529",
"0.6840644",
"0.68362296",
"0.678717",
"0.6760214",
"0.6734626",
"0.67050827",
"0.6665212",
"0.6663395",
"0.6648155",
"0.66204",
"0.6616113",
"0.6594699",
"0.65894735",
"0.6577415",
"0.6573682",
"0.65685344",
"0.6567009",
"0.6558478",
"... | 0.0 | -1 |
Helper to get the boolean value of a string. | def M0mR(MW5P):
ush8 = ['true', 't', 'yes', 'y', 'ok']
return MW5P.lower() in ush8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqUT(vIwR):\n return Fp0o(vIwR)",
"def M0mR(KCHu):\n if KCHu == 'True':\n return True\n elif KCHu == 'False':\n return False",
"def tYgd(KCHu):\n if KCHu == 'true':\n return True\n elif KCHu == 'false':\n return False\n else:\n return None",
"def M0mR(... | [
"0.8633758",
"0.84649336",
"0.84333223",
"0.83780926",
"0.83254814",
"0.8312662",
"0.8280778",
"0.8271713",
"0.8237795",
"0.8186181",
"0.8181939",
"0.81508946",
"0.8138947",
"0.81013995",
"0.80880123",
"0.80874443",
"0.8079802",
"0.80668044",
"0.80599886",
"0.80543566",
"0.80... | 0.0 | -1 |
Create a book to add to a user's book list. | def eLpg(QePW):
if QePW.method == 'POST':
L03z = IO1S(QePW.POST)
if L03z.is_valid():
try:
leAC = L03z.cleaned_data['title']
taDc = L03z.cleaned_data['author']
Pr14 = L03z.cleaned_data['genre']
kSiB = dl5x.objects.filter(titl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n212(leAC='', taDc='', LYOB=0):\n if leAC != '' and taDc != '':\n VkpT.objects.create(title=leAC, author=taDc, available_copies=LYOB)",
"def E4mv(YKHO, mraa):\n mWFP = input('Enter the name of the book to add: ').upper()\n id = len(mraa) + 1\n taDc = input('Who is the author of the book: '... | [
"0.7559368",
"0.7337968",
"0.73153806",
"0.7300277",
"0.72781825",
"0.7274193",
"0.71907365",
"0.71804017",
"0.7153008",
"0.7081844",
"0.70563066",
"0.6981353",
"0.6964693",
"0.68951696",
"0.6865178",
"0.6861922",
"0.6854967",
"0.68290097",
"0.6814495",
"0.6814495",
"0.680164... | 0.6671596 | 31 |
Returns the Transition Matrix from joint s to joint f (sMs+1 s+1Ms+2 ... f1Mf). | def Oixl(DRe3, KCHu: int=0, eHNT: int=6):
if KCHu < 0 or eHNT > len(DRe3):
raise IndexError
Ylbp = DRe3[KCHu]
for YRbF in DRe3[KCHu + 1:eHNT]:
Ylbp = oyIN.matmul(Ylbp, YRbF)
return Ylbp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WsLF(YKHO):\n SppC = oyIN.zeros(shape=(YKHO.d, YKHO.n_states))\n jzdc = 0\n for KCHu in range(YKHO.n_states):\n rdlD = oyIN.zeros(YKHO.n_states)\n if KCHu == 0:\n rdlD[0] = 0.4\n rdlD[1] = 0.6\n elif KCHu == YKHO.n_states - 1:\n rdlD[-1] = 0.6\n ... | [
"0.7110248",
"0.6527623",
"0.6415619",
"0.62909955",
"0.6288579",
"0.6207696",
"0.616465",
"0.60809183",
"0.606146",
"0.606146",
"0.6057639",
"0.6011952",
"0.6004081",
"0.5982391",
"0.5969714",
"0.58459854",
"0.5832335",
"0.57740575",
"0.57668483",
"0.57630134",
"0.57303065",... | 0.68003947 | 1 |
Generates a random session token for a user without an existing session. Will check against other existing sessions to ensure the generated string isn't currently used by an existing session. | def cYCd(iy3Q, a__r=10):
L4LA = True
while L4LA is True:
hJii = vIwR.ascii_letters + vIwR.digits
eOtH = ''.join((tuKI.choice(hJii) for YRbF in range(a__r)))
if HQQ8(eOtH, iy3Q) is True:
continue
else:
L4LA = False
return eOtH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZT4X(Emd4):\n return Hy7s.urandom(32).encode('hex')",
"def cYCd(KCHu):\n P6bq = str(qxeD.uuid4())\n bo34.info(f'session token: {P6bq}')\n KCHu.set('sys:token', P6bq)",
"def LQUb(YKHO):\n if '_csfr_token_' not in cuiw:\n cuiw['_csfr_token_'] = BWvy(64)\n return cuiw['_csfr_token... | [
"0.7815558",
"0.75901645",
"0.74988157",
"0.7309788",
"0.7285307",
"0.7206191",
"0.7171498",
"0.71578634",
"0.713622",
"0.7043961",
"0.70171773",
"0.6997426",
"0.6983722",
"0.6957932",
"0.6949779",
"0.6941009",
"0.69380575",
"0.68929964",
"0.68249565",
"0.6789299",
"0.6731301... | 0.72580856 | 5 |
function to validate email when editing | def YBiq(YKHO, *qIxc, **B2fa):
D3lj = YKHO.cleaned_data['email']
qgkF = U9Nr()
try:
qgkF(D3lj)
except sUXu:
raise H6V6.ValidationError('you entered invalid email!!')
TcsR = mv1M.objects.filter(email=D3lj)
if TcsR:
raise H6V6.ValidationError('{}{}'.format(D3lj, ' is alread... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YBiq(YKHO):\n Hhdg = YKHO.cleaned_data['email'].split('@')[1]\n if Hhdg in YKHO.bad_domains:\n raise H6V6.ValidationError(bGrB('You can only register with your student email'))\n if mv1M.objects.filter(email__iexact=YKHO.cleaned_data['email']):\n raise H6V6.ValidationError(bGrB('This ema... | [
"0.7746732",
"0.76920676",
"0.7654583",
"0.75378984",
"0.7485812",
"0.7453781",
"0.74511224",
"0.74465406",
"0.7442986",
"0.7433564",
"0.74196875",
"0.74196875",
"0.74196875",
"0.73698723",
"0.736937",
"0.7364515",
"0.7364515",
"0.73516184",
"0.73244715",
"0.73234624",
"0.731... | 0.7158149 | 48 |
Same as tf.get_variable, except flips on reuse_variables automatically | def aO1F(mWFP, *qIxc, **B2fa):
try:
return ZylS.get_variable(mWFP, *qIxc, **B2fa)
except ValueError:
ZylS.get_variable_scope().reuse_variables()
return ZylS.get_variable(mWFP, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Es0b(mWFP, ROpF, yDqo, MuED, XJsN):\n SRYB = ZylS.get_variable(mWFP, shape=ROpF, dtype=yDqo, initializer=MuED, trainable=XJsN)\n return SRYB",
"def by3i(SRYB, rrBf=None):\n rrBf = '' if rrBf is None else rrBf\n with ZylS.variable_scope(rrBf, reuse=True):\n Ty9i = ZylS.get_variable(SRYB)\n ... | [
"0.76413393",
"0.75817573",
"0.7208251",
"0.7132318",
"0.70810264",
"0.7008748",
"0.69999474",
"0.6990303",
"0.69822246",
"0.69630516",
"0.6929487",
"0.6914336",
"0.69111735",
"0.6891602",
"0.6891008",
"0.6891008",
"0.68900293",
"0.6885613",
"0.6885613",
"0.6872781",
"0.68542... | 0.8089285 | 0 |
computes x^T A in minibatches. | def e7u8(iArr, SppC):
pr2w = ZylS.expand_dims(iArr, [1])
Q6ZB = ZylS.matmul(pr2w, SppC)
X2w3 = ZylS.squeeze(Q6ZB, [1])
return X2w3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jzdc(Kt_s):\n k0lF = oyIN.zeros(8)\n k0lF[0] = EcVT[0] * Kt_s + EcVT[1] * Kt_s ** 0.5 + EcVT[2] + EcVT[3] / Kt_s + EcVT[4] / Kt_s ** 2\n k0lF[1] = EcVT[5] * Kt_s + EcVT[6] + EcVT[7] / Kt_s + EcVT[8] / Kt_s ** 2\n k0lF[2] = EcVT[9] * Kt_s + EcVT[10] + EcVT[11] / Kt_s\n k0lF[3] = EcVT[12]\n k0l... | [
"0.68758523",
"0.63534915",
"0.6061998",
"0.6019454",
"0.5962437",
"0.5962437",
"0.5957539",
"0.5956863",
"0.5944868",
"0.5940501",
"0.5867713",
"0.5860244",
"0.5811946",
"0.5809804",
"0.5805698",
"0.57933205",
"0.57918733",
"0.575719",
"0.57220167",
"0.5707814",
"0.567012",
... | 0.0 | -1 |
Build the refinements query. | def jgR8(gAhJ):
_5we = []
G788 = {}
try:
for P69N in gAhJ:
l633 = dict()
NTsv = {}
for VMw8 in P69N:
try:
Ghho = ZmYI.get_by_id(VMw8)
ToLZ = Ghho.path
BWXx = Ghho.value
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axXe(YKHO):\n pass",
"def uXdW(YKHO) -> x1iM[str]:\n xDcj = ['document_category:\"annotation\"', f'taxon:\"NCBITaxon:{YKHO.taxon_id}\"', ' OR '.join([f'aspect:\"{Ir38}\"' for Ir38 in YKHO.aspects]), ' OR '.join([f'evidence_type:\"{PlEV}\"' for PlEV in YKHO.evidence_types])]\n xDcj.extend([f'-evidenc... | [
"0.6293208",
"0.6223793",
"0.5905564",
"0.5776814",
"0.5762811",
"0.57344776",
"0.5613513",
"0.55824274",
"0.5485309",
"0.5413579",
"0.54116577",
"0.5400818",
"0.5377101",
"0.5351367",
"0.5346629",
"0.52890205",
"0.52863926",
"0.52750653",
"0.52706224",
"0.5252563",
"0.525059... | 0.73118436 | 0 |
this function returns a list of all the possible combinations of characters from the char_list at n length that begins with prefix without repeating a char more than one time | def hnjZ(y0cW, vOPP, exwG, zHQS):
if exwG == 0:
return y0cW
else:
for YRbF in range(len(vOPP)):
if vOPP[YRbF] not in y0cW:
vvff = hnjZ(y0cW + vOPP[YRbF], vOPP, exwG - 1, zHQS)
if vvff is not None:
zHQS.append(vvff) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hnjZ(exwG, vOPP, y0cW, S06t):\n if exwG == 0:\n S06t.append(y0cW)\n else:\n for hcXw in range(len(vOPP)):\n Y8Kb = vOPP[:]\n del Y8Kb[hcXw]\n hnjZ(exwG - 1, Y8Kb, y0cW + vOPP[hcXw], S06t)\n return S06t",
"def JEsA(vOPP, exwG):\n y0cW = ''\n S06t =... | [
"0.81324875",
"0.7867114",
"0.78004605",
"0.7720803",
"0.7705813",
"0.754239",
"0.7538233",
"0.75042725",
"0.7464536",
"0.73581505",
"0.72626144",
"0.7240627",
"0.7226278",
"0.7101176",
"0.71011347",
"0.7070102",
"0.7021941",
"0.7014332",
"0.68997043",
"0.68154866",
"0.680431... | 0.7603899 | 5 |
Get the predicted Q value for the given observation and action batches. | def YEmv(YKHO, cb_Q, njNk, kO6y):
return cb_Q.run(YKHO.critic, feed_dict={YKHO.obs_input: njNk, YKHO.act_input: kO6y}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vexM(YKHO, QTBn, XeOP):\n return YKHO.models[XeOP].predict([YKHO.preprocessing(QTBn)])[0]",
"def YEmv(YKHO, pR3T, XeOP):\n z1Rg = tuple([WKvO for WKvO in pR3T])\n if z1Rg not in YKHO.Q:\n return 0\n else:\n return YKHO.Q[z1Rg][XeOP]",
"def gc9P(YKHO, rNYq):\n rNYq = YKHO.env_st... | [
"0.73451865",
"0.73437554",
"0.7177635",
"0.7134966",
"0.6959079",
"0.6916304",
"0.68190473",
"0.67788345",
"0.6774937",
"0.676122",
"0.6723267",
"0.6636867",
"0.65791696",
"0.6567369",
"0.65540177",
"0.6541728",
"0.64784884",
"0.64414865",
"0.635425",
"0.6352421",
"0.6343263... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, _kXF):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Get the limits of the track. | def FHui(YKHO) -> AzJI[int, int]:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._invoke('limits', None)",
"def zh7C(YKHO):\n pass",
"def J_5G(YKHO):\n NG8t = YKHO.read(... | [
"0.7911529",
"0.7911529",
"0.7911529",
"0.7911529",
"0.78426546",
"0.78205067",
"0.76267195",
"0.7421367",
"0.73042357",
"0.72147626",
"0.71522367",
"0.7151191",
"0.7149748",
"0.71279484",
"0.7123495",
"0.70724165",
"0.70684624",
"0.7050801",
"0.70347434",
"0.70283496",
"0.69... | 0.64895725 | 49 |
Get the limits of the assimilation track. | def FHui(YKHO) -> AzJI[int, int]:
return (0, 11) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def c5uu(YKHO):\n return YKHO._limits",
"def J_5G(YKHO):\n NG8t = YKHO.read('low_limit')\n lXXn = YKHO.read('high_limit')\n kg7d = [Xk2t * YKHO.get_sign() + YKHO.g... | [
"0.7549556",
"0.7549556",
"0.7549556",
"0.7549556",
"0.7510728",
"0.7378625",
"0.73290336",
"0.73076874",
"0.7144022",
"0.7120474",
"0.70292306",
"0.69979244",
"0.6887905",
"0.67932874",
"0.67932874",
"0.6791299",
"0.67616904",
"0.67305064",
"0.6676896",
"0.6674875",
"0.66697... | 0.0 | -1 |
Validate that the provided `input_dataframe` contains the required input columns Transform the keras input columns Transform the response variable, if it is present Format the data for return | def SZFh(YKHO, KE7t, rsEw=None):
if not YKHO.fitted:
raise ValueError('Cannot transform without being fitted first. Call fit() method before transform() method')
if rsEw is None:
rsEw = YKHO.df_out
if YKHO.response_var is not None and YKHO.response_var in KE7t.columns:
P1L8 = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sBY3(YKHO, ycQM):\n jQ3Z = rLdf.read_json(ycQM)\n ZLJ_ = ['Text']\n for fvDH in ZLJ_:\n if fvDH not in jQ3Z.columns:\n jQ3Z[fvDH] = None\n return jQ3Z[ZLJ_]",
"def bEa4(*, WbAn: pd.DataFrame) -> AzJI[rLdf.DataFrame, h8nf[dict]]:\n hS7l = QeWK(dataframe=WbAn)\n vGfb = hS7l[... | [
"0.66612935",
"0.6460668",
"0.62531924",
"0.6148898",
"0.61103773",
"0.6089829",
"0.6041623",
"0.60298026",
"0.5986052",
"0.5952941",
"0.5943014",
"0.59237105",
"0.5913575",
"0.59121627",
"0.5904653",
"0.5895783",
"0.58903325",
"0.58713675",
"0.5822839",
"0.5817931",
"0.58128... | 0.6345781 | 2 |
normal vectors must have the magnitude 1. but interpolation can result in values slightly larger than 1. So, normalized it again. | def ES3A(KR2F, he6J, W75m, NkkI=True):
if len(he6J) > 5:
y7PD = pTn1(KR2F, he6J[:, 0], W75m)
GNKV = pTn1(KR2F, he6J[:, 1], W75m)
k49R = pTn1(KR2F, he6J[:, 2], W75m)
else:
y7PD = bYk4(KR2F, he6J[:, 0], W75m)
GNKV = bYk4(KR2F, he6J[:, 1], W75m)
k49R = bYk4(KR2F, he6... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mCoU(YKHO, *qIxc):\n return leuP.Geom_VectorWithMagnitude_Normalized(YKHO, *qIxc)",
"def NkkI(YKHO):\n YKHO.number_of_vectors = YKHO.values.shape[0]\n rRIa = oyIN.linalg.norm(YKHO.values, axis=1).reshape(-1, 1)\n YCnv = oyIN.sum(YKHO.values_planar, axis=1).reshape(-1, 1)\n rRIa[rRIa == 0] = oy... | [
"0.73527277",
"0.72220445",
"0.7179956",
"0.7081211",
"0.7052599",
"0.7033139",
"0.7026005",
"0.7019269",
"0.69819856",
"0.69813955",
"0.6927629",
"0.69207513",
"0.69203794",
"0.6911322",
"0.68614644",
"0.68535596",
"0.68505365",
"0.6806795",
"0.6802717",
"0.67957246",
"0.679... | 0.0 | -1 |
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments. | def FIMM(YKHO, *qIxc, **c_sp):
if qIxc or c_sp:
super(V5nR, YKHO).__init__(*qIxc, **c_sp)
if YKHO.w is None:
YKHO.w = [0.0] * 3
if YKHO.chi_d is None:
YKHO.chi_d = 0.0
if YKHO.chi_valid is None:
YKHO.chi_valid = False
if YKHO.Va_d is None:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d",
"def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d",
"def FIMM(YKHO, *qIxc, **c_sp):\n ... | [
"0.81649005",
"0.771898",
"0.771898",
"0.76516944",
"0.75722796",
"0.7542747",
"0.7484134",
"0.74689674",
"0.7456638",
"0.7445107",
"0.74442166",
"0.7432269",
"0.7414798",
"0.7407436",
"0.7390192",
"0.73736787",
"0.7362033",
"0.73248017",
"0.7322382",
"0.7322382",
"0.7322382"... | 0.0 | -1 |
Get user by id | def bt8D(id):
NCls = GGod()
N1p7 = NCls.cursor()
WNtM = 'SELECT id, name, email, password, role, created, idcreated FROM user WHERE id = ?'
N1p7.execute(WNtM, [id])
ZfUD = N1p7.fetchone()
if ZfUD is not None:
Q5YQ = mv1M(ZfUD[0], ZfUD[1], ZfUD[2], ZfUD[3], ZfUD[4], ZfUD[5], ZfUD[6])
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TKWP(YKHO, id):\n return YKHO._fetch_json('users/' + id)",
"def g971(id):\n return mv1M.query.get(int(id))",
"def bt8D(id):\n return mv1M.query.get(id)",
"def bt8D(id):\n Mkmy = G4JS.get(NKRf + '/user/' + str(id))\n CBIr = Mkmy.json()\n return CBIr",
"def TKWP(P4t4, id):\n Dvct = P... | [
"0.8777414",
"0.87483627",
"0.87453115",
"0.86769557",
"0.8616211",
"0.859701",
"0.858799",
"0.858799",
"0.85526043",
"0.84700274",
"0.8453422",
"0.84337956",
"0.840844",
"0.83745855",
"0.8366938",
"0.8362068",
"0.8344261",
"0.8342626",
"0.8333687",
"0.8324073",
"0.83203495",... | 0.7936885 | 75 |
Takes a list of strings and returns a single string with a commaseparated list, including "and" in the appropriate place. | def Xe5K(_CS_):
if not _CS_:
return ''
elif len(_CS_) == 1:
return _CS_[0]
elif len(_CS_) == 2:
return '{} and {}'.format(_CS_[0], _CS_[1])
else:
return ', '.join(_CS_[:-1]) + ', and ' + _CS_[-1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uSoA(KouY):\n Aofo = ', '.join(KouY)\n _AfC = Aofo.rfind(',')\n if _AfC > -1:\n Aofo = Aofo[:_AfC] + ' and' + Aofo[_AfC + 1:]\n return Aofo",
"def Xe5K(uBiB):\n return glvB(uBiB, 'and')",
"def YYDj(DumB):\n if len(DumB) == 1:\n return DumB[0]\n if len(DumB) == 2:\n ... | [
"0.86597824",
"0.82576406",
"0.7910509",
"0.7772812",
"0.74387985",
"0.74061126",
"0.7155936",
"0.7140512",
"0.7080474",
"0.7055709",
"0.70467293",
"0.7026712",
"0.69681233",
"0.69681233",
"0.6904896",
"0.68584096",
"0.6782914",
"0.6759977",
"0.6688299",
"0.668825",
"0.663513... | 0.755652 | 4 |
Given inputs x and their value y, return random subsets of points for context and target. Note that following conventions from "Empirical Evaluation of Neural Process Objectives" the context points are chosen as a subset of the target points. | def hBB2(WKvO, LVAh, k2ef, XcCm):
UoOD = WKvO.shape[1]
JbSN = oyIN.random.choice(UoOD, size=k2ef + XcCm, replace=False)
IVx7 = WKvO[:, JbSN[:k2ef], :]
dvM8 = LVAh[:, JbSN[:k2ef], :]
B_mR = WKvO[:, JbSN, :]
PN4h = LVAh[:, JbSN, :]
return (IVx7, dvM8, B_mR, PN4h) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gUA1(YKHO, EcVT, LVAh):\n import random\n or8S = oyIN.random.choice(oyIN.arange(len(EcVT)), YKHO._p, replace=False)\n a8QT = EcVT[or8S]\n e7cZ = LVAh[or8S]\n return (a8QT, e7cZ)",
"def rJrZ(WKvO, LVAh):\n cZDQ = oyIN.random.permutation(LVAh.shape[0])\n roYN = WKvO[cZDQ, :]\n Z3m2 = LV... | [
"0.6201958",
"0.6167439",
"0.6167439",
"0.6152642",
"0.6140761",
"0.61308366",
"0.611157",
"0.60748833",
"0.60748833",
"0.5976693",
"0.5922801",
"0.5921811",
"0.5907763",
"0.5889324",
"0.5866671",
"0.5863737",
"0.5863737",
"0.5858867",
"0.58508945",
"0.5815583",
"0.58147776",... | 0.77209365 | 0 |
Test the geodesic method of L2Metric. | def szZz(YKHO):
IAeW = YKHO.l2_metric_s2.geodesic(YKHO.landmarks_a, YKHO.landmarks_b)
IAeW = IAeW(YKHO.times)
Aofo = IAeW
aEqx = []
for G1Hx in range(YKHO.n_sampling_points):
pTny = YKHO.l2_metric_s2.ambient_metric.geodesic(initial_point=YKHO.landmarks_a[G1Hx, :], end_point=YKHO.landmarks_b[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def szZz(YKHO, ZMXO, WXkz, eLnv, Sjj3, VcXK):\n IAeW = ZMXO.geodesic(Sjj3, VcXK)\n IAeW = IAeW(WXkz)\n Aofo = IAeW\n aEqx = []\n for G1Hx in range(eLnv):\n pTny = ZMXO.ambient_metric.geodesic(initial_point=Sjj3[G1Hx, :], end_point=VcXK[G1Hx, :])\n aEqx.append(pTny(WXkz))\n aEqx = i9... | [
"0.7369288",
"0.6486752",
"0.6334363",
"0.63194615",
"0.6212277",
"0.6206327",
"0.6166136",
"0.6126976",
"0.6120284",
"0.6086279",
"0.59854054",
"0.5934365",
"0.5914673",
"0.58926636",
"0.58894736",
"0.58481395",
"0.58150214",
"0.57997614",
"0.5785629",
"0.5769662",
"0.576498... | 0.79125726 | 0 |
Load combined shot and weather data from the specified file. Use this function instead of calling read_csv directly to get the benefit of explicit datatypes and so much smaller inmemory size, automatic conversion of datetime data, and an improved representation for a field like PrecipitationType. | def iGaD(Ux0P):
jQ3Z = rLdf.read_csv(Ux0P, dtype=xbBM, parse_dates=oJ2t, infer_datetime_format=True)
jQ3Z['PrecipitationType'] = jQ3Z['PrecipitationType'].cat.add_categories(['None'])
jQ3Z['PrecipitationType'].fillna('None', inplace=True)
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aEOe(nUeQ):\n nPrm = rLdf.read_csv(nUeQ)\n return (nPrm['value'].values, nPrm['anomaly'].values)",
"def mjM_(Emd4, Ux0P):\n HbLB = rLdf.read_csv(Ux0P, index_col=1, parse_dates=True)\n HbLB = HbLB.tz_localize('UTC')\n HbLB.dropna(how='all', axis=1, inplace=True)\n return Emd4(HbLB)",
"def ... | [
"0.6355663",
"0.6323598",
"0.62752306",
"0.6112996",
"0.5952293",
"0.59425175",
"0.5924419",
"0.59127235",
"0.5879275",
"0.58548725",
"0.5854027",
"0.58537316",
"0.58358073",
"0.5823865",
"0.58103687",
"0.5778727",
"0.5767142",
"0.57617646",
"0.57617646",
"0.5757971",
"0.5751... | 0.6432348 | 0 |
Get absolute file path of the stored object. If the version number is omitted, the path of the highest version number is returned. | def nDsG(YKHO, Ilxn, fZzl=0):
if not YKHO.identifier_object_exists(Ilxn):
raise ValueError("No repository object for id '%s'. Unable to get requested version object path." % Ilxn)
if fZzl == 0:
fZzl = YKHO.curr_version_num(Ilxn)
if not YKHO.identifier_version_object_exists(Ilxn, fZzl):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shAH(YKHO, DpZH):\n pmON = YKHO.path / str(DpZH)\n return pmON",
"def kxCL(YKHO):\n VUF1 = gCuF.FILE_STORE_PATH\n return pmON.join(VUF1, str(YKHO.id))",
"def uNwi(YKHO):\n YKHO.checkUpdate()\n return YKHO._filepath",
"def qaEx(YKHO) -> str:\n return tq_1.getabsfile(YKHO.root.obj)",
... | [
"0.68162346",
"0.6804286",
"0.6681756",
"0.667585",
"0.66256374",
"0.66202325",
"0.6563746",
"0.6522245",
"0.6463922",
"0.6457482",
"0.6435564",
"0.64186156",
"0.6418525",
"0.64058113",
"0.6394699",
"0.6393559",
"0.6386077",
"0.6379416",
"0.63787097",
"0.63641214",
"0.6363998... | 0.64672214 | 8 |
Returns the manually checked out path of the project's source if specified or None. | def ptbR(HUs2):
pmON = Hy7s.getenv('PROJECT_SRC_PATH', Hy7s.getenv('MANUAL_SRC_PATH'))
if not pmON:
G9jH.debug('No PROJECT_SRC_PATH.')
return pmON
G9jH.debug('PROJECT_SRC_PATH set.')
if Hy7s.path.isabs(pmON):
return pmON
return Hy7s.path.join(HUs2, pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UBTC() -> str:\n zOGz = TLI7(RUFc(xAKo))\n print(zOGz)\n O0al = '/'.join(zOGz.split('/')[0:-2])\n return O0al",
"def gY90(YKHO) -> h8nf[GkAb]:\n try:\n return GkAb(tq_1.getsourcefile(YKHO.obj) or tq_1.getfile(YKHO.obj))\n except TypeError:\n return None",
"def HHHA(YKHO):\n ... | [
"0.7567289",
"0.70803607",
"0.6994768",
"0.6959276",
"0.69100356",
"0.6884869",
"0.6717834",
"0.6712783",
"0.6693722",
"0.6691759",
"0.6653883",
"0.66276956",
"0.6624897",
"0.66135144",
"0.6611911",
"0.6605335",
"0.65440834",
"0.651098",
"0.6501868",
"0.649972",
"0.64903784",... | 0.7154675 | 1 |
Returns the text contained in file with given filename. | def Nwr9(Ux0P):
eHNT = open(Ux0P, 'r')
l5Ny = eHNT.read()
return l5Ny | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gFHi(Ux0P):\n l5Ny = open(Ux0P, encoding='utf8').read()\n return l5Ny",
"def gFHi(Ux0P):\n OwN0 = open(Ux0P, 'r')\n l5Ny = OwN0.read()\n OwN0.close()\n return l5Ny",
"def tCBU(gIsw: str):\n with open(gIsw, 'r') as nUeQ:\n l5Ny = nUeQ.read()\n return l5Ny",
"def gFHi(Ux0P):\... | [
"0.8777705",
"0.8733646",
"0.8652563",
"0.8526429",
"0.85168576",
"0.8375627",
"0.8334483",
"0.827726",
"0.82065666",
"0.8194454",
"0.8184059",
"0.81636834",
"0.8142931",
"0.810012",
"0.810012",
"0.80884635",
"0.8011207",
"0.7994427",
"0.79330546",
"0.79091424",
"0.79070365",... | 0.83848846 | 5 |
Sets the inhibit_selling of this DestinyVendorDefinition. | def ywN2(YKHO, ywN2):
YKHO._inhibit_selling = ywN2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w6M4(YKHO, w6M4):\n YKHO._inhibit_buying = w6M4",
"def r7mD(YKHO, r7mD):\n YKHO._strong_sell = r7mD",
"def ZBqQ(YKHO, ZBqQ):\n YKHO._sell = ZBqQ",
"def _IxI(YKHO, _IxI):\n if _IxI is None:\n raise ValueError('Invalid value for `selling_item`, must not be `None`')\n YKHO._selling_ite... | [
"0.7210364",
"0.57457286",
"0.5532342",
"0.55254763",
"0.52102154",
"0.5082221",
"0.49939245",
"0.48188877",
"0.47787333",
"0.47643164",
"0.47562233",
"0.4749901",
"0.47160816",
"0.4715238",
"0.4639989",
"0.4611617",
"0.4594993",
"0.45862356",
"0.45550779",
"0.4548384",
"0.45... | 0.8534058 | 0 |
Sets the consolidate_categories of this DestinyVendorDefinition. | def hBIJ(YKHO, hBIJ):
YKHO._consolidate_categories = hBIJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gZgK(YKHO, gZgK):\n YKHO._include_categories = gZgK",
"def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt",
"def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt",
"def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt",
"def LeZt(YKHO, LeZt: List[str]):\n YKHO._categories = LeZt",
"def heRM(YKHO, h... | [
"0.51847786",
"0.4999836",
"0.4999836",
"0.4999836",
"0.4972599",
"0.49314025",
"0.48892325",
"0.48755744",
"0.47091383",
"0.46516478",
"0.45947054",
"0.4574627",
"0.44628805",
"0.44528544",
"0.44403014",
"0.44126663",
"0.43976688",
"0.43847626",
"0.4329833",
"0.43005097",
"0... | 0.7620628 | 0 |
Sets the original_categories of this DestinyVendorDefinition. | def aIUQ(YKHO, aIUQ):
YKHO._original_categories = aIUQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTEv(YKHO, a0T3):\n YKHO.categories_interfaces = a0T3.copy()\n YKHO.category_mapping = {}\n YKHO._category_file_mapping = {}\n for pwa7 in a0T3.keys():\n YKHO.category_mapping[pwa7] = []\n YKHO._category_file_mapping[pwa7] = []",
"def gUsa(YKHO, jRxN):\n YKHO._category_override =... | [
"0.5660211",
"0.5292489",
"0.51554656",
"0.50816804",
"0.50816804",
"0.50816804",
"0.50612366",
"0.49629274",
"0.49320346",
"0.49095595",
"0.48430452",
"0.48282853",
"0.47662586",
"0.47511518",
"0.47034052",
"0.46748438",
"0.45943162",
"0.4594078",
"0.45934927",
"0.45847765",
... | 0.72713935 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.864179",
"0.85105866",
"0.7853924",
"0.77452",
"0.7712474",
"0.76976854",
"0.76601666",
"0.7638181",
"0.7621996",
"0.76074743",
"0.76074743",
"0.76074743",
"0.7607432",
"0.7599404",
"0.75858897",
"0.7582702",
"0.75715727",
"0.75683635",
"0.7539386",
"0.7539386",
"0.7528709... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.8043786 | 80 |
Initialises a new order handling system. | def FIMM(YKHO):
YKHO.employees_working = []
YKHO.stack = KxSn(0)
YKHO.handled_orders = []
YKHO.employees_present = []
YKHO.order_queue = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _FTR(zJ7I: str) -> 'Order':\n if Hbi_ is None:\n raise RuntimeError('Not authenticated, call up42.authenticate() first')\n T4Wy = L9Jq(auth=Hbi_, order_id=zJ7I)\n bo34.info(f'Initialized {T4Wy}')\n return T4Wy",
"def FIMM(YKHO, YTVa, EkU0='SMART', VIXL='USD'):\n YKHO.events = YTVa\n ... | [
"0.688776",
"0.66738236",
"0.6590095",
"0.64965385",
"0.64728814",
"0.6389224",
"0.6175273",
"0.6065393",
"0.60540736",
"0.5943406",
"0.59308857",
"0.5888826",
"0.5862909",
"0.5854195",
"0.58481073",
"0.5846483",
"0.5833012",
"0.5832502",
"0.5812833",
"0.5795145",
"0.5792884"... | 0.546157 | 40 |
Computes power spectrum of an DatArray using xrft | def Z9I7(SG6Y, tpio, KnxT=True):
nRdm = SG6Y[tpio] - SG6Y[tpio].min()
SG6Y[tpio] = nRdm
jbXL = SG6Y.interpolate_na(dim=tpio)
H4yH = AxuJ.power_spectrum(jbXL.dropna(dim=tpio), dim=tpio, detrend='linear', window=KnxT).compute()
OLor = 'freq_{}'.format(tpio)
QyVM = H4yH[OLor] > 0
return 2 * H4y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lzhy():\n ywwl = 16\n tpio = ['x', 'y']\n SG6Y = zuVY.DataArray(oyIN.random.rand(2, ywwl, ywwl), dims=['time', 'x', 'y'], coords={'time': range(2), 'x': range(ywwl), 'y': range(ywwl)}).chunk({'time': 1})\n hnFq = AxuJ.power_spectrum(SG6Y, dim=tpio, density=False)\n vpJ1 = AxuJ.dft(SG6Y, dim=['x'... | [
"0.72665066",
"0.71887195",
"0.6625388",
"0.64910406",
"0.6344144",
"0.626269",
"0.6249224",
"0.62013036",
"0.6189876",
"0.6152987",
"0.6142869",
"0.6134069",
"0.6123744",
"0.61216426",
"0.61072606",
"0.61024547",
"0.60863173",
"0.608237",
"0.6038964",
"0.60380703",
"0.602831... | 0.6663883 | 2 |
Finds the ROC AUC of the model. | def ObOY(BHCt, sAoX, H96n):
N6Z1 = BHCt.predict_proba(sAoX)
B4ss = Qq_d(H96n, N6Z1[:, 1])
return B4ss | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZXn(YKHO, C3ST, sujI):\n BFeB = C3ST.classifier.predict_proba(sujI)\n return Qq_d(YKHO.dev_labels, BFeB[:, 1])",
"def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n ... | [
"0.75422955",
"0.7361912",
"0.7288999",
"0.7288999",
"0.72754043",
"0.7254025",
"0.7203146",
"0.71594554",
"0.71469057",
"0.7071503",
"0.7035595",
"0.703369",
"0.695263",
"0.68487287",
"0.68474656",
"0.68397444",
"0.6824428",
"0.68041253",
"0.6730099",
"0.66605556",
"0.665976... | 0.71389055 | 9 |
Compares latest block from peers with client's last synced block. | def BoG2(YKHO) -> bool:
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cDD1(YKHO):\n YKHO.setup_mock_consensus(filename='valid_get_latest_block.json')\n nPrm = eVVj.get_latest_finalized_block(YKHO.client)\n YKHO.assertIn('version', nPrm)",
"def YT92(XkN1):\n AwID = o63Y.db.get_last_block()\n if not AwID:\n return True\n if AwID.block_hash != XkN1.previo... | [
"0.6359257",
"0.61576575",
"0.6059645",
"0.5958244",
"0.5919332",
"0.59045327",
"0.5856439",
"0.5848777",
"0.5840408",
"0.5821416",
"0.5767647",
"0.57649285",
"0.5760079",
"0.5754354",
"0.57539266",
"0.5713216",
"0.56920344",
"0.5671592",
"0.56687814",
"0.56464386",
"0.563870... | 0.0 | -1 |
Tests cancellation on a dependency tree of depth two (i.e. parents and one level of continuations). This test is designed to identify more subtle issues in the implementation. | def mPXM(YKHO):
Jtjf(YKHO.db)
ACnF = [{'name': 'parent 1'}, {'name': 'parent 2'}]
afYC = [{'name': 'child 1'}, {'name': 'child 2'}]
k2sj = [{'name': 'grandchild 1'}, {'name': 'grandchild 2'}, {'name': 'grandchild 3'}, {'name': 'grandchild 4'}]
Ym5H = []
Ay_b = []
emSD = []
Mkk0(YKHO, ACn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYk1(YKHO):\n Jtjf(YKHO.db)\n ACnF = [{'name': 'parent 1'}, {'name': 'parent 2'}]\n afYC = [{'name': 'child 1'}, {'name': 'child 2'}]\n Ym5H = []\n Ay_b = []\n Mkk0(YKHO, ACnF, id_list=Ym5H)\n Mkk0(YKHO, afYC, id_list=Ay_b)\n for H7rZ in Ym5H:\n _hkX = YKHO._add_continuations(Ay_... | [
"0.7264978",
"0.65300655",
"0.6304091",
"0.62421304",
"0.5680608",
"0.5637006",
"0.5466501",
"0.5433608",
"0.54083544",
"0.53946054",
"0.5349086",
"0.53468925",
"0.53390783",
"0.5327281",
"0.52891034",
"0.52697915",
"0.5244988",
"0.5213938",
"0.5197287",
"0.51683396",
"0.5158... | 0.7282081 | 0 |
Mean squared error of a sequence of predicted vectors | def ny2L(Y8eF, aMgO):
jomN = SDab(Y8eF, aMgO, multioutput='raw_values')
return oyIN.sum(jomN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iAxY(PjQx, n5sN):\n if isinstance(n5sN, list):\n n5sN = oyIN.array(n5sN)\n if isinstance(PjQx, list):\n PjQx = oyIN.array(PjQx)\n if not isinstance(n5sN, oyIN.ndarray):\n raise TypeError('actual must be a list or numpy array!')\n if not isinstance(PjQx, oyIN.ndarray):\n ... | [
"0.73518825",
"0.7309772",
"0.7309772",
"0.7280652",
"0.72240216",
"0.72081494",
"0.72081494",
"0.7197953",
"0.7134021",
"0.7134021",
"0.71146554",
"0.70882404",
"0.7087908",
"0.7070298",
"0.70340925",
"0.7034092",
"0.702036",
"0.69833195",
"0.6981871",
"0.6973239",
"0.696474... | 0.6678432 | 51 |