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 |
|---|---|---|---|---|---|---|
Return humanreadable absolute time string. | def QEII(YKHO):
return YKHO.created_at.strftime('%a, %d %b %Y %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EgnU():\n return ITS7.strftime('%A, %H:%M')",
"def zU5u(ITS7=None):\n if ITS7 is None:\n ITS7 = qIe0()\n return ITS7.strftime(GPtr.TIME_PRINT_FORMAT)",
"def m7L9() -> str:\n return F803('%H:%M:%S')",
"def YCc8():\n return JRYC.strftime(JRYC.now(), '%H:%M:%S')",
"def RW01():\n f... | [
"0.75000525",
"0.7122323",
"0.7091522",
"0.6977427",
"0.690155",
"0.68371636",
"0.68304455",
"0.6816692",
"0.6798105",
"0.6734693",
"0.6687905",
"0.66261804",
"0.6598092",
"0.6595055",
"0.65705943",
"0.65313894",
"0.6505681",
"0.64928216",
"0.64826185",
"0.6466328",
"0.646540... | 0.65405095 | 15 |
Calculates the entropy of a single column(position) in the transposed MSA. H(i) = sum_x(P(x)ln2(P(x))) | def oqGu(EWwv):
f8a3 = dict()
wjRY = len(EWwv)
oqGu = 0
for YRbF in EWwv:
if YRbF in f8a3:
f8a3[YRbF] += 1
else:
f8a3[YRbF] = 1
for H5ew in f8a3:
f8a3[H5ew] /= wjRY
oqGu += f8a3[H5ew] * epAf.log(f8a3[H5ew], 2)
return -oqGu | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oqGu(WKvO):\n WyJz = oyIN.nonzero(WKvO)[0]\n return -oyIN.sum(WKvO[WyJz] * oyIN.log2(WKvO[WyJz]))",
"def oqGu(KbRe):\n UqER, BWz1 = oyIN.unique(KbRe, return_counts=True)\n oqGu = oyIN.sum([-BWz1[YRbF] / oyIN.sum(BWz1) * oyIN.log2(BWz1[YRbF] / oyIN.sum(BWz1)) for YRbF in range(len(UqER))])\n re... | [
"0.70721626",
"0.70701116",
"0.6930125",
"0.68648076",
"0.6862334",
"0.66924185",
"0.66274935",
"0.6602205",
"0.65917414",
"0.65580195",
"0.64931446",
"0.6445587",
"0.6439341",
"0.6421814",
"0.64181036",
"0.6410196",
"0.64051795",
"0.6383893",
"0.6371382",
"0.6350537",
"0.634... | 0.62086606 | 34 |
Chooses a random option (separated by comma) | async def choose(YKHO, OaeV: Message, *, Ol8d):
await YKHO.send(tuKI.choice(Ol8d.replace(', ', ',').split(','))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def choices(YKHO, OaeV, *, xAU6):\n mrPm = xAU6.split('-')\n Acvy = tuKI.choice(mrPm)\n await OaeV.send(f'My choice is\"{Acvy}\"')",
"async def choose(*mrPm: str):\n await JyK9.say(tuKI.choice(mrPm))",
"async def choose(OaeV, *mrPm: str):\n await OaeV.send(tuKI.choice(mrPm))",
"async def... | [
"0.7356122",
"0.72980154",
"0.7231456",
"0.7221386",
"0.7074008",
"0.70598996",
"0.7036463",
"0.69809496",
"0.68713456",
"0.6863059",
"0.6861717",
"0.68052274",
"0.6797242",
"0.67940915",
"0.67906696",
"0.674972",
"0.67444324",
"0.67344636",
"0.6720222",
"0.6681825",
"0.66429... | 0.6794183 | 13 |
f"""Sets the latest message as starred, you can access starred messages with `{self.prefix}starred` | async def setstar(YKHO, OaeV: Message):
global msg
global msgauthor
global starred
global starredauthor
ufCH = tO9_
_kBF = t_Wm
await YKHO.send(f'Starred message was set! You may access it with d!starred') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def starred(YKHO, OaeV: Message):\n global starred\n global starredauthor\n await YKHO.send(f'Starred Message: {ufCH}ㅤ|ㅤMessage Creator: @{_kBF}')",
"async def starboard(YKHO, OaeV):\n if YKHO.bot.db.execute('SELECT * FROM starboards WHERE guild_id = ?', (OaeV.guild.id,)).fetchone():\n r... | [
"0.7614617",
"0.6198602",
"0.6024754",
"0.60036963",
"0.59466106",
"0.5769455",
"0.55561626",
"0.5517419",
"0.55013496",
"0.5439447",
"0.5326988",
"0.53031874",
"0.5292317",
"0.52669215",
"0.5251434",
"0.5243599",
"0.52354676",
"0.5227666",
"0.52235234",
"0.52235234",
"0.5202... | 0.75660044 | 1 |
Decorator to wrap a class or instance method with a memoizing callable that saves results in a cache. | def K2IR(wyyA, H5ew=sjXb.hashkey, stkY=None):
def mrMx(NKcE):
if stkY is None:
def h3Xc(YKHO, *qIxc, **B2fa):
Z9rn = wyyA(YKHO)
if Z9rn is None:
return NKcE(YKHO, *qIxc, **B2fa)
G1Hx = H5ew(*qIxc, **B2fa)
try:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mrMx(NKcE):\n\n def h3Xc(*qIxc, **B2fa):\n \"\"\"\n decorates the given method or function and makes it a lazy one.\n\n :param object args: function positional arguments.\n :param object kwargs: function keyword arguments.\n\n :returns: method or function r... | [
"0.78838277",
"0.78170985",
"0.77516216",
"0.77098095",
"0.76443774",
"0.759869",
"0.75841075",
"0.75835615",
"0.75625193",
"0.7555885",
"0.75371236",
"0.753597",
"0.74854475",
"0.7473189",
"0.74439394",
"0.74331075",
"0.7424788",
"0.7423074",
"0.7423074",
"0.7423074",
"0.740... | 0.7377774 | 23 |
Return True if the two strings are equal, False otherwise. | def iuJ6(wNuL, Mlb1):
return FXSn.compare_digest(Fb0K(wNuL), Fb0K(Mlb1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_Z3(qoGC, VyPo):\n return True",
"def BxtT(YKHO, UXsi, c163):\n if UXsi.lower().strip().replace('_', ' ') == c163.lower().strip().replace('_', ' '):\n return 1\n return 0",
"def fogn(YKHO):\n qoGC = 'this is the first string'\n VyPo = 'this is the first string'\n Tmbm = 'this is t... | [
"0.82969666",
"0.7894558",
"0.78396666",
"0.76290977",
"0.7594734",
"0.7462896",
"0.74592745",
"0.7340261",
"0.73230886",
"0.727015",
"0.7196578",
"0.71828926",
"0.70921886",
"0.7079344",
"0.70285",
"0.6967209",
"0.69438595",
"0.6921239",
"0.68983316",
"0.6808479",
"0.6806627... | 0.0 | -1 |
Set a value in a nested object in root by item sequence. | def GEyC(nPrm: Dict[str, T], pmON: Sequence[str], BWXx: T):
zBpA(nPrm, pmON[:-1])[pmON[-1]] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, ZfUD, BWXx, EXJx):\n if ZfUD is None:\n raise Exception('call __setitem__ with None argument')\n else:\n YKHO.size += 1\n YKHO.root = YKHO.set(YKHO.root, ZfUD, int(BWXx), 0, EXJx)",
"def GEyC(tk5Y, DumB, BWXx):\n zBpA(tk5Y, DumB[:-1])[DumB[-1]] = BWXx",
"def set(YKHO, p... | [
"0.7220228",
"0.6891136",
"0.6576016",
"0.6516086",
"0.6507098",
"0.64205235",
"0.6411641",
"0.63742626",
"0.6364478",
"0.6345405",
"0.62299913",
"0.62247443",
"0.6131387",
"0.61229557",
"0.6119613",
"0.60986227",
"0.60964847",
"0.60803896",
"0.606418",
"0.6049419",
"0.601501... | 0.5696156 | 51 |
Test create_app without passing test config. | def zmu8():
assert not mvm2.create_app().testing
assert mvm2.create_app({'TESTING': True}).testing | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g5pL():\n assert not LUif().testing\n assert LUif({'TESTING': True}).testing",
"def zmu8():\n assert not LUif().testing\n assert LUif(LV7V).testing",
"def x4Zm(P4t4):\n assert P4t4.name == 'myapp.app'",
"def CW30(YKHO):\n YKHO.app\n pass",
"def fkN9():\n xqoZ = {'DEBUG': True, '... | [
"0.88498396",
"0.8124712",
"0.803595",
"0.8010812",
"0.76881677",
"0.76236284",
"0.7604287",
"0.7598619",
"0.7561507",
"0.75018466",
"0.73570627",
"0.73001164",
"0.7252014",
"0.7214372",
"0.7185277",
"0.7180016",
"0.71766704",
"0.71629363",
"0.71615326",
"0.71521",
"0.7067521... | 0.8132289 | 1 |
Set the uuid for the given blender object. | def kDb1(YKHO, YEnM, lIzk):
if not 'opensim' in YEnM.properties:
YEnM.properties['opensim'] = {}
YEnM.properties['opensim']['uuid'] = str(lIzk) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD):\n YKHO._uuid = qxeD",
"def qxeD(YKHO, qxeD: str):\n YKHO._uuid = qxeD",
"def k... | [
"0.754095",
"0.7501207",
"0.7501207",
"0.7501207",
"0.7501207",
"0.7452443",
"0.68505347",
"0.65738225",
"0.6551237",
"0.6537102",
"0.6489831",
"0.6280202",
"0.6255105",
"0.6255105",
"0.6213228",
"0.61867446",
"0.6071201",
"0.6071201",
"0.6017261",
"0.6001831",
"0.5990585",
... | 0.6806787 | 7 |
Return a generator over the given texts that yields batches of `batch_size` texts at a time. | def wmtw(YKHO, z_aV):
Wc9F = []
for l5Ny in YKHO._iter_texts(z_aV):
Wc9F.append(l5Ny)
if len(Wc9F) == YKHO.batch_size:
yield Wc9F
Wc9F = []
if Wc9F:
yield Wc9F | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def avBn(WJlW, z_aV, Ep8u):\n for a2Ls in range(0, len(z_aV) // Ep8u):\n fsWt = a2Ls * Ep8u\n azR7 = WJlW[fsWt:fsWt + Ep8u]\n iWnY = z_aV[fsWt:fsWt + Ep8u]\n u2bd = oyIN.array(RloX(azR7))\n zEVr = oyIN.array(RloX(iWnY))\n GVLF = []\n for QxIo in u2bd:\n ... | [
"0.7762104",
"0.7755449",
"0.6940338",
"0.69279873",
"0.690108",
"0.68479675",
"0.68453777",
"0.68303055",
"0.6803756",
"0.67918473",
"0.674294",
"0.6732417",
"0.67042583",
"0.666098",
"0.6653685",
"0.6618091",
"0.65829265",
"0.65809155",
"0.65289533",
"0.65220654",
"0.646072... | 0.77898896 | 0 |
Returns datetime.datetime.utcnow(). Provided as a method here so that it is easy to monkeypatch for testing. | def GLVq(YKHO):
return qcWV.datetime.utcnow() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E0PF() -> qcWV:\n return qcWV.now(tz=FXGE.timezone('UTC'))",
"def wzkt():\n return qcWV.datetime.utcnow()",
"def dqMC():\n return qcWV.datetime.utcnow()",
"def WmcE():\n return qcWV.datetime.utcnow().replace(tzinfo=FXGE.utc)",
"def fa__():\n return qcWV.utcnow().replace(tzinfo=rIAI)",
... | [
"0.8908604",
"0.85124075",
"0.8492621",
"0.8486097",
"0.8467661",
"0.8332094",
"0.8300898",
"0.82957476",
"0.8254138",
"0.82106686",
"0.8201794",
"0.7980567",
"0.79187965",
"0.7898403",
"0.7890518",
"0.7874206",
"0.78659505",
"0.78306174",
"0.77715486",
"0.7557348",
"0.755356... | 0.8875176 | 1 |
True if the current or specified app version is the default. | def Yeel(DpZH=None):
DpZH = DpZH or ZJol()
return DpZH == jry2() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tcyf(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'set_default_version')",
"def WmM4(YKHO) -> bool:\n return qe4Y.get(YKHO, 'default')",
"def WmM4(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'default')",
"def WmM4(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'default')",
"def WmM4(YKHO) ->... | [
"0.772681",
"0.6940067",
"0.6833589",
"0.6833589",
"0.6833589",
"0.6833589",
"0.6833589",
"0.6758137",
"0.6740214",
"0.6727526",
"0.6727526",
"0.6727526",
"0.6631582",
"0.65461373",
"0.6484051",
"0.64713746",
"0.64553",
"0.6429615",
"0.6415335",
"0.63927865",
"0.6356097",
"... | 0.8380437 | 0 |
True if the dev_appserver is running (localhost or local development server). | def c6YH():
return Hy7s.environ.get('SERVER_SOFTWARE', '').startswith('Development') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HtNy():\n Qvn0 = Hy7s.environ.get('SERVER_SOFTWARE', '')\n return Qvn0.startswith('Development/') or Qvn0.startswith('Google App Engine/')",
"def DISu() -> bool:\n if not o5w1():\n return True\n KcEq = QePW.headers.get('Host', '')\n return KcEq.startswith(('localhost:', '127.0.0.1:', '0... | [
"0.741669",
"0.71911776",
"0.70739365",
"0.6905765",
"0.68173414",
"0.6816723",
"0.6765967",
"0.67199194",
"0.66788757",
"0.6613591",
"0.6549747",
"0.65254384",
"0.6508623",
"0.6505181",
"0.6487575",
"0.64841694",
"0.6479798",
"0.64565057",
"0.6411692",
"0.6387343",
"0.638734... | 0.7834348 | 0 |
True if the app is hosted by Google (appspot.com) but the version is not the default. | def nRNh(DpZH=None):
return HEQ_() and (not Yeel(DpZH)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HEQ_():\n return Hy7s.environ.get('SERVER_SOFTWARE', '').startswith('Google') or eh9D().endswith('.appspot.com')",
"def ktqJ(DpZH=None):\n return HEQ_() and Yeel(DpZH)",
"def HtNy():\n Qvn0 = Hy7s.environ.get('SERVER_SOFTWARE', '')\n return Qvn0.startswith('Development/') or Qvn0.startswith('Go... | [
"0.78718776",
"0.7848482",
"0.7105191",
"0.60794103",
"0.5947001",
"0.5870007",
"0.58545595",
"0.5787777",
"0.57830673",
"0.56562567",
"0.5615425",
"0.55722284",
"0.55030566",
"0.5441202",
"0.54393244",
"0.5423002",
"0.5417493",
"0.5415486",
"0.5387807",
"0.5368626",
"0.53599... | 0.71080875 | 2 |
True if the app is being hosted by Google and the default version. | def ktqJ(DpZH=None):
return HEQ_() and Yeel(DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HEQ_():\n return Hy7s.environ.get('SERVER_SOFTWARE', '').startswith('Google') or eh9D().endswith('.appspot.com')",
"def HtNy():\n Qvn0 = Hy7s.environ.get('SERVER_SOFTWARE', '')\n return Qvn0.startswith('Development/') or Qvn0.startswith('Google App Engine/')",
"def nRNh(DpZH=None):\n return HEQ... | [
"0.78136915",
"0.70029646",
"0.6968191",
"0.6026386",
"0.60192406",
"0.58875763",
"0.582418",
"0.5808776",
"0.58086157",
"0.5788909",
"0.57182306",
"0.57105726",
"0.56911755",
"0.5684011",
"0.56268823",
"0.5618302",
"0.55995536",
"0.5591077",
"0.5575814",
"0.5568064",
"0.5552... | 0.7635994 | 1 |
Return a dictionary of key/values from os.environ. | def Wd9F(sjXb):
return {G1Hx: Hy7s.environ.get(G1Hx, _UiZ) for G1Hx in sjXb} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4pr(YKHO):\n return dict(((ZfUD[0], ZfUD[1]) for ZfUD in [tTpl.split('=', 1) for tTpl in YKHO.env]))",
"def E6J6(YKHO):\n sEAN = {}\n for G1Hx, Ty9i in Hy7s.environ.items():\n G1Hx = G1Hx.decode() if isinstance(G1Hx, bytes) else G1Hx\n Ty9i = Ty9i.decode() if isinstance(Ty9i, bytes) e... | [
"0.80361634",
"0.7982982",
"0.77362555",
"0.76071644",
"0.75005096",
"0.7499689",
"0.7467644",
"0.74087524",
"0.7384348",
"0.7360694",
"0.73264164",
"0.7157489",
"0.7088433",
"0.70668805",
"0.7057955",
"0.7046177",
"0.7021099",
"0.6982962",
"0.69719166",
"0.69719166",
"0.6971... | 0.76562595 | 3 |
Return a dictionary of all environment keys/values. | def TSnC():
return {'os.environ': Wd9F(('AUTH_DOMAIN', 'CURRENT_CONFIGURATION_VERSION', 'CURRENT_MODULE_ID', 'CURRENT_VERSION_ID', 'DEFAULT_VERSION_HOSTNAME', 'FEDERATED_IDENTITY', 'FEDERATED_PROVIDER', 'GAE_LOCAL_VM_RUNTIME', 'HTTP_HOST', 'HTTP_PROXY', 'HTTP_X_APPENGINE_HTTPS', 'HTTP_X_APPENGINE_QUEUENAME', 'HTTP_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C4pr(YKHO):\n return dict(((ZfUD[0], ZfUD[1]) for ZfUD in [tTpl.split('=', 1) for tTpl in YKHO.env]))",
"def iwpn(YKHO):\n rXOQ = {}\n for G1Hx, Ty9i in YKHO.env.items():\n LJvv = {}\n for WKvO, LVAh in Ty9i['vars'].items():\n LJvv[f'{G1Hx}_{WKvO}'] = LVAh['value']\n ... | [
"0.7838127",
"0.76772326",
"0.75440085",
"0.7520959",
"0.74886906",
"0.74356574",
"0.7420341",
"0.7319362",
"0.7290992",
"0.72615975",
"0.72059035",
"0.71573085",
"0.71573085",
"0.703609",
"0.70357156",
"0.70357156",
"0.70357156",
"0.70231026",
"0.7020375",
"0.70022434",
"0.6... | 0.7408746 | 7 |
A method to compute the distance between X_test and X_train and return the euclidean distance input a pandas Series or numpy array output euclidean distance | def zG70(YKHO, iyli):
Csk6 = iyli - YKHO.X_test
return oyIN.sqrt(oyIN.dot(Csk6, Csk6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kOTq(ppBc, qCSv):\n exwG = ppBc.shape[0]\n pImw = []\n for YRbF in range(exwG):\n Ayfi = oyIN.sqrt(oyIN.sum(oyIN.square(ppBc[YRbF] - qCSv)))\n pImw.append(Ayfi)\n pImw = oyIN.asarray(pImw)\n return pImw",
"def yNLG(YKHO, EcVT):\n b2G5 = EcVT.shape[0]\n o6yt = YKHO.X_train.s... | [
"0.75142086",
"0.7399837",
"0.7243397",
"0.707046",
"0.6967581",
"0.6965228",
"0.6943702",
"0.6870658",
"0.6785432",
"0.6773118",
"0.67636585",
"0.67608",
"0.67496693",
"0.6652266",
"0.66108686",
"0.6584114",
"0.65776694",
"0.65604275",
"0.6541176",
"0.65374935",
"0.6525712",... | 0.6819569 | 8 |
Read version from pyproject.toml. Fallback to setup.cfg. | def b8V_() -> int:
DpZH: str | None = None
if (vAec := GkAb('pyproject.toml')).is_file():
with open(vAec, 'rb') as ytgA:
nPrm = bero.load(ytgA)
try:
DpZH = nPrm['project']['version']
except KeyError:
pass
if DpZH is None and (D6Mp := GkAb('setup.cf... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv():\n EmMj = None\n with open(Hy7s.path.join(xBra, 'pyproject.toml'), 'rt') as YCnw:\n for zFiD in YCnw:\n zFiD = zFiD.strip()\n if zFiD.startswith('version'):\n EmMj = zFiD\n break\n if EmMj is None:\n raise ValueError('Unable to d... | [
"0.77620876",
"0.6764137",
"0.67278796",
"0.66459954",
"0.661202",
"0.6550006",
"0.6475499",
"0.64624816",
"0.64310944",
"0.6424412",
"0.6424412",
"0.63990474",
"0.63905674",
"0.6379119",
"0.63753563",
"0.63627774",
"0.63587075",
"0.6322798",
"0.6316064",
"0.62923396",
"0.624... | 0.78628546 | 0 |
Sames as test_gated_conv2d_initialization except that input and output dimensions are different Also, GatedConv2d has multiple tasks, all of which must be equivalent to nn.Conv2d at initialization | def UU5o():
yokr(0)
rRyY: Zxev = Zxev(15, 32, (2, 4), bias=True, n_tasks=3)
rRyY.set_task(0)
yokr(0)
yIp6: U78l.Conv2d = U78l.Conv2d(15, 32, (2, 4), bias=True)
for D5gV in range(3):
a9Uz: ht2j.Tensor = ht2j.rand((200, 15, 60, 120))
rRyY.set_task(D5gV)
assert ht2j.all(ht2j... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YvzZ():\n yokr(0)\n rRyY: Zxev = Zxev(16, 33, (3, 5), stride=(2, 1), bias=True)\n rRyY.set_task(0)\n yokr(0)\n yIp6: U78l.Conv2d = U78l.Conv2d(16, 33, (3, 5), stride=(2, 1), bias=True)\n a9Uz: ht2j.Tensor = ht2j.randn((20, 16, 50, 100))\n assert ht2j.all(ht2j.eq(rRyY(a9Uz), yIp6(a9Uz))), '... | [
"0.81275254",
"0.6787331",
"0.67305773",
"0.6696995",
"0.6675332",
"0.6673586",
"0.66566265",
"0.66512203",
"0.6513561",
"0.65115994",
"0.6498315",
"0.64659786",
"0.6448527",
"0.6439628",
"0.6416859",
"0.6370605",
"0.63614136",
"0.6337462",
"0.6327379",
"0.63149166",
"0.63119... | 0.8366868 | 0 |
Clones a CachedQuerySet. If caching and this is a ValuesQuerySet, automatically add any related foreign relations to the select fields so we can invalidate this query. | def S5BD(YKHO, SR0I, rV9y=None, eCGt=False, **B2fa):
lPRW = B2fa.get('_cache_query', getattr(YKHO, '_cache_query', False))
B2fa['_cache_query'] = lPRW
if not hasattr(YKHO, '_reversemapping'):
YKHO._reversemapping = {}
if lPRW and isinstance(SR0I, B5ZW):
V_D6 = B2fa.get('_fields', getattr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bv2I(YKHO):\n Z9rn = YKHO.__class__(model=YKHO.model, query=YKHO.query.chain(), using=YKHO._db, hints=YKHO._hints)\n Z9rn._sticky_filter = YKHO._sticky_filter\n Z9rn._for_write = YKHO._for_write\n Z9rn._prefetch_related_lookups = YKHO._prefetch_related_lookups[:]\n Z9rn._known_related_objects = ... | [
"0.61725074",
"0.59812343",
"0.59461266",
"0.59003377",
"0.584395",
"0.56303823",
"0.5615513",
"0.5554182",
"0.5544305",
"0.5536982",
"0.55095303",
"0.5501754",
"0.5419497",
"0.54085493",
"0.537575",
"0.5325959",
"0.52936274",
"0.5293385",
"0.5253096",
"0.5230616",
"0.5225892... | 0.66464555 | 0 |
A hackish way to figure out if this is a field or reverse foreign relation | def WeB7(YKHO, Jyyj, YRCe=True):
try:
YKHO.query.setup_joins(Jyyj.split(pQgP), YKHO.query.get_meta(), YKHO.query.get_initial_alias(), False, YRCe, True)
return True
except oZAE:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hCko(Emd4, q8R2):\n return isinstance(q8R2, V_D6.ForeignKeyField)",
"def NvpY(Emd4, q8R2):\n return isinstance(q8R2, V_D6.ReferenceField)",
"def hCko(YKHO):\n return YKHO._foreignKey",
"def mSpY(YKHO, XwK4=True):\n return True",
"def T9yY(YKHO, mnPZ):\n return mnPZ in YKHO._declaration",... | [
"0.73403466",
"0.6849318",
"0.6827766",
"0.67418176",
"0.66495365",
"0.636335",
"0.629098",
"0.62434417",
"0.6227401",
"0.62188214",
"0.6202432",
"0.6103606",
"0.60668206",
"0.60197663",
"0.6006163",
"0.5977515",
"0.58941185",
"0.58592147",
"0.5821377",
"0.5792899",
"0.574693... | 0.5553224 | 35 |
Cache this queryset. If this is a query over reverse foreign relations, those fields will automatically be added to select_reverse, because we need them for invalidation. Do not cache queries on tables in CACHEBOT_TABLE_BLACKLIST | def wyyA(YKHO, *D4ob):
fs2V = YKHO.model._meta.db_table not in Fv2L.CACHEBOT_TABLE_BLACKLIST
return YKHO._clone(setup=True, _cache_query=fs2V, _flush_fields=D4ob) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ih6K(YKHO):\n xDcj = {'%s__id' % YKHO._model: YKHO._objid, 'attribute__db_model__iexact': YKHO._model, 'attribute__db_attrtype': YKHO._attrtype}\n o8Kj = [w2B8.attribute for w2B8 in getattr(YKHO.obj, YKHO._m2m_fieldname).through.objects.filter(**xDcj)]\n YKHO._cache = dict((('%s-%s' % (gTzM(hkS8.db_ke... | [
"0.6775402",
"0.59993213",
"0.596222",
"0.58145946",
"0.5670215",
"0.5609738",
"0.55994034",
"0.55506045",
"0.5535557",
"0.54939467",
"0.5365281",
"0.5360304",
"0.53333545",
"0.532666",
"0.531732",
"0.53152156",
"0.5242422",
"0.52284163",
"0.52197117",
"0.51829463",
"0.516082... | 0.6865942 | 0 |
returns True if same class | def plAK(YEnM, J9Xy):
return type(YEnM) == J9Xy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plAK(YEnM, J9Xy):\n if type(YEnM) == J9Xy:\n return True\n else:\n return False",
"def plAK(YEnM, J9Xy):\n return type(YEnM) == J9Xy",
"def s3SO(Emd4: Class) -> bool:\n pass",
"def plAK(YEnM, J9Xy):\n if type(YEnM) is J9Xy:\n return True\n else:\n return Fals... | [
"0.78040755",
"0.77975726",
"0.7773719",
"0.77728266",
"0.7767954",
"0.7753993",
"0.77302134",
"0.77113855",
"0.7694895",
"0.76916796",
"0.76916796",
"0.7265725",
"0.7178978",
"0.6930947",
"0.6919382",
"0.691706",
"0.6907653",
"0.673987",
"0.67143154",
"0.6678296",
"0.6660986... | 0.77375275 | 6 |
Returns value counts of categorical variable. | def SZFh(YKHO, WKvO):
return WKvO.apply(lambda kidU: YKHO.d[kidU] if kidU in YKHO.d else 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TBqt(YKHO, EcVT: np.ndarray) -> cuzp[int, oyIN.ndarray]:\n return {eHNT: oyIN.bincount(EcVT[:, eHNT].astype(int), minlength=pdKD) for eHNT, pdKD in YKHO.categories_per_feature.items()}",
"def mLMB(YKHO):\n return agpq.nominal_values(YKHO.counts)",
"def cxob(EcVT, ZLJ_, FZHu=30):\n BWz1 = {}\n f... | [
"0.69942605",
"0.67549676",
"0.6734097",
"0.6698544",
"0.6636755",
"0.6601023",
"0.64900833",
"0.63997895",
"0.63928306",
"0.62541586",
"0.624678",
"0.6137413",
"0.6109233",
"0.608899",
"0.60091877",
"0.599579",
"0.5986034",
"0.597623",
"0.5961613",
"0.5955025",
"0.5939641",
... | 0.0 | -1 |
Return all applicable ConfigContexts for a given object. Only active ConfigContexts will be included. | def Siur(YKHO, YEnM, N3z_=False):
LmAn = getattr(YEnM, 'device_role', None) or YEnM.role
DS1x = getattr(YEnM, 'device_type', None)
Rci7 = getattr(YEnM, 'location', None)
hKn5 = getattr(YEnM, 'cluster', None)
lc0P = getattr(hKn5, 'type', None)
OG5d = getattr(hKn5, 'group', None)
oFdy = YEnM.t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSzH(YKHO):\n bD7m = '{}/contexts/'.format(YKHO._org_url)\n lRr0 = YKHO._request(bD7m)\n if not lRr0:\n S0MI.warning('No contexts available')\n return lRr0",
"def KbSg(YKHO):\n NArs = YKHO._get_configurational_params()\n NtVn = YKHO._get_builds()\n n2rL = Hs6x.product(NtVn, *NArs.... | [
"0.67423195",
"0.63874483",
"0.6288563",
"0.6134643",
"0.60941",
"0.5821991",
"0.5788118",
"0.5764118",
"0.57478577",
"0.5685389",
"0.5561476",
"0.5472794",
"0.54687864",
"0.53679305",
"0.5259285",
"0.5245345",
"0.5188176",
"0.5185638",
"0.513328",
"0.51033306",
"0.5074107",
... | 0.0 | -1 |
Test email address is set. | def NIKh(YKHO):
H5ew = nNXP.portal.get_registry_record('plone.email_from_address')
YKHO.assertEqual(u'site@briefy.co', H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aZwc(YKHO):\n YKHO.assertEqual('maryc123@yahoo.com', YKHO.user.email)",
"def NDUF(YKHO):\n pass",
"def aZwc(YKHO, sEAN: yaenv.Env):\n Jwx4 = {'EMAIL_BACKEND': Tz03.email.SCHEMES['dummy'], 'EMAIL_HOST_USER': '', 'EMAIL_HOST_PASSWORD': '', 'EMAIL_HOST': 'localhost'}\n assert sEAN.email('EMAIL_URL... | [
"0.7611134",
"0.7195895",
"0.7082477",
"0.7025699",
"0.70236313",
"0.6988792",
"0.6987156",
"0.6861115",
"0.68181455",
"0.67952514",
"0.6763157",
"0.67444533",
"0.6705161",
"0.6694789",
"0.66897583",
"0.6661837",
"0.6633471",
"0.66177654",
"0.6575388",
"0.65562",
"0.6545701",... | 0.7595855 | 1 |
Test email name is set. | def UZmV(YKHO):
H5ew = nNXP.portal.get_registry_record('plone.email_from_name')
YKHO.assertEqual(u'Briefy CMS', H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ahfJ(YKHO):\n mWFP = u'__TestUser__'\n jTXt = u'ekfdweurwerh'\n D3lj = '__TestUser__@moinhost'\n YKHO.createUser(mWFP, jTXt, email=D3lj)\n AAyl = CBIr.User(YKHO.request, name=mWFP)\n assert AAyl.email == ''",
"def aZwc(YKHO):\n YKHO.assertEqual('maryc123@yahoo.com', YKHO.user.email)",
... | [
"0.8078864",
"0.7592621",
"0.6945445",
"0.69436026",
"0.69260883",
"0.68844074",
"0.6852423",
"0.6669014",
"0.6648711",
"0.6596142",
"0.6590379",
"0.65896183",
"0.6588239",
"0.6584014",
"0.6582953",
"0.65080476",
"0.6454704",
"0.6434885",
"0.64311403",
"0.6407559",
"0.6406547... | 0.77568376 | 1 |
Test if logo is set. | def p_oj(YKHO):
H5ew = nNXP.portal.get_registry_record('plone.site_logo')
YKHO.assertIsNotNone(H5ew) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NGmq(YKHO):\n return YKHO.exclude(FYrf.Q(logo='') | FYrf.Q(logo=None))",
"def nmOv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'logo')",
"def nmOv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'logo')",
"def nmOv(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'l... | [
"0.7107877",
"0.67418164",
"0.67418164",
"0.67418164",
"0.67418164",
"0.66061246",
"0.6446538",
"0.6446538",
"0.63952404",
"0.63714206",
"0.63714206",
"0.63000387",
"0.62816286",
"0.62816286",
"0.62816286",
"0.62216955",
"0.6205712",
"0.6187272",
"0.6105691",
"0.6105691",
"0.... | 0.7037793 | 1 |
Remove stop words words that do not contribute to the deeper meaning of the phrase. e.g. 'some', 'not', 'do', 'the' | def aUcs(GIN8: str) -> str:
hwHU = di0c.words('english')
if not GIN8 in hwHU:
return GIN8
else:
return '0' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUcs(l5Ny):\n di0c = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him', 'his', 'himself', 'she', 'her', 'hers', 'herself', 'it', 'its', 'itself', 'they', 'them', 'their', 'theirs', 'themselves', 'what', 'which', 'who', 'whom', 'this',... | [
"0.8126381",
"0.8110614",
"0.8047423",
"0.79152584",
"0.78571343",
"0.7856788",
"0.78490096",
"0.7815386",
"0.7814012",
"0.78045386",
"0.78030384",
"0.77863",
"0.7765254",
"0.77563715",
"0.7755881",
"0.7718692",
"0.7711407",
"0.77077824",
"0.7695696",
"0.7687436",
"0.7651064"... | 0.7113439 | 70 |
Return a dictionary of this model containing just the fields needed for javascript rendering. | def iPQR(YKHO):
U5bT = {'id': YKHO.id, 'vertices': YKHO.vertices, 'triangles': YKHO.triangles, 'segments': YKHO.segments, 'photo': YKHO.photo.get_entry_dict()}
if YKHO.dominant_rgb0:
U5bT['dominant_rgb0'] = YKHO.dominant_rgb0
if YKHO.image_bbox:
U5bT['image_bbox'] = {'1024': YKHO.image_bbox_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qQXR(YKHO):\n return {'_id': YKHO._id, 'name': YKHO.name, 'description': YKHO.description}",
"def qQXR(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'description': YKHO.description}",
"def qQXR(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name}",
"def B3HT(YKHO):\n zVa7 = YKHO.avatar_ser... | [
"0.65631473",
"0.6489846",
"0.64666986",
"0.645209",
"0.6302593",
"0.62496924",
"0.6229523",
"0.6228484",
"0.62241656",
"0.6212719",
"0.6212719",
"0.6210559",
"0.61916965",
"0.61916965",
"0.61916965",
"0.6179371",
"0.6166464",
"0.61609536",
"0.6157381",
"0.61437607",
"0.61407... | 0.0 | -1 |
Returns the file name of this item and all its headings from top down | def Rci7(YKHO) -> x1iM[str]:
hksT = [Hy7s.path.basename(YKHO.filepath)]
for MKlR in YKHO.headings:
hksT.append(MKlR.heading.strip())
return hksT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n return Hy7s.path.basename(YKHO.__path) if YKHO.isdir() else YKHO.file_title",
"def g_2H(YKHO):\n return '%s - %s' % (YKHO.get_tags()['artist'], YKHO.get_tags()['title'])",
"def xQLV(YKHO):\n return YKHO.title",
"def g_2H(YKHO):\n return NkMd.get_file_names(YKHO, idx=0)",
"def ... | [
"0.6929421",
"0.6831913",
"0.68071866",
"0.6767465",
"0.67439365",
"0.659311",
"0.6561725",
"0.6547633",
"0.653607",
"0.65291476",
"0.6481994",
"0.64708656",
"0.64689744",
"0.6468221",
"0.64479697",
"0.64443076",
"0.63771623",
"0.636629",
"0.63550174",
"0.630625",
"0.6289095"... | 0.6051534 | 47 |
Returns the string representation on this item as should be written to the stdout. | def hlel(YKHO) -> str:
hlel = '- ' + YKHO.output_location() + '\n'
hlel += YKHO.INDENT + YKHO.lines[0][2:] + '\n'
for zFiD in YKHO.lines[1:]:
hlel += YKHO.INDENT + zFiD + '\n'
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CZBi(YKHO):\n return YKHO.__repr__()",
"def zAg0(YKHO):\n LaVg = kJm3()\n YKHO.write_to(LaVg)\n return LaVg.getvalue()",
"def zAg0(YKHO):\n return str(YKHO._items)",
"def zAg0(YKHO):\n return '\\n\\n'.join((str(ZfUD) for ZfUD in YKHO._data))",
"def zAg0(YKHO) -> str:\n return str(Y... | [
"0.75616163",
"0.7462769",
"0.7430526",
"0.7430516",
"0.7409261",
"0.7409261",
"0.7409261",
"0.74063027",
"0.74063027",
"0.74035186",
"0.7402519",
"0.739608",
"0.73788226",
"0.736141",
"0.7337064",
"0.73278606",
"0.73278606",
"0.73278606",
"0.7323719",
"0.7302992",
"0.7285791... | 0.0 | -1 |
Plot validation graphs for all labels corresponding to a specific setup. Will be saved to files in `path`. | def KMKn(NCls: MongoCosemDB, eCGt: str, pmON: str, gwAu: int=127, AIkQ: str='pdf'):
umfI = NCls.get_all_validation_crops()
Crrw = YQNz(eCGt).labels
for nuuJ in Crrw:
rrDP = [PZt3(nuuJ, NAnm) for NAnm in umfI]
if any(rrDP):
nUeQ = Hy7s.path.join(pmON, '{label:}_{setup:}.{filetype:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IL65(pmON):\n import matplotlib.pyplot as QrM1\n Tx1b = oyIN.loadtxt('{}_train_err.csv'.format(pmON))\n ZEgG = oyIN.loadtxt('{}_val_err.csv'.format(pmON))\n YbcW = oyIN.loadtxt('{}_train_loss.csv'.format(pmON))\n AIKr = oyIN.loadtxt('{}_val_loss.csv'.format(pmON))\n QrM1.title('Train vs Valid... | [
"0.6364331",
"0.6203751",
"0.61374027",
"0.6054215",
"0.60218644",
"0.5904355",
"0.5870643",
"0.5821895",
"0.57631457",
"0.5755101",
"0.57389474",
"0.5737532",
"0.57373315",
"0.5722636",
"0.57101905",
"0.5686633",
"0.5683642",
"0.56830406",
"0.56823343",
"0.5666912",
"0.56632... | 0.633306 | 1 |
Opens the last built file in a Web browser. | def E4hC(YKHO, tvqc=None):
pmON = 'file://' + uRlK.pathname2url(YKHO.buildDestination)
pmON = pmON.replace('file://///', 'file:///')
lnPd.LaunchDefaultBrowser(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qFCm(YKHO, ckYJ):\n bD7m = Hy7s.path.join('file://', TEjX, 'build', 'html', ckYJ)\n HywK.open(bD7m, new=2)",
"def qFCm(YKHO, ckYJ):\n bD7m = Hy7s.path.join('file://', TEjX, 'build', 'html', ckYJ)\n HywK.open(bD7m, new=2)",
"def GW_c(bD7m):\n jJYA = open(Hy7s.devnull, 'w')\n Yn3K.Popen([mB... | [
"0.73582006",
"0.7323412",
"0.6964546",
"0.6952937",
"0.69458205",
"0.6939445",
"0.6900211",
"0.6878149",
"0.6791994",
"0.67902684",
"0.67884827",
"0.6759981",
"0.67422956",
"0.67392117",
"0.67234075",
"0.6579325",
"0.6542764",
"0.65300286",
"0.65091604",
"0.6469551",
"0.6447... | 0.65704614 | 16 |
Sets the dirty flag to the value passed. Make sure to use this instead of setting the dirty property directly, as this method automatically updates the pristine property as well. If you pass an action parameter, this action will be saved for undoing under that name. | def K0Dn(YKHO, BWXx, XeOP=None):
YKHO.dirty = BWXx
YKHO.pristine = False
if BWXx is True and XeOP:
YKHO.storyPanel.pushUndo(XeOP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NtKT(YKHO, *qIxc, **B2fa):\n pass",
"def K0Dn(YKHO, QTBn=True):\n YKHO._dirty = QTBn",
"def ka5c(YKHO, *qIxc):\n YKHO.dirty = True",
"def D5hi(YKHO):\n if YKHO.get_isdirty():\n YKHO.save()",
"def oPHm(YKHO, BWXx):\n if BWXx != YKHO._save:\n YKHO._save = BWXx",
"def R8wd(Y... | [
"0.6286011",
"0.59443146",
"0.57823217",
"0.5231629",
"0.5030259",
"0.49741504",
"0.4948412",
"0.4880673",
"0.48540953",
"0.4848074",
"0.48417193",
"0.48278692",
"0.4714081",
"0.4714081",
"0.4691578",
"0.4691578",
"0.46523595",
"0.4586552",
"0.45801178",
"0.44932994",
"0.4457... | 0.7878987 | 0 |
Returns a dictionary of state suitable for pickling. | def Napc(YKHO):
return {'target': YKHO.target, 'buildDestination': YKHO.buildDestination, 'saveDestination': YKHO.saveDestination, 'storyPanel': YKHO.storyPanel.serialize()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n aCqS = {}\n for XAob in YKHO.pickle_attrs:\n aCqS[XAob] = YKHO.__dict__[XAob]\n return aCqS",
"def k8jS(YKHO):\n QTBn = {}\n for H5ew in YKHO.__slots__:\n QTBn[H5ew] = getattr(YKHO, H5ew)\n return QTBn",
"def k8jS(YKHO):\n wiFG = ['_divisionClassifier', '_as... | [
"0.8078824",
"0.77479404",
"0.7688168",
"0.7621085",
"0.7621085",
"0.75852185",
"0.75799656",
"0.74513334",
"0.74429923",
"0.74429923",
"0.7401747",
"0.7391154",
"0.73559755",
"0.73341995",
"0.7325707",
"0.7274801",
"0.72677183",
"0.7246104",
"0.72425944",
"0.7240643",
"0.722... | 0.0 | -1 |
Returns a dictionary of state suitable for pickling. | def _MH_(YKHO, e1vZ):
return {'target': YKHO.target, 'buildDestination': '', 'saveDestination': e1vZ, 'storyPanel': YKHO.storyPanel.serialize_noprivate()} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def k8jS(YKHO):\n aCqS = {}\n for XAob in YKHO.pickle_attrs:\n aCqS[XAob] = YKHO.__dict__[XAob]\n return aCqS",
"def k8jS(YKHO):\n QTBn = {}\n for H5ew in YKHO.__slots__:\n QTBn[H5ew] = getattr(YKHO, H5ew)\n return QTBn",
"def k8jS(YKHO):\n wiFG = ['_divisionClassifier', '_as... | [
"0.8078393",
"0.77483",
"0.768786",
"0.76216984",
"0.76216984",
"0.75849223",
"0.757967",
"0.74517804",
"0.7441994",
"0.7441994",
"0.7402533",
"0.73904663",
"0.7356226",
"0.73345864",
"0.73246145",
"0.7274528",
"0.72675216",
"0.7246171",
"0.7241589",
"0.72407603",
"0.72285223... | 0.0 | -1 |
Return safe defaults for model globals, this will be called instead of model() in case the model has been deactivated in deployment_settings. | def muwo():
return kF3y(hazard_id=E175('hazard_id', 'integer', readable=False, writable=False)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c3_8(YKHO):\n return YKHO.__defaults",
"def cXwb(YKHO):\n return _VfD.Model_dealWithDefaultValues(YKHO)",
"def LcgF():\n print('')\n Cqo6.debug('create_new_config')\n Cqo6.debug('create_new_config / method : %s', QePW.method)\n WOGT = QePW.args.get('only_default', default=False, type=bool... | [
"0.6250287",
"0.61721903",
"0.61385167",
"0.6078777",
"0.6078777",
"0.6076428",
"0.6074019",
"0.5908622",
"0.5905933",
"0.5896708",
"0.58943796",
"0.58817697",
"0.586109",
"0.58499587",
"0.583422",
"0.58322823",
"0.5824284",
"0.5748612",
"0.57464457",
"0.5738713",
"0.5736318"... | 0.0 | -1 |
Drops and creates the tables in the database. Module flask_monitoringdashboard must be imported locally. | def qRWY():
from flask_monitoringdashboard.database import get_tables, engine
for tyNF in get_tables():
tyNF.__table__.drop(engine)
tyNF.__table__.create(engine) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WoCN():\n L682()\n GBS5()",
"def pQY_():\n NCls.session.execute('SET FOREIGN_KEY_CHECKS=0;')\n NCls.session.execute('DROP TABLE IF EXISTS logs;')\n NCls.session.execute('DROP TABLE IF EXISTS employees;')\n NCls.session.execute('DROP TABLE IF EXISTS sales;')\n NCls.session.execute('DROP T... | [
"0.7322428",
"0.7195561",
"0.71846676",
"0.71665865",
"0.711359",
"0.7063226",
"0.70234025",
"0.7021921",
"0.7015413",
"0.69985765",
"0.69595975",
"0.6936402",
"0.6931401",
"0.69009584",
"0.68879503",
"0.68267804",
"0.6824874",
"0.6820962",
"0.6819869",
"0.68192804",
"0.68173... | 0.76238817 | 0 |
Test whether the page returns a 200 OK. | def JQs2(Pcn2, B2Dn):
with Pcn2.app.test_client() as Z9rn:
Pcn2.assertEqual(200, Z9rn.get('dashboard/{}'.format(B2Dn)).status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xi2t(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 200)",
"def rStG(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 200)",
"def yOZO(geh0):\n if geh0.status_code == 200:\n return True",
"def WTjz(Mkmy) -> bool:\n if Mkmy.status_code == 200:\n return True",
"def J7B2(YKHO... | [
"0.79986423",
"0.79654616",
"0.7930902",
"0.79155874",
"0.7839797",
"0.7835429",
"0.7775186",
"0.768653",
"0.74720347",
"0.7443766",
"0.74371564",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.73889667",
"0.... | 0.68214476 | 89 |
Insert node in the head of linked list. | def FnkL(YKHO, nPrm):
Q6kx = o7DN(nPrm)
if YKHO.is_empty() or YKHO._size == 1:
YKHO.__init_ll(Q6kx)
else:
jvSB = YKHO._head
jvSB._previ = Q6kx
Q6kx._next = jvSB
YKHO._head = Q6kx
YKHO._size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QZi3(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n YKHO.head = Msxl(nPrm)\n YKHO.head.next = ycBG",
"def _m17(YKHO, nPrm):\n Q6kx = o7DN(nPrm)\n if YKHO.is_empty():\n YKHO.head = Q6kx\n else:\n Q6kx.next = Y... | [
"0.8180544",
"0.8114963",
"0.78332347",
"0.76325566",
"0.7382686",
"0.7325001",
"0.7277919",
"0.7214656",
"0.71993846",
"0.7188786",
"0.7176238",
"0.71742064",
"0.71544975",
"0.71376836",
"0.7130383",
"0.7113012",
"0.711262",
"0.7110402",
"0.71051514",
"0.7084249",
"0.7064641... | 0.70915943 | 19 |
Insert node in the tail of linked list. | def RGeY(YKHO, nPrm):
Q6kx = o7DN(nPrm)
if YKHO.is_empty() or YKHO._size == 1:
YKHO.__init_ll(Q6kx)
else:
jvSB = YKHO._tail
jvSB._next = Q6kx
Q6kx._previ = jvSB
YKHO._tail = Q6kx
YKHO._size += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ze1L(YKHO, nPrm):\n if YKHO.head is None:\n YKHO.head = Msxl(nPrm)\n else:\n ycBG = YKHO.head\n while ycBG.next is not None:\n ycBG = ycBG.next\n ycBG.next = Msxl(nPrm)",
"def t9IB(sdCG, nPrm):\n if sdCG is None:\n return Msxl(val=nPrm)\n Q6kx = sdCG\... | [
"0.7865883",
"0.7552978",
"0.7346866",
"0.71527034",
"0.71155643",
"0.70713484",
"0.7059535",
"0.7059535",
"0.7050727",
"0.7049063",
"0.70197594",
"0.6981269",
"0.69764465",
"0.6927388",
"0.69109684",
"0.6898189",
"0.6892151",
"0.6864535",
"0.6815965",
"0.679749",
"0.67963177... | 0.6480641 | 34 |
Remove the node in the tail and return it's data. | def XEWQ(YKHO):
if YKHO.is_empty():
return None
jvSB = YKHO._tail._previ
Q6kx = YKHO._tail
jvSB._next = None
YKHO._tail = jvSB
nPrm = Q6kx._data
Q6kx = o7DN(None)
YKHO._size -= 1
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qeks(YKHO):\n if YKHO.tail is None:\n return None\n eSnm = YKHO.tail\n if YKHO.tail != YKHO.head:\n if YKHO.tail.skip_back is None:\n YKHO.tail = YKHO.head\n else:\n YKHO.tail = YKHO.tail.skip_back.next\n YKHO.tail.next = None\n else:\n YKHO.... | [
"0.80271435",
"0.8005039",
"0.77667886",
"0.76389104",
"0.7635231",
"0.74857175",
"0.7458775",
"0.741937",
"0.741579",
"0.7406742",
"0.739009",
"0.7263018",
"0.7259851",
"0.71966535",
"0.71686405",
"0.71169114",
"0.71088445",
"0.71048707",
"0.707463",
"0.70467544",
"0.7004692... | 0.7913234 | 2 |
Check whether the user should have authority to add a comment. Government Users with abilities to review the documents should always have authority to add a comment, unless it's archived. Fuel Suppliers with abilities to add or submit can add a comment if the document is either in draft or submitted status. | def QPEL(CBIr, C13M, Zl3b):
if CBIr.is_government_user and CBIr.has_perm('DOCUMENTS_GOVERNMENT_REVIEW') and (C13M.status.status in ['Received', 'Submitted']):
return True
if not CBIr.is_government_user and (not Zl3b) and (C13M.status.status in ['Draft', 'Submitted']):
return True
return Fals... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M66F(CBIr, aM_I: DocumentComment):\n dogc = aM_I.document.status.id\n if CBIr.id == aM_I.create_user_id and dogc == _rT0.objects.get_by_natural_key('Draft').id:\n return True\n return False",
"def Exol(YKHO, CBIr):\n if not CBIr.is_active or CBIr.is_anonymous():\n return False\n ... | [
"0.7271652",
"0.67438865",
"0.665852",
"0.65113",
"0.63269186",
"0.6268414",
"0.6247392",
"0.62267804",
"0.62259763",
"0.609809",
"0.6085613",
"0.60617465",
"0.60515285",
"0.60477924",
"0.603752",
"0.603205",
"0.60241735",
"0.60176",
"0.6010362",
"0.60091203",
"0.60087854",
... | 0.76989025 | 0 |
Check permissions When an object does not yet exist (POST) | def qHTF(YKHO, QePW, tTee):
if QePW.method != 'POST':
return True
if 'privileged_access' not in QePW.data and 'document' in QePW.data:
return False
C13M = QePW.data['document']
oEWO = QePW.data['privileged_access']
EmMj = yQaM.objects.filter(id=C13M).first()
if not EmMj:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hSlh(YKHO, QePW, YEnM):\n for Uvf2 in YKHO.get_permissions():\n if not Uvf2.has_object_permission(QePW, YKHO, YEnM):\n YKHO.permission_denied(QePW, message=getattr(Uvf2, 'message', None), code=getattr(Uvf2, 'code', None))",
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.S... | [
"0.72669476",
"0.72639483",
"0.7189025",
"0.7180526",
"0.70522213",
"0.7005184",
"0.70026386",
"0.6998934",
"0.6975461",
"0.6975461",
"0.69745016",
"0.69448566",
"0.6884961",
"0.6874693",
"0.6839076",
"0.6839076",
"0.6833978",
"0.6832702",
"0.6819339",
"0.68118906",
"0.680728... | 0.0 | -1 |
Check permissions When an object does exist (PUT, GET) | def m4il(YKHO, QePW, tTee, YEnM):
if YEnM.create_user == QePW.user:
return True
if YEnM.create_user.organization == QePW.user.organization and QePW.method in w0rQ.SAFE_METHODS:
return True
if QePW.user.is_government_user:
if QePW.method in w0rQ.SAFE_METHODS:
if YEnM.privi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method == 'GET':\n return YKHO.model_admin_config.has_view_permission(YKHO, QePW, obj=YEnM)\n if QePW.method == 'PUT':\n return YKHO.model_admin_config.has_change_permission(YKHO, QePW, obj=YEnM)\n if QePW.method == 'DELETE':\n return YKHO.m... | [
"0.7644794",
"0.7528569",
"0.7400692",
"0.7377789",
"0.73407245",
"0.7321072",
"0.72752535",
"0.72601265",
"0.72163105",
"0.7198844",
"0.71889865",
"0.71889865",
"0.71542627",
"0.71001434",
"0.70958287",
"0.7069107",
"0.7063763",
"0.70194304",
"0.70145094",
"0.6960202",
"0.69... | 0.6580469 | 47 |
Fetches the DataLoader object for each type in types from data_dir. | def BHQB(RYsB, NArs):
lXoe, UFXW = kfHn()
hxDW = {}
for lpha in RYsB:
if lpha == qIxc.TRAIN:
gzVs = pVAc(Q0ys(path_img=qIxc.path_img_train, path_target=qIxc.path_target_train, transforms=lXoe, split=qIxc.TRAIN), batch_size=NArs.batch_size, shuffle=True, num_workers=0, pin_memory=NArs.cud... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BHQB(SnBA, tETI, NArs):\n hxDW = {}\n J0EE = {}\n for lpha in ['train', 'val', 'test']:\n if lpha in SnBA:\n pmON = Hy7s.path.join(tETI, '{}'.format(lpha))\n if lpha == 'train':\n XxFT = x_b5(pmON, UmpV)\n RFg8 = None\n if NArs.... | [
"0.76289386",
"0.73933464",
"0.6986406",
"0.68310714",
"0.68107843",
"0.67513543",
"0.66739625",
"0.666572",
"0.66258794",
"0.660907",
"0.65926415",
"0.6503621",
"0.6455934",
"0.64470595",
"0.64216655",
"0.64156145",
"0.64035064",
"0.6368777",
"0.6348611",
"0.63402015",
"0.63... | 0.0 | -1 |
Construct the extension class that adds weight decay to an optimizer. | def FIMM(YKHO, oNEO, **B2fa):
YKHO._decay_var_list = None
YKHO._weight_decay = oNEO
YKHO._weight_decay_tensor = None
super(EERJ, YKHO).__init__(**B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oNEO, b0Ix=0.001, dgWh=0.9, znmT=0.999, _hZ2=1e-08, Wxok=False, mWFP='AdamW'):\n super(L5Qk, YKHO).__init__(oNEO, learning_rate=b0Ix, beta1=dgWh, beta2=znmT, epsilon=_hZ2, use_locking=Wxok, name=mWFP)",
"def _39o(BQXw):\n\n class OptimizerWithDecoupledWeightDecay(EERJ, BQXw):\n \"\"\"... | [
"0.76263696",
"0.748923",
"0.7134511",
"0.6737376",
"0.6686473",
"0.6480909",
"0.6443058",
"0.62940276",
"0.62670785",
"0.6248732",
"0.62434214",
"0.6213813",
"0.6205761",
"0.6183056",
"0.61107177",
"0.6038618",
"0.6036245",
"0.5994739",
"0.59839594",
"0.59734875",
"0.5949287... | 0.7751367 | 0 |
Factory function returning an optimizer class with decoupled weight decay. Returns an optimizer class. An instance of the returned class computes the update step of `base_optimizer` and additionally decays the weights. E.g., the class returned by `extend_with_decoupled_weight_decay(tf.compat.v1.train.AdamOptimizer)` is... | def _39o(BQXw):
class OptimizerWithDecoupledWeightDecay(EERJ, BQXw):
"""Base_optimizer with decoupled weight decay.
This class computes the update step of `base_optimizer` and
additionally decays the variable with the weight decay being decoupled from
the optimization steps w.r.t. to the loss ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, oNEO, b0Ix=0.001, dgWh=0.9, znmT=0.999, _hZ2=1e-08, Wxok=False, mWFP='AdamW'):\n super(L5Qk, YKHO).__init__(oNEO, learning_rate=b0Ix, beta1=dgWh, beta2=znmT, epsilon=_hZ2, use_locking=Wxok, name=mWFP)",
"def Z2AK(DJmW, H0j9, USzt):\n jsQ2 = ZylS.keras.optimizers.schedules.PolynomialDecay(ini... | [
"0.7078224",
"0.6981097",
"0.667451",
"0.6630046",
"0.6625502",
"0.6578805",
"0.64517415",
"0.6448513",
"0.64309204",
"0.6414019",
"0.6376434",
"0.6366005",
"0.6362686",
"0.63562506",
"0.6356187",
"0.63430727",
"0.63406575",
"0.633333",
"0.6310957",
"0.63037944",
"0.6286209",... | 0.8740536 | 0 |
Construct a new AdamW optimizer. For further information see the documentation of the Adam Optimizer. | def FIMM(YKHO, oNEO, b0Ix=0.001, dgWh=0.9, znmT=0.999, _hZ2=1e-08, Wxok=False, mWFP='AdamW'):
super(L5Qk, YKHO).__init__(oNEO, learning_rate=b0Ix, beta1=dgWh, beta2=znmT, epsilon=_hZ2, use_locking=Wxok, name=mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z2AK(DJmW, H0j9, USzt):\n jsQ2 = ZylS.keras.optimizers.schedules.PolynomialDecay(initial_learning_rate=DJmW, decay_steps=H0j9, end_learning_rate=0.0)\n if USzt:\n jsQ2 = ySYF(initial_learning_rate=DJmW, decay_schedule_fn=jsQ2, warmup_steps=USzt)\n K0do = vTRW(learning_rate=jsQ2, weight_decay_ra... | [
"0.6771279",
"0.67677313",
"0.666231",
"0.6603509",
"0.65492004",
"0.6491629",
"0.63637257",
"0.62906617",
"0.62903893",
"0.62898374",
"0.6282439",
"0.6227277",
"0.61658525",
"0.61088383",
"0.60857916",
"0.6040332",
"0.59798986",
"0.5956418",
"0.5931988",
"0.5910213",
"0.5900... | 0.7531271 | 0 |
Construct a new ShampooW optimizer. For further information see the documentation of the Shampoo Optimizer. | def FIMM(YKHO, oNEO, Aak1, qgsV=768, p1Ef=0.0, M57N=1.0, kzqR=1.0, UMN2=1.0, b0Ix=1.0, pbAx=1, bMEH=1, _hZ2=0.0001, Cwt5=0.5, hbAD=False, Wxok=False, mWFP='ShampooW'):
super(wfJa, YKHO).__init__(oNEO, global_step=Aak1, max_matrix_size=qgsV, gbar_decay=p1Ef, gbar_weight=M57N, mat_gbar_decay=UMN2, learning_rate=b0Ix,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO, K0do):\n qoqK = 1 / epAf.sqrt(YKHO.input_shape[0])\n YKHO.W = oyIN.random.uniform(-qoqK, qoqK, (YKHO.input_shape[0], YKHO.units))\n YKHO.b = oyIN.zeros((1, YKHO.units))\n YKHO.W_optimizer = jth9.copy(K0do)\n YKHO.b_optimizer = jth9.copy(K0do)",
"def FIMM(YKHO, K0do):\n super(zKuh... | [
"0.6013109",
"0.59717166",
"0.5745999",
"0.5601538",
"0.55156535",
"0.54103607",
"0.5334195",
"0.5316951",
"0.5305765",
"0.52873975",
"0.51777035",
"0.51750827",
"0.51090956",
"0.50915885",
"0.5079751",
"0.5076531",
"0.507405",
"0.5070588",
"0.5026943",
"0.50117916",
"0.49998... | 0.6836618 | 0 |
Derivative of the sigmoid function. | def hj5n(epBp):
return m1Hg(epBp) * (1 - m1Hg(epBp)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NZml(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n return m1Hg(WKvO) * (1 - m1Hg(WKvO))",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def BV7B(WKvO):\n return WKvO * (1 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n ox... | [
"0.84754366",
"0.8450928",
"0.8396931",
"0.83485264",
"0.83485264",
"0.8298343",
"0.80539966",
"0.7753385",
"0.77070266",
"0.7498153",
"0.7464916",
"0.7454039",
"0.7401582",
"0.7385017",
"0.73829913",
"0.7346935",
"0.7321687",
"0.73094004",
"0.7192053",
"0.7113881",
"0.709236... | 0.0 | -1 |
Return image data from a raw PGM file as numpy array. | def Xp6P(Ux0P, abwh='>'):
with open(Ux0P, 'rb') as eHNT:
NRcB = eHNT.read()
try:
WBPg, TVTK, H2v2, uBsB = ZbWC.search(b'(^P5\\s(?:\\s*#.*[\r\n])*(\\d+)\\s(?:\\s*#.*[\r\n])*(\\d+)\\s(?:\\s*#.*[\r\n])*(\\d+)\\s(?:\\s*#.*[\r\n]\\s)*)', NRcB).groups()
except AttributeError:
raise ValueEr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xp6P(Ux0P, abwh='>'):\n with open(Ux0P, 'rb') as eHNT:\n NRcB = eHNT.read()\n try:\n WBPg, TVTK, H2v2, uBsB = ZbWC.search(b'(^P5\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n])*(\\\\d+)\\\\s(?:\\\\s*#.*[\\r\\n]\\\\s)*)', NRcB).groups()\n ex... | [
"0.7730566",
"0.7728106",
"0.7713083",
"0.7545925",
"0.74387604",
"0.69338894",
"0.6734058",
"0.64388365",
"0.6428982",
"0.63659805",
"0.623475",
"0.62275773",
"0.6217904",
"0.62111574",
"0.61487556",
"0.6141127",
"0.61343825",
"0.61343825",
"0.6131553",
"0.61081797",
"0.6084... | 0.7749413 | 0 |
Given an image, extract patches of a given shape with a certain amount of allowed overlap between patches, using a heuristic to ensure maximum coverage. If cropvalue is specified, it is treated as a flag denoting a pixel that has been cropped. Patch will be rejected if it has more than crop_fraction_allowed prod(patchs... | def YXTw(LNo8, oJ3s, FdKs=0.1, GuDO=None, Zcgi=0.1):
WOdm = int(oJ3s[1] * FdKs)
DO29 = int(oJ3s[0] * FdKs)
if GuDO is not None:
usx6, WfCS = oyIN.where(LNo8 != GuDO)
usx6.sort()
WfCS.sort()
WZHJ = LNo8[usx6[0]:usx6[-1], WfCS[0]:WfCS[-1]]
else:
WZHJ = LNo8
ig3t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i6CO(LNo8, FTrt=8, yHH9=False, qISs=False):\n C7Ls, XcU5 = oyIN.shape(LNo8)\n ryV4 = (C7Ls - FTrt + 1) * (XcU5 - FTrt + 1) if yHH9 else int(C7Ls / FTrt) * int(XcU5 / FTrt)\n ohfT = oyIN.zeros((FTrt ** 2, FTrt ** 2, ryV4)) if qISs else oyIN.zeros((FTrt ** 2, ryV4))\n VFj8 = 1 if yHH9 else FTrt\n ... | [
"0.5984532",
"0.5841861",
"0.57167107",
"0.55550015",
"0.5497948",
"0.5380395",
"0.53651226",
"0.5362727",
"0.5358716",
"0.53110784",
"0.52789223",
"0.5265371",
"0.52064407",
"0.51908445",
"0.5186069",
"0.51654446",
"0.5164763",
"0.5133878",
"0.5127952",
"0.5118306",
"0.51134... | 0.80314445 | 0 |
Return the CDC status for the specified state. | async def status_by_state(YKHO, QTBn: str) -> cuzp[str, ImMB]:
nPrm = await YKHO.raw_cdc_data()
try:
U34r = next((Ty9i for G1Hx, Ty9i in nPrm.items() if QTBn in G1Hx))
except StopIteration:
return {}
return Er6P(U34r) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VLTN(YKHO, QTBn):\n raise NotImplementedError",
"def QTBn(YKHO):\n return YKHO._attributes['status']",
"def VLTN(YKHO):\n return YKHO._conn_state",
"def GBfH(YKHO, Xgyb):\n return YKHO.getControlModelProperty(Xgyb, 'State')",
"def dTIz(YKHO):\n return gTEQ('PrlSrvCfgDev_GetDeviceState', ... | [
"0.6950197",
"0.6188221",
"0.60602915",
"0.6054206",
"0.60436743",
"0.6007757",
"0.5899706",
"0.5898291",
"0.5840877",
"0.58122015",
"0.5802145",
"0.5794245",
"0.5737817",
"0.5732222",
"0.5714972",
"0.56979555",
"0.56842417",
"0.56687534",
"0.56262016",
"0.5582584",
"0.557716... | 0.7512813 | 0 |
Test if event 'event' hits widget 'widget' (or any of its parents). | def Mn7f(tvqc, TEdI):
while TEdI:
if tvqc.target == TEdI.element:
return TEdI
TEdI = TEdI.parent()
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fSq9(tvqc, TEdI):\n if tvqc.target == TEdI.element:\n return TEdI\n for aUGN in TEdI.children():\n if fSq9(tvqc, aUGN):\n return aUGN\n return None",
"def DL2D(YKHO, tvqc):\n if YKHO.get_visible():\n for YRbF in YKHO.widgets:\n if YRbF.get_visible():\n ... | [
"0.80501217",
"0.65787",
"0.63367635",
"0.6224147",
"0.61510354",
"0.5992296",
"0.5992296",
"0.5980612",
"0.5892508",
"0.58876485",
"0.5870506",
"0.5859626",
"0.5856972",
"0.58065057",
"0.5806029",
"0.57168585",
"0.5710279",
"0.5702223",
"0.5694154",
"0.5618313",
"0.55871356"... | 0.8459502 | 0 |
Build and send a single message from a campaign. | def _nRO(YKHO, nG3o, UzPC, QpfX=None):
s6dT = '{{ event.calendar.course.name }} {{ event.title }}'
if not YKHO.event.get_documents(True):
qm1k = YKHO.REQUEST_TEMPLATE
U4ZT = 'Got a {} study guide?'.format(s6dT)
else:
qm1k = YKHO.PUBLISH_TEMPLATE
U4ZT = '{} study guide'.format... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RgNr(x0hE: Client, _j1c: str) -> lLRR | str:\n try:\n Bi9d = x0hE.get_campaign(_j1c)\n except ValueError:\n return 'Campaign Id not found'\n khM6 = ['id', 'name', 'description', 'startDate', 'notable']\n tIw1 = ['families', 'techniques', 'actors', 'brands', 'malware']\n o4Jx = {}\n... | [
"0.6070291",
"0.5929668",
"0.5830548",
"0.5694929",
"0.5659411",
"0.55584955",
"0.55079764",
"0.54406506",
"0.54061556",
"0.5340694",
"0.5314835",
"0.5313341",
"0.5310776",
"0.5291198",
"0.5281365",
"0.5272663",
"0.5202269",
"0.5199063",
"0.5191958",
"0.5174547",
"0.5174164",... | 0.5311255 | 12 |
Deactivate all stillactive campaigns. Notes The `until` field of each campaign will be set to "now." Each campaign will retain its `when` field to indicate the rough time of creation. This method is not strictly necessary, except to indicate for metrics how many campaigns are considered "active" at any one time. | def imKE(YKHO):
wzkt = rIAI.now()
for j4i0 in YKHO.campaigns.active():
j4i0.until = wzkt
j4i0.save(update_fields=['until']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FfU5(YKHO, id):\n qZSv.objects(id=id).update(set__active=False, set__updated_at=qcWV.utcnow())",
"def zBnx(YKHO):\n for YWSi in YKHO.agents:\n if YWSi.available:\n YWSi.stop_activity()",
"def AQWh(YKHO):\n B2fa = {}\n B2fa['expirationdate__lte'] = qcWV.utcnow().replace(tzinfo=... | [
"0.60527074",
"0.5630347",
"0.562254",
"0.5554843",
"0.5446443",
"0.54009086",
"0.5375945",
"0.5277232",
"0.5126579",
"0.51044387",
"0.5075955",
"0.5045264",
"0.5027603",
"0.50142807",
"0.49869668",
"0.49637213",
"0.49527264",
"0.49330115",
"0.490023",
"0.4891117",
"0.4881864... | 0.7771713 | 0 |
Create a new column with the truth array of the chi2 cuts on the ion channels. | def M6Z1(jQ3Z):
vag0 = d0tX['offset_ion_threshold']
Y_16 = rLdf.Series(data=True, index=jQ3Z.index)
for ZI14 in mhF2:
DH_7 = 'offset_ion{}'.format(ZI14)
vgXP = abs(jQ3Z[DH_7])
Y_16 = Y_16 & (vgXP < vag0)
jQ3Z['offset_ion_cut'] = Y_16
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X3oo(wOb_, jQ3Z):\n z5nH = d0tX['ion_chi2_threshold']\n Y_16 = rLdf.Series(data=True, index=jQ3Z.index)\n for ZI14 in mhF2:\n e0JO = 'chi2_ion{}'.format(ZI14)\n P29l = jQ3Z[e0JO]\n TdWY = 'energy_adu_ion{}'.format(ZI14)\n v3jw = abs(jQ3Z[TdWY])\n XNOb = XyH3(z5nH, v3... | [
"0.7263757",
"0.6292078",
"0.5769869",
"0.54531854",
"0.52104783",
"0.5190182",
"0.5125601",
"0.5123869",
"0.51127404",
"0.5101781",
"0.50807714",
"0.502889",
"0.49815428",
"0.49234533",
"0.49120077",
"0.4911549",
"0.49019995",
"0.49002504",
"0.4849663",
"0.4793729",
"0.47849... | 0.60605234 | 2 |
Creates a high pass filter with size radius. Returns a kernel in the frequency domain | def PEXC(Xn71: np.array, r1VO: int):
FTy5 = Xn71.shape[1] // 2
N7RG = Xn71.shape[0] // 2
assert len(Xn71.shape) == 2, 'Expected a grayscale image. Got image shape: {}'.format(Xn71.shape)
WZcn = oyIN.ones_like(Xn71)
x6aZ, EqBn = frG3.draw.circle(N7RG, FTy5, r1VO)
WZcn[x6aZ, EqBn] = 0.0
WZcn =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rEsM(Xn71, r1VO):\n WZcn = PEXC(Xn71, r1VO)\n WZcn = 1 - WZcn\n return WZcn",
"def rEsM(Xn71, r1VO):\n WZcn = PEXC(Xn71, r1VO)\n WZcn = 1 - WZcn\n return WZcn",
"def zJdD(YKHO, ROpF, tAX0):\n from numpy import exp\n ZHfW = VNqG(ROpF)\n YNdt, Ikh1 = (ROpF[0], ROpF[1])\n N7RG, F... | [
"0.78529",
"0.78529",
"0.6649468",
"0.6646551",
"0.6549375",
"0.6358656",
"0.63261074",
"0.62897265",
"0.6205089",
"0.6203927",
"0.61277795",
"0.60955054",
"0.6051659",
"0.60070324",
"0.5933284",
"0.5906416",
"0.590382",
"0.58800393",
"0.58795744",
"0.584949",
"0.577058",
"... | 0.7620803 | 3 |
Gets the agent_id of this DataView. | def ILdH(YKHO):
return YKHO._agent_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z3cr(YKHO):\n return YKHO.agentID",
"def ILdH(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def ILdH(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def ILdH(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'agent_id')",
"def Bkzk(YKHO):\n rais... | [
"0.8083156",
"0.79691285",
"0.78115857",
"0.76219046",
"0.69031",
"0.65911037",
"0.6097658",
"0.6008568",
"0.6001827",
"0.59495735",
"0.59487915",
"0.59402347",
"0.5937929",
"0.59277266",
"0.59277266",
"0.5922756",
"0.5922756",
"0.5922756",
"0.5922756",
"0.5922756",
"0.592275... | 0.8310618 | 0 |
Sets the agent_id of this DataView. | def ILdH(YKHO, ILdH):
YKHO._agent_id = ILdH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mY4K(YKHO, ILdH):\n YKHO.id = ILdH",
"def ILdH(YKHO):\n return YKHO._agent_id",
"def ILdH(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'agent_id')",
"def Z3cr(YKHO):\n return YKHO.agentID",
"def Teru(YKHO, YWSi: Agent):\n YKHO.agent = YWSi\n return YKHO",
"def BKcS(YKHO, BKcS):... | [
"0.81010234",
"0.6719917",
"0.6095088",
"0.59701824",
"0.59012455",
"0.5855861",
"0.5816381",
"0.57755524",
"0.5661669",
"0.56426847",
"0.55166215",
"0.5496809",
"0.54740965",
"0.54161376",
"0.54161376",
"0.54161376",
"0.54161376",
"0.5383501",
"0.53787416",
"0.5373367",
"0.5... | 0.83411765 | 0 |
Gets the charts of this DataView. | def c0yN(YKHO):
return YKHO._charts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO):\n return YKHO.container['charts']",
"def c0yN(YKHO):\n return YKHO.properties.get('charts', BmUx(YKHO.context, bOKq, oudJ('charts', YKHO.resource_path)))",
"def QBXz(YKHO):\n dixj = []\n I1mm = False\n for zFiD in YKHO.ResultsForCSVfile:\n if I1mm:\n dixj.append... | [
"0.82675946",
"0.79279137",
"0.6807959",
"0.67548007",
"0.6658193",
"0.65832984",
"0.65825135",
"0.6336219",
"0.6336219",
"0.63013816",
"0.6268031",
"0.6224177",
"0.60823053",
"0.6030702",
"0.6030702",
"0.60146344",
"0.59476095",
"0.59191996",
"0.5856549",
"0.5778034",
"0.576... | 0.8620336 | 0 |
Gets the end of this DataView. | def Os4s(YKHO):
return YKHO._end | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A_2I(YKHO):\n return YKHO._end",
"def A_2I(YKHO):\n return YKHO.__end",
"def Os4s(YKHO):\n return YKHO._t0 + YKHO.length",
"def q0ht(YKHO):\n return YKHO._end",
"def Os4s(YKHO):\n return YKHO.range().end()",
"def Os4s(YKHO):\n return YKHO.__end_line",
"def Os4s(YKHO) -> oeNL.Pos:\... | [
"0.7790458",
"0.77900547",
"0.7550342",
"0.75261223",
"0.751785",
"0.7436059",
"0.73776907",
"0.7347647",
"0.7176045",
"0.71656615",
"0.7156478",
"0.71158147",
"0.70670545",
"0.70649004",
"0.70325243",
"0.7014097",
"0.7002444",
"0.69923085",
"0.6958729",
"0.6904575",
"0.68297... | 0.72510004 | 10 |
Sets the end of this DataView. | def Os4s(YKHO, Os4s):
YKHO._end = Os4s | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Os4s(YKHO, Os4s: pos.Pos) -> None:\n YKHO.__end = Os4s",
"def gO0s(YKHO, HV2X):\n YKHO.__end_line = HV2X",
"def v_ik(YKHO, W0Eb):\n YKHO._end = W0Eb",
"def ouoe(YKHO, HlT_):\n YKHO._line_end = HlT_",
"def RHD_(YKHO, *qIxc):\n return _VfD.LineSegment_setEnd(YKHO, *qIxc)",
"def gO0s(YKHO... | [
"0.740318",
"0.7190862",
"0.6701947",
"0.6684691",
"0.6545107",
"0.6527118",
"0.6515386",
"0.6451569",
"0.63730067",
"0.6368684",
"0.6358861",
"0.6295339",
"0.61620694",
"0.61452234",
"0.6119705",
"0.61171925",
"0.6049421",
"0.6036433",
"0.6008573",
"0.6008573",
"0.6008573",
... | 0.75068325 | 1 |
Gets the ion of this DataView. | def kQ4Y(YKHO):
return YKHO._ion | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJJ(YKHO):\n return YKHO.i",
"def YRbF(YKHO):\n return YKHO._i",
"def Ry3_(YKHO):\n return YKHO._ionization",
"def Qo7M(YKHO):\n return YKHO._ion_id",
"def pdhd(YKHO):\n try:\n return YKHO._I\n except Exception as e:\n raise tTpl",
"def or8S(YKHO):\n return YKHO._i... | [
"0.6912367",
"0.64726067",
"0.6313581",
"0.6267831",
"0.61950713",
"0.60924727",
"0.6036644",
"0.6016022",
"0.599894",
"0.5959279",
"0.59040457",
"0.5896677",
"0.5882723",
"0.5864374",
"0.5856137",
"0.5855202",
"0.57790303",
"0.57683027",
"0.57218146",
"0.5716438",
"0.5700164... | 0.7884481 | 0 |
Sets the ion of this DataView. | def kQ4Y(YKHO, kQ4Y):
YKHO._ion = kQ4Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qo7M(YKHO, Qo7M):\n YKHO._ion_id = Qo7M",
"def MKaT(YKHO, fvDH):\n YKHO.ix_col = fvDH",
"def yETv(YKHO, yETv):\n YKHO._ion_instance = yETv",
"def kQ4Y(YKHO):\n return YKHO._ion",
"def YRbF(YKHO, YRbF):\n YKHO._i = YRbF",
"def _R1u(YKHO, _R1u):\n YKHO._imei = _R1u",
"def O1R3(YKHO,... | [
"0.6815875",
"0.5993985",
"0.59775084",
"0.5886131",
"0.583014",
"0.57173365",
"0.5697282",
"0.56899935",
"0.56899935",
"0.56854016",
"0.5558502",
"0.5547624",
"0.552964",
"0.54306763",
"0.54232234",
"0.5399543",
"0.5378332",
"0.53737926",
"0.53737926",
"0.53737926",
"0.53737... | 0.7709867 | 0 |
Gets the ion_id of this DataView. | def Qo7M(YKHO):
return YKHO._ion_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return YKHO._column_id",
"def unpH(YKHO):\n return YKHO.iid",
"def KV99(YKHO):\n return YKHO.getDbRecord().getColumnValue(BZTt)",
"def YoW8(YKHO) -> str:\n return YKHO._iid",
"def nH4V(YKHO):\n return YKHO._ion_node_id",
"def dB3i(YKHO):\n return YKHO.id",
"def UVlm(... | [
"0.7067871",
"0.70338047",
"0.69187796",
"0.6845771",
"0.6836222",
"0.6764785",
"0.658163",
"0.6567781",
"0.65557307",
"0.6543656",
"0.65214735",
"0.65035874",
"0.65035874",
"0.64930797",
"0.6486929",
"0.646655",
"0.6464553",
"0.6461085",
"0.64540666",
"0.6421553",
"0.6405028... | 0.82477623 | 0 |
Sets the ion_id of this DataView. | def Qo7M(YKHO, Qo7M):
YKHO._ion_id = Qo7M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nH4V(YKHO, nH4V):\n YKHO._ion_node_id = nH4V",
"def kQ4Y(YKHO, kQ4Y):\n YKHO._ion = kQ4Y",
"def Qo7M(YKHO):\n return YKHO._ion_id",
"def KivV(YKHO, KivV):\n YKHO._inode_id = KivV",
"def ekm0(YKHO, eEzR):\n YKHO._id = eEzR",
"def ekm0(YKHO, id):\n raise NotImplementedError('must be i... | [
"0.7140456",
"0.7003836",
"0.6627499",
"0.6358579",
"0.6340337",
"0.62749934",
"0.62377805",
"0.62309617",
"0.62236243",
"0.61920166",
"0.61461836",
"0.61065215",
"0.61017543",
"0.60969234",
"0.60548955",
"0.60082406",
"0.6006385",
"0.5989457",
"0.5989457",
"0.59892523",
"0.5... | 0.8526509 | 0 |
Gets the ion_node_id of this DataView. | def nH4V(YKHO):
return YKHO._ion_node_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnes(YKHO) -> int:\n return YKHO._node_id",
"def Lnes(YKHO) -> int:\n return YKHO.data['nodeId']",
"def Lnes(YKHO) -> int:\n return YKHO.data['nodeId']",
"def KAEH(YKHO):\n if YKHO.cursor:\n return YKHO.cursor.nodeId\n return None",
"def MQp8(YKHO):\n if YKHO.is_root:\n ... | [
"0.8092444",
"0.7992669",
"0.7992669",
"0.7685792",
"0.7065414",
"0.6903447",
"0.6670985",
"0.6667599",
"0.65232325",
"0.6453948",
"0.64446473",
"0.6408016",
"0.6399902",
"0.6339369",
"0.6318225",
"0.62823737",
"0.6266092",
"0.62025696",
"0.6195449",
"0.6190497",
"0.6183084",... | 0.85748845 | 0 |
Sets the ion_node_id of this DataView. | def nH4V(YKHO, nH4V):
YKHO._ion_node_id = nH4V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnes(YKHO, Lnes: int):\n YKHO._node_id = Lnes",
"def jq5z(YKHO, Lnes):\n YKHO._node_id = Lnes",
"def Lnes(YKHO, Lnes):\n YKHO._node_id = Lnes",
"def cWZK(YKHO, vaxa):\n if YKHO.cursor:\n YKHO.cursor.nodeId = vaxa",
"def Lnes(YKHO, Lnes):\n if Lnes is None:\n raise ValueErro... | [
"0.8007105",
"0.79903716",
"0.7870654",
"0.7247624",
"0.677212",
"0.6765711",
"0.6763304",
"0.6632971",
"0.6618369",
"0.65899694",
"0.6578358",
"0.6489694",
"0.6362614",
"0.63026375",
"0.62918276",
"0.6270562",
"0.6237373",
"0.62297523",
"0.62008226",
"0.60088336",
"0.5996676... | 0.85334593 | 0 |
Gets the is_ml_healthy of this DataView. | def qL_G(YKHO):
return YKHO._is_ml_healthy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qL_G(YKHO, qL_G):\n YKHO._is_ml_healthy = qL_G",
"def qL_G(YKHO, qL_G):\n YKHO._is_ml_healthy = qL_G",
"def gasA(YKHO):\n return YKHO.__healthy",
"def XSIt(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'desired_healthy')",
"def vzMz(YKHO) -> bool:\n return False",
"def kk9a(YKHO):\... | [
"0.7828043",
"0.7828043",
"0.6977052",
"0.6609083",
"0.6579832",
"0.6572235",
"0.6517879",
"0.6374331",
"0.6308414",
"0.5945541",
"0.5945541",
"0.5945541",
"0.5945541",
"0.5945541",
"0.5920435",
"0.5850914",
"0.5820433",
"0.5747238",
"0.56230235",
"0.5596854",
"0.5581868",
... | 0.8593428 | 0 |
Gets the pipeline_id of this DataView. | def nsdK(YKHO):
return YKHO._pipeline_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nsdK(YKHO) -> Nv1Q:\n return YKHO._pipeline_id",
"def nsdK(YKHO) -> Nv1Q:\n return YKHO._pipeline_id",
"def nsdK(YKHO):\n pass",
"def nsdK(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'pipeline_id')",
"def id(YKHO) -> str:\n return YKHO._pipeline_definition.get('id')",
"def ... | [
"0.86169803",
"0.86169803",
"0.80269295",
"0.77186674",
"0.7365885",
"0.6960441",
"0.6673542",
"0.6541607",
"0.64623046",
"0.63065374",
"0.6282377",
"0.6282377",
"0.62358356",
"0.62286454",
"0.620379",
"0.620332",
"0.6187737",
"0.6187737",
"0.6185531",
"0.61724883",
"0.616843... | 0.8736661 | 0 |
Sets the start of this DataView. | def yKcO(YKHO, yKcO):
YKHO._start = yKcO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AVeu(YKHO, JtoP):\n YKHO.__start_line = JtoP",
"def yKcO(YKHO, yKcO: pos.Pos) -> None:\n YKHO.__start = yKcO",
"def v9zl(YKHO, *qIxc):\n return _VfD.LineSegment_setStart(YKHO, *qIxc)",
"def yKcO(YKHO, yKcO):\n if yKcO is None:\n raise ValueError('Invalid value for `start`, must not be ... | [
"0.7552558",
"0.73209524",
"0.71720827",
"0.6931185",
"0.65700287",
"0.6477026",
"0.6461911",
"0.64054716",
"0.64022917",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.621424",
"0.6203887",
"0.6183193",
"0.6177296",
"0.61... | 0.69485396 | 5 |
Get the absolute path to a resource. | def loWt(Ux0P, pmON=GkAb.TEST):
return Hy7s.path.normpath(Hy7s.path.join(pmON.value, Ux0P)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JFat(YKHO, Eorv):\n return str(YKHO.path.joinpath(Eorv))",
"def JFat(YKHO, Eorv):\n return str(YKHO.path.joinpath(Eorv))",
"def v5Y3(JFat):\n return RkCj.resource_filename(ehEJ.__name__, Hy7s.path.join('resources', JFat))",
"def HeD1(Ux0P: str, pmON: str | None=None) -> str:\n tk5Y = GkAb(xAK... | [
"0.8101276",
"0.8101276",
"0.7937851",
"0.7487554",
"0.7374785",
"0.7339987",
"0.73086655",
"0.7290156",
"0.7243981",
"0.7197428",
"0.71036464",
"0.7097384",
"0.7061433",
"0.7008481",
"0.6920594",
"0.68736976",
"0.68546516",
"0.6758555",
"0.67255324",
"0.6716057",
"0.671587",... | 0.7623171 | 3 |
Add vertical lines at given timestamp to this graph. | def noqX(YKHO, E3oo: datetime=None) -> None:
YKHO._logger.debug('running')
for MPlV in YKHO.figure.get_axes():
if E3oo:
YKHO._vlines.append(E3oo)
MPlV.axvline(E3oo)
YKHO.refresh_self()
else:
for zFiD in YKHO._v_lines:
MPlV.axvline(z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQ13(YKHO, aNZO, ITS7, qfpW='k', UXqs=None):\n if isinstance(ITS7, list):\n a1PO = ITS7.pop()\n aNZO = YKHO.plotvertlines(aNZO, a1PO, color=qfpW)\n aNZO.axvline(ITS7, color=qfpW, linestyle='dashed', linewidth=10, label=UXqs)\n return aNZO",
"def NsTI(I3uV):\n for zFiD in I3uV:\n ... | [
"0.6450222",
"0.59987015",
"0.59340715",
"0.592195",
"0.58885115",
"0.5886967",
"0.5843267",
"0.5843185",
"0.5809671",
"0.5748127",
"0.5663894",
"0.5537205",
"0.54678774",
"0.5400069",
"0.53967285",
"0.53449357",
"0.5280914",
"0.5239761",
"0.52253634",
"0.52033776",
"0.517874... | 0.8716596 | 0 |
Transform string keys back to numbers, if any | def rvtf(YEnM):
a1PO = type(YEnM)
if a1PO == dict:
try:
return {int(G1Hx): rvtf(Ty9i) for G1Hx, Ty9i in YEnM.items()}
except ValueError:
return {G1Hx: rvtf(Ty9i) for G1Hx, Ty9i in YEnM.items()}
if a1PO == list:
return [rvtf(WKvO) for WKvO in YEnM]
return Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tMgI(WKvO):\n lQ3t = ZbWC.compile('\\\\[(\\\\d+\\\\_?(\\\\d+)?)[a-z]?\\\\]')\n tq_1 = lQ3t.search(WKvO).groups(0)[0]\n if '_' in tq_1:\n LFlW, _tIi = tq_1.split('_')\n return (int(LFlW), int(_tIi))\n else:\n return (int(tq_1), 0)",
"def U5Z3(vIwR, fGC9):\n MTCs = ZbWC.comp... | [
"0.7333477",
"0.68629026",
"0.6823235",
"0.67440444",
"0.6623677",
"0.6488933",
"0.64673656",
"0.64450496",
"0.6444145",
"0.63916874",
"0.6364056",
"0.6348871",
"0.6348871",
"0.6348871",
"0.6348871",
"0.6337103",
"0.6332712",
"0.63290256",
"0.63206065",
"0.62590486",
"0.62590... | 0.0 | -1 |
Gets the total number of pieces left in the game. Returns int Number of pieces left on the game including both sides. | def q4T5(YKHO):
return YKHO.num_white_pieces + YKHO.num_black_pieces | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHGO(q_DO):\n return int(KEOT(q_DO)[1]['left_players'])",
"def YgkQ(YKHO):\n return YKHO.num_pieces",
"def jyjw(iVRZ):\n rdlD = nLDA(iVRZ)\n return wtOp(iVRZ, rdlD, IKUg, 'left')",
"def FAi8(iVRZ):\n rdlD = nLDA(iVRZ)\n return wtOp(iVRZ, rdlD, eZQN, 'left')",
"def cPtd(iBIi, mrj1):\n ... | [
"0.7208803",
"0.71186554",
"0.6963779",
"0.6872969",
"0.6596645",
"0.65618724",
"0.6543449",
"0.6540226",
"0.6506596",
"0.643708",
"0.6382835",
"0.6318214",
"0.63041174",
"0.6302455",
"0.6232004",
"0.61698586",
"0.6035231",
"0.6033205",
"0.6021036",
"0.5980832",
"0.59724534",... | 0.8290224 | 0 |
Gets the total number of white pieces left in the game. Returns int Number of white pieces left on the game. | def lcHo(YKHO):
return YKHO.num_white_pieces | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q4T5(YKHO):\n return YKHO.num_white_pieces + YKHO.num_black_pieces",
"def Jwn2(YKHO):\n return YKHO.num_black_pieces",
"def YgkQ(YKHO):\n return YKHO.num_pieces",
"def cPtd(iBIi, mrj1):\n Zoh6 = 0\n for rdlD in iBIi:\n for fvDH in rdlD:\n if fvDH == mrj1:\n ... | [
"0.85458285",
"0.75002486",
"0.67709124",
"0.665229",
"0.662178",
"0.6482162",
"0.6479186",
"0.647392",
"0.6368068",
"0.6350992",
"0.6269282",
"0.62382966",
"0.6224586",
"0.6145063",
"0.59801507",
"0.5937517",
"0.5916103",
"0.58829266",
"0.58673376",
"0.58483696",
"0.58481175... | 0.7956143 | 1 |
Gets the total number of black pieces left in the game. Returns int Number of black pieces left on the game. | def Jwn2(YKHO):
return YKHO.num_black_pieces | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q4T5(YKHO):\n return YKHO.num_white_pieces + YKHO.num_black_pieces",
"def lcHo(YKHO):\n return YKHO.num_white_pieces",
"def YgkQ(YKHO):\n return YKHO.num_pieces",
"def kUhN(YKHO, oyg0):\n HSpE = 0\n if oyg0 is mVZ4.black:\n HSpE += YKHO.num_black_pieces * 10\n HSpE -= YKHO.nu... | [
"0.8350262",
"0.7266518",
"0.6833469",
"0.66669196",
"0.65097266",
"0.6499511",
"0.6450219",
"0.6340809",
"0.6281526",
"0.6275128",
"0.6224086",
"0.62041384",
"0.62018627",
"0.61103886",
"0.60240304",
"0.5991686",
"0.59614974",
"0.593803",
"0.5932012",
"0.588325",
"0.5786409"... | 0.7997119 | 1 |
Checks for a threemove repetition. Returns boolean True if the players have performed the same board state three times in a row. False if that is not the case. | def zyue(YKHO):
ft9j = False
if len(YKHO.moves) >= 12:
if YKHO.moves[-1][0] == YKHO.moves[-5][0] == YKHO.moves[-9][0] and YKHO.moves[-1][1] == YKHO.moves[-5][1] == YKHO.moves[-9][1] and (YKHO.moves[-2][0] == YKHO.moves[-6][0] == YKHO.moves[-10][0]) and (YKHO.moves[-2][1] == YKHO.moves[-6][1] == YKHO.mov... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWd8(iBIi):\n for rdlD in range(3):\n if iBIi[rdlD][0] != KAvf and iBIi[rdlD][0] == iBIi[rdlD][1] == iBIi[rdlD][2]:\n return True\n return False",
"def EbF2(YKHO, mLGw: int=3) -> bool:\n if sum(YKHO.history_board == YKHO.board_fen()) == mLGw:\n return True\n return False"... | [
"0.7173008",
"0.7064638",
"0.69212025",
"0.68244314",
"0.6793843",
"0.6786237",
"0.673265",
"0.6723749",
"0.67016715",
"0.6698637",
"0.66793907",
"0.66163313",
"0.66133076",
"0.6575391",
"0.65447694",
"0.65376806",
"0.6535677",
"0.65238446",
"0.65200335",
"0.65036523",
"0.650... | 0.7442051 | 0 |
Checks if X number of moves have passed without any capture. Returns boolean True if for the past X moves a piece have not been captured. False if otherwise. | def gR56(YKHO):
gR56 = False
if len(YKHO.moves) >= si3H.MAX_MOVES_WITHOUT_CAPTURE:
gR56 = True
for BZN_ in range(si3H.MAX_MOVES_WITHOUT_CAPTURE):
if len(YKHO.moves[-BZN_][2]) != 0:
gR56 = False
break
return gR56 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zyue(YKHO):\n ft9j = False\n if len(YKHO.moves) >= 12:\n if YKHO.moves[-1][0] == YKHO.moves[-5][0] == YKHO.moves[-9][0] and YKHO.moves[-1][1] == YKHO.moves[-5][1] == YKHO.moves[-9][1] and (YKHO.moves[-2][0] == YKHO.moves[-6][0] == YKHO.moves[-10][0]) and (YKHO.moves[-2][1] == YKHO.moves[-6][1] == ... | [
"0.70696807",
"0.6995193",
"0.663368",
"0.6564272",
"0.6560904",
"0.65410894",
"0.65116787",
"0.6479438",
"0.64201534",
"0.63873404",
"0.63794744",
"0.634978",
"0.63360286",
"0.62971157",
"0.62826073",
"0.6279461",
"0.6272917",
"0.6253832",
"0.62504506",
"0.62255096",
"0.6224... | 0.64683664 | 8 |
defines the value of the nth wavefunction (i.e. stationary state) at a particular xposition. | def nYlf(exwG, WKvO):
jzdc = 1 / PZyS(2 ** exwG * rZpw(exwG) * PZyS(mM0K))
Fg_i = tTpl ** (-1 * WKvO ** 2 * 0.5)
oPSg = C7Ls(exwG, WKvO)
return jzdc * Fg_i * oPSg | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AK7(YKHO, WKvO):\n return float(1) / epAf.pi ** (float(1) / 4) * epAf.exp(WKvO ** 2 / float(-2))",
"def YjSW(YKHO, ft8x):\n wEf2 = ft8x / YKHO.space_subdivisions + YKHO.unit\n _hZ2 = 1e-06\n if not YKHO.unit <= wEf2 <= 1.0 - YKHO.unit + _hZ2:\n raise AttributeError('Value out of bounds')\... | [
"0.6279385",
"0.6003984",
"0.59114647",
"0.5880627",
"0.57661617",
"0.5721362",
"0.5699365",
"0.56352526",
"0.56097597",
"0.55931485",
"0.5588514",
"0.55865777",
"0.5519296",
"0.5492344",
"0.54729277",
"0.5468367",
"0.5466655",
"0.5466515",
"0.5438754",
"0.5438348",
"0.543457... | 0.0 | -1 |
Finds the derivative in respect to position of the wave function at position x. | def XHdE(exwG, WKvO):
jzdc = 1 / PZyS(2 ** exwG * rZpw(exwG) * PZyS(mM0K))
Fg_i = tTpl ** (-1 * WKvO ** 2 * 0.5)
ndq0 = -1 * WKvO * C7Ls(exwG, WKvO) + 2 * exwG * C7Ls(exwG - 1, WKvO)
return jzdc * Fg_i * ndq0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VVyp(YKHO, WKvO, Jw7X=None):\n if Jw7X is None:\n WKvO = oyIN.array(WKvO, copy=False)\n if len(WKvO.shape) > 0:\n Jw7X = oyIN.convolve(WKvO, [1, -1], mode='valid')\n Jw7X = oyIN.insert(Jw7X, 0, oyIN.mean(Jw7X)) / 2\n else:\n Jw7X = 1\n return (YKHO(WK... | [
"0.7530965",
"0.74311084",
"0.7427981",
"0.723189",
"0.7209879",
"0.7171253",
"0.70788145",
"0.70788145",
"0.7076965",
"0.69997644",
"0.6977682",
"0.6949384",
"0.6811303",
"0.6766832",
"0.67201763",
"0.67201763",
"0.6713462",
"0.66991866",
"0.66702473",
"0.66672033",
"0.66015... | 0.0 | -1 |
tee(iterable, n=2) > tuple of n independent iterators. | def y54_(OxJJ, exwG=2):
return ZO7D(LcyE(OxJJ), n=exwG).iterators() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y54_(YKHO, exwG=1) -> AzJI['Iter', ...]:\n YKHO._iterator, *wOmD = Hs6x.tee(YKHO._iterator, exwG + 1)\n exwG = YKHO._size_hint\n return tuple((iNkJ(WhY1, exwG) for WhY1 in wOmD))",
"def Zu14(OxJJ: Iterable, UnqI: int):\n return igF0(*(uOgj(WhY1, oeNL, None) for oeNL, WhY1 in enumerate(y54_(OxJJ, ... | [
"0.87578595",
"0.7142656",
"0.7121445",
"0.69700426",
"0.693995",
"0.68587744",
"0.6835638",
"0.6823658",
"0.6794443",
"0.6775503",
"0.6749069",
"0.6749069",
"0.6733964",
"0.6713979",
"0.6706039",
"0.6701765",
"0.6692903",
"0.6692903",
"0.66877156",
"0.66366696",
"0.66343766"... | 0.88933706 | 0 |
return True if the subdict is present with the sames values in dict. can be recursive. if maindict contains some key not in subdict it's ok. but if subdict has a key not in maindict or the value are not the same, it's a failure. >>> dict_contains(dict(a=1, b=2), dict(a=1, c=2, b=2)) True >>> dict_contains(dict(a=dict(a... | def qZ_E(sbam, sRtz):
try:
for G1Hx, Ty9i in sbam.items():
xq4b = sRtz[G1Hx]
if isinstance(xq4b, dict) and isinstance(Ty9i, dict):
if not qZ_E(Ty9i, xq4b):
return False
elif isinstance(xq4b, (set, frozenset)):
return set... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qZ_E(fK8P, sjXb):\n assert isinstance(fK8P, dict), 'dict_contains: dct should be of type dict '\n assert type(sjXb) in [int, str, list], 'dict_contains: keys should be of type list or string '\n if not type(sjXb) == list:\n sjXb = [sjXb]\n return sjXf(fK8P.keys(), sjXb)",
"def Tu_r(vcn7, f... | [
"0.66512334",
"0.66166574",
"0.6531787",
"0.6468742",
"0.62784237",
"0.6248886",
"0.61431175",
"0.6082384",
"0.60412145",
"0.6032539",
"0.60256547",
"0.6017977",
"0.6009765",
"0.5963048",
"0.59471875",
"0.5932046",
"0.5930083",
"0.5910565",
"0.5904908",
"0.5860756",
"0.585794... | 0.82831967 | 0 |
helper that load the json in path | def f3LN(YKHO, pmON):
try:
with GkAb(pmON).open('r') as eHNT:
return qQXR.load(eHNT)
except ValueError as ve:
jKi7.raise_from(ValueError('error while loading the fixture %s' % pmON), pSUx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZYJm(YKHO, pmON='') -> dict:\n try:\n return X8KK(pmON)\n except Exception as error:\n print(f'Error: self.fromJSON({pmON}) -> {P1dF}')",
"def tyeH(YKHO, pmON):\n with open(pmON, 'rt') as Ki2L:\n nPrm = qQXR.load(Ki2L)\n return nPrm",
"def lc9H(pmON):\n with open(ENtY(pm... | [
"0.7618847",
"0.7611738",
"0.7593999",
"0.7549557",
"0.7514844",
"0.75062424",
"0.7489144",
"0.7438951",
"0.7406316",
"0.73932517",
"0.72328717",
"0.7214155",
"0.7200662",
"0.7194693",
"0.7174308",
"0.7159632",
"0.71362984",
"0.7103068",
"0.70673597",
"0.70606065",
"0.7049296... | 0.7583676 | 3 |
Search orginial_text for ngrams of proper nouns and return a list of relevant ngrams, read the comments above the function/method declaration as wo what each input does. | def FDc9(KnbE, ZUDr=4, GkVq=0):
GkVq = GkVq - 1
if GkVq < 0:
GkVq = 0
s2mk = Dhdw.wordpunct_tokenize(KnbE)
LBQ_ = Dhdw.word_tokenize(KnbE)
LBQ_ = Dhdw.pos_tag(s2mk)
TOk6 = len(s2mk)
ewCu = 0
vFcA = 0
if ZUDr == 0:
nAMb = TOk6
else:
nAMb = ZUDr
ubue = [... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MT5I(l5Ny, _Yba):\n exwG = len(l5Ny)\n gOBC = []\n if exwG >= 1:\n gOBC.append(_Yba[l5Ny[0]].lemma.lower())\n gOBC.append(_Yba[l5Ny[-1]].lemma.lower())\n gOBC.append(_Yba[l5Ny[0]].pos)\n gOBC.append(_Yba[l5Ny[-1]].pos)\n if exwG >= 2:\n eOtH = _Yba[l5Ny[0]].lemma.... | [
"0.6998756",
"0.6557585",
"0.6488658",
"0.64507395",
"0.6444212",
"0.64440334",
"0.6443234",
"0.643346",
"0.642747",
"0.6426936",
"0.640855",
"0.6377119",
"0.63669044",
"0.63055366",
"0.6256915",
"0.6249533",
"0.6238751",
"0.62131053",
"0.61431855",
"0.6142371",
"0.6089042",
... | 0.68377024 | 1 |
Humanize Time in Seconds. | async def humanize_time(YKHO, BWXx):
if BWXx is None:
return 'None'
return str(qcWV.timedelta(seconds=BWXx)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FDcx(C6wh):\n if C6wh < 60:\n return '{: >5.1f} seconds'.format(C6wh)\n if C6wh < 60 * 60:\n return '{: >5.1f} minutes'.format(C6wh / 60)\n return '{: >7.1f} hours'.format(C6wh / (60 * 60))",
"def tW6w(YKHO, qO61):\n rQ7C, PlPi = divmod(qO61, 86400)\n PtEJ = fCoM(seconds=PlPi)\n ... | [
"0.7270839",
"0.7239655",
"0.72356373",
"0.70906293",
"0.69775575",
"0.6893899",
"0.6890476",
"0.67919374",
"0.67410797",
"0.6734592",
"0.67244315",
"0.6716846",
"0.6715274",
"0.6698442",
"0.6675489",
"0.6630495",
"0.66239184",
"0.6608705",
"0.660073",
"0.6591279",
"0.655426"... | 0.76336104 | 0 |
Return device status as string. | async def device_status(YKHO, BWXx):
if BWXx is None:
return
E06f = str(bin(BWXx))
OK80 = E06f[::-1]
OK80 = OK80[:len(s8qq)]
en4D = []
for WKvO in range(len(s8qq)):
if OK80[len(OK80) - 1 - WKvO] == '1':
en4D.append(s8qq[WKvO])
return en4D | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def get_status(YKHO) -> str:\n return await YKHO.hw_device.status()",
"def VLTN(YKHO):\n JJcy = '{oscillating:01d} {initialising:01d} {initialised:01d} {width:03d} {offset:+04d} {speed:02d} {acceleration:03d} {cycles:05d} {backlash:03d}'\n y4W6 = JJcy.format(oscill... | [
"0.8536378",
"0.7916975",
"0.74693376",
"0.74182075",
"0.73284817",
"0.7303137",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
"0.7242775",
... | 0.66679716 | 83 |
Returns the version number stored in the VERSION file. | def xhfZ(YKHO):
try:
VqRE = f'{bn_Y}/VERSION'
with open(VqRE, 'r') as nUeQ:
Nqlg = nUeQ.readlines()
for zFiD in Nqlg:
if zFiD != '\n':
return zFiD.replace('\n', '')
except FileNotFoundError as e:
vzeF.error('Could not find VERSI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DpZH(YKHO):\n jzdc = ZbWC.search('(?<=_V)\\\\d{1,2}', YKHO.fname)\n if jzdc is None:\n return None\n else:\n return int(jzdc.group())",
"def kaPv():\n Bicb = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n shAH = Hy7s.path.join(Bicb, R2BB)\n with open(shAH, 'r') as YgMx:\n ... | [
"0.84446853",
"0.8181313",
"0.78775024",
"0.78101045",
"0.77669406",
"0.77473015",
"0.7720251",
"0.7677858",
"0.7647385",
"0.76299775",
"0.7584255",
"0.7552774",
"0.7523589",
"0.74719244",
"0.74486035",
"0.74423325",
"0.74363714",
"0.7433876",
"0.7427879",
"0.73837554",
"0.73... | 0.75481117 | 12 |
Close the IO object. Attempting any further operation after the object is closed will raise a ValueError. This method has no effect if the file is already closed. | def DDI8(YKHO):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DDI8(YKHO):\n YKHO.__file_object.close()",
"def DDI8(YKHO):\n YKHO.__file.close()",
"def HuIG(YKHO):\n YKHO.fh.close()",
"def DDI8(YKHO):\n YKHO._file.close()",
"def DDI8(YKHO):\n YKHO._file.close()",
"def EM8p(YKHO):\n if not YKHO._is_open:\n raise IOError('Not opened.')\n ... | [
"0.74909556",
"0.7478729",
"0.74631053",
"0.7422201",
"0.7422201",
"0.7414083",
"0.73802376",
"0.7378542",
"0.73566717",
"0.7342441",
"0.7342441",
"0.7334397",
"0.7334397",
"0.72953236",
"0.7283559",
"0.7255763",
"0.7249238",
"0.7249238",
"0.7247827",
"0.7247666",
"0.7244096"... | 0.0 | -1 |
The manifest should throw an exception on an invalid manifest path | def u3vX(YKHO):
CtsT('./ehiiehaiehnatheita') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qxiJ(YKHO):\n with open(str(GkAb(xAKo).parent.parent.parent) + '/data/manifests/400/npmlist.json', 'rb') as ytgA:\n Vb5F = BS3y(stream=ytgA, filename='npmlist.json')\n m_UX = QNAm(manifest=Vb5F, file_path='/tmp/bin', ecosystem='npm', show_transitive=True)\n RyuO = WbhN(m_UX)\n wi... | [
"0.6800787",
"0.6770722",
"0.67663354",
"0.67659944",
"0.6737608",
"0.6574377",
"0.65191704",
"0.6490452",
"0.639593",
"0.638238",
"0.63594663",
"0.6350318",
"0.63358414",
"0.63203055",
"0.6297556",
"0.6233188",
"0.6191696",
"0.6154841",
"0.6154232",
"0.6122446",
"0.61068803"... | 0.7926902 | 0 |
Test that models/base.py conforms to PEP8 | def nkEY(YKHO):
_pQq = NW2f.StyleGuide(quiet=True)
Aofo = _pQq.check_files(['models/base.py'])
YKHO.assertEqual(Aofo.total_errors, 0, 'Fix PEP8 Style') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sChv(YKHO):\n G7HG = NW2f.StyleGuide(quit=True)\n GfdN = G7HG.check_files(['models/base_model.py'])\n YKHO.assertEqual(GfdN.total_errors, 0, 'Found code style errors (and warnings).')",
"def vWqP(YKHO):\n _pQq = NW2f.StyleGuide(quiet=True)\n Aofo = _pQq.check_files(['tests/test_models/test_bas... | [
"0.7453463",
"0.72078586",
"0.72025883",
"0.71329147",
"0.7119043",
"0.7045536",
"0.70115036",
"0.6908024",
"0.68620104",
"0.67976946",
"0.659859",
"0.659363",
"0.65897286",
"0.6516813",
"0.64944935",
"0.64626634",
"0.6439026",
"0.6439002",
"0.64148736",
"0.6414271",
"0.64069... | 0.6787752 | 10 |
batch an iterable up into tuples with a maximum size | def aNDg(OxJJ: Iterable[T], zNig: int) -> bDy6[AzJI[Kt_s]]:
a2Fh = iter(OxJJ)
return iter(lambda: tuple(uOgj(a2Fh, zNig)), ()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wc9F(zNig, OxJJ):\n return list(bMRA(zNig, OxJJ))",
"def Wc9F(OxJJ, zNig):\n a2Fh = iter(OxJJ)\n while True:\n qmGr = uOgj(a2Fh, zNig)\n yield list(eNCK([qmGr.next()], qmGr))",
"def nJ0e(OxJJ, zNig):\n a2Fh = iter(OxJJ)\n while True:\n qmGr = uOgj(a2Fh, zNig)\n yi... | [
"0.7924629",
"0.76717794",
"0.75228584",
"0.75008875",
"0.74855304",
"0.7432641",
"0.7402862",
"0.7172108",
"0.7155361",
"0.7130077",
"0.7028351",
"0.70072824",
"0.70072824",
"0.70072824",
"0.69237196",
"0.69193083",
"0.6870717",
"0.6852512",
"0.681833",
"0.6813188",
"0.67766... | 0.79150397 | 1 |
Updates the network weights. | def qH2k(YKHO, jzdc, Ep8u):
for gEmA in YKHO.layers:
gEmA.weights_update(jzdc, YKHO.alpha, YKHO.l2_lambda, Ep8u)
jzdc = gEmA.a | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value",
"def MyUA(YKHO):\n pass",
"def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()",
"def MyUA(YKHO):\n YKHO.weights -= YKHO.loss_grads\n YKHO.loss_grads = oyIN.zeros(... | [
"0.8726613",
"0.8613679",
"0.8576386",
"0.8171482",
"0.7992122",
"0.7872943",
"0.7724959",
"0.76731193",
"0.75429904",
"0.7486164",
"0.7407017",
"0.7387649",
"0.73589486",
"0.7331907",
"0.73277515",
"0.73205686",
"0.7315462",
"0.72713023",
"0.72708505",
"0.7260415",
"0.724947... | 0.6829889 | 53 |
Create a hidden layer. | def FIMM(YKHO, NjoL, oug5, ECMu, nNFa, lo24=0):
YKHO.theta = NjoL
YKHO.b = oug5
YKHO.activation = ECMu
YKHO.activation_derivative = nNFa
YKHO.dropout_rate = lo24 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gkix(YKHO, Ep8u):\n Zode = ht2j.zeros(YKHO.nb_layers, Ep8u, YKHO.hidden_size).to(begE)\n return Zode",
"def gkix(YKHO, Ep8u):\n Zode = (ht2j.zeros(YKHO.nb_layers, Ep8u, YKHO.hidden_size).to(begE), ht2j.zeros(YKHO.nb_layers, Ep8u, YKHO.hidden_size).to(begE))\n return Zode",
"def FhyR(YKHO, Ep8u)... | [
"0.72378963",
"0.70175266",
"0.6591287",
"0.6334704",
"0.6298461",
"0.6239861",
"0.62101823",
"0.6202704",
"0.61825305",
"0.61562395",
"0.60587496",
"0.6018373",
"0.5989349",
"0.5974181",
"0.5969316",
"0.595533",
"0.5918924",
"0.5918924",
"0.591377",
"0.58694804",
"0.58598316... | 0.0 | -1 |
>>> import view >>> from bs4 import BeautifulSoup as BS >>> ht = BS(view.wrap("BODY"), "lxml") >>> print(ht.find_all("script")[0]) | def GDMi(TBsA):
return '<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8"> \n <title>OpenWhisk Crud Demo</title>\n <meta name="viewport" content="width=device-width, initial-scale=1">\n <link rel="stylesheet" href="%s">\n <script src="%s"></script>\n <script src="%s"></script>\n ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZwbX(Z9JV):\n for B6sC in Z9JV.find_all('script'):\n Z9JV.script.decompose()",
"def iUKC(bD7m, rNEI, vOsx=None):\n nUCy = G4JS.get(bD7m)\n Z9JV = rKuS(nUCy.content, 'html.parser')\n B6sC = Z9JV.findAll(rNEI, class_=vOsx)\n return str(B6sC)",
"def LQp6(Z9JV: bs4.BeautifulSoup):\n fo... | [
"0.6966485",
"0.66813946",
"0.6234755",
"0.5889644",
"0.5841699",
"0.5738259",
"0.5605203",
"0.5569684",
"0.55578315",
"0.55303204",
"0.5519775",
"0.5518968",
"0.5491542",
"0.54907656",
"0.54793984",
"0.5453536",
"0.543355",
"0.5362612",
"0.5358709",
"0.5358672",
"0.53479856"... | 0.0 | -1 |
Computes area of boxes. | def f0tD(oUSw):
KDmU, wBZN, rwK9, re6M = oyIN.split(oUSw, 4, axis=-1)
return oyIN.squeeze((rwK9 - KDmU) * (re6M - wBZN), [1]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])",
"def ab__(oUSw):\n return (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])",
"def yd8O(oUSw):\n f0tD = (oUSw[:, 2] - oUSw[:, 0]) * (oUSw[:, 3] - oUSw[:, 1])\n return f0tD",
"def f0tD(oUSw):\n return (oUSw[:, ... | [
"0.84715885",
"0.84715885",
"0.8369817",
"0.8334332",
"0.830171",
"0.81802857",
"0.80124605",
"0.79808813",
"0.7970544",
"0.7858747",
"0.78092647",
"0.7688126",
"0.7576553",
"0.7440499",
"0.73104835",
"0.72514987",
"0.72302496",
"0.7130858",
"0.71270365",
"0.7125084",
"0.7123... | 0.84084266 | 2 |