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 |
|---|---|---|---|---|---|---|
Gets the arguments from the command line and returns the parser object | def BV7_():
wzkt = qcWV.now()
wvEv = j1Jz.ArgumentParser(description='Generates calender events \t\tcoorisponding with a cardiac diff.')
wvEv.add_argument('name', help='Name of diff.')
wvEv.add_argument('protocol', help='Protocol version (1.0, 1.2, 1.4).', default=str(1.0))
wvEv.add_argument('-d', '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uvp4(E0cB):\n wvEv = j1Jz.ArgumentParser(description=__doc__)\n Ltpw = wvEv.parse_args(E0cB[1:])\n return Ltpw",
"def rwTO():\n wvEv = WDqQ(prog=cwNE, description=xmSp)\n wvEv.add_argument('-V', '--version', action='version', version=UKZg)\n return wvEv.parse_args()",
"def fkZt(qIxc):\n ... | [
"0.7891558",
"0.7815595",
"0.77484477",
"0.7666325",
"0.7639342",
"0.76260513",
"0.7608436",
"0.75748616",
"0.7543175",
"0.75288194",
"0.75287247",
"0.7518118",
"0.7476551",
"0.7476361",
"0.7467458",
"0.7459924",
"0.7417664",
"0.7410789",
"0.7389823",
"0.73879504",
"0.7383303... | 0.0 | -1 |
Initializes a new instance of LCPAPI class | def FIMM(YKHO, NCls, xUwc):
if xUwc.protocol != ZbNp.LCP:
raise ValueError('Collection protocol is {0} but must be LCPAPI'.format(xUwc.protocol))
YKHO._db = NCls
YKHO._collection_id = xUwc.id
YKHO._lcp_server_instance = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ve9A(YKHO):\n int = yF2U('eth1/1')\n l6YF = AsZV(rate='fast', interface=int)\n return l6YF",
"def FIMM(YKHO, hTTw):\n YKHO.aws = _jPw.AmazonCP(hTTw)\n YKHO.azure = hOVV.AzureCP(hTTw)",
"def FIMM(YKHO):\n super(gtN9, YKHO).__init__()",
"def FIMM(YKHO, HpU9, TRl8):\n YKHO._lcp_encrypto... | [
"0.6802159",
"0.6799722",
"0.67167014",
"0.67070836",
"0.6599564",
"0.6589389",
"0.65408736",
"0.653314",
"0.6487738",
"0.6467059",
"0.64608663",
"0.645246",
"0.645032",
"0.6435027",
"0.63576347",
"0.63549036",
"0.6340978",
"0.63107854",
"0.6310584",
"0.6310584",
"0.6310584",... | 0.6534403 | 7 |
Returns an external integration associated with this object | def rvRP(YKHO, NCls):
return YKHO.collection.external_integration | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M5o2(YKHO):\n return super().get_integration_instance()",
"def M5o2(YKHO):\n return super().get_integration_instance()",
"def M4JH(YKHO):\n if YKHO.integration is not None:\n return YKHO.integration\n try:\n Urat = _Wjv.objects.get(project=YKHO.project, integration_type=YKHO.integ... | [
"0.70640546",
"0.70640546",
"0.70399123",
"0.670823",
"0.6540193",
"0.6479794",
"0.6426928",
"0.63403535",
"0.62842965",
"0.5978306",
"0.5971439",
"0.5802209",
"0.5802209",
"0.5779488",
"0.567651",
"0.5670859",
"0.56390876",
"0.56054264",
"0.5592999",
"0.55863905",
"0.5558255... | 0.76208496 | 0 |
Initialize optimization problem for current time step. | def XIWw(YKHO):
Vvpx = YKHO.input_constraints['umin']
VIDK = YKHO.input_constraints['umax']
BQGg = YKHO.state_constraints['xmin']
bYzl = YKHO.state_constraints['xmax']
k0lF = oyIN.zeros((YKHO.nx * (YKHO.N + 1), YKHO.nx * (YKHO.N + 1)))
tjUW = oyIN.zeros((YKHO.nx * (YKHO.N + 1), YKHO.nu * YKHO.N)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NraN(YKHO, vePz):\n YKHO._endJobRunnable = YKHO._endJobRunnable * YKHO.gradDict['pertNeeded'] + len(YKHO.optTraj)\n YKHO.trajCycle = n2fR(YKHO.optTraj)\n for dlZb in YKHO.optTraj:\n YKHO.counter['lastStepSize'][dlZb][0] = YKHO.paramDict['initialStepSize']\n YKHO.counter['lastStepSize'][d... | [
"0.695876",
"0.67402697",
"0.665831",
"0.6653704",
"0.65677303",
"0.6555225",
"0.6552333",
"0.6538141",
"0.648468",
"0.64490855",
"0.64119655",
"0.6388725",
"0.6356764",
"0.63402843",
"0.62829876",
"0.6229762",
"0.6227814",
"0.6227752",
"0.6212738",
"0.61705595",
"0.6153173",... | 0.64970064 | 8 |
Input only. The password of the custom account. The credential is stored encrypted and not returned in any response nor included in audit logs. | def jTXt(YKHO) -> str:
return qe4Y.get(YKHO, 'password') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cGBz(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_password')",
"def cGBz(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'account_password')",
"def cGBz(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'account_password')",
"def cGBz(YKHO) -> qe4Y.Output[str]:\n return qe4Y.... | [
"0.7678959",
"0.7678959",
"0.7568929",
"0.7568929",
"0.7383119",
"0.7383119",
"0.7370694",
"0.7351932",
"0.7351932",
"0.7278497",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.7259015",
"0.72561127",
... | 0.7349765 | 9 |
Describes OAuth2 Client ID of resources protected by IdentityAwareProxy(IAP). | def bTAp(YKHO) -> str:
return qe4Y.get(YKHO, 'target_audience_client_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tkzx(YKHO) -> str:\n return qe4Y.get(YKHO, 'oauth2_client_id')",
"def tkzx(YKHO) -> str:\n return qe4Y.get(YKHO, 'oauth2_client_id')",
"def zb3C(YKHO):\n pass",
"def id(YKHO):\n return YKHO.authentication_token.oauth_client_id",
"def RTzd(YKHO):\n raise NotImplementedError",
"def RTzd(... | [
"0.7163751",
"0.7163751",
"0.708184",
"0.68782246",
"0.6869943",
"0.6809417",
"0.67098117",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0.66975886",
"0... | 0.57903093 | 77 |
The execution state of the ScanRun. | def OwQA(YKHO) -> str:
return qe4Y.get(YKHO, 'execution_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PBhj(YKHO):\n return YKHO._runstate",
"def jGRS(YKHO):\n return YKHO._update_job()['executionStatus']['state']",
"def duE9(YKHO):\n return YKHO._run_status",
"def ja6o(YKHO, qFH_):\n raise NotImplemented",
"def QTBn(YKHO):\n return YKHO.proc.driver_get_state(YKHO.number)",
"def O3CL(YK... | [
"0.793024",
"0.7378547",
"0.72620857",
"0.7047995",
"0.7018013",
"0.7012872",
"0.6839223",
"0.6816498",
"0.66870004",
"0.6636863",
"0.6628088",
"0.6605154",
"0.6597954",
"0.6596702",
"0.6596702",
"0.65934557",
"0.6586818",
"0.6586818",
"0.6580555",
"0.6549535",
"0.654821",
... | 0.7552451 | 1 |
The resource name of the ScanRun. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}/scanRuns/{scanRunId}'. The ScanRun IDs are generated by the system. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XGHj(YKHO, _83j: str) -> str:\n if _83j not in YKHO._run_name_to_run_resource_name:\n mDbr = YKHO._create_or_get_run_resource(_83j)\n YKHO._run_name_to_run_resource_name[_83j] = mDbr.name\n return YKHO._run_name_to_run_resource_name[_83j]",
"def mWFP(YKHO) -> str:\n return YKHO._run_na... | [
"0.72408164",
"0.6586908",
"0.6017929",
"0.5872334",
"0.5848563",
"0.57398605",
"0.5701947",
"0.56952333",
"0.5683321",
"0.56223446",
"0.56042653",
"0.55954546",
"0.55832714",
"0.5579514",
"0.55088836",
"0.5507374",
"0.549231",
"0.5486381",
"0.54799616",
"0.5463582",
"0.54357... | 0.0 | -1 |
The result state of the ScanRun. This field is only available after the execution state reaches "FINISHED". | def ZsSl(YKHO) -> str:
return qe4Y.get(YKHO, 'result_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Aofo(YKHO):\n return YKHO._result.result",
"def qsnM(YKHO, iXC1):\n return Aofo.RESULT_DONE",
"def Aofo(YKHO):\n return YKHO._result",
"def Aofo(YKHO):\n return YKHO._result",
"def Aofo(YKHO):\n return YKHO._result",
"def Aofo(YKHO):\n return YKHO._result",
"def Aofo(YKHO):\n r... | [
"0.7023594",
"0.6895602",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68900293",
"0.68690217",
"0.68690217",
"0.6817144",
"0.6780774",
"0.6780774",
"0.6780774",
"0.6780774",
"0.... | 0.76050186 | 0 |
The time at which the ScanRun started. | def SWox(YKHO) -> str:
return qe4Y.get(YKHO, 'start_time') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWox(YKHO):\n return YKHO.start().time",
"def SWox(YKHO):\n return YKHO.start().time",
"def lAAs(YKHO):\n pass",
"def SWox(YKHO):\n return YKHO.time_list[0]",
"def SWox(YKHO):\n return YKHO.__start_time",
"def yKcO(YKHO):\n return r0Kr(YKHO._inst['StartTime'])",
"def SWox(YKHO):\n... | [
"0.7734192",
"0.7734192",
"0.7611837",
"0.75948155",
"0.7573613",
"0.7550033",
"0.75310177",
"0.75212467",
"0.7519283",
"0.7493849",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
"0.7489984",
... | 0.7602448 | 5 |
Creates an adjacency map where the keys are the nodes, and the values are the nodes nieghbors | def Dx3p(iBIi, E3D9, ywwl):
Eqbt = {}
for Mkmy in range(E3D9):
for Z9rn in range(ywwl):
Q6kx = (Mkmy, Z9rn)
A_IW = BTfj(Mkmy, Z9rn, E3D9, ywwl)
Eqbt[Q6kx] = A_IW
return Eqbt | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def COyA(Ziit, mC4V):\n Csk6 = {}\n for exwG in Ziit:\n Csk6[exwG] = {}\n Csk6[exwG]['out'] = []\n Csk6[exwG]['visited'] = False\n Csk6[exwG]['distance'] = None\n for tTpl in mC4V:\n i4Va = tTpl[0]\n rUTj = tTpl[1]\n if tTpl[0] != tTpl[1]:\n Csk6... | [
"0.7098143",
"0.66646636",
"0.6585989",
"0.65741956",
"0.6569981",
"0.6519343",
"0.6443137",
"0.64169645",
"0.64148104",
"0.63999975",
"0.6389977",
"0.63881963",
"0.6383876",
"0.63331836",
"0.63321024",
"0.63288873",
"0.6289509",
"0.6280418",
"0.626654",
"0.62595075",
"0.6259... | 0.7438439 | 0 |
Empties the proxy list to forcefully refresh the available proxy list. | def gIwx(YKHO):
YKHO.proxies = []
YKHO.proxy_index = 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QzkH(YKHO):\n YKHO._proxy = None",
"def YrLy(YKHO) -> None:\n Odov = YKHO.db_proxy.get_proxies(YKHO.__offset, YKHO.__limit, min_score=YKHO.__min_score)\n for kMyc in Odov:\n WDZp = {'ip': kMyc.get('ip'), 'port': kMyc.get('port')}\n with YKHO.lock_active_proxies:\n if WDZp in... | [
"0.7836149",
"0.7394541",
"0.68791646",
"0.68525094",
"0.6757859",
"0.6625303",
"0.659033",
"0.6520154",
"0.6500246",
"0.6488297",
"0.6447251",
"0.63898253",
"0.6387529",
"0.6366061",
"0.6366061",
"0.63639313",
"0.63485795",
"0.6344345",
"0.6323958",
"0.6320549",
"0.6284358",... | 0.83798707 | 0 |
Returns a decimal string formatted for TeX math mode. | def SOnQ(mLGw: str):
return wcDz + mLGw + wcDz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Edr7(wEf2, eRdl):\n mLGw = '%.*g' % (eRdl, wEf2)\n if 'e' in mLGw:\n mLGw = mLGw.replace('e-0', 'e-')\n mLGw = mLGw.replace('e', '\\\\cdot 10^{') + '}'\n return mLGw",
"def HPDY(YKHO, eOtH):\n if eOtH.content.startswith('$$'):\n return YKHO.render_raw_text(eOtH)\n return '... | [
"0.7038989",
"0.68821895",
"0.6729587",
"0.6682906",
"0.6580246",
"0.65575004",
"0.6541273",
"0.65220875",
"0.645069",
"0.63956106",
"0.6386316",
"0.6268848",
"0.6256542",
"0.622248",
"0.62216604",
"0.6203026",
"0.61729306",
"0.6148532",
"0.61463463",
"0.6124907",
"0.6088779"... | 0.65098166 | 8 |
Returns a scientific notation string formatted for TeX math mode. | def xd7s(mLGw: str):
if 'e' not in mLGw.lower():
mLGw = '{:E}'.format(mLGw)
hSGN = mLGw.lower().split('e')
return wcDz + hSGN[0] + ICNt[0] + hSGN[1] + ICNt[1] + wcDz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDoF(mLGw):\n TK2h = '%10.5E' % mLGw\n HmgC = TK2h.split('E')\n w520 = int(HmgC[1])\n if w520 < -99:\n return ' 0.000E+00'\n if w520 < 0:\n Zihr = '-'\n else:\n Zihr = '+'\n return ('%sE%s%s' % (HmgC[0], Zihr, HmgC[1][-2:])).rjust(12)",
"def FDoF(YKHO, mLGw):\n m... | [
"0.6678022",
"0.65693533",
"0.65449",
"0.65110767",
"0.6462769",
"0.64459646",
"0.64086294",
"0.6351836",
"0.6345166",
"0.63396835",
"0.6325501",
"0.63210386",
"0.632093",
"0.6318702",
"0.6274388",
"0.6258621",
"0.61911696",
"0.6179978",
"0.6173358",
"0.61715084",
"0.615961",... | 0.57540154 | 46 |
Calculates the simple moving average of the dataset given the selected window size | def gP6X(KnxT, S6pA):
a9Cy = []
for YRbF in range(len(S6pA)):
if KnxT <= YRbF:
a9Cy.append(sum([WKvO for WKvO in S6pA[YRbF - KnxT:YRbF]]) / KnxT)
return a9Cy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZCKv(nPrm, yMhW):\n return oyIN.convolve(nPrm, oyIN.ones((yMhW,)) / yMhW, mode='same')",
"def ZCKv(nPrm, yMhW):\n KnxT = oyIN.ones(int(yMhW)) / float(yMhW)\n return oyIN.convolve(nPrm, KnxT, 'same')",
"def ZCKv(nPrm, yMhW):\n fHeP = []\n zqxI = int((yMhW - 1) / 2)\n for exwG in range(len(... | [
"0.85826373",
"0.8550754",
"0.8203381",
"0.79938453",
"0.79537296",
"0.7880071",
"0.78654903",
"0.78231317",
"0.77917004",
"0.77917004",
"0.77917004",
"0.77917004",
"0.7790321",
"0.7778817",
"0.7705706",
"0.7654242",
"0.7653812",
"0.76436865",
"0.76097494",
"0.75970644",
"0.7... | 0.7178548 | 43 |
Get starting values for simulation. Returns array_like Starting values for price and variance | def orK2(YKHO):
return [1, YKHO.param.mean_v, YKHO.param.mean_v] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MzcA(YKHO) -> oyIN.ndarray:\n YKHO._assert_deterministic()\n return YKHO._xa.values[0, :, 0].copy()",
"def T9N6(YKHO):\n yGTL = YKHO.sim_params['mu']\n Mkmy = YKHO.sim_params['r']\n WTkW = YKHO.sim_params['sigma']\n JRYC = YKHO.sim_params['dt']\n jCGB = YKHO.sim_params['S0']\n nMvt = ... | [
"0.6133278",
"0.5899784",
"0.5783172",
"0.5779904",
"0.5746429",
"0.55934083",
"0.55418086",
"0.54861367",
"0.5464823",
"0.5437079",
"0.54296464",
"0.54213417",
"0.53851783",
"0.537787",
"0.5371679",
"0.5369431",
"0.5366418",
"0.5347571",
"0.5344255",
"0.53339374",
"0.5303663... | 0.6585794 | 0 |
Matrix A_0 in integrated moments. | def DjjM(YKHO, xqoZ, lVFa):
vb7U = oyIN.zeros((4, 4))
vb7U[1, 1] = gMeL(YKHO.roots(xqoZ, lVFa))[0]
return vb7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nzBN(YKHO):\n return oyIN.matrix([[0, 1, 0.5 * YKHO.dt, YKHO.dt, 0.5 * YKHO.dt, 0.5 * YKHO.dt, YKHO.dt, 0.5 * YKHO.dt], [1, 0, 0, 0, 0, 0, 0, 0], [0, 0, 2, -1, 0, 0, 0, 0], [0, 0, 1, 0, 0, 0, 0, 0], [0, 0, 0, 1, 0, 0, 0, 0], [0, 0, 0, 0, 0, 2, -1, 0], [0, 0, 0, 0, 0, 1, 0, 0], [0, 0, 0, 0, 0, 0, 1, 0]])",
... | [
"0.621739",
"0.6169583",
"0.61682385",
"0.6152559",
"0.6023275",
"0.6003213",
"0.59561884",
"0.5891153",
"0.587329",
"0.5820685",
"0.5760741",
"0.57109946",
"0.5695165",
"0.5668003",
"0.56638604",
"0.5645947",
"0.5637962",
"0.56324387",
"0.5624359",
"0.55961233",
"0.55754733"... | 0.6479313 | 0 |
Matrix A_2 in integrated moments. | def a2cn(YKHO, xqoZ, lVFa):
vb7U = oyIN.zeros((4, 4))
vb7U[1, 1] = gMeL(YKHO.roots(xqoZ, lVFa))[2]
return vb7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E43s(YKHO):\n r8hN = YKHO.norm_fpts[..., None] * YKHO.m0[:, None, :]\n return r8hN.reshape(YKHO.nfpts, -1)",
"def wADC(YKHO):\n wADC = YKHO.M_2n / oyIN.sin(YKHO.beta - YKHO.theta)\n return wADC",
"def E43s(YKHO):\n return YKHO.norm_fpts[:, None, :] * YKHO.m0[..., None]",
"def Y4Nd(*qIxc):\... | [
"0.6208397",
"0.61155945",
"0.5999007",
"0.5698235",
"0.56817615",
"0.5614836",
"0.558602",
"0.5526637",
"0.5461468",
"0.54544413",
"0.5443386",
"0.5443386",
"0.5439991",
"0.5411237",
"0.53990513",
"0.533013",
"0.53273857",
"0.5321613",
"0.53191596",
"0.52913517",
"0.52765423... | 0.6279378 | 0 |
Matrix A_3 in integrated moments. | def Y96J(YKHO, xqoZ, lVFa):
vb7U = oyIN.zeros((4, 4))
vb7U[0, 0] = gMeL(YKHO.roots(xqoZ, lVFa)[:2])[0]
vb7U[1, 1] = gMeL(YKHO.roots(xqoZ, lVFa))[3]
vb7U[3, 1] = 0.5 - xqoZ.lmbd
vb7U[3, 3] = vb7U[0, 0]
return vb7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kt7Z(EcVT):\n return oyIN.mean(EcVT[:, :, oyIN.newaxis] * EcVT[:, oyIN.newaxis, :], axis=0)",
"def uSPC(YKHO):\n gL_5 = oyIN.zeros((YKHO.nbeads, 3 * YKHO.natoms), float)\n gL_5[:, 0:3 * YKHO.natoms:3] = YKHO.m\n gL_5[:, 1:3 * YKHO.natoms:3] = gL_5[:, 0:3 * YKHO.natoms:3]\n gL_5[:, 2:3 * YKHO.n... | [
"0.6748898",
"0.6633105",
"0.6160713",
"0.6160713",
"0.5952238",
"0.5730539",
"0.5655928",
"0.56088036",
"0.56060606",
"0.56060606",
"0.5592709",
"0.5571296",
"0.5563031",
"0.55208784",
"0.5517144",
"0.54851174",
"0.5470162",
"0.54700845",
"0.53551406",
"0.5353208",
"0.533656... | 0.657398 | 2 |
Matrix A_4 in integrated moments. | def I36t(YKHO, xqoZ, lVFa):
vb7U = oyIN.zeros((4, 4))
vb7U[0, 0] = gMeL(YKHO.roots(xqoZ, lVFa)[:2])[1]
vb7U[1, 1] = gMeL(YKHO.roots(xqoZ, lVFa))[4]
vb7U[3, 1] = (0.5 - xqoZ.lmbd) * vb7U[0, 0]
vb7U[3, 3] = vb7U[0, 0]
return vb7U | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MuF2(YKHO):\n r8hN = YKHO.m1.reshape(YKHO.nupts, -1, YKHO.nupts).swapaxes(0, 1)\n return r8hN.reshape(-1, YKHO.nupts)",
"def MuF2(YKHO):\n return YKHO.m1.swapaxes(2, 1)[..., None]",
"def h2Hz(YKHO):\n return YKHO._collect_as_array('a4')",
"def cSkd():\n return NUGf.identity(4, 'f')",
"de... | [
"0.6227706",
"0.6208847",
"0.61226296",
"0.5992327",
"0.59240896",
"0.5663057",
"0.56357116",
"0.56138325",
"0.55798674",
"0.54958594",
"0.5488528",
"0.54854256",
"0.547549",
"0.54343253",
"0.54343253",
"0.5378627",
"0.53700155",
"0.5353069",
"0.53368515",
"0.5326023",
"0.532... | 0.67638355 | 0 |
Matrix A in integrated moments. | def ZUdX(YKHO, xqoZ, vcn7=None):
ZUdX = (YKHO.mat_a0(xqoZ, 1), YKHO.mat_a1(xqoZ, 1), YKHO.mat_a2(xqoZ, 1), YKHO.mat_a3(xqoZ, 1), YKHO.mat_a4(xqoZ, 1), YKHO.mat_a5(xqoZ, 1))
return oyIN.hstack(ZUdX)[vcn7].squeeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B49V(YKHO, pR3T, Y7fn, KMvS):\n XLs1 = oyIN.zeros((YKHO.n, YKHO.n), dtype=YKHO.precision)\n for YRbF in range(YKHO.n):\n for r845 in range(YKHO.n):\n lypQ = 0.0\n ciZM = 0.0\n for a1PO in range(len(pR3T) - 1):\n lypQ += YKHO._eta(a1PO, len(pR3T) - 1)... | [
"0.630461",
"0.629273",
"0.6270537",
"0.6129725",
"0.61167306",
"0.6069523",
"0.6069458",
"0.6052261",
"0.5978833",
"0.58982146",
"0.58859813",
"0.5852225",
"0.57953423",
"0.5775213",
"0.5750059",
"0.5745161",
"0.5730149",
"0.57251054",
"0.5723911",
"0.57203436",
"0.5689678",... | 0.0 | -1 |
Get the index of the maximum entry in ``arr``. The parameter can be a dictionary. | def q1NN(ezWE):
if isinstance(ezWE, dict):
return max(ezWE.items(), key=seET.itemgetter(1))[0]
else:
return oyIN.argmax(ezWE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Np5D(ezWE):\n if isinstance(ezWE, dict):\n return max(ezWE.values())\n if isinstance(ezWE, list):\n return max(ezWE)\n return oyIN.max(ezWE)",
"def BYEG(jzdc):\n return oyIN.argmax(jzdc)",
"def ZpZh(a1PO):\n r8hN = max(a1PO)\n for YRbF in range(len(a1PO)):\n if a1PO[Y... | [
"0.7732987",
"0.7109822",
"0.69889826",
"0.6950859",
"0.6915194",
"0.68651277",
"0.67848444",
"0.6763439",
"0.675994",
"0.6742854",
"0.6728281",
"0.6712531",
"0.6648974",
"0.66227925",
"0.6612326",
"0.6579292",
"0.6568351",
"0.65649885",
"0.6560233",
"0.6556693",
"0.6541953",... | 0.79831326 | 0 |
flattens list of lists | def qnkS(EcVT):
return [LVAh for WKvO in EcVT for LVAh in WKvO] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PA2I(a1PO):\n return [ZfUD for XuXy in a1PO for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n return [ZfUD for XuXy in vC9B for ZfUD in XuXy]",
"def PWgb(vC9B):\n ... | [
"0.8175167",
"0.81303227",
"0.81303227",
"0.81303227",
"0.80705196",
"0.8067905",
"0.80516875",
"0.8043566",
"0.8033231",
"0.802408",
"0.79832596",
"0.79551077",
"0.79522",
"0.7924868",
"0.79176635",
"0.79168975",
"0.79152673",
"0.7914733",
"0.7912146",
"0.79077303",
"0.79049... | 0.7701904 | 47 |
turns list of lists into ndarray | def yHIf(EcVT, hVLt=-1, Lx0h=0):
nSFH = max(len(max(EcVT, key=len)), Lx0h)
return oyIN.array([YRbF + [hVLt] * (nSFH - len(YRbF)) for YRbF in EcVT]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SzeA(XZLe):\n return oyIN.stack(XZLe, axis=0)",
"def xgZW(yv6U, usx6, WfCS):\n wc14 = oyIN.reshape(oyIN.array(yv6U), (usx6, WfCS))\n return wc14",
"def r9hJ(Cmjf):\n ROpF = list(Cmjf[0].shape)\n ROpF[:0] = [len(Cmjf)]\n ezWE = oyIN.concatenate(Cmjf).reshape(ROpF)\n return ezWE",
"def... | [
"0.84932864",
"0.7536719",
"0.74920005",
"0.74018633",
"0.72700083",
"0.7228365",
"0.72063506",
"0.7205228",
"0.71308875",
"0.7048029",
"0.7041666",
"0.70105016",
"0.69097173",
"0.6904348",
"0.68681574",
"0.6849519",
"0.68174845",
"0.68041754",
"0.67230153",
"0.66231096",
"0.... | 0.0 | -1 |
Splits a string at commas and removes blanks. | def WN62(KCHu, JfyU=None):
if not KCHu:
return []
SQ3m = KCHu.split(',')
if JfyU is None:
return [geyT.strip() for geyT in SQ3m]
return [JfyU(geyT.strip()) for geyT in SQ3m] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ehrM(vIwR):\n if vIwR is None:\n return []\n return [exwG.strip() for exwG in vIwR.split(',') if exwG]",
"def y8Pc(YKHO, KCHu):\n return ZbWC.split('[,\\\\s]+', KCHu)",
"def tFpc(KCHu):\n return [jzdc.replace('\\\\,', ',') for jzdc in ZbWC.split('(?<!\\\\\\\\),', KCHu) if jzdc]",
"def ... | [
"0.7621842",
"0.7540975",
"0.73327947",
"0.7271043",
"0.7230286",
"0.7186238",
"0.7186238",
"0.7125935",
"0.6998162",
"0.6985764",
"0.6902679",
"0.6855239",
"0.682975",
"0.6817381",
"0.6816011",
"0.67713654",
"0.6725126",
"0.64736205",
"0.64498377",
"0.6420158",
"0.6405141",
... | 0.71056074 | 8 |
Create a matrix where every row is a pair of sentences and every column in a feature. Feature (column) order is not important to the algorithm. | def RGCT(gNeq):
bySB = ['NIST', 'BLEU', 'Word Error Rate', 'Longest common substring', 'Levenshtein distance']
URgr = []
nzDj = []
Uv4n = []
pyo3 = []
O5Ij = []
for q2Xo in gNeq:
n2Q1 = q2Xo[0]
SpII = q2Xo[1]
wUGs = dFss(q2Xo[0])
A2Od = dFss(q2Xo[1])
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def etgk(CZRf, pZ_I, vWlR, Mz4i, OJCd, PdIf, wIbM):\n sc89, B8xe = ({}, {})\n CZRf = S5Za(CZRf, maxlen=wIbM, padding='post')\n sc89['main_input'] = CZRf\n pZ_I = S5Za(pZ_I, maxlen=wIbM, padding='post')\n B8xe['main_input'] = pZ_I\n for WKvO in vWlR.keys():\n LVAh = WKvO.lower() + '_input'\... | [
"0.6908151",
"0.6829682",
"0.6379209",
"0.62921566",
"0.61238563",
"0.60784096",
"0.604898",
"0.60461015",
"0.60410833",
"0.60210264",
"0.59940314",
"0.5992205",
"0.59867877",
"0.59637594",
"0.59310395",
"0.5909961",
"0.58860534",
"0.58841425",
"0.5878436",
"0.5866299",
"0.58... | 0.0 | -1 |
Return a map sorted by keys. | def GnuM(YKHO, eHNT=lambda tTpl: tTpl[0]):
return nkvf(sorted(YKHO.items(), key=eHNT)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XEDq(J8oL):\n return g760.OrderedDict(((H5ew, J8oL[H5ew]) for H5ew in XN37.get_sorted(J8oL)))",
"def XEDq(J8oL):\n return XN37.get_dict(((H5ew, J8oL[H5ew]) for H5ew in XN37.get_sorted(J8oL.keys())))",
"def ZcvG(Csk6):\n return sorted(Csk6)",
"def X_7r(YKHO):\n Aofo = [(Ty9i.name, Ty9i) for Ty... | [
"0.7847355",
"0.77259606",
"0.7404873",
"0.7352251",
"0.6806827",
"0.67882705",
"0.66654545",
"0.65920764",
"0.6588639",
"0.65177923",
"0.6517352",
"0.6501545",
"0.6496943",
"0.64967567",
"0.64904",
"0.64648443",
"0.64557236",
"0.6451428",
"0.64254177",
"0.63765293",
"0.63743... | 0.7405954 | 2 |
Apply f then yield each value. | def map(YKHO, eHNT):
for tTpl in YKHO.values():
yield eHNT(tTpl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bQPe(c2Yh, eHNT):\n for WKvO in c2Yh:\n yield eHNT(WKvO)",
"def X73w(eHNT, WKvO):\n return pD6w(wPFE(WKvO), lambda AOlJ, bGrB: eHNT(AOlJ))",
"def gY_a(YKHO, eHNT):\n for WKvO in YKHO:\n eHNT(WKvO)",
"def map(YKHO, eHNT: callable, OxJJ: Iterator) -> bDy6:\n with YKHO:\n YK... | [
"0.72578955",
"0.7243649",
"0.71685266",
"0.71614796",
"0.701903",
"0.69151217",
"0.684138",
"0.6752517",
"0.6713989",
"0.6661428",
"0.6615547",
"0.6549969",
"0.650009",
"0.64975035",
"0.64422894",
"0.6436951",
"0.64104307",
"0.6403825",
"0.6379322",
"0.63508004",
"0.6341408"... | 0.8002367 | 0 |
Returns a datetime object from an input string formatted according to RFC3339. | def qkdP(YKHO, _c1T):
hZwX = ZbWC.sub('[\\+|\\.].+', '', _c1T)
U2sP = qcWV.datetime.strptime(hZwX.replace('T', ' ').replace('Z', ''), '%Y-%m-%d %H:%M:%S')
return U2sP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yXns(quhv):\n U5bT = None\n for FMLJ in QkkH:\n try:\n U5bT = qcWV.datetime.strptime(quhv, FMLJ)\n if U5bT.tzinfo is None:\n U5bT = U5bT.replace(tzinfo=qcWV.timezone.utc)\n continue\n except:\n pass\n if U5bT is None:\n ra... | [
"0.7925611",
"0.74052405",
"0.7376447",
"0.7202176",
"0.7199218",
"0.71845496",
"0.71330005",
"0.7054435",
"0.70480865",
"0.70480865",
"0.70480865",
"0.70480865",
"0.7042905",
"0.7027849",
"0.70231205",
"0.6987327",
"0.69864494",
"0.69576025",
"0.6955555",
"0.69447",
"0.69212... | 0.687147 | 24 |
Returns success of payment. | def zN5s(YKHO, enKQ, QcGO, Z5kt, lo9Y=None):
if enKQ.money >= Z5kt:
enKQ.money -= Z5kt
QcGO.money += Z5kt
RdPg('%s pays %s %s: %s' % (enKQ.name, QcGO.name, Z5kt, lo9Y))
return True
else:
RdPg('%s FAILS to pay %s %s: %s' % (enKQ.name, QcGO.name, Z5kt, lo9Y))
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pRLn(YKHO):\n return YKHO.__payment_result",
"def nyyK(YKHO) -> bool:\n return qe4Y.get(YKHO, 'success')",
"def nyyK(YKHO):\n return YKHO.responseEnvelope.success",
"def nyyK(YKHO):\n return YKHO.responseEnvelope.success",
"def yUr1(YKHO):\n return YKHO.success",
"def DFxG(YKHO):\n ... | [
"0.73594135",
"0.7182404",
"0.7178497",
"0.7178497",
"0.7103928",
"0.7084936",
"0.7084936",
"0.7021814",
"0.7021814",
"0.70166874",
"0.70166874",
"0.70166874",
"0.70166874",
"0.70166874",
"0.68679667",
"0.6809729",
"0.6809729",
"0.67707205",
"0.67707205",
"0.67707205",
"0.677... | 0.0 | -1 |
Initialize the absolute path to the git project | def FIMM(YKHO, sWmO):
YKHO._cwd = sWmO
YKHO._root = YKHO._git_root() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cjcU(YKHO):\n if YKHO.config is not None:\n return\n YKHO.config = YKHO.get_config()\n YKHO.project_name = YKHO.config['project_name']\n YKHO.project_dir = YKHO.config['project_dir']\n HwRy.path.append(YKHO.project_dir)\n YKHO.cwd_relative = YKHO._get_relative_dir()\n Hy7s.chdir(YKH... | [
"0.7456702",
"0.7338032",
"0.71020806",
"0.7098786",
"0.70737284",
"0.7015363",
"0.6970946",
"0.6919457",
"0.68219435",
"0.6795957",
"0.6746",
"0.67419463",
"0.669428",
"0.6675452",
"0.6649363",
"0.65946645",
"0.6561858",
"0.64860266",
"0.6466424",
"0.6460952",
"0.64486206",
... | 0.71116644 | 2 |
Returns git_diff_path relative to cwd. | def t_yv(YKHO, W35o):
d7Us = Hy7s.path.relpath(YKHO._cwd, YKHO._root)
if isinstance(d7Us, jKi7.binary_type):
d7Us = d7Us.decode()
XNWQ = Hy7s.path.relpath(W35o, d7Us)
if isinstance(XNWQ, jKi7.binary_type):
XNWQ = XNWQ.decode()
return XNWQ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ig3o():\n cYu8 = Hy7s.path.dirname(xAKo)\n jNha = Hy7s.path.normpath(Hy7s.path.join(cYu8, Hy7s.pardir))\n return Hy7s.path.join(jNha, '.git')",
"def Y1fD(boHx: Git, qaEx: str) -> str:\n return boHx.repo.git.diff('-U0', '--', qaEx)",
"def ftSz():\n OyQC = Yn3K.Popen(['git', 'rev-parse', '--sh... | [
"0.7193375",
"0.69342834",
"0.68118006",
"0.66704077",
"0.6604836",
"0.65407795",
"0.6481724",
"0.64364016",
"0.6400892",
"0.63914347",
"0.63872004",
"0.6385486",
"0.63343614",
"0.6286851",
"0.62844986",
"0.62792623",
"0.6271898",
"0.62282735",
"0.6219358",
"0.6219358",
"0.61... | 0.7708453 | 0 |
Returns the output of `git revparse showtoplevel`, which is the absolute path for the git project root. | def Jpqd(YKHO):
oUZx = ['git', 'rev-parse', '--show-toplevel']
NBjn = Yn3K.Popen(oUZx, stdout=Yn3K.PIPE, stderr=Yn3K.PIPE)
zJsh, wIbz = NBjn.communicate()
return zJsh.strip() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LIOs():\n return CD35(['git', 'rev-parse', '--show-toplevel']).strip()",
"def CYyW():\n return Yn3K.check_output('git rev-parse --show-toplevel', text=True, shell=True).rstrip()",
"def CYyW():\n return Yn3K.check_output(['git', 'rev-parse', '--show-toplevel']).rstrip(' \\r\\n')",
"def gUWx():\n ... | [
"0.86799496",
"0.8281697",
"0.82572937",
"0.7997666",
"0.7937517",
"0.78536063",
"0.7802617",
"0.7710054",
"0.7695407",
"0.7695407",
"0.7695407",
"0.7632961",
"0.7626903",
"0.75880724",
"0.75088847",
"0.74900734",
"0.7457737",
"0.74566686",
"0.73818755",
"0.73242086",
"0.7296... | 0.8230673 | 3 |
Return a list of `(token_type, value)` tokens parsed from the source file. | def DmkH(YKHO):
return YKHO._src_tokens | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WEL_(YKHO):\n Nqlg = iter(YKHO._get_source_lines())\n s2mk = wr3U.generate_tokens(xBlr.partial(jKi7.next, Nqlg))\n return list(s2mk)",
"def IMOe(YKHO, zFiD):\n r8hN = None\n cWZv = 0\n UH0n = len(zFiD)\n WrFl = []\n while cWZv < UH0n:\n PoLX = myG8\n for FUAR, PoLX in YK... | [
"0.77329373",
"0.71473855",
"0.6953873",
"0.69517463",
"0.6923273",
"0.6909005",
"0.6803821",
"0.6772692",
"0.67393357",
"0.67371273",
"0.67243034",
"0.6612533",
"0.65226394",
"0.64870167",
"0.6462526",
"0.6446423",
"0.64101326",
"0.63974583",
"0.6382759",
"0.6329341",
"0.630... | 0.6757692 | 8 |
Given a list of line numbers, return a list of hunks represented as `(start, end)` tuples. | def HDDK(UaPs):
rZBD = []
v9hw = None
for zFiD in sorted(UaPs):
if zFiD - 1 == v9hw:
yKcO, bGrB = rZBD[-1]
rZBD[-1] = (yKcO, zFiD)
else:
rZBD.append((zFiD, zFiD))
v9hw = zFiD
return rZBD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rZBD(Nqlg):\n tkdV = lambda PI_i: tuple((int(YRbF) for YRbF in PI_i.split(',')))\n hyWG = []\n for zFiD in Nqlg:\n if w2wV(zFiD):\n break\n elif zFiD.startswith('@@'):\n Nepm = IW4k.search(zFiD)\n hyWG.append((tkdV(Nepm.group(1)), tkdV(Nepm.group(2))))\n ... | [
"0.7227917",
"0.6756006",
"0.6629543",
"0.64493877",
"0.60301226",
"0.60234684",
"0.59704447",
"0.5627296",
"0.5616287",
"0.5508587",
"0.54357886",
"0.5435336",
"0.5414207",
"0.54097676",
"0.5370591",
"0.5327589",
"0.53250176",
"0.5314803",
"0.5312615",
"0.5305092",
"0.526962... | 0.74240726 | 0 |
Return a random byte string with length in the range [0, `MAX_LINE_LENGTH`] (inclusive). | def eHHU():
return tuKI.choice(cDjW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWvy(wzH_=16):\n KCHu = ''\n tSyp = tuKI.randint(0, wzH_)\n while tSyp > 0:\n KCHu += R71E()\n tSyp -= 1\n return KCHu",
"def yMb3():\n return BWvy(tuKI.randint(1, P6m3))",
"def TfQU(min=GksK, max=GksK):\n ZBaj = tuKI.randint(min, max)\n return ''.join((tuKI.choice(J0d3) ... | [
"0.7256804",
"0.7029482",
"0.6943419",
"0.6904405",
"0.68954545",
"0.6860891",
"0.67894846",
"0.67253196",
"0.6687963",
"0.6654326",
"0.6652486",
"0.6650885",
"0.6647708",
"0.6645213",
"0.6638672",
"0.65927047",
"0.6577415",
"0.6557894",
"0.652846",
"0.65232193",
"0.6521774",... | 0.6551467 | 18 |
Patch the output of `git` commands and `os.getcwd` set the cwd to the fixtures dir | def FCbF(YKHO):
YKHO._old_cwd = Hy7s.getcwd()
Hy7s.chdir(kxgk(''))
YKHO._mock_popen = Po4F('subprocess.Popen').start()
YKHO._mock_sys = Po4F('diff_cover.tool.sys').start()
YKHO._mock_getcwd = Po4F('diff_cover.tool.os.getcwd').start()
YKHO._git_root_path = '/project/path'
YKHO._mock_getcwd.re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FCN7(HUs2, GDPU):\n boHx = tgM5.Repo.init(HUs2.workspace)\n HUs2.run('cp -R {} data/'.format(GDPU))\n HUs2.run('cp -R {} results/'.format(GDPU))\n HUs2.run('git add .')\n boHx.index.commit('Initial commit')\n return HUs2.workspace",
"def eCGt(YKHO, AZgw):\n b4dd = Hy7s.getcwd()\n Hy7s... | [
"0.68825716",
"0.6775684",
"0.6679644",
"0.6612961",
"0.6546584",
"0.64627194",
"0.6454979",
"0.63789886",
"0.63203317",
"0.63153726",
"0.626001",
"0.6183666",
"0.6136164",
"0.6123438",
"0.6066984",
"0.6053324",
"0.6033667",
"0.60241884",
"0.5975017",
"0.5960529",
"0.59558105... | 0.731567 | 0 |
Assert that the snippets loaded using `violation_lines` have the correct ranges of lines. `violation_lines` is a list of line numbers containing violations (which should get included in snippets). `expected_ranges` is a list of `(start, end)` tuples representing the starting and ending lines expected in a snippet. Line... | def _bOO(YKHO, F_R3, wg1V):
HERL = h5vu.load_snippets(YKHO._src_path, F_R3)
YKHO.assertEqual(len(HERL), len(wg1V))
for VOsW, ZAgJ in zip(HERL, wg1V):
YKHO.assertEqual(VOsW.line_range(), ZAgJ)
yKcO, Os4s = ZAgJ
YKHO.assertEqual(VOsW.text(), YKHO._src_lines(yKcO, Os4s)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zh0C(Emd4, CMeD, F_R3):\n SQw4 = (None, None)\n RQMD = 0\n O0Sp = []\n for kbdK in range(1, CMeD + 1):\n if SQw4[0] is None:\n if kbdK in F_R3:\n NOdj = max(1, kbdK - Emd4.NUM_CONTEXT_LINES)\n SQw4 = (NOdj, None)\n RQMD = 0\n eli... | [
"0.6358155",
"0.6203647",
"0.58837026",
"0.5839725",
"0.5823042",
"0.56381357",
"0.5605129",
"0.54518354",
"0.542704",
"0.54030013",
"0.5399779",
"0.5362544",
"0.53504425",
"0.5343771",
"0.5334122",
"0.53251535",
"0.53238946",
"0.53228986",
"0.53158087",
"0.5310246",
"0.52783... | 0.8873008 | 0 |
Return a list of the lines in src_path that were measured by this reporter. Some reporters will always consider all lines in the file "measured". As an optimization, such violation reporters can return `None` to indicate that all lines are measured. The diff reporter generator will then use all changed lines provided b... | def RDmv(YKHO, gWlF):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RDmv(YKHO, gWlF):\n YKHO._cache_file(gWlF)\n return YKHO._info_cache[gWlF][1]",
"def F_R3(YKHO, gWlF):\n il0h = YKHO._diff_violations.get(gWlF)\n if il0h is None:\n return []\n return sorted(il0h.lines)",
"def L94x(YKHO, gWlF):\n Dxf9 = YKHO._git_diff()\n return Dxf9.get(gWlF, [... | [
"0.7756999",
"0.6963593",
"0.6941767",
"0.6895049",
"0.6883914",
"0.6427472",
"0.6392855",
"0.63599634",
"0.6228442",
"0.61851716",
"0.59008807",
"0.58932996",
"0.5795934",
"0.577872",
"0.56114495",
"0.5599788",
"0.55572087",
"0.5537342",
"0.5532213",
"0.5526753",
"0.5452393"... | 0.77706546 | 0 |
Same as dict.update, but updates also nested dicts instead of overriding then | def C09e(tbx9, sUFK):
for G1Hx, Ty9i in sUFK.items():
if isinstance(Ty9i, g760.Mapping):
Mkmy = C09e(tbx9.get(G1Hx, {}), Ty9i)
tbx9[G1Hx] = Mkmy
else:
tbx9[G1Hx] = sUFK[G1Hx]
return tbx9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ph7y(mUif, sUFK):\n for H5ew, wEf2 in sUFK.items():\n if isinstance(wEf2, dict):\n mUif[H5ew] = ph7y(mUif.get(H5ew, {}), wEf2)\n else:\n mUif[H5ew] = wEf2\n return mUif",
"def fqV4(eJh7, QdZT):\n for H5ew, BWXx in eJh7.items():\n if H5ew not in QdZT:\n ... | [
"0.8490888",
"0.83779466",
"0.83585495",
"0.82904047",
"0.8224345",
"0.8210721",
"0.8178045",
"0.80341107",
"0.80299866",
"0.7949087",
"0.790327",
"0.7804147",
"0.77910924",
"0.77887994",
"0.7784655",
"0.77701724",
"0.77522993",
"0.7729787",
"0.7725461",
"0.77232826",
"0.7681... | 0.8261738 | 4 |
Convert apparent magnitude into flux (erg s^1 cm^2 Hz^1). Usage | def StoM(HRy0):
Lxsl = 10.0 ** ((HRy0 + yyMP) / -2.5)
return Lxsl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jr9H(FOSW, n8o7):\n shSu = n8o7 * 10 ** (-0.4 * FOSW)\n return shSu",
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def Knmv(shSu, n8o7):\n FOSW = -2.5 * oyIN.log10(shSu / n8o7)\n return FOSW",
"def ROL0(... | [
"0.76974326",
"0.7576505",
"0.7316773",
"0.7264243",
"0.6975954",
"0.6929412",
"0.69189954",
"0.6870971",
"0.68305767",
"0.67869484",
"0.67165107",
"0.6687707",
"0.6620704",
"0.6608195",
"0.6555621",
"0.6555515",
"0.6470474",
"0.64699024",
"0.6455779",
"0.64480793",
"0.636436... | 0.0 | -1 |
Convert absolute magnitude into luminosity (erg s^1 Hz^1). Usage | def hlLy(HRy0):
PtXs = 4.0 * epAf.pi * (10.0 * EqBn.pc_cm) ** 2.0
G8EM = PtXs * 10.0 ** ((HRy0 + yyMP) / -2.5)
return G8EM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yo1d(ZnHf):\n return oyIN.power(10, -0.4 * ZnHf)",
"def FAFx(N0xI):\n return -oyIN.log(N0xI) / (0.4 * oyIN.log(10))",
"def yo1d(ZnHf, k3AV=None):\n if k3AV is None:\n k3AV = 0.0\n elif isinstance(k3AV, str):\n if k3AV not in OMm8:\n raise KeyError('unknown zeropoint `{}... | [
"0.80814415",
"0.7865499",
"0.6886413",
"0.6759337",
"0.667391",
"0.665025",
"0.66235155",
"0.65786755",
"0.65741694",
"0.6545514",
"0.6533794",
"0.65176624",
"0.65176624",
"0.65171313",
"0.65069586",
"0.6326288",
"0.6310428",
"0.62944746",
"0.6275255",
"0.6202772",
"0.615730... | 0.0 | -1 |
Convert luminosity (erg s^1 Hz^1) into absolute magnitude. Usage | def XQVr(r3_c):
PtXs = 4.0 * epAf.pi * (10.0 * EqBn.pc_cm) ** 2.0
HRy0 = -2.5 * XTiz.log10(r3_c / PtXs) - yyMP
return HRy0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FAFx(N0xI):\n return -oyIN.log(N0xI) / (0.4 * oyIN.log(10))",
"def yo1d(ZnHf):\n return oyIN.power(10, -0.4 * ZnHf)",
"def FAFx(N0xI, k3AV=None):\n if k3AV is None:\n k3AV = 0.0\n elif isinstance(k3AV, str):\n if k3AV not in OMm8:\n raise KeyError('unknown zeropoint `{}... | [
"0.8262227",
"0.74216753",
"0.7041023",
"0.6811634",
"0.67959887",
"0.67668986",
"0.6638577",
"0.6583929",
"0.6583929",
"0.6470864",
"0.6459144",
"0.6458482",
"0.6393334",
"0.63884985",
"0.6382951",
"0.6370175",
"0.63445675",
"0.633724",
"0.6314457",
"0.6270165",
"0.6258976",... | 0.70617104 | 2 |
The apparent and absolute AB magnitude given a flux. Inputs | def ZIt2(epBp, xTw1, __d3, **hKx3):
if epBp is None:
yGTL = 0.0
epBp = 0
xTw1 = xTw1 / (4.0 * epAf.pi * (10.0 * EqBn.pc_cm) ** 2.0)
else:
yGTL = rk4A(epBp, **hKx3)
yGgi = xTw1 * (1 + epBp)
uH8t = __d3 / (1 + epBp)
ILjO = EqBn.c_light_cm_s / (uH8t * EqBn.angstrom_cm)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KA9l(shSu):\n return -2.5 * oyIN.log10(shSu) - 48.6",
"def wayq(YXbZ, B_ud):\n return 10.0 ** ((B_ud - YXbZ) / 2.5)",
"def bzaD(YKHO, shSu):\n return vlPw(shSu) + YKHO.zeropoint",
"def ROL0(YKHO, shSu, Ebru):\n return -2.5 * epAf.log10(shSu / YKHO.zpbandflux(Ebru))",
"def ZnHf(YKHO, Wjo_, l... | [
"0.7307503",
"0.6941822",
"0.6910348",
"0.6815795",
"0.6761408",
"0.6711825",
"0.6706855",
"0.6633469",
"0.6602151",
"0.6575375",
"0.65385026",
"0.65325016",
"0.65230626",
"0.6484187",
"0.64648324",
"0.6453044",
"0.64377683",
"0.64157176",
"0.638317",
"0.63800716",
"0.6363495... | 0.71641225 | 1 |
Function that creates dummie variables for categorical variables | def _3y6(jQ3Z, ZLJ_=None):
return rLdf.get_dummies(jQ3Z, dummy_na=True, columns=ZLJ_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.columns]])",
"def _3y6(zUQz):\n KqFV = rLdf.DataFrame()\n for _x49 in zUQz.columns.tolist():\n jQ3Z = rLdf.get_dummies(zUQz[_x49], dummy_na=True, prefix=_x49)\n KqFV = rLdf.concat([KqFV, jQ3Z], axis=1)\n retu... | [
"0.70034975",
"0.68187046",
"0.6680701",
"0.66791075",
"0.66629314",
"0.66207016",
"0.6599694",
"0.6541402",
"0.6495736",
"0.63884586",
"0.63325477",
"0.6305405",
"0.62943697",
"0.62821776",
"0.62576556",
"0.6227459",
"0.618009",
"0.61789626",
"0.61366683",
"0.6127119",
"0.60... | 0.0 | -1 |
Returns site or site.provider as `state` query parameter for redirects. This function is executed in the context of the whitelabel's site. | def E3DZ(m_u7, kT1P):
qpDA = qtY4()
if not kO2j(kT1P):
return '%s.%s' % (qpDA, kT1P)
return str(qpDA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G24O(YKHO):\n QTBn = YKHO.request.get('state')\n if QTBn:\n return gnPz.add_query_params(YKHO.request.path_url, [('state', QTBn)])\n else:\n return YKHO.request.path_url",
"def eJ9X(YKHO, QePW, OrKg=None):\n O6IT = YKHO.cleaned_data.get('consumer_zip_postal', None)\n qpDA, YKHO.r... | [
"0.6184783",
"0.59895307",
"0.5891263",
"0.5825266",
"0.57965827",
"0.5656036",
"0.56544095",
"0.56190306",
"0.5503196",
"0.5432778",
"0.5420273",
"0.5407338",
"0.5387972",
"0.53446054",
"0.52528465",
"0.5245635",
"0.51617354",
"0.51557875",
"0.5150461",
"0.51367146",
"0.5130... | 0.597693 | 2 |
Recovered (recovered) Persons These people have recovered from the disease. Yay! Nobody dies in this model. | def Z_KV():
return Olgd['recovered'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yOJ3(YKHO):\n ywwl = 2000\n Guk9 = []\n z6OE = []\n ytd1 = []\n BEuN = [ijjw.agent.Person() for YRbF in range(ywwl)]\n for YRbF in range(ywwl):\n G1Hx = oyIN.random.randint(3, size=1)\n if G1Hx == 0:\n Guk9.append(BEuN[YRbF])\n if G1Hx == 1:\n z6OE.a... | [
"0.576878",
"0.57122815",
"0.57053924",
"0.5692513",
"0.5684288",
"0.5669426",
"0.5657516",
"0.56431323",
"0.5634181",
"0.56300664",
"0.55698067",
"0.55610955",
"0.55111164",
"0.5484983",
"0.53923756",
"0.53513515",
"0.5298325",
"0.5275572",
"0.52739483",
"0.52677834",
"0.523... | 0.54006386 | 14 |
Create a new instance of wrapped hmmlearn estimator. | def r8Tn(YKHO, EcVT, fuBA=None):
from hmmlearn.hmm import PoissonHMM as GEw7
YKHO._hmm_estimator = GEw7(YKHO.n_components, YKHO.startprob_prior, YKHO.transmat_prior, YKHO.lambdas_prior, YKHO.lambdas_weight, YKHO.algorithm, YKHO.random_state, YKHO.n_iter, YKHO.tol, YKHO.verbose, YKHO.params, YKHO.init_params, YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AJAU(YKHO, SStx=True):\n BHCt = i3ak(YKHO.estimator)\n BHCt.n_estimators = 1\n BHCt.warm_start = True\n return BHCt",
"def FIMM(YKHO, BHCt=None):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt=axnu()):\n YKHO.estimator = BHCt",
"def FIMM(YKHO, BHCt=T8WO()):\n YKHO.estimator = BHCt",
... | [
"0.61911553",
"0.6121082",
"0.6037067",
"0.59940666",
"0.5949079",
"0.5935475",
"0.59208995",
"0.58684266",
"0.5864676",
"0.5864676",
"0.5837762",
"0.5760804",
"0.57424843",
"0.5637656",
"0.5605321",
"0.56052995",
"0.5591738",
"0.5586186",
"0.55823725",
"0.5579241",
"0.551078... | 0.56582826 | 13 |
Takes an image path and returns numpy array | def NKF_(Ux0P, VQNc):
LNo8 = cE34(Ux0P)
LNo8 = LNo8.reshape([VQNc])
LNo8 = LNo8.astype(oyIN.float32)
LNo8 = 1.0 - LNo8
return LNo8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QMI5(pmON):\n return Zxt2.misc.imread(pmON)",
"def DbMQ(pmON: str) -> oyIN.ndarray:\n return oyIN.array(hnIv.open(pmON))",
"def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))",
"def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))",
"def uWsq(QMAG):\n return hnIv.open(QMAG)",
"def Ir... | [
"0.9018276",
"0.8581273",
"0.85710686",
"0.8522367",
"0.8418273",
"0.8416986",
"0.8416986",
"0.8416986",
"0.8416986",
"0.8387086",
"0.83720076",
"0.82897985",
"0.81243086",
"0.7931756",
"0.7910882",
"0.7893375",
"0.786938",
"0.78075355",
"0.7787152",
"0.77674514",
"0.77528894... | 0.0 | -1 |
Update the position of this Blender vertex. Does not check if mesh has been updated. Will multiply by matrix_world. | def ZJni(YKHO):
UH6L = YKHO.mesh.get_blender_object().data.vertices[YKHO.blender_vindex]
YKHO.is_updated = True
xoKz = YKHO.mesh.get_matrix_world() * UH6L.co
YKHO.pos[0] = xoKz[0]
YKHO.pos[1] = xoKz[1]
YKHO.pos[2] = xoKz[2] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F9YE(YKHO):\n if YKHO.state == EXca:\n YKHO._pos = YKHO.pos\n return\n u6Z5 = YKHO.pos + YKHO._vel\n WKvO = u6Z5.x % YKHO.world.size[0]\n LVAh = u6Z5.y % YKHO.world.size[1]\n YKHO._pos = lNLu.arrp(WKvO, LVAh)",
"def F9YE(YKHO):\n YKHO.position = YKHO.new_position + YKHO.diff_v... | [
"0.70381814",
"0.67759186",
"0.675175",
"0.6650194",
"0.6650194",
"0.6650194",
"0.64114124",
"0.63832223",
"0.6362866",
"0.63280183",
"0.63200814",
"0.62601733",
"0.62474585",
"0.6239116",
"0.6239116",
"0.6234499",
"0.62312925",
"0.62234235",
"0.61944705",
"0.6153748",
"0.614... | 0.83572555 | 0 |
If there's a pickle for the model, we load it Otherwise build the model from scratch | def fYmY(YKHO):
if YKHO.is_stale():
print('Rebuilding model for {} - {}'.format(YKHO.language_name, YKHO.pickle_name()))
with open(YKHO.training_file, 'r') as eHNT:
YKHO.ngram = IaXp(eHNT.read(), YKHO.language_name)
YKHO.save_pickle()
else:
print('Loading model fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n YKHO._set_model(model=C3ST)",
"def uyMl():\n with open(GPtr.root + '/main/model.bin', 'rb') as vJOV:\n C3ST = t2lc.load(vJOV)\n return C3ST",
"def uyMl(YKHO):\n YKHO.model... | [
"0.7796511",
"0.7758186",
"0.7655628",
"0.7553395",
"0.7553395",
"0.75455356",
"0.7545188",
"0.74947613",
"0.7476942",
"0.7464527",
"0.7433604",
"0.7433604",
"0.7433604",
"0.7433604",
"0.74316114",
"0.74234873",
"0.7422397",
"0.7410544",
"0.74069774",
"0.74069774",
"0.7406977... | 0.0 | -1 |
If there's a pickle for the model, we load it Otherwise build the model from scratch | def kiTG(YKHO):
with open(YKHO.training_file, 'r') as eHNT:
YKHO.ngram = IaXp(eHNT.read(), YKHO.language_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5RJ(YKHO):\n pmON = YKHO._get_model_path()\n with open(pmON, 'rb') as eHNT:\n C3ST = t2lc.load(eHNT)\n YKHO._set_model(model=C3ST)",
"def uyMl():\n with open(GPtr.root + '/main/model.bin', 'rb') as vJOV:\n C3ST = t2lc.load(vJOV)\n return C3ST",
"def uyMl(YKHO):\n YKHO.model... | [
"0.77986324",
"0.7759078",
"0.7657513",
"0.75550026",
"0.75550026",
"0.754733",
"0.7546941",
"0.74965984",
"0.74783516",
"0.7466512",
"0.74364096",
"0.74364096",
"0.74364096",
"0.74364096",
"0.74325174",
"0.7424826",
"0.74239844",
"0.74121046",
"0.74080384",
"0.74080384",
"0.... | 0.0 | -1 |
Adjusts F to account for normalized coordinates by using the transformation matrices. | def lO6N(pT2q: np.ndarray, AgDm: np.ndarray, LmWY: np.ndarray) -> oyIN.ndarray:
ZEBh = oyIN.matmul(LmWY.T, oyIN.matmul(pT2q, AgDm))
return ZEBh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NkkI(vuvg, CkYf):\n if CkYf is None:\n return vuvg\n elif CkYf == 'abs':\n ord = oyIN.inf\n elif CkYf == 'fro':\n ord = 'fro'\n else:\n raise ValueError('Unkown norm:' + CkYf + ', valid values are abs and fro')\n tKw_ = oyIN.linalg.norm(vuvg, ord=ord)\n RpEK = vuvg... | [
"0.63840395",
"0.60616034",
"0.60407317",
"0.6025218",
"0.5968286",
"0.5957629",
"0.5941156",
"0.59068805",
"0.5892306",
"0.5863838",
"0.58604044",
"0.58510256",
"0.5832285",
"0.5790542",
"0.574642",
"0.56984365",
"0.5695891",
"0.5684683",
"0.56750613",
"0.5666338",
"0.565662... | 0.68223536 | 0 |
Fetches dataloaders for train and test, choosing from the indicated datset. | def zL3z(__n6, h_xa, NArs, lpha=0.2):
try:
set = oUGu(__n6, h_xa, True, False)
except RuntimeError:
set = oUGu(__n6, h_xa, True, True)
HI29 = int(lpha * len(set))
zBu_ = len(set) - HI29
XxFT, Z0Wl = TLsW(set, [zBu_, HI29])
RnAA = pVAc(NtIi(XxFT), batch_size=NArs.batch_size, shuff... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pdlj(YKHO, nIKz=None):\n if not nIKz:\n nIKz = YKHO.trainset\n AHI0 = pVAc(nIKz, batch_size=YKHO.batch_size, shuffle=True)\n RkiG = pVAc(YKHO.testset, batch_size=YKHO.batch_size, shuffle=True)\n ZEJE = pVAc(YKHO.valset, batch_size=YKHO.batch_size, shuffle=True)\n return (AHI0, ZEJE, RkiG)... | [
"0.7650408",
"0.7219031",
"0.71873814",
"0.7148676",
"0.70978105",
"0.70526946",
"0.6987085",
"0.6973897",
"0.6969273",
"0.69517535",
"0.6930378",
"0.69233555",
"0.68936676",
"0.6890913",
"0.6877942",
"0.6856481",
"0.67607665",
"0.6756146",
"0.6749342",
"0.67366624",
"0.67350... | 0.71629286 | 3 |
Fetches dataloaders for test, choosing from the indicated dataset. | def dvzg(__n6, h_xa, NArs):
try:
t4zr = oUGu(__n6, h_xa, False, False)
except RuntimeError:
t4zr = oUGu(__n6, h_xa, False, True)
t4zr, bGrB = TLsW(t4zr, [len(t4zr), 0])
CWkI = pVAc(NtIi(t4zr), batch_size=NArs.batch_size, shuffle=True, num_workers=h4Vn, pin_memory=NArs.cuda)
return CW... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dvzg(__n6, h_xa, NArs):\n try:\n t4zr = oUGu(__n6, h_xa, False, False)\n except RuntimeError:\n t4zr = oUGu(__n6, h_xa, False, True)\n CWkI = pVAc(t4zr, batch_size=NArs.batch_size, shuffle=True, num_workers=h4Vn, pin_memory=NArs.cuda)\n return CWkI",
"def yjBr(YKHO, C3ST):\n YKHO... | [
"0.77542853",
"0.725948",
"0.7209253",
"0.7075972",
"0.7068382",
"0.7020114",
"0.701365",
"0.69654715",
"0.69612414",
"0.6960843",
"0.69515246",
"0.6944259",
"0.6896263",
"0.68962574",
"0.68918276",
"0.6859911",
"0.6858184",
"0.68576896",
"0.68479097",
"0.68404305",
"0.683956... | 0.78583413 | 0 |
compute divergence of SV | def Ln8d(YKHO, VR9F, Pcq8, hO1F, q7xs=None, Bmzm=14, gdEi=None, Ra8y=None, JZZk=None, KoyS=False):
if JZZk is None:
JZZk = Bmzm
if Ra8y is None:
Ra8y = Bmzm
WCHw = YKHO.dth_v(VR9F, l_max=JZZk, Nth=gdEi)
n_NV = YKHO.dph_v(Pcq8, l_max=JZZk, Nth=gdEi)
if KoyS:
tjUW = YKHO.vSH2v(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scUA():\n return EvZy(P6bq) + soUN(Ty9i)",
"def scUA(WKvO):\n Ro40 = oyIN.gradient(WKvO)\n fUYa = oyIN.gradient(Ro40[0])[0]\n bEXe = oyIN.gradient(Ro40[1])[1]\n return fUYa + bEXe",
"def scUA(YKHO):\n Sedy = sONY(YKHO.W.sum(0).T, 1, YKHO.V.shape[1])\n YKHO.H = wTxu(YKHO.H, bTLN(BJ1H(YK... | [
"0.7652496",
"0.6756247",
"0.67171246",
"0.6665073",
"0.6601998",
"0.65836287",
"0.6527969",
"0.6412643",
"0.63499403",
"0.6331295",
"0.63044786",
"0.6290416",
"0.61890537",
"0.61501616",
"0.6123893",
"0.61115307",
"0.60466397",
"0.6031599",
"0.599559",
"0.59884506",
"0.59832... | 0.0 | -1 |
compute the horizontal velocity and acceleration of a wave, given its hermite fit constants | def FDPD(YKHO, QnmL, KZ_l, Ff2R, a1PO, X8BR):
vC9B, r8hN, pQ4c, n4wC, JT9N, V60Q = Ff2R
lVOW, gRDY = VEDo.meshgrid(KZ_l, QnmL)
x5Y5, Bt_g = YKHO.horiz_flows_given_coeffs(QnmL, X8BR[vC9B], delta_th_override=V60Q)
Qq5r = n4wC / VEDo.max(VEDo.abs((x5Y5 ** 2 + Bt_g ** 2) ** 0.5))
yzQ0 = 2 * VEDo.pi / pQ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GJ7i(tlxW, ITS7, MhkD=11, LC5C=3):\n bFB5 = M_Ot(tlxW[:, 0], ITS7, MhkD, LC5C)\n lVnd = M_Ot(tlxW[:, 2], ITS7, MhkD, LC5C)\n iBLD = oyIN.sqrt(oyIN.square(bFB5) + oyIN.square(lVnd))\n return iBLD",
"def ejEc(yzQ0, MKlR):\n Oa1e = 9.81\n RZju = nvqo(yzQ0, MKlR)\n Z9rn = Oa1e * yzQ0 * madw(... | [
"0.61800474",
"0.6172799",
"0.60623276",
"0.60280466",
"0.5994056",
"0.597909",
"0.5952586",
"0.58947086",
"0.5841377",
"0.5795092",
"0.57894194",
"0.5787458",
"0.57806224",
"0.57764125",
"0.57451683",
"0.5710794",
"0.5688425",
"0.56762385",
"0.5675746",
"0.5656952",
"0.56551... | 0.6103002 | 2 |
Fixes the input and output sequences in length, adding padding or truncating if necessary | def Uriv(nPrm, u54L=50):
for mvm2 in nPrm['data']:
if len(mvm2['words']) < u54L:
mvm2['words'].append('<EOS>')
while len(mvm2['words']) < u54L:
mvm2['words'].append('<PAD>')
else:
mvm2['words'] = mvm2['words'][:u54L]
mvm2['words'][-1] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gdwA(jWe2):\n eusk = max([len(WKvO) for WKvO in jWe2])\n jWe2 = [Q6uT.ljust(eusk, '0') for Q6uT in jWe2]\n return jWe2",
"def BVhq(YKHO, aWuw):\n FlGb = aWuw[0]\n if YKHO.sequence_length is not None:\n while len(aWuw) < YKHO.sequence_length:\n aWuw.insert(0, FlGb)\n return... | [
"0.66953313",
"0.6654589",
"0.66314226",
"0.661944",
"0.64546716",
"0.6436555",
"0.63707304",
"0.6328869",
"0.6324694",
"0.6313736",
"0.62828076",
"0.6279814",
"0.6275529",
"0.62113655",
"0.61830634",
"0.61820936",
"0.6169595",
"0.61683714",
"0.6167973",
"0.61263096",
"0.6117... | 0.69560176 | 0 |
Check that the projects are in alphabetical order per section. | def BXAS():
print('\n➜ Checking project list for alphabetical order')
UAju = False
XVAW = ''
for bTKY in llaM:
jvSB = bTKY['project']['name']
if NkkI(XVAW) > NkkI(jvSB):
print(' ERROR: Wrong alphabetical order: %(last)s, %(current)s' % {'last': XVAW, 'current': jvSB})
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def POGD(YKHO, llaM):\n return sorted(llaM.items(), key=lambda aoD7: aoD7[0])",
"def iyBd(YKHO):\n pass",
"def iIdg(YKHO):\n pass",
"def Aq7q(YKHO):\n return sorted([str(XP5J) for XP5J in YKHO.projects])",
"def _gNV(KkHn):\n T4Wy = []\n for moMn in KkHn:\n XLMv = moMn[0].lower().st... | [
"0.6585142",
"0.6336134",
"0.62878567",
"0.5905554",
"0.58596826",
"0.5843721",
"0.578689",
"0.57113004",
"0.55965245",
"0.558968",
"0.5574472",
"0.5529506",
"0.5520965",
"0.54753137",
"0.5439497",
"0.54313356",
"0.5428759",
"0.5385119",
"0.5362188",
"0.5340561",
"0.530746",
... | 0.7679968 | 0 |
Returns a list of tokens created | def ABjP(Wxnj, YRbF, z3rX, VjQf):
d4r9 = []
V22M = TnT9(Wxnj, 'intel')
for GIN8 in V22M:
if GIN8 != '':
if GIN8 in apiw:
d4r9.append(apiw[GIN8])
elif GIN8.upper() in VjQf:
d4r9.append(VjQf[GIN8.upper()])
elif GIN8[0] == '.':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO):\n return YKHO.token_list",
"def s2mk(YKHO):\n Aofo = [YRbF for YRbF in YKHO.gettoken()]\n return Aofo",
"def WEL_(YKHO):\n Nqlg = iter(YKHO._get_source_lines())\n s2mk = wr3U.generate_tokens(xBlr.partial(jKi7.next, Nqlg))\n return list(s2mk)",
"def nST1():\n s2mk = thS1()... | [
"0.81218916",
"0.7963112",
"0.7860371",
"0.7604454",
"0.7446699",
"0.7427197",
"0.74111265",
"0.73915404",
"0.7384322",
"0.72442186",
"0.72309846",
"0.72232336",
"0.72065634",
"0.71862316",
"0.7166761",
"0.71323776",
"0.7121977",
"0.7086802",
"0.7080654",
"0.7058434",
"0.7055... | 0.0 | -1 |
Returns a list of tokens created | def qga_(Wxnj, YRbF, HHK_, z3rX, VjQf):
d4r9 = []
V22M = TnT9(Wxnj, 'att')
for GIN8 in V22M:
if GIN8 != '':
if GIN8 in apiw:
d4r9.append(apiw[GIN8])
elif GIN8.upper() in VjQf:
d4r9.append(VjQf[GIN8.upper()])
elif GIN8[0] == '$':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO):\n return YKHO.token_list",
"def s2mk(YKHO):\n Aofo = [YRbF for YRbF in YKHO.gettoken()]\n return Aofo",
"def WEL_(YKHO):\n Nqlg = iter(YKHO._get_source_lines())\n s2mk = wr3U.generate_tokens(xBlr.partial(jKi7.next, Nqlg))\n return list(s2mk)",
"def nST1():\n s2mk = thS1()... | [
"0.81218916",
"0.7963112",
"0.7860371",
"0.7604454",
"0.7446699",
"0.7427197",
"0.74111265",
"0.73915404",
"0.7384322",
"0.72442186",
"0.72309846",
"0.72232336",
"0.72065634",
"0.71862316",
"0.7166761",
"0.71323776",
"0.7121977",
"0.7086802",
"0.7080654",
"0.7058434",
"0.7055... | 0.0 | -1 |
Returns a list of tokens created | def CC7l(Wxnj, YRbF, HHK_, z3rX, VjQf):
d4r9 = []
V22M = TnT9(Wxnj, 'mips')
for GIN8 in V22M:
if GIN8 != '':
if GIN8 in apiw:
d4r9.append(apiw[GIN8])
elif GIN8.upper() in VjQf:
d4r9.append(VjQf[GIN8.upper()])
elif GIN8[0] == '.':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def thS1(YKHO):\n return YKHO.token_list",
"def s2mk(YKHO):\n Aofo = [YRbF for YRbF in YKHO.gettoken()]\n return Aofo",
"def WEL_(YKHO):\n Nqlg = iter(YKHO._get_source_lines())\n s2mk = wr3U.generate_tokens(xBlr.partial(jKi7.next, Nqlg))\n return list(s2mk)",
"def nST1():\n s2mk = thS1()... | [
"0.81218916",
"0.7963112",
"0.7860371",
"0.7604454",
"0.7446699",
"0.7427197",
"0.74111265",
"0.73915404",
"0.7384322",
"0.72442186",
"0.72309846",
"0.72232336",
"0.72065634",
"0.71862316",
"0.7166761",
"0.71323776",
"0.7121977",
"0.7086802",
"0.7080654",
"0.7058434",
"0.7055... | 0.0 | -1 |
A view to return the index page | def d6pt(QePW):
return _1tc(QePW, 'home/index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(QePW):\n return SGJU('index.bp', {})",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n ... | [
"0.87283725",
"0.86629134",
"0.86008954",
"0.86008954",
"0.8573771",
"0.8550951",
"0.85481006",
"0.850242",
"0.8489247",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8470419",
"0.84631646",
"0.84630746",
"0.8462945",
"0.8434259",
"0.8416149... | 0.0 | -1 |
A view to return the index page | def T9hb(QePW):
zneA = drBR.objects.all()
QpfX = {'scent': zneA}
return _1tc(QePW, 'home/scents.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt(QePW):\n return SGJU('index.bp', {})",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt(YKHO):\n ... | [
"0.87283725",
"0.86629134",
"0.86008954",
"0.86008954",
"0.8573771",
"0.8550951",
"0.85481006",
"0.850242",
"0.8489247",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8487879",
"0.8470419",
"0.84631646",
"0.84630746",
"0.8462945",
"0.8434259",
"0.8416149... | 0.0 | -1 |
Devuelve el peso entre dos aristas. En caso de no estar conectadas o no estar en el grafo devuelve None. | def N2CF(YKHO, kx8N, QPYN):
qZpV = YKHO.adyacentes.get(kx8N, {})
return int(qZpV.get(QPYN, 0)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDSl(YKHO):\n return YKHO.executa_passo(YKHO.apresentar_armas)",
"def mHvP(YKHO):\n In_v = 0\n for z7NJ in YKHO.armas:\n In_v += z7NJ.get_peso()\n for p3El in YKHO.partes:\n In_v += p3El.get_peso()\n return In_v",
"def P5lZ(YKHO):\n GB1W = 0\n for z7NJ in YKHO.armas:\n ... | [
"0.6326567",
"0.58260655",
"0.57346994",
"0.566895",
"0.5623697",
"0.555732",
"0.5485575",
"0.54497474",
"0.53874004",
"0.5367167",
"0.5337299",
"0.53343886",
"0.5320532",
"0.5295784",
"0.5291489",
"0.5279335",
"0.52312475",
"0.52244496",
"0.5204508",
"0.5193279",
"0.51812905... | 0.53991777 | 8 |
Return the (index, score) of the datapoint in xs that scores the highest | def V12Z(YKHO, hnFq, oeNL: IdVecs, V3hn: IdVecs, qHkD: float) -> AzJI[int, float]:
LUkp = None
AjsF = None
for YRbF, WKvO in hnFq.items():
KCHu = YKHO.score_function.score(YRbF, WKvO, oeNL, V3hn, qHkD)
if LUkp == None or KCHu < AjsF:
LUkp = YRbF
AjsF = KCHu
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aNGM(YKHO):\n YKHO.scores = oyIN.squeeze(YKHO.scores)\n m2j4 = oyIN.argmax(YKHO.scores)\n return (YKHO.scores[m2j4], m2j4)",
"def eyl7(cCrA):\n jB5X = oyIN.max(cCrA)\n or8S = oyIN.argmax(cCrA)\n cCrA[or8S] = 0\n return (jB5X, or8S, cCrA)",
"def PBTs(YKHO, p1kx):\n return YKHO.map(p1... | [
"0.738247",
"0.71860707",
"0.67748165",
"0.6769365",
"0.67555207",
"0.6659115",
"0.6562735",
"0.654657",
"0.65302205",
"0.6526664",
"0.65221965",
"0.64897627",
"0.64826447",
"0.6447698",
"0.64406097",
"0.63876176",
"0.63746095",
"0.6366284",
"0.6354947",
"0.62943417",
"0.6258... | 0.0 | -1 |
Sets the config of this V1alpha1Cluster. | def GPtr(YKHO, GPtr):
YKHO._config = GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lEZe(YKHO, GPtr):\n YKHO.config = GPtr",
"def lEZe(YKHO, GPtr):\n YKHO.config = GPtr",
"def lEZe(YKHO, GPtr):\n YKHO.config = GPtr",
"def lEZe(YKHO, GPtr):\n YKHO.__config = GPtr",
"def lEZe(YKHO, **GPtr):\n raise NotImplementedError()",
"def pMYS(mWFP=None, GyOI=None, G9jH=None, yA7Z=... | [
"0.6897608",
"0.6897608",
"0.68835235",
"0.6827352",
"0.66979235",
"0.6671736",
"0.6605413",
"0.65692484",
"0.6510446",
"0.6451504",
"0.6451504",
"0.6349452",
"0.6349452",
"0.6333026",
"0.6320152",
"0.63067526",
"0.62745535",
"0.62745535",
"0.6267772",
"0.61975443",
"0.618778... | 0.64560115 | 9 |
Sets the server_version of this V1alpha1Cluster. | def KZVb(YKHO, KZVb):
YKHO._server_version = KZVb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def n0XJ(YKHO, xjh5):\n YKHO._vserver = xjh5",
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def v_xh(YKHO, DpZH=None):\n if DpZH is not None:\n YKHO.version = DpZH\n GPtr.setvalue... | [
"0.6605099",
"0.6569466",
"0.6550709",
"0.6390761",
"0.63582116",
"0.63548255",
"0.63358665",
"0.63358665",
"0.63358665",
"0.63263214",
"0.631884",
"0.61950374",
"0.61950374",
"0.610608",
"0.6054145",
"0.6031789",
"0.6031789",
"0.6031789",
"0.6031789",
"0.6031789",
"0.6031789... | 0.77756274 | 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.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, JrX4):
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 |
Logout the currently authenticated user | def cqMp(YKHO):
NT__ = cuiw['access_token']
del cuiw['user_id']
del cuiw['auth_type']
del cuiw['access_token']
if NT__:
bD7m = 'https://accounts.google.com/' + 'o/oauth2/revoke?token=%s' % NT__
geh0 = OBHh.Http().request(bD7m, 'GET')[0]
if geh0['status'] != '200':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def erK4():\n oLi7()",
"def erK4():\n c5ow = W84Y()\n a8p0.logout(auth_header=c5ow.profile.get_auth_header(), token=c5ow.profile.token)",
"def erK4(YKHO):\n geh0 = G4JS.post(YKHO.get_api_url() + '/logout', headers=YKHO.get_request_headers())\n G9jH.debug(EyO9(geh0))\n geh0.raise_for_status()\... | [
"0.8725879",
"0.8562108",
"0.8482835",
"0.8475341",
"0.8441801",
"0.8404996",
"0.8401271",
"0.83873534",
"0.83761257",
"0.83325595",
"0.8331749",
"0.8315838",
"0.8295349",
"0.82717174",
"0.82696843",
"0.82696694",
"0.82614887",
"0.8257812",
"0.82453823",
"0.8240941",
"0.82108... | 0.0 | -1 |
Get the currently authenticated user | def CBIr(YKHO):
uJjO = cuiw.get('user_id')
if uJjO is None:
return None
return mv1M.find(uJjO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W84Y(YKHO):\n return YKHO.get_user(YKHO._auth.current_user_name)",
"def TKWP(YKHO):\n return DW23.get_current_user()",
"def DjFc(YKHO):\n return YKHO._fetch_json('users/current')",
"def DjFc(YKHO):\n return YKHO.authenticated_user",
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session... | [
"0.8833074",
"0.8787499",
"0.872999",
"0.87220526",
"0.8713175",
"0.86956877",
"0.8658728",
"0.86125994",
"0.8558813",
"0.8520521",
"0.8518272",
"0.8479561",
"0.84524125",
"0.84524125",
"0.84524125",
"0.84136677",
"0.83752805",
"0.8372941",
"0.8346076",
"0.8331249",
"0.833124... | 0.0 | -1 |
Generate a random string of uppercase and number characters | def BWvy(Fb9w=32):
return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in Ni9Y(Fb9w))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yjEv():\n return chr(ord('A') + tuKI.randint(0, 25))",
"def uMi4(yLAt):\n return ''.join([Acvy(vIwR.uppercase + vIwR.digits) for YRbF in range(yLAt)])",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))",
"def HLwP(FVpJ=6):\n PdTY = vIwR.ascii_letters ... | [
"0.7978911",
"0.7894439",
"0.7865254",
"0.77680993",
"0.7749707",
"0.7696882",
"0.7620514",
"0.7600808",
"0.75994575",
"0.75834656",
"0.75797004",
"0.7569963",
"0.754448",
"0.7539364",
"0.75333",
"0.75333",
"0.75333",
"0.75308025",
"0.7528126",
"0.75214005",
"0.7516813",
"0... | 0.0 | -1 |
Pad or crop the 2D data array so that there are an integer number of meshes in both dimensions. | def eMvW(YKHO):
YKHO.nyboxes = YKHO.data.shape[0] // YKHO.box_size[0]
YKHO.nxboxes = YKHO.data.shape[1] // YKHO.box_size[1]
YKHO.yextra = YKHO.data.shape[0] % YKHO.box_size[0]
YKHO.xextra = YKHO.data.shape[1] % YKHO.box_size[1]
if YKHO.xextra + YKHO.yextra == 0:
YKHO.data_ma = oyIN.ma.masked... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hVLt(YKHO, nPrm):\n Fbjb = YKHO.get_length(nPrm)\n KLk8 = max(Fbjb)\n Gmep = len(nPrm)\n H5Km = oyIN.zeros([Gmep, KLk8], dtype=oyIN.int32)\n for YRbF, u54L in enumerate(Fbjb):\n H5Km[YRbF, :u54L] = nPrm[YRbF]\n return H5Km",
"def hVLt(EcVT):\n exwG = EcVT.size\n return EcVT.res... | [
"0.6673882",
"0.6524937",
"0.65226674",
"0.64931047",
"0.64785075",
"0.64057565",
"0.6304567",
"0.6236989",
"0.6217072",
"0.61677706",
"0.61499393",
"0.61278987",
"0.6091101",
"0.60739475",
"0.5994316",
"0.59847796",
"0.5965796",
"0.59485745",
"0.5941127",
"0.5915276",
"0.591... | 0.62184757 | 8 |
conv2d returns a 2d convolution layer with full stride. | def b_zE(WKvO, XcU5):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_zE(YKHO, rb7a, M6vu, _0fC, hVLt=SU7A, YDYE=kZdx, FJYT=IRWS):\n return YKHO.add(yHwh(rb7a, M6vu, _0fC, hVLt, YDYE, FJYT))",
"def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)",
"def b_zE(YKHO, *qIxc... | [
"0.7762944",
"0.7729757",
"0.7693895",
"0.7693895",
"0.762935",
"0.7578933",
"0.755952",
"0.75423235",
"0.75253934",
"0.74996185",
"0.7497662",
"0.7479321",
"0.7478032",
"0.7471439",
"0.7465642",
"0.7455609",
"0.74510777",
"0.74352723",
"0.74352723",
"0.74352723",
"0.74352723... | 0.74249756 | 23 |
conv2d returns a 2d convolution layer with full stride. | def z0Z_(WKvO, XcU5, q4Mi):
return ZylS.nn.conv2d_transpose(WKvO, XcU5, strides=[1, 2, 2, 1], output_shape=q4Mi, padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_zE(YKHO, rb7a, M6vu, _0fC, hVLt=SU7A, YDYE=kZdx, FJYT=IRWS):\n return YKHO.add(yHwh(rb7a, M6vu, _0fC, hVLt, YDYE, FJYT))",
"def adXX(K8MZ, *qIxc, **B2fa):\n B2fa['use_bias'] = K8MZ.use_bias\n B2fa['kernel_regularizer'] = K8MZ.l2_regularizer\n return yHwh(*qIxc, **B2fa)",
"def b_zE(YKHO, *qIxc... | [
"0.7762944",
"0.7729757",
"0.7693895",
"0.7693895",
"0.762935",
"0.7578933",
"0.755952",
"0.75423235",
"0.75253934",
"0.74996185",
"0.7497662",
"0.7479321",
"0.7478032",
"0.7471439",
"0.7465642",
"0.7455609",
"0.74510777",
"0.74352723",
"0.74352723",
"0.74352723",
"0.74352723... | 0.0 | -1 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.contrib.layers.xavier_initializer()
return ZylS.Variable(RqgG(ROpF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n return ZylS.get_variable(name='weight', shape=ROpF, initializer=ZylS.truncated_normal_initializer(stddev=0.1))",
"def E9N2(ROpF):\n return ZylS.get_variable('weights', ROpF, initializer=ZylS.contrib.layers.xavier_initializer())",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, ... | [
"0.8430733",
"0.8416174",
"0.8408999",
"0.8343361",
"0.82988006",
"0.82945484",
"0.828571",
"0.827499",
"0.82513815",
"0.8158656",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8156894",
"0.8139963",
... | 0.81629854 | 9 |
bias_variable generates a bias variable of a given shape. | def Y7ph(ROpF):
RqgG = ZylS.contrib.layers.xavier_initializer()
return ZylS.Variable(RqgG(ROpF)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n return ZylS.Variable(RqgG, name='bias')",
"def Y7ph(ROpF):\n with ZylS.name_scope('biases'):\n RqgG = ZylS.constant(0.1, shape=ROpF)\n Es0b = ZylS.Variable(RqgG)\n return Es0b",
"def Y7ph(ROpF):\n RqgG = ZylS.constant(0.1, s... | [
"0.8450208",
"0.843371",
"0.84225553",
"0.8418631",
"0.83956254",
"0.8339686",
"0.8330452",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.83270395",
"0.8325915",
"0.8306395",
"0.8306395",
"0.83... | 0.7978741 | 56 |
Attach a lot of summaries to a Tensor (for TensorBoard visualization). | def g4Yp(SRYB):
with ZylS.name_scope('summaries'):
JBMS = ZylS.reduce_mean(SRYB)
NHyo = ZylS.summary.scalar('mean', JBMS)
with ZylS.name_scope('stddev'):
z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS)))
sqbn = ZylS.summary.scalar('stddev', z2bo)
ZHhN =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()",
"def oxpy(YK... | [
"0.773631",
"0.7636054",
"0.71544313",
"0.7066801",
"0.7010252",
"0.70038253",
"0.6864809",
"0.679064",
"0.6711722",
"0.67016",
"0.669732",
"0.6652493",
"0.6650507",
"0.6646651",
"0.6623788",
"0.6604622",
"0.6596553",
"0.6581095",
"0.6570419",
"0.6537464",
"0.65369606",
"0.... | 0.0 | -1 |
Get arguments and return ArgumentParser.parse_args() object | def U5Ri(YKHO):
XP5J = j1Jz.ArgumentParser()
XP5J.add_argument('-f', '--file', default='ydl.db', help='use sqlite3 FILE (default ydl.db)')
XP5J.add_argument('--stdin', action='store_true', default=False, help='Accept input on STDIN for parameters instead of arguments')
XP5J.add_argument('--debug', choic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rwTO():\n wvEv = xuJu()\n qIxc = wvEv.parse_args()\n return qIxc",
"def dCXb():\n return wvEv.parse_args()",
"def rwTO(YKHO, qIxc):\n return YKHO.parser.parse_args(qIxc)",
"def gGZX(YKHO):\n return YKHO._parser.parse_args()",
"def Y8nX():\n wvEv = ugLM()\n return wvEv.parse_args... | [
"0.8248946",
"0.8188343",
"0.8153904",
"0.81214505",
"0.8064487",
"0.79152113",
"0.78057826",
"0.7776165",
"0.777224",
"0.7750704",
"0.77182287",
"0.76954985",
"0.76875633",
"0.7685885",
"0.7685885",
"0.7664744",
"0.7664744",
"0.76619446",
"0.7654769",
"0.7633476",
"0.7627745... | 0.0 | -1 |
Check if a given position is under attack from any of the previously placed queens (check column and diagonal positions) | def lPwh(YKHO, A1i8, LYK2, iVRZ):
for YRbF in range(LYK2):
if A1i8[YRbF] == iVRZ or A1i8[YRbF] - YRbF == iVRZ - LYK2 or A1i8[YRbF] + YRbF == iVRZ + LYK2:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b367(fvDH, OHLN):\n return fvDH in OHLN or any((abs(fvDH - WKvO) == len(OHLN) - YRbF for YRbF, WKvO in enumerate(OHLN)))",
"def HAYG(iBIi, LVAh, WKvO):\n dixj = []\n for YRbF in range(WKvO - iBIi.size, WKvO + iBIi.size + 1):\n for r845 in range(LVAh - iBIi.size, LVAh + iBIi.size + 1):\n ... | [
"0.7930931",
"0.72895145",
"0.7025027",
"0.69728094",
"0.6872777",
"0.67911434",
"0.66880006",
"0.6615885",
"0.6545183",
"0.65165615",
"0.64777267",
"0.64453286",
"0.63665867",
"0.6357889",
"0.6337808",
"0.63357794",
"0.63262665",
"0.6315063",
"0.6271583",
"0.62702626",
"0.62... | 0.69979477 | 3 |
determines if the given choices are boolean (basically, if the possible values are true/false) param the ctd parameter True iff a boolean parameter | def YIG1(xqoZ):
if type(xqoZ.restrictions) is g3kM:
return set(xqoZ.restrictions.choices) == {'true', 'false'}
else:
return xqoZ.type is bool | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def scc9(d7pR):\n m0gQ = ['no', '0', 'false', 'n', '', False]\n wBLD = ['yes', 'true', '1', 'y', True]\n if d7pR.lower() in m0gQ:\n return False\n elif d7pR.lower() in wBLD:\n return True\n else:\n wvEv.error(f'Valid choices for true/false flags: {m0gQ + wBLD}')",
"def ql9s(BW... | [
"0.729129",
"0.6868628",
"0.6794787",
"0.67887133",
"0.66694224",
"0.66594964",
"0.66351926",
"0.66351926",
"0.6616063",
"0.6611677",
"0.6604227",
"0.6553457",
"0.6546776",
"0.65358907",
"0.65335965",
"0.65326023",
"0.65286857",
"0.65211385",
"0.6519083",
"0.65176713",
"0.651... | 0.66222596 | 8 |
Route to serve the static index.html page | def tk5Y():
return P4t4.send_static_file('index.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d6pt():\n P4t4.logger.info('Request for home page')\n return P4t4.send_static_file('index.html')",
"def d6pt():\n return P4t4.send_static_file('index.html')",
"def d6pt():\n return cs4A('static', 'index.html')",
"def d6pt():\n return j0kY('static/index.html')",
"def d6pt(QePW):\n retu... | [
"0.8652176",
"0.85327053",
"0.85184693",
"0.84632796",
"0.8391649",
"0.8375209",
"0.82549053",
"0.8238478",
"0.8009726",
"0.79217273",
"0.78998166",
"0.78998137",
"0.7834336",
"0.77745515",
"0.77586734",
"0.7718128",
"0.7629365",
"0.75768715",
"0.7544086",
"0.75427413",
"0.75... | 0.80444425 | 9 |
get mean period on fast timescale | def aheP(jzdc, Fg_i, Z9rn, o0ZM, BhJz):
eHNT = LTOr(jzdc, Fg_i, Z9rn, o0ZM, BhJz)
if eHNT == 0:
return oyIN.inf
else:
return 1.0 / eHNT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ypGu(RkFZ):\n TuIw = ohBC(RkFZ)[1]\n f8a3 = ohBC(RkFZ)[0]\n _mSQ = TuIw / sum(TuIw)\n return 1 / oyIN.average(f8a3, weights=_mSQ)",
"def wwgU(dy_H):\n return rLdf.Timedelta.round(oyIN.mean(dy_H), 's')",
"def IvhD(YKHO) -> float:\n return YKHO.total_time / YKHO.valid_count",
"def LyqU(tk... | [
"0.70885134",
"0.7071405",
"0.68242985",
"0.67917264",
"0.67141926",
"0.6674865",
"0.66727376",
"0.66353595",
"0.6635212",
"0.6613889",
"0.6573164",
"0.6515662",
"0.6515366",
"0.6504203",
"0.6487354",
"0.6485223",
"0.64759594",
"0.64296234",
"0.6411619",
"0.63989675",
"0.6398... | 0.0 | -1 |
Returns a list of primes in the range [2,n] computed via the seve of Eratosthenes | def KwQv(yv6U):
if yv6U == []:
return []
return [yv6U[0]] + KwQv(filter(lambda WKvO: WKvO % yv6U[0] != 0, yv6U[1])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rPed(exwG):\n return list(ffBE(exwG))",
"def zdaV(exwG: int) -> list:\n if exwG < 2:\n return []\n rPed = [True] * (exwG + 1)\n for WKvO in range(3, int(exwG ** 0.5) + 1, 2):\n for LVAh in range(3, exwG // WKvO + 1, 2):\n rPed[WKvO * LVAh] = False\n return [2] + [YRbF ... | [
"0.90407854",
"0.8656241",
"0.86232764",
"0.8578452",
"0.8560354",
"0.8544756",
"0.8462364",
"0.8455143",
"0.84485424",
"0.8412271",
"0.835596",
"0.8353867",
"0.8353867",
"0.8353867",
"0.8353867",
"0.8345837",
"0.8341062",
"0.8323384",
"0.8323384",
"0.8323384",
"0.8314442",
... | 0.0 | -1 |
Called recursively by itself. The last item in the block (start, end) is chosen as the pivot. All items smaller than the pivot are moved to the left side of the block. | def BA9O(YKHO, yKcO, Os4s):
if yKcO >= Os4s:
return
ewCu = yKcO
csQL = YKHO.sort_list[Os4s]
for YRbF in range(yKcO, Os4s):
if csQL > YKHO.sort_list[YRbF]:
YKHO.sort_list[YRbF], YKHO.sort_list[ewCu] = (YKHO.sort_list[ewCu], YKHO.sort_list[YRbF])
ewCu += 1
YKHO.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qrt_(E6sh, gqRb, ODP9):\n \"\"\"\n p_index = get_pivot(items_list)\n left_i, right_i = low, high\n pivot = items_list[p_index]\n while left_i < right_i:\n while items_list[left_i] <= pivot and left_i < right_i:\n left_i += 1\n while items_list[right_i] > pivot:\n ... | [
"0.6656367",
"0.6480548",
"0.64505124",
"0.64468336",
"0.64211243",
"0.6417206",
"0.63941836",
"0.63776827",
"0.636",
"0.63560945",
"0.6339289",
"0.6301955",
"0.6222596",
"0.6184585",
"0.6134537",
"0.61089015",
"0.60955197",
"0.6068581",
"0.6063488",
"0.6048579",
"0.6046724",... | 0.59438974 | 26 |
Formats a 1D array of q_axis data and a 2D array of I axis data (where each row of iqdata is a separate row), into an array of Data1D objects | def TahS(YKHO, xfFo, bZMh, JyrN, yIVm):
VIPT = []
EAdr = 1
ml4s = True
rpgT = bZMh.shape[0]
if rpgT > 3:
NArs = YKHO.askFrameRange(rpgT)
VIPT = NArs['frames']
EAdr = NArs['inc']
ml4s = NArs['file']
if VIPT == []:
return
else:
VIPT = [0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b_WS(nPrm):\n gA3N = []\n DbVl = []\n iFNN = []\n mSgG = rN7K.separate_data_to_arrays(nPrm)\n hUoD = ALFN(mSgG[0])\n for YRbF in range(1, 5):\n gA3N.append(hUoD)\n nPrm = []\n P1dF = []\n for ShoO in mSgG[YRbF]:\n M1V6 = ZbWC.split('\\\\+\\\\-', ShoO)\n ... | [
"0.5858392",
"0.5849745",
"0.57745737",
"0.5684383",
"0.56307006",
"0.5628648",
"0.55784374",
"0.5557404",
"0.55160123",
"0.54906005",
"0.54791844",
"0.54790205",
"0.547277",
"0.5465022",
"0.5465022",
"0.5463697",
"0.5453275",
"0.5449469",
"0.544318",
"0.5440605",
"0.5434691"... | 0.6120698 | 0 |
Reset the ouput fit attributes to blank or null values | def cuNN(YKHO):
YKHO.parameters = []
YKHO.parameterErrors = []
YKHO.derivedData = None
YKHO.derivedDataErrors = None
YKHO.fitError = None
YKHO.fittedY = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Frq(YKHO):\n YKHO.attributes.clear()",
"def SdJb(YKHO):\n for hkS8, Emd4 in YKHO._attrs.items():\n if Emd4:\n setattr(YKHO, hkS8, g760.OrderedDict())\n else:\n setattr(YKHO, hkS8, None)",
"def _Frq(YKHO):\n YKHO.attrs = _b8Y.AttributeContainer()",
"def ka5c(Y... | [
"0.7323208",
"0.7303714",
"0.7262838",
"0.7247734",
"0.71527153",
"0.710709",
"0.7102285",
"0.70921654",
"0.70373726",
"0.702195",
"0.6993963",
"0.6928905",
"0.68620265",
"0.6802248",
"0.6790197",
"0.67645127",
"0.6756814",
"0.6716914",
"0.6650769",
"0.66382676",
"0.66207886"... | 0.0 | -1 |
Reset all attributes, i.e. including input data, to blank or null values | def Awaj(YKHO):
YKHO.refObject = None
YKHO.objects = []
YKHO.dataX = []
YKHO.dataY = []
YKHO.errorsX = []
YKHO.errorsY = []
YKHO.parameters = []
YKHO.parameterErrors = []
YKHO.derivedData = None
YKHO.derivedDataErrors = None
YKHO.fitError = None
YKHO.fittedY = [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fUe2(YKHO):\n for xC3W in YKHO._data_attributes:\n setattr(YKHO, xC3W, None)",
"def SiRx(YKHO):\n for G1Hx, Ty9i in iter(YKHO._dirty_attributes.items()):\n if Ty9i is None:\n del YKHO._info[G1Hx]\n else:\n YKHO._info[G1Hx] = Ty9i\n YKHO._dirty_attributes = ... | [
"0.7950338",
"0.76609373",
"0.7635909",
"0.7581516",
"0.7465652",
"0.73030245",
"0.72511727",
"0.7238593",
"0.7091586",
"0.7030907",
"0.6995783",
"0.6983821",
"0.69631803",
"0.69534016",
"0.6917854",
"0.68639517",
"0.6853823",
"0.68291664",
"0.67780685",
"0.6715356",
"0.66719... | 0.61327827 | 83 |
Return a list of all metadata fields from portal_catalog. | def fGQV(YKHO, DNHh=True):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kscq(YKHO):\n return YKHO._metadata_fields",
"def kscq(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'metadata_fields')",
"def TnMw(YKHO):\n V_D6 = []\n for Jyyj in YKHO.identity_fields.all():\n V_D6.append(Jyyj.name, Jyyj.value, Jyyj.get_type_display())\n return V_D6",
"def jP28(YKHO... | [
"0.70023745",
"0.68790114",
"0.67934686",
"0.6632077",
"0.6496266",
"0.64158976",
"0.63978225",
"0.63885385",
"0.6383237",
"0.6383237",
"0.63298625",
"0.63298625",
"0.6329536",
"0.6326339",
"0.6319641",
"0.6318085",
"0.63057745",
"0.6240834",
"0.6223727",
"0.6222651",
"0.6207... | 0.7275226 | 0 |
Returns a list of all metadata fields from the catalog that were selected. | def eXK7(YKHO):
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fGQV(YKHO, DNHh=True):\n return []",
"def TnMw(YKHO):\n V_D6 = []\n for Jyyj in YKHO.identity_fields.all():\n V_D6.append(Jyyj.name, Jyyj.value, Jyyj.get_type_display())\n return V_D6",
"def QckB(YKHO):\n return YKHO.get_string_array('getAllFields', [])",
"def QckB(YKHO):\n retur... | [
"0.718176",
"0.6767323",
"0.6747244",
"0.6747244",
"0.6725268",
"0.6676444",
"0.66536397",
"0.66357946",
"0.6601337",
"0.65985465",
"0.6596453",
"0.6535425",
"0.65326256",
"0.65283555",
"0.6488115",
"0.6476703",
"0.6472032",
"0.6469848",
"0.6455426",
"0.6452334",
"0.6450427",... | 0.65872777 | 11 |
Ensure we can edit the details of a user | def AGWX(YKHO):
bD7m = gxEw('api:usuario_detail', args=[1])
nPrm = {'primeiroNome': 'Nome Editado', 'segundoNome': 'Sobrenome', 'idade': '1992-01-02', 'email': 'mail@mail.com', 'senha': '123', 'descricaoUsuario': 'exemplo descricao'}
geh0 = YKHO.client.patch(bD7m, qQXR.dumps(nPrm), content_type='application... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZKvB(YKHO):\n yw2n = YKHO.client.post('api/v1/users', data=qQXR.dumps(YKHO.user), content_type='application/json')\n YKHO.assertEqual(yw2n.status_code, 201)\n ' get the new user by id '\n BQXo = {'name': 'Aviana', 'location': '122,3344', 'comment': 'rejected'}\n BHbe = YKHO.client.put('api/v1/us... | [
"0.74876755",
"0.73039687",
"0.72524047",
"0.72355103",
"0.71826905",
"0.71458966",
"0.71251094",
"0.71248686",
"0.71135163",
"0.7085849",
"0.70758516",
"0.70739543",
"0.7054703",
"0.70530283",
"0.70454854",
"0.70414037",
"0.70221704",
"0.7013466",
"0.69994295",
"0.6999267",
... | 0.0 | -1 |
Applies a Gaussian Noise kernel | def xsYF(VXjJ, Ot1W=7):
return XC5k.GaussianBlur(VXjJ, (Ot1W, Ot1W), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VU7a(EcVT, WTkW):\n return oyIN.exp(-EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(EcVT, WTkW):\n return oyIN.power(oyIN.e, -EcVT ** 2 / (2 * WTkW ** 2))",
"def VU7a(zNig=21, HVUZ=3):\n WKvO = oyIN.linspace(-HVUZ, HVUZ, zNig + 1)\n wpiG = oyIN.diff(aevO.norm.cdf(WKvO))\n KBhd = oyIN.outer(wpiG, w... | [
"0.760437",
"0.7392273",
"0.722894",
"0.72202075",
"0.700726",
"0.6983336",
"0.69493324",
"0.69362295",
"0.6930378",
"0.69262356",
"0.69125265",
"0.6896405",
"0.6852422",
"0.6851908",
"0.68292606",
"0.6815795",
"0.6814179",
"0.6808105",
"0.6799308",
"0.6787438",
"0.67733485",... | 0.0 | -1 |
Applies an image mask. Only keeps the region of the image defined by the polygon formed from `vertices`. The rest of the image is set to black. | def mWKt(VXjJ, iXlf):
ZHfW = oyIN.zeros_like(VXjJ)
if len(VXjJ.shape) > 2:
M9nc = VXjJ.shape[2]
K43N = (255,) * M9nc
else:
K43N = 255
XC5k.fillPoly(ZHfW, iXlf, K43N)
lVtf = XC5k.bitwise_and(VXjJ, ZHfW)
return lVtf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWKt(YKHO, VXjJ, iXlf):\n ZHfW = oyIN.zeros_like(VXjJ)\n if len(VXjJ.shape) > 2:\n M9nc = VXjJ.shape[2]\n K43N = (255,) * M9nc\n else:\n K43N = 255\n XC5k.fillPoly(ZHfW, iXlf, K43N)\n lVtf = XC5k.bitwise_and(VXjJ, ZHfW)\n return lVtf",
"def mWKt(YKHO, VXjJ, iXlf):\n ... | [
"0.7599279",
"0.7599279",
"0.7599279",
"0.7599279",
"0.75633",
"0.752579",
"0.7510284",
"0.75085455",
"0.75021446",
"0.75005054",
"0.74970794",
"0.74458194",
"0.7436341",
"0.7422136",
"0.7405216",
"0.7405216",
"0.7394228",
"0.7394228",
"0.7394228",
"0.7394228",
"0.7394228",
... | 0.72824293 | 67 |
`img` should be the output of a Canny transform. Returns an image with hough lines drawn. | def M8jm(VXjJ, oZuG=1, q7In=oyIN.pi / 90, gwAu=25, vkba=25, y7AI=10):
Nqlg = XC5k.HoughLinesP(VXjJ, oZuG, q7In, gwAu, oyIN.array([]), minLineLength=vkba, maxLineGap=y7AI)
MKv0 = oyIN.zeros((VXjJ.shape[0], VXjJ.shape[1], 3), dtype=oyIN.uint8)
T0L3(MKv0, Nqlg)
return MKv0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5)",
"def CM3h(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)",
"def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rh... | [
"0.7556358",
"0.74801433",
"0.73628724",
"0.7362057",
"0.7344457",
"0.72811186",
"0.72352386",
"0.72133565",
"0.7193956",
"0.71895844",
"0.71759874",
"0.71556604",
"0.71506155",
"0.71427053",
"0.71422255",
"0.71422255",
"0.71422255",
"0.71422255",
"0.71422255",
"0.71422255",
... | 0.724858 | 6 |
`img` should be the output of a Canny transform. Returns an image with hough lines drawn. | def ukXH(VXjJ, oZuG=1, q7In=oyIN.pi / 90, gwAu=25, vkba=25, y7AI=10):
Nqlg = XC5k.HoughLinesP(VXjJ, oZuG, q7In, gwAu, oyIN.array([]), minLineLength=vkba, maxLineGap=y7AI)
return Nqlg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukXH(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=10, maxLineGap=5)",
"def CM3h(LNo8):\n return XC5k.HoughLinesP(LNo8, rho=1, theta=oyIN.pi / 180, threshold=20, minLineLength=20, maxLineGap=300)",
"def ukXH(LNo8):\n KQs3 = XC5k.HoughLinesP(LNo8, rh... | [
"0.75586224",
"0.7482166",
"0.73650974",
"0.7360317",
"0.7346669",
"0.7283105",
"0.7249369",
"0.7236349",
"0.7215421",
"0.7195029",
"0.71906215",
"0.71769476",
"0.7156697",
"0.71516097",
"0.71443444",
"0.71432155",
"0.71432155",
"0.71432155",
"0.71432155",
"0.71432155",
"0.71... | 0.69547105 | 41 |
Unload a config entry. | async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:
yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE)
if yT1k:
ajET.data[Sugg].pop(bTKY.entry_id)
return yT1k | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)",
"async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()... | [
"0.70418245",
"0.69975436",
"0.69197667",
"0.69024074",
"0.6896897",
"0.6870464",
"0.6840728",
"0.67911863",
"0.67835754",
"0.6782968",
"0.6776581",
"0.67688036",
"0.6737991",
"0.6730449",
"0.6713354",
"0.67085946",
"0.6664857",
"0.66411716",
"0.6637687",
"0.66157013",
"0.660... | 0.64860606 | 30 |
Return an ordered list of indices. Batches will be constructed based on this order. | def oKXt(YKHO):
if YKHO.shuffle:
return oyIN.random.permutation(len(YKHO))
else:
return oyIN.arange(len(YKHO)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oKXt(YKHO):\n if YKHO._ordered_indices is None:\n YKHO._ordered_indices = U8Lr([(H5ew, __n6.ordered_indices()) for H5ew, __n6 in YKHO.datasets.items()])\n return oyIN.arange(len(YKHO))",
"def _0VL(YKHO):\n return sorted(YKHO.__indices.keys())",
"def oKXt(YKHO):\n if YKHO.shuffle:\n ... | [
"0.7721245",
"0.76368505",
"0.7463237",
"0.7423176",
"0.7378751",
"0.7377872",
"0.73498243",
"0.7307816",
"0.7303942",
"0.72898304",
"0.726318",
"0.72431284",
"0.72234374",
"0.71863836",
"0.7178673",
"0.71652013",
"0.7164776",
"0.7135735",
"0.70896405",
"0.7024358",
"0.701944... | 0.7606505 | 2 |
Split document into words by keeping punctuation. | def GkW9(A97Q):
A97Q = ZbWC.sub('([?.!,])', ' \\1 ', A97Q)
A97Q = yzQ0 = ZbWC.sub('[" "]+', ' ', A97Q)
return A97Q.split() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFss(YKHO, C13M):\n Aofo = []\n V22M = C13M[1].split()\n for GIN8 in V22M:\n TCGq = list(GIN8.lower())\n for hcXw in reversed(TCGq):\n if hcXw in YKHO._punctuations:\n TCGq.pop()\n else:\n break\n Aofo.append(''.join(TCGq))\n ... | [
"0.76436734",
"0.75325537",
"0.73621345",
"0.7336806",
"0.72538096",
"0.7172297",
"0.71660286",
"0.7123169",
"0.712124",
"0.7102914",
"0.7063074",
"0.7025804",
"0.6952522",
"0.6945174",
"0.69449717",
"0.6939978",
"0.6923078",
"0.6923078",
"0.6921538",
"0.68999434",
"0.6898896... | 0.73618823 | 3 |
The equation of a straight line. Checking whether a point is above or bellow the line now is very easy. For a point (x, y), if the value y is larger than the result of f(x), then (x, y) is above the line. | def eHNT(WKvO):
return jzdc * WKvO + Fg_i | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MTZ4(AU8u):\n WKvO = AU8u[0]\n LVAh = AU8u[1]\n if LVAh > eHNT(WKvO):\n return 1\n else:\n return 0",
"def yKQ4(WKvO, LVAh):\n jzdc = oyIN.float(oyIN.diff(LVAh) / oyIN.diff(WKvO))\n Fg_i = oyIN.float(LVAh[0] - jzdc * WKvO[0])\n return (jzdc, Fg_i)",
"def zFiD(nJ9F, nxyw, ... | [
"0.6917011",
"0.67403334",
"0.66822386",
"0.66822386",
"0.6640908",
"0.6561848",
"0.6520928",
"0.65184474",
"0.6493947",
"0.6480672",
"0.64633185",
"0.64633185",
"0.6403172",
"0.63766485",
"0.6360567",
"0.63551694",
"0.63107777",
"0.62780833",
"0.62634176",
"0.6199736",
"0.61... | 0.0 | -1 |