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 |
|---|---|---|---|---|---|---|
Render website's home page. | def kZiy():
if not cuiw.get('logged_in'):
return vKnz(nKyW('welcome'))
return TvZl('home.html', filename='yarg.jpg') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def C_QL():\n return TvZl('home/index.html', title='Bem vindo!')",
"def C_QL():\n return TvZl('home/a_homepage.html', title='Welcome')",
"def C_QL():\n ... | [
"0.87248576",
"0.85797024",
"0.85035866",
"0.8486288",
"0.84611857",
"0.84365207",
"0.84302676",
"0.841985",
"0.8396901",
"0.8396901",
"0.8375347",
"0.8356703",
"0.83518267",
"0.8341115",
"0.8341115",
"0.8337803",
"0.8337803",
"0.8337803",
"0.8337803",
"0.8337803",
"0.8337803... | 0.0 | -1 |
Render the website's about page. | def vsuQ():
return TvZl('about.html', name='COMP3161') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')",
"def vsuQ():\n return TvZl... | [
"0.8790411",
"0.86976695",
"0.86399585",
"0.8612098",
"0.84899473",
"0.84783703",
"0.8467333",
"0.8434878",
"0.8428624",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"0.84239376",
"... | 0.81502104 | 44 |
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
geh0.headers['Cache-Control'] = 'public, max-age=0'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=60'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0",
"def PY... | [
"0.8221727",
"0.8220911",
"0.8220911",
"0.8220911",
"0.8220911",
"0.81940746",
"0.81111443",
"0.80852413",
"0.79712725",
"0.78637785",
"0.7659569",
"0.72363365",
"0.71586627",
"0.71513546",
"0.71513546",
"0.71502376",
"0.71502376",
"0.7140211",
"0.7135492",
"0.7126684",
"0.71... | 0.8161616 | 32 |
Calculate the sum of two sparse vectors and return the result in a dictionary format. | def ZNm0(P1gU, yZ9o):
y3uY = {}
for ZokF, Z6H0 in P1gU.items():
for FhTw, nUaF in yZ9o.items():
if ZokF == FhTw and ZokF not in y3uY:
y3uY[ZokF] = Z6H0 + nUaF
elif ZokF == FhTw and ZokF in y3uY:
y3uY[ZokF] = Z6H0 + nUaF
elif ZokF not in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HovL(P1gU, yZ9o):\n iajq = {}\n for ZokF, Z6H0 in P1gU.items():\n for FhTw, nUaF in yZ9o.items():\n if ZokF == FhTw and ZokF not in iajq:\n iajq[ZokF] = Z6H0 * nUaF\n elif ZokF == FhTw and ZokF in iajq:\n iajq[ZokF] = Z6H0 * nUaF\n eli... | [
"0.7124283",
"0.6889215",
"0.6877189",
"0.6733175",
"0.66905344",
"0.65926844",
"0.656623",
"0.6475533",
"0.63227344",
"0.62896985",
"0.6284968",
"0.627809",
"0.6272497",
"0.62196934",
"0.6115688",
"0.61068386",
"0.60052073",
"0.5992203",
"0.58445925",
"0.5822916",
"0.5806268... | 0.82106096 | 0 |
Calculate the dot product of two sparse vectors | def HovL(P1gU, yZ9o):
iajq = {}
for ZokF, Z6H0 in P1gU.items():
for FhTw, nUaF in yZ9o.items():
if ZokF == FhTw and ZokF not in iajq:
iajq[ZokF] = Z6H0 * nUaF
elif ZokF == FhTw and ZokF in iajq:
iajq[ZokF] = Z6H0 * nUaF
elif ZokF not in... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIxP(hQHm, jlSq):\n TK2h = 0\n for d6pt, wEf2 in hQHm.items():\n TK2h += wEf2 * jlSq[d6pt]\n return TK2h",
"def uIxP(hQHm, jlSq):\n return sum((hQHm[G1Hx] * jlSq[G1Hx] for G1Hx in hQHm and jlSq))",
"def uIxP(jzdc, Fg_i):\n bf9h = jzdc if len(jzdc) > len(Fg_i) else Fg_i\n return sum... | [
"0.8588016",
"0.85827816",
"0.8509792",
"0.83972394",
"0.77708644",
"0.7765059",
"0.77622986",
"0.77348965",
"0.7693708",
"0.76644546",
"0.76425916",
"0.7636949",
"0.76328236",
"0.762522",
"0.75976425",
"0.7580816",
"0.75598097",
"0.7550884",
"0.7547763",
"0.7539679",
"0.7525... | 0.7924383 | 4 |
Adds a name to the Trie | def H2v5(YKHO, mWFP):
pu8V = mWFP.strip().split()[1:]
pu8V.append(mWFP)
for ZfUD in set(pu8V):
Q6kx = YKHO.root
for hcXw in ZfUD.lower():
if hcXw not in Q6kx:
Q6kx[hcXw] = {}
Q6kx = Q6kx[hcXw]
if 'NAME' in Q6kx:
Q6kx['NAME'].append(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J06O(ZOCz, mWFP):\n if len(mWFP) > 50:\n print('Name cannot be more than 50 characters.')\n return False\n elif not ''.join(mWFP.split()).isalpha():\n print('Name can have letters only.')\n return False\n else:\n ZOCz.add(mWFP)\n return True",
"def BMsF(NPoT... | [
"0.70509976",
"0.69548774",
"0.6879298",
"0.6813376",
"0.68061",
"0.66610354",
"0.66389817",
"0.66239053",
"0.660154",
"0.6596208",
"0.6566774",
"0.65286154",
"0.6515234",
"0.649796",
"0.6478823",
"0.6469316",
"0.63668275",
"0.63606405",
"0.6360007",
"0.6355421",
"0.634227",
... | 0.83315134 | 0 |
Calculate distance between two strings | def jc_V(Aofo, xDcj):
xXwN = {}
for GIN8 in Aofo:
TaUL = list(range(len(xDcj) + 1))
for JGjo, P0TW in enumerate(GIN8):
jT1j = [JGjo + 1]
for J7i1, zhlV in enumerate(xDcj):
if zhlV == P0TW:
jT1j.append(TaUL[J7i1])
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OVDL(j93S, Nqp_):\n if len(j93S) != len(Nqp_):\n return 1\n Kt31 = 0\n for dg7v, iYf1 in zip(j93S, Nqp_):\n if dg7v != iYf1:\n Kt31 += 1\n return Kt31",
"def Ayfi(Y0Fj, Pb4f):\n return KX6q.normalized_distance(Y0Fj, Pb4f)",
"def KlfW(YKHO, j93S, Nqp_):\n j93S, Nqp... | [
"0.8436867",
"0.8337954",
"0.82760596",
"0.8250981",
"0.8150399",
"0.80185306",
"0.7873248",
"0.7826535",
"0.7815353",
"0.7779506",
"0.77037585",
"0.76817346",
"0.765695",
"0.7629143",
"0.7577644",
"0.7559477",
"0.7524152",
"0.7472874",
"0.74681246",
"0.7446764",
"0.74416566"... | 0.0 | -1 |
Get list with nodes in calculated path. | def pmON(YKHO):
pmON = YKHO.bidirectional_cpp.getPath()
if len(pmON) <= 0:
return None
j6_k = []
for XP5J in pmON:
if XP5J in ['Source', 'Sink']:
j6_k.append(XP5J)
elif 'int' in YKHO._original_node_type.__name__:
j6_k.append(int(XP5J))
elif 'str' i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yoN9(pmON):\n Ziit = []\n oxKw = None\n while pmON is not None:\n Ziit.append((pmON.node, pmON.cost, oxKw))\n oxKw = pmON.evt\n pmON = pmON.prev\n Ziit.reverse()\n return Ziit",
"def Ngwo(YKHO, pmON):\n Ziit = []\n for Io6r in pmON:\n yKcO = YKHO.arc_info[Io6r... | [
"0.7453544",
"0.7348309",
"0.70827794",
"0.7017045",
"0.6989142",
"0.68755865",
"0.67927146",
"0.6762526",
"0.6754081",
"0.66521084",
"0.6635114",
"0.6635114",
"0.661701",
"0.6602719",
"0.6599474",
"0.65788794",
"0.65637726",
"0.6549999",
"0.6537768",
"0.65142936",
"0.6508103... | 0.0 | -1 |
Returns the list of branch restrictions in this repository. | def mAB6(YKHO, eJTR=None, mXDZ=None, vexM=None, BA9O=None):
NArs = {}
if eJTR is not None:
NArs['kind'] = eJTR
if mXDZ is not None:
NArs['pattern'] = mXDZ
if BA9O is not None:
NArs['sort'] = BA9O
if vexM is not None:
NArs['q'] = vexM
for TTX6 in YKHO._get_paged(No... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GZiu(YKHO) -> list[str]:\n M56f: list[kDLT] = []\n GSuR = YKHO._select('branches', M56f)\n return GSuR.execute_sync(list[str])",
"def EeBV(YKHO) -> x1iM[str]:\n YKHO.__verify_repo_initialized()\n GZiu = kJiB.get_branch_names(YKHO._env.branchenv)\n return GZiu",
"def NoBW(YKHO):\n GZiu ... | [
"0.65424573",
"0.64971113",
"0.63735795",
"0.6300394",
"0.6193839",
"0.6185651",
"0.61611485",
"0.60822934",
"0.6047024",
"0.6026878",
"0.6004292",
"0.5965082",
"0.59315646",
"0.59294176",
"0.59291744",
"0.58299065",
"0.5740456",
"0.5727023",
"0.57083917",
"0.56360984",
"0.55... | 0.0 | -1 |
Converts a 4D Tensor array into a numpy array. For cal scores | def aD5M(d6hw, JHWS=oyIN.float64):
if not isinstance(d6hw, oyIN.ndarray):
if isinstance(d6hw, ht2j.Tensor):
aEZk = d6hw.data
else:
return d6hw
kVTe = aEZk[0].cpu().float().numpy()
rwEO(kVTe, val=True, shp=True)
kVTe = (oyIN.transpose(kVTe, (0, 2, 3, 1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTDd(vhpA):\n raise NotImplementedError",
"def endw(WKvO):\n return WKvO.cpu().numpy()",
"def tmG6(YKHO, jwUG):\n try:\n from onnx.numpy_helper import to_array\n except ImportError as e:\n raise ImportError('Unable to import onnx which is required {}'.format(tTpl))\n dn1Z = to_... | [
"0.6903659",
"0.6776793",
"0.67104787",
"0.6690187",
"0.65658027",
"0.65466124",
"0.6445613",
"0.6351079",
"0.63429934",
"0.6290302",
"0.62625456",
"0.62572265",
"0.6221979",
"0.61997074",
"0.6182805",
"0.6178731",
"0.6160156",
"0.605828",
"0.60338384",
"0.6033349",
"0.599936... | 0.0 | -1 |
Converts a Tensor array into a numpy image array. | def FH0B(d6hw, JHWS=oyIN.float64):
if not isinstance(d6hw, oyIN.ndarray):
if isinstance(d6hw, ht2j.Tensor):
aEZk = d6hw.data
else:
return d6hw
kVTe = aEZk[0].cpu().float().numpy()
return kVTe.astype(JHWS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HY6T(rWax):\n VXjJ = rWax.to('cpu').clone().detach()\n VXjJ = VXjJ.numpy().squeeze(0)\n VXjJ = VXjJ.transpose(1, 2, 0)\n VXjJ = VXjJ * oyIN.array((0.229, 0.224, 0.225)) + oyIN.array((0.485, 0.456, 0.406))\n VXjJ = VXjJ.clip(0, 1)\n return VXjJ",
"def iugU(vhpA):\n xkjI = vhpA.data.cpu().... | [
"0.76706123",
"0.73970133",
"0.72891134",
"0.70688695",
"0.7039809",
"0.7034062",
"0.6989774",
"0.68511224",
"0.68485266",
"0.6814767",
"0.6798817",
"0.6775384",
"0.6773248",
"0.6742704",
"0.6710867",
"0.6661674",
"0.6646863",
"0.65954083",
"0.65807855",
"0.65459764",
"0.6499... | 0.6419002 | 30 |
Converts a Tensor array into a numpy image array. | def fQG_(d6hw, JHWS=oyIN.float64):
if not isinstance(d6hw, oyIN.ndarray):
if isinstance(d6hw, ht2j.Tensor):
aEZk = d6hw.data
else:
return d6hw
kVTe = aEZk[0].cpu().float().numpy()
kVTe = oyIN.tile(kVTe, (3, 1, 1))
kVTe = oyIN.transpose(kVTe, (1, 2, 0))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HY6T(rWax):\n VXjJ = rWax.to('cpu').clone().detach()\n VXjJ = VXjJ.numpy().squeeze(0)\n VXjJ = VXjJ.transpose(1, 2, 0)\n VXjJ = VXjJ * oyIN.array((0.229, 0.224, 0.225)) + oyIN.array((0.485, 0.456, 0.406))\n VXjJ = VXjJ.clip(0, 1)\n return VXjJ",
"def iugU(vhpA):\n xkjI = vhpA.data.cpu().... | [
"0.76706123",
"0.73970133",
"0.72891134",
"0.70688695",
"0.7039809",
"0.7034062",
"0.6989774",
"0.68511224",
"0.68485266",
"0.6814767",
"0.6798817",
"0.6775384",
"0.6773248",
"0.6742704",
"0.6710867",
"0.6661674",
"0.6646863",
"0.65954083",
"0.65807855",
"0.65459764",
"0.6499... | 0.6034303 | 61 |
Converts a Tensor array into a numpy image array. | def bJ9i(d6hw, JHWS=oyIN.uint8, t6ls=False, YDzg=False):
if not isinstance(d6hw, oyIN.ndarray):
if isinstance(d6hw, ht2j.Tensor):
aEZk = d6hw.data
else:
return d6hw
kVTe = aEZk[0].cpu().float().numpy()
if kVTe.shape[0] == 1:
if not t6ls:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HY6T(rWax):\n VXjJ = rWax.to('cpu').clone().detach()\n VXjJ = VXjJ.numpy().squeeze(0)\n VXjJ = VXjJ.transpose(1, 2, 0)\n VXjJ = VXjJ * oyIN.array((0.229, 0.224, 0.225)) + oyIN.array((0.485, 0.456, 0.406))\n VXjJ = VXjJ.clip(0, 1)\n return VXjJ",
"def iugU(vhpA):\n xkjI = vhpA.data.cpu().... | [
"0.7669704",
"0.73966134",
"0.7288977",
"0.7069187",
"0.70396876",
"0.70338136",
"0.69900244",
"0.68517536",
"0.6848797",
"0.68132806",
"0.67969334",
"0.67759657",
"0.67733705",
"0.6742648",
"0.6710874",
"0.6660042",
"0.66466665",
"0.6596863",
"0.65810174",
"0.6545738",
"0.65... | 0.0 | -1 |
Save a numpy image to the disk | def t7Mi(kVTe, QMAG, pAIe=1.0, YDzg=False):
if YDzg:
import matplotlib.pyplot as QrM1
Bcwd = QrM1.get_cmap('jet')
tZZP = Bcwd(kVTe[:, :, 0])[:, :, :3]
_31e = hnIv.fromarray((tZZP * 255.0).astype(oyIN.uint8))
else:
_31e = hnIv.fromarray(kVTe)
MKlR, yzQ0, bGrB = kVTe.sh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PiiI(VXjJ: np.ndarray, pmON: str) -> None:\n dU0b = hnIv.fromarray(VXjJ)\n dU0b.save(pmON)",
"def cWWj(qw7D: np.ndarray, pmON: str) -> None:\n VXjJ = hnIv.fromarray(qw7D.squeeze())\n VXjJ.save(pmON)",
"def HJXI(kVTe, QMAG):\n oyIN.save(QMAG, kVTe)",
"def PiiI(VXjJ, KrJk):\n z9Ny = VXjJ\... | [
"0.8147427",
"0.805823",
"0.80290645",
"0.76396614",
"0.7499407",
"0.73602504",
"0.7349538",
"0.72928375",
"0.71834093",
"0.71678203",
"0.7089875",
"0.7088977",
"0.7059785",
"0.7059785",
"0.70420074",
"0.7023353",
"0.70053226",
"0.6992493",
"0.6944776",
"0.69285244",
"0.68913... | 0.0 | -1 |
Returns an actual application instance. | def WTdB():
return DVUM() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WTdB(YKHO):\n return m36K()",
"def P4t4(YKHO):\n if YKHO._application is None:\n YKHO._application = m36K(client=YKHO)\n return YKHO._application",
"def WTdB(YKHO):\n P4t4 = yPQU\n return P4t4",
"def WTdB():\n global _app\n if wMcu is None:\n b7JE = tgzD().get('APP_ENTR... | [
"0.8861515",
"0.84903675",
"0.81249183",
"0.8050293",
"0.7917582",
"0.78564817",
"0.7806368",
"0.77972925",
"0.77863544",
"0.776881",
"0.776881",
"0.774018",
"0.769712",
"0.76267976",
"0.7622749",
"0.76225656",
"0.7604495",
"0.758867",
"0.7583053",
"0.75246114",
"0.75198257",... | 0.8093994 | 3 |
Check for a holiday that is not returned by US unless the subdivision is specified. | def YlUf(YKHO):
YKHO.assertIn('Christmas Eve (Observed)', YKHO.holidays.get_list(_c1T(2017, dOFy, 22))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gsot(YKHO):\n YKHO.assertNotIn(_c1T(2013, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2014, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2015, 1, 2), YKHO.holidays)\n YKHO.assertNotIn(_c1T(2016, 1, 2), YKHO.holidays)",
"def l0rA(YKHO):\n if YKHO.time_stamp.weekday() not in (5, 6) and (not F... | [
"0.68410784",
"0.6834418",
"0.6440819",
"0.63345224",
"0.6281515",
"0.6187739",
"0.617032",
"0.6059113",
"0.59919596",
"0.58549637",
"0.58478737",
"0.5784091",
"0.56815726",
"0.56685585",
"0.5644258",
"0.55936843",
"0.55802804",
"0.55397594",
"0.5501634",
"0.547768",
"0.54398... | 0.57139987 | 12 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, jIvG):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 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 if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Gets the scan endpoint. | def amup(YKHO) -> str:
return qe4Y.get(YKHO, 'scan') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def up9T(YKHO):\n return YKHO._endpoint",
"def hmph(YKHO):\n return YKHO._endpoint",
"def w2IS(YKHO):\n return YKHO._endpoint",
"def w2IS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint')",
"def w2IS(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint')",
"def w2IS(YK... | [
"0.74098814",
"0.73314446",
"0.71746385",
"0.6955927",
"0.6955927",
"0.69398713",
"0.69398713",
"0.69194084",
"0.69194084",
"0.691009",
"0.6636628",
"0.66211784",
"0.6492588",
"0.64567643",
"0.64567643",
"0.64509237",
"0.6408429",
"0.6408429",
"0.64018905",
"0.6366148",
"0.62... | 0.5787715 | 48 |
Gets the managed event hub namespace resource identifier. | def Otll(YKHO) -> str:
return qe4Y.get(YKHO, 'event_hub_namespace') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eucH(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace_id')",
"def eucH(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'namespace_id')",
"def ZWU7(YKHO) -> str:\n return YKHO._ns_id",
"def Xz0j(YKHO):\n return YKHO.__key.app_id_namespace()",
"def W5fH(YKHO) -> str:\n return YKHO._namespace",... | [
"0.77077997",
"0.725461",
"0.72091734",
"0.65560454",
"0.65530854",
"0.6524816",
"0.642799",
"0.6416584",
"0.62844783",
"0.628195",
"0.626433",
"0.626433",
"0.626433",
"0.6247113",
"0.61026645",
"0.6098736",
"0.6098478",
"0.6032208",
"0.602092",
"0.602092",
"0.60173607",
"0... | 0.7143016 | 3 |
Gets the managed storage account resource identifier. | def I6MY(YKHO) -> str:
return qe4Y.get(YKHO, 'storage_account') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oj8I(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'storage_account_resource_id')",
"def KoGM(YKHO) -> str:\n return qe4Y.get(YKHO, 'storage_account_id')",
"def KoGM(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'storage_account_id')",
"def KoGM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.8271188",
"0.8205417",
"0.7909327",
"0.7451679",
"0.7451679",
"0.74060863",
"0.7223711",
"0.71937156",
"0.70335424",
"0.6934236",
"0.68721527",
"0.68721527",
"0.68721527",
"0.68721527",
"0.68721527",
"0.68721527",
"0.68721527",
"0.68721527",
"0.6849822",
"0.68462056",
"0.6... | 0.7243386 | 6 |
Gets or sets the Sku. | def FIMM(Ro_8, *, b7hB: Optional[int]=None, mWFP: Optional[str]=None):
if b7hB is not None:
qe4Y.set(Ro_8, 'capacity', b7hB)
if mWFP is not None:
qe4Y.set(Ro_8, 'name', mWFP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PXIM(YKHO):\n return YKHO._sku",
"def PXIM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> 'outputs.SkuResponse':\n return qe4Y.get(YKHO, 'sku')",
"def PXIM(YKHO) -> 'outputs.SkuRe... | [
"0.77713096",
"0.7666501",
"0.7666501",
"0.7537249",
"0.7537249",
"0.75047255",
"0.75047255",
"0.7504427",
"0.74638593",
"0.74638593",
"0.7452655",
"0.73060554",
"0.72653705",
"0.7230723",
"0.71879315",
"0.717859",
"0.71188986",
"0.7007966",
"0.6961044",
"0.69386",
"0.6922272... | 0.0 | -1 |
Gets or sets the sku name. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> str:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sku_name')",
"def mDSP(YKHO) -> h8nf[qe4Y.I... | [
"0.8917456",
"0.8917456",
"0.8917456",
"0.8585025",
"0.8585025",
"0.8564865",
"0.78616726",
"0.77543414",
"0.77543414",
"0.7712029",
"0.7567312",
"0.73022026",
"0.73022026",
"0.7257302",
"0.72429395",
"0.72429395",
"0.71772075",
"0.71772075",
"0.7118359",
"0.704907",
"0.70357... | 0.0 | -1 |
Gets or sets the name. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO.name",
"def W0tD(YKHO) -> str:\n return YKHO._name",
"def W0tD(YKHO) -> str:\n return YKHO._name",
"def W0tD(YKHO... | [
"0.8469129",
"0.8469129",
"0.8469129",
"0.8447416",
"0.84370947",
"0.84370947",
"0.84112716",
"0.84112716",
"0.83829135",
"0.8358553",
"0.8355118",
"0.8355118",
"0.8355118",
"0.83410186",
"0.83410186",
"0.8334028",
"0.8334028",
"0.8334028",
"0.8334028",
"0.8334028",
"0.833402... | 0.0 | -1 |
Gets or sets the type. | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO.type",
"def FRul(YKHO):\n return YKHO._type",
"def FRul(YKHO):\n return YKHO._type",
"def type(YKHO):\n return YKHO._getValue('type')",
"def FRul(YKHO):\n return YKHO._TYPE",
"def FRul(YKHO):\n return YKHO._type_ob... | [
"0.8533302",
"0.8533302",
"0.844054",
"0.844054",
"0.8312111",
"0.827963",
"0.8276462",
"0.82763165",
"0.81963736",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0.8196329",
"0... | 0.0 | -1 |
The private link service connection state. | def ZUSg(YKHO) -> h8nf['outputs.PrivateLinkServiceConnectionStateResponse']:
return qe4Y.get(YKHO, 'private_link_service_connection_state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUSg(YKHO) -> 'outputs.PrivateLinkServiceConnectionStateResponse':\n return qe4Y.get(YKHO, 'private_link_service_connection_state')",
"def ZUSg(YKHO) -> h8nf[qe4Y.Input['PrivateLinkServiceConnectionStateArgs']]:\n return qe4Y.get(YKHO, 'private_link_service_connection_state')",
"def QTBn(YKHO):\n ... | [
"0.8497788",
"0.8199126",
"0.7152462",
"0.6898651",
"0.6626659",
"0.6335179",
"0.62941045",
"0.6250819",
"0.6137564",
"0.6137564",
"0.6137564",
"0.6137564",
"0.6117924",
"0.60801065",
"0.59983486",
"0.59824675",
"0.5946474",
"0.59394",
"0.5903566",
"0.5898455",
"0.58547205",
... | 0.81759524 | 2 |
The private link service connection state. | def FIMM(Ro_8, *, QMgF: Optional[str]=None, JBZA: Optional[str]=None, jGRS: Optional[str]=None):
if QMgF is not None:
qe4Y.set(Ro_8, 'actions_required', QMgF)
if JBZA is not None:
qe4Y.set(Ro_8, 'description', JBZA)
if jGRS is not None:
qe4Y.set(Ro_8, 'status', jGRS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZUSg(YKHO) -> 'outputs.PrivateLinkServiceConnectionStateResponse':\n return qe4Y.get(YKHO, 'private_link_service_connection_state')",
"def ZUSg(YKHO) -> h8nf[qe4Y.Input['PrivateLinkServiceConnectionStateArgs']]:\n return qe4Y.get(YKHO, 'private_link_service_connection_state')",
"def ZUSg(YKHO) -> h8n... | [
"0.8497306",
"0.81983757",
"0.8175547",
"0.7151184",
"0.68992555",
"0.6625003",
"0.6333238",
"0.62923944",
"0.624901",
"0.61362314",
"0.61362314",
"0.61362314",
"0.61362314",
"0.6116426",
"0.6080834",
"0.5996887",
"0.5984157",
"0.5945685",
"0.5938164",
"0.5902293",
"0.5897633... | 0.0 | -1 |
The type of identity that created the resource. | def IM__(YKHO) -> str:
return qe4Y.get(YKHO, 'created_by_type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(YKHO) -> qe4Y.Input['ResourceIdentityType']:\n return qe4Y.get(YKHO, 'type')",
"def type(YKHO) -> h8nf[qe4Y.Input['ResourceIdentityType']]:\n return qe4Y.get(YKHO, 'type')",
"def IM__(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'IdentityType']]]:\n return qe4Y.get(YKHO, 'created_by_type')",
"def typ... | [
"0.8256836",
"0.80165184",
"0.7372737",
"0.7200042",
"0.71693283",
"0.7145351",
"0.7029676",
"0.6985071",
"0.68899626",
"0.6862851",
"0.6845546",
"0.67708486",
"0.67639816",
"0.6753082",
"0.6753082",
"0.6753082",
"0.6753082",
"0.6753082",
"0.6753082",
"0.6725761",
"0.670513",... | 0.7070558 | 6 |
Encodes the JSON object dict as human readable ascii bytes. | def hzPF(KGvk):
return Dpsh.encode(KGvk).encode('ascii') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wilB(z1Rg: Any) -> bytes:\n return qQXR.dumps(z1Rg, indent=4, sort_keys=True, ensure_ascii=True, separators=(',', ': '), cls=UY3s).encode('ascii')",
"def jmXB(JZXy: dict) -> bytes:\n wQXe = b'd'\n for H5ew, BWXx in JZXy.items():\n wQXe += kLcZ(H5ew) + kLcZ(BWXx)\n return wQXe + b'e'",
"d... | [
"0.7128708",
"0.707805",
"0.6974458",
"0.6947218",
"0.6935862",
"0.69216466",
"0.68452454",
"0.6806256",
"0.6702172",
"0.66949594",
"0.6672828",
"0.66574126",
"0.66230845",
"0.66184306",
"0.6606135",
"0.65194607",
"0.65177107",
"0.6503493",
"0.64982766",
"0.64840716",
"0.6480... | 0.70129156 | 2 |
Load an image from file into a numpy array. Puts image into numpy array to feed into tensorflow graph. Note that by convention we put it into a numpy array with shape (height, width, channels), where channels=3 for RGB. | def IrN9(pmON):
x1k1 = (1440, 1080)
LNo8 = hnIv.open(pmON)
LNo8.thumbnail(x1k1)
nbX2, t4ML = LNo8.size
return oyIN.array(LNo8).astype(oyIN.uint8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IrN9(pmON):\n ThLH = ZylS.io.gfile.GFile(pmON, 'rb').read()\n LNo8 = hnIv.open(aKaX(ThLH))\n nbX2, t4ML = LNo8.size\n return oyIN.array(LNo8.getdata()).reshape((t4ML, nbX2, 3)).astype(oyIN.uint8)",
"def IrN9(pmON):\n return oyIN.array(hnIv.open(pmON))",
"def IrN9(pmON):\n return oyIN.arra... | [
"0.78648573",
"0.7772842",
"0.7772842",
"0.7716727",
"0.7702963",
"0.7698959",
"0.7622497",
"0.7609445",
"0.7499605",
"0.745",
"0.7430725",
"0.7402681",
"0.7349688",
"0.7314382",
"0.72943574",
"0.7274043",
"0.7240022",
"0.72181654",
"0.7202281",
"0.71850955",
"0.7181907",
"... | 0.77166885 | 4 |
Computes the edit distance between two PQGram Profiles. This value should always be between 0.0 and 1.0. This calculation is reliant on the intersection method. | def ynZz(YKHO, Elif):
b65I = len(YKHO) + len(Elif)
return 1.0 - 2.0 * (YKHO.intersection(Elif) / b65I) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJO9(YKHO, ZLDn, YsF0):\n Ayfi = 0.0\n if ZLDn == YsF0:\n Ayfi = 1.0\n return Ayfi",
"def QJO9(YKHO, ZLDn, YsF0):\n Ayfi = 0.0\n if ZLDn == YsF0:\n Ayfi = 1.0\n return Ayfi",
"def Ayfi(YKHO, X3qZ, ZYCo):\n if _eFN:\n Tq9Y()\n Csk6 = ((float(X3qZ[0]) - float(ZYCo... | [
"0.6955894",
"0.6955548",
"0.6307842",
"0.62765044",
"0.61209434",
"0.61004573",
"0.59898394",
"0.596805",
"0.5944567",
"0.5942342",
"0.5940036",
"0.5933232",
"0.5907506",
"0.59023404",
"0.5897927",
"0.58955973",
"0.5885934",
"0.5880738",
"0.58694685",
"0.58680934",
"0.586750... | 0.63346106 | 2 |
Generate Rect for image | def ABtt(QMAG):
lDLs = ht2j.device('cuda:0' if ht2j.cuda.is_available() else 'cpu')
Zxma = O1K2()
vauY = ht2j.load(f'{eHKs}/checkpoints/rect.pth', map_location=lDLs)
Go7Q(Zxma, vauY)
if ht2j.cuda.is_available():
kme0(Zxma.cuda(), [QMAG], 512)
else:
kme0(Zxma.cpu(), [QMAG], 512, T... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hka5(LNo8, mawX, qfpW=(0, 255, 255)):\n WKvO, LVAh, yzQ0, MKlR = mawX\n XC5k.rectangle(LNo8, (WKvO, LVAh), (WKvO + yzQ0, LVAh + MKlR), qfpW, 3)\n return LNo8",
"def s8EI(VXjJ, j8aQ, qfpW):\n for o4D3, si3g, ajwV, skBL in j8aQ:\n XC5k.rectangle(VXjJ, (o4D3, si3g), (ajwV, skBL), qfpW, 2)",
... | [
"0.6854727",
"0.6737952",
"0.66694933",
"0.66479546",
"0.6647152",
"0.65892404",
"0.6573682",
"0.6540611",
"0.6507018",
"0.65064895",
"0.64765185",
"0.6425608",
"0.6397068",
"0.6395336",
"0.6366382",
"0.63527024",
"0.6352438",
"0.6305168",
"0.6302696",
"0.62983",
"0.62841356"... | 0.7099363 | 0 |
Build the "Cumulative Distribution Function" (CDF) for the given data | def ieiD(YKHO, nPrm, gwAu):
d6pt = nPrm.sort_values()
d6pt.name = None
dy_H = rLdf.Series(oyIN.linspace(0, 1, len(d6pt)), index=d6pt)
dy_H.name = nPrm.name
M1C2 = float(max(dy_H[:gwAu]))
sb_b = 1 - M1C2
return (dy_H, sb_b, M1C2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YzER(YKHO, WKvO):\n if hasattr(WKvO, '__len__'):\n nn47 = oyIN.array([YKHO.cdf(YRbF) for YRbF in WKvO])\n else:\n nn47 = YKHO._distribution.cdf(WKvO)\n return nn47",
"def Zt0j(nPrm):\n WKvO = oyIN.sort(nPrm)\n YzER = oyIN.linspace(0, 1, len(WKvO))\n return (YzER, WKvO)",
"de... | [
"0.74474496",
"0.72216785",
"0.7134686",
"0.7022993",
"0.70228744",
"0.69702226",
"0.69702226",
"0.690883",
"0.68974537",
"0.6719232",
"0.66698056",
"0.66341335",
"0.6614587",
"0.6611037",
"0.6560948",
"0.6549866",
"0.6535113",
"0.6513487",
"0.64687836",
"0.6442049",
"0.63943... | 0.55140185 | 90 |
Group separate words into phrases where appropriate by examining the list of valid phrase embeddings. | def rKFF(WKvO):
uEHq = []
for A97Q in WKvO:
s2mk = A97Q.split()
cC0s = []
d6pt = 0
wthA = 3
while d6pt < len(s2mk):
while d6pt + wthA > len(s2mk):
wthA -= 1
while wthA > 0:
UNkl = []
for eOtH in s2mk[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InTy(AIaC, khgo=False):\n AIaC = [yzQ0.lower() for yzQ0 in AIaC]\n if mq9P != 'o' and mq9P != 'u':\n AIaC = [yzQ0.lstrip('.').rstrip('.') for yzQ0 in AIaC if ZbWC.search(dFr6, yzQ0)]\n AIaC.sort()\n if e1T3 and (not bixW):\n from nltk import word_tokenize as word_tokenize\n AIa... | [
"0.6690478",
"0.6518407",
"0.6467396",
"0.64556956",
"0.6439871",
"0.6412679",
"0.6372459",
"0.63525736",
"0.62521577",
"0.61389816",
"0.61259305",
"0.60667527",
"0.60512096",
"0.6015702",
"0.5927946",
"0.5927476",
"0.59270275",
"0.5896144",
"0.5880175",
"0.5870922",
"0.58671... | 0.67971826 | 0 |
Update frequency axis of imshow plot | def csX9(YKHO, aNZO, ZQeB=5, h7D2=False):
lO3O = YKHO.uv.h_common['REF_FREQ'] / 1000000.0
I2CS = YKHO.uv.d_frequency['CH_WIDTH'] / 1000000.0
Rivs = YKHO.uv.d_frequency['TOTAL_BANDWIDTH'] / 1000000.0
opBR = YKHO.uv.h_common['REF_PIXL']
AXFa = YKHO.uv.h_common['NO_CHAN']
q_E9 = aNZO.get_xticks()
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W2nw(YKHO, HXXq):\n LZpg = QrM1.figure()\n uBsB = oyIN.max(HXXq)\n vJ4g = list(map(lambda Xn71: [QrM1.imshow(oyIN.fabs(Xn71), norm=Jw9H.Normalize(0.0, uBsB))], HXXq))\n senY = fHjr.ArtistAnimation(LZpg, vJ4g, interval=50)\n QrM1.show()",
"def vsZ2(YKHO):\n YKHO.ipx = int(YKHO.imageData.shap... | [
"0.622137",
"0.61602694",
"0.60901415",
"0.6034941",
"0.5973292",
"0.5970605",
"0.59339",
"0.5931212",
"0.5928027",
"0.5888736",
"0.58812565",
"0.58622396",
"0.58247423",
"0.5773689",
"0.57645696",
"0.5758646",
"0.5752239",
"0.57267344",
"0.57218915",
"0.57039946",
"0.5691942... | 0.68190473 | 0 |
returns the z for which P(Z >= z) = probability | def vRHY(Q7Be, yGTL=0, WTkW=1):
return K0SZ(1 - Q7Be, yGTL, WTkW) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def guBC(epBp):\n RdgZ = 6.0\n if epBp == 0.0:\n WKvO = 0.0\n else:\n LVAh = 0.5 * epAf.fabs(epBp)\n if LVAh >= RdgZ * 0.5:\n WKvO = 1.0\n elif LVAh < 1.0:\n yzQ0 = LVAh * LVAh\n WKvO = ((((((((0.000124818987 * yzQ0 - 0.001075204047) * yzQ0 + 0.... | [
"0.7923753",
"0.7625524",
"0.75491405",
"0.7405041",
"0.6838012",
"0.6697751",
"0.64589626",
"0.64409125",
"0.63929063",
"0.6382707",
"0.63141704",
"0.6314136",
"0.62904847",
"0.62522966",
"0.62209",
"0.61795706",
"0.6152627",
"0.6144414",
"0.6080992",
"0.6080628",
"0.6077197... | 0.0 | -1 |
A python list that returns a unique list | def vMwm(qFa0):
cB3J = []
for mLGw in qFa0:
if mLGw not in cB3J:
cB3J.append(mLGw)
print(cB3J) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ONhe(BDwY):\n return list(set(BDwY))",
"def jwGI(BDwY):\n jbXL = []\n for geyT in BDwY:\n if geyT not in jbXL:\n jbXL.append(geyT)\n return jbXL",
"def kcwm(BDwY):\n PwWw = set()\n aygV = PwWw.add\n return [WKvO for WKvO in BDwY if not (WKvO in PwWw or aygV(WKvO))]",
... | [
"0.8489617",
"0.8041273",
"0.8032733",
"0.7943477",
"0.79390806",
"0.7912173",
"0.7838201",
"0.77897817",
"0.77308494",
"0.77089024",
"0.7676454",
"0.7612959",
"0.7608198",
"0.7546661",
"0.75240076",
"0.7506663",
"0.7501831",
"0.7469628",
"0.7467535",
"0.74581516",
"0.7404941... | 0.70339376 | 45 |
Checks if the date is a holiday. | def LBC4(_c1T):
return _c1T.day in sTNY(_c1T.year)[_c1T.month] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LBC4(YKHO) -> bool:\n return set(YKHO._get_date_text_ascii()) == set([int(WKvO) for WKvO in YKHO.params['holiday']['holiday_text']])",
"def FPM2(YKHO):\n rhBO = []\n if YKHO.time_stamp in rhBO:\n return True\n return False",
"def BsVm(YKHO) -> bool:\n return set(YKHO._get_date_text_as... | [
"0.88423693",
"0.8017763",
"0.78057307",
"0.76375",
"0.75853604",
"0.7517601",
"0.7297001",
"0.7155849",
"0.7155614",
"0.71472645",
"0.6977304",
"0.67696166",
"0.654254",
"0.6499769",
"0.64996624",
"0.6439739",
"0.6435947",
"0.6374924",
"0.6331744",
"0.6274895",
"0.6188199",
... | 0.8611505 | 1 |
Checks if the date is a work free day. | def UWPX(_c1T):
return _c1T.weekday() == 6 or LBC4(_c1T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def flSK(YKHO, _c1T):\n return _c1T.isoweekday() % 7",
"def o9Y2(YKHO):\n return 0 <= YKHO.date.weekday() <= 4",
"def GUBg(YKHO):\n return 0",
"def GUBg(YKHO):\n return 0",
"def euPI(YKHO, _c1T):\n sNqv = YKHO.next_seven_day()\n yo7_ = qcWV.date.today().strftime('%Y-%m-%d')\n if not _c... | [
"0.7208509",
"0.6844824",
"0.6558097",
"0.6558097",
"0.64974153",
"0.64455414",
"0.6416937",
"0.6321627",
"0.6297786",
"0.62444645",
"0.623296",
"0.62111145",
"0.61961436",
"0.6193795",
"0.6190089",
"0.61702996",
"0.6155866",
"0.6134797",
"0.6133069",
"0.6127707",
"0.6111384"... | 0.8509704 | 0 |
Delete user group specified by parameter userGroup. The holder the session key specified by argument token must be an owner of the group to successfully delete the user group. | def UO7x(YKHO, eOtH, iT36):
Cwxt = YKHO.get_username_from_token(eOtH)
if YKHO.check_user_has_owner_clearance(Cwxt, iT36):
ZBJA = YKHO.read_database()
if iT36 in ZBJA['userGroups']:
del ZBJA['userGroups'][iT36]
YKHO.write_database(ZBJA)
return
else:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B9GG(YKHO, eOtH, iT36, i0Q8):\n Cwxt = YKHO.get_username_from_token(eOtH)\n if YKHO.check_user_has_owner_clearance(Cwxt, iT36):\n ZBJA = YKHO.read_database()\n if iT36 not in ZBJA['userGroups']:\n raise QFo1('Group does not exist')\n i07_ = ZBJA['userGroups'][iT36]['owners... | [
"0.74179554",
"0.72125274",
"0.72000664",
"0.71969306",
"0.71693516",
"0.7109945",
"0.70894116",
"0.70823497",
"0.70753855",
"0.7072845",
"0.7058252",
"0.7046447",
"0.7025903",
"0.69864124",
"0.69833934",
"0.6976777",
"0.6954955",
"0.693821",
"0.69039476",
"0.6808784",
"0.680... | 0.8551636 | 0 |
accuracy metric tracks how many predictions are in the top K | def eAdP(YKHO, Y8eF, aMgO):
return TjsD(Y8eF, aMgO, k=YKHO.ACCURACY_K) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vjyh(hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, largest=True, sorted=True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].contiguous().view(-1).float().... | [
"0.7987561",
"0.79590225",
"0.7940957",
"0.7934815",
"0.7929878",
"0.79262775",
"0.7898645",
"0.7896291",
"0.78896827",
"0.78896827",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",
"0.7889467",... | 0.0 | -1 |
Create a ring lattice with n nodes and k degrees. | def uGFD(YKHO, exwG: int, G1Hx: int) -> jHsn.Graph:
pNZh = jHsn.Graph()
Ziit = tuple(range(exwG))
pNZh.add_nodes_from(Ziit)
pNZh.add_edges_from(YKHO.adjacent_pairs(Ziit, G1Hx))
return pNZh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xx8j(exwG, G1Hx):\n Oa1e = pNZh.Graph({})\n for YRbF in range(exwG):\n for r845 in range(1, G1Hx // 2 + 1):\n P6bq, Ty9i = (YRbF, (YRbF + r845) % exwG)\n Oa1e.add_edge((P6bq, Ty9i))\n return Oa1e",
"def dQ42(fccw, jWyq):\n if type(fccw) is not int:\n G9jH.error... | [
"0.8479313",
"0.68399495",
"0.64959353",
"0.6429035",
"0.6108292",
"0.60072684",
"0.6006197",
"0.5933561",
"0.58590966",
"0.58046883",
"0.5766085",
"0.5751667",
"0.5744521",
"0.57397836",
"0.5720675",
"0.5710185",
"0.57094985",
"0.57093203",
"0.569307",
"0.56884813",
"0.56515... | 0.8441185 | 1 |
Opens a new database connection if there is none yet for the current application context. | def GGod():
if not hasattr(Oa1e, 'sqlite_db'):
Oa1e.sqlite_db = _uJw()
return Oa1e.sqlite_db | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FuuS():\n if not hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db = WyYT()\n return Oa1e.sqlite_db",
"def BF3r(YKHO):\n if YKHO._conn is None:\n YKHO._conn = iHv3.connect(YKHO._db_path)",
"def YJJL(wnys: str=mDZH) -> JdIE:\n return iHv3.connect(wnys, cached_statements=PwCU)",
"def W... | [
"0.7737639",
"0.7582971",
"0.73180443",
"0.71693045",
"0.70220166",
"0.6966687",
"0.6954785",
"0.69486743",
"0.6897534",
"0.6842663",
"0.68292314",
"0.68191963",
"0.680592",
"0.67950195",
"0.67697805",
"0.6762173",
"0.6751266",
"0.6746273",
"0.67316663",
"0.670031",
"0.668866... | 0.640242 | 86 |
Function to return data loaders | def yjBr(G9jH, Ep8u):
G9jH.info('Reading Train and Test data...')
x4W3 = rLdf.read_csv('C:/tmp/avila_classification/data/avila-tr.txt', header=None)
Dmme = rLdf.read_csv('C:/tmp/avila_classification/data/avila-ts.txt', header=None)
AlVb = ['col_' + str(r845 + 1) for r845 in range(x4W3.shape[1] - 1)]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pYAW(y7GR):\n return s31Q(y7GR.dataloader)(y7GR).load_data()",
"def SELc(EPL3, IrSd, qby3, Ep8u=128):\n Pa1c = pVAc(EPL3, batch_size=Ep8u, num_workers=8, shuffle=True)\n o7Up = pVAc(IrSd, batch_size=Ep8u, num_workers=8, shuffle=False)\n Blhr = pVAc(qby3, batch_size=Ep8u, num_workers=8, shuffle=Fa... | [
"0.7474642",
"0.719452",
"0.71429884",
"0.7109437",
"0.70987356",
"0.7012204",
"0.6996436",
"0.69849545",
"0.68915355",
"0.68808377",
"0.6855506",
"0.67691875",
"0.6754219",
"0.6753365",
"0.6748003",
"0.6673174",
"0.66308194",
"0.6559466",
"0.6536258",
"0.6525207",
"0.6472954... | 0.0 | -1 |
Returns a list of random bits, with default length 24. | def xWid(u54L=24):
_VAm = -(-u54L // 8)
return Tv8G(rU7A(_VAm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uM5B(YKHO):\n return tuKI.getrandbits(8)",
"def mA3Q(YKHO):\n\n def QjKj():\n for YRbF in range(0, 16):\n ekgN = YKHO._bytes[YRbF] & 240\n nEeK = YKHO._bytes[YRbF] & 15\n yield (ekgN >> 4)\n yield nEeK\n return map(lambda WKvO: WKvO % 2 == 0, QjKj()... | [
"0.7440567",
"0.67365175",
"0.66937983",
"0.6540674",
"0.6533146",
"0.64347506",
"0.63093436",
"0.62881535",
"0.6256137",
"0.6251825",
"0.6246",
"0.6238862",
"0.622283",
"0.6219252",
"0.6198189",
"0.6194114",
"0.61907727",
"0.6173091",
"0.61486804",
"0.61101645",
"0.61030346"... | 0.6056679 | 22 |
Convert two points into a rectangle boolean mask. | def lu3Z(ROpF, ShLW, XOP0, TVTK=1):
if len(ROpF) != 2:
raise ValueError('Only works for 2 dimensional arrays')
S7Pc = oyIN.zeros(ROpF, dtype=oyIN.bool)
x6aZ, EqBn = GPob(ShLW, XOP0)
S7Pc[x6aZ, EqBn] = True
S7Pc = ivFb(S7Pc, Fyji(TVTK))
return S7Pc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xqgm(A2lh, _2jp, Q_Xl, _tfQ, LFlW, es2x, _tIi, tlxW, oPhP='and', rhd_=0.0001):\n EhZ1 = aN7J(A2lh, Q_Xl, LFlW, es2x, _tIi, tlxW, rhd_)\n eyxm = aN7J(_2jp, _tfQ, LFlW, es2x, _tIi, tlxW, rhd_)\n xLhq = r9zK.clip(EhZ1, eyxm, oPhP, 1 / rhd_)\n return xLhq",
"def OfD9(BR8K, GPIy, Rzz_):\n WKvO = BR... | [
"0.6433074",
"0.6189757",
"0.59400976",
"0.59250057",
"0.5858805",
"0.5858185",
"0.58444923",
"0.5838613",
"0.5737651",
"0.5723421",
"0.57002676",
"0.56836426",
"0.5645757",
"0.5645614",
"0.56238186",
"0.5609873",
"0.5605367",
"0.56040806",
"0.55966026",
"0.55877304",
"0.5585... | 0.7025666 | 0 |
Write json_dict to string and encode it. | def uP8n(YKHO, YGFP):
hGN5 = qQXR.dumps(YGFP)
if isinstance(hGN5, QMSQ):
hGN5 = hGN5.encode('utf-8')
YKHO.wfile.write(hGN5) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyJK(YGFP: dict):\n zEKB = qQXR.dumps(YGFP)\n return WR89.b64encode(zEKB.encode()).decode()",
"def YElL(YGFP=dict):\n return qQXR.dumps(YGFP, encoding='utf-8', ensure_ascii=False)",
"def X0cA(YGFP=dict, kLcZ='utf-8'):\n return qQXR.dumps(YGFP, encoding=kLcZ, ensure_ascii=False, indent=4)",
"d... | [
"0.75034356",
"0.74383956",
"0.7333169",
"0.7222859",
"0.70339006",
"0.6925609",
"0.68733126",
"0.6837803",
"0.68162316",
"0.67681766",
"0.67597246",
"0.67356294",
"0.67297566",
"0.6729615",
"0.6695731",
"0.6683966",
"0.6681227",
"0.6641551",
"0.6640507",
"0.66382366",
"0.662... | 0.7949218 | 0 |
Reads from word3.txt word by word and inserts them in a svenska.bintree() If a word already exists as a value of a node, does nothing. | def Wqy_():
print('\n')
with open('word3.txt', 'r', encoding='utf-8') as PdLn:
for Wskb in PdLn:
Xr2m = Wskb.strip()
if Xr2m in jWmg:
pass
else:
jWmg.put(Xr2m)
print('\n')
n5dP = input('Välj startord: ')
J9Pq(n5dP) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H2v5(YKHO, GIN8):\n kMLo = YKHO.root\n for hcXw in GIN8:\n if hcXw not in kMLo.children:\n kMLo.children[hcXw] = ep_x()\n kMLo = kMLo.children[hcXw]\n kMLo.is_word = True",
"def JPHp(YKHO, GIN8: str) -> None:\n Q6kx = YKHO.root\n for Z9rn in GIN8:\n if Q6kx.chil... | [
"0.66979235",
"0.66695124",
"0.66464746",
"0.65615714",
"0.654404",
"0.6534255",
"0.6518626",
"0.6500137",
"0.64637285",
"0.6459348",
"0.64391166",
"0.6435572",
"0.64319384",
"0.641447",
"0.64039755",
"0.6390413",
"0.6383901",
"0.63797295",
"0.6374294",
"0.63614357",
"0.63515... | 0.6078257 | 46 |
Returns a simple photodetector Solid. The photodetector is a sphere of size `size` constructed out of a glass envelope with a photosensitive face on the inside of the glass envelope. | def isB5():
l8rd = 10
zNig = 100
MtQb = PEX4.sphere(zNig)
b_QQ = PEX4.sphere(zNig - l8rd)
QwZn = xZFs(MtQb, lCSp, klnB)
N_sd = UIQz
lkpj = 65280
J1jD = xZFs(b_QQ, JoW9, lCSp, surface=N_sd, color=lkpj)
return QwZn + J1jD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iW4o(zNig=None):\n M_DK = yt4j(zNig)\n epBp = 2.0 * tuKI(M_DK.shape[:-1] + (1,)) - 1.0\n M_DK *= PZyS(1.0 - epBp * epBp)\n return MPiJ((M_DK, epBp), axis=-1)",
"def tlwK(zNig=None):\n if zNig is None:\n zNig = ()\n else:\n try:\n zNig = tuple(zNig)\n except T... | [
"0.6575113",
"0.61373353",
"0.59475297",
"0.5855395",
"0.57705367",
"0.5767528",
"0.55725276",
"0.55000556",
"0.5417638",
"0.53831685",
"0.535598",
"0.5278344",
"0.5260494",
"0.52457744",
"0.5242157",
"0.52408755",
"0.516431",
"0.51643056",
"0.5153069",
"0.5138721",
"0.513001... | 0.5042345 | 23 |
Opens wiki page on GitHub. | def K0iu(YKHO, B2Dn: str) -> None:
if B2Dn == 'repo':
HywK.open('http://github.com/ivan866/readTobiiGlasses')
elif B2Dn == 'wiki':
HywK.open('http://github.com/ivan866/readTobiiGlasses/wiki')
elif B2Dn == 'glasses2API':
HywK.open('http://tobiipro.com/product-listing/tobii-pro-glasses... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GSyo(boHx, iIep):\n HywK.open_new(boHx.milestone(iIep).data['html_url'])",
"def MkTV(YKHO):\n bD7m = WUqv('https://github.com/Freeseer/freeseer/issues/new')\n lekd.openUrl(bD7m)",
"async def github(YKHO, OaeV):\n await OaeV.send('https://github.com/nick411077/nickcan_bot')",
"def q0oV(YKHO):\... | [
"0.70456856",
"0.68781185",
"0.65577674",
"0.64694786",
"0.64647865",
"0.6387878",
"0.6353555",
"0.6289941",
"0.61820054",
"0.6131478",
"0.6108096",
"0.61043715",
"0.6071371",
"0.6058626",
"0.6058626",
"0.60260355",
"0.6015926",
"0.59951514",
"0.5971696",
"0.5943474",
"0.5940... | 0.5967606 | 19 |
Sets the number of selected neurons based on the integrity and hyperparameters. | def rIax(YKHO, VYIb):
XP5J = VYIb
M6pt = 1
UUZ1 = 1 + 0.29 / XP5J
GZMk = M6pt / UUZ1
YKHO.num_selections = int(GZMk * YKHO.limit) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtzW(YKHO, OtzW):\n YKHO._number_of_nodes = OtzW",
"def srP1(YKHO, exwG):\n YKHO.numpins = exwG",
"def uihi(WGYx, tHN3):\n if not tq_1.isclass(WGYx):\n WGYx = globals()[WGYx]\n if WGYx is None:\n raise Exception('Unknown Vertex Type {}'.format(WGYx))\n if hasattr(WGYx, ... | [
"0.66156626",
"0.6500769",
"0.62024164",
"0.61616355",
"0.61574364",
"0.59831583",
"0.59526205",
"0.59421104",
"0.591064",
"0.590501",
"0.58638644",
"0.58441436",
"0.5842906",
"0.5839701",
"0.58300227",
"0.5828594",
"0.58035946",
"0.5766354",
"0.5700623",
"0.5685242",
"0.5653... | 0.66118747 | 1 |
Get clients by namespace and client id. Multi tenant mode allows admin portal client to be accessible regardless of namespace path. (AdminGetClientsbyNamespacebyIDV3) | def ZeD4(zb3C: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = CZ8V.create(client_id=zb3C, namespace=_63S)
return n8as(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojos(zb3C: Optional[str]=None, wy4N: Optional[str]=None, IYd2: Optional[str]=None, qoqK: Optional[int]=None, vgXP: Optional[int]=None, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n ... | [
"0.7473576",
"0.73446333",
"0.7271253",
"0.6888655",
"0.67617583",
"0.6077965",
"0.6002996",
"0.59783685",
"0.5941304",
"0.57468194",
"0.573251",
"0.56803554",
"0.5607244",
"0.55487925",
"0.5526058",
"0.5511713",
"0.54295737",
"0.5425272",
"0.5413576",
"0.53611666",
"0.534327... | 0.7691607 | 0 |
Get clients by namespace and client id. Multi tenant mode allows admin portal client to be accessible regardless of namespace path. (AdminGetClientsbyNamespacebyIDV3) | async def admin_get_clientsby_namespaceby_idv3_async(zb3C: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):
if _63S is None:
_63S, P1dF = FQvI()
if P1dF:
return (None, P1dF)
QePW = CZ8V.create(client_id=zb3C, namespace=_63S)
return await x1ax(QePW, add... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZeD4(zb3C: str, _63S: Optional[str]=None, Cbut: Optional[Dict[str, str]]=None, **B2fa):\n if _63S is None:\n _63S, P1dF = FQvI()\n if P1dF:\n return (None, P1dF)\n QePW = CZ8V.create(client_id=zb3C, namespace=_63S)\n return n8as(QePW, additional_headers=Cbut, **B2fa)",
"def ... | [
"0.7692037",
"0.7474285",
"0.734325",
"0.68893945",
"0.6760803",
"0.6078768",
"0.6004191",
"0.59781766",
"0.5941113",
"0.5747027",
"0.5733406",
"0.56798875",
"0.5607682",
"0.55490017",
"0.5525852",
"0.5511785",
"0.542986",
"0.5424362",
"0.54141086",
"0.53610665",
"0.5343788",... | 0.7271748 | 3 |
Get All Clients (GetClients) The endpoint is going to be deprecated Required permission 'CLIENT [READ]'. Endpoint migration guide | def cUo5(Cbut: Optional[Dict[str, str]]=None, **B2fa):
QePW = Gr_Y.create()
return n8as(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return sxHU()",
"def cUo5():\n nPrm = PbMx(document=oXWB, schema=JM4Y).get_data\n return oGir(data=nPrm).send()",
"def gIeD(YKHO):\n return YKHO.clients_info",
"def xxxj(YKHO):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('SELECT * FROM CLIENT')\n return N1p7.fetchall()",... | [
"0.7743857",
"0.7675536",
"0.7620939",
"0.7381807",
"0.7248829",
"0.7050329",
"0.69224197",
"0.68675053",
"0.67854166",
"0.677802",
"0.677802",
"0.676434",
"0.6747304",
"0.6743586",
"0.6686045",
"0.66835487",
"0.66594017",
"0.662358",
"0.6587034",
"0.6515549",
"0.6468866",
... | 0.7144638 | 5 |
Get All Clients (GetClients) The endpoint is going to be deprecated Required permission 'CLIENT [READ]'. Endpoint migration guide | async def get_clients_async(Cbut: Optional[Dict[str, str]]=None, **B2fa):
QePW = Gr_Y.create()
return await x1ax(QePW, additional_headers=Cbut, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO):\n return sxHU()",
"def cUo5():\n nPrm = PbMx(document=oXWB, schema=JM4Y).get_data\n return oGir(data=nPrm).send()",
"def gIeD(YKHO):\n return YKHO.clients_info",
"def xxxj(YKHO):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('SELECT * FROM CLIENT')\n return N1p7.fetchall()",... | [
"0.7744311",
"0.76752114",
"0.7622309",
"0.73818487",
"0.7249017",
"0.7144536",
"0.7051049",
"0.6922698",
"0.68672585",
"0.67850983",
"0.6779448",
"0.6779448",
"0.6766077",
"0.67479944",
"0.6743753",
"0.6686847",
"0.6684556",
"0.6659256",
"0.6624567",
"0.6588284",
"0.64695853... | 0.65152305 | 20 |
Removes the stopwords from the given list of words. | def AQLE(YKHO, V22M):
zFiD = []
for yzQ0 in V22M:
if yzQ0 not in YKHO.stop_words:
zFiD.append(yzQ0)
return zFiD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R5ha(V22M):\n ntLm = set(di0c.words('english'))\n V22M = [yzQ0 for yzQ0 in V22M if yzQ0 not in ntLm]\n return V22M",
"def EPjn(YKHO, V22M):\n return [GIN8 for GIN8 in V22M if GIN8.lower() not in YKHO.stopwords]",
"def A5fq(YKHO, V22M):\n rw6h = [yzQ0.strip() for yzQ0 in V22M.split(' ')]\n ... | [
"0.84145194",
"0.837082",
"0.81671",
"0.8138055",
"0.81354606",
"0.811937",
"0.80495983",
"0.8028908",
"0.79807043",
"0.7941815",
"0.79317135",
"0.79025966",
"0.7899163",
"0.7899163",
"0.7899163",
"0.7899163",
"0.7865658",
"0.7823456",
"0.78208053",
"0.7798624",
"0.778563",
... | 0.75173396 | 26 |
Removes all the biwords from the given sentence. | def KgI9(YKHO, V22M):
S921 = Dhdw.bigrams(V22M)
XSuE = []
for GIN8 in S921:
XSuE.append(GIN8)
return XSuE | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VAp3(yAmx: str, hwHU: Collection[str]) -> str:\n return ' '.join([yzQ0 for yzQ0 in dFss(yAmx) if yzQ0 not in hwHU])",
"def p7dW(YKHO, A0cm: Phrase) -> None:\n for sTrf, GIN8 in enumerate(ZbWC.finditer('\\\\w+', A0cm.phrase_string)):\n if sTrf == 0:\n del YKHO.first_word_in_phrase[GIN8... | [
"0.6506337",
"0.6193584",
"0.6186155",
"0.6083024",
"0.6065686",
"0.6027448",
"0.5926159",
"0.5913872",
"0.5883863",
"0.5877422",
"0.5866364",
"0.58653945",
"0.5839055",
"0.5811004",
"0.580226",
"0.57862914",
"0.5778397",
"0.577648",
"0.5771382",
"0.5765315",
"0.57551163",
... | 0.5660813 | 28 |
Lemmatize the list of words. | def rZCU(YKHO, yv6U):
BhMw = []
for ZfUD in yv6U:
BhMw.append(YKHO.lmtzr.lemmatize(ZfUD))
return BhMw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EytU(YKHO, V22M):\n A1xJ = [YKHO.lemmatizer.lemmatize(GIN8) for GIN8 in V22M]\n return A1xJ",
"def X5wq(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = None\n if YKHO.lemmatize_method == 'wordnet':\n zLya = [YKHO.lemmatizer.lemmatize(eOtH) for eOtH in s2mk]\n else:\n zLya = [YK... | [
"0.8137336",
"0.8069328",
"0.7979295",
"0.7974446",
"0.7840236",
"0.7770753",
"0.775428",
"0.7681515",
"0.76708555",
"0.7619978",
"0.7594848",
"0.75855464",
"0.7582567",
"0.7569726",
"0.75632757",
"0.75515574",
"0.754554",
"0.7496974",
"0.7478025",
"0.74616975",
"0.74616975",... | 0.8532224 | 0 |
Close SQLite3 database file. | def rDE9(YKHO):
assert YKHO._conn is not None
G9jH.info('Closing file {!r}.'.format(YKHO._filename))
YKHO._cursor.close()
YKHO._cursor = None
YKHO._conn.close()
YKHO._conn = None
YKHO._filename = None
YKHO._sessionUID = None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ssTe(UzPC: sqlite3.Connection):\n UzPC.commit()\n UzPC.close()",
"def ssTe(P1dF):\n w2B8 = Oa1e.get('sqlite_db', None)\n if w2B8 is not None:\n w2B8.close()",
"def ssTe(P1dF):\n if hasattr(Oa1e, 'sqlite_db'):\n Oa1e.sqlite_db.close()",
"def YzkT(NCls):\n global DB_CONNECTI... | [
"0.790474",
"0.75769603",
"0.75418276",
"0.7488408",
"0.74870956",
"0.7467076",
"0.7467076",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"0.74658245",
"... | 0.709535 | 41 |
``utils`` 'printerr' flushes stderr upon write | def QQiy(YKHO, uHZB):
BfDw.printerr('hello world!')
YKHO.assertTrue(uHZB.flush.called) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2SS(Ol8d):\n HwRy.stderr.write('{}\\n'.format(Ol8d))\n HwRy.stderr.flush()",
"def Y2SS(tO9_):\n print(tO9_, file=HwRy.stderr)",
"def dnVQ(YKHO, l5Ny):\n wIbz = YKHO.stderr\n if YKHO.stderr.closed:\n wIbz = HwRy.stderr\n wIbz.write(HCSC(u'\\r', target_stream=wIbz))\n wIbz.write(... | [
"0.77528214",
"0.7423508",
"0.73425657",
"0.7234647",
"0.72223234",
"0.7218984",
"0.7192337",
"0.71704376",
"0.71371365",
"0.7097004",
"0.7094079",
"0.7071313",
"0.70421535",
"0.7000542",
"0.69921017",
"0.6941965",
"0.6940115",
"0.6925807",
"0.6884898",
"0.68462116",
"0.68336... | 0.713 | 9 |
This returns a formula whose columns are the pairwise product of the columns of self and other. | def E_tF(YKHO, Elif, UtCB=False):
Elif = l9Ur(Elif, namespace=YKHO.namespace)
U_aQ = YKHO.termnames()
xEot = Elif.termnames()
pdhd = len(U_aQ)
Oa10 = len(xEot)
NHn2 = []
JNzP = []
for YRbF in range(pdhd):
for r845 in range(Oa10):
vDJo = '%s*%s' % (str(U_aQ[YRbF]), str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_tF(YKHO, nb9M):\n Ylbp = YKHO.dot(nb9M)\n return Ylbp",
"def E_tF(YKHO, Elif, UtCB=False):\n Elif = RWlt(Elif)\n U_aQ = YKHO.termnames()\n xEot = Elif.termnames()\n pdhd = len(U_aQ)\n Oa10 = len(xEot)\n NHn2 = []\n JNzP = []\n for YRbF in range(pdhd):\n for r845 in rang... | [
"0.6415094",
"0.63870233",
"0.6279635",
"0.6277308",
"0.6246037",
"0.6238537",
"0.6096271",
"0.6049816",
"0.6033818",
"0.6011278",
"0.59259176",
"0.5915911",
"0.58421564",
"0.5841482",
"0.58370215",
"0.5814275",
"0.5805726",
"0.577676",
"0.57609296",
"0.5735279",
"0.5722849",... | 0.6326241 | 2 |
Fetch all products using the ProductsClient and return a list of Product. | def CGif():
Ldyl = []
x0hE = ytxd()
for Lx3t in x0hE.get_products():
Ldyl.append(msfn(base_currency=Lx3t[0], quote_currency=Lx3t[1]))
return Ldyl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])",
"def CxaC(YKHO, LmHK={}):\n w2IS = '/v3/educator/products'\n Aofo = YKHO.request(w2IS, LmHK)\n Ldyl = []\n for nPrm in Aofo.response:\n _2sc = nPrm.type.capitalize()\n Lx3t = msfn.instance(_2sc, nPrm)\n ... | [
"0.80614233",
"0.77957183",
"0.77317494",
"0.7727818",
"0.76978964",
"0.7659971",
"0.76278734",
"0.76218337",
"0.75101274",
"0.7506675",
"0.7473793",
"0.74562234",
"0.7446137",
"0.74291027",
"0.730517",
"0.72776335",
"0.7214711",
"0.7210885",
"0.7206178",
"0.7161277",
"0.6978... | 0.8576422 | 0 |
For each edge formed by `points', yield the intersection with the line road_segment `(x1,y1) (x2,y2)`, if it exists. Also return the distance of `(x2,y2)' to the middle of the edge along with its index, so that the one closest can be chosen. | def tTKs(YKHO, n6gi, XEsU, LTIa):
o4D3, si3g = n6gi
ajwV, skBL = XEsU
for YRbF in range(4):
rNcn, Sb1k = LTIa[YRbF]
SzKB, INzm = LTIa[(YRbF + 1) % 4]
ciZM = (INzm - Sb1k) * (ajwV - o4D3) - (SzKB - rNcn) * (skBL - si3g)
ZGHT = (SzKB - rNcn) * (si3g - Sb1k) - (INzm - Sb1k) * (o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zcSC(cnXz, Ijzj, C5fX=None, nrrg=None):\n C5fX = Avhf(*cnXz) if C5fX is None else C5fX\n nrrg = Avhf(*Ijzj) if nrrg is None else nrrg\n AalE = (AYAh(cnXz[0], nrrg), Ijzj)\n HLst = (AYAh(cnXz[1], nrrg), Ijzj)\n fImQ = (AYAh(Ijzj[0], C5fX), cnXz)\n mnIA = (AYAh(Ijzj[1], C5fX), cnXz)\n lfdS =... | [
"0.66842866",
"0.6544951",
"0.6534804",
"0.6397761",
"0.63648325",
"0.6221629",
"0.6156096",
"0.6112809",
"0.60636187",
"0.60401773",
"0.5998089",
"0.59856075",
"0.59801304",
"0.5979306",
"0.59527075",
"0.5948109",
"0.59355986",
"0.5917374",
"0.5909981",
"0.59034204",
"0.5891... | 0.6642663 | 1 |
Initializes model with pretrained weights. Layers that don't match with pretrained layers in name or size are kept unchanged. | def Rkt4(C3ST, zLj6):
sAhM = rA0C.load_url(zLj6)
BJY9 = C3ST.state_dict()
sAhM = {G1Hx: Ty9i for G1Hx, Ty9i in sAhM.items() if G1Hx in BJY9 and BJY9[G1Hx].size() == Ty9i.size()}
BJY9.update(sAhM)
C3ST.load_state_dict(BJY9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(YKHO, mL4f=None):\n YKHO.online_backbone.init_weights()\n for r5E1 in YKHO.online_necks:\n r5E1.init_weights(init_linear='kaiming')\n for l8gS, wq_d in zip(YKHO.online_backbone.parameters(), YKHO.target_backbone.parameters()):\n wq_d.data.copy_(l8gS.data)\n for l8gS, wq_d in zip(... | [
"0.7687384",
"0.76498604",
"0.76121235",
"0.7610052",
"0.7531513",
"0.7531075",
"0.7506234",
"0.74517953",
"0.74322647",
"0.7430785",
"0.7413954",
"0.7405895",
"0.74027634",
"0.71927947",
"0.7145862",
"0.70933527",
"0.7058519",
"0.7037526",
"0.702971",
"0.6928198",
"0.6928198... | 0.7053429 | 17 |
Return whether two signatures are equal. | def xa14(YKHO, Elif):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if not isinstance(Elif, tG8y):\n return False\n return YKHO.__dict__ == Elif.__dict__",
"def lfgH(YKHO):\n DpE6 = YKHO._generate_signature().decode('utf-8')\n HxUA = YKHO.github_signature.decode('utf-8')\n YKHO.logger.info(f'*** INFO: My Signature: {DpE6}')\n YKHO... | [
"0.7376817",
"0.7366683",
"0.6833633",
"0.6822376",
"0.6760297",
"0.6717255",
"0.66255033",
"0.6621525",
"0.66104496",
"0.65823257",
"0.6542633",
"0.6539048",
"0.6535858",
"0.6517003",
"0.65066475",
"0.64650303",
"0.6443265",
"0.64417446",
"0.64297014",
"0.64221925",
"0.64064... | 0.0 | -1 |
Return whether two signatures are not equal. | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, kNeK):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def lfgH(YKHO):\n DpE6 = YKHO._generate_signature().decode('utf-8')\n HxUA = YKHO.github_signature.decode('utf-8')\n YKHO.logger.info(f'*** INFO: My Signature: {DpE6}')\n YKH... | [
"0.6810536",
"0.66832244",
"0.6669398",
"0.6649389",
"0.65423083",
"0.6531548",
"0.6408324",
"0.6405201",
"0.63616735",
"0.6360111",
"0.6349488",
"0.6294186",
"0.6274727",
"0.62588614",
"0.6258481",
"0.6256906",
"0.62511283",
"0.62347645",
"0.62277216",
"0.6209967",
"0.620117... | 0.0 | -1 |
Return a string representation of the signature. | def wHJl(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7539858",
"0.7287568",
"0.7190034",
"0.7190034",
"0.7190034",
"0.7181395",
"0.71353865",
"0.70787",
"0.7026662",
"0.7015127",
"0.69941896",
"0.6944213",
"0.69347954",
"0.6842682",
"0.68313044",
"0.68313044",
"0.67583066",
"0.6699529",
"0.66891664",
"0.6681649",
"0.6673457"... | 0.0 | -1 |
Return a string representation of the signature. | def wHJl(YKHO):
return '<ProjectSignature(apps=%r)>' % list(jKi7.iterkeys(YKHO._app_sigs)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7541231",
"0.728667",
"0.7190602",
"0.7190602",
"0.7190602",
"0.7182051",
"0.71359193",
"0.70791394",
"0.7027011",
"0.70154303",
"0.6995797",
"0.6944751",
"0.6935849",
"0.68435204",
"0.6832239",
"0.6832239",
"0.6758563",
"0.66998273",
"0.6689304",
"0.66820216",
"0.6674166"... | 0.6146218 | 57 |
Return whether two application signatures are equal. | def xa14(YKHO, Elif):
return YKHO.app_id == Elif.app_id and dict.__eq__(YKHO._model_sigs, Elif._model_sigs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return dict.__eq__(YKHO._app_sigs, Elif._app_sigs)",
"def lfgH(YKHO):\n DpE6 = YKHO._generate_signature().decode('utf-8')\n HxUA = YKHO.github_signature.decode('utf-8')\n YKHO.logger.info(f'*** INFO: My Signature: {DpE6}')\n YKHO.logger.info(f'*** INFO: GitHub Signature: {H... | [
"0.7336663",
"0.72561383",
"0.7213521",
"0.66038907",
"0.6564686",
"0.6436949",
"0.63801855",
"0.63764834",
"0.6350779",
"0.63317466",
"0.62575054",
"0.6240622",
"0.6201929",
"0.61982626",
"0.61881167",
"0.61878103",
"0.6177919",
"0.6177863",
"0.6169445",
"0.61631924",
"0.613... | 0.668619 | 3 |
Return a string representation of the signature. | def wHJl(YKHO):
return '<AppSignature(app_id=%r, models=%r)>' % (YKHO.app_id, list(jKi7.iterkeys(YKHO._model_sigs))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7541231",
"0.728667",
"0.7190602",
"0.7190602",
"0.7190602",
"0.7182051",
"0.71359193",
"0.70791394",
"0.7027011",
"0.70154303",
"0.6995797",
"0.6944751",
"0.6935849",
"0.68435204",
"0.6832239",
"0.6832239",
"0.6758563",
"0.66998273",
"0.6689304",
"0.66820216",
"0.6674166"... | 0.60270834 | 75 |
Return a string representation of the signature. | def wHJl(YKHO):
return '<ModelSignature(model_name=%r)>' % YKHO.model_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7539858",
"0.7287568",
"0.7190034",
"0.7190034",
"0.7190034",
"0.7181395",
"0.71353865",
"0.70787",
"0.7026662",
"0.7015127",
"0.69941896",
"0.6944213",
"0.69347954",
"0.6842682",
"0.68313044",
"0.68313044",
"0.67583066",
"0.6699529",
"0.66891664",
"0.6681649",
"0.6673457"... | 0.58517706 | 99 |
Return a string representation of the signature. | def wHJl(YKHO):
return '<IndexSignature(name=%r, fields=%r)>' % (YKHO.name, YKHO.fields) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7541231",
"0.728667",
"0.7190602",
"0.7190602",
"0.7190602",
"0.7182051",
"0.71359193",
"0.70791394",
"0.7027011",
"0.70154303",
"0.6995797",
"0.6944751",
"0.6935849",
"0.68435204",
"0.6832239",
"0.6832239",
"0.6758563",
"0.66998273",
"0.6689304",
"0.66820216",
"0.6674166"... | 0.0 | -1 |
Return attribute names and defaults for a field type. The attributes returned are those that impact the schema for a field's column. | def ZdRJ(Emd4, vF49):
muwo = Emd4._ATTRIBUTE_DEFAULTS['*'].copy()
muwo.update(Emd4._ATTRIBUTE_DEFAULTS.get(vF49, {}))
return muwo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DsoX(Emd4, vF49):\n return jKi7.iterkeys(Emd4._get_defaults_for_field_type(vF49))",
"def DsoX(Emd4, vF49):\n return jKi7.iterkeys(Emd4._get_defaults_for_field_type(vF49))",
"def azoT(YKHO):\n _6l2 = ['name', 'type']\n if YKHO.exclusive:\n _6l2.append('exclusive')\n if YKHO.default is ... | [
"0.70019615",
"0.70019615",
"0.6484985",
"0.64458627",
"0.6303182",
"0.61047846",
"0.61045617",
"0.60442626",
"0.59695965",
"0.5966777",
"0.59300464",
"0.5882036",
"0.5876599",
"0.5849112",
"0.58455306",
"0.5760866",
"0.57458884",
"0.57376707",
"0.56901485",
"0.56745094",
"0.... | 0.6733707 | 3 |
Return whether an attribute is set to its default value. | def ByRt(YKHO, hGI9):
try:
XigM = YKHO.field_attrs[hGI9]
except KeyError:
return True
return XigM == YKHO.get_attr_default(hGI9) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bNOA(YKHO, mWFP):\n return YKHO.get_attribute_schema(mWFP).has_default_value",
"def bNOA(YKHO):\n return YKHO.default is not None",
"def kCXs(YKHO):\n wEf2 = YKHO.__getattribute__('StoredValue')\n GN36 = YKHO.__class__.StoredValue\n return wEf2 == GN36",
"def Sfv2(YKHO):\n return YKHO.d... | [
"0.8286388",
"0.80434895",
"0.7622466",
"0.75843847",
"0.75212675",
"0.74690676",
"0.74160683",
"0.7394499",
"0.7368233",
"0.7368233",
"0.7368233",
"0.73641014",
"0.7321007",
"0.72814614",
"0.7269877",
"0.7269877",
"0.7269877",
"0.7269877",
"0.7269877",
"0.72656024",
"0.72349... | 0.8460985 | 1 |
Return a string representation of the signature. | def wHJl(YKHO):
return '<FieldSignature(field_name=%r, field_type=%r, field_attrs=%r, related_model=%r)>' % (YKHO.field_name, YKHO.field_type, YKHO.field_attrs, YKHO.related_model) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aadv(YKHO) -> str:\n return YKHO['Sns']['Signature']",
"def whL4(YKHO):\n return ' '.join(YKHO.segments[-1].unixtext.replace(u'\\n', ' ').strip().split())",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",
"def aadv(YKHO):\n return YKHO._signature",... | [
"0.7541231",
"0.728667",
"0.7190602",
"0.7190602",
"0.7190602",
"0.7182051",
"0.71359193",
"0.70791394",
"0.7027011",
"0.70154303",
"0.6995797",
"0.6944751",
"0.6935849",
"0.68435204",
"0.6832239",
"0.6832239",
"0.6758563",
"0.66998273",
"0.6689304",
"0.66820216",
"0.6674166"... | 0.6410023 | 36 |
Get full path filename to lock boot status data file. | def veLr(qxeD):
return GyEv + qxeD + '-nova-scheduler.lock' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bTbI(qxeD):\n return GyEv + qxeD + '-boot-status.json'",
"def hgff(YKHO):\n if YKHO.baseFilename.endswith('.log'):\n YRsi = YKHO.baseFilename[:-4]\n else:\n YRsi = YKHO.baseFilename\n YRsi += '.lock'\n return YRsi",
"def l7I_(YKHO):\n return khtY.join(YKHO._basedir, YKHO._lo... | [
"0.7648661",
"0.70835257",
"0.68273216",
"0.6513664",
"0.6467815",
"0.6465374",
"0.6433706",
"0.6427361",
"0.6392815",
"0.62526065",
"0.6195001",
"0.6167423",
"0.61116856",
"0.6098318",
"0.6070388",
"0.60579395",
"0.6057894",
"0.6037535",
"0.60041535",
"0.5980722",
"0.5976273... | 0.6955456 | 2 |
Get full path filename to write standard deviation of resource usage in hypervisors. | def LT87(qxeD):
return GyEv + qxeD + '-hypervisor-usage-std.csv' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gQmc():\n TLI7 = Hy7s.path.dirname(xAKo)\n return Hy7s.path.join(TLI7, 'occulttraining.txt')",
"def nRgl(YKHO):\n return Hy7s.path.normpath(YKHO.path + '\\\\' + XTRH['format_pgm'])",
"def kILZ(YKHO):\n if not YKHO.sysfs_dm_dir:\n return None\n return Hy7s.path.join(YKHO.sysfs_dm_dir, ... | [
"0.64289916",
"0.61588514",
"0.61478084",
"0.6085086",
"0.60680705",
"0.6056673",
"0.6036024",
"0.60271454",
"0.60128665",
"0.59565854",
"0.59358454",
"0.5932154",
"0.59306324",
"0.59113187",
"0.59069836",
"0.5849911",
"0.5829437",
"0.5825709",
"0.58143747",
"0.58032775",
"0.... | 0.7002843 | 0 |
input_fn for TF Estimators for training set. | def kTGD(YKHO) -> SnBA.FeatureAndLabelTensors:
return YKHO._input_fn_from_file(YKHO._train_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hbsH(YKHO, NArs, Tuqy=ZylS.estimator.ModeKeys.TRAIN):\n raise NotImplementedError()",
"def kTGD():\n N8DI = [Hy7s.path.join(vPBo.out_dir, vPBo.train_records)]\n return HMOD(N8DI, vPBo.epochs, vPBo.batch_size, shuffle=True)",
"def yKyM():\n sgt3 = tIZd.read_metadata(Hy7s.path.join(rsbj, IYUw.TRA... | [
"0.7662276",
"0.7582011",
"0.73283166",
"0.72993016",
"0.72711873",
"0.7205876",
"0.71283376",
"0.71101683",
"0.7084827",
"0.7067734",
"0.7020641",
"0.70053136",
"0.6989908",
"0.6973908",
"0.69226325",
"0.6898626",
"0.6896162",
"0.6863851",
"0.6860843",
"0.68573034",
"0.68568... | 0.80321354 | 0 |
input_fn for TF Estimators for validation set. | def bZFw(YKHO) -> SnBA.FeatureAndLabelTensors:
return YKHO._input_fn_from_file(YKHO._validate_path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kTGD(YKHO) -> SnBA.FeatureAndLabelTensors:\n return YKHO._input_fn_from_file(YKHO._train_path)",
"def hbsH(YKHO, NArs, Tuqy=ZylS.estimator.ModeKeys.TRAIN):\n raise NotImplementedError()",
"def hbsH(NArs, LT6S):\n bySB = ZylS.constant(0)\n Crrw = ZylS.constant(0)\n return (bySB, Crrw)",
"de... | [
"0.71534866",
"0.7125449",
"0.6958268",
"0.68636453",
"0.670674",
"0.6683845",
"0.6618339",
"0.6605551",
"0.65710956",
"0.6560143",
"0.6536054",
"0.65173554",
"0.6481254",
"0.6454904",
"0.6426866",
"0.64244705",
"0.6410971",
"0.6398034",
"0.6393422",
"0.63832724",
"0.6374454"... | 0.7390639 | 0 |
Parses TF Example protobuf into a text feature and labels. The input TF Example has a text feature as a singleton list with the full comment as the single element. | def cgz2(YKHO, AIu6: tf.Tensor, qgOP: Callable[[str], List[str]]) -> SnBA.FeatureAndLabelTensors:
yJc9 = {}
yJc9[YKHO._text_feature] = ZylS.FixedLenFeature([], ZylS.string)
for UXqs, yDqo in YKHO._labels.items():
yJc9[UXqs] = ZylS.FixedLenFeature([], yDqo)
U5Jc = ZylS.parse_single_example(AIu6, ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sSfN(PU1l):\n\n def hIe0():\n \"\"\"Returns data format of the serialized tf record file.\"\"\"\n return {'feature_1': ZylS.io.VarLenFeature(dtype=ZylS.int64), 'feature_2': ZylS.io.VarLenFeature(dtype=ZylS.int64), 'feature_3': ZylS.io.VarLenFeature(dtype=ZylS.int64), 'label': ZylS.io.FixedLenF... | [
"0.7473426",
"0.7192375",
"0.71876985",
"0.7041436",
"0.7027422",
"0.69428957",
"0.69346565",
"0.6860971",
"0.68087083",
"0.67434734",
"0.67412287",
"0.6696193",
"0.6671689",
"0.6616741",
"0.65874034",
"0.658653",
"0.6575175",
"0.6520753",
"0.650131",
"0.64955604",
"0.6491083... | 0.7669579 | 0 |
Returns the indices of the minimum values along an axis. | def WHwV(qRfH, jDK_=None, yvT9=None):
lJhO = isinstance(qRfH, vT81)
if not U6YZ(qRfH) and lJhO:
if jDK_ is not None:
mDxu('argmin', 'axis', type(jDK_), None)
if yvT9 is not None:
mDxu('argmin', 'out', type(yvT9), None)
Aofo = vNjd(qRfH)
if Aofo.shape == (1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WHwV(YKHO, jDK_: str='rows') -> 'DataFrame':\n return YKHO._stat_funcs('argmin', jDK_)",
"def WHwV(YKHO, qw7D):\n emQY = FfMS\n fk3S = None\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] < emQY:\n emQY = qw7D[YRbF]\n fk3S = YRbF\n return (emQY, fk3S)",
"def zXjM... | [
"0.6583821",
"0.65255034",
"0.64551914",
"0.6451419",
"0.6448586",
"0.6416022",
"0.63520133",
"0.6330571",
"0.6326746",
"0.62599504",
"0.6238197",
"0.62235206",
"0.6206076",
"0.61969215",
"0.6191196",
"0.6187173",
"0.6128968",
"0.6060099",
"0.60575366",
"0.6042093",
"0.602092... | 0.54341465 | 88 |
Returns the instance id for logging. | def Pl65(YKHO):
return '{0}-{1}'.format(YKHO._vc_name, YKHO._host) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lacw(YKHO) -> str:\n return getattr(YKHO, '_logging_id_', YKHO.__class__.__qualname__)",
"def o_gm(YKHO) -> str:\n return qe4Y.get(YKHO, 'instance_id')",
"def Pl65(YKHO):\n return YKHO.instance_id",
"def eG8P(YKHO):\n return YKHO.__instance_id",
"def o_gm(YKHO) -> qe4Y.Output[str]:\n ret... | [
"0.8218475",
"0.8025451",
"0.79560983",
"0.79560393",
"0.78480554",
"0.78480554",
"0.78480554",
"0.78480554",
"0.78480554",
"0.78480554",
"0.78000116",
"0.776137",
"0.776137",
"0.776137",
"0.7671196",
"0.7671196",
"0.7671196",
"0.7582486",
"0.7582486",
"0.7582486",
"0.7582486... | 0.7386459 | 33 |
Gets the required metric preferences from Configuration. | def AaWS(YKHO, GPtr):
GVuv = dict()
GVuv['include_metrics'] = GPtr.get('include_metrics', {})
GVuv['exclude_metrics'] = GPtr.get('exclude_metrics', {})
return GVuv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def g_bI(YKHO, nNXP=None, MOPg=None):\n return YKHO.metrics.get(api=nNXP, headers=MOPg, param='/configuration')",
"def Kr5C():\n Wbxz = {'disk_usage': 'YES', 'cpu_percent': 'YES', 'memory_info': 'YES', 'cpu_stats': 'YES'}\n return Wbxz",
"def eEPS(YKHO):\n raise NotImplementedError",
"def DGu5(YK... | [
"0.6539192",
"0.64132667",
"0.6036444",
"0.60328984",
"0.5920239",
"0.5903764",
"0.5800494",
"0.5787759",
"0.5745069",
"0.5727194",
"0.57212275",
"0.57003456",
"0.5622699",
"0.56104517",
"0.5595933",
"0.5585854",
"0.55526394",
"0.55515677",
"0.5529959",
"0.5519594",
"0.551959... | 0.64999586 | 1 |
Print the number of seconds in human readable format. | def bAZe(vXWl):
HPWe = vXWl // 60
vXWl %= 60
qEd2 = HPWe // 60
HPWe %= 60
XMGn = qEd2 // 24
qEd2 %= 24
def B0gN(r9Hf, mWFP):
return '{} {}{}'.format(str(r9Hf), mWFP, 's' if r9Hf > 1 else '')
if XMGn > 0:
tO9_ = B0gN(XMGn, 'day')
if qEd2 > 0:
tO9_ += '... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J4vV(YKHO, XpVf):\n bGrB = YKHO.runtime.service(YKHO, 'i18n').ungettext\n Wave = XpVf // 3600\n EcGO = XpVf % 3600\n O66n = EcGO // 60\n C6wh = EcGO % 60\n W8mS = ''\n if Wave > 0:\n W8mS += bGrB('{num_hour} hour', '{num_hour} hours', Wave).format(num_hour=Wave)\n if O66n > 0:\n ... | [
"0.79881215",
"0.7431252",
"0.72922677",
"0.7189182",
"0.71485907",
"0.7080386",
"0.7067963",
"0.70077443",
"0.6957045",
"0.694859",
"0.6845278",
"0.6801126",
"0.6782586",
"0.6744025",
"0.6731153",
"0.6730933",
"0.66062856",
"0.65881306",
"0.6585352",
"0.658501",
"0.6575719",... | 0.0 | -1 |
Applies modifications to the model layers to create a new Graph. For example, simply changing `model.layers[idx].activation = new activation` does not change the graph. The entire graph needs to be updated with modified inbound and outbound tensors because of change in layer building function. | def wFD4(C3ST, UeD_=None):
uqvc = Hy7s.path.join(gbPf.gettempdir(), next(gbPf._get_candidate_names()) + '.h5')
try:
C3ST.save(uqvc)
return ZylS.keras.models.load_model(uqvc, custom_objects=UeD_)
finally:
Hy7s.remove(uqvc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y2Mx(C3ST):\n uqvc = Hy7s.path.join(gbPf.gettempdir(), next(gbPf._get_candidate_names()) + '.h5')\n try:\n C3ST.save(uqvc)\n return uyMl(uqvc)\n finally:\n Hy7s.remove(uqvc)\n from keras.activations import linear",
"def uQRu(YKHO):\n YKHO.W1_tv = ZylS.assign(YKHO.W1_tv, YK... | [
"0.6834574",
"0.646033",
"0.64262533",
"0.6143314",
"0.6054267",
"0.6037568",
"0.57922846",
"0.57590234",
"0.5751098",
"0.57248014",
"0.56715995",
"0.56670046",
"0.56472725",
"0.56293595",
"0.56099206",
"0.5577295",
"0.5546652",
"0.5546345",
"0.55161875",
"0.54980326",
"0.549... | 0.59563535 | 6 |
returns whether the given filename is a valid one to watch | def aD5O(YKHO, Ux0P):
return not (Ux0P == 'CVS' or Ux0P.startswith('.')) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ezqk(Ux0P):\n if Ux0P in lsDS:\n return False\n if not Hy7s.path.exists(Ux0P):\n return False\n bGrB, YBcr = Hy7s.path.splitext(Ux0P)\n return YBcr == '.py'",
"def GJVi(mWFP: str) -> bool:\n return not mWFP.startswith('.')",
"def ghfI(Ux0P):\n xEDR = True\n if Ux0P[0] == ... | [
"0.77909786",
"0.7757278",
"0.7443244",
"0.7346418",
"0.7317058",
"0.7305342",
"0.7300752",
"0.7249595",
"0.7221809",
"0.7203395",
"0.71959907",
"0.7195525",
"0.7187895",
"0.71270996",
"0.7105209",
"0.709466",
"0.7086966",
"0.7061821",
"0.7058221",
"0.7031191",
"0.7031191",
... | 0.7965851 | 0 |
Get the stores which keep a specific article in stock Returns a list of store ID's. | def XJyV(LGLQ):
xvv6 = zYma(LGLQ, KdWD.get_stock(), KdWD.get_suffices())
e5kH = {'count': len(xvv6)}
_hkX = oGir(qQXR.dumps({'stock': xvv6, 'meta': e5kH}, indent=4), content_type='application/json; charset=utf8')
return _hkX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q8Ht():\n if not QePW.args:\n eTsH(400)\n qIxc = ZPxW(QePW.args)\n weKp = qIxc.getlist('article_number')\n if not len(weKp):\n eTsH(400)\n F1m0 = []\n LpID = KdWD.get_stock()\n LRpx = KdWD.get_suffices()\n for J0we in weKp:\n Ojap = set()\n Knuv = zYma(J0we, ... | [
"0.69011724",
"0.66640097",
"0.6219218",
"0.60416234",
"0.59874713",
"0.58311075",
"0.58261603",
"0.5822265",
"0.58212626",
"0.581741",
"0.5780668",
"0.5744769",
"0.57045937",
"0.55882335",
"0.5581736",
"0.5535259",
"0.5457178",
"0.54237443",
"0.53617615",
"0.53542143",
"0.53... | 0.5978075 | 5 |
Get the stores which keep all articles in the GET string in stock Returns a list of store ID's. | def q8Ht():
if not QePW.args:
eTsH(400)
qIxc = ZPxW(QePW.args)
weKp = qIxc.getlist('article_number')
if not len(weKp):
eTsH(400)
F1m0 = []
LpID = KdWD.get_stock()
LRpx = KdWD.get_suffices()
for J0we in weKp:
Ojap = set()
Knuv = zYma(J0we, LpID, LRpx)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UDtA(YKHO, Mc9N: str) -> x1iM:\n tzaJ = 'SELECT s.store_name\\n FROM store s\\n INNER JOIN store_has_product shp ON s.id = shp.store_id\\n WHERE shp.product_id = %s'\n pxY2 = []\n for VUF1 in YKHO.query(tzaJ, (Mc9N,)):\n pxY2.append(VUF1[0])\n return pxY2",
... | [
"0.65085787",
"0.63204056",
"0.62326276",
"0.614906",
"0.61243194",
"0.6048765",
"0.6004646",
"0.5868923",
"0.5855157",
"0.5679664",
"0.56665885",
"0.55399525",
"0.5526798",
"0.5520373",
"0.54900014",
"0.54592115",
"0.54465157",
"0.5404198",
"0.53789556",
"0.5340604",
"0.5328... | 0.7157599 | 0 |
Get quaternion from roll, pitch, yaw. | def QoQM(rKSe, H2HG, xTkQ):
slpS = ZylS.transformations.quaternion_from_euler(rKSe, H2HG, xTkQ)
return s4N7.Quaternion(XTiz.roll(slpS, 1)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WlgB(xTkQ, H2HG, rKSe):\n vHO5 = epAf.cos(xTkQ * 0.5)\n BhJz = epAf.sin(xTkQ * 0.5)\n U7YL = epAf.cos(H2HG * 0.5)\n H4yH = epAf.sin(H2HG * 0.5)\n KBgZ = epAf.cos(rKSe * 0.5)\n JvR2 = epAf.sin(rKSe * 0.5)\n yzQ0 = vHO5 * U7YL * KBgZ + BhJz * H4yH * JvR2\n WKvO = vHO5 * U7YL * JvR2 - BhJz... | [
"0.7953754",
"0.7841357",
"0.7620825",
"0.75220716",
"0.75220716",
"0.7521056",
"0.7493996",
"0.74924016",
"0.7404782",
"0.7395739",
"0.7300541",
"0.72954714",
"0.7242815",
"0.72005993",
"0.7150538",
"0.70922583",
"0.70909405",
"0.70467824",
"0.6984429",
"0.6930416",
"0.69220... | 0.78286123 | 2 |
Get the rollpitchyaw representation of a twist given by quaternions. | def eahU(slpS):
xTkQ, H2HG, rKSe = slpS.yaw_pitch_roll
return (rKSe, H2HG, xTkQ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BhOM(YKHO):\n YKHO._normalise()\n xTkQ = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[3] - YKHO.q[1] * YKHO.q[2]), 1 - 2 * (YKHO.q[2] ** 2 + YKHO.q[3] ** 2))\n H2HG = oyIN.arcsin(2 * (YKHO.q[0] * YKHO.q[2] + YKHO.q[3] * YKHO.q[1]))\n rKSe = oyIN.arctan2(2 * (YKHO.q[0] * YKHO.q[1] - YKHO.q[2] * YKHO.q[3]), ... | [
"0.7382278",
"0.6887287",
"0.6857325",
"0.6780679",
"0.67664605",
"0.6685998",
"0.65583295",
"0.6447354",
"0.6410642",
"0.64059097",
"0.63824207",
"0.63195425",
"0.62963843",
"0.6271071",
"0.6234782",
"0.62149435",
"0.6214868",
"0.62147355",
"0.6191126",
"0.6187017",
"0.61870... | 0.69259286 | 1 |
Returns a byte string representing the json serialized object | def n5rA(YKHO, YEnM):
try:
return qQXR.loads(YEnM.decode('utf-8'))
except (bZdH, TypeError, UnicodeDecodeError):
raise o3HX | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Napc(YKHO) -> bytes:\n return wilB(YKHO._to_dict()).encode()",
"def Napc(YKHO) -> bytes:\n return wilB(YKHO._to_dict()).encode()",
"def Napc(YKHO) -> bytes:\n return wilB(YKHO._to_dict()).encode()",
"def a50J(YEnM: Any) -> str:\n if isinstance(YEnM, bytes):\n if len(YEnM) < 256:\n ... | [
"0.79402775",
"0.79402775",
"0.79402775",
"0.785872",
"0.7685481",
"0.7632208",
"0.7622028",
"0.7579388",
"0.7579388",
"0.7579388",
"0.7521778",
"0.740988",
"0.73589146",
"0.7167495",
"0.7160008",
"0.7121365",
"0.7121293",
"0.71028",
"0.7095615",
"0.70918137",
"0.7079242",
... | 0.0 | -1 |
calculate labeled sum along first axis | def zgTO(WKvO, Crrw, U9dU):
if WKvO.ndim == 2:
zuVY = WKvO
else:
zuVY = WKvO.reshape(WKvO.shape[0], -1)
assert zuVY.shape[:1] == Crrw.shape
hlel = JrKH(zuVY, Crrw, U9dU)
return hlel.reshape(U9dU, *WKvO.shape[1:]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i_1N(WKvO, Crrw, U9dU, jDK_=0, rKSe=None):\n if jDK_ != 0:\n WKvO = oyIN.rollaxis(WKvO, jDK_, 0)\n hlel = zgTO(WKvO, Crrw, U9dU)\n if rKSe is not None:\n hlel = oyIN.rollaxis(hlel, 0, rKSe)\n return hlel",
"def MXvk(YKHO, _6N2):\n MCOv = _6N2[0][1].copy()\n for UXqs, iArr in _... | [
"0.7018688",
"0.6490903",
"0.62788963",
"0.6156169",
"0.61549294",
"0.60924685",
"0.60470384",
"0.6029437",
"0.59316695",
"0.592157",
"0.5917872",
"0.5897082",
"0.5896874",
"0.5883764",
"0.5876332",
"0.58674896",
"0.5858859",
"0.5844308",
"0.5815661",
"0.5812945",
"0.58123314... | 0.68938917 | 1 |
calculate labeled sum along axis | def i_1N(WKvO, Crrw, U9dU, jDK_=0, rKSe=None):
if jDK_ != 0:
WKvO = oyIN.rollaxis(WKvO, jDK_, 0)
hlel = zgTO(WKvO, Crrw, U9dU)
if rKSe is not None:
hlel = oyIN.rollaxis(hlel, 0, rKSe)
return hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgTO(WKvO, Crrw, U9dU):\n if WKvO.ndim == 2:\n zuVY = WKvO\n else:\n zuVY = WKvO.reshape(WKvO.shape[0], -1)\n assert zuVY.shape[:1] == Crrw.shape\n hlel = JrKH(zuVY, Crrw, U9dU)\n return hlel.reshape(U9dU, *WKvO.shape[1:])",
"def Rswi(WKvO, Crrw, jDK_=0, U9dU=None, rKSe=False, HV... | [
"0.6716737",
"0.6456776",
"0.628028",
"0.6112538",
"0.60546815",
"0.602293",
"0.5987725",
"0.5946752",
"0.59284586",
"0.5876188",
"0.5863137",
"0.5862285",
"0.58510786",
"0.5842105",
"0.58180684",
"0.58069956",
"0.58052224",
"0.57861125",
"0.57779616",
"0.5769365",
"0.5699871... | 0.7166863 | 0 |
r""" Return the axes argument for `fftn`. >>> X = np.zeros((5, 2, 2, 2)) >>> print MKSRegressionModel()._axes(X) [1 2 3] | def jZQR(YKHO, EcVT):
return oyIN.arange(len(EcVT.shape) - 1) + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MPlV(YKHO) -> oyIN.ndarray:\n return YKHO._axes",
"def MPlV(YKHO):\n return YKHO._axes",
"def MPlV(YKHO):\n return YKHO._axes",
"def bRJI(YKHO):\n raise NotImplementedError()",
"def oD7d(YKHO):\n return YKHO._axesnames",
"def tne4(YKHO):\n if YKHO.number_axes_of_symmetry is None:\n ... | [
"0.69732517",
"0.670188",
"0.670188",
"0.6559298",
"0.6485413",
"0.61661816",
"0.6141011",
"0.6075821",
"0.58936983",
"0.589313",
"0.5880164",
"0.5864553",
"0.58011097",
"0.58011097",
"0.57908237",
"0.5780383",
"0.5671003",
"0.5613607",
"0.55903715",
"0.55772007",
"0.55478936... | 0.7044639 | 0 |
View function for adding a new set. Via a form the user enters a set code to retrieve. Optionally, the user can indicate that this set is held, i.e. all parts are added to my parts. | def To1R(QePW):
if QePW.method == 'POST':
L03z = tLvV(QePW.POST)
if L03z.is_valid():
nPrm = L03z.cleaned_data
xGo7 = nPrm['set_code']
qbsE = nPrm['my_set']
bo34.info('New set to add: {0}, My set: {1}'.format(xGo7, qbsE))
if fHNa.objects.fil... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pQwJ(YKHO):\n YKHO.set_tree.remove_node(YKHO.adding_node)\n YRbF = len(YKHO.exercise.sets)\n YKHO.exercise.sets.append(fHNa())\n ZfUD = eCTF(text='Set ' + str(YRbF))\n yAvQ = cwyM(exercise=YKHO.exercise, set_id=YRbF, session=YKHO.session)\n YKHO.set_tree.add_node(ZfUD)\n YKHO.set_tree.add_... | [
"0.6643125",
"0.65877193",
"0.54774004",
"0.53665334",
"0.5284385",
"0.52604187",
"0.5210809",
"0.517877",
"0.51618266",
"0.51553386",
"0.51492554",
"0.51400846",
"0.51080763",
"0.5107906",
"0.5102681",
"0.5102102",
"0.5095473",
"0.50814414",
"0.5069169",
"0.5057189",
"0.5054... | 0.76564026 | 0 |
conv2d returns a 2d convolution layer with full stride. | def b_zE(WKvO, XcU5):
return ZylS.nn.conv2d(WKvO, XcU5, strides=[1, 1, 1, 1], padding='SAME') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DYf_():\n VXjJ = oyIN.array([[0.3, 0.5, 0.7, 0.9], [0.1, 0.3, 0.5, 0.7], [0.9, 0.7, 0.5, 0.3]])\n rPXJ = oyIN.array([[1, 0], [1, 0]])\n rPXJ = oyIN.flipud(oyIN.fliplr(rPXJ))\n return cxpp(VXjJ, rPXJ, mode='valid')",
"def gZ8A(WKvO, XcU5):\n return ZylS.nn.conv2d(input=WKvO, filter=XcU5, stride... | [
"0.7629538",
"0.7627165",
"0.7579147",
"0.7463493",
"0.74578935",
"0.74578935",
"0.7386576",
"0.7337714",
"0.7330282",
"0.73295087",
"0.7313963",
"0.73015827",
"0.7296284",
"0.72696656",
"0.72463566",
"0.72321266",
"0.72088444",
"0.7196564",
"0.71902525",
"0.7187835",
"0.7152... | 0.7426121 | 9 |
weight_variable generates a weight variable of a given shape. | def E9N2(ROpF):
RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)
return ZylS.Variable(RqgG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)",
"def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)",
"def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev... | [
"0.82682097",
"0.8235508",
"0.8158841",
"0.8156995",
"0.81399417",
"0.81399417",
"0.81399417",
"0.8137802",
"0.812119",
"0.80655366",
"0.7983301",
"0.79793143",
"0.79584336",
"0.79206425",
"0.777795",
"0.7553387",
"0.7533732",
"0.75042933",
"0.73055935",
"0.7289978",
"0.72055... | 0.81348443 | 17 |
Determines which NUMA node given network device belongs to | def aaq6(YKHO, M4N3, n9UN=False):
if n9UN:
return YKHO.__FAKE_DEV.get(M4N3, -1)
Ux0P = '/sys/class/net/{0}/device/numa_node'.format(M4N3)
if not Hy7s.path.isfile(Ux0P):
return -1
with open(Ux0P) as Gcbu:
return int(Gcbu.read().strip()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A1SN():\n try:\n hlel = Yn3K.check_output('lscpu').decode('utf-8')\n for zFiD in hlel.splitlines():\n r8hN = ZbWC.match('NUMA node0.*:\\\\s*\\\\d+-(\\\\d+)', zFiD)\n if r8hN:\n return r8hN.group(1)\n except OSError:\n pass\n HwRy.stderr.write('... | [
"0.66792756",
"0.6584289",
"0.64956766",
"0.6328487",
"0.62732524",
"0.6237194",
"0.61577135",
"0.61455196",
"0.6131031",
"0.6067646",
"0.6067103",
"0.6067103",
"0.6022279",
"0.6009558",
"0.599932",
"0.5925769",
"0.59163326",
"0.5881263",
"0.58721143",
"0.5816217",
"0.5791548... | 0.71188384 | 0 |
constructor Takes email address, project and in_cloud to access the credentials needed. If it's running in the cloud (in_cloud=True), is assumes it can simply use the project default service account creds to access Firestore. This is different to the DV360/CM/SA360/ADH fetchers as they have to use a person's real crede... | def FIMM(YKHO, D3lj: str=None, bNKA: str=None, jpOJ: bool=True):
YKHO._in_cloud = jpOJ
YKHO._project = bNKA
YKHO._email = D3lj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, **B2fa):\n super().__init__(transaction=None, config=None)\n VqIl = B2fa.get('secret_data')\n YKHO.project_id = VqIl.get('project_id')\n try:\n Vt89 = yszQ.oauth2.service_account.Credentials.from_service_account_info(VqIl)\n YKHO.client = EhpD.discovery.build(YKHO.google_cl... | [
"0.6617427",
"0.65312475",
"0.6135275",
"0.61236876",
"0.6046232",
"0.6019621",
"0.60087276",
"0.5989147",
"0.5979372",
"0.5936632",
"0.59193534",
"0.5905617",
"0.5863655",
"0.58593005",
"0.5853143",
"0.58487743",
"0.5847294",
"0.58395565",
"0.5825567",
"0.5784465",
"0.578251... | 0.74824977 | 0 |
Take the dot product between two arrays. Can handle numpy arrays and scipy.sparse matrices. | def BJ1H(LFlW, _tIi):
if H4yH.sparse.issparse(_tIi) or H4yH.sparse.issparse(LFlW):
Aofo = LFlW * _tIi
else:
Aofo = LFlW.dot(_tIi)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BJ1H(jzdc, Fg_i):\n return oyIN.vdot(jzdc.arr, Fg_i.arr)",
"def iVXA(jzdc, Fg_i):\n return oyIN.einsum('ijk,ikl->ijl', jzdc, Fg_i)",
"def qhEX(jzdc, Fg_i):\n return oyIN.vdot(jzdc.ravel(), Fg_i.ravel())",
"def BJ1H(eSw6, _baA):\n return SNvg(eSw6.array.mmul(_baA.array))",
"def uYbU(jzdc, Fg... | [
"0.8498483",
"0.8128013",
"0.7964246",
"0.79496515",
"0.7903003",
"0.7821902",
"0.78125453",
"0.779745",
"0.77845275",
"0.7722153",
"0.7721996",
"0.7699224",
"0.76626015",
"0.76305616",
"0.7606442",
"0.76023924",
"0.75788695",
"0.7566752",
"0.75599015",
"0.75465393",
"0.74946... | 0.70115656 | 59 |