query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Returns all terminals associated with the merchant account. | def jjsj(YKHO, QePW):
return YKHO._dashboard_request(method='GET', path='/api/terminals', body=QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jjsj(YKHO):\n return YKHO._terminals",
"def jjsj(YKHO):\n Ziit = []\n for LfmQ in YKHO.daughters:\n if isinstance(LfmQ, W2mP):\n Ziit.append(LfmQ)\n else:\n Ziit.extend(LfmQ.terminals())\n return Ziit",
"def jjsj(YKHO):\n return YKHO._terminals",
"def XD... | [
"0.6511029",
"0.6444092",
"0.631416",
"0.6114414",
"0.60948014",
"0.6034113",
"0.56413096",
"0.5621611",
"0.5603664",
"0.5600304",
"0.5530398",
"0.55143404",
"0.5297726",
"0.5275239",
"0.5265942",
"0.52372515",
"0.5220838",
"0.5209394",
"0.52088255",
"0.52063096",
"0.5203292"... | 0.6346072 | 2 |
Updates or creates a survey question. | def nE3z(YKHO, QePW):
return YKHO._dashboard_request(method='POST', path='/api/survey-questions', body=QePW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rNRU(JVBp):\n try:\n HryA = {'id': JVBp, 'question': QePW.form['question'], 'answer': QePW.form['answer']}\n bD7m = '{}/{}'.format(pRjx, HryA['id'])\n G4JS.put(bD7m, json=HryA)\n except:\n G9jH.error(wVCK.format_exc())\n return vKnz('questions')",
"def NpNj(YKHO, id):\n ... | [
"0.69297326",
"0.6924601",
"0.68710417",
"0.6843123",
"0.67183053",
"0.6593757",
"0.6568107",
"0.65367657",
"0.64782214",
"0.6451168",
"0.6427863",
"0.64117897",
"0.6396649",
"0.63838065",
"0.6383244",
"0.628117",
"0.6236955",
"0.61972404",
"0.6191226",
"0.6183356",
"0.616895... | 0.80817306 | 0 |
Returns the version of the client. | def DpZH():
return DpZH.VERSION | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WKwY(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_version')",
"def WKwY(YKHO) -> str:\n return qe4Y.get(YKHO, 'client_version')",
"def tkZE(YKHO):\n return YKHO.client_version",
"def WKwY(YKHO):\n return BtDU",
"def WKwY(YKHO):\n if YKHO._client_version_present:\n return YKHO._cl... | [
"0.90165025",
"0.90165025",
"0.8947759",
"0.88682294",
"0.85514766",
"0.8373299",
"0.8288624",
"0.82529575",
"0.82494545",
"0.8075115",
"0.80478203",
"0.7990746",
"0.79833466",
"0.79762113",
"0.79501075",
"0.79308355",
"0.7891003",
"0.78748065",
"0.786621",
"0.78476936",
"0.7... | 0.78281474 | 20 |
Turns a list of single item dicts in a list of the dict's values. | def rlZh(bVFx, H5ew=None, PWgb=False):
if not bVFx:
return None
S06t = []
for YEnM in bVFx:
BWXx = l2FN(YEnM, H5ew, PWgb)
S06t.extend(BWXx)
return S06t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def saxn(YKHO, qFa0, zAat='key'):\n if not FDfP(qFa0):\n raise howM('list2list_of_dicts requires a list, got {} instead.'.format(type(qFa0)))\n return list(({zAat: ZfUD} for ZfUD in qFa0))",
"def V_l3(xUwc):\n if len(xUwc) == 0:\n return xUwc\n cntZ = xUwc[0]\n nPrm = []\n nPrm.ap... | [
"0.6819676",
"0.6646023",
"0.6611923",
"0.65843064",
"0.6575512",
"0.65411514",
"0.64680475",
"0.635893",
"0.63474077",
"0.6343347",
"0.6314483",
"0.63134646",
"0.6255074",
"0.61883706",
"0.61115015",
"0.61079407",
"0.6099398",
"0.60878164",
"0.6062968",
"0.6062622",
"0.60317... | 0.0 | -1 |
Create a base class with a given fields and parents. | def Lkjh(mWFP, V_D6, ACnF=(), cXFM=False):
def gJdh(Jyyj):
return lambda YKHO: getattr(YKHO, '_{}'.format(Jyyj))
def aWgE(Jyyj):
return lambda YKHO, BWXx: setattr(YKHO, '_{}'.format(Jyyj), BWXx)
def Alql(Jyyj):
return lambda YKHO: delattr(YKHO, '_{}'.format(Jyyj))
def DbxN(YK... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(Emd4, mWFP, gitN, o8Kj):\n KjNF = super(OAoy, Emd4).__new__(Emd4, mWFP, gitN, o8Kj)\n OsNA = KjNF.get_parent_fields(gitN)\n ERRh = KjNF.get_declared_fields(o8Kj)\n KjNF.set_fields(OsNA, ERRh)\n return KjNF",
"def fwuD(dSmw, mWFP, gitN, o8Kj):\n ERRh = []\n XkHx = []\n for H5ew, w... | [
"0.67673326",
"0.6680385",
"0.6446736",
"0.640902",
"0.623085",
"0.6167986",
"0.61280143",
"0.607486",
"0.6010515",
"0.59924525",
"0.59624827",
"0.59599173",
"0.5953688",
"0.59470516",
"0.5881874",
"0.5879526",
"0.5875436",
"0.5874759",
"0.58560205",
"0.5851014",
"0.57984304"... | 0.70124435 | 0 |
Save query object to the given local path | def xkzz(YKHO, pmON):
if Hy7s.path.exists(pmON):
bo34.warning(f'Overwriting existing file "{pmON}" when saving query object')
I26V = Hy7s.remove if Hy7s.path.isfile(pmON) else RDuA.rmtree
I26V(pmON)
YKHO._save_local(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJHp(YKHO, pmON: str):\n pass",
"def xkzz(YKHO, pmON):\n pass",
"def xkzz(YKHO, Aofo, p9bx, hKn5, xDcj, VqRE=None, **B2fa):\n lfBH = p9bx + '_at_' + hKn5\n qaEx = VqRE or YKHO._get_file_path(xDcj, lfBH)\n _RR0 = open(qaEx, 'w')\n _RR0.write(qQXR.dumps(Aofo.json_response))\n _RR0.flush(... | [
"0.66129357",
"0.63860714",
"0.6357889",
"0.6266791",
"0.61399007",
"0.61376315",
"0.6119827",
"0.61123735",
"0.6047628",
"0.6047628",
"0.6041873",
"0.6039362",
"0.6019169",
"0.5996533",
"0.59499025",
"0.5929159",
"0.5927175",
"0.59252465",
"0.59009206",
"0.5899635",
"0.58524... | 0.77187437 | 0 |
Encode a number as a decimal list | def FPfF(mLGw):
if mLGw == 0:
return [0]
im04 = []
while mLGw:
im04.insert(0, mLGw % 10)
mLGw = mLGw / 10
return im04 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvpC(mLGw: int) -> list:\n BSLH = mLGw.to_bytes(8, byteorder='little')\n qj6g = list(BSLH)\n return qj6g",
"def RNoq(yv6U):\n mLGw = 0\n for YRbF, vC9B in enumerate(reversed(yv6U)):\n mLGw += vC9B * 10 ** YRbF\n return mLGw",
"def kLcZ(YKHO, HEaV: int) -> str:\n if HEaV < 0:\n ... | [
"0.7750431",
"0.68363535",
"0.6531553",
"0.64227265",
"0.63742125",
"0.62968737",
"0.6189156",
"0.60661465",
"0.6054394",
"0.6053211",
"0.6047649",
"0.60472673",
"0.6033615",
"0.59224993",
"0.5900814",
"0.58680433",
"0.58667547",
"0.58531845",
"0.58386266",
"0.5834377",
"0.58... | 0.8196638 | 0 |
Molecular mass (in g/mol) given the elemental composition. | def bt9O(UqER):
if isinstance(UqER, str):
UqER = Btf3(UqER)
cHrP = 0.0
for U6D_, zZRI in UqER.items():
cHrP += Z9rn.atomic_weight[U6D_] * zZRI
return cHrP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfFl(YKHO, PXGI):\n if len(YKHO.mass) > 0:\n return YKHO.mass[0].float(PXGI)\n return YKHO.nuclide.getMass(PXGI)",
"def Pvk4(asBq):\n asBq = asBq.replace('_', ' ')\n try:\n l9Ur = OaaN[asBq]\n except:\n raise ValueError('Error in get_molmass. Unknown molecule: ' + asBq)\n ... | [
"0.7755072",
"0.7548241",
"0.7315326",
"0.73027384",
"0.7236984",
"0.70857906",
"0.70440674",
"0.70002806",
"0.6950447",
"0.68713266",
"0.6863478",
"0.6858443",
"0.6832269",
"0.6832269",
"0.6829175",
"0.680414",
"0.67787325",
"0.6773485",
"0.6751805",
"0.6742345",
"0.67388296... | 0.0 | -1 |
Given A content item without a fromversion key in its current state. The fromversion key to set is specified in the format arguments. When Calling set_fromVersion method. Then Ensure that fromVersion key in the file data was set to the specific test version. | def qTjj(YKHO, AZgw):
AZgw.patch.object(hhI1, '__init__', return_value=None)
AZgw.patch.object(hhI1, 'is_key_in_schema_root', return_value=True)
cnE_ = hhI1()
YKHO.init_BaseUpdate(cnE_, d6bl)
cnE_.set_fromVersion()
assert cnE_.data.get(cnE_.from_version_key) == d6bl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def swO7(YKHO, AZgw, m5r4):\n AZgw.patch.object(hhI1, '__init__', return_value=None)\n AZgw.patch.object(hhI1, 'is_key_in_schema_root', return_value=True)\n AZgw.patch('demisto_sdk.commands.format.update_generic.GENERAL_DEFAULT_FROMVERSION', '6.2.0')\n cnE_ = hhI1()\n YKHO.init_BaseUpdate(cnE_)\n ... | [
"0.66652995",
"0.63324183",
"0.60871434",
"0.60322434",
"0.59631526",
"0.5919619",
"0.57506365",
"0.5701951",
"0.5676562",
"0.56407857",
"0.5636241",
"0.55934966",
"0.55836993",
"0.55327135",
"0.5507317",
"0.5476659",
"0.547337",
"0.5459085",
"0.5457757",
"0.54556775",
"0.544... | 0.5767703 | 6 |
Sends off to every client | def iJtT(YKHO, Tuqy, **B2fa):
if GPtr.VERBOSE or not Tuqy.startswith('DRAW_'):
RKD7.msg('broadcasting', Tuqy, B2fa)
B2fa['mode'] = Tuqy
tO9_ = QIYp(B2fa) + NSzx
for iG42 in YKHO.sockets.values():
iG42.transport.write(tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d2r8(YKHO, nPrm):\n for x0hE in YKHO.clients:\n x0hE.send_data(nPrm)",
"def zLGZ(YKHO, tO9_):\n for Z9rn in YKHO.client_list:\n Z9rn.send_msg(tO9_)",
"def Z9Sj(YKHO, Ol8d):\n for Z9rn in list(YKHO.factory.clients.keys()):\n Z9rn.send_to_client(Ol8d, Z9rn)",
"def d2r8(YKHO, O... | [
"0.7272862",
"0.7075608",
"0.7041401",
"0.6966028",
"0.6659867",
"0.65357006",
"0.6523735",
"0.6470932",
"0.6421717",
"0.6383394",
"0.62934893",
"0.6276962",
"0.6266573",
"0.6261562",
"0.6220917",
"0.6195471",
"0.6188449",
"0.6188449",
"0.6188449",
"0.6185195",
"0.6176145",
... | 0.0 | -1 |
broadcasts a persistant message to all clients | def MkQX(YKHO, H8ai, MkQX):
if H8ai is not None:
GoSj = '<%s># %s' % (H8ai.name, MkQX)
YKHO.broadcast('PMESSAGE', ID=H8ai.ID, pmessage=MkQX)
else:
GoSj = ' %s' % tO9_
YKHO.broadcast('ANONTEXT', text=tO9_)
YKHO.log_chat(GoSj) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wBki(tO9_):\n iJtT(tO9_)\n for x0hE in YJXy.LOBBY:\n x0hE.send(tO9_)",
"def iJtT(tO9_):\n for x0hE in D74A:\n x0hE.send(tO9_)",
"def iJtT(tO9_):\n for mWFP in Onn9:\n Onn9[mWFP].send(bytes(tO9_, 'utf8'))",
"def iJtT(tO9_):\n for iG42 in Onn9:\n print('sock', iG4... | [
"0.8080164",
"0.805898",
"0.7955395",
"0.7942351",
"0.78069717",
"0.75892663",
"0.7509033",
"0.75083655",
"0.74989665",
"0.74490684",
"0.74084723",
"0.7378807",
"0.7335371",
"0.7335371",
"0.73345256",
"0.73219466",
"0.73097706",
"0.7287984",
"0.72694975",
"0.72609764",
"0.724... | 0.0 | -1 |
Gets a list of cuda kernel indexes | def Edcl(YKHO):
G9jH.info('get cuda kernels')
NJRn = []
Nqlg = YKHO.communicate('info cuda kernels')
G9jH.debug('%s' % repr(Nqlg))
if iera(Nqlg) == False:
return NJRn
for zFiD in Nqlg:
zFiD = zFiD.split()
try:
if zFiD[0].isdigit():
NJRn.append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qDrB(YKHO):\n EpYW = gRvX()\n _0VL = [wqL3.id for wqL3 in EpYW]\n return _0VL",
"def p4o7(YKHO):\n return list(YKHO._kernels.keys())",
"def XzEX():\n KYtE = oPf3.ktotal('all')\n q5m6 = []\n [q5m6.append(oPf3.kdata(or8S, 'all', 80, 4, 80)) for or8S in range(KYtE)]\n return q5m6",
"... | [
"0.72497773",
"0.6641346",
"0.65571326",
"0.6354912",
"0.6281323",
"0.62332857",
"0.61831063",
"0.6151646",
"0.61407584",
"0.6110321",
"0.60754395",
"0.6066827",
"0.6061579",
"0.5973234",
"0.5960255",
"0.5952221",
"0.5938894",
"0.5930226",
"0.59211624",
"0.59204876",
"0.59064... | 0.678326 | 1 |
Compute the gradient (also called the slope or derivative) of the sigmoid function with respect to its input x. You can store the output of the sigmoid function into variables and then use it to calculate the gradient. | def NZml(WKvO):
KCHu = 1 / (1 + oyIN.exp(-WKvO))
oxOY = KCHu * (1 - KCHu)
return oxOY | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xQSX(WKvO):\n D5po = m1Hg(WKvO)\n return D5po * (1 - D5po)",
"def Hcjj(WKvO):\n return xZsq.sigmoid(WKvO) * (1 - xZsq.sigmoid(WKvO))",
"def _aH1(WKvO):\n return WKvO * (1.0 - WKvO)",
"def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n oxOY = KCHu * (1 - KCHu)\n return oxOY",
"def NZml(WKvO):\n ... | [
"0.7972887",
"0.7936324",
"0.78375244",
"0.7782158",
"0.7782005",
"0.7780433",
"0.77427596",
"0.77334356",
"0.772573",
"0.77252066",
"0.77156377",
"0.76979834",
"0.76798743",
"0.76755774",
"0.7574867",
"0.7526175",
"0.7492982",
"0.74747086",
"0.74238205",
"0.74142385",
"0.737... | 0.77790564 | 6 |
Retrieve a raster as a NumPy array. | def gyIm(YKHO, g4y1, GkJn=None, m_03=None, sB1G=None, IWsN=None, B1Wx=None, DbyF=None, jwDD=None, C6id=None, X7zS=None, FVNy=None, HLUd=False, jHvd=None, T4Wy='image', ZAcp=None, KMFA=None, **HZGf):
jwDD = Zv09(jwDD)
if C6id is not None:
nvWN = pzDS(auth=YKHO.auth)
ROpF = nvWN.shape(C6id, geom='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YA8r(Ux0P):\n m7pY = MDcw.Open(Ux0P)\n Yxjo = oyIN.array(m7pY.GetRasterBand(1).ReadAsArray())\n Yxjo = oyIN.flipud(Yxjo)\n return Yxjo",
"def kE7a(JfXv):\n kT1P = JfXv.dataProvider()\n E_qD = MDcw.Open(str(kT1P.dataSourceUri()), MDcw.GA_Update)\n dn1Z = E_qD.GetRasterBand(1).ReadAsArray(... | [
"0.7302916",
"0.72955245",
"0.726254",
"0.69905186",
"0.679729",
"0.6727656",
"0.66070205",
"0.65942526",
"0.6580039",
"0.65759164",
"0.65739083",
"0.6571667",
"0.6548366",
"0.6516664",
"0.65092903",
"0.650173",
"0.64283276",
"0.6419635",
"0.63956076",
"0.6358753",
"0.6355042... | 0.0 | -1 |
Retrieve a stack of rasters as a 4D NumPy array. To ensure every raster in the stack has the same shape and covers the same | def E5BI(YKHO, g4y1, GkJn=None, m_03=None, sB1G='UInt16', IWsN=None, B1Wx=None, DbyF=None, jwDD=None, C6id=None, X7zS=None, FVNy=None, HLUd=False, jHvd=None, T4Wy='image', ZAcp=None, KMFA=None, gon_=None, **HZGf):
if not isinstance(g4y1, (list, tuple)):
raise TypeError("Inputs must be a list or tuple, inste... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DXTF(Ux0P):\n with B9Vf.open(Ux0P, 'r') as zZcM:\n UHFx = zZcM.count\n P8oC = zZcM.read(1)\n for GzZE in range(2, UHFx + 1):\n P8oC = oyIN.dstack((P8oC, zZcM.read(GzZE)))\n return P8oC",
"def Tfuj():\n ObT1 = '../images/watermarked'\n _PsJ = [f'{ObT1}/stock{YRb... | [
"0.706726",
"0.64359087",
"0.6431117",
"0.6409944",
"0.6408558",
"0.635132",
"0.6252161",
"0.6199647",
"0.6112741",
"0.60930747",
"0.60615593",
"0.60613006",
"0.60367066",
"0.6004277",
"0.59978765",
"0.5915016",
"0.58627045",
"0.5851589",
"0.5845208",
"0.58311903",
"0.5787996... | 0.54639876 | 53 |
convert lists of lists into a single list. | def Ill7(qgK3):
J42V = []
for mMme in qgK3:
J42V += mMme
return J42V | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def svc5(UHhk):\n return list(Hs6x.chain.from_iterable(UHhk))",
"def MKPt(nwEZ):\n Aofo = []\n for LihS in nwEZ:\n Aofo.extend(LihS)\n return Aofo",
"def PWgb(nwEZ):\n return list(Hs6x.chain.from_iterable(nwEZ))",
"def PWgb(nwEZ):\n return [ZfUD for rpVW in nwEZ for ZfUD in rpVW]",
... | [
"0.83257735",
"0.8091014",
"0.7939884",
"0.7913997",
"0.7911406",
"0.7911406",
"0.7911406",
"0.79048204",
"0.78639203",
"0.78583294",
"0.78525424",
"0.78459823",
"0.78232604",
"0.7808699",
"0.7785062",
"0.7761718",
"0.7761718",
"0.7741403",
"0.7714215",
"0.7714215",
"0.770679... | 0.0 | -1 |
find out if a type is str or not | def X7_c(OYqn):
if OYqn == str:
return True
elif VOoL:
if OYqn == QMSQ:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J1TN(xHuz):\n return type(xHuz) is str",
"def TcK7(YKHO, SLLj):\n if SLLj.lower().startswith('unicode'):\n return True\n if SLLj.lower().startswith('string'):\n return True\n return False",
"def J1TN(BWXx):\n return isinstance(BWXx, jUrF)",
"def X7_c(vGaq):\n return type(v... | [
"0.8011629",
"0.79255277",
"0.7886969",
"0.78817534",
"0.78817534",
"0.78644174",
"0.78544873",
"0.7794228",
"0.7752377",
"0.7725214",
"0.77107155",
"0.7685851",
"0.763098",
"0.763098",
"0.76283187",
"0.76202714",
"0.7600328",
"0.7598742",
"0.75954646",
"0.75954646",
"0.75911... | 0.8048978 | 0 |
Deep merges two dictionaries. | def roQF(O4or, *fgcx):
Aofo = jth9.deepcopy(fgcx[0])
for fGC9 in fgcx[1:]:
for mWFP in fGC9.keys():
dTpF = InDF(O4or, mWFP, Aofo.get(mWFP), fGC9.get(mWFP))
if dTpF is not None:
Aofo[mWFP] = dTpF
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSKQ(jzdc, Fg_i):\n if not isinstance(Fg_i, dict):\n return Fg_i\n Aofo = _qLf(jzdc)\n for G1Hx, Ty9i in Fg_i.items():\n if G1Hx in Aofo and isinstance(Aofo[G1Hx], dict):\n Aofo[G1Hx] = RSKQ(Aofo[G1Hx], Ty9i)\n else:\n Aofo[G1Hx] = _qLf(Ty9i)\n return Aofo... | [
"0.8484856",
"0.8393949",
"0.8375988",
"0.8371994",
"0.83613646",
"0.83448565",
"0.83019274",
"0.8297837",
"0.8263527",
"0.8262071",
"0.8248386",
"0.817986",
"0.8157822",
"0.81574327",
"0.8128129",
"0.81171566",
"0.8100779",
"0.8099117",
"0.8063944",
"0.8044578",
"0.8021727",... | 0.0 | -1 |
Handler called by AWS Lambda runtime | def cfQO(tvqc, QpfX):
lRRi = {'01_invocation_tstmp': {'label': 'None', 'tstmp': int(round(ITS7.time() * 1000))}}
xVlq = imuh(['counter_expired_tasks', 'counter_failed_to_acquire', 'counter_failed_tasks', 'counter_released_tasks', 'counter_inconsistent_state', 'counter_tasks_queue_size'])
for AWnC in KCfM():... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n return",
"def cfQO(tvqc: dict, QpfX) -> dict:\n pass",
"def cfQO(tvqc, QpfX):\n while len(G9jH.root.handlers) > 0:\n G9jH.root.removeHandler(G9jH.root.handlers[-1])\n G9jH.basicConfig(format='%(levelname)-8s %(name)-20s %(funcName)-12s: %(message)s', level=G9jH.DEBUG)... | [
"0.8212009",
"0.7902279",
"0.779922",
"0.7739061",
"0.7739061",
"0.7739061",
"0.7568401",
"0.7566349",
"0.7533693",
"0.75137514",
"0.7484047",
"0.7483442",
"0.7479783",
"0.74655926",
"0.7465253",
"0.74578464",
"0.7442351",
"0.74392843",
"0.7433652",
"0.74318004",
"0.73943985"... | 0.0 | -1 |
Video streaming home page. | def d6pt():
Vwer = 0
QnmL = 0
FDPT = 0
Zc6P = 0
PZ5z = ITS7.time()
for Cc00 in _R1O:
if type(Cc00) is str:
if Cc00.find('TPV') != -1:
UL3h.unpack(Cc00)
Vwer = UL3h.TPV['time']
QnmL = UL3h.TPV['lat']
FDPT = UL3h.T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ecsS():\n return TvZl('/video-page.html')",
"def wOb_():\n return TvZl('video-feed.html')",
"def hkZA():\n return TvZl('video-page.html', title='video page', year=qcWV.now().year)",
"def kZiy(geh0):\n SFIC = YM9Z.objects.all()\n QpfX = {'videos': SFIC}\n return _1tc(geh0, 'InktoberSite/... | [
"0.76268315",
"0.76119703",
"0.7530637",
"0.73411614",
"0.7005877",
"0.66250384",
"0.6583905",
"0.6468895",
"0.6439333",
"0.64381635",
"0.6421515",
"0.6415742",
"0.6393503",
"0.6384064",
"0.637601",
"0.63417023",
"0.6321272",
"0.6291959",
"0.62908256",
"0.62908256",
"0.629082... | 0.0 | -1 |
Video streaming generator function. | def eK5b(yDvq):
while True:
f4IJ = yDvq.get_frame()
yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/... | [
"0.72318304",
"0.72217125",
"0.7202193",
"0.7199314",
"0.71750987",
"0.70998365",
"0.70878965",
"0.7068008",
"0.7030866",
"0.69874614",
"0.69693893",
"0.69512975",
"0.69257456",
"0.6923195",
"0.6923195",
"0.690304",
"0.6903035",
"0.6878873",
"0.68674815",
"0.6864852",
"0.6840... | 0.0 | -1 |
Checks if the pods with the specified name and namespace exists and returns a boolean value accordingly. | def hZ9f(e5wU, _ygU):
scyl = hQHm.list_pod_for_all_namespaces(watch=False)
for YRbF in scyl.items:
if YRbF.metadata.name == e5wU and YRbF.metadata.namespace == _ygU:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vtfo(YKHO, H5ew: str) -> bool:\n geh0 = YKHO.client.get(f'/pods/{H5ew}/exists')\n return geh0.ok",
"def lzdo(YKHO, mXDZ):\n return len(iOTB(mXDZ, YKHO.namespace)) > 0",
"def by8O(mWFP, Dl0U):\n return any((mWFP.startswith(_63S) for _63S in Dl0U))",
"def Ueqb(hQHm: CoreV1Api, _63S) -> bool:\n ... | [
"0.7042678",
"0.695379",
"0.68432283",
"0.6679685",
"0.66334444",
"0.636723",
"0.6333987",
"0.6253411",
"0.6091264",
"0.5961459",
"0.59569466",
"0.59331566",
"0.59247136",
"0.59131324",
"0.5877901",
"0.58641326",
"0.5858713",
"0.58230454",
"0.5792082",
"0.5790907",
"0.5761878... | 0.82894534 | 0 |
Return size of dataset. | def szAg(YKHO):
if YKHO.train:
return len(YKHO.train_data)
else:
return len(YKHO.test_data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duBC(__n6):\n return dD7q(__n6).data_size",
"def hU8i(YKHO):\n return YKHO._dataset_size",
"def jiw9(YKHO):\n return YKHO.dataset.get_size()",
"def zNig(YKHO):\n return YKHO._ds.size",
"def DDYt(YKHO):\n return YKHO._region_obj.get_dataset_size()",
"def hU8i(YKHO):\n return YKHO.dat... | [
"0.8926355",
"0.8831611",
"0.87597924",
"0.8509135",
"0.8485462",
"0.8416025",
"0.8392188",
"0.8392188",
"0.8392188",
"0.8392188",
"0.8392188",
"0.8280285",
"0.81247896",
"0.81220174",
"0.81152946",
"0.80796975",
"0.8025708",
"0.8003764",
"0.79990596",
"0.79990596",
"0.799905... | 0.0 | -1 |
Return size of dataset. | def szAg(YKHO):
return YKHO.dataset_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def duBC(__n6):\n return dD7q(__n6).data_size",
"def hU8i(YKHO):\n return YKHO._dataset_size",
"def jiw9(YKHO):\n return YKHO.dataset.get_size()",
"def zNig(YKHO):\n return YKHO._ds.size",
"def DDYt(YKHO):\n return YKHO._region_obj.get_dataset_size()",
"def hU8i(YKHO):\n return YKHO.dat... | [
"0.8926355",
"0.8831611",
"0.87597924",
"0.8509135",
"0.8485462",
"0.8416025",
"0.8280285",
"0.81247896",
"0.81220174",
"0.81152946",
"0.80796975",
"0.8025708",
"0.8003764",
"0.79990596",
"0.79990596",
"0.79990596",
"0.798798",
"0.7982662",
"0.7982662",
"0.79797894",
"0.79764... | 0.8392188 | 6 |
return a string representation of the cell located at x,y. | def ME91(iBIi, WKvO, LVAh):
Z9rn = iBIi.getCell(WKvO, LVAh)
if Z9rn == 0:
return ' '
elif Z9rn == 2:
KCHu = ' 2 '
elif Z9rn == 4:
KCHu = ' 4 '
elif Z9rn == 8:
KCHu = ' 8 '
elif Z9rn == 16:
KCHu = ' 16 '
elif Z9rn == 32:
KCHu = ' 32 '
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Cell {},{}'.format(YKHO.row, YKHO.col)",
"def OjRs(YKHO, WKvO, LVAh):\n Z9rn = YKHO.board.get_cell(WKvO, LVAh)\n if Z9rn == 0:\n return '.' if YKHO.__azmode else ' .'\n elif YKHO.__azmode:\n if Z9rn not in YKHO.__az:\n KCHu = '?'\n else:\n ... | [
"0.75638527",
"0.75600797",
"0.7541922",
"0.7303193",
"0.7289678",
"0.72552896",
"0.72224647",
"0.71827024",
"0.7149926",
"0.7134906",
"0.7127742",
"0.71198934",
"0.70977575",
"0.70977575",
"0.7079046",
"0.70542103",
"0.70519936",
"0.69982916",
"0.699671",
"0.69876015",
"0.69... | 0.7207075 | 7 |
Gets an argument parser | def EpPs():
ioG2 = j1Jz.ArgumentParser(description='Instructs stackstats package to manage date/time range and results output format')
ioG2.add_argument('--since', help='Start date')
ioG2.add_argument('--until', help='End date')
ioG2.add_argument('--output_format', help='return the calculated statistics... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xuJu(YKHO):\n return YKHO.__argparser",
"def z0ba(YKHO):\n return YKHO.get_base_arg_parser()",
"def YieJ(Emd4) -> WDqQ:\n if hasattr(Emd4, 'argparser'):\n return Emd4.argparser\n Emd4.init_argparser()\n return Emd4.argparser",
"def EpPs():\n wvEv = B4X0.ArgumentParser(description... | [
"0.82643396",
"0.8186041",
"0.8168409",
"0.81385815",
"0.8074269",
"0.8062135",
"0.7935428",
"0.79253906",
"0.787856",
"0.78717184",
"0.78462034",
"0.7842713",
"0.7741837",
"0.7722569",
"0.7719385",
"0.7715178",
"0.77150416",
"0.76663285",
"0.76526815",
"0.76468354",
"0.76118... | 0.7675657 | 17 |
If there is no AWS region set from the environment provider, then configure the default region as USEAsT1 | def Baw8(Emd4):
Hy7s.environ['MOCK_XRAY'] = 'TRUE'
if iVGz.Session().region_name is None:
Hy7s.environ['AWS_DEFAULT_REGION'] = 'us-east-1' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kuab():\n return iVGz.session.Session().region_name",
"def Vxsw(fDi7='us-east-1'):\n if not Hy7s.path.isfile(RhXq):\n Qc5P()\n with open(RhXq, 'r+') as eHNT:\n Nqlg = eHNT.readlines()\n eHNT.seek(0)\n eHNT.truncate()\n for zFiD in Nqlg:\n if 'aws_region_... | [
"0.7001749",
"0.68306667",
"0.66876745",
"0.6644664",
"0.6607264",
"0.6583519",
"0.6563761",
"0.6413188",
"0.64066994",
"0.63558435",
"0.6200409",
"0.6197362",
"0.6194097",
"0.61933035",
"0.61874807",
"0.617177",
"0.6086655",
"0.6037173",
"0.6037173",
"0.5995533",
"0.5993506"... | 0.59010196 | 28 |
Assert that lack of "team" OR "flag" results in a client_error | def k2zU(YKHO):
for tvqc in YKHO.events:
tvqc['team'] = str(10)
Ylbp = I0l4.lambda_handler(jth9.deepcopy(tvqc), None)
assert 'client_error' in Ylbp
rGX_(len(Ylbp['client_error']), 1)
del tvqc['team']
tvqc['flag'] = ''
Ylbp = I0l4.lambda_handler(jth9.deepcopy(t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def v3wO(YKHO):\n EqF_ = jKJ_()\n nPrm = {'status': r2Kd.STATUS_PENDING}\n x0hE = iJSR()\n x0hE.force_authenticate(user=EqF_.team_captain)\n bD7m = gxEw('TeamListCreate')\n geh0 = x0hE.post(bD7m, nPrm, format='json')\n YKHO.assertResponse400(geh0)\n x4wP = YKHO.loadJSONSafely(geh0)\n qfM... | [
"0.69839233",
"0.6870387",
"0.68701303",
"0.6778649",
"0.67692924",
"0.6733755",
"0.6726943",
"0.6688449",
"0.6629398",
"0.6606092",
"0.65204585",
"0.6499511",
"0.6496657",
"0.6453495",
"0.64396775",
"0.64379114",
"0.64241",
"0.6386555",
"0.63641816",
"0.6352232",
"0.63198113... | 0.0 | -1 |
Email for users to reset password. Return True if response is successful, return False otherwise | def AQ9c(D3lj, eOtH):
n87H = '{}/forgot-password?token={}'.format(gCuF.HOSTNAME_PROTOCOL, eOtH)
NArs = {'password_reset_link': n87H}
MOPg = {'Authorization': 'Bearer {}'.format(gCuF.EMAIL_HOST_PASSWORD), 'Content-Type': 'application/json'}
geh0 = G4JS.post(gCuF.SENDGRID_API_BASE_URL + 'mail/send', heade... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ryyU():\n try:\n nPrm = QePW.get_json()\n D3lj = nPrm['email']\n except KeyError:\n eTsH(BfDw.response_fn(400, 'error', 'Should be email'))\n pjJa.isEmailValid(D3lj)\n Nc2H.sendmail(D3lj)\n return BfDw.response_fn(200, 'data', [{'message': 'Check your email for password rese... | [
"0.80532044",
"0.7992624",
"0.7796692",
"0.7741715",
"0.77232546",
"0.7676098",
"0.7676054",
"0.754936",
"0.7517847",
"0.74886686",
"0.7443277",
"0.7408748",
"0.7389088",
"0.7381454",
"0.737861",
"0.7376329",
"0.7375915",
"0.73415154",
"0.7297915",
"0.7284338",
"0.72825086",
... | 0.7062345 | 45 |
Emails a user a link to reset their password. Checks that a teamname was submitted to the function and grabs the relevant team info from the db. Generates a secure token and inserts it into the team's document as 'passresttoken'. A link is emailed to the registered email address with the random token in the url. The us... | def zkyr(QePW):
aD9V = QePW.form.get('teamname', None)
if aD9V is None or aD9V == '':
return {'success': 0, 'message': '用户名不能为空.'}
aD9V = aD9V.encode('utf8').strip()
dZPi = NCls.teams.find_one({'teamname': aD9V})
if dZPi is None:
return {'success': 0, 'message': "未找到用户'%s'." % aD9V}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rjh8(QePW):\n eOtH = QePW.form.get('token', None)\n CKAv = QePW.form.get('newpw', None)\n if eOtH is None or eOtH == '':\n return {'status': 0, 'message': '密码重设密钥不能为空.'}\n if CKAv is None or CKAv == '':\n return {'status': 0, 'message': '新密码不能为空.'}\n eOtH = eOtH.encode('utf8')\n ... | [
"0.7524876",
"0.70014066",
"0.6981186",
"0.68845814",
"0.68433875",
"0.683757",
"0.6775853",
"0.67625344",
"0.6762422",
"0.6752444",
"0.6738325",
"0.6729487",
"0.6727961",
"0.6723541",
"0.6720241",
"0.67181605",
"0.67058426",
"0.6697879",
"0.6696296",
"0.669511",
"0.6684021",... | 0.7538843 | 0 |
Generate a random string. | def BWvy(u54L=25):
return ''.join((tuKI.choice(vIwR.ascii_letters) for YRbF in range(u54L))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eTqN():\n return str(qxeD.uuid4())[:10]",
"def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))",
"def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))",
"def YzjY(YKHO, u54L=10):\n retu... | [
"0.8581163",
"0.8333267",
"0.8148356",
"0.81475866",
"0.81014043",
"0.80591106",
"0.8050948",
"0.80434346",
"0.80158913",
"0.79673904",
"0.794223",
"0.79098237",
"0.7907081",
"0.78963417",
"0.7894708",
"0.7894708",
"0.78899735",
"0.7855457",
"0.7815202",
"0.7813856",
"0.77965... | 0.0 | -1 |
Override Message's representation so you can see the text when you print it. | def wHJl(YKHO):
return f'<opsdroid.events.Message(text={YKHO.text})>' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return repr(YKHO.message)",
"def wHJl(YKHO):\n return YKHO.message",
"def zAg0(YKHO):\n return str(YKHO.message)",
"def wHJl(YKHO):\n return f'{YKHO.message}\\n '",
"def zAg0(YKHO):\n return YKHO._message",
"def zAg0(YKHO):\n return YKHO._message",
"de... | [
"0.797291",
"0.7797333",
"0.7559294",
"0.7518536",
"0.7374014",
"0.7374014",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7353456",
"0.7352801",
"0.7271292",
"0.7227176",
"0.72245526",
"0.72245526",
"0.72245526",
"0.72151315",
... | 0.7515668 | 4 |
Create and return a new user. | def lYUQ(NtEF, Yy4B):
NtEF = mv1M(username=NtEF, password=Yy4B)
NCls.session.add(NtEF)
NCls.session.commit()
return NtEF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lYUQ(D3lj, jTXt):\n Q5YQ = mv1M(D3lj, jTXt)\n return Q5YQ",
"def lYUQ(YKHO):\n return egNl().objects.create_user(YKHO.user_email, YKHO.user_password)",
"def lYUQ():\n nPrm = QePW.get_json()\n return CfQI(nPrm)",
"def Ss1U():\n CBIr = mv1M.objects.get_or_create(username='john', first_nam... | [
"0.8399837",
"0.8340991",
"0.83255196",
"0.8242723",
"0.822922",
"0.8180042",
"0.81611365",
"0.814695",
"0.8145755",
"0.81285113",
"0.81275517",
"0.81275517",
"0.81275517",
"0.81275517",
"0.81275517",
"0.8124129",
"0.811901",
"0.81091976",
"0.80954736",
"0.8088665",
"0.807501... | 0.0 | -1 |
Calculate term cooccurrence for all words in a word list | def mBxq(YKHO, V1Rd, rrSk, dict):
MBW2 = {}
for d6pt, yzQ0 in enumerate(V1Rd[1:]):
XuXy = V1Rd[:d6pt + 1]
for vC9B in XuXy:
lNm8 = list(sorted([dict.get(yzQ0), dict.get(vC9B)]))
DUKZ = lNm8[0] + ' ' + lNm8[1]
if DUKZ not in MBW2:
MBW2[DUKZ] = Y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ljMW(V22M, CVIh, Lljz):\n nPrm = oRi_(list)\n for a1PO in Lljz:\n nPrm[a1PO[0]] = [0 for LihS in CVIh]\n for YRbF in range(len(V22M)):\n if V22M[YRbF] in nPrm.keys():\n or8S = -1\n if YRbF >= 2:\n if V22M[YRbF - 2] in CVIh:\n or8S =... | [
"0.70996964",
"0.6979611",
"0.6865066",
"0.68631107",
"0.68058306",
"0.67368895",
"0.6660981",
"0.663713",
"0.6601515",
"0.65698695",
"0.6531852",
"0.6523762",
"0.6516029",
"0.6481889",
"0.6476509",
"0.64694387",
"0.64353156",
"0.6429061",
"0.641119",
"0.636583",
"0.6364528",... | 0.6899288 | 2 |
initialize a ClickBrowser instance | def FIMM(YKHO):
YKHO.bottomleft = (0, 0)
YKHO.currentind = []
YKHO.currentaxis = aNZO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n G9jH.basicConfig(format='%(asctime)s - %(levelname)s: %(message)s', level=G9jH.DEBUG)\n YKHO.browser = YKHO._generate_browser()\n YKHO._setup()",
"def FIMM(YKHO, SYsl, bD7m):\n YKHO._browser = SYsl\n YKHO._url = bD7m",
"def FIMM(YKHO):\n super(TUbx, YKHO).__init__()",
"def... | [
"0.74648845",
"0.70741",
"0.6914364",
"0.6845733",
"0.68396306",
"0.68326473",
"0.6755623",
"0.6663051",
"0.65704376",
"0.6493598",
"0.64268875",
"0.640556",
"0.6381328",
"0.6359447",
"0.63589585",
"0.63544834",
"0.6352259",
"0.63064617",
"0.62666774",
"0.6197421",
"0.6182288... | 0.0 | -1 |
Test if the stack is empty | def A4KR(YKHO):
return YKHO.stack.size == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(E5BI):\n return E5BI.top is None",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return YKHO.stack == []",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def FBfn(YK... | [
"0.9191572",
"0.9142772",
"0.90852916",
"0.90852916",
"0.90852916",
"0.90259427",
"0.90259427",
"0.9010648",
"0.89391667",
"0.8903463",
"0.8896156",
"0.8896156",
"0.8866517",
"0.88363403",
"0.8760251",
"0.8760251",
"0.8735112",
"0.86954117",
"0.86894524",
"0.86667114",
"0.866... | 0.8596842 | 24 |
Adds a node to the rear of the stack | def _jXH(YKHO, BWXx):
YKHO.stack.addRear(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mMRw(Emd4, Q6kx):\n Emd4.created_nodes_stack.append(Q6kx)",
"def _jXH(E5BI, U6D_):\n E5BI.top = o7DN(U6D_, E5BI.top)\n E5BI.size = E5BI.size + 1",
"def H2v5(YKHO, Q6kx):\n for exwG in YKHO.stack:\n if exwG.state == Q6kx.state:\n return None\n YKHO.stack.append(Q6kx)",
"de... | [
"0.77526546",
"0.72737473",
"0.7272127",
"0.7178229",
"0.71767783",
"0.7112711",
"0.7091222",
"0.7083243",
"0.70753795",
"0.7065695",
"0.70405763",
"0.7033505",
"0.70243686",
"0.7020786",
"0.70112973",
"0.69908196",
"0.69627124",
"0.69627124",
"0.69495696",
"0.694353",
"0.694... | 0.7072122 | 9 |
Returns a jinja2 template by importing README markdown template (README_template.md) | def CnOn(YKHO):
EYCZ = fCou(YKHO.metadata_path)
sEAN = zAej(loader=EYCZ, lstrip_blocks=True, trim_blocks=True)
ygQp = sEAN.get_template(YKHO.default_readme_file)
return ygQp | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mjpl(**B2fa):\n return cml1",
"def rF0d(**B2fa):\n return zXRu",
"def lNeX(**B2fa):\n return vTJh",
"def DAt9(mWFP: str) -> GSRe:\n return RoWC.from_string(KLQT.joinpath(f'{mWFP}.md.jinja').read_text())",
"def d6pt():\n with open(Hy7s.path.dirname(P4t4.root_path) + '/README.md', 'r') as ... | [
"0.78056514",
"0.7528195",
"0.73525",
"0.690929",
"0.66930217",
"0.6662733",
"0.6659575",
"0.66150784",
"0.66093177",
"0.660593",
"0.65801865",
"0.6523855",
"0.6480906",
"0.6433256",
"0.6432606",
"0.6432119",
"0.64258134",
"0.6378506",
"0.6368807",
"0.63408655",
"0.63374573",... | 0.77873623 | 1 |
A thin wrapper around ``print``, explicitly printing to stderr. | def p_yA(*qIxc, **B2fa):
print(*qIxc, file=HwRy.stderr, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wajh(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)",
"def ob7F(*qIxc, **B2fa):\n print(*qIxc, file=HwRy.stderr, **B2fa)",
"def QcmF(*qIxc: str, **B2fa: Any) -> None:\n B2fa = {**dict(file=HwRy.stderr, flush=True), **B2fa}\n print(*qIxc, **B2fa)",
"def XObx(*qIxc, **YSA3):\n prin... | [
"0.8188359",
"0.80993974",
"0.79997486",
"0.79443526",
"0.7892612",
"0.7683487",
"0.76591706",
"0.760268",
"0.75809306",
"0.7382342",
"0.73418266",
"0.7289368",
"0.7187096",
"0.7123222",
"0.7123222",
"0.7123222",
"0.7123222",
"0.7123222",
"0.7123222",
"0.71094286",
"0.7108609... | 0.7953966 | 3 |
Read an image from url or file as grayscale opencv image. | def AX_b(bD7m):
return e_Q7.pipe(bD7m, uRlK.request.urlopen if yto3(bD7m) else lambda WKvO: open(WKvO, 'rb'), lambda WKvO: WKvO.read(), bytearray, lambda WKvO: oyIN.asarray(WKvO, dtype='uint8'), lambda WKvO: jbYn.imdecode(WKvO, jbYn.IMREAD_COLOR)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q5aE(p4m8):\n XTwO = XC5k.imread(p4m8, XC5k.IMREAD_GRAYSCALE)\n if XTwO is None:\n raise Exception('Error reading image %s' % p4m8)\n return XTwO",
"def q5aE(QMAG, ITiw=False):\n if ITiw:\n return XC5k.imread(QMAG, XC5k.IMREAD_GRAYSCALE)\n LNo8 = XC5k.imread(QMAG)\n return XC5... | [
"0.77680856",
"0.7760757",
"0.74851686",
"0.74687016",
"0.7436216",
"0.73931193",
"0.73477316",
"0.7311412",
"0.7291007",
"0.7274813",
"0.72543865",
"0.7252322",
"0.72298795",
"0.72289205",
"0.72254264",
"0.71919566",
"0.7170651",
"0.7163565",
"0.71569496",
"0.71569496",
"0.7... | 0.7013964 | 33 |
Returns short base codes as string | def m4sW(YKHO):
gitN = []
if YKHO.is_naval_base:
gitN.append('N')
if YKHO.is_scout_base:
gitN.append('S')
if YKHO.is_research_base:
gitN.append('R')
if YKHO.is_tas:
gitN.append('T')
if YKHO.is_consulate:
gitN.append('I')
if YKHO.is_pirate_base:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gS5h(BWXx: int, P8oC: int) -> str:\n if P8oC not in range(2, 37):\n return \"Mi scusi, you're mistaken :c\"\n hlel: str = ''\n while BWXx != 0:\n hlel += gTzM(BWXx % P8oC)\n BWXx //= P8oC\n return ''.join(reversed(hlel))",
"def aHw9(BWXx):\n return '{:032b}'.format(BWXx)",... | [
"0.6645093",
"0.6610074",
"0.6543194",
"0.65307844",
"0.6486876",
"0.6451613",
"0.6440141",
"0.63989294",
"0.6394338",
"0.63734835",
"0.63392043",
"0.62513703",
"0.62164617",
"0.6209866",
"0.61895317",
"0.61687165",
"0.61624026",
"0.6155497",
"0.6154638",
"0.6151077",
"0.6149... | 0.6496276 | 4 |
Load published Crab pulsar and nebula flux points. Besides the usual flux point columns, this table contains | def JmSN(UksD='both'):
Ux0P = IJAd.filename('test_datasets/unbundled/tev_spectra/crab_mwl.fits.gz')
with qmLP.catch_warnings():
qmLP.simplefilter('ignore', PH1v)
tyNF = TQJD.read(Ux0P)
if UksD == 'pulsar':
ZHfW = tyNF['component'] == 'pulsar'
tyNF = tyNF[ZHfW]
elif UksD =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xlci():\n Ux0P = Hy7s.path.join(lCFC, 'chicago_all.csv.xz')\n with Mjh1.open(Ux0P, 'rt') as eHNT:\n return c9xi.sources.chicago.load(eHNT, 'BURGLARY', type='all')",
"def zBXg(YKHO):\n tyNF = TQJD()\n tyNF.meta['SED_TYPE'] = 'flux'\n tyNF['e_min'] = YKHO._ebounds.lower_bounds\n tyNF['... | [
"0.6026055",
"0.60115296",
"0.60028815",
"0.5818534",
"0.5498448",
"0.5485101",
"0.5485101",
"0.5485101",
"0.5485101",
"0.5485101",
"0.5485101",
"0.5485101",
"0.5384229",
"0.53711164",
"0.5363166",
"0.5351152",
"0.53359735",
"0.52872306",
"0.52662456",
"0.52540356",
"0.524934... | 0.6393151 | 0 |
Creates and Saves a User with given email, first and last name and password. | def lYUQ(YKHO, D3lj, jTXt=None):
if not D3lj:
raise ValueError('Users must have an email address')
CBIr = YKHO.model(email=YKHO.normalize_email(D3lj))
CBIr.set_password(jTXt)
CBIr.save(using=YKHO._db)
return CBIr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kI0b(Emd4, NtEF, D3lj, jTXt, c9ua, zp3f):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(username=NtEF, email=D3lj, password=kz9X, first_name=c9ua, last_name=zp3f)\n NCls.session.add(CBIr)\n return CBIr",
"def xWi2(YKHO, D3lj, c9ua, zp3f, jTXt, **wdCM):\n D3lj = YKHO.... | [
"0.8573909",
"0.8499578",
"0.8478514",
"0.8475407",
"0.84507906",
"0.8409823",
"0.83982474",
"0.8377329",
"0.83690614",
"0.833486",
"0.8301936",
"0.8264098",
"0.82214355",
"0.8220408",
"0.8182948",
"0.8179772",
"0.8170013",
"0.8149246",
"0.8143936",
"0.81202817",
"0.8112253",... | 0.0 | -1 |
Return time difference in seconds between the two event (from other event to self event) If 'other' event occured after 'self' event, the time_difference will be negative. | def C61p(YKHO, Elif):
return (YKHO.datetime - Elif.datetime).total_seconds() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C61p(YKHO, Elif):\n return (Elif.time.hour - YKHO.time.hour, Elif.time.minute - YKHO.time.minute)",
"def TAxb(YKHO, n2Q1, SpII):\n yk4i = abs(YKHO.time(SpII) - YKHO.time(n2Q1))\n return yk4i.seconds",
"def WbTE(YKHO, Elif):\n return Elif.time - YKHO.time",
"def WbTE(YKHO, Elif):\n return E... | [
"0.71992105",
"0.7196715",
"0.71858734",
"0.71858734",
"0.7173721",
"0.7049808",
"0.660985",
"0.6599044",
"0.65061647",
"0.64279765",
"0.64103234",
"0.6404902",
"0.64004993",
"0.6376779",
"0.636042",
"0.6338222",
"0.62570685",
"0.62267655",
"0.6118835",
"0.6057401",
"0.600050... | 0.78588104 | 0 |
Check if string looks like a float (or int) number. | def e5f3(vIwR):
return ZbWC.search(nvPR, vIwR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xt5H(vIwR: str) -> bool:\n return ZbWC.match('^-?\\\\d+\\\\.\\\\d+$', vIwR) is not None",
"def e5f3(vIwR):\n return A69P(vIwR)",
"def QpCZ(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def QpCZ(vIwR):\n try:\n float(vIwR)\n ... | [
"0.89535",
"0.8887753",
"0.8885836",
"0.8885836",
"0.88167757",
"0.8765117",
"0.87587494",
"0.8730227",
"0.8730077",
"0.87057215",
"0.86941385",
"0.8674603",
"0.8674603",
"0.8674603",
"0.8674603",
"0.86451024",
"0.8640887",
"0.8618321",
"0.8540339",
"0.8492429",
"0.8479617",
... | 0.88644534 | 4 |
Swaps the pixel at (row1, col1) with the pixel at (row2, col2) | def FIkY(YKHO, ecEc, iIDh, znzI, C0Wu):
ycBG = YKHO.getPixel(ecEc, iIDh)
YKHO.setPixel(ecEc, iIDh, YKHO.getPixel(znzI, C0Wu))
YKHO.setPixel(znzI, C0Wu, ycBG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D1ti(YKHO, ro5A, NGno):\n YKHO.planes[ro5A], YKHO.planes[NGno] = (YKHO.planes[NGno], YKHO.planes[ro5A])",
"def Ug5E(YKHO, YRbF, r845):\n for G1Hx in range(0, YKHO.cols):\n YKHO[YRbF, G1Hx], YKHO[r845, G1Hx] = (YKHO[r845, G1Hx], YKHO[YRbF, G1Hx])",
"def b3SJ(SppC, V4V9, XalQ):\n for rdlD in ... | [
"0.70496154",
"0.6756595",
"0.6752129",
"0.66906077",
"0.65533996",
"0.6359718",
"0.63247764",
"0.62482965",
"0.6247082",
"0.6219342",
"0.6201633",
"0.6181446",
"0.6150816",
"0.612419",
"0.6121006",
"0.6065937",
"0.60621536",
"0.6008424",
"0.59917575",
"0.5981928",
"0.5953416... | 0.8467406 | 0 |
Retreives a single product in a wishlist | def neBz(Emd4, JNoc, Mc9N):
bo34.info('Processing lookup for product {} in wishlist {}...'.format(Mc9N, JNoc))
return Emd4.query.get((JNoc, Mc9N)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lU60(QePW):\n DumB = []\n CBIr = Iofl(BFpK, user=QePW.user)\n lU60 = KqKN.objects.get_or_create(user=CBIr)\n V4tR = lU60[0]\n QOe9 = mAj8.objects.filter(wishlist=V4tR).exists()\n if QOe9:\n vXOI = T6Eh(mAj8, wishlist=V4tR)\n for YEnM in vXOI:\n Lx3t = Iofl(msfn, name=... | [
"0.66846913",
"0.6616945",
"0.6575833",
"0.6471729",
"0.64064956",
"0.6393737",
"0.6371137",
"0.6341271",
"0.6291284",
"0.6289051",
"0.6283996",
"0.62771195",
"0.62660223",
"0.62621105",
"0.6260014",
"0.62343895",
"0.6216617",
"0.6187408",
"0.61761415",
"0.616248",
"0.6131694... | 0.77479887 | 0 |
This function checks if x,y is inside the board | def cJ84(YKHO, eYrV, ldQK):
if 0 <= eYrV <= YKHO.x and 0 <= ldQK <= YKHO.y:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GKu2(WKvO, LVAh):\n return 0 <= WKvO < P5Bq and 0 <= LVAh < P5Bq",
"def KoY0(YKHO: object, WKvO: int, LVAh: int):\n return 1 <= LVAh <= YKHO.rows_num and 1 <= WKvO <= YKHO.columns_num",
"def er5o(YKHO, rdlD, fvDH):\n return 0 <= rdlD < YKHO.corner.row and 0 <= fvDH < YKHO.corner.col",
"def T_Ze(... | [
"0.8472314",
"0.8393573",
"0.8059816",
"0.7935356",
"0.78016317",
"0.7690914",
"0.76036376",
"0.753574",
"0.75201434",
"0.7518579",
"0.75130683",
"0.7471084",
"0.745",
"0.7443254",
"0.7440932",
"0.7436599",
"0.74257463",
"0.7390133",
"0.73829466",
"0.7368334",
"0.7362457",
... | 0.0 | -1 |
Adds the book to the user's wish list. | def GTcD(QePW, CBIr):
P6bq = mv1M.objects.get(username=CBIr)
Oeqj = P6bq.wishes.all()
Oq8H = Oeqj.count()
QpfX = {'books_list': Oeqj, 'number_books': Oq8H, 'user_wishes': P6bq}
return _1tc(QePW, 'wish_list.html', QpfX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hJfG(YKHO, eH84, ABua):\n Z9rn = i9zE()\n geh0 = Z9rn.post('/wishlist/auth/bookWishes', {'credentials': eH84, 'book_id': ABua}, content_type='application/json')\n if geh0.status_code != 200:\n return x22R(geh0)\n return x22R(geh0)[0]",
"def E4mv(YKHO):\n YKHO.add_book_name = YKHO.get_ad... | [
"0.80929226",
"0.7511474",
"0.73416215",
"0.73416215",
"0.72638667",
"0.712709",
"0.7100153",
"0.7063959",
"0.70313823",
"0.6842275",
"0.6839396",
"0.6782875",
"0.67134184",
"0.6701002",
"0.6696735",
"0.66082424",
"0.6604194",
"0.6602443",
"0.6557969",
"0.64710754",
"0.645907... | 0.58140045 | 47 |
Create an SVG map with colors populated by a dictionary of (FIPS, cluster) value pairs. | def Rc6x(qC6E, NqYl, o5Sy, Jw9H):
o5Sy = open(o5Sy, 'r').read()
Z9JV = rKuS(o5Sy, 'html.parser')
ckRy = Z9JV.findAll('path')
HOJn = 'font-size:12px;fill-rule:nonzero;stroke:#FFFFFF;stroke-opacity:1; stroke-width:0.1;stroke-miterlimit:4;stroke-dasharray:none;stroke-linecap:butt; marker-start:none;stroke-... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GPT2():\n import matplotlib.colors as Ka7R\n import matplotlib.cm as FeRD\n GYfx = {'roygbiv': [(1.0, 0.0, 0.0), (1.0, 1.0, 0.0), (0.0, 1.0, 0.0), (0.0, 1.0, 1.0), (0.0, 0.0, 1.0)], 'PkOrBu': [(1, 0, 1), (1, 0, 0), (1, 1, 0), (0, 1, 1), (0, 0, 1)], 'rainbow2': [(0, 1, 1), (0, 0, 1), (1, 0, 1), (1, 0, ... | [
"0.63001305",
"0.61755645",
"0.6072715",
"0.6049563",
"0.60392225",
"0.601289",
"0.600014",
"0.59302825",
"0.58990294",
"0.58812404",
"0.5810923",
"0.5797657",
"0.5797657",
"0.5785066",
"0.5779644",
"0.5771054",
"0.5753743",
"0.57107544",
"0.56867284",
"0.56547177",
"0.565187... | 0.67163944 | 0 |
Side of the lattice in units of length | def HEZd(YKHO):
return YKHO._side | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyOL(YKHO):\n if YKHO._side_length == None:\n YKHO._side_length = 2 * YKHO._r * epAf.sin(epAf.pi / YKHO._n)\n return YKHO._side_length",
"def LyOL(YKHO):\n return 2 * YKHO._R * epAf.sin(epAf.pi / YKHO._n)",
"def LyOL(YKHO):\n if YKHO._side_length == None:\n YKHO._side_length = 2 *... | [
"0.74733186",
"0.74581444",
"0.73798",
"0.70685047",
"0.6936582",
"0.6847296",
"0.6838376",
"0.6823454",
"0.66649556",
"0.66497713",
"0.65897596",
"0.65874535",
"0.65860134",
"0.65524465",
"0.65400547",
"0.6538041",
"0.64703596",
"0.6461791",
"0.6444337",
"0.6432438",
"0.6413... | 0.5977625 | 62 |
Calculates the correction accuracy averaged over k subsampled folds | def Eo9R(cAci, USmj, G1Hx=10):
u54L = len(cAci)
Zcnh = list(range(u54L))
tuKI.seed(0.56)
tuKI.shuffle(Zcnh)
dkdx = u54L // G1Hx
OUjx = [Zcnh[dkdx * YRbF:dkdx * (YRbF + 1)] for YRbF in range(G1Hx)]
cCrA = []
for NoYO in OUjx:
HcFz = [YRbF for YRbF in Zcnh if YRbF not in NoYO]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(ppBc, Zwka, G1Hx):\n gXXc = 0\n for Q3aS in Zwka:\n Iqcm = EYDd(ppBc, Q3aS, G1Hx)\n D2Fr = int(Q3aS[0])\n HlgI = 0\n for YRbF in range(G1Hx):\n if Iqcm[YRbF] == D2Fr:\n HlgI += 1\n b0IR = HlgI / G1Hx\n if b0IR >= 0.5:\n g... | [
"0.74204165",
"0.6970173",
"0.6869003",
"0.680625",
"0.6778039",
"0.6755582",
"0.6749261",
"0.67429686",
"0.67362654",
"0.672619",
"0.6726112",
"0.66941226",
"0.6676176",
"0.66736364",
"0.6659433",
"0.6608215",
"0.6594897",
"0.6586202",
"0.65792346",
"0.65723604",
"0.65706426... | 0.65707684 | 20 |
return current time as a string | def NfGH():
return ITS7.strftime('%d/%m/%Y %H:%M:%S', ITS7.localtime(ITS7.time())) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fz29():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S', ITS7.gmtime())",
"def fTxZ():\n PYuG = qcWV.utcnow()\n return QMSQ(PYuG.strftime('%Y%m%d%H%M%S'))",
"def vHj7():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",
"def V2LE():\n return vHj7",
"def m7L9():\n return str(qcWV.now().timestam... | [
"0.90276414",
"0.8809448",
"0.8758383",
"0.8734563",
"0.86174875",
"0.86114234",
"0.86076474",
"0.86043483",
"0.8596342",
"0.85624385",
"0.85184455",
"0.85101813",
"0.8493327",
"0.8469765",
"0.8415873",
"0.8412377",
"0.83851385",
"0.83272356",
"0.82963014",
"0.8283227",
"0.82... | 0.0 | -1 |
Check whether the store is open at the specified time. | def WGC8(YKHO, JRYC, EBap=True, wzkt=None, TifL=False):
if isinstance(JRYC, t_XE.Pendulum):
JRYC = JRYC._datetime
if wzkt is None:
wzkt = rIAI.now()
if JRYC < wzkt:
if not EBap:
return False
raise ZxZQ()
if not TifL and JRYC - wzkt < YKHO.wait:
if not ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WGC8(YKHO, CjKC, ITS7):\n if YKHO.is_always_open:\n return True\n CjKC = CjKC.lower()\n if not CjKC in YKHO.opening_hours:\n return False\n for be2Y in YKHO.opening_hours[CjKC]:\n if be2Y[0] < jrty(ITS7) < be2Y[1]:\n return True\n return False",
"def cGie(YKHO):... | [
"0.70035625",
"0.67914474",
"0.67914474",
"0.6751894",
"0.672024",
"0.6628711",
"0.6628711",
"0.65401095",
"0.65156215",
"0.63983583",
"0.633178",
"0.6312083",
"0.63085604",
"0.63085604",
"0.6254846",
"0.6247122",
"0.62434614",
"0.62233424",
"0.62151206",
"0.6211387",
"0.6205... | 0.6625633 | 7 |
Capabilities is a dictionary of capabilities provided by get_reg_capabilities. Cache is a caching object, see caching for more information. | def FIMM(YKHO, AViC=None, wyyA=None):
if AViC == None:
AViC = []
YKHO.capabilities = AViC
YKHO.cache = wyyA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AViC(YKHO) -> cbbA:\n if 'capabilities' not in YKHO._capabilities_cache:\n YKHO._capabilities_cache['capabilities'] = cbbA(YKHO.get('/').json(), YKHO._orig_url)\n return YKHO._capabilities_cache['capabilities']",
"def AViC(YKHO) -> dict:\n return YKHO._capabilities",
"def AViC(YKHO):\n r... | [
"0.6871682",
"0.6835419",
"0.6595501",
"0.6562",
"0.6562",
"0.6562",
"0.65577924",
"0.6520652",
"0.64363956",
"0.6403099",
"0.6387092",
"0.62736565",
"0.6247864",
"0.6187252",
"0.61766696",
"0.61766696",
"0.6156046",
"0.61390406",
"0.6135691",
"0.611325",
"0.60875106",
"0.6... | 0.7073112 | 0 |
Returns project root folder. | def phdL() -> GkAb:
return GkAb(xAKo).parent.parent.parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L59w(YKHO):\n return Hy7s.path.dirname(xAKo)",
"def mSqg(YKHO):\n return YKHO._project_dir",
"def phdL() -> GkAb:\n KfRp = GkAb(xAKo).parent.resolve().parent\n return KfRp",
"def L59w():\n return Hy7s.path.dirname(Hy7s.path.dirname(xAKo))",
"def phdL() -> str:\n pmON = GkAb(xAKo).pare... | [
"0.87526774",
"0.86910444",
"0.86703354",
"0.85556895",
"0.8523378",
"0.8485956",
"0.8485956",
"0.8485956",
"0.8485956",
"0.8464311",
"0.84612876",
"0.8456025",
"0.84495723",
"0.8439751",
"0.8432916",
"0.8425679",
"0.841197",
"0.8390091",
"0.8390091",
"0.8339866",
"0.82881594... | 0.8444034 | 13 |
Returns if the sun is currently up based on the statemachine. | def uQdb(JDJM):
return JDJM.is_state(hQYF, HU_y) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQdb(YKHO):\n return YKHO.ethif.stored_state == 'up'",
"def vP2v(YKHO):\n if YKHO.state == 'up':\n return True\n else:\n return False",
"def yQ4q(YKHO):\n return YKHO.data.state == yGnB.HardwareState.Value('UP')",
"def uQdb(YKHO):\n if YKHO._vm:\n return YKHO._vm.isAct... | [
"0.7402952",
"0.73809755",
"0.73526305",
"0.7210365",
"0.71578264",
"0.68700767",
"0.6782548",
"0.66949475",
"0.6475564",
"0.6464699",
"0.64566535",
"0.6449941",
"0.6437303",
"0.6400239",
"0.6394782",
"0.63679475",
"0.63282794",
"0.63153905",
"0.62948626",
"0.625049",
"0.6223... | 0.76511973 | 0 |
Takes path to single image and returns it as a 4D tensor | def Jlex(p4m8):
VXjJ = LNo8.load_img(p4m8, target_size=(224, 224))
WKvO = LNo8.img_to_array(VXjJ)
return oyIN.expand_dims(WKvO, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jlex(p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(s3Vn, PLSm))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
"def Jlex(p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(224, 224))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
"d... | [
"0.8525642",
"0.83796597",
"0.8142227",
"0.7992817",
"0.778402",
"0.74808216",
"0.7447399",
"0.7430212",
"0.7317159",
"0.7229621",
"0.7036314",
"0.68793136",
"0.6791709",
"0.67682445",
"0.6731095",
"0.67247975",
"0.6666504",
"0.65857977",
"0.6585364",
"0.6537705",
"0.6512069"... | 0.81164473 | 3 |
Takes path to single image and returns it as a 4D tensor | def Jlex(p4m8):
VXjJ = LNo8.load_img(p4m8, target_size=(s3Vn, PLSm))
WKvO = LNo8.img_to_array(VXjJ)
return oyIN.expand_dims(WKvO, axis=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jlex(p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(224, 224))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
"def Jlex(YKHO, p4m8):\n VXjJ = LNo8.load_img(p4m8, target_size=(32, 32))\n WKvO = LNo8.img_to_array(VXjJ)\n return oyIN.expand_dims(WKvO, axis=0)",
... | [
"0.83796597",
"0.8142227",
"0.81164473",
"0.7992817",
"0.778402",
"0.74808216",
"0.7447399",
"0.7430212",
"0.7317159",
"0.7229621",
"0.7036314",
"0.68793136",
"0.6791709",
"0.67682445",
"0.6731095",
"0.67247975",
"0.6666504",
"0.65857977",
"0.6585364",
"0.6537705",
"0.6512069... | 0.8525642 | 0 |
Yield all Cstate cycles column names found in 'colnames'. | def cZyY(NKcn):
for Qg73 in NKcn:
if nJMZ(Qg73):
yield Qg73 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vfhE(NKcn):\n for Qg73 in NKcn:\n if OGjf(Qg73):\n yield Qg73",
"def o5U8(NKcn):\n for Qg73 in NKcn:\n if nJMZ(Qg73):\n f4Pj = brpL(Qg73)\n yield (kIS0(f4Pj), axQZ(f4Pj))",
"def cZyY(YKHO):\n for NKcn in cZyY(YKHO.info):\n yield NKcn",
"def o... | [
"0.78116435",
"0.75525343",
"0.71170247",
"0.70706165",
"0.6916467",
"0.62063706",
"0.5872062",
"0.58461463",
"0.5691276",
"0.5629743",
"0.5605875",
"0.55858904",
"0.5543225",
"0.5538852",
"0.5489517",
"0.5426143",
"0.5424307",
"0.5415146",
"0.5402953",
"0.53989977",
"0.53952... | 0.7951741 | 0 |
Yield all Cstate residency column names found in 'colnames'. | def vfhE(NKcn):
for Qg73 in NKcn:
if OGjf(Qg73):
yield Qg73 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cZyY(NKcn):\n for Qg73 in NKcn:\n if nJMZ(Qg73):\n yield Qg73",
"def o5U8(NKcn):\n for Qg73 in NKcn:\n if nJMZ(Qg73):\n f4Pj = brpL(Qg73)\n yield (kIS0(f4Pj), axQZ(f4Pj))",
"def vfhE(YKHO):\n for NKcn in vfhE(YKHO.info):\n yield NKcn",
"def o... | [
"0.7897824",
"0.78458863",
"0.7296051",
"0.6898025",
"0.68928635",
"0.60355294",
"0.58887815",
"0.579468",
"0.57597584",
"0.5748816",
"0.56612647",
"0.56269085",
"0.56027037",
"0.5560788",
"0.5555566",
"0.55350107",
"0.54995793",
"0.5493194",
"0.54931",
"0.54534197",
"0.54421... | 0.83646566 | 0 |
Returns the currently logged in user. | def NMoC(YKHO, QePW, format=None):
CBIr = QePW.user
if not CBIr.is_authenticated():
return oGir({}, status=jGRS.HTTP_401_UNAUTHORIZED)
else:
ZMzz = IyFz.UserSerializer(CBIr)
return oGir(ZMzz.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c5ow(YKHO):\n fnHH = YKHO.auth.get_user_by_session()\n return YKHO.auth.store.user_model.get_by_id(fnHH['user_id'])",
"def TKWP(YKHO):\n return DW23.get_current_user()",
"def W84Y(YKHO):\n return YKHO.get_user(YKHO._auth.current_user_name)",
"def jF0d(YKHO):\n return YKHO.session_mgr.get_l... | [
"0.8966975",
"0.89667314",
"0.8964258",
"0.895561",
"0.8711535",
"0.8670598",
"0.8665173",
"0.86202145",
"0.8613534",
"0.8588966",
"0.85388076",
"0.85181904",
"0.8460679",
"0.845787",
"0.8452192",
"0.8448326",
"0.8446325",
"0.8443086",
"0.8436763",
"0.842926",
"0.84038174",
... | 0.0 | -1 |
Returns the Levenshtein distance between the strings s and t. | def KX6q(KCHu, a1PO):
usx6 = len(KCHu) + 1
WfCS = len(a1PO) + 1
pImw = [[0 for WKvO in range(WfCS)] for WKvO in range(usx6)]
for YRbF in range(1, usx6):
pImw[YRbF][0] = YRbF
for YRbF in range(1, WfCS):
pImw[0][YRbF] = YRbF
for fvDH in range(1, WfCS):
for rdlD in range(1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DR4Z(KCHu, a1PO):\n T8d8 = [None] * (len(a1PO) + 1)\n hQHm = [None] * (len(a1PO) + 1)\n for YRbF in range(len(T8d8)):\n T8d8[YRbF] = YRbF\n for YRbF in range(len(KCHu)):\n hQHm[0] = YRbF + 1\n for r845 in range(len(a1PO)):\n sSN_ = 0 if KCHu[YRbF] == a1PO[r845] else ... | [
"0.8757211",
"0.8606",
"0.8520198",
"0.8519152",
"0.8404836",
"0.8359679",
"0.8119917",
"0.8116616",
"0.8024573",
"0.78244644",
"0.78234005",
"0.7747655",
"0.77313125",
"0.77137554",
"0.7706487",
"0.76697195",
"0.76560223",
"0.7628656",
"0.7569221",
"0.75648105",
"0.75257385"... | 0.8323346 | 7 |
Returns the Levenshtein distance between the strings s and t. | def KX6q(KCHu, a1PO):
usx6 = len(KCHu) + 1
WfCS = len(a1PO) + 1
pImw = [[0 for WKvO in range(WfCS)] for WKvO in range(usx6)]
for YRbF in range(1, usx6):
pImw[YRbF][0] = YRbF
for YRbF in range(1, WfCS):
pImw[0][YRbF] = YRbF
for fvDH in range(1, WfCS):
for rdlD in range(1, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DR4Z(KCHu, a1PO):\n T8d8 = [None] * (len(a1PO) + 1)\n hQHm = [None] * (len(a1PO) + 1)\n for YRbF in range(len(T8d8)):\n T8d8[YRbF] = YRbF\n for YRbF in range(len(KCHu)):\n hQHm[0] = YRbF + 1\n for r845 in range(len(a1PO)):\n sSN_ = 0 if KCHu[YRbF] == a1PO[r845] else ... | [
"0.8756363",
"0.86061925",
"0.8519979",
"0.8518416",
"0.84041953",
"0.83589864",
"0.8120237",
"0.811691",
"0.80235803",
"0.78239954",
"0.78229505",
"0.7748651",
"0.77328974",
"0.7714089",
"0.770669",
"0.7672023",
"0.7658622",
"0.7628429",
"0.7568518",
"0.75651294",
"0.7525007... | 0.83228487 | 6 |
Returns a value close to infinity, but is still finite in `dtype`. This is useful to get a very large value that is still zero when multiplied by zero. The floatingpoint "Inf" value is NaN when multiplied by zero. | def FfMS(yDqo):
if yDqo == 'float32' or yDqo == 'bfloat16':
return 10000000.0
elif yDqo == 'float16':
return oyIN.finfo(oyIN.float16).max - 1
else:
raise AssertionError('Invalid dtype: %s' % yDqo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h0VO(wEf2):\n return oyIN.isnan(wEf2) or oyIN.isinf(wEf2)",
"def eFw8(yDqo):\n if yDqo is ht2j.int8:\n XrdA = (1 << 7) - 1\n elif yDqo is ht2j.int16:\n XrdA = (1 << 15) - 1\n elif yDqo is ht2j.int32:\n XrdA = (1 << 31) - 1\n elif yDqo is ht2j.int64:\n XrdA = (1 << 6... | [
"0.6887099",
"0.68556947",
"0.6742501",
"0.6652469",
"0.66368806",
"0.65920156",
"0.65869236",
"0.6556263",
"0.6546584",
"0.6524025",
"0.6524025",
"0.65052617",
"0.64965",
"0.64932966",
"0.6469153",
"0.645697",
"0.6451117",
"0.64082336",
"0.6398411",
"0.63752335",
"0.6369935"... | 0.7909228 | 0 |
Yields absolute coordinate tuples from a deltaencoded arc. If either the scale or translate parameter evaluate to False, yield the arc coordinates with no transformation. | def NueV(Io6r, NXpY=None, hBUG=None):
if NXpY and hBUG:
jzdc, Fg_i = (0, 0)
for aNZO, bcP8 in Io6r:
jzdc += aNZO
Fg_i += bcP8
yield (NXpY[0] * jzdc + hBUG[0], NXpY[1] * Fg_i + hBUG[1])
else:
for WKvO, LVAh in Io6r:
yield (WKvO, LVAh) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0Eb(cp5e, i8zg, NXpY=None, hBUG=None):\n if isinstance(cp5e[0], int):\n jNOo = [list(NueV(i8zg[Io6r if Io6r >= 0 else ~Io6r], NXpY, hBUG))[::Io6r >= 0 or -1][YRbF > 0:] for YRbF, Io6r in enumerate(cp5e)]\n return list(eNCK.from_iterable(jNOo))\n elif isinstance(cp5e[0], (list, tuple)):\n ... | [
"0.59475785",
"0.53359914",
"0.5245307",
"0.51594704",
"0.5145549",
"0.50526214",
"0.49915582",
"0.49734443",
"0.49622208",
"0.4894658",
"0.48483428",
"0.48237818",
"0.48237512",
"0.4811885",
"0.48040113",
"0.4781884",
"0.47709346",
"0.47667682",
"0.476161",
"0.4701084",
"0.4... | 0.74888146 | 0 |
Return active events count. | async def get_count_events():
cuiw = nfix.db.get_session()
Aofo = cuiw.query(QRWf.id).filter(QRWf.expiry.is_(None) | (QRWf.expiry < qcWV.datetime.now())).count()
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vSgE(YKHO):\n return YKHO.db.count()",
"def Z75t(YKHO):\n return YKHO._events.GetEventCount()",
"def oqnT(YKHO):\n return YKHO.n_events",
"def gGbB():\n return GPtr.DB.query(\"SELECT count(*) FROM eventos WHERE admin_state <> 't';\")",
"def RgZG(YKHO):\n return len(YKHO._events)",
"def... | [
"0.78113735",
"0.75858504",
"0.7392693",
"0.7289068",
"0.7233798",
"0.7157774",
"0.7034902",
"0.7033863",
"0.7018298",
"0.6973483",
"0.69524544",
"0.690854",
"0.68748266",
"0.6870159",
"0.6863704",
"0.68270934",
"0.67816025",
"0.67696196",
"0.6759365",
"0.6753176",
"0.6736961... | 0.7249099 | 4 |
Tests that the admin page will provide the login page. | def Ee9T() -> None:
geh0 = G4JS.get('https://front/admin/', verify=False, timeout=30)
assert geh0.status_code == 200, geh0.text
assert 'Login' in geh0.text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jubh(YKHO, x0hE):\n assert YKHO.login(x0hE)\n geh0 = x0hE.get(YKHO.admin_url, follow_redirects=True)\n assert 'DB Admin' in geh0.get_data(as_text=True)\n assert 'Log Out' in geh0.get_data(as_text=True)",
"def UHFF():\n trZe.sel.get(trZe.sel.base_url())\n Dvxc()\n assert Dck1.page.is_disp... | [
"0.86397165",
"0.86271507",
"0.861423",
"0.8338261",
"0.8222002",
"0.8186109",
"0.7890243",
"0.7877517",
"0.78400356",
"0.78374976",
"0.7835534",
"0.7835534",
"0.7835534",
"0.7814884",
"0.78120303",
"0.77933306",
"0.77648294",
"0.7728481",
"0.77175665",
"0.77104104",
"0.77002... | 0.79097134 | 6 |
Return lcm of args. | def EIJH(*qIxc):
return Pusg(BsJX, qIxc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BsJX(*qIxc):\n return Pusg(FlPi, qIxc)",
"def BsJX(*qIxc):\n return Pusg(mvDe, qIxc)",
"def EIJH(*qIxc):\n \"\"\"Return lcm of args.\"\"\"\n return Pusg(BsJX, qIxc)",
"def BsJX(YKHO, FiiE):\n Aofo = epAf.lcm(FiiE)\n return YKHO.convert_int(Aofo)",
"def EIJH(*qIxc):\n return Pusg(Bs... | [
"0.8637098",
"0.84983015",
"0.84030634",
"0.83522046",
"0.80996907",
"0.80342656",
"0.80255574",
"0.7862657",
"0.77300197",
"0.74369246",
"0.7263009",
"0.7253001",
"0.7250591",
"0.7133821",
"0.7120362",
"0.71008736",
"0.6970553",
"0.69684327",
"0.6910622",
"0.68430954",
"0.68... | 0.8065583 | 5 |
Given a numpy array whose (0,0) point is in the topleft corner, return a new numpy array whose (0,0) point is in the center of the array. | def Zxkf(qw7D):
return nt1v(qw7D) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hgjH(YKHO) -> PvyL:\n return PvyL(oyIN.append(-YKHO.array[:-1, -1], [YKHO.array[0, 0]]), copy=False)",
"def hgjH(k0lF):\n return k0lF - oyIN.mean(k0lF, axis=0)",
"def hgjH(nPrm: np.ndarray) -> oyIN.ndarray:\n H_nZ = nPrm - oyIN.mean(nPrm)\n return H_nZ",
"def DDWY(WKvO, LVAh):\n exwG = len... | [
"0.7169766",
"0.68840086",
"0.68679196",
"0.679533",
"0.6713338",
"0.66502476",
"0.66006935",
"0.6590652",
"0.6576128",
"0.6539651",
"0.65349793",
"0.65321416",
"0.64758396",
"0.64741135",
"0.6468534",
"0.6367594",
"0.63503087",
"0.6333983",
"0.63058674",
"0.62713474",
"0.625... | 0.6690417 | 5 |
Plots multiple solution candiates with the best reachable values and the previous candidate chosen shown, if defined. | def Dx69(YKHO, YBbd: np.ndarray, ZWCE: Optional[List[str]]=None, Crrw: Optional[List[str]]=None, P6Dd: Optional[np.ndarray]=None, AOBR: Optional[np.ndarray]=None, Htse: Optional[Tuple[int, int]]=(2, 2)) -> QD4e:
if YBbd.size == 0:
LZpg = cqbg(specs=[[{'type': 'polar'}]])
LZpg['layout']['autosize'] =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFVY(YKHO, YBbd: np.ndarray, ZWCE: Optional[List[str]]=None, Crrw: Optional[List[str]]=None) -> QD4e:\n if YBbd.ndim == 1:\n YBbd = YBbd.reshape(1, -1)\n jXTi = YKHO.scaler.inverse_transform(YBbd)\n jXTi = oyIN.where(YKHO.is_max, -jXTi, jXTi)\n Mg41 = YKHO.scaler.inverse_transform(YKHO.nadir... | [
"0.61548024",
"0.61396044",
"0.609146",
"0.60657936",
"0.6041964",
"0.6004558",
"0.59986436",
"0.597824",
"0.5947249",
"0.591701",
"0.59051543",
"0.5902857",
"0.58922356",
"0.58778805",
"0.5873142",
"0.58652675",
"0.5814377",
"0.5807774",
"0.58034045",
"0.57915014",
"0.578379... | 0.6086702 | 3 |
Plots multiple solution candiates with the best reachable values and the previous candidate chosen shown, if defined. | def byHf(YKHO, YBbd: np.ndarray, ZWCE: Optional[List[str]]=None, Crrw: Optional[List[str]]=None, P6Dd: Optional[np.ndarray]=None, AOBR: Optional[np.ndarray]=None, SuM2: Optional[int]=None) -> QD4e:
if YBbd.size == 0:
LZpg = cqbg(specs=[[{'type': 'polar'}]])
LZpg['layout']['autosize'] = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFVY(YKHO, YBbd: np.ndarray, ZWCE: Optional[List[str]]=None, Crrw: Optional[List[str]]=None) -> QD4e:\n if YBbd.ndim == 1:\n YBbd = YBbd.reshape(1, -1)\n jXTi = YKHO.scaler.inverse_transform(YBbd)\n jXTi = oyIN.where(YKHO.is_max, -jXTi, jXTi)\n Mg41 = YKHO.scaler.inverse_transform(YKHO.nadir... | [
"0.61547595",
"0.6136912",
"0.6089957",
"0.60864943",
"0.6065055",
"0.6041163",
"0.600414",
"0.5998162",
"0.5976906",
"0.59468937",
"0.5915199",
"0.59041744",
"0.59011626",
"0.58912796",
"0.5877425",
"0.5863413",
"0.5813493",
"0.5807434",
"0.5801998",
"0.57903796",
"0.5783585... | 0.5872967 | 15 |
get dependencies of a node as a string | def Nt4a(Q6kx):
return xWA6.join([QZnA.from_node.name for pKvt in Q6kx.inputs for QZnA in pKvt.links]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SMAd(Ziit, RcQu):\n pass",
"def fHMd(UksD):\n SMAd = UksD.get('depends')\n if SMAd:\n return list((WKvO.strip() for WKvO in SMAd.split(',')))\n return list()",
"def cPdt(YKHO):\n return (WKvO.name for WKvO in tuple(YKHO._path_order)[:-1])",
"def oski(zFiD):\n Jpfm = None\n kjY... | [
"0.69408214",
"0.687909",
"0.68426865",
"0.66887313",
"0.6592374",
"0.65028894",
"0.64608824",
"0.6354269",
"0.6288969",
"0.62722105",
"0.6210963",
"0.6181133",
"0.6157697",
"0.6152346",
"0.614994",
"0.6114291",
"0.61019945",
"0.6082801",
"0.6047776",
"0.60409975",
"0.6016851... | 0.8223838 | 0 |
Compute the Root Mean Squared Log Error for hypothesis h and targets y. | def dUVe(MKlR, LVAh):
return oyIN.sqrt(oyIN.square(oyIN.log1p(MKlR) - oyIN.log1p(LVAh)).mean()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8W6(W3ev, LVAh):\n return -float(LVAh) * epAf.log(W3ev) - (1 - float(LVAh)) * epAf.log(1 - W3ev)",
"def kizm(YKHO, MKlR, LVAh):\n return oyIN.mean(-LVAh * oyIN.log(MKlR) - (1 - LVAh) * oyIN.log(1 - MKlR))",
"def FN4Y(a1PO, LVAh, NArs):\n F4_u, jtyf = NArs\n return oyIN.array([[-2 * F4_u / jtyf... | [
"0.6944153",
"0.68330854",
"0.67480415",
"0.67438126",
"0.66873884",
"0.66805595",
"0.66396844",
"0.66388494",
"0.6617601",
"0.65180314",
"0.6513182",
"0.6487378",
"0.6460953",
"0.6455136",
"0.64532924",
"0.6397268",
"0.63650036",
"0.6341871",
"0.63181645",
"0.6311191",
"0.63... | 0.74232453 | 0 |
Get the current placement group which a task or actor is using. It returns None if there's no current placement group for the worker. For example, if you call this method in your driver, it returns None (because drivers never belong to any placement group). | def a1KB() -> h8nf[pwCG]:
_Lo6()
if U4RJ():
return None
i4ai = spHt._private.worker.global_worker
i4ai.check_connected()
Wrxy = i4ai.placement_group_id
if Wrxy.is_nil():
return None
return pwCG(Wrxy) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pk9O(IesV, zn0c, hKn5, Q64Y, KAOR):\n if IesV == 'slurm':\n oa7L = iVGz.client('ec2', region_name=zn0c)\n CCMb = QBbI(hKn5, Q64Y, KAOR)\n TSVQ = oa7L.describe_launch_template_versions(LaunchTemplateName=CCMb, Versions=['$Latest'])['LaunchTemplateVersions'][0]['LaunchTemplateData']\n ... | [
"0.72052115",
"0.6665807",
"0.65904397",
"0.6445615",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
"0.6381447",
... | 0.83734584 | 0 |
Evaluate the loss of the new labels given the gt logits | def g1lA(YKHO, La78, pan_, ZHfW, cCrA):
if YKHO.combine_loss:
OJy8, lNm8, eQSh = YKHO.loss_sampled(La78, pan_, ZHfW, cCrA)
N77f = YKHO.loss_sampled.alpha * lNm8 + (1 - YKHO.loss_sampled.alpha) * OJy8
else:
OJy8 = rkyC(La78, pan_, ZHfW, cCrA)
N77f = OJy8
eQSh = None
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N77f(YKHO, KeL5, Crrw):\n N77f = ZylS.nn.softmax_cross_entropy_with_logits(KeL5, Crrw)\n return N77f",
"def N77f(TBxD, _ger):\n return 0 * ZylS.reduce_mean(ZylS.pow(ZylS.reduce_max(TBxD, axis=[1, 2, 3]) - ZylS.reduce_max(_ger, axis=[1, 2, 3]), 2)) + 1 * ZylS.reduce_mean(ZylS.reduce_sum(ZylS.pow(TBxD... | [
"0.72544897",
"0.7127635",
"0.71143204",
"0.70776314",
"0.7064238",
"0.70633477",
"0.7037681",
"0.69847697",
"0.69225097",
"0.692201",
"0.68891484",
"0.68772316",
"0.684696",
"0.6831647",
"0.6822186",
"0.68178815",
"0.6804476",
"0.6791076",
"0.675879",
"0.67530364",
"0.672562... | 0.0 | -1 |
Create an abstraction depending on the type of abstraction as defined by keyword. Set created abstraction to self.params['s_a'] | def BwrE(YKHO):
ChaG = ['temporal', 'discretization']
if 'abstraction_type' not in YKHO.params.keys():
raise ValueError('"abstraction_type" parameter not set')
if YKHO.params['abstraction_type'] not in ChaG:
raise NotImplementedError('Abstraction type {} is not supported'.format(YKHO.params[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H9qq(YKHO, QpfX, kPzY, id, **B2fa):\n nJbn = OZpC(QpfX, 'portal_types')\n ACia = YKHO.portal.portal_catalog\n bWDO = nJbn.getTypeInfo(kPzY)\n bWDO.constructInstance(QpfX, id, **B2fa)\n YEnM = getattr(QpfX.aq_inner.aq_explicit, id)\n ACia.indexObject(YEnM)\n return YEnM",
"def Eg0m(YKHO, ... | [
"0.5070106",
"0.50078464",
"0.4940335",
"0.48361608",
"0.48178804",
"0.47829193",
"0.47829193",
"0.47172403",
"0.47114205",
"0.4698258",
"0.4691944",
"0.4678074",
"0.46548924",
"0.4643124",
"0.46404707",
"0.46294615",
"0.46186808",
"0.46126658",
"0.4611088",
"0.45788893",
"0.... | 0.5827532 | 0 |
Lemmatize verbs in list of tokenized words | def sAwM(V22M):
LkXt = GFnk()
A1xJ = []
for GIN8 in V22M:
dhx_ = LkXt.lemmatize(GIN8, pos='v')
A1xJ.append(dhx_)
return A1xJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iKsa(YKHO, WrFl):\n LkXt = Dhdw.stem.WordNetLemmatizer()\n for i34x in WrFl:\n i34x['tokens'] = [LkXt.lemmatize(eOtH) for eOtH in i34x['tokens']]\n return WrFl",
"def v_nw(s2mk):\n nb0Z = Dhdw.pos_tag(s2mk)\n nb0Z = [(eOtH, VVrx(TZ9E)) for eOtH, TZ9E in nb0Z if VVrx(TZ9E) is not None]\n... | [
"0.8067771",
"0.7928515",
"0.7899156",
"0.78792626",
"0.78611904",
"0.7824898",
"0.7824898",
"0.7824898",
"0.7773358",
"0.7739894",
"0.7668136",
"0.7657103",
"0.76311237",
"0.7627948",
"0.76015055",
"0.75841796",
"0.7540454",
"0.7527206",
"0.75213915",
"0.74951875",
"0.748392... | 0.7743267 | 9 |
Get two lists and combine them without duplications, return the result. | def PeMf(f75j, gYXc):
return list(set(f75j + gYXc)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A6Ko(vASe, OQAR):\n WZpC = [YRbF for YRbF in OQAR if YRbF not in vASe]\n return vASe + WZpC",
"def gKI6(jzdc, Fg_i):\n Aofo = list(set(jzdc + Fg_i))\n return Aofo",
"def b65I(w_3R, XxT4):\n return dDv2(w_3R + XxT4)",
"def gKI6(WKvO, LVAh):\n DatS = [O5iP for O5iP in LVAh]\n [DatS.rem... | [
"0.8435825",
"0.81150955",
"0.7741576",
"0.7613016",
"0.7506635",
"0.7486779",
"0.74068993",
"0.73686993",
"0.7345201",
"0.7296532",
"0.7254629",
"0.7253603",
"0.7174218",
"0.7165753",
"0.7163503",
"0.71619534",
"0.7158189",
"0.71221536",
"0.7113193",
"0.71125394",
"0.7084906... | 0.82209843 | 1 |
fake quantize input according to scale and number of bits, dequantize quantize(input)) | def KVH6(OaeV, input, NXpY, UOVU=8):
return F9fN(AaEW(input, NXpY, UOVU), NXpY) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AaEW(input, NXpY, UOVU):\n knl1 = RT0q(UOVU)\n return input.mul(NXpY).round().clamp(-knl1, knl1)",
"def F9fN(input, NXpY):\n return input.div(NXpY)",
"def vD2t(vexM, NArs):\n if not NArs.quantize:\n return vexM\n return ZylS.to_float(ZylS.bitcast(vexM, ZylS.int16)) * NArs.quantization... | [
"0.8112472",
"0.8074006",
"0.7144247",
"0.7089342",
"0.6870601",
"0.6700027",
"0.6653627",
"0.65392315",
"0.6523848",
"0.64894724",
"0.647571",
"0.6473851",
"0.6467823",
"0.63638437",
"0.63349324",
"0.62899005",
"0.6289764",
"0.6251852",
"0.62447923",
"0.6232784",
"0.61892384... | 0.7678422 | 2 |
Removes duplicate dict in a list of dict by enforcing unique keys | def dDv2(ybN4):
UDvh, ZVgY = ([], [])
try:
for dict in ybN4:
if dict['Key'] not in ZVgY:
UDvh.append(dict)
ZVgY.append(dict['Key'])
except KeyError:
return list(Pusg(lambda Mkmy, WKvO: Mkmy + [WKvO] if WKvO not in Mkmy else Mkmy, ybN4, []))
exc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Orhr(qFa0):\n return list(dict.fromkeys(qFa0))",
"def EIZV(yv6U):\n return list(dict.fromkeys(yv6U))",
"def DaEM(IqQl):\n return list(U8Lr.fromkeys(IqQl))",
"def dDv2(vC9B):\n return list(g760.OrderedDict.fromkeys(vC9B))",
"def dWqx(DumB):\n PwWw = {}\n return [PwWw.setdefault(WKvO, W... | [
"0.7659327",
"0.76024866",
"0.7469178",
"0.7402857",
"0.7311301",
"0.72745657",
"0.719224",
"0.7104879",
"0.7088021",
"0.6984568",
"0.68685746",
"0.68585867",
"0.68555075",
"0.6850497",
"0.68144375",
"0.68107545",
"0.68107545",
"0.68107545",
"0.68107545",
"0.6777582",
"0.6773... | 0.7955033 | 0 |
Get the backend config dictionary for tensorrt backend | def f5Mh():
kdk0 = {'input_dtype': ht2j.qint8, 'weight_dtype': ht2j.qint8, 'bias_dtype': ht2j.float, 'output_dtype': ht2j.qint8}
iIxD = {'input_dtype': ht2j.qint8, 'output_dtype': ht2j.qint8}
H7zv = {'pattern': ht2j.addmm, 'observation_type': mj4j.OUTPUT_USE_DIFFERENT_OBSERVER_AS_INPUT, 'dtype_configs': [kd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GwmY(YKHO):\n _Fei = YKHO._cfg\n return {'method': _Fei['parameter']['method'], 'parameter': _Fei['parameter']['parameter'], 'converter': _Fei['converter']}",
"def JLXL():\n return ldqK.backend",
"def JLXL():\n if nMvt.name == 'tensorflow':\n return nMvt.gates\n else:\n return ... | [
"0.7652685",
"0.67033696",
"0.6584038",
"0.65608513",
"0.6548583",
"0.65248185",
"0.6516686",
"0.64184374",
"0.63987154",
"0.6395776",
"0.63182575",
"0.63110787",
"0.62233305",
"0.6218643",
"0.61950547",
"0.61917424",
"0.61863124",
"0.61863124",
"0.61863124",
"0.6177726",
"0.... | 0.80869037 | 0 |
Returns a numpy of centroids, one for each region | def uXnH(nPrm):
yHxN = dict.fromkeys(nPrm.keys(), 0)
for zn0c in nPrm.keys():
yHxN[zn0c] = sum(nPrm[zn0c]) / len(nPrm[zn0c])
return yHxN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e6ux(zn0c):\n return tuple([int(oyIN.mean(h16r)) for h16r in zn0c.index_arrays])",
"def hcn5(zQZR, nPrm):\n duSK = XTiz.array([nPrm[zn0c, :].mean(axis=0) for zn0c in zQZR])\n return duSK",
"def yHxN(YKHO):\n Aofo = oyIN.zeros((YKHO.num_cells(), 3), 'd')\n for Z9rn, w2B8 in enumerate(YKHO.con... | [
"0.83360714",
"0.7850837",
"0.7807944",
"0.75097406",
"0.7508058",
"0.74525756",
"0.74138975",
"0.74099153",
"0.7336453",
"0.7329316",
"0.7320887",
"0.7316588",
"0.7295796",
"0.72652006",
"0.7246296",
"0.72099423",
"0.71674645",
"0.7166707",
"0.71318537",
"0.7116343",
"0.7112... | 0.73327094 | 9 |
Test list of eleven values which are in a randomized order. | def b5KY(iLrl, aLhP):
SuM2(iLrl)
assert iLrl == aLhP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Tuok(AiJD, ZvFy):\n SuM2(AiJD)\n assert AiJD == ZvFy",
"def xdqz(ZvFy):\n SuM2(ZvFy)\n assert ZvFy == ZvFy",
"def tZtn(YKHO):\n tuKI.seed(100)\n for bGrB in range(1000):\n f4hs = tuKI.randint(1, 100)\n qw7D = [tuKI.randint(-100, 100) for bGrB in range(f4hs)]\n qw7D.so... | [
"0.8191248",
"0.7238493",
"0.7206407",
"0.69676065",
"0.6878258",
"0.6554009",
"0.6462049",
"0.64551514",
"0.6438443",
"0.63462573",
"0.63250226",
"0.63011056",
"0.62527955",
"0.6242811",
"0.6238711",
"0.622909",
"0.62112445",
"0.62103754",
"0.61840475",
"0.613916",
"0.613530... | 0.84926856 | 0 |
Test list of ten values which are already sorted correctly in order. | def mnv9(nUDn, ZvFy):
SuM2(nUDn)
assert nUDn == ZvFy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xdqz(ZvFy):\n SuM2(ZvFy)\n assert ZvFy == ZvFy",
"def Tuok(AiJD, ZvFy):\n SuM2(AiJD)\n assert AiJD == ZvFy",
"def Io3S(DMbc, Aofo):\n from radix_sort import radix_sort\n assert radix_sort(DMbc) == Aofo",
"def Dyjk(YKHO):\n Qdf1(YKHO.sorted_list_of_integers)\n YKHO.assertEqual(YKHO... | [
"0.73469335",
"0.71631163",
"0.70587134",
"0.683104",
"0.67317015",
"0.6705616",
"0.6651071",
"0.6641569",
"0.65425795",
"0.6510326",
"0.6488569",
"0.64618886",
"0.64524215",
"0.64342743",
"0.6410144",
"0.63909596",
"0.63789076",
"0.6376478",
"0.6363334",
"0.63430554",
"0.633... | 0.7394643 | 0 |
Read a model from a fits file sed kurucz model | def H1lE(Ux0P):
cSpi = Ux0P.split('[')[-1].replace(']', '')
BgG7 = Ux0P.split('[')[0]
nPrm = tujn.getdata(BgG7)
print('reading: ', BgG7)
print('gravity: ', cSpi)
qJa9 = nPrm['WAVELENGTH']
shSu = nPrm[cSpi]
return (qJa9, shSu) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oLG2(YKHO):\n Sd0C = Hy7s.path.join(YKHO.working_directory, YKHO.modelfile)\n IGe9 = 0\n I1mm = True\n mkiJ = open(Sd0C)\n mkiJ.readline()\n while I1mm:\n try:\n IGe9 = int(mkiJ.readline().strip().split()[0])\n except:\n I1mm = False\n FYrf = oyIN.genfro... | [
"0.6918783",
"0.66066957",
"0.62987524",
"0.6291175",
"0.62617064",
"0.62533545",
"0.6119337",
"0.61125803",
"0.6040748",
"0.60319304",
"0.6023759",
"0.6023759",
"0.5993674",
"0.59793043",
"0.5961938",
"0.5958299",
"0.5951649",
"0.59251386",
"0.59121245",
"0.59000605",
"0.589... | 0.0 | -1 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83931077",
"0.83551943",
"0.8295509",
"0.8132744",
"0.8115034",
"0.8100248",
"0.8099668",
"0.80982566",
"0.80982566",
"0.809302",
"0.809302",
"0.809302",
"0.809302",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.808576",
"0.80673736",
"0.80593926",
"0.80581796",
"0.... | 0.0 | -1 |
Fill embedding tensor with values from the uniform distribution. | def RqWc(KTQ3: torch.Tensor) -> None:
oug5 = oyIN.sqrt(3.0 / KTQ3.size(1))
ht2j.nn.init.uniform_(KTQ3, -oug5, oug5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oFwb(YKHO) -> None:\n YKHO.initialize_weights()\n _mSQ = YKHO.split_embedding_weights()\n for bwC1 in _mSQ:\n bwC1[0].copy_(ht2j.randint(0, 255, size=bwC1[0].shape, dtype=ht2j.uint8, device=YKHO.current_device))",
"def qIlm(KTQ3):\n oug5 = oyIN.sqrt(3.0 / KTQ3.size(1))\n ht2j.nn.init.un... | [
"0.6747538",
"0.6724093",
"0.6724093",
"0.6696166",
"0.6664237",
"0.653774",
"0.6390361",
"0.6267438",
"0.61991304",
"0.6008379",
"0.59907144",
"0.59907144",
"0.59907144",
"0.59907144",
"0.59758276",
"0.5946665",
"0.5918721",
"0.5895344",
"0.58557105",
"0.5852128",
"0.5852128... | 0.6684516 | 4 |
Returns the string representation of the model | def gTzM(YKHO):
import simplejson as qQXR
if jKi7.PY2:
import sys
U3hF(sys)
sys.setdefaultencoding('utf-8')
return qQXR.dumps(yInN(YKHO), ensure_ascii=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Strips a set of keys from a dictionary | def y7jt(cmPJ, sjXb):
return {G1Hx: Ty9i for G1Hx, Ty9i in filter(lambda a1PO: a1PO[0] in sjXb, cmPJ.items())} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eWjj(weiJ, D1du):\n return {H5ew: BWXx for H5ew, BWXx in weiJ.items() if H5ew not in D1du}",
"def pWgJ(cmPJ):\n rADJ = ['vrerr6', 'vterr6']\n for H5ew in cmPJ.copy().keys():\n if any((nZHw in H5ew for nZHw in rADJ)):\n cmPJ.pop(H5ew, None)",
"def WxnL(As9e):\n for H5ew in As9e... | [
"0.8007122",
"0.73236144",
"0.71387964",
"0.70625407",
"0.69798505",
"0.6861881",
"0.6827468",
"0.67739195",
"0.6749921",
"0.6672554",
"0.6594808",
"0.6587453",
"0.65739155",
"0.6573683",
"0.6560112",
"0.6492659",
"0.6481833",
"0.6449829",
"0.64246017",
"0.6410748",
"0.640780... | 0.64549035 | 17 |
Inplace sorting of an array containing RGB value in order 'R', 'G', 'B' | def _Kuw(qw7D):
gqRb = 0
Hpmo = 0
ODP9 = len(qw7D) - 1
while Hpmo <= ODP9:
if qw7D[Hpmo] == 'R':
qw7D[gqRb], qw7D[Hpmo] = (qw7D[Hpmo], qw7D[gqRb])
gqRb += 1
Hpmo += 1
elif qw7D[Hpmo] == 'B':
qw7D[ODP9], qw7D[Hpmo] = (qw7D[Hpmo], qw7D[ODP9])... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUdi(YKHO) -> None:\n ...",
"def rZUv(tn62):\n oLWn = flsP(tn62)\n fDE4 = oyIN.argsort(oLWn[..., 0], axis=1).flatten()\n gw6D = (AkCW(oLWn[:, fDE4, :]) * 255).astype('uint8')\n return gw6D",
"def kA_W(YKHO, xYvp):\n DpUl = 0\n aPd6 = -1\n A3Vt = len(xYvp)\n while DpUl < A3Vt:\n ... | [
"0.7393132",
"0.7155286",
"0.7001182",
"0.69629365",
"0.68642193",
"0.68472606",
"0.68285835",
"0.680264",
"0.6801242",
"0.6784197",
"0.67670006",
"0.675891",
"0.67381644",
"0.673065",
"0.6696614",
"0.6677564",
"0.6643701",
"0.66419286",
"0.6637054",
"0.66311824",
"0.6622096"... | 0.8647037 | 0 |
Get all required S3 keys for this subject Returns | def g6I0(YKHO):
tX49 = {'raw': '/'.join([YKHO.study.s3_prefix, YKHO.subject_id]).lstrip('/'), 'derivatives': {JRYC: '/'.join([*JRYC.split('/')[1:], YKHO.subject_id]).lstrip('/') for JRYC in YKHO.study.derivative_types}}
AhGH = {'raw': list(set(yDWs(bucket=YKHO.study.bucket, prefix=tX49['raw'], anon=YKHO.study.a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhGH(YKHO):\n return YKHO._s3_keys",
"def g6I0(YKHO):\n tX49 = {'raw': '/'.join([YKHO.study.s3_prefix, YKHO.subject_id]).lstrip('/'), 'derivatives': '/'.join([YKHO.study.s3_prefix, 'derivatives', YKHO.subject_id]).lstrip('/')}\n AhGH = {SLLj: list(set(yDWs(bucket=YKHO.study.bucket, prefix=y0cW, anon... | [
"0.82655686",
"0.7866587",
"0.75139976",
"0.7498587",
"0.7379272",
"0.7353251",
"0.7341395",
"0.73336667",
"0.73264134",
"0.7307917",
"0.72741157",
"0.72584766",
"0.7250633",
"0.72225994",
"0.72134376",
"0.7205982",
"0.6962823",
"0.6903123",
"0.6823791",
"0.67419434",
"0.6736... | 0.8129648 | 1 |
Get all required S3 keys for this subject Returns | def g6I0(YKHO):
tX49 = {'raw': '/'.join([YKHO.study.s3_prefix, YKHO.subject_id]).lstrip('/'), 'derivatives': '/'.join([YKHO.study.s3_prefix, 'derivatives', YKHO.subject_id]).lstrip('/')}
AhGH = {SLLj: list(set(yDWs(bucket=YKHO.study.bucket, prefix=y0cW, anon=YKHO.study.anon))) for SLLj, y0cW in tX49.items()}
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AhGH(YKHO):\n return YKHO._s3_keys",
"def g6I0(YKHO):\n tX49 = {'raw': '/'.join([YKHO.study.s3_prefix, YKHO.subject_id]).lstrip('/'), 'derivatives': {JRYC: '/'.join([*JRYC.split('/')[1:], YKHO.subject_id]).lstrip('/') for JRYC in YKHO.study.derivative_types}}\n AhGH = {'raw': list(set(yDWs(bucket=YK... | [
"0.82655686",
"0.8129648",
"0.75139976",
"0.7498587",
"0.7379272",
"0.7353251",
"0.7341395",
"0.73336667",
"0.73264134",
"0.7307917",
"0.72741157",
"0.72584766",
"0.7250633",
"0.72225994",
"0.72134376",
"0.7205982",
"0.6962823",
"0.6903123",
"0.6823791",
"0.67419434",
"0.6736... | 0.7866587 | 2 |
A dict of S3 keys that are not in subject directories | def VOO1(YKHO):
return YKHO._non_subject_s3_keys | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyed(YKHO):\n VOO1 = {}\n VV6r = '/'.join([YKHO.bucket, YKHO.s3_prefix]).rstrip('/')\n r7gI = anmt(s3_prefix=VV6r, anon=YKHO.anon)['other']\n r7gI = [G1Hx for G1Hx in r7gI if not G1Hx.endswith('derivatives')]\n OZUh = anmt(s3_prefix='/'.join([YKHO.bucket, YKHO.s3_prefix, 'derivatives']), anon=YK... | [
"0.7908438",
"0.77695376",
"0.68329597",
"0.66990596",
"0.66140187",
"0.660947",
"0.6205337",
"0.6190575",
"0.6157339",
"0.6142731",
"0.60519546",
"0.5953564",
"0.5942088",
"0.59296274",
"0.59192353",
"0.58672357",
"0.57917726",
"0.57231504",
"0.57180405",
"0.5699925",
"0.564... | 0.76484054 | 2 |
Return a list of available derivatives pipelines Returns list list of available derivatives pipelines | def wzTY(YKHO):
VV6r = '/'.join([YKHO.bucket, YKHO.s3_prefix]).rstrip('/')
r7gI = anmt(s3_prefix=VV6r, anon=YKHO.anon)['other']
YOT4 = '/'.join([VV6r, 'derivatives'])
if YOT4 in r7gI:
return anmt(s3_prefix=YOT4, anon=YKHO.anon)['other']
else:
return [] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2wP(YEnM):\n dDnA = []\n FLXQ = ccKF.listHistory(YEnM) or []\n Wetf = ccKF.ls(FLXQ, type='geometryFilter', long=True)\n for Csk6 in Wetf:\n if Csk6 not in ['tweak1']:\n dDnA.append(Csk6)\n return dDnA",
"def Fi7w(YKHO):\n Fi7w = [('df_dt', 'f', 't'), ('df_dx', 'f', 'x'), ... | [
"0.59459674",
"0.58381927",
"0.56879085",
"0.5440308",
"0.54180026",
"0.53937715",
"0.53835905",
"0.53808576",
"0.53166705",
"0.52713495",
"0.52523553",
"0.5237864",
"0.5237864",
"0.52089316",
"0.51629376",
"0.51490694",
"0.51419485",
"0.5131317",
"0.512362",
"0.51139945",
"0... | 0.4817035 | 81 |
Return a list of 'nonsubject' files In this context, a 'nonsubject' file is any file or directory that is not a subject ID folder. This method is different from AFQ.data.S3BIDSStudy because the HBN dataset is not BIDS compliant Returns dict dict with keys 'raw' and 'derivatives' and whose values are lists of S3 keys fo... | def uyed(YKHO):
VOO1 = {}
VV6r = '/'.join([YKHO.bucket, YKHO.s3_prefix]).rstrip('/')
r7gI = anmt(s3_prefix=VV6r, anon=YKHO.anon)['other']
r7gI = [G1Hx for G1Hx in r7gI if not G1Hx.endswith('derivatives')]
OZUh = anmt(s3_prefix='/'.join([YKHO.bucket, YKHO.s3_prefix, 'derivatives']), anon=YKHO.anon)['... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyed(YKHO):\n VOO1 = {}\n VV6r = '/'.join([YKHO.bucket, YKHO.s3_prefix]).rstrip('/')\n r7gI = anmt(s3_prefix=VV6r, anon=YKHO.anon)['other']\n r7gI = [G1Hx for G1Hx in r7gI if not G1Hx.endswith('derivatives')]\n OZUh = []\n for JRYC in YKHO.derivative_types:\n OZUh.append(anmt(s3_prefix... | [
"0.74959654",
"0.69018155",
"0.57381",
"0.5715679",
"0.57048565",
"0.5688957",
"0.565495",
"0.5585163",
"0.55398893",
"0.5482355",
"0.5454332",
"0.5446369",
"0.54298913",
"0.5423224",
"0.54190505",
"0.53780204",
"0.53335327",
"0.5286276",
"0.525585",
"0.5245209",
"0.5239595",... | 0.7467211 | 1 |
Resets all of the metric state variables. This function is called between epochs/steps, when a metric is evaluated during training. | def s0Da(YKHO):
EEZx = oyIN.zeros(YKHO.M)
kT5e = oyIN.zeros((YKHO.M, YKHO.M))
ZylS.keras.backend.batch_set_value([(YKHO.O, kT5e), (YKHO.actualHist, EEZx), (YKHO.predictedHist, EEZx)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()",
"def cAw6(YKHO):\n YKHO._session.run(YKHO._reset_variables_op)",
"def s0Da(YKHO):\n bGrB = [r8hN.reset_states() for r8hN in YKHO.metrics.values()]",
"def LfYq(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()... | [
"0.8416125",
"0.8196022",
"0.8039665",
"0.79794157",
"0.79158264",
"0.77745134",
"0.77569306",
"0.7674917",
"0.7574636",
"0.7524522",
"0.7514582",
"0.7512019",
"0.7497305",
"0.74654675",
"0.7465395",
"0.7449564",
"0.74431604",
"0.7409692",
"0.7357914",
"0.73347396",
"0.725738... | 0.70254636 | 70 |
Get the parameters for this operator. | def W6RH(YKHO, y4ha=False):
return aM69.get_params(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SGPK(YKHO):\n return YKHO.params",
"def SGPK(YKHO):\n return YKHO.params",
"def mI5I(YKHO):\n return YKHO.__params",
"def SGPK(YKHO):\n return YKHO._params",
"def W6RH(YKHO):\n raise NotImplementedError()",
"def W6RH(YKHO):\n return YKHO.params",
"def W6RH(YKHO):\n return YKHO.... | [
"0.8269885",
"0.8269885",
"0.8255318",
"0.819415",
"0.8181302",
"0.8162396",
"0.81607324",
"0.81607324",
"0.8160544",
"0.8160544",
"0.8160544",
"0.8160544",
"0.8131562",
"0.8131562",
"0.8131562",
"0.80888456",
"0.79791254",
"0.7972032",
"0.7972032",
"0.7972032",
"0.7972032",
... | 0.0 | -1 |