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 |
|---|---|---|---|---|---|---|
DELETE is allowed with the correct JWT claim. | def hOFf(x0hE, cuiw, C3ST, s2mk):
geh0 = x0hE.delete('/models/1', headers={'Authorization': f'Bearer {s2mk['admin']}'})
assert geh0.status_code == 204
geh0 = x0hE.get('/models/1', headers={'Authorization': f'Bearer {s2mk['read']}'})
assert geh0.status_code == 404 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, QePW, *qIxc, **B2fa):\n eOtH = QePW.data['token']\n nPrm = DvJO.decode(eOtH, 'secret', algorithms=['HS256'])\n return LyOY(nPrm)",
"def fMQP(x0hE):\n uJjO = 1\n eOtH = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxfQ.RAuDG1t4uERT9Za3P4MzvLiUYAv3dtyHQBp4N45MhhA'\n geh0 = x... | [
"0.7409614",
"0.66281223",
"0.6481911",
"0.6474642",
"0.6464406",
"0.6362457",
"0.6299387",
"0.62890375",
"0.62772566",
"0.6273605",
"0.6229957",
"0.62284523",
"0.62240565",
"0.6210766",
"0.6170475",
"0.6166554",
"0.6156344",
"0.61468226",
"0.6139338",
"0.6137818",
"0.6126901... | 0.6049122 | 41 |
Compute the softmax transformation along a given axis. Note | def N93T(KCHu, jDK_=None):
KCHu = oyIN.atleast_2d(KCHu)
if jDK_ is None:
jDK_ = KCHu.ndim - 1
KCHu = KCHu - oyIN.expand_dims(oyIN.max(KCHu, jDK_), jDK_)
KCHu = oyIN.exp(KCHu)
Gqb3 = oyIN.expand_dims(oyIN.sum(KCHu, jDK_), jDK_)
XP5J = KCHu / Gqb3
return XP5J.squeeze() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO, jDK_):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / oyIN.sum(uw5A, axis=jDK_, keepdims=True)",
"def N93T(EcVT: np.ndarray, jDK_: int) -> oyIN.ndarray:\n tTpl = oyIN.exp(EcVT)\n return tTpl / tTpl.sum(axis=jDK_)[oyIN.newaxis].T",
"def N93T(WKvO, jDK_=0):\n import numpy ... | [
"0.8400949",
"0.8323929",
"0.82978463",
"0.8272063",
"0.8266553",
"0.82391995",
"0.82083654",
"0.818829",
"0.8140105",
"0.81005305",
"0.80933696",
"0.80912507",
"0.80443877",
"0.80374736",
"0.793147",
"0.7912206",
"0.7885308",
"0.78802437",
"0.7819016",
"0.7810744",
"0.780537... | 0.7751087 | 25 |
Check if email address is from a free email service provider. Does not validate email address format and may return False if email address format is invalid. | def bDCR(D3lj):
SQ3m = D3lj.split('@')
if len(SQ3m) < 2:
return False
CRWJ = SQ3m[-1].strip().lower()
return CRWJ in pwPw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IOzI(YKHO):\n return ZIW0.is_valid_email_address(YKHO.email_address)",
"def HkjV(YKHO, Hxmi):\n return r9IA.search(Hxmi) is not None",
"def Tw02(YKHO, UTX6):\n if YKHO._reEmail.search(UTX6) is None:\n return False\n return True",
"def G4pt(D3lj):\n if not D3lj:\n return False... | [
"0.7261221",
"0.7197097",
"0.7137799",
"0.70129687",
"0.69041324",
"0.68748504",
"0.6826189",
"0.6785174",
"0.67456555",
"0.67242664",
"0.67078286",
"0.67073226",
"0.6687828",
"0.6670819",
"0.6668222",
"0.6647303",
"0.6646258",
"0.66163963",
"0.65983045",
"0.6593187",
"0.6589... | 0.7298479 | 0 |
Split series into train and test data | def x7Jy(YKHO, S_JV=0.7):
if S_JV > 1 or S_JV < 0:
raise Exception('Train composition must be between 0-1')
zBu_ = int(len(YKHO.series) * S_JV)
EvQg = YKHO.series[0:zBu_]
QOe9 = YKHO.series[zBu_:]
return (EvQg, QOe9, zBu_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YB1m(EcVT, LVAh, NI2E):\n hDnz = int(len(EcVT) * (1 - NI2E))\n Lcqa = EcVT.iloc[:hDnz]\n VJv0 = LVAh.iloc[:hDnz]\n Z5wO = EcVT.iloc[hDnz:]\n H96n = LVAh.iloc[hDnz:]\n return (Lcqa, Z5wO, VJv0, H96n)",
"def YB1m(EcVT, LVAh, NI2E):\n hDnz = int(len(EcVT) * (1 - NI2E))\n Lcqa = EcVT.iloc... | [
"0.78314894",
"0.7818263",
"0.7818263",
"0.7818263",
"0.75034237",
"0.74912804",
"0.74128836",
"0.74100393",
"0.7390951",
"0.7325565",
"0.72698313",
"0.72303164",
"0.72243065",
"0.721668",
"0.7203941",
"0.7183727",
"0.7169798",
"0.71568465",
"0.71437675",
"0.71259856",
"0.711... | 0.69022673 | 48 |
Function that generates the cumulative function for each batch | def BoaY(qPVL: np.ndarray, Wc9F):
neCj = oyIN.zeros((Wc9F, Wc9F, 256)).astype(oyIN.float64)
for a06Z in range(Wc9F):
for dsqg in range(Wc9F):
wjRY = sum(qPVL[a06Z][dsqg])
neCj[a06Z][dsqg][0] = qPVL[a06Z][dsqg][0] / wjRY
for PjBp in range(1, 256):
neCj[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FQed(YKHO):\n wjRY = 0.0\n for YRbF in range(0, YKHO.tick_count):\n Yqag = YKHO.get_x_value_from_index(YRbF)\n Q7Be = YKHO.shape_function(Yqag)\n zgiu.validate_real_number_is_positive_or_zero(Q7Be)\n wjRY += Q7Be\n YKHO.cumulative_function.append(wjRY)",
"def FarL(YKH... | [
"0.73401994",
"0.6666838",
"0.6328504",
"0.63254327",
"0.62693477",
"0.6196362",
"0.61884224",
"0.6164055",
"0.61345947",
"0.6098993",
"0.6049892",
"0.6009443",
"0.59940064",
"0.59884775",
"0.59786314",
"0.5931062",
"0.59225255",
"0.5897992",
"0.58906555",
"0.58804804",
"0.58... | 0.7735454 | 0 |
Get the adsorbent model for HK PSD. The ``model`` parameter is a string which names the parameters which should be returned. Alternatively, a user can implement their own adsorbent model, by passing a dict. | def sOT5(C3ST: 'str | dict'):
if isinstance(C3ST, str):
if C3ST not in AEMH:
raise qQZX(f'Model ({C3ST}) is not an option for pore size distribution.', f'Available models are {AEMH.keys()}')
return AEMH[C3ST]
if isinstance(C3ST, dict):
for H5ew in uxHw.items():
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(dyeT: dict) -> U78l.Module:\n if dyeT['name'] is not None:\n return QBSk(dyeT['name'])\n else:\n return LGF0(**dyeT)",
"def _8gI(yXjA, uwTF, C3ST, SPgN, NiEw, TIqt, iC1z, N4eE, **B2fa):\n if C3ST.lower() not in MFgt._supported_models_:\n print('Model {} not supported. Suppo... | [
"0.64944744",
"0.6007544",
"0.59873664",
"0.59545314",
"0.5930487",
"0.58725363",
"0.58445257",
"0.5833797",
"0.5775969",
"0.5772613",
"0.57222325",
"0.57131803",
"0.5696676",
"0.56665856",
"0.5643309",
"0.5625659",
"0.56170523",
"0.561263",
"0.5578112",
"0.5568239",
"0.55505... | 0.7424737 | 0 |
No subdomains can be created under a domain that is delegated. This function checks whether a domain is violating that condition. | def vKpi(zrIJ, fsNO):
if not fsNO:
return
if not fsNO.delegated:
return
if not zrIJ.pk:
raise sUXu('No subdomains can be created in the {0} domain. It is delegated.'.format(fsNO.name)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _bv2(YKHO):\n for finE in YKHO.subdomains:\n if not finE.check():\n return False\n else:\n return True",
"def XBf3(YKHO):\n pass",
"def OtDm(YKHO) -> bool:\n return YKHO.restrict_domanis and YKHO.server.get(YKHO.did_restrict_key)",
"def ZDti(YKHO, zrIJ):\n ... | [
"0.6907965",
"0.66976345",
"0.6362612",
"0.6339822",
"0.6326697",
"0.6282963",
"0.62168264",
"0.62150043",
"0.60738516",
"0.6019704",
"0.59761447",
"0.59175414",
"0.5916055",
"0.5916055",
"0.587878",
"0.5869582",
"0.5865563",
"0.58655185",
"0.5838182",
"0.58188474",
"0.580566... | 0.6796695 | 1 |
Returns a string representation of the object | def wHJl(YKHO):
return f'<{YKHO.__class__.__name__}({YKHO.address_name}:{YKHO.password}@{YKHO.domain})[{YKHO.address_domain}]>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return YKHO.object_repr",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return str(YKHO.obj)",
"def zAg0(YKHO):\n return str(YKHO.serialize())",
"def zAg0(YKHO):\n return _RHq(YKHO)",
"def zAg0(YKHO):\n return _RHq(YKHO)",
"def zAg0(YKHO):\n ret... | [
"0.8524736",
"0.8473815",
"0.8385237",
"0.82262415",
"0.82035977",
"0.82035977",
"0.81943953",
"0.81582355",
"0.8139828",
"0.8139828",
"0.8139828",
"0.81296957",
"0.8121089",
"0.8113791",
"0.8080452",
"0.8080452",
"0.8080452",
"0.8080452",
"0.8080452",
"0.8080452",
"0.8052509... | 0.0 | -1 |
Check if ONVIF long polling is working. | async def _async_check_onvif_long_poll(YKHO, *bGrB) -> None:
if not YKHO._long_poll_received:
vzeF.debug('Did not receive state through ONVIF long polling after %i seconds', RCDg)
_ABP.async_create_issue(YKHO._hass, Sugg, 'webhook_url', is_fixable=False, severity=_ABP.IssueSeverity.WARNING, translat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _async_check_onvif(YKHO, *bGrB) -> None:\n if YKHO._webhook_reachable:\n _ABP.async_delete_issue(YKHO._hass, Sugg, 'webhook_url')\n YKHO._cancel_onvif_check = None\n return\n if YKHO._api.supported(None, 'initial_ONVIF_state'):\n vzeF.debug(\"Did not receive initial ONVI... | [
"0.73950636",
"0.69525117",
"0.6850928",
"0.68397224",
"0.6796824",
"0.6796824",
"0.67430735",
"0.67430735",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998",
"0.6686998"... | 0.7884606 | 0 |
Execute the renew of the subscription. | async def _renew(YKHO, oPUJ: SubType) -> None:
if not YKHO._api.subscribed(oPUJ):
vzeF.debug('Host %s: requested to renew a non-existing Reolink %s subscription, trying to subscribe from scratch', YKHO._api.host, oPUJ)
if oPUJ == _nTb.push:
await YKHO.subscribe()
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2zz(PEyu=None):\n pass",
"async def renew(YKHO) -> None:\n try:\n await YKHO._renew(_nTb.push)\n if YKHO._long_poll_task is not None:\n if not YKHO._api.subscribed(_nTb.long_poll):\n vzeF.debug('restarting long polling task')\n await YKHO._async_s... | [
"0.74264765",
"0.7129839",
"0.6792881",
"0.65000886",
"0.64852875",
"0.6385687",
"0.63549095",
"0.6347709",
"0.6288194",
"0.6269607",
"0.6184155",
"0.6096861",
"0.60731554",
"0.59992653",
"0.5973341",
"0.5972547",
"0.5936104",
"0.59278756",
"0.5894302",
"0.58649254",
"0.58649... | 0.71609896 | 1 |
Update the binary sensors with async_write_ha_state. | def cU7g(YKHO, xMux: list[int] | None) -> None:
if xMux is None:
XQGx(YKHO._hass, f'{YKHO.webhook_id}_all', {})
return
for YwkQ in xMux:
XQGx(YKHO._hass, f'{YKHO.webhook_id}_{YwkQ}', {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def async_update(YKHO):\n vzeF.debug('Binary Sesnors doing a update.')\n await YKHO._sensor.async_update()\n YKHO._state = YKHO._sensor._state\n YKHO._rssi = YKHO._sensor._rssi\n YKHO._voltage = YKHO._sensor._voltage\n YKHO._open_close_state_ts = YKHO._sensor._open_close_state_ts",
"async... | [
"0.73594475",
"0.7274519",
"0.7181168",
"0.7059828",
"0.7057887",
"0.68709016",
"0.68673044",
"0.67650306",
"0.65895116",
"0.65496325",
"0.6542265",
"0.6517611",
"0.65132767",
"0.64674604",
"0.64157265",
"0.64075154",
"0.6389019",
"0.6389019",
"0.63728905",
"0.6355145",
"0.63... | 0.5744766 | 78 |
Build index.html for cherrypy Render the template and return the html file to be delivered to the browser | def d6pt(YKHO, U3hF=None):
TCZ_ = YKHO.tplenv.get_template('index.html')
return TCZ_.render(p=YKHO.plugin, items=sorted(YKHO.items.return_items(), key=lambda G1Hx: str.lower(G1Hx['_path']))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b8V_():\n return TvZl('index.html')",
"def iDOr(YKHO):\n YKHO.response.headers['Content-Type'] = 'text/html'\n YKHO.response.out.write(sEMF)",
"def _1tc():\n return TvZl('index.html')",
"def b8V_():\n return TvZl('index.html')",
"def d6pt():\n return TvZl('index.html')",
"def d6pt()... | [
"0.78035253",
"0.772851",
"0.77045476",
"0.7692574",
"0.7681318",
"0.7661557",
"0.7658659",
"0.76480913",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
"0.763999",
... | 0.0 | -1 |
Take a sudoku grid and the element to test Return the solution | def GfdN(Cs6h, BHsk):
wkUV = Cs6h[BHsk[1]]
Jgf9, GERS = VZ8c(wkUV)
if Jgf9:
Cs6h[BHsk[1]][BHsk[0]] = GERS
return False
FFG1 = []
for zFiD in Cs6h:
FFG1.append(zFiD[BHsk[0]])
Jgf9, GERS = VZ8c(FFG1)
if Jgf9:
Cs6h[BHsk[1]][BHsk[0]] = GERS
return False
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eGi5(Cs6h):\n aGjl = yhMG(Cs6h)\n aGjl = TgwQ(aGjl)\n if aGjl:\n return aGjl\n else:\n return Uiw6",
"def FWzL(Cs6h):\n Cs6h = WDCi(Cs6h)\n while True:\n IXX4 = False\n for MK3b, zFiD in enumerate(Cs6h):\n for yNbx, U6D_ in enumerate(zFiD):\n ... | [
"0.7546509",
"0.7456724",
"0.7261045",
"0.71922183",
"0.7187548",
"0.7177747",
"0.7173177",
"0.7164076",
"0.7159452",
"0.71590734",
"0.7103189",
"0.70770293",
"0.70760936",
"0.70699126",
"0.70565933",
"0.7029913",
"0.702242",
"0.6991226",
"0.6987866",
"0.6977444",
"0.697543",... | 0.0 | -1 |
Register optimizers to the optimizer factory | def gr_i(rV9y):
assert isinstance(rV9y, type)
mWFP = rV9y.__name__.lower()
if mWFP in hCm3.opt_registry:
print('WARNING: New optimizer %s.%s is overriding existing optimizer %s.%s' % (rV9y.__module__, rV9y.__name__, hCm3.opt_registry[mWFP].__module__, hCm3.opt_registry[mWFP].__name__))
hCm3.opt_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KMq1(YKHO):\n pass",
"def z9qU(YKHO):\n B2fa = _qLf(YKHO.model_config['optimizer']['params'])\n tzWY = list(YKHO.main_net.parameters()) + list(YKHO.ssl_net.head.parameters())\n B2fa.update({'params': tzWY})\n YKHO.optimizer = CNOZ.create(YKHO.model_config['optimizer']['name'], **B2fa)\n if ... | [
"0.7234643",
"0.7217253",
"0.7169421",
"0.68682075",
"0.68240356",
"0.67990714",
"0.67490077",
"0.67057496",
"0.6658948",
"0.6628",
"0.6591128",
"0.65854126",
"0.6468222",
"0.64614165",
"0.64158297",
"0.64080685",
"0.63823664",
"0.6351868",
"0.6344299",
"0.6317372",
"0.630047... | 0.68911195 | 3 |
set lr scale is deprecated. Use set_lr_mult instead. | def KW7l(YKHO, YlYI):
raise DeprecationWarning | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def p1Mj(K0do, NXpY):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] *= NXpY",
"def F62f(YKHO, aM8h):\n GMHq = YKHO.optimizer.lr.read_value()\n YKHO.optimizer.lr.assign(aM8h * GMHq)",
"def LruE(YKHO, WVUz):\n YKHO.lr = WVUz",
"def e_63(tspZ, m_03, paSp, Ep8u, K0do, Wc9F):\n for YRbF in r... | [
"0.73765475",
"0.68724495",
"0.66914296",
"0.66398853",
"0.65769",
"0.6481599",
"0.64720404",
"0.6464548",
"0.64498466",
"0.6429648",
"0.6423557",
"0.6382953",
"0.6382953",
"0.6367954",
"0.6350183",
"0.63019866",
"0.62998056",
"0.62952566",
"0.62925184",
"0.6279239",
"0.62582... | 0.8290616 | 0 |
Set individual learning rate multipler for parameters | def b2g2(YKHO, bNZ5):
YKHO.lr_mult = {}
if YKHO.sym is not None:
hkS8 = YKHO.sym.list_attr(recursive=True)
for G1Hx, Ty9i in hkS8.items():
if G1Hx.endswith('_lr_mult'):
YKHO.lr_mult[G1Hx[:-len('_lr_mult')]] = float(Ty9i)
YKHO.lr_mult.update(bNZ5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j07Q(K0do, pSDG):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = pSDG * Lwm5['lr']\n print('Learning rate adjusted to: {}'.format(Lwm5['lr']))",
"def kVtO(K0do, tspZ):\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = tspZ",
"def GhcC(YKHO, pSDG):\n for mWFP, LTX_ in YKHO.items... | [
"0.7964319",
"0.72473013",
"0.7244534",
"0.71460325",
"0.71447164",
"0.71206176",
"0.7104273",
"0.71031696",
"0.7099308",
"0.7095129",
"0.7079819",
"0.70640874",
"0.70583814",
"0.7047353",
"0.7030068",
"0.7023271",
"0.7017687",
"0.70119107",
"0.70042324",
"0.70003086",
"0.700... | 0.0 | -1 |
Remove the type comment while keeping any following comments. | def wSND(aM_I: Optional[cst.Comment]) -> h8nf[VIcB.Comment]:
if not qYvt(aM_I):
return aM_I
assert aM_I is not None
or8S = aM_I.value.find('#', 1)
if or8S < 0:
return None
return aM_I.with_changes(value=aM_I.value[or8S:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ktLQ(YKHO, Q6kx):\n del Q6kx.children[:]",
"def bSLV(U6D_):\n for aUGN in U6D_:\n if isinstance(aUGN, QGpr._Comment):\n U6D_.remove(aUGN)\n return U6D_",
"def XE4R(YKHO, Hghu):\n if Hghu == 0:\n while YKHO.current_character is not '\\n':\n YKHO.current_charac... | [
"0.7084491",
"0.68811876",
"0.68071353",
"0.6641884",
"0.63420993",
"0.63243425",
"0.63125086",
"0.62770104",
"0.6223785",
"0.620208",
"0.6138465",
"0.60856205",
"0.6075738",
"0.6040808",
"0.60361373",
"0.59615654",
"0.59474814",
"0.59312797",
"0.5924997",
"0.59200263",
"0.58... | 0.76186335 | 0 |
Convert any SimpleStatementLine containing an Assign with a type comment into a one that uses a PEP 526 AnnAssign. | def SS9E(YKHO, fbz6: cst.SimpleStatementLine, qcyD: cst.SimpleStatementLine) -> uLKX[VIcB.SimpleStatementLine, VIcB.FlattenSentinel]:
bD1G = qcyD.body[-1]
if not isinstance(bD1G, VIcB.Assign):
return qcyD
ICn2 = stcR(fbz6)
if ICn2 is None:
return qcyD
DwRD = HxdE(node=bD1G, annotatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G83w(zFiD):\n AdfU = ZbWC.split('\\\\s', zFiD)\n mWFP = AdfU[-1][:-1]\n ZFkL = 0\n for Z9rn in AdfU:\n if Z9rn == 'typedef':\n break\n ZFkL = ZFkL + 1\n BEic = 'using ' + mWFP + ' ='\n AdfU[ZFkL] = BEic\n b_bB = ' '.join(AdfU[:-1]) + ';'\n return b_bB",
"def v... | [
"0.57381266",
"0.55183977",
"0.5237599",
"0.52157986",
"0.51676315",
"0.51336396",
"0.51181227",
"0.51031",
"0.50811964",
"0.50612617",
"0.5038861",
"0.5037554",
"0.50275934",
"0.50261813",
"0.5023688",
"0.49446023",
"0.4940126",
"0.49384418",
"0.49267715",
"0.4907227",
"0.49... | 0.6178355 | 0 |
Ensure that FRs cannot be created with a past target_date. | def mJfe(YKHO):
CR5D = {'user_id': 4, 'client_id': 3}
Uk8I = False
try:
XiBu(title='Add RRSP account interface to web client.', target_date=qcWV.datetime.now() - qcWV.timedelta(days=1), **CR5D)
except ValueError:
Uk8I = True
assert Uk8I
k2LI = False
try:
XiBu(title='A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZwC(YKHO):\n for FMwV in YKHO:\n if FMwV.issue_date and FMwV.target_date:\n if FMwV.target_date < FMwV.issue_date:\n raise sUXu('Target Completion Date Should Be Greater Than Issue Date.')",
"def EOJQ(YKHO):\n za4a.date_not_in_future(_c1T.today())\n za4a.date_not_in... | [
"0.6762027",
"0.6726797",
"0.66255397",
"0.6566985",
"0.6496895",
"0.64409614",
"0.6427211",
"0.6421581",
"0.6416193",
"0.6393307",
"0.6344504",
"0.6313889",
"0.62377036",
"0.6191084",
"0.6188552",
"0.6183158",
"0.6157782",
"0.61448926",
"0.6084277",
"0.6084268",
"0.5963955",... | 0.7224481 | 0 |
Calculates the proportion of area in each grid box to the total BE sediment area (m2) A(i,j,k)/A_TOTAL | def Qpxv(i4an):
rb7a, QnmL, FDPT = oyIN.shape(i4an.data)
Zuei = oyIN.zeros((rb7a, QnmL, FDPT))
for r845 in range(0, FDPT):
for YRbF in range(0, QnmL):
for G1Hx in range(0, rb7a):
Zuei[G1Hx, YRbF, r845] = KSyx[G1Hx, YRbF, r845] / AfZM
w4mx = i4an.copy(data=Zuei)
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vn7_(EbWA):\n pass",
"def VFGQ(YKHO, SQ3m):\n f0tD = 0.0\n hefi = []\n for Q7me in SQ3m:\n exwG = len(Q7me)\n for YRbF in range(exwG):\n r845 = (YRbF + 1) % exwG\n f0tD += Q7me[YRbF][0] * Q7me[r845][1]\n f0tD -= Q7me[r845][0] * Q7me[YRbF][1]\n ... | [
"0.66778743",
"0.65259796",
"0.6521024",
"0.6327811",
"0.6310184",
"0.6256486",
"0.6221309",
"0.6149283",
"0.6149283",
"0.6125453",
"0.6108235",
"0.6092619",
"0.60796374",
"0.6058846",
"0.60400045",
"0.6038694",
"0.6036429",
"0.6021229",
"0.6008066",
"0.5992122",
"0.5971383",... | 0.64230317 | 3 |
Streams new ticker information for an asset pair, if no asset pair specified the websocket service will stream all instruments ticker. | def kWfe(YKiD: str):
x0hE = R01m()
x0hE.ticker(YKiD)
while True:
print('')
print('receiving message')
nyyK, geh0, APFA, tf1m = x0hE.receive_conn()
if not nyyK:
COgv(geh0, APFA, tf1m)
x0hE.close()
exit()
geh0 = qQXR.loads(geh0)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def ticker(YKHO, kgDL: typing.Optional[typing.List[typing.Union[str, AssetPair]]]=None):\n Zqbv = [XP5J for XP5J in kgDL if isinstance(XP5J, jBfN)]\n if len(kgDL) > len(Zqbv):\n hr6T = await YKHO.retrieve_assetpairs(pairs=kgDL)\n VsK3 = [hr6T[XP5J] for XP5J in kgDL if not isinstance(XP5J,... | [
"0.6410729",
"0.6362025",
"0.6189249",
"0.613239",
"0.59259385",
"0.58495325",
"0.5779952",
"0.5765825",
"0.57487255",
"0.57459855",
"0.5703188",
"0.5659871",
"0.565294",
"0.54952174",
"0.54856336",
"0.5445107",
"0.5410573",
"0.5355195",
"0.5352012",
"0.53503007",
"0.5300728"... | 0.5675836 | 11 |
Handles password reset tokens When a token is created, an email needs to be sent to the user | def QcQe(vC92, KAOR, Wne8, *qIxc, **B2fa):
QpfX = {'current_user': Wne8.user, 'username': Wne8.user.username, 'email': Wne8.user.email, 'reset_password_url': '/#/password-reset/{}/'.format(Wne8.key)}
nnKr = eoaG('email/user_reset_password.html', QpfX)
JbFw = eoaG('email/user_reset_password.txt', QpfX)
t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QcQe(vC92, KAOR, Wne8, *qIxc, **B2fa):\n QpfX = {'current_user': Wne8.user, 'username': Wne8.user.username, 'email': Wne8.user.email, 'reset_password_url': '{}?token={}'.format(gxEw('password_reset:reset-password-request'), Wne8.key)}\n print('sending email')\n U4ZT = 'Sign In to Sales Discovery Platf... | [
"0.82248265",
"0.819641",
"0.8134598",
"0.8075277",
"0.80363107",
"0.80219495",
"0.7956906",
"0.75541306",
"0.73556983",
"0.7246054",
"0.72373885",
"0.7223424",
"0.7141486",
"0.71222293",
"0.70905876",
"0.7088065",
"0.7057015",
"0.7036461",
"0.6961401",
"0.6953756",
"0.694622... | 0.81134427 | 3 |
initialize a incoming spin 3/2 wavefunction. | def vtHw(XP5J, bMbF, rUJq, oJJH):
lRYc = nXwQ(4)
S1Gg = PZyS(0.5)
HuaE = PZyS(2)
nbz6 = PZyS(3)
ZYCo = XP5J[1] ** 2 + XP5J[2] ** 2
_oWe = min([XP5J[0], PZyS(ZYCo + XP5J[3] ** 2)])
Xf84 = min([_oWe, PZyS(ZYCo)])
RBVb = {}
RBVb[4, 0] = -1 * complex(XP5J[0], XP5J[3]) * oJJH
RBVb[5, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, QcCg=0, _hDL=0, dV7_=0):\n YKHO.switch = 0\n YKHO.n_time = QcCg\n YKHO.n_radiation = _hDL\n YKHO.n_integration = dV7_\n YKHO.time = oyIN.zeros((QcCg,), dtype='f')\n YKHO.k = oyIN.zeros((QcCg, _hDL, dV7_), dtype='f')\n YKHO.added_mass = oyIN.zeros((_hDL, dV7_), dtype='f')",
"de... | [
"0.59143627",
"0.5831384",
"0.5714962",
"0.5707962",
"0.56366444",
"0.5628459",
"0.55997205",
"0.5586651",
"0.5570616",
"0.5562044",
"0.55603194",
"0.55342996",
"0.55283535",
"0.55279124",
"0.55098784",
"0.5496971",
"0.5496971",
"0.5481481",
"0.54752916",
"0.5423416",
"0.5406... | 0.0 | -1 |
initialize a incoming spin 3/2 wavefunction. | def TsTF(XP5J, bMbF, rUJq, oJJH):
HMVl = nXwQ(spin=4)
S1Gg = PZyS(0.5)
HuaE = PZyS(2)
nbz6 = PZyS(3)
ZYCo = XP5J[1] ** 2 + XP5J[2] ** 2
_oWe = min([XP5J[0], PZyS(ZYCo + XP5J[3] ** 2)])
Xf84 = min([_oWe, PZyS(ZYCo)])
RBVb = {}
RBVb[4, 0] = complex(XP5J[0], XP5J[3]) * oJJH
RBVb[5, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, QcCg=0, _hDL=0, dV7_=0):\n YKHO.switch = 0\n YKHO.n_time = QcCg\n YKHO.n_radiation = _hDL\n YKHO.n_integration = dV7_\n YKHO.time = oyIN.zeros((QcCg,), dtype='f')\n YKHO.k = oyIN.zeros((QcCg, _hDL, dV7_), dtype='f')\n YKHO.added_mass = oyIN.zeros((_hDL, dV7_), dtype='f')",
"de... | [
"0.59143627",
"0.5831384",
"0.5714962",
"0.5707962",
"0.56366444",
"0.5628459",
"0.55997205",
"0.5586651",
"0.5570616",
"0.5562044",
"0.55603194",
"0.55342996",
"0.55283535",
"0.55279124",
"0.55098784",
"0.5496971",
"0.5496971",
"0.5481481",
"0.54752916",
"0.5423416",
"0.5406... | 0.0 | -1 |
Returns an argument parser object. | def xuJu():
wvEv = j1Jz.ArgumentParser(description='Allows CLARK to be called using a generic CC-POMDP input.')
wvEv.add_argument('mfile', type=str, help='Path to Python file containing the CC-POMDP planning model.')
wvEv.add_argument('mfunc', type=str, help='Function in the model file that outputs the CC-P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuJu():\n return j1Jz.ArgumentParser()",
"def EpPs():\n wvEv = B4X0.ArgumentParser(description=__doc__)\n return wvEv",
"def EpPs():\n from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter\n wvEv = ArgumentParser(description=__doc__, formatter_class=ArgumentDefaultsHelpFormatter... | [
"0.8281095",
"0.82163966",
"0.804771",
"0.804661",
"0.80086136",
"0.79701406",
"0.7951122",
"0.7929108",
"0.79078853",
"0.78798383",
"0.78714967",
"0.78492105",
"0.7839164",
"0.7819491",
"0.7819428",
"0.7815743",
"0.7812999",
"0.7790992",
"0.77848506",
"0.7768477",
"0.7729754... | 0.72925216 | 63 |
Checks the state of the world, and returns a feature matrix to be used as input to the AI update function. | def tuD8(YKHO, xaUp, WFC2):
return YKHO._brain.sense(YKHO, xaUp, WFC2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mav0(QTBn):\n RDhP = oyIN.zeros((QTBn.size, QTBn.size, 1))\n for WKvO, LVAh in QTBn.get_legal_moves():\n RDhP[WKvO, LVAh, 0] = 1\n return RDhP",
"def K1eC(YKHO, QTBn):\n\n def Z4Z7(Cs6h):\n WKvO, LVAh = oeNL\n ydZk, OhBR = pojQ\n YRSS, rUT8 = (int(ydZk / 2), int(OhBR /... | [
"0.6462604",
"0.6269925",
"0.626281",
"0.626281",
"0.626281",
"0.6225888",
"0.62128454",
"0.6147422",
"0.5962989",
"0.5912837",
"0.58910066",
"0.5757412",
"0.5753555",
"0.5744031",
"0.5709323",
"0.5675197",
"0.5675197",
"0.5590907",
"0.558987",
"0.5543087",
"0.553984",
"0.5... | 0.0 | -1 |
Current len of queue | def B6It(YKHO):
return len(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nWMf(YKHO):\n return len(YKHO.queue)",
"def szAg(YKHO) -> int:\n return len(YKHO.queue)",
"def UrdD(YKHO):\n return len(YKHO.queue)",
"def szAg(YKHO):\n return len(YKHO._queue)",
"def szAg(YKHO):\n return len(YKHO._queue)",
"def szAg(YKHO):\n return len(YKHO._queue)",
"def u54L(YK... | [
"0.85881513",
"0.8587926",
"0.8534034",
"0.8364475",
"0.8364475",
"0.8364475",
"0.8348181",
"0.832822",
"0.83189553",
"0.8282977",
"0.81412005",
"0.8058758",
"0.7988301",
"0.79676765",
"0.7966002",
"0.7938789",
"0.79302776",
"0.78723603",
"0.7823789",
"0.78126556",
"0.7800103... | 0.88069516 | 0 |
Return a SparkSession object. | def Yu9h():
return lBG2.builder.getOrCreate() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN():\n return lBG2.builder.config(conf=Mwml()).getOrCreate()",
"def Yu9h():\n return lBG2.builder.appName('Sales processor').master('local[*]').getOrCreate()",
"def F8fu():\n from pyspark.sql import SparkSession\n return SparkSession.builder.getOrCreate()",
"def F8fu(eAID=True, PJWX=False)... | [
"0.856277",
"0.81187415",
"0.8089891",
"0.79507995",
"0.7857577",
"0.78483737",
"0.7800412",
"0.7782107",
"0.777292",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
"0.7758477",
... | 0.8198005 | 1 |
Returns a dataframe of the CSV file located at path. | def HND1(pmON):
pmON = pmON if isinstance(pmON, str) else str(pmON)
return Yu9h().read.csv(pmON, header=True, inferSchema=True, enforceSchema=False, mode='DROPMALFORMED') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HND1(YKHO, pmON: str, **B2fa) -> rLdf.DataFrame:\n cJUo = YKHO._get(pmON)\n return rLdf.read_csv(cJUo, **B2fa)",
"def mjM_(pmON):\n jQ3Z = rLdf.read_csv(pmON)\n return jQ3Z",
"def m6_J(YKHO, pmON: Union[str, List[str]]=None, **B2fa) -> rLdf.DataFrame:\n YKHO.file_format = 'csv'\n if pmON ... | [
"0.8396296",
"0.82616436",
"0.8031934",
"0.7984661",
"0.7972655",
"0.79465187",
"0.7946134",
"0.7933685",
"0.7818328",
"0.7817835",
"0.77321255",
"0.7695984",
"0.76775837",
"0.76480377",
"0.7647604",
"0.7643184",
"0.7593535",
"0.7561506",
"0.75554925",
"0.7554998",
"0.7532373... | 0.72294605 | 33 |
Gets value from 'mean' line (line fit to data) at point x. | def DAIB(YKHO, WKvO):
return YKHO.slope * WKvO + YKHO.mean | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oz2q(YKHO):\n return YKHO['meanline']",
"def pyoE(YKHO, WKvO):\n JBMS = oyIN.mean(WKvO, axis=0)\n return JBMS",
"def DH4Z(YKHO, WKvO):\n Kiqe, D7it = YKHO.get_posterior_params(WKvO)\n return Kiqe / (Kiqe + D7it)",
"def JBMS(WKvO):\n if len(WKvO) == 0:\n return 0\n else:\n ... | [
"0.7457281",
"0.73992985",
"0.70362955",
"0.65597254",
"0.65552807",
"0.6547073",
"0.6527327",
"0.6514053",
"0.64290005",
"0.6407806",
"0.6390901",
"0.63794446",
"0.6374508",
"0.63690597",
"0.6358195",
"0.6328307",
"0.62955934",
"0.629521",
"0.62613046",
"0.6203343",
"0.61870... | 0.7798795 | 0 |
Converts wavelength as input into nearest integer pixel value | def j435(YKHO, lNm8):
vEPh = (lNm8 - YKHO.s3d.wave[0]) / YKHO.s3d.wlinc
return max(0, int(round(vEPh))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sT15(__d3):\n uD85 = 348.4316445\n i8nr = 0.069763835\n vo6s = -2.98682e-06\n klZU = uD85 - i8nr ** 2 / (4 * vo6s)\n BvMi = i8nr / (2 * vo6s)\n e3Fk = int(epAf.floor(-epAf.sqrt((__d3 - klZU) / vo6s) - BvMi))\n return e3Fk",
"def IL2V(sAgt, f9S1):\n AnZD = len(sAgt)\n zAqu = (sAgt[-... | [
"0.72398555",
"0.68803984",
"0.6338304",
"0.6289295",
"0.61485094",
"0.6096979",
"0.59531343",
"0.5939459",
"0.5907839",
"0.5862451",
"0.58399725",
"0.5742648",
"0.57232577",
"0.5718397",
"0.56912696",
"0.567251",
"0.56698227",
"0.5638589",
"0.5624438",
"0.56046724",
"0.56004... | 0.6222307 | 4 |
Returns the install type for the instance of the agent currently running. | def Qmt_(YKHO):
return YKHO._install_type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AaOY(bo34=None):\n try:\n cQdE = Hy7s.environ['INSTALLER_TYPE']\n except KeyError:\n if bo34:\n bo34.error('Impossible to retrieve the installer type')\n cQdE = 'Unknown_installer'\n return cQdE",
"def qMhm():\n if Hy7s.path.exists(Aj3k(YK1n, 'scripts')):\n ... | [
"0.71630037",
"0.66676253",
"0.64196944",
"0.6417615",
"0.6341699",
"0.63404715",
"0.6280346",
"0.6280346",
"0.6276485",
"0.6276485",
"0.6276485",
"0.6276485",
"0.6276485",
"0.6276485",
"0.6214103",
"0.6196721",
"0.6175592",
"0.60437024",
"0.60424393",
"0.60195714",
"0.601465... | 0.82666934 | 0 |
Set up the MeteoFrance component. | def eCGt(ajET, GPtr):
ajET.data[byOb] = {}
nz2W = False
for Rci7 in GPtr[Sugg]:
if atX2 in Rci7 and 'weather_alert' in Rci7[atX2]:
nz2W = True
if nz2W:
vzeF.debug('Weather Alert monitoring expected. Loading vigilancemeteo')
AB7J = S6AV()
try:
AB7J.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Baw8(YKHO):\n YKHO.face_locate = Kb4M.Module(name='face_landmark_localization')",
"def eCGt(JyK9):\n JyK9.add_cog(oEv5(JyK9))",
"def iObY(YKHO, qF81):\n YKHO.omegle = qF81",
"def eCGt(YKHO):\n YKHO.init(-15)\n YKHO.ShutterPriority(1)\n YKHO.exposureproperties(YKHO.startPos, YKHO.imgSize... | [
"0.62174386",
"0.58002436",
"0.57736003",
"0.56896627",
"0.5684314",
"0.5606181",
"0.5604613",
"0.5517886",
"0.5513916",
"0.5500137",
"0.5412023",
"0.5395471",
"0.53861994",
"0.53801143",
"0.5378072",
"0.53767365",
"0.53745306",
"0.5368719",
"0.5368719",
"0.53652",
"0.5350290... | 0.59702945 | 1 |
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page. | def lwXz(YKHO, L03z):
BGqR = L03z.save(commit=False)
BGqR.user = YKHO.request.user
BGqR.save()
L03z = MgMP()
tO9_ = 'successfully registered'
return YKHO.render_to_response(YKHO.get_context_data(form=L03z, success=tO9_)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')",
"def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali... | [
"0.7069723",
"0.69865423",
"0.6809194",
"0.67875564",
"0.67875564",
"0.6585858",
"0.6576163",
"0.65466267",
"0.6538836",
"0.64097506",
"0.64001596",
"0.63869554",
"0.63352776",
"0.6325192",
"0.6286049",
"0.6267111",
"0.62623435",
"0.6248465",
"0.6183507",
"0.61606926",
"0.615... | 0.0 | -1 |
Displays the user profile | def _DWX(QePW):
if QePW.method == 'POST':
f6W2 = QePW.FILES['video']
print(f6W2)
XCeg = BFpK.objects.get(user_id=QePW.user.id)
XCeg.video = f6W2
XCeg.save()
return vKnz('profile')
else:
return _1tc(QePW, 'profile/home.html', {}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QyAW():\n return TvZl('user_profile_page.html')",
"def fRKm():\n return TvZl('userprofile.html', username=SAOk())",
"def SGll():\n return TvZl('user_profile_page.html')",
"def YxIp():\n CBIr = mv1M.query.get_or_404(Oa1e.user.id)\n return TvZl('/user/profile.html', user=CBIr)",
"def SGll(... | [
"0.8878008",
"0.869271",
"0.85362095",
"0.8497489",
"0.8429873",
"0.8411198",
"0.8285904",
"0.8282901",
"0.82747054",
"0.82198447",
"0.81865865",
"0.81836635",
"0.8114592",
"0.8075179",
"0.8063399",
"0.7999647",
"0.7995806",
"0.79452866",
"0.7915938",
"0.78995883",
"0.7886108... | 0.0 | -1 |
Sets the creation time `created_at` to the given time | def cSZ2(YKHO, a1PO=None):
if a1PO is None:
a1PO = gnPz.now_int()
else:
gnPz.check_attr_type(a1PO, int)
YKHO._h5file.attrs['created_at'] = gnPz.time_to_str(a1PO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kpUr(YKHO, BWXx):\n setattr(YKHO, YKHO.CREATED_AT, BWXx)",
"def bZt2(YKHO, bZt2):\n YKHO._creation_time = bZt2",
"def bZt2(YKHO, bZt2):\n YKHO._creation_time = bZt2",
"def wqpv(YKHO, wqpv):\n YKHO._created_time = wqpv",
"def aJ2e(YKHO, aJ2e):\n YKHO._created_at = aJ2e",
"def aJ2e(YKHO,... | [
"0.83812433",
"0.75682414",
"0.75682414",
"0.7532872",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",
"0.75165945",... | 0.73890907 | 36 |
Return the current time as a string for log purposes. | def E3oo():
wzkt = qcWV.now()
G91o = wzkt.strftime('%m/%d/%Y, %H:%M:%S %Z')
return G91o | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz29():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.gmtime())",
"def qAPu():\n G91o = qcWV.datetime.now()\n return G91o.strftime('%Y.%m.%d-%H:%M:%S')",
"def fTxZ():\n PYuG = qcWV.utcnow()\n return QMSQ(PYuG.strftime('%Y%m%d%H%M%S'))",
"def iBai():\n return str(ITS7.strftime('%a %d ... | [
"0.865623",
"0.8524246",
"0.8483049",
"0.8393721",
"0.83915937",
"0.83911717",
"0.8294196",
"0.8286417",
"0.8283326",
"0.82831115",
"0.8248223",
"0.8228771",
"0.82016796",
"0.81687707",
"0.8146639",
"0.81244445",
"0.81172544",
"0.8114216",
"0.809903",
"0.80974483",
"0.8050538... | 0.0 | -1 |
Generate a random 6 digit Trial ID | def wmim():
fAf4 = ''.join(['{}'.format(ajWY(0, 9)) for mLGw in range(0, 6)])
return fAf4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kn3U():\n return ''.join(tuKI.choices(vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits, k=8))",
"def IiL8():\n ZTUg = ''\n for WKvO in range(8):\n ZTUg += tuKI.choice(vIwR.ascii_letters + vIwR.digits)\n return ZTUg",
"def Kn3U() -> str:\n gLiZ = list('0123456789')\n KCHu =... | [
"0.8021842",
"0.79614556",
"0.7868468",
"0.7826359",
"0.77952844",
"0.7622333",
"0.75944",
"0.7570734",
"0.7570734",
"0.75669515",
"0.7564507",
"0.7553486",
"0.75272423",
"0.7506214",
"0.7504763",
"0.74898577",
"0.7489141",
"0.74886423",
"0.74805003",
"0.7473753",
"0.7435054"... | 0.828533 | 0 |
Write coordinates and symbols to given filename in BAGEL's json syntax in atomic units | def zgpz(EcVT, rmc3, Ux0P, vKjP=1.0, PFAa='% .11E'):
iMqM = oyIN.array(EcVT) * vKjP
with open(Ux0P, 'w') as J7Cn:
J7Cn.write('\t{ "geometry" : [\n')
for YRbF, KCHu in enumerate(rmc3):
J7Cn.write(('\t\t{ "atom": "%s" , "xyz": [ ' + PFAa + ', ' + PFAa + ', ' + PFAa + ' ] },\n') % (KCHu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZIUp(EcVT, rmc3, nVrR, l5Ny='', PFAa='% .11E'):\n GWFw = oyIN.shape(EcVT)\n nVrR.write('%d\\n' % GWFw[0])\n nVrR.write(l5Ny)\n nVrR.write('\\n')\n for YRbF in range(GWFw[0]):\n nVrR.write(rmc3[YRbF])\n for r845 in range(GWFw[1]):\n nVrR.write('\\t')\n nVrR.wri... | [
"0.6590115",
"0.6542961",
"0.64612514",
"0.63751805",
"0.63521004",
"0.62930083",
"0.6219881",
"0.6151604",
"0.6081041",
"0.6059997",
"0.60532296",
"0.6049706",
"0.60178375",
"0.6013162",
"0.601046",
"0.5993134",
"0.59835297",
"0.59526163",
"0.5939017",
"0.5938113",
"0.592873... | 0.70776635 | 0 |
Route for the main page | def d6pt():
if QePW.method == 'POST':
fNjO = QePW.form['search_term']
BF5e = QePW.form['sort_type']
IlD_ = xOug(T3gm, BF5e, fNjO)
return TvZl('results.html', song_list=IlD_)
return TvZl('search.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ev1b():\n bo34.info('At main app page.')\n return TvZl('index.html')",
"def Uyk6():\n return TvZl('index.html')",
"def abEe():\n fLV6 = TvZl('index.html')\n return fLV6",
"def tENI():\n fLV6 = TvZl('index.html')\n return fLV6",
"def Ozko():\n return TvZl('index.html')",
"def E... | [
"0.74746215",
"0.7409752",
"0.7383132",
"0.730798",
"0.72947335",
"0.71933454",
"0.7179355",
"0.7137218",
"0.7106436",
"0.70386124",
"0.69903105",
"0.6961577",
"0.691041",
"0.6904312",
"0.6850722",
"0.6823214",
"0.68145686",
"0.67921156",
"0.67891026",
"0.67666036",
"0.676418... | 0.0 | -1 |
Route for the about page | def XRQo():
with open('README.md') as eHNT:
F1Np = DfCi(mSjq.markdown(eHNT.read()))
return TvZl('about.html', readme=F1Np) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n print('route-/about')\n return TvZl('about.html', title='About', year=qcWV.now().year, message='Your application description page.')",
"def vsuQ(QePW):\n return SGJU('about.html')",
"def cD8n(QePW):\n return {}",
"def vsuQ(QePW):\n return _1tc(QePW, 'about.html', {})",
"def vsu... | [
"0.80805004",
"0.8036591",
"0.7825766",
"0.7812144",
"0.7811774",
"0.7756577",
"0.7656179",
"0.752186",
"0.74914116",
"0.74889356",
"0.7487594",
"0.7483712",
"0.74774355",
"0.7472945",
"0.7467265",
"0.7452556",
"0.7450393",
"0.7450393",
"0.7450393",
"0.7450393",
"0.7450393",
... | 0.0 | -1 |
Test the add_label_to_unique_species_labels() method. | def QfTd(YKHO):
YKHO.assertEqual(YKHO.sched2.unique_species_labels, ['methylamine', 'C2H6', 'CtripCO'])
bozA = YKHO.sched2.add_label_to_unique_species_labels(label='new_species_15')
YKHO.assertEqual(bozA, 'new_species_15')
YKHO.assertEqual(YKHO.sched2.unique_species_labels, ['methylamine', 'C2H6', 'Ctri... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XBHC(YKHO):\n pass",
"def NE46(YKHO):\n pass",
"def OUzO(YKHO):\n pass",
"def g2cu():\n ZcDv(WNb4['cluster'])\n x0hE = jwa4['client']\n hKn5 = WNb4['cluster']\n tl5x = WNb4['test_label']\n sFFp = WNb4['label_value']\n O28k = TweX()\n i26J = TweX()\n Ziit = x0hE.list_node(... | [
"0.7129114",
"0.6832716",
"0.6734126",
"0.6641757",
"0.6572636",
"0.65705043",
"0.65341395",
"0.6524244",
"0.652163",
"0.64960665",
"0.64253044",
"0.6385022",
"0.63422614",
"0.6332893",
"0.6289142",
"0.62417674",
"0.6221962",
"0.6211932",
"0.619641",
"0.6188439",
"0.6174747",... | 0.89795476 | 0 |
Verify that a freshly baked moment object does not have any attributes it should not. | def f7Ko():
trZe.debug_func()
Rbm3 = EEbF.moment()
assert not hasattr(Rbm3, 'dst')
assert not hasattr(Rbm3, 'parse')
assert not hasattr(Rbm3, 'timezone')
assert not hasattr(Rbm3, 'today') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uttO(YKHO):\n del YKHO.data['time']\n YKHO.assertValid()",
"def ZNPI(YKHO):\n assert YKHO.valid(), 'This object has already been destroyed'",
"def ZNPI(YKHO):\n assert YKHO.valid(), 'This object has already been destroyed'",
"def uttO(YKHO):\n del YKHO.data['time']\n YKHO.assertInvalid(... | [
"0.6514404",
"0.6502861",
"0.6502861",
"0.63807833",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.629252",
"0.... | 0.7442103 | 0 |
Draw the updated screen | def udoe(YKHO):
if YKHO.draw_screen != None:
YKHO.draw_screen()
else:
YKHO.draw_actions()
YKHO.lcd_display.show()
YKHO.draw_header() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n pass",
"def JmFt(YKHO, Vjhr):\n return",
"def JmFt(YKHO, Vjhr):\n YKHO.state.draw(Vjhr)",
"def JmFt(YKHO, Vjhr):\n pass",
"def khpC(YKHO):\n YKHO.screen.fill(YKHO.settings.bg_color)\n YKHO.sh... | [
"0.8415544",
"0.8415544",
"0.8412495",
"0.83827645",
"0.83252484",
"0.8238876",
"0.8238033",
"0.82067406",
"0.819185",
"0.81838137",
"0.8183533",
"0.8132444",
"0.8122659",
"0.8112044",
"0.811173",
"0.81073856",
"0.809862",
"0.80868226",
"0.80749696",
"0.80576646",
"0.8053561"... | 0.84136033 | 2 |
Assign the value of `num` to `arr`. | def Kn8w(YKHO, ezWE, mLGw):
if ezWE.shape == ():
ezWE = ezWE.reshape(1)
ezWE[:] = mLGw
ezWE = ezWE.reshape(())
elif isinstance(mLGw, oyIN.ndarray):
ezWE[:] = mLGw[:]
else:
ezWE[:] = mLGw
return ezWE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ezWE(YKHO, BWXx):\n YKHO._arr = BWXx",
"def CqtW(YKHO, BWXx):\n YKHO.val[:] = BWXx.flat",
"def set(YKHO, wEf2, PDiv=False):\n wEf2 = HWEd(arr_expr=wEf2, primitive=PDiv)\n if PDiv:\n YKHO[:] = wEf2()\n else:\n YKHO[:] = wEf2",
"def bD1G(YKHO, ezWE: array_like, yvT9: tensor_typ... | [
"0.63997155",
"0.6160752",
"0.53740096",
"0.5309519",
"0.5191099",
"0.51703674",
"0.51488954",
"0.5148679",
"0.5108234",
"0.5108234",
"0.51070976",
"0.50180423",
"0.5010084",
"0.4967469",
"0.49430722",
"0.4875689",
"0.48751312",
"0.4819754",
"0.48133132",
"0.48099947",
"0.480... | 0.7424993 | 0 |
Apply a softmax function. | def N93T(input, tpio=-1):
return U78l.Softmax(axis=tpio)(input) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",... | [
"0.8393461",
"0.8361948",
"0.8331463",
"0.83250654",
"0.83122283",
"0.8281617",
"0.82807744",
"0.8280154",
"0.8280154",
"0.8280154",
"0.8280154",
"0.8280154",
"0.82797277",
"0.8279635",
"0.8279635",
"0.8279635",
"0.8279635",
"0.8279635",
"0.8279635",
"0.8279635",
"0.8279635",... | 0.0 | -1 |
Apply a gumbel softmax function. | def qibf(input, tpio=-1, jmzt=1, q4r9=True, SGf8=1e-20):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0)",
"def N93T(WKvO):\n return oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKv... | [
"0.8074901",
"0.8033556",
"0.7961322",
"0.7949977",
"0.7924218",
"0.7924218",
"0.7924218",
"0.7924218",
"0.7924218",
"0.7924126",
"0.7907675",
"0.7894088",
"0.7880537",
"0.787507",
"0.7875039",
"0.7874453",
"0.7874453",
"0.7874453",
"0.7874453",
"0.7874453",
"0.7874453",
"0... | 0.0 | -1 |
Take LongTensor with index values of shape. | def KLLm(g4y1, jTqs):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nEXG(_0VL: torch.Tensor, ROpF: torch.Tensor) -> ht2j.LongTensor:\n BHsk = []\n for YRbF, tpio in enumerate(reversed(ROpF)):\n BHsk.append(_0VL % tpio)\n _0VL = _0VL // tpio\n BHsk = ht2j.stack(BHsk[::-1], dim=-1).long()\n return BHsk",
"def nEXG(_0VL: torch.LongTensor, ROpF: Tuple[i... | [
"0.6511765",
"0.640993",
"0.62906325",
"0.61574686",
"0.6151205",
"0.61445904",
"0.6132192",
"0.6097664",
"0.5913833",
"0.58833617",
"0.58404386",
"0.5750387",
"0.5748581",
"0.5742387",
"0.5661131",
"0.5661131",
"0.56437385",
"0.56361604",
"0.56189173",
"0.5603699",
"0.559833... | 0.0 | -1 |
Convert input to dtype. | def Br5Q(input, yDqo):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V55I(nPrm, yDqo):\n if yDqo is None:\n return nPrm\n return nPrm.astype(yDqo)",
"def CVhi(YKHO, yDqo):\n raise NotImplementedError",
"def bWFX(YKHO):\n return YKHO._to_dtype",
"def CVhi(YKHO, yDqo):\n return YKHO._data.astype(yDqo)",
"def CVhi(YKHO, yDqo):\n return YKHO._data.a... | [
"0.76913947",
"0.73929214",
"0.7325762",
"0.70828664",
"0.70828664",
"0.699361",
"0.6816863",
"0.6791013",
"0.67402333",
"0.673126",
"0.67295164",
"0.6725698",
"0.67086095",
"0.66515803",
"0.6643211",
"0.6636631",
"0.6635985",
"0.6615109",
"0.6571044",
"0.6564882",
"0.6504765... | 0.85042775 | 0 |
The original box coordinate output is normalized, i.e [0, 1]. This converts it back to the original coordinates based on the image size. Optimized. | def h1D9(YKHO, oUSw, tpio):
MKlR, yzQ0 = (tpio[0], tpio[1])
Z_jk = [int(oUSw[0] * MKlR), int(oUSw[1] * yzQ0), int(oUSw[2] * MKlR), int(oUSw[3] * yzQ0)]
return oyIN.array(Z_jk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i1YS(LNo8, FlUN):\n h3cg, BQGg, Z3uP, bYzl = FlUN\n nbX2, t4ML = LNo8.shape[:2]\n assert BQGg <= bYzl, 'xmin is greater than xmax'\n assert h3cg <= Z3uP, 'ymin is greater than ymax'\n assert BQGg <= nbX2, 'xmin is greater than image width'\n assert bYzl <= nbX2, 'xmax is greater than image wi... | [
"0.6997858",
"0.69398475",
"0.68758667",
"0.6854868",
"0.68021154",
"0.6731148",
"0.66034514",
"0.65943515",
"0.6589904",
"0.6529279",
"0.6519284",
"0.6501425",
"0.6494286",
"0.64485866",
"0.64364886",
"0.64093506",
"0.6398396",
"0.63929874",
"0.6369611",
"0.63330644",
"0.632... | 0.0 | -1 |
Install shutdown handler for ``intended_signal`` & return its old handler. Must be called from the main thread. | def tQak(YKHO, lyKN: signal.Signals, db6b: typing.Callable[[signal.Signals, FrameType], None]) -> KhMN:
def DCgT(Lxki: signal.Signals, Hp_S: FrameType) -> None:
Lxki = Gaon.Signals(Lxki)
assert Lxki == lyKN
QePW()
YKHO._clear_signal_handlers()
db6b(Lxki, Hp_S)
return Gao... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gsJ9(Gcbu):\n if Gcbu == -1:\n Gaon.signal(Gaon.SIGCHLD, Gaon.SIG_DFL)\n else:\n\n def zkxS(*qIxc):\n pass\n Gaon.signal(Gaon.SIGCHLD, zkxS)\n Gaon.siginterrupt(Gaon.SIGCHLD, False)\n return Gaon.set_wakeup_fd(Gcbu)",
"def t0nI(YKHO):\n\n def xWno(Lxki, f4IJ... | [
"0.6656775",
"0.6415086",
"0.63558567",
"0.62781847",
"0.62563664",
"0.6224525",
"0.6210528",
"0.6204511",
"0.6093136",
"0.6044136",
"0.60427254",
"0.6016074",
"0.59832925",
"0.5947352",
"0.59332645",
"0.5932937",
"0.593074",
"0.589832",
"0.58957976",
"0.58568007",
"0.5847326... | 0.7104141 | 0 |
Given a Fritzing path, return the relative path from the parts directory | def arSO(pmON):
RVjQ = []
while True:
RVjQ.insert(0, aPr_(pmON))
if RVjQ[0] == 'parts':
break
ddn9 = TLI7(pmON)
if ddn9 == pmON:
break
pmON = ddn9
return gzes(*RVjQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tx1p(YKHO, D2yC, *RVjQ):\n BrK6 = Hy7s.path.dirname(Hy7s.path.abspath(YKHO._target_file))\n return Hy7s.path.join(BrK6, D2yC, *RVjQ)",
"def wvau(*SQ3m):\n return Hy7s.path.abspath(Hy7s.path.join(Hy7s.path.dirname(xAKo), *SQ3m))",
"def NE63(YKHO, Zg0d):\n KVh0 = Zg0d.split(YKHO.root_dir + '/')[-... | [
"0.75197494",
"0.7261011",
"0.7222132",
"0.7191813",
"0.7168321",
"0.7142557",
"0.7134058",
"0.712553",
"0.70888287",
"0.7085963",
"0.7085019",
"0.7069569",
"0.7058989",
"0.7055623",
"0.7019725",
"0.69893247",
"0.698421",
"0.697256",
"0.6972065",
"0.69712836",
"0.695152",
"... | 0.74237764 | 1 |
Returns a list of vertices of the graph. | def EBww(YKHO) -> []:
Aofo = []
YRbF = 0
for SLBp in YKHO.adj_matrix:
Aofo.append(YRbF)
YRbF += 1
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel",
"def EBww(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return (YKHO.graph.vertex(YRbF) for YRbF in Ni9Y(0, ts4V))",
"def iXlf(pNZh):\n return rrLg.vertices(pNZh)",
"def Sn5j(YKHO):\n re... | [
"0.8690802",
"0.859233",
"0.85513574",
"0.8428709",
"0.84136325",
"0.84136325",
"0.83726627",
"0.83726627",
"0.83726627",
"0.83726627",
"0.83726627",
"0.8300809",
"0.82990164",
"0.82936937",
"0.82320696",
"0.8199626",
"0.81931543",
"0.81545836",
"0.81305933",
"0.80939466",
"0... | 0.7886184 | 33 |
Create test orders and check for pizza's title, order size and customer address. | def gj8r(YKHO):
LKdG = L9Jq.objects.get(customer_name='Kanan')
GEVY = L9Jq.objects.get(customer_name='Rita')
gPPc = L9Jq.objects.get(customer_name='David')
YKHO.assertEqual(LKdG.pizza.title, 'HAWAIIAN CHICKEN')
YKHO.assertEqual(GEVY.size, L9Jq.SIZE_50CM)
YKHO.assertEqual(gPPc.customer_address, '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wjHa(YKHO):\n pass",
"def xTac(YKHO):\n bD7m = gxEw('order-list')\n nPrm = {'user': YKHO.user.pk, 'product_names': YKHO.produc1.name + ' ' + YKHO.produc2.name, 'total_products': 2, 'total_amount': YKHO.produc1.price + YKHO.produc2.price, 'transaction_id': a2Ud(size=6)}\n geh0 = x0hE.post(bD7m, nP... | [
"0.7081105",
"0.6993864",
"0.6885489",
"0.68639594",
"0.67972493",
"0.67908436",
"0.67301726",
"0.6722159",
"0.6715431",
"0.6715431",
"0.66872543",
"0.666671",
"0.6637177",
"0.6620511",
"0.6614385",
"0.66100585",
"0.6545984",
"0.6545984",
"0.64968663",
"0.6495554",
"0.6489971... | 0.74148446 | 0 |
Sets the charge_instrument_list of this DebtRecoveryEvent. | def JDM3(YKHO, JDM3):
YKHO._charge_instrument_list = JDM3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CFUF(YKHO, CFUF):\n YKHO._order_charge_list = CFUF",
"def adAY(YKHO, adAY):\n YKHO._order_charge_adjustment_list = adAY",
"def ZNDH(YKHO, ZNDH):\n YKHO._token_charge = ZNDH",
"def Y03p(YKHO, Y03p):\n YKHO._debt_recovery_item_list = Y03p",
"def SS7a(YKHO, SS7a):\n YKHO._channel_list = SS7... | [
"0.7051081",
"0.6545236",
"0.55941486",
"0.5404069",
"0.5368236",
"0.5329348",
"0.5287988",
"0.52728665",
"0.5227971",
"0.5210166",
"0.5187145",
"0.51486593",
"0.51147026",
"0.5105709",
"0.51030505",
"0.49952257",
"0.49628723",
"0.49508044",
"0.49427235",
"0.49340454",
"0.490... | 0.8835642 | 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):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return two points of the square enclosing the circle passing by to given points | def tbiq(fJfP, hWOy):
KC_a = 0.5 * (fJfP + hWOy)
lgYm = fJfP + eBEJ(fJfP - KC_a)
kLxB = hWOy + eBEJ(hWOy - KC_a)
return (lgYm, kLxB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O5Fg(r1VO, LTIa):\n YylR = oyIN.linspace(0, 2 * oyIN.pi, LTIa)\n m2os = oyIN.cos(YylR) * r1VO\n bmPF = oyIN.sin(YylR) * r1VO\n return (m2os, bmPF)",
"def O5Fg(r1VO, UoOD, nP4f=True):\n if nP4f:\n YylR = oyIN.linspace(0, 2 * oyIN.pi, UoOD)\n else:\n YylR = oyIN.linspace(0, 2 * ... | [
"0.7645998",
"0.71606696",
"0.69347924",
"0.68091834",
"0.6685792",
"0.6677673",
"0.6631651",
"0.6607876",
"0.6582488",
"0.6576687",
"0.65454274",
"0.65269166",
"0.651841",
"0.64731437",
"0.645129",
"0.6422456",
"0.6408069",
"0.64015067",
"0.6379438",
"0.6354468",
"0.63540673... | 0.7736067 | 0 |
Create new Policy, possibly overriding some defaults. See class docstring for a list of overridable attributes. | def FIMM(YKHO, **YSA3):
for mWFP, BWXx in YSA3.items():
if hasattr(YKHO, mWFP):
super(TPGV, YKHO).__setattr__(mWFP, BWXx)
else:
raise TypeError('{!r} is an invalid keyword argument for {}'.format(mWFP, YKHO.__class__.__name__)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FXOH(YKHO, C9U5):\n raise NotImplementedError",
"def tLis(YKHO, ze5J, QzXR, **B2fa):\n XP5J = ze5J(**B2fa)\n if isinstance(XP5J, KQUU):\n XP5J._actions_from = QzXR\n XP5J._actions_values_from = lambda KCHu: YKHO.Qs(KCHu, QzXR(KCHu))\n return XP5J\n else:\n raise Except... | [
"0.7433218",
"0.70436555",
"0.6747488",
"0.67049354",
"0.66424215",
"0.6614932",
"0.6612312",
"0.6559239",
"0.6539576",
"0.639129",
"0.6391028",
"0.63907534",
"0.63650024",
"0.63340944",
"0.63260776",
"0.62647444",
"0.6252684",
"0.62509555",
"0.62245727",
"0.6129974",
"0.6121... | 0.5607192 | 89 |
Return an instance populated from the iterable. | def sfxH(Emd4, OxJJ):
return Emd4(*OxJJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G4MF(Emd4, OxJJ):\n KAOR = Emd4()\n for jzdc in OxJJ:\n KAOR.add(jzdc)\n return KAOR",
"def G4MF(Emd4, OxJJ):\n pass",
"def G4MF(Emd4, oHE7):\n KAOR = Emd4.unit()\n KAOR.value = _vbt(oHE7)\n return KAOR",
"def NMoC(YKHO):\n return YKHO.constructor(YKHO.iter_get(YKHO.collect... | [
"0.72594154",
"0.697045",
"0.6965724",
"0.6816205",
"0.6717455",
"0.64898807",
"0.6279999",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0.62712944",
"0... | 0.7150428 | 1 |
Return a copy with updates applied. | def fXiu(YKHO, **Vhxs):
B2fa = YKHO._asdict()
B2fa.update(Vhxs)
return type(YKHO)(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO, **_69Z):\n return type(YKHO)(YKHO, **_69Z)",
"def jth9(YKHO, *qIxc, **B2fa):\n umWR = YKHO._copy_qs()\n umWR._update_qs(*qIxc, **B2fa)\n return umWR",
"def h9Xr(Csk6, Vhxs):\n Csk6 = jth9.copy(Csk6)\n Csk6.update(Vhxs)\n return Csk6",
"def cJsJ(YKHO, *qIxc, **B2fa):\n Y... | [
"0.72592884",
"0.6605049",
"0.6581739",
"0.65611684",
"0.6491581",
"0.6491581",
"0.6358027",
"0.631131",
"0.6156561",
"0.6113956",
"0.6113956",
"0.6100142",
"0.60595304",
"0.6058589",
"0.6040003",
"0.6025928",
"0.6025414",
"0.6020561",
"0.6020561",
"0.6001537",
"0.60009176",
... | 0.0 | -1 |
Sets the building_number of this RiskDeliveryAddress. | def CIW_(YKHO, CIW_):
if CIW_ is not None and len(CIW_) > 16:
raise ValueError('Invalid value for `building_number`, length must be less than or equal to `16`')
if CIW_ is not None and len(CIW_) < 1:
raise ValueError('Invalid value for `building_number`, length must be greater than or equal to `... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CIW_(YKHO, CIW_):\n YKHO._building_number = CIW_",
"def x2fD(YKHO, x2fD):\n YKHO._build_number = x2fD",
"def Vl8O(YKHO, Vl8O):\n YKHO._building_name = Vl8O",
"def v32L(YKHO, v32L: str):\n if v32L is None:\n raise ValueError('Invalid value for `building`, must not be `None`')\n YKHO.... | [
"0.841493",
"0.72680396",
"0.6790813",
"0.66240376",
"0.63102454",
"0.62152123",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.62051386",
"0.61219305",
"0.60887057",
"0.58910805",
"0.58910805",
... | 0.77381617 | 1 |
Sets the post_code of this RiskDeliveryAddress. | def q8sW(YKHO, q8sW):
if q8sW is not None and len(q8sW) > 16:
raise ValueError('Invalid value for `post_code`, length must be less than or equal to `16`')
if q8sW is not None and len(q8sW) < 1:
raise ValueError('Invalid value for `post_code`, length must be greater than or equal to `1`')
YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q8sW(YKHO, q8sW):\n YKHO._post_code = q8sW",
"def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d",
"def q8sW(YKHO, q8sW):\n if q8sW is None:\n raise ValueError('Invalid value for `post_code`, must not be `None`')\n YKHO._post_code = q8sW",
"def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAH... | [
"0.82636994",
"0.80693126",
"0.7622367",
"0.76083905",
"0.76083905",
"0.76083905",
"0.76083905",
"0.76083905",
"0.76083905",
"0.76083905",
"0.7368422",
"0.68151146",
"0.68101245",
"0.68101245",
"0.6580775",
"0.64569634",
"0.62936753",
"0.628102",
"0.6220635",
"0.62079495",
"0... | 0.742079 | 10 |
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):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Determine whether the cache for a path is up to date. | def lBCG(YKHO, pmON):
pmON = YKHO.absolute(pmON)
if pmON not in YKHO.cache:
return False
uJGg = YKHO.cache[pmON][0]
return Hy7s.stat(pmON).st_mtime <= uJGg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bhap(_taC, no3I):\n vtfo = Hy7s.path.exists(_taC)\n if not vtfo:\n return True\n eQSh = Hy7s.stat(_taC)\n if eQSh.st_mtime < ITS7.time() - no3I * 60 * 60:\n return True\n if eQSh.st_size == 0:\n return True\n return False",
"def ImCi(YKHO):\n return Hy7s.path.exists(... | [
"0.8091965",
"0.7863658",
"0.77750576",
"0.7750241",
"0.7673247",
"0.7642188",
"0.7606879",
"0.7595691",
"0.7578265",
"0.7472614",
"0.7391489",
"0.73860586",
"0.7298827",
"0.7293624",
"0.72820055",
"0.7212816",
"0.7203605",
"0.7180488",
"0.7164005",
"0.71538407",
"0.712882",
... | 0.7320595 | 12 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"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):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return object loaded from a YAML document in source. Source is either a representation of the YAML document itself or any document providing an iterator (that includes file, list, and many others). | def tyeH(JZXy, ti4v=False):
yvT9 = None
RKD7.debug('inobj: (%s)\n%s', type(JZXy), JZXy)
RKD7.debug('before ignore_wrong_characters = %s', ti4v)
if isinstance(JZXy, exCv):
yvT9 = eJb6.load(JZXy, Loader=CxYa)
RKD7.debug('out (string) = %s', yvT9)
elif hasattr(JZXy, '__iter__'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nrOS(YKHO, JZXy: Union[str, Path, IO[AnyStr]]) -> Kt_s:\n if isinstance(JZXy, GkAb):\n with JZXy.open('r') as eHNT:\n return YWvJ(Kt_s, eJb6.load(eHNT, Loader=YKHO.loader))\n else:\n return YWvJ(Kt_s, eJb6.load(JZXy, Loader=YKHO.loader))",
"def hfK9(JZXy):\n try:\n tr... | [
"0.7274883",
"0.72617775",
"0.6878827",
"0.6727074",
"0.6694005",
"0.65526634",
"0.6533442",
"0.6509733",
"0.634507",
"0.63013995",
"0.6236373",
"0.6214047",
"0.62110394",
"0.6167702",
"0.6147693",
"0.6131449",
"0.611542",
"0.61148113",
"0.60870564",
"0.6066948",
"0.6025238",... | 0.58920544 | 29 |
Return YAMLish string from given source. | def PjZe(JZXy):
return eJb6.dump(JZXy, encoding=None, explicit_start=True, explicit_end=True, default_flow_style=False, default_style=False, canonical=False, Dumper=EzS3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(JZXy):\n try:\n try:\n return eJb6.load(JZXy, Loader=eJb6.FullLoader)\n except AttributeError:\n return eJb6.load(JZXy)\n except NameError:\n raise ImportError('No YAML module available. Please ensure that PyYAML or equivalent is installed (e.g. via \"pip3 ... | [
"0.6668225",
"0.6418023",
"0.6341682",
"0.62182766",
"0.5908508",
"0.5886837",
"0.586214",
"0.5777906",
"0.57501554",
"0.5673225",
"0.5663786",
"0.56595707",
"0.5657033",
"0.56508166",
"0.5649171",
"0.5646895",
"0.56125623",
"0.56113553",
"0.5604699",
"0.55634695",
"0.555711"... | 0.7337182 | 0 |
Reads an image as RGB or GRAY_SCALE and displays it | def y9R7(Ux0P: str, TcPZ: int):
VXjJ = J_xH(Ux0P, TcPZ)
QrM1.imshow(VXjJ, cmap='gray')
QrM1.show() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(Ux0P, TcPZ):\n LNo8 = cE34(Ux0P)\n LNo8 = LNo8.astype(oyIN.float64).copy() / (q5Tg - 1)\n if TcPZ == g91X:\n LNo8 = zI1D(LNo8)\n return LNo8",
"def q5aE(Ux0P, TcPZ):\n VXjJ = hiw8.imread(Ux0P) / 255\n return VXjJ if TcPZ == 2 else zI1D(VXjJ)",
"def q5aE(Ux0P, TcPZ):\n Xn71 ... | [
"0.7045008",
"0.70339805",
"0.7016567",
"0.6948594",
"0.6931027",
"0.6914046",
"0.68871784",
"0.6879891",
"0.6859985",
"0.68535703",
"0.6833755",
"0.67951167",
"0.6754042",
"0.67451394",
"0.6741539",
"0.67341864",
"0.6725776",
"0.67139864",
"0.6693971",
"0.6678039",
"0.665560... | 0.6398606 | 46 |
Converts an RGB image to YIQ color space | def K6No(bWaE: np.ndarray) -> oyIN.ndarray:
fe3q = oyIN.array([[0.299, 0.587, 0.144], [0.596, -0.275, -0.321], [0.212, -0.523, 0.311]])
IE94 = oyIN.dot(bWaE, fe3q.T.copy())
return IE94 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qv15(IE94: np.ndarray) -> oyIN.ndarray:\n YM83 = oyIN.array([[1.0, 0.956, 0.623], [1.0, -0.272, -0.648], [1.0, -1.105, 0.705]])\n return oyIN.dot(IE94, YM83.T.copy())",
"def qv15(IE94: np.ndarray) -> oyIN.ndarray:\n czET = oyIN.array([[1, 0.956, 0.619], [1, -0.272, -0.647], [1, -1.106, 1.703]])\n ... | [
"0.79200864",
"0.79183257",
"0.78845346",
"0.7865297",
"0.78191864",
"0.78156435",
"0.78077394",
"0.77484465",
"0.76798236",
"0.7668317",
"0.7645206",
"0.7588221",
"0.7523056",
"0.7475246",
"0.7471768",
"0.7398386",
"0.73114324",
"0.72936255",
"0.72904766",
"0.7260905",
"0.72... | 0.7761733 | 7 |
Converts an YIQ image to RGB color space | def qv15(IE94: np.ndarray) -> oyIN.ndarray:
czET = oyIN.array([[1, 0.956, 0.619], [1, -0.272, -0.647], [1, -1.106, 1.703]])
bWaE = oyIN.dot(IE94, czET.T.copy())
return bWaE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qv15(IE94: np.ndarray) -> oyIN.ndarray:\n YM83 = oyIN.array([[1.0, 0.956, 0.623], [1.0, -0.272, -0.648], [1.0, -1.105, 0.705]])\n return oyIN.dot(IE94, YM83.T.copy())",
"def qv15(IE94: np.ndarray) -> oyIN.ndarray:\n ROpF = IE94.shape\n bWaE = oyIN.dot(IE94.reshape(-1, 3), oyIN.linalg.inv(ylb0).tr... | [
"0.82023203",
"0.8153553",
"0.8152578",
"0.80684733",
"0.8066707",
"0.79767525",
"0.796551",
"0.7910417",
"0.7882603",
"0.72586423",
"0.72445726",
"0.7174825",
"0.71592176",
"0.7134353",
"0.71237046",
"0.7112421",
"0.7037723",
"0.7035933",
"0.70141",
"0.6988503",
"0.6889807",... | 0.82558644 | 0 |
return a ResNet 18 object | def I8uw(evEl, y7GR):
return S1Vm(em1m, [2, 2, 2, 2]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def qUH4(mL4f=False):\n C3ST = S1Vm(em1m, [2, 2, 2, 2])\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet18']))\n return C3ST",
"def qUH4(mL4f... | [
"0.7529354",
"0.7529354",
"0.7529354",
"0.7487895",
"0.74411595",
"0.74411595",
"0.7412859",
"0.7355302",
"0.7348363",
"0.7308148",
"0.72994983",
"0.7279603",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
"0.7270482",
... | 0.0 | -1 |
return a ResNet 34 object | def OwNx():
return S1Vm(em1m, [3, 4, 6, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OwNx(nZt5=10):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], 2 * nZt5)\n return C3ST",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def K0Xe():\n return S1Vm(l3HI, [3, 4, 23, 3])",
"def OwNx(**B2fa):\n C3ST ... | [
"0.76620996",
"0.75649947",
"0.75649947",
"0.75649947",
"0.7542119",
"0.7504735",
"0.7504735",
"0.7504735",
"0.7471607",
"0.74668604",
"0.74503726",
"0.74341655",
"0.74341655",
"0.736783",
"0.7352674",
"0.730275",
"0.730275",
"0.730275",
"0.730275",
"0.730275",
"0.730275",
... | 0.7707454 | 0 |
return a ResNet 50 object | def uwZX():
return S1Vm(l3HI, [3, 4, 6, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwZX(**B2fa):\n return CLgi('resnet50', **B2fa)",
"def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n mLGw = C3ST.fc.in_features\n C3ST.fc = ht2j.nn.Linear(mLGw, _Fei.MODEL.NUM_CLASS)\n return C... | [
"0.75953496",
"0.74879324",
"0.7482129",
"0.7440226",
"0.72960126",
"0.72882366",
"0.72844493",
"0.72778904",
"0.72778904",
"0.7268713",
"0.72660726",
"0.72660726",
"0.72344565",
"0.7231709",
"0.7220616",
"0.718284",
"0.7152332",
"0.71517",
"0.71459407",
"0.7119708",
"0.71192... | 0.8030883 | 0 |
return a ResNet 101 object | def K0Xe():
return S1Vm(l3HI, [3, 4, 23, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def K0Xe(**B2fa):\n return CLgi('resnet101', **B2fa)",
"def K0Xe(SGPK):\n return S1Vm(SGPK, _cRp, block_config=(3, 4, 23, 3))",
"def bRAK(**B2fa):\n return Cf... | [
"0.7528427",
"0.7528427",
"0.7528427",
"0.73381233",
"0.73130274",
"0.7309745",
"0.7205788",
"0.7205788",
"0.7205788",
"0.7197558",
"0.71746224",
"0.71746224",
"0.71336764",
"0.7124574",
"0.7115324",
"0.7102714",
"0.7102714",
"0.7102714",
"0.7102714",
"0.7102714",
"0.7102714"... | 0.7937897 | 0 |
return a ResNet 152 object | def hVyu():
return S1Vm(l3HI, [3, 8, 36, 3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def K0Xe():\n return S1Vm(l3HI, [3, 4, 23, 3])",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def WWYJ(**B2fa):\n return S1Vm(**B2fa)",
"def V57c(**B2fa):\n return S1Vm(12)",
"def OwNx():\n return S1Vm(em1m, [3, 4, 6, 3])",
"def hVyu(SGPK):\n ... | [
"0.73389316",
"0.72648877",
"0.72648877",
"0.72648877",
"0.71665126",
"0.71071863",
"0.7086414",
"0.7047308",
"0.69834316",
"0.6889393",
"0.6889393",
"0.6889393",
"0.6889393",
"0.67856055",
"0.67856055",
"0.6784191",
"0.6784191",
"0.6784191",
"0.6781969",
"0.6781833",
"0.6749... | 0.7543591 | 0 |
get list of gates from the circuit. | def aK3A(YKHO):
nzPj = YKHO.clone()
IXCZ = []
while True:
eJTR = nzPj.kind_first()
if eJTR is None:
break
eJTR, Jajo, IGeV, Z9rn, CKog, TZ9E = nzPj.pop_gate()
Jajo = [vexM for vexM in Jajo if vexM >= 0]
if Z9rn is None:
iIih = None
else... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aK3A(YKHO):\n return YKHO.gate_list",
"def gx0l(YKHO):\n raise NotImplementedError",
"def YrFa(YKHO):\n IXCZ = []\n for Z9rn in YKHO.components:\n if isinstance(Z9rn, olIX):\n if Z9rn.disable_generation is False:\n IXCZ.append(Z9rn)\n else:\n I... | [
"0.79527825",
"0.77341735",
"0.7652211",
"0.7548582",
"0.74699855",
"0.6440069",
"0.63175595",
"0.617075",
"0.5991439",
"0.59285456",
"0.5922781",
"0.5866734",
"0.5828918",
"0.579924",
"0.5736441",
"0.569575",
"0.56797546",
"0.56474644",
"0.5644416",
"0.5611011",
"0.56019586"... | 0.77358437 | 1 |
Returns the content of 'requirements.txt' in a list. | def O1OY():
fA3L = []
with open(Hy7s.path.join(RLRA, 'requirements.txt'), 'r', encoding='utf-8') as ndwV:
Nqlg = ndwV.readlines()
for zFiD in Nqlg:
fA3L.append(zFiD.strip())
return fA3L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1OY():\n with open('requirements.txt') as J0RQ:\n return J0RQ.read().splitlines()",
"def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while zFiD:\n kbO9.append(zFiD.strip())\n zFiD = ytgA.readline()\n retu... | [
"0.83176196",
"0.82512397",
"0.8231217",
"0.8133532",
"0.8083452",
"0.7976422",
"0.7909836",
"0.78779143",
"0.78121454",
"0.77117175",
"0.7646762",
"0.75994575",
"0.75992393",
"0.75981355",
"0.75599366",
"0.75186825",
"0.7503125",
"0.7474735",
"0.7460277",
"0.74601865",
"0.74... | 0.81930065 | 3 |
Returns the content of 'requirementsdev.txt' in a list. | def z1ru():
fA3L = []
with open(Hy7s.path.join(RLRA, 'requirements-dev.txt'), 'r', encoding='utf-8') as ndwV:
Nqlg = ndwV.readlines()
for zFiD in Nqlg:
fA3L.append(zFiD.strip())
return fA3L | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orbv():\n with open('dev-requirements.txt') as eHNT:\n return eHNT.read().splitlines()",
"def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while zFiD:\n kbO9.append(zFiD.strip())\n zFiD = ytgA.readline()\n ... | [
"0.8724128",
"0.77530396",
"0.76411957",
"0.7630409",
"0.7488923",
"0.73901826",
"0.73724824",
"0.7360039",
"0.73354083",
"0.7280488",
"0.7273973",
"0.71575993",
"0.7145911",
"0.7096669",
"0.7061486",
"0.70555496",
"0.704625",
"0.69692504",
"0.6931023",
"0.69017357",
"0.68977... | 0.87423193 | 0 |
Add prescribed NPIs to the dict of prescriptions. | def KVMI(YKHO, IO8_, mbyn, TuoA, _VeM):
Wdeb, aGvo = (TuoA.split(' / ') + [oyIN.nan])[:2]
if aGvo == 'nan':
aGvo = oyIN.nan
IO8_['CountryName'].append(Wdeb)
IO8_['RegionName'].append(aGvo)
IO8_['Date'].append(mbyn)
for MAgO, fmxk in zip(kSHb, _VeM):
IO8_[MAgO].append(_VeM[fmxk]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVMI(YKHO, IO8_, mbyn, TuoA, _VeM):\n Wdeb, aGvo = (TuoA.split(' / ') + [oyIN.nan])[:2]\n if aGvo == 'nan':\n aGvo = oyIN.nan\n IO8_['CountryName'].append(Wdeb)\n IO8_['RegionName'].append(aGvo)\n IO8_['Date'].append(mbyn)\n for MAgO, fmxk in zip(kSHb, _VeM):\n IO8_[MAgO].append... | [
"0.5951829",
"0.5755168",
"0.5663414",
"0.5485882",
"0.5387636",
"0.5381058",
"0.5271012",
"0.5248984",
"0.5248984",
"0.51682884",
"0.5111005",
"0.50867265",
"0.507827",
"0.5075101",
"0.50578004",
"0.49877572",
"0.49740374",
"0.49504492",
"0.49267292",
"0.49128914",
"0.491182... | 0.5969426 | 0 |
Compute distance of point from origin | def tjUp(AU8u):
Ayfi = epAf.sqrt(AU8u[0] ** 2 + AU8u[1] ** 2)
return Ayfi < 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + YKHO.y ** 2) ** 0.5",
"def JpbV(YKHO):\n return (YKHO.x ** 2 + ... | [
"0.86047566",
"0.8593631",
"0.8593631",
"0.859131",
"0.859131",
"0.859131",
"0.859131",
"0.859131",
"0.859131",
"0.859131",
"0.859131",
"0.85885465",
"0.8527829",
"0.83591884",
"0.8302248",
"0.82555866",
"0.7689421",
"0.75353503",
"0.74891603",
"0.748821",
"0.74729496",
"0.... | 0.0 | -1 |
Randomly sample measurement matrix A. Curruently I sample A from i.i.d Gaussian distribution with 1./M variance and normalize columns. | def nYop(E3D9, ywwl, rtG8=0, ihQv=True):
k0lF = oyIN.random.normal(scale=1.0 / oyIN.sqrt(E3D9), size=(E3D9, ywwl)).astype(oyIN.float32)
if rtG8 > 0:
KkY2, bGrB, cAlv = pEuX.svd(k0lF, full_matrices=False)
KCHu = oyIN.logspace(0, oyIN.log10(1 / rtG8), E3D9)
k0lF = oyIN.dot(KkY2 * (KCHu * o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiGw(EcVT, Nk6w, k0lF, NTJI, G3ty, nMvt, lWPh):\n assert Nk6w.shape[1] == nMvt\n E3D9 = oyIN.linalg.inv(oyIN.dot(Nk6w.T, Nk6w) + (NTJI / G3ty) ** 2 * oyIN.eye(nMvt))\n _xoQ = oyIN.dot(E3D9, oyIN.dot(Nk6w.T, EcVT))\n CCoN = NTJI ** 2 * E3D9\n aPd6 = oyIN.linalg.cholesky(CCoN)\n for Csk6 in ran... | [
"0.67364305",
"0.6578365",
"0.64031386",
"0.63633597",
"0.6343084",
"0.63391167",
"0.6265507",
"0.62136966",
"0.62059087",
"0.6174535",
"0.6161067",
"0.6135651",
"0.61140305",
"0.6083492",
"0.60431033",
"0.6028145",
"0.60056144",
"0.598618",
"0.5973986",
"0.59550107",
"0.5944... | 0.5981281 | 18 |
get the list of most recent trades for a particular symbol | async def watch_trades(YKHO, o61b: str, pw_q: Optional[int]=None, qoqK: Optional[int]=None, NArs={}):
await YKHO.load_markets()
o61b = YKHO.symbol(o61b)
WZsM = await YKHO.watch_public('trades.subscribe', o61b, NArs)
if YKHO.newUpdates:
qoqK = WZsM.getLimit(o61b, qoqK)
return YKHO.filter_by_s... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ooeb(YKHO, o61b, Kt_s=15):\n RA_F = JRYC.datetime.now() - JRYC.timedelta(minutes=15)\n sQg9 = []\n for IYUG in YKHO.trades.keys():\n if YKHO.trades[IYUG]['symbol'] != o61b:\n continue\n if IYUG < RA_F:\n break\n sQg9.append([YKHO.trades[IYUG]['quantity'], YKH... | [
"0.71408516",
"0.7108533",
"0.7097326",
"0.68555915",
"0.6761023",
"0.6731269",
"0.66929007",
"0.66328907",
"0.66328907",
"0.66328907",
"0.6626811",
"0.66162354",
"0.66095656",
"0.65672076",
"0.65635026",
"0.64617085",
"0.64617085",
"0.64617085",
"0.64231604",
"0.64126027",
"... | 0.0 | -1 |
Calculates the MSE mean across all dimensions, i.e. feature dimension AND minibatch dimension. | def hkHB(WKvO, a1PO):
return (WKvO - a1PO) ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RrgW(Y8eF, aMgO):\n return AIv9(ZylS.math.abs((Y8eF - aMgO) ** 2))",
"def hkHB(YKHO, EcVT, fuBA):\n aO1w = YKHO.predict(EcVT)\n return oyIN.mean((fuBA - aO1w.reshape(fuBA.shape)) ** 2, axis=0)",
"def h5nY(tTpl):\n return 1 / 2 * oyIN.mean(tTpl ** 2)",
"def IQEi(YKHO):\n GYSl = lambda WKvO:... | [
"0.6879564",
"0.6686657",
"0.6629891",
"0.6591155",
"0.6585274",
"0.6552928",
"0.6552928",
"0.6552928",
"0.6539546",
"0.65162706",
"0.65162706",
"0.65162706",
"0.65162706",
"0.65162706",
"0.65102977",
"0.6497867",
"0.6493804",
"0.64810336",
"0.64686507",
"0.64595526",
"0.6451... | 0.0 | -1 |
Initialize a MiniMax algorithms with alphabeta pruning. | def FIMM(YKHO, f7Dd, liMD, k6iz, cvRB):
YKHO.utility = f7Dd
YKHO.my_color = liMD
YKHO.no_more_time = k6iz
YKHO.calmness_factor = cvRB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, E91_):\n YKHO.algorithm = E91_\n YKHO.primes = []",
"def FIMM(YKHO, E91_='sarsamax', mFH4=1, X4Zg=0.9, vqB2=0.1, Cwt5=0.01, KMvS=1, BJo2=6):\n xv9K = {'sarsamax': YKHO.step_sarsamax, 'exp_sarsa': YKHO.step_exp_sarsa}\n YKHO.step = xv9K[E91_]\n YKHO.Q = oRi_(lambda: oyIN.zeros(YKHO.n... | [
"0.6173018",
"0.6042298",
"0.603419",
"0.5831407",
"0.5724164",
"0.57038176",
"0.57017875",
"0.5674152",
"0.5658052",
"0.5534894",
"0.55169076",
"0.54635775",
"0.5463258",
"0.5458828",
"0.5455199",
"0.5443141",
"0.5428585",
"0.54240215",
"0.5408339",
"0.5402593",
"0.53921676"... | 0.0 | -1 |
returns inverse of Jacobian Matrix | def MpmA(SppC):
try:
return SppC.inv()
except ZeroDivisionError as ex:
RKD7.error('Error! %s', aTqo)
HwRy.exit(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLxo(YKHO, EcVT):\n EcVT = SOCJ(EcVT, copy=YKHO.copy, dtype=ex0m, force_all_finite='allow-nan')\n sygB = 1.0\n if YKHO.output_distribution == 'normal':\n for or8S in range(EcVT.shape[1]):\n sygB /= CkYf.pdf(EcVT[:, or8S])\n EcVT = YKHO.inverse_transform(EcVT)\n for or8S in rang... | [
"0.756048",
"0.7530905",
"0.74333674",
"0.72196734",
"0.7216401",
"0.7216401",
"0.72065777",
"0.71676886",
"0.712404",
"0.71042293",
"0.7085673",
"0.7079585",
"0.7057723",
"0.6984824",
"0.6984824",
"0.695998",
"0.6951454",
"0.6945013",
"0.6921074",
"0.6881695",
"0.68780863",
... | 0.75232494 | 2 |
determine value of card for some games (based on rank) | def BWXx(YKHO, oXvg=False, lkrt=False):
if oXvg or lkrt:
if lkrt and YKHO.rank >= 10 and (YKHO.rank <= 12):
return 10
if oXvg and YKHO.rank == 0:
return 11
return YKHO.rank + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZVGE(dxhl):\n fdMZ = dxhl[0]\n if fdMZ in HRrY[0:-4]:\n return int(fdMZ)\n elif fdMZ is 'ACE':\n return 11\n else:\n return 10",
"def TraM(YKHO):\n BWXx = YKHO.rank.value\n _QLG = False\n if BWXx > 10:\n BWXx = 10\n _QLG = True\n return (BWXx, _QLG)"... | [
"0.8067107",
"0.78560066",
"0.7701373",
"0.75357765",
"0.7498207",
"0.7497342",
"0.7405914",
"0.73934436",
"0.73385227",
"0.7331347",
"0.7290567",
"0.7113681",
"0.7087427",
"0.7024845",
"0.6996521",
"0.69778043",
"0.69521946",
"0.691903",
"0.6903296",
"0.6897248",
"0.68685174... | 0.72892016 | 11 |
init French deck with 52 cards | def Qg3l(YKHO):
YKHO.deck.extend([F1Hz(fdMZ, iCfd) for fdMZ in Ni9Y(F1Hz.num_ranks()) for iCfd in Ni9Y(F1Hz.num_suits())]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxsq():\n nf_0 = [YRbF for YRbF in range(0, 52)]\n tuKI.shuffle(nf_0)\n return nf_0",
"def IkwI(YKHO):\n YKHO.deck.extend([F1Hz(fdMZ, iCfd) for fdMZ in [0, 8, 9, 10, 11, 12] for iCfd in Ni9Y(F1Hz.num_suits())])",
"def FIMM(YKHO):\n nf_0 = []\n for iCfd in SOXX:\n for fdMZ in range(... | [
"0.741187",
"0.7397748",
"0.72563624",
"0.72319746",
"0.7144197",
"0.7090498",
"0.7025503",
"0.7005941",
"0.69793713",
"0.69346046",
"0.6921292",
"0.69207406",
"0.6870688",
"0.6860759",
"0.6851788",
"0.68479484",
"0.6828796",
"0.6825366",
"0.68213886",
"0.6800319",
"0.6786636... | 0.80723935 | 0 |
init Pinochle deck with 48 cards | def q1o9(YKHO):
for UHFx in Ni9Y(2):
YKHO.init_EuchreDeck() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxsq():\n nf_0 = [YRbF for YRbF in range(0, 52)]\n tuKI.shuffle(nf_0)\n return nf_0",
"def FIMM(YKHO, NbGi=2, nf_0=None):\n LVGv.__init__(YKHO, nf_0)\n YKHO.kitty = []\n YKHO.num_p = NbGi",
"def FIMM(YKHO):\n YKHO.cards = YKHO.generate_deck()",
"def FIMM(YKHO):\n YKHO.deck = F23b.... | [
"0.7457282",
"0.7335509",
"0.7328224",
"0.7178896",
"0.7166185",
"0.71104515",
"0.7099291",
"0.70549273",
"0.70158327",
"0.6933188",
"0.69212127",
"0.68913215",
"0.68675876",
"0.684433",
"0.6822779",
"0.68166125",
"0.6815125",
"0.6806593",
"0.67973447",
"0.6789135",
"0.678423... | 0.7947273 | 0 |
pushes the next card onto a deck at the end of the list LI of LIFO | def gJNq(YKHO, KBLJ):
YKHO.deck.append(F1Hz.check(KBLJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MWhX(YKHO) -> None:\n if YKHO.current_position >= len(YKHO.deck):\n raise Exception('last card')\n YKHO.current_position += 1",
"def VMW4(YKHO):\n YKHO.deck.append(YKHO.deck.pop(0))",
"def lACn(YKHO, nf_0):\n YKHO.cards.append(nf_0.pop_card())",
"def lACn(fQa0, dxhl):\n fQa0.add(dxh... | [
"0.7249943",
"0.71014684",
"0.70347226",
"0.67131686",
"0.6683487",
"0.66069394",
"0.64660746",
"0.6463628",
"0.64623815",
"0.6369766",
"0.6366519",
"0.63601047",
"0.63532794",
"0.63532794",
"0.63532794",
"0.63532794",
"0.63442755",
"0.6319139",
"0.6310515",
"0.6298231",
"0.6... | 0.5899121 | 85 |
Running average of the list | def BMDM(nPrm, fvO8):
twoC = oyIN.cumsum(oyIN.insert(nPrm, 0, 0))
GrWl = (twoC[fvO8:] - twoC[:-fvO8]) / fvO8
return GrWl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qqgr(BDwY):\n return sum(BDwY) / float(len(BDwY))",
"def zsZT(aWuw: list) -> list:\n WhY1 = iter(aWuw)\n exwG = len(aWuw)\n _l9F = []\n for YRbF in range(1, exwG + 1):\n ufJO = list(Hs6x.islice(aWuw, 0, YRbF, 1))\n _l9F.append(round(sum(ufJO) / len(ufJO), 2))\n return _l9F",
... | [
"0.77945113",
"0.77930653",
"0.7759858",
"0.7755976",
"0.77394444",
"0.7736402",
"0.7709685",
"0.77028763",
"0.7579234",
"0.75721174",
"0.7552093",
"0.7537082",
"0.7536903",
"0.75194937",
"0.75145537",
"0.7514091",
"0.74969643",
"0.7489435",
"0.7488674",
"0.7488674",
"0.74820... | 0.7265798 | 36 |
Converts an ONNX FunctionProto into a ModelProto. The function does not handle attributes yet. | def QZIm(UNYl, ZZSa=None, nMnB=None, AfOR=False, RaY0=None):
if not isinstance(UNYl, GgSu):
raise TypeError(f'onx must be a FunctionProto not {type(UNYl)!r}.')
if len(UNYl.attribute) > 0:
raise NotImplementedError('The function has attributes, it is not implemented yet.')
if isinstance(ZZSa,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ou57(UNYl, mWFP=None, zrIJ='custom', DnfF=None, oRy0=None, wUOI=None):\n if isinstance(UNYl, V7CI):\n if DnfF is None:\n zEgx = {}\n for khtY in UNYl.opset_import:\n zEgx[khtY.domain] = khtY.version\n DnfF = zEgx\n if oRy0 is None:\n o... | [
"0.64675254",
"0.61761534",
"0.609182",
"0.5943723",
"0.5935529",
"0.58606213",
"0.58404076",
"0.58107543",
"0.58106023",
"0.57796896",
"0.575697",
"0.5722321",
"0.5722321",
"0.5721734",
"0.5705426",
"0.569072",
"0.5690227",
"0.5672073",
"0.56148505",
"0.55824304",
"0.5559017... | 0.6889992 | 0 |
Parses the given Google Drive URL and extracts the file ID from it to be used by the Drive API client to download it. | def dIuw(bD7m: str) -> str:
mXDZ = ZbWC.compile('[a-zA-Z0-9-_]{33}')
return mXDZ.search(bD7m).group(0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def z80x(bD7m):\n dubL = ZbWC.findall('~[A-z.]+/[0-9]+', bD7m)[0][1:]\n return dubL.replace('/', ':')",
"def z80x(bD7m):\n dubL = ZbWC.findall('~[A-z.]+/[0-9]+', bD7m)[0][1:]\n return dubL.replace('/', ':')",
"def z80x(bD7m):\n dubL = ZbWC.findall('~[A-z.]+/[0-9]+', bD7m)[0][1:]\n return dubL... | [
"0.7585477",
"0.75734615",
"0.75734615",
"0.75734615",
"0.7560223",
"0.7552807",
"0.75049865",
"0.72779614",
"0.62573904",
"0.6209225",
"0.615545",
"0.61410743",
"0.61328334",
"0.61200583",
"0.61166865",
"0.60623485",
"0.60351473",
"0.6034062",
"0.60311246",
"0.6016372",
"0.5... | 0.72692406 | 8 |
Fetches form id to which current record belongs. | def gCe9(YKHO, AIu6: Mapping[str, Any]) -> h8nf[str]:
e1n7 = AIu6.get('metadata', {}).get('referer')
return KVWQ.urlparse(e1n7).path.split('/')[-1] if e1n7 else None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IMFK():\n L03z = NCls.GqlQuery('SELECT * FROM Form').get()\n if L03z:\n return L03z.form_key\n return None",
"def unpH(YKHO, UzPC):\n xDcj = i48E.text('SELECT form_factor_id FROM form_factor WHERE (ens_id, m_mother, m_daughter, m_spectator, current, source, sink)=(:ens_id, :m_mother, :m_da... | [
"0.6807929",
"0.6601819",
"0.6510578",
"0.64775664",
"0.6477208",
"0.6427334",
"0.63773286",
"0.63759726",
"0.632521",
"0.6229726",
"0.6229726",
"0.61902815",
"0.618488",
"0.618488",
"0.618488",
"0.61842257",
"0.6126904",
"0.6124743",
"0.6110242",
"0.6110242",
"0.6110242",
... | 0.66291404 | 1 |
Get all enabled targets with associated devices. | def Cf33():
return [(a1PO['target'], fnfy.device(a1PO['target'])) for a1PO in m4ln() if a1PO['is_runnable']] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fGFq(YKHO):\n return YKHO.search()",
"def RH8N(YKHO):\n nNXP = '/api/targets'\n return YKHO.get(nNXP)",
"def x6A0(YKHO):\n return YKHO._targetmgr.targets",
"def jA63(YKHO):\n return dict(YKHO._targets)",
"def x6A0(YKHO) -> x1iM[Co7i]:\n return YKHO._targets",
"def RH8N(YKHO):\n A... | [
"0.65084106",
"0.644902",
"0.6391907",
"0.6384323",
"0.63562965",
"0.6329902",
"0.63110745",
"0.6298973",
"0.6288486",
"0.6228251",
"0.6210074",
"0.61944336",
"0.6176563",
"0.617416",
"0.617416",
"0.6171591",
"0.61687595",
"0.61687595",
"0.61687595",
"0.6129952",
"0.61255133"... | 0.72847944 | 0 |
Mark a test as requiring python packages to run. If the packages listed are not available, tests marked with `requires_package` will appear in the pytest results as being skipped. This is equivalent to using ``foo = pytest.importorskip('foo')`` inside the test body. | def syJZ(*cEzT):
def vUM_(B5hb):
try:
__import__(B5hb)
return True
except ImportError:
return False
Icli = [trZe.mark.skipif(not vUM_(B5hb), reason=f"Cannot import '{B5hb}'") for B5hb in cEzT]
def h3Xc(JfyU):
for Bc7X in Icli:
JfyU = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aOM2(*qIxc, **B2fa):\n rIZE(*qIxc, exc_failed_import=G8rZ, exc_failed_check=G8rZ, **B2fa)",
"def HaiE(Wnq0, gMKy, HAP0=0):\n return IGE_(Wnq0, gMKy, xh1u, HAP0)",
"def f0mQ(jeGQ=None):\n if not jeGQ:\n jeGQ = {}\n zg6D(jeGQ)",
"def AcMt(YKHO) -> None:\n with Po4F('synapse.util.check... | [
"0.69550735",
"0.6465701",
"0.6378233",
"0.6269583",
"0.62586075",
"0.61187136",
"0.60623115",
"0.60421884",
"0.5979789",
"0.5960568",
"0.59445804",
"0.59388715",
"0.5888754",
"0.5848537",
"0.5834527",
"0.5782956",
"0.5773411",
"0.5768031",
"0.5762759",
"0.57574445",
"0.57567... | 0.77959985 | 0 |
Summarizes df contents for select_value parameter over an entire year | def F57P(jQ3Z, QQc9):
sp3M = oyIN.array(['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'])
CGtb = oyIN.zeros([12, 5])
for cIIR in range(12):
aPuW = jQ3Z.loc[jQ3Z['Month'] == cIIR + 1]
T6S7 = aPuW[QQc9].groupby(aPuW['DayofMonth']).sum()
CGtb[cIIR][0]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qIwp(bQEL: DataFrame) -> hxoQ:\n jQ3Z = bQEL.repartition(5, 'year').groupBy('PHYSICALID').pivot('year', [2015, 2016, 2017, 2018, 2019]).sum('total_cnt')\n jQ3Z = jQ3Z.withColumn('2015', vuvg.when(vuvg.col('2015').isNull(), 0).otherwise(vuvg.col('2015'))).withColumnRenamed('2015', 'COUNT_2015').withColumn... | [
"0.6884722",
"0.65838844",
"0.64634585",
"0.63762313",
"0.63431084",
"0.6333198",
"0.62385005",
"0.6224123",
"0.6195682",
"0.59813344",
"0.5935693",
"0.58990943",
"0.5882927",
"0.5867613",
"0.5861039",
"0.58501554",
"0.57936424",
"0.57700485",
"0.5768812",
"0.57573056",
"0.57... | 0.577333 | 17 |
It sets the user's creator to the logged user if the user is being created. This occurs when the change flag is False. To make sure, it also checks that the object does not have creator. | def lac1(YKHO, QePW, YEnM, L03z, nZuS):
if not nZuS and (not YEnM.creator):
YEnM.creator = QePW.user
super().save_model(QePW, YEnM, L03z, nZuS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hhGT(YKHO, Wyuj):\n YKHO._creator = Wyuj",
"def lac1(YKHO, QePW, YEnM, L03z, nZuS):\n YEnM.modifier = QePW.user\n if not nZuS:\n YEnM.creator = QePW.user\n YEnM.save()",
"def wS9f(YKHO, nPrm, **B2fa):\n if not nPrm.get('creator'):\n if c5ow and c5ow.is_authenticated:\n ... | [
"0.7494256",
"0.7304338",
"0.7237311",
"0.7228935",
"0.71968764",
"0.71637595",
"0.700833",
"0.69643724",
"0.6881162",
"0.6852855",
"0.6842979",
"0.6812895",
"0.67897147",
"0.6780168",
"0.6780168",
"0.6775204",
"0.67585474",
"0.67348635",
"0.67003065",
"0.66903675",
"0.668374... | 0.8427269 | 0 |