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 |
|---|---|---|---|---|---|---|
If cannon can be fired, fires cannon. Otherwise creates bullet moving from player's center along player's direction as long as options.max_player_bullets won't be exeeded | def ZSQN(YKHO):
if z4Y6(YKHO.player, YKHO.ion_field):
return
if YKHO.cannon.start_transition(jZ_H.FIRING):
return
if len(YKHO.player_bullets) < y7GR.max_player_bullets:
jbub = GBVa(y7GR.bullet_filename, y7GR.bullet_speed, YKHO.player.get_rect().center, YKHO.player.get_direction())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hy9P(gCuF, Vjhr, C7MP, WFC2):\n if len(WFC2) < gCuF.bullets_allowed:\n jbub = GBVa(gCuF, Vjhr, C7MP.rect.centerx, C7MP.rect.top)\n WFC2.add(jbub)\n wzkt = a9eO.time.get_ticks()\n if wzkt - C7MP.last_shot > 150:\n C7MP.last_shot = wzkt\n if C7MP.power == 1:\n YBnT... | [
"0.67588484",
"0.66876584",
"0.6582911",
"0.6501811",
"0.64699984",
"0.6457912",
"0.6457912",
"0.6457912",
"0.6455321",
"0.640724",
"0.63724893",
"0.6362164",
"0.6347416",
"0.6310384",
"0.6271825",
"0.6161691",
"0.6094615",
"0.60782635",
"0.6077161",
"0.6064756",
"0.604903",
... | 0.7533866 | 0 |
Setup a rectangular grid of triangles with m+1 by n+1 grid points and side lengths len1, len2. If side lengths are omitted the mesh defaults to the unit square. | def OENZ(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):
from anuga.config import epsilon
NhvE = float(SGl7) / r8hN
SqVb = float(sHY4) / exwG
iXlf = {}
LTIa = []
for YRbF in range(r8hN + 1):
for r845 in range(exwG + 1):
iXlf[YRbF, r845] = len(LTIa)
LTIa.append([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOmn():\n iXlf = oyIN.array(((0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0.5, 0.5, 0)), dtype=oyIN.float32)\n y_PJ = oyIN.array(((0, 1, 4), (1, 3, 4), (3, 2, 4), (2, 0, 4)), dtype=oyIN.int32)\n return (iXlf, y_PJ)",
"def ARE7(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):\n from anuga.config ... | [
"0.6293976",
"0.6231517",
"0.61670005",
"0.6151781",
"0.6146776",
"0.60571784",
"0.6047382",
"0.59998834",
"0.5991503",
"0.59885293",
"0.59124744",
"0.5853241",
"0.57895696",
"0.57791865",
"0.5770217",
"0.5744407",
"0.57369494",
"0.5694929",
"0.56761366",
"0.56715983",
"0.566... | 0.56198937 | 23 |
Setup a rectangular grid of triangles with m+1 by n+1 grid points and side lengths len1, len2. If side lengths are omitted the mesh defaults to the unit square. | def DWhD(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):
from anuga.config import epsilon
_roo = float(SGl7) / r8hN
BGrb = float(sHY4) / exwG
Kr7U = (r8hN + 1) * (exwG + 1)
class Index(object):
def FIMM(YKHO, exwG, r8hN):
YKHO.n = exwG
YKHO.m = r8hN
def n... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOmn():\n iXlf = oyIN.array(((0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0.5, 0.5, 0)), dtype=oyIN.float32)\n y_PJ = oyIN.array(((0, 1, 4), (1, 3, 4), (3, 2, 4), (2, 0, 4)), dtype=oyIN.int32)\n return (iXlf, y_PJ)",
"def ARE7(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):\n from anuga.config ... | [
"0.6293976",
"0.6231517",
"0.61670005",
"0.6151781",
"0.6146776",
"0.60571784",
"0.6047382",
"0.59998834",
"0.5991503",
"0.59885293",
"0.59124744",
"0.5853241",
"0.57895696",
"0.57791865",
"0.5770217",
"0.5744407",
"0.57369494",
"0.5694929",
"0.56761366",
"0.56715983",
"0.566... | 0.55231416 | 29 |
Setup a rectangular grid of triangles with m+1 by n+1 grid points and side lengths len1, len2. If side lengths are omitted the mesh defaults to the unit square. | def pPjA(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):
SGl7 = float(SGl7)
sHY4 = float(sHY4)
r8hN = int(r8hN)
exwG = int(exwG)
NArs = []
NArs.append(r8hN)
NArs.append(exwG)
NArs.append(SGl7)
NArs.append(sHY4)
PXhc = mLGw.array(NArs, dtype=float)
FBPZ = mLGw.array(hLRM, dt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOmn():\n iXlf = oyIN.array(((0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0.5, 0.5, 0)), dtype=oyIN.float32)\n y_PJ = oyIN.array(((0, 1, 4), (1, 3, 4), (3, 2, 4), (2, 0, 4)), dtype=oyIN.int32)\n return (iXlf, y_PJ)",
"def ARE7(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):\n from anuga.config ... | [
"0.62946093",
"0.62310135",
"0.6168176",
"0.6153207",
"0.6145747",
"0.60583806",
"0.60487187",
"0.6000019",
"0.5993073",
"0.5989245",
"0.59139246",
"0.5854477",
"0.57904863",
"0.5779405",
"0.57709765",
"0.5744476",
"0.57366854",
"0.56954896",
"0.56772363",
"0.5671805",
"0.566... | 0.5446118 | 36 |
Setup a rectangular grid of triangles with m+1 by n+1 grid points and side lengths len1, len2. If side lengths are omitted the mesh defaults to the unit square. | def ARE7(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):
from anuga.config import epsilon
_roo = float(SGl7) / r8hN
BGrb = float(sHY4) / exwG
iXlf = {}
LTIa = []
for YRbF in range(r8hN + 1):
for r845 in range(exwG + 1):
iXlf[YRbF, r845] = len(LTIa)
LTIa.append([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOmn():\n iXlf = oyIN.array(((0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0.5, 0.5, 0)), dtype=oyIN.float32)\n y_PJ = oyIN.array(((0, 1, 4), (1, 3, 4), (3, 2, 4), (2, 0, 4)), dtype=oyIN.int32)\n return (iXlf, y_PJ)",
"def wgmW(YKHO, Annx, E9dT):\n if Annx < 2 or E9dT < 2:\n raise ValueErro... | [
"0.62945706",
"0.6166837",
"0.61511105",
"0.6145661",
"0.60557485",
"0.604681",
"0.5999363",
"0.599083",
"0.5988158",
"0.5911967",
"0.5851558",
"0.57899046",
"0.5777643",
"0.5767047",
"0.57443374",
"0.57347256",
"0.56930614",
"0.56749094",
"0.56707466",
"0.56613016",
"0.56413... | 0.62304926 | 1 |
Setup a rectangular grid of triangles with m+1 by n+1 grid points and side lengths len1, len2. If side lengths are omitted the mesh defaults to the unit square. | def A8p1(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):
from anuga.config import epsilon
_roo = float(SGl7) / r8hN
BGrb = float(sHY4) / exwG
iXlf = {}
LTIa = []
for YRbF in range(r8hN + 1):
for r845 in range(exwG + 1):
iXlf[YRbF, r845] = len(LTIa)
LTIa.append([... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZOmn():\n iXlf = oyIN.array(((0, 0, 0), (1, 0, 0), (0, 1, 0), (1, 1, 0), (0.5, 0.5, 0)), dtype=oyIN.float32)\n y_PJ = oyIN.array(((0, 1, 4), (1, 3, 4), (3, 2, 4), (2, 0, 4)), dtype=oyIN.int32)\n return (iXlf, y_PJ)",
"def ARE7(r8hN, exwG, SGl7=1.0, sHY4=1.0, hLRM=(0.0, 0.0)):\n from anuga.config ... | [
"0.6293976",
"0.6231517",
"0.61670005",
"0.6151781",
"0.60571784",
"0.6047382",
"0.59998834",
"0.5991503",
"0.59885293",
"0.59124744",
"0.5853241",
"0.57895696",
"0.57791865",
"0.5770217",
"0.5744407",
"0.57369494",
"0.5694929",
"0.56761366",
"0.56715983",
"0.56623024",
"0.56... | 0.6146776 | 4 |
Setup a circular grid of triangles with m concentric circles and with n radial segments. If radius is are omitted the mesh defaults to the unit circle radius. | def ggXm(r8hN, exwG, r1VO=1.0, hgjH=(0.0, 0.0)):
from math import pi, cos, sin
r1VO = float(r1VO)
iXlf = {}
LTIa = [[0.0, 0.0]]
iXlf[0, 0] = 0
for YRbF in range(exwG):
q7In = 2 * YRbF * pi / exwG
WKvO = cos(q7In)
LVAh = sin(q7In)
for r845 in range(1, r8hN + 1):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSX5(r1VO, Oroq):\n rR8k = N1zS('\\n cellSize = %g;\\n radius = %g;\\n Point(1) = {0, 0, 0, cellSize};\\n Point(2) = {-radius, 0, 0, cellSize};\\n Point(3) = {0, radius, 0, cellSize};\\n P... | [
"0.73046595",
"0.63456124",
"0.6050895",
"0.60322237",
"0.596944",
"0.5906674",
"0.59004086",
"0.5847635",
"0.5813838",
"0.57870066",
"0.57335985",
"0.57048213",
"0.5696469",
"0.5693582",
"0.5680498",
"0.5646968",
"0.5626081",
"0.5609492",
"0.5597434",
"0.5578989",
"0.557463"... | 0.6982037 | 1 |
Assembles the Liouvillian superoperator from a Hamiltonian and a ``list`` of collapse operators. | def gwuw(C7Ls=None, YFZq=None, Av9I=False, Ei2p=None):
from .cy.qobjevo import QobjEvo
if Av9I and (isinstance(C7Ls, QobjEvo) or any((isinstance(khtY, QobjEvo) for khtY in YFZq))):
raise ValueError('Cannot return the data object when computing the liouvillian with QobjEvo')
YFZq = YFZq or []
if ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, Uf4l: Union[Array, List[Operator]], yZUO: Union[Array, Operator], qyx8: Optional[Union[Array, List[Operator]]]=None, phJ9: Optional[int]=10):\n YKHO._hamiltonian_operators = oyIN.empty(shape=len(Uf4l), dtype='O')\n for YRbF in range(len(Uf4l)):\n if isinstance(Uf4l[YRbF], uS0y):\n ... | [
"0.6071734",
"0.58032703",
"0.5553819",
"0.5434221",
"0.5399199",
"0.539841",
"0.5316775",
"0.52716637",
"0.5251347",
"0.52191705",
"0.5207429",
"0.5203315",
"0.51588607",
"0.51394594",
"0.51001656",
"0.50653577",
"0.5055763",
"0.50445193",
"0.5024991",
"0.5019187",
"0.500599... | 0.0 | -1 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"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.83366895",
"0.8330097",
"0.83294135",
"0.832544",
"0.83175427",
"0.82938... | 0.8337803 | 23 |
Whether the user can view and delete files they have uploaded. | def SDIh(YKHO):
return 1 << 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P8dv(YKHO, Ux0P):\n return False",
"def NuGW(bNKA, CBIr):\n return TX_j(bNKA, CBIr) and bNKA.allow_file_downloads",
"def IVeY(YKHO):\n Qwdz = HgIC(c5ow.net_id)['STFADM']\n try:\n if Qwdz:\n if len([eHNT.path for eHNT in z0ez('{0}/user_uploads/'.format(YKHO.__APP_PATH__)) if eH... | [
"0.76930034",
"0.72186506",
"0.6912479",
"0.69057286",
"0.6818351",
"0.68110603",
"0.67672735",
"0.67313975",
"0.6564983",
"0.6546332",
"0.65135473",
"0.6505405",
"0.6497665",
"0.64370733",
"0.6416917",
"0.6412308",
"0.640112",
"0.63987803",
"0.6368822",
"0.6367135",
"0.63561... | 0.0 | -1 |
Whether the user can edit the server settings. | def UXqu(YKHO):
return 1 << 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LyC3(CBIr, C3ST):\n return CBIr.has_perm('{}.change_{}'.format(C3ST._meta.app_label, C3ST._meta.model_name))",
"def otSk(YKHO):\n ZrNc = tHSi.current_user_account\n if ZrNc is None:\n return False\n return YKHO.user_can_edit(ZrNc.user)",
"def hO62(YKHO):\n return YKHO._can_edit",
"d... | [
"0.75922304",
"0.7513314",
"0.7412934",
"0.6929341",
"0.6845957",
"0.67995095",
"0.6794142",
"0.6755225",
"0.67544776",
"0.6658949",
"0.66513485",
"0.66329664",
"0.6569091",
"0.6538015",
"0.6528994",
"0.65261364",
"0.6523022",
"0.6522354",
"0.65003365",
"0.6467348",
"0.646376... | 0.62773293 | 44 |
Whether the user can create or delete invites. | def P98V(YKHO):
return 1 << 4 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hWaj(YKHO):\n return YKHO.invite_ct > 0",
"def SXV9(cuiw):\n if cuiw.user['userlevel'] == 'admin':\n return True\n IZVu = cuiw.user['defaultOrganisation'] or 'apache'\n if cuiw.DB.ES.exists(index=cuiw.DB.dbname, doc_type='organisation', id=IZVu):\n BcXJ = cuiw.DB.ES.get(index=cuiw.D... | [
"0.7055574",
"0.6981135",
"0.6652787",
"0.6652787",
"0.6594199",
"0.6397786",
"0.6312212",
"0.6267045",
"0.62099004",
"0.6158968",
"0.6141105",
"0.61110026",
"0.61022854",
"0.6087948",
"0.607739",
"0.6062045",
"0.6056719",
"0.6055549",
"0.60434",
"0.6025726",
"0.6023553",
"... | 0.62778336 | 7 |
Return a string representation of the array | def zAg0(YKHO):
return f'[{''.join((str(wEf2) + ', ' for wEf2 in YKHO))[:-2]}]' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.array)",
"def zAg0(YKHO):\n return str(YKHO.arr)",
"def rIkN(YKHO):\n return JVVO.arrayToString('\"%s\" [ ' % YKHO.type_name, YKHO.value, ' ]')",
"def zAg0(YKHO):\n q4cj = '['\n for LihS in range(YKHO.size):\n WKvO = k3wL.cModule.get_element(YKHO.arrayR... | [
"0.83565146",
"0.8189157",
"0.7947355",
"0.79253054",
"0.7623469",
"0.7533974",
"0.7464888",
"0.7414454",
"0.72067916",
"0.71454865",
"0.7094483",
"0.7041199",
"0.7009937",
"0.6996636",
"0.6991211",
"0.69823205",
"0.69729775",
"0.6972035",
"0.69665587",
"0.69662106",
"0.69537... | 0.0 | -1 |
Check if array is lexicographically less than seq | def JWbp(YKHO, Q6uT):
if any((YKHO._arr[YRbF] < Q6uT[YRbF] for YRbF in range(min(YKHO._length, len(Q6uT))))):
return True
return YKHO._length < len(Q6uT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Q6uT):\n if any((YKHO._arr[YRbF] > Q6uT[YRbF] for YRbF in range(min(YKHO._length, len(Q6uT))))):\n return False\n return YKHO._length <= len(Q6uT)",
"def Zcf_(YKHO, Q6uT):\n return not YKHO.__lt__(Q6uT)",
"def hfzg(Q6uT):\n for YRbF in range(1, len(Q6uT)):\n if not Q6uT... | [
"0.7698355",
"0.7156253",
"0.66970956",
"0.6693454",
"0.6692287",
"0.6613091",
"0.6512991",
"0.6459689",
"0.6091758",
"0.60796225",
"0.60730344",
"0.6037102",
"0.6031444",
"0.59516",
"0.5933734",
"0.59216654",
"0.58289003",
"0.58200043",
"0.5809702",
"0.580949",
"0.5763183",
... | 0.7845613 | 0 |
Check if array is lexicographically greater than seq | def jmxi(YKHO, Q6uT):
return not YKHO.__le__(Q6uT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TPjt(YKHO, Q6uT):\n if any((YKHO._arr[YRbF] > Q6uT[YRbF] for YRbF in range(min(YKHO._length, len(Q6uT))))):\n return False\n return YKHO._length <= len(Q6uT)",
"def JWbp(YKHO, Q6uT):\n if any((YKHO._arr[YRbF] < Q6uT[YRbF] for YRbF in range(min(YKHO._length, len(Q6uT))))):\n return True... | [
"0.79091215",
"0.7358263",
"0.72215754",
"0.70903474",
"0.7018512",
"0.7003908",
"0.6992735",
"0.6791836",
"0.65675527",
"0.6437813",
"0.6426403",
"0.6396692",
"0.6358752",
"0.62146044",
"0.61976534",
"0.6128592",
"0.612769",
"0.6115589",
"0.6107962",
"0.6099435",
"0.6060121"... | 0.7310302 | 2 |
Remove all values from the array | def Y7Bk(YKHO):
YKHO._length = 0
YKHO._resize_arr(1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZ5u(Uqbu=('AnyPin', [], {Wiac.CONSTRAINT: '1', Wiac.ENABLED_OPTIONS: zDKQ.ArraySupported | zDKQ.AllowAny})):\n return em0y(Uqbu)",
"def c4ej(hkxX):\n return list(set(hkxX))",
"def jiq_(YKHO):\n YKHO.data = []",
"def GIpo(*qIxc):\n for qw7D in qIxc:\n qw7D.erase()",
"def X6wM(hkxX, _... | [
"0.6933345",
"0.6795308",
"0.66655195",
"0.6610822",
"0.6574434",
"0.65616894",
"0.65445447",
"0.65005034",
"0.64913076",
"0.63954216",
"0.6378091",
"0.63527924",
"0.6339907",
"0.6306403",
"0.6302453",
"0.6295113",
"0.6281652",
"0.6280961",
"0.62701976",
"0.626335",
"0.617886... | 0.6818926 | 1 |
Return index of first item matching element with support for slicing | def d6pt(YKHO, U6D_, yKcO=0, Os4s=None):
if Os4s is None:
Os4s = YKHO._length
if Os4s < 0:
Os4s = YKHO._convert_negative_index(Os4s)
yKcO = min(YKHO._length, max(0, yKcO))
Os4s = min(YKHO._length, max(0, Os4s))
for YRbF in range(yKcO, Os4s):
if YKHO._arr[YRbF] == U6D_:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def huPo(ZfUD, he6J):\n for YRbF in range(len(he6J)):\n if ZfUD == he6J[YRbF]:\n return YRbF\n return -1",
"def PKkY(NMD1, Q6uT):\n NMD1 = iX9V.iteratee(NMD1)\n return next((YRbF for YRbF, BWXx in enumerate(Q6uT) if NMD1(BWXx)), -1)",
"def Moxx(OxJJ, jjdB):\n for YRbF, BWXx in ... | [
"0.8006663",
"0.73616",
"0.7225469",
"0.7169978",
"0.7150928",
"0.7139265",
"0.70582587",
"0.70050997",
"0.69643265",
"0.6954431",
"0.6931109",
"0.6928044",
"0.6907608",
"0.6885352",
"0.68834305",
"0.6871876",
"0.6870729",
"0.6852699",
"0.6830237",
"0.68228745",
"0.68020266",... | 0.614696 | 76 |
Checks if array should shrink and executes _shrink_arr if True | def ImWY(YKHO):
if YKHO._length < int(YKHO._capacity / YKHO._growth_factor ** 2):
YKHO._shrink_arr() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ldB1(YKHO):\n YKHO._resize_arr(YKHO._capacity // YKHO._growth_factor)",
"def DAdA(YKHO):\n if YKHO.size > YKHO.INIT_CAPACITY and YKHO.size / YKHO.capacity <= 0.25:\n YKHO._shrink()",
"def r4GX(YKHO):\n raise NotImplementedError('Should have implemented this.')",
"def LJE8(XqwL, ezWE):\n ... | [
"0.78413355",
"0.6967587",
"0.6360402",
"0.6329479",
"0.6110238",
"0.6004154",
"0.5950657",
"0.59483874",
"0.58845663",
"0.5781646",
"0.57553047",
"0.5646905",
"0.5626331",
"0.5578451",
"0.55041206",
"0.55025554",
"0.5418919",
"0.5375548",
"0.53152424",
"0.5307163",
"0.527649... | 0.75789475 | 1 |
Decrease the capacity of the array by current capacity / growth factor | def W9AJ(YKHO):
YKHO._resize_arr(YKHO._capacity * YKHO._growth_factor) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mSbW(YKHO):\n gv2B = YKHO._data\n YKHO._capacity = YKHO._capacity // 2\n YKHO._data = [0] * YKHO._capacity\n if len(gv2B) >= 1:\n for YRbF in range(YKHO._size):\n YKHO._data[YRbF] = gv2B[YRbF]",
"def ldB1(YKHO):\n YKHO._resize_arr(YKHO._capacity // YKHO._growth_factor)",
"d... | [
"0.7617966",
"0.7593477",
"0.73133594",
"0.71781397",
"0.70635635",
"0.70394707",
"0.6972233",
"0.6912226",
"0.69095814",
"0.6870289",
"0.6790107",
"0.6725717",
"0.67023695",
"0.6466309",
"0.64026636",
"0.63588285",
"0.6306112",
"0.6240471",
"0.62364787",
"0.6235207",
"0.6196... | 0.65782267 | 13 |
Test that the Api will reject invalid credentials | def Fqz2(YKHO):
nNXP = fyIx(YKHO.userId, '')
YKHO.assertFalse(nNXP.connected()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dppL(YKHO):\n UzPC = o4LB(YKHO.userId, '')\n YKHO.assertFalse(UzPC.connected())",
"def dbuc():\n pass",
"def tGTl(YKHO):\n pass",
"def dOPl(YKHO):\n YKHO.user = {'username': 'testuserother', 'password': 'testpassword'}\n geh0 = YKHO.app.post('/auth/login/', data=YKHO.user)\n YKHO.ass... | [
"0.7763103",
"0.7680865",
"0.7675715",
"0.7660565",
"0.74636495",
"0.74528545",
"0.74130034",
"0.74105227",
"0.738861",
"0.73749244",
"0.7368168",
"0.7318461",
"0.7318279",
"0.72989553",
"0.72965384",
"0.72770566",
"0.7263675",
"0.7253697",
"0.7233765",
"0.7232979",
"0.717681... | 0.81543446 | 0 |
Formats a timedelta into a human readable expanded format with a precusion up to microsecond | def ZN2E(C6wh, ccBJ=None, VWe_=', '):
if ccBJ is None:
bSP_ = [{'divider': 1, 'format': '{0:.0f} {1}', 'unit': 'us', 'units': 'us', 'value': None}, {'divider': 1000, 'format': '{0:.0f} {1}', 'unit': 'ms', 'units': 'ms', 'value': 0}, {'divider': 1000, 'format': '{0:.0f} {1}', 'unit': 'sec', 'units': 'secs', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TQS5(fCoM, W8mS='long', VWe_=', '):\n if not isinstance(fCoM, qcWV.timedelta):\n raise TypeError('First argument must be a timedelta.')\n Aofo = []\n DKYA = int(fCoM.days / 7)\n Sm0u = fCoM.days % 7\n Wave = int(fCoM.seconds / 3600)\n O66n = int(fCoM.seconds % 3600 / 60)\n C6wh = fC... | [
"0.7388828",
"0.72380495",
"0.7080166",
"0.7069062",
"0.7033232",
"0.6960068",
"0.6954223",
"0.6911086",
"0.68869966",
"0.6883851",
"0.687014",
"0.683021",
"0.6817646",
"0.6816148",
"0.67723095",
"0.6767579",
"0.67573875",
"0.6751066",
"0.6736304",
"0.67343104",
"0.67298454",... | 0.6976576 | 5 |
Returns a color based on a value in a range | def nV6U(BWXx, dgIT=0.0, bQ6z=1.0, JfyU=lambda WKvO: WKvO):
global COLOR_SCALE
if not POmv:
return ''
EJeh = [mHuL('white'), mHuL('pale_green_3b'), mHuL('green'), mHuL('green_yellow'), mHuL('light_yellow'), mHuL('orange_1'), mHuL('orange_red_1'), mHuL('light_red'), mHuL('light_red') + hkS8('blink')]... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PICn(nNso, kpLf=0, JCoA=100):\n TVTK = JCoA - kpLf\n PXGI = TVTK / len(oe3X)\n return oe3X[min(int(nNso / PXGI), 19)]",
"def YDzg(wEf2):\n K785 = SlZZ(wEf2, -1, 1, 0, 255)\n return int(K785)",
"def HkkF(YKHO, BWXx):\n return AqB_.getrgb('hsl(%d,%d%%,%d%%)' % (int((1.0 - BWXx) * 360), 80, ... | [
"0.78456193",
"0.7226935",
"0.71327716",
"0.7067942",
"0.7044939",
"0.7044939",
"0.7044939",
"0.7044939",
"0.6959555",
"0.6931289",
"0.6928741",
"0.68748444",
"0.6776724",
"0.6757461",
"0.67458194",
"0.67236805",
"0.66928124",
"0.6558395",
"0.6552848",
"0.6540839",
"0.6527932... | 0.6927608 | 11 |
Set random parameters to the channels Returns dictionary parameter dictionary See Also | def pcYs(YKHO) -> cuzp:
rosz: cuzp = YKHO.gen_params()
YKHO.set_params(rosz)
return rosz | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WIoj(YKHO):\n for H5ew in YKHO.nn_param_choices:\n YKHO.network[H5ew] = tuKI.choice(YKHO.nn_param_choices[H5ew])",
"def AS1E(YKHO, rJrZ=True):\n pass",
"def kUsO(YKHO) -> cuzp:\n y8rd: cuzp = {}\n Eojz: x1iM[str] = ['g_leak', 'g_nav', 'g_kvhh', 'g_kva', 'g_kvsi', 'g_cav', 'g_kca', 'g_nap... | [
"0.6568275",
"0.65004134",
"0.6429548",
"0.6419856",
"0.6333249",
"0.62100375",
"0.61715186",
"0.6151323",
"0.60678685",
"0.6059373",
"0.5968558",
"0.59635913",
"0.5947814",
"0.5945982",
"0.5940141",
"0.5876858",
"0.5842199",
"0.5830265",
"0.5830265",
"0.58189106",
"0.5805249... | 0.7182606 | 0 |
Convert sparse feature to dense ones. | def zd4T(PU1l):
for H5ew in list(PU1l.keys()):
wEf2 = PU1l[H5ew]
if ZylS.keras.backend.is_sparse(wEf2):
wEf2 = ZylS.sparse.to_dense(wEf2)
PU1l[H5ew] = wEf2
return PU1l | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NG8_(o7sj, xgWT=None):\n if xgWT is None or xgWT == 0:\n return o7sj.to_dense()\n o7sj = o7sj.coalesce()\n A0RF = ht2j.full(o7sj.shape, xgWT, dtype=o7sj.dtype, device=o7sj.device)\n for or8S, BWXx in zip(o7sj._indices().t(), o7sj._values()):\n A0RF[tuple(or8S)] = BWXx\n return A0RF... | [
"0.7461045",
"0.69676256",
"0.6735682",
"0.6727126",
"0.6636931",
"0.6583783",
"0.6579733",
"0.6567622",
"0.6521134",
"0.6507437",
"0.6491083",
"0.6447057",
"0.64348716",
"0.6430987",
"0.64055955",
"0.64016414",
"0.6397804",
"0.6376264",
"0.6345166",
"0.6325874",
"0.63160205"... | 0.73949856 | 1 |
Read docs from a file separated by empty lines. | def ftx5(qaEx, b0j5):
IdSp = []
A97Q, tKAp = ([], False)
XyBK = 0
ZylS.logging.info('Start processing %s', qaEx)
for zFiD in ZylS.io.gfile.GFile(qaEx):
if XyBK % 100000 == 0:
ZylS.logging.info('Loading line %d', XyBK)
if not zFiD.strip():
tKAp = True
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(Ux0P):\n EZF9 = []\n C13M = []\n with ZylS.gfile.GFile(Ux0P, 'r') as N5Pj:\n for zFiD in N5Pj:\n zFiD = zFiD.strip()\n zFiD = TdB_.convert_to_unicode(zFiD)\n zFiD = zFiD.replace(u'‘', \"'\").replace(u'’', \"'\")\n Eab6 = U0ax(zFiD)\n f... | [
"0.63579994",
"0.62270623",
"0.61606634",
"0.5943251",
"0.5919845",
"0.5912583",
"0.5912583",
"0.587618",
"0.58068275",
"0.580384",
"0.5733693",
"0.5728623",
"0.57133937",
"0.57062984",
"0.56601936",
"0.5650727",
"0.564875",
"0.5643185",
"0.5625992",
"0.5572403",
"0.55359626"... | 0.65460086 | 0 |
Assigns a name to this world. | def w0B7(YKHO):
JRYC = qcWV.now()
return f'onboarding_world_{JRYC.strftime('%H-%M-%S')}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hr8M(nUeQ, mWFP):\n with open(nUeQ, 'w') as eHNT:\n NQWq = mWFP\n eHNT.write(NQWq)",
"def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def mWFP(YKHO, mWFP):\n YKHO._name = mWFP",
"def mWFP... | [
"0.715557",
"0.7080421",
"0.70120156",
"0.70120156",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6952279",
"0.6919617",
"0.6913308",
"0.6913308",
"0.6913308",
"0.6913308",
... | 0.0 | -1 |
Randomly selects a persona selection type (template, curated) and asks agent. | def f2Ds(YKHO):
G9jH.info('Randomly choosing persona selection type.')
byUZ = tuKI.random() < uwaB.PROBABILITY_CHOOSING_TEMPLATE_PERSONA
if byUZ:
G9jH.info('Choosing persona persona from template.')
_hkX = YKHO._choose_templated_topics_persona()
else:
G9jH.info('Choosing persona ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o9JN(YKHO):\n x_8c = YKHO.sample_personas()\n MvLe = YKHO._get_apprentice()\n dfbW = [XP5J.replace(uwaB.PERSONA_NEEDS_LOCATION_TOKEN, '') for XP5J in x_8c]\n FXcE = [{'type': 'choices', 'question': 'Choose one of these personas to start:', 'choices': dfbW}, {'type': 'text', 'question': 'Add somethi... | [
"0.66010153",
"0.63127846",
"0.6287059",
"0.6207602",
"0.6178721",
"0.61776483",
"0.6174786",
"0.6174786",
"0.6129294",
"0.6013106",
"0.5988316",
"0.59788066",
"0.5925654",
"0.59040177",
"0.59028304",
"0.5881223",
"0.5873116",
"0.575682",
"0.5754491",
"0.5736115",
"0.56930023... | 0.7548121 | 0 |
assemble softmax array into original shape | def GAiZ(ohfT, HHea, JNn7, TFPw, NKcE='crop', MX3a=(16, 16, 16)):
T562 = oyIN.zeros([JNn7[0], JNn7[1], JNn7[2], TFPw])
Q9Kc = HHea[0]
mu65 = HHea[1]
pIMw = HHea[2]
Q9Kc[1:] += 1
mu65[1:] += 1
pIMw[1:] += 1
or8S = 0
if NKcE == 'sum':
for WKvO in Q9Kc:
for LVAh in m... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(WKvO: jnp.DeviceArray, *, jDK_: int=0) -> oLG2.DeviceArray:\n return oLG2.exp(WKvO) / oLG2.expand_dims(oLG2.sum(oLG2.exp(WKvO), axis=jDK_), jDK_)",
"def N93T(WKvO):\n if len(WKvO.shape) == 2:\n GF7e = oyIN.max(WKvO, axis=1)\n WKvO -= GF7e.reshape((WKvO.shape[0], 1))\n WKvO = o... | [
"0.72755903",
"0.7239912",
"0.71537364",
"0.7095283",
"0.70739967",
"0.7044569",
"0.70441043",
"0.69747007",
"0.6948207",
"0.69150424",
"0.69037026",
"0.68975085",
"0.68682456",
"0.68613434",
"0.68603736",
"0.6849979",
"0.67638946",
"0.67601776",
"0.6735098",
"0.6715151",
"0.... | 0.0 | -1 |
Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with `name_prefix`. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO.name",
"def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]:\... | [
"0.7844244",
"0.7844244",
"0.77782476",
"0.75829816",
"0.75829816",
"0.75829816",
"0.75829816",
"0.75829816",
"0.7510894",
"0.7510894",
"0.7471641",
"0.74329823",
"0.69311094",
"0.68274635",
"0.6716325",
"0.6676964",
"0.66615283",
"0.6636887",
"0.6492217",
"0.64182323",
"0.64... | 0.0 | -1 |
Set of nodes in this shard. | def Ziit(YKHO) -> h8nf[bdIy['outputs.ClusterShardNode']]:
return qe4Y.get(YKHO, 'nodes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO) -> bdIy['outputs.GetClusterShardNodeResult']:\n return qe4Y.get(YKHO, 'nodes')",
"def hD12(YKHO):\n return YKHO._nodeset",
"def Ziit(YKHO):\n return set(YKHO.values())",
"def gcH_(YKHO):\n return set(YKHO.nodeset)",
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO... | [
"0.75141084",
"0.7466467",
"0.72812986",
"0.7244977",
"0.72263974",
"0.7172393",
"0.7172393",
"0.7172393",
"0.71226114",
"0.71196574",
"0.71009296",
"0.70923567",
"0.707576",
"0.7060358",
"0.704038",
"0.6987283",
"0.6935893",
"0.69255745",
"0.691763",
"0.6905763",
"0.6884613"... | 0.7393551 | 2 |
Number of individual nodes in this shard. | def EKkU(YKHO) -> h8nf[int]:
return qe4Y.get(YKHO, 'num_nodes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtzW(YKHO):\n return int(YKHO._data['number_of_nodes'])",
"def kRap(YKHO) -> int:\n return qe4Y.get(YKHO, 'node_count')",
"def _ouZ(YKHO):\n return sum(YKHO.topology)",
"def EKkU(YKHO) -> int:\n return qe4Y.get(YKHO, 'num_nodes')",
"def OtzW(YKHO) -> int:\n return YKHO.graph.number_of_no... | [
"0.8465716",
"0.8403322",
"0.8373275",
"0.83351713",
"0.82587624",
"0.81650364",
"0.8147656",
"0.80618536",
"0.80473524",
"0.79992664",
"0.79876775",
"0.79781306",
"0.79781306",
"0.7974288",
"0.796596",
"0.796596",
"0.7958506",
"0.7958506",
"0.79430115",
"0.792859",
"0.786167... | 0.7469994 | 31 |
Name of the cluster. If omitted, the provider will assign a random, unique name. Conflicts with `name_prefix`. | def mWFP(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO.name",
"def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> h8nf[qe4Y.Input[str]]:\... | [
"0.7844244",
"0.7844244",
"0.77782476",
"0.75829816",
"0.75829816",
"0.75829816",
"0.75829816",
"0.75829816",
"0.7510894",
"0.7510894",
"0.7471641",
"0.74329823",
"0.69311094",
"0.68274635",
"0.6716325",
"0.6676964",
"0.66615283",
"0.6636887",
"0.6492217",
"0.64182323",
"0.64... | 0.0 | -1 |
Version number of the Redis engine used by the cluster. | def GdOD(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'engine_version') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GdOD(YKHO) -> str:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine... | [
"0.79144454",
"0.7563207",
"0.7563207",
"0.7563207",
"0.7327727",
"0.7065706",
"0.7065706",
"0.7065706",
"0.7065706",
"0.7065706",
"0.69642663",
"0.66802484",
"0.6680131",
"0.6679079",
"0.66346836",
"0.66147625",
"0.66147625",
"0.660556",
"0.6556487",
"0.6555064",
"0.6521547"... | 0.7518153 | 4 |
Number of shards in the cluster. | def frCB(YKHO) -> h8nf[int]:
return qe4Y.get(YKHO, 'num_shards') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frCB(YKHO) -> int:\n return qe4Y.get(YKHO, 'num_shards')",
"def frCB(YKHO) -> int:\n return YKHO.db_nodes",
"def LFLS(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'shards_count')",
"def frCB(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'num_shards')",
"def frCB(YKHO) -> h8nf[qe4Y... | [
"0.88574594",
"0.8603994",
"0.84083533",
"0.82868904",
"0.81525964",
"0.81525964",
"0.7655257",
"0.74661267",
"0.7422167",
"0.7367773",
"0.7367773",
"0.73387873",
"0.73012555",
"0.7224803",
"0.7057138",
"0.7043152",
"0.7016772",
"0.7009831",
"0.6958872",
"0.6910273",
"0.68966... | 0.8238907 | 4 |
Name of the parameter group associated with the cluster. | def wXF1(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'parameter_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wXF1(YKHO) -> str:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> h8nf[qe4Y.Input[str]]:\n ... | [
"0.87944835",
"0.8671678",
"0.8516077",
"0.81265765",
"0.81265765",
"0.81265765",
"0.81265765",
"0.74682605",
"0.73987305",
"0.7292215",
"0.7277872",
"0.71540594",
"0.71540594",
"0.6907012",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896... | 0.8401351 | 3 |
Name of the subnet group used by the cluster. | def dn8D(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'subnet_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dn8D(YKHO) -> str:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4... | [
"0.9015968",
"0.87887996",
"0.8275437",
"0.8275437",
"0.73522305",
"0.72286814",
"0.72148854",
"0.71613175",
"0.71201915",
"0.7113455",
"0.7081155",
"0.7025016",
"0.6955156",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.... | 0.85436183 | 2 |
ARN of the SNS topic to which cluster notifications are sent. | def nDi7(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'topic_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbnq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')",
"def nDi7(YKHO) -> str:\n return YKHO['Sns']['TopicArn']",
"def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')",
"def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 's... | [
"0.7905899",
"0.7869811",
"0.7573047",
"0.7573047",
"0.7502416",
"0.68714416",
"0.67257106",
"0.66310424",
"0.6265732",
"0.61104375",
"0.6103825",
"0.5965135",
"0.59641993",
"0.588743",
"0.5881062",
"0.5804969",
"0.5754359",
"0.5752968",
"0.5750413",
"0.56728387",
"0.56683576... | 0.703469 | 5 |
The VPC in which the cluster exists. | def xOeT(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def... | [
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64346594",
"0.64346594",
"0.64346594",
"0.64346594",
"0.64346594",
"0.64346594",
"0.64278966",
"0.62723225",
"0.6231177",
"0.6216843",
"0.61833256",
... | 0.6474399 | 0 |
Indicates whether the user requires a password to authenticate. Must be set to `password`. | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BybN(YKHO, NtEF, jTXt):\n return uZ9H",
"def sQUZ(YKHO, CBIr):\n return True if CBIr.password else False",
"def EvfH(YKHO, jTXt):\n return YKHO.password == jTXt",
"def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt",
"def sNjs(YKHO, jTXt):\n CBIr = YKHO.get()\n if CBIr:\n ret... | [
"0.7839492",
"0.764386",
"0.7636195",
"0.7576462",
"0.7569861",
"0.75250995",
"0.7481659",
"0.74618554",
"0.7395858",
"0.73133355",
"0.7246577",
"0.7230015",
"0.72074354",
"0.7193097",
"0.7188455",
"0.71809304",
"0.7170378",
"0.7156237",
"0.7154297",
"0.71434057",
"0.71387553... | 0.0 | -1 |
Name of the cluster. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO.name",
"def c0yN(YKHO):\n return YKHO._data['cluster_name']",
"def c0yN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, '... | [
"0.92348945",
"0.92348945",
"0.9157106",
"0.8943962",
"0.8668253",
"0.83862936",
"0.83862936",
"0.82669044",
"0.82669044",
"0.82669044",
"0.82669044",
"0.82669044",
"0.7820599",
"0.7656794",
"0.74976444",
"0.74976444",
"0.74976444",
"0.74976444",
"0.74976444",
"0.7225583",
"0... | 0.0 | -1 |
Set of nodes in this shard. | def Ziit(YKHO) -> bdIy['outputs.GetClusterShardNodeResult']:
return qe4Y.get(YKHO, 'nodes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hD12(YKHO):\n return YKHO._nodeset",
"def Ziit(YKHO) -> h8nf[bdIy['outputs.ClusterShardNode']]:\n return qe4Y.get(YKHO, 'nodes')",
"def Ziit(YKHO):\n return set(YKHO.values())",
"def gcH_(YKHO):\n return set(YKHO.nodeset)",
"def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO fo... | [
"0.7466467",
"0.7393551",
"0.72812986",
"0.7244977",
"0.72263974",
"0.7172393",
"0.7172393",
"0.7172393",
"0.71226114",
"0.71196574",
"0.71009296",
"0.70923567",
"0.707576",
"0.7060358",
"0.704038",
"0.6987283",
"0.6935893",
"0.69255745",
"0.691763",
"0.6905763",
"0.6884613",... | 0.75141084 | 0 |
Number of individual nodes in this shard. | def EKkU(YKHO) -> int:
return qe4Y.get(YKHO, 'num_nodes') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OtzW(YKHO):\n return int(YKHO._data['number_of_nodes'])",
"def kRap(YKHO) -> int:\n return qe4Y.get(YKHO, 'node_count')",
"def _ouZ(YKHO):\n return sum(YKHO.topology)",
"def OtzW(YKHO) -> int:\n return YKHO.graph.number_of_nodes()",
"def kRap(YKHO):\n return YKHO._node_count",
"def tIl... | [
"0.8465716",
"0.8403322",
"0.8373275",
"0.82587624",
"0.81650364",
"0.8147656",
"0.80618536",
"0.80473524",
"0.79992664",
"0.79876775",
"0.79781306",
"0.79781306",
"0.7974288",
"0.796596",
"0.796596",
"0.7958506",
"0.7958506",
"0.79430115",
"0.792859",
"0.78616774",
"0.783306... | 0.83351713 | 3 |
Name of the cluster. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO) -> str:\n return qe4Y.get(YKHO, 'cluster_name')",
"def c0yN(YKHO):\n return YKHO.name",
"def c0yN(YKHO):\n return YKHO._data['cluster_name']",
"def c0yN(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, '... | [
"0.92348945",
"0.92348945",
"0.9157106",
"0.8943962",
"0.8668253",
"0.83862936",
"0.83862936",
"0.82669044",
"0.82669044",
"0.82669044",
"0.82669044",
"0.82669044",
"0.7820599",
"0.7656794",
"0.74976444",
"0.74976444",
"0.74976444",
"0.74976444",
"0.74976444",
"0.7225583",
"0... | 0.0 | -1 |
Name of the parameter group. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wXF1(YKHO) -> str:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> h8nf[str]:\n return qe4Y.... | [
"0.90646434",
"0.87880343",
"0.8650048",
"0.86179215",
"0.84838283",
"0.84838283",
"0.84838283",
"0.84838283",
"0.75868195",
"0.75868195",
"0.75377834",
"0.74174",
"0.73146474",
"0.7198395",
"0.71673816",
"0.7153632",
"0.7065075",
"0.70424324",
"0.7000195",
"0.7000195",
"0.69... | 0.0 | -1 |
Version number of the Redis engine used by the cluster. | def GdOD(YKHO) -> str:
return qe4Y.get(YKHO, 'engine_version') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'engine_version')",
"def GdOD(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '... | [
"0.7563207",
"0.7563207",
"0.7563207",
"0.7518153",
"0.7327727",
"0.7065706",
"0.7065706",
"0.7065706",
"0.7065706",
"0.7065706",
"0.69642663",
"0.66802484",
"0.6680131",
"0.6679079",
"0.66346836",
"0.66147625",
"0.66147625",
"0.660556",
"0.6556487",
"0.6555064",
"0.6521547",... | 0.79144454 | 0 |
Name of the snapshot. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IzcX(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'snapshot_name')",
"def mWFP(Emd4):\n return 'Snapshot'",
"def IzcX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'snapshot_name')",
"def IzcX(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'snapshot_name')",
"... | [
"0.8491101",
"0.82213914",
"0.81830853",
"0.81830853",
"0.81830853",
"0.7989911",
"0.7960088",
"0.76104397",
"0.74531317",
"0.74531317",
"0.72998226",
"0.695431",
"0.69038695",
"0.6873799",
"0.6873799",
"0.68528575",
"0.6765277",
"0.6760609",
"0.67542017",
"0.67446935",
"0.67... | 0.0 | -1 |
Number of shards in the cluster. | def frCB(YKHO) -> int:
return qe4Y.get(YKHO, 'num_shards') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def frCB(YKHO) -> int:\n return YKHO.db_nodes",
"def LFLS(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'shards_count')",
"def frCB(YKHO) -> qe4Y.Output[h8nf[int]]:\n return qe4Y.get(YKHO, 'num_shards')",
"def frCB(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'num_shards')",
"def frCB(YKHO) -> h8n... | [
"0.8603994",
"0.84083533",
"0.82868904",
"0.8238907",
"0.81525964",
"0.81525964",
"0.7655257",
"0.74661267",
"0.7422167",
"0.7367773",
"0.7367773",
"0.73387873",
"0.73012555",
"0.7224803",
"0.7057138",
"0.7043152",
"0.7016772",
"0.7009831",
"0.6958872",
"0.6910273",
"0.689668... | 0.88574594 | 0 |
Name of the parameter group associated with the cluster. | def wXF1(YKHO) -> str:
return qe4Y.get(YKHO, 'parameter_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wXF1(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'parameter_group_name')",
"def wXF1(YKHO) -> h8nf[qe4Y.Input[str]]:... | [
"0.8671678",
"0.8516077",
"0.8401351",
"0.81265765",
"0.81265765",
"0.81265765",
"0.81265765",
"0.74682605",
"0.73987305",
"0.7292215",
"0.7277872",
"0.71540594",
"0.71540594",
"0.6907012",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.6896391",
"0.68963... | 0.87944835 | 0 |
Name of the subnet group used by the cluster. | def dn8D(YKHO) -> str:
return qe4Y.get(YKHO, 'subnet_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dn8D(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'subnet_group_name')",
"def dn8D(YKHO) -> h8nf[qe4Y.Input[str]]:\n retu... | [
"0.87887996",
"0.85436183",
"0.8275437",
"0.8275437",
"0.73522305",
"0.72286814",
"0.72148854",
"0.71613175",
"0.71201915",
"0.7113455",
"0.7081155",
"0.7025016",
"0.6955156",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0.68569124",
"0... | 0.9015968 | 0 |
ARN of the SNS topic to which cluster notifications are sent. | def nDi7(YKHO) -> str:
return qe4Y.get(YKHO, 'topic_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zbnq(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')",
"def nDi7(YKHO) -> str:\n return YKHO['Sns']['TopicArn']",
"def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'sns_topic_arn')",
"def zbnq(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 's... | [
"0.7905899",
"0.7869811",
"0.7573047",
"0.7573047",
"0.703469",
"0.68714416",
"0.67257106",
"0.66310424",
"0.6265732",
"0.61104375",
"0.6103825",
"0.5965135",
"0.59641993",
"0.588743",
"0.5881062",
"0.5804969",
"0.5754359",
"0.5752968",
"0.5750413",
"0.56728387",
"0.56683576"... | 0.7502416 | 4 |
The VPC in which the cluster exists. | def xOeT(YKHO) -> str:
return qe4Y.get(YKHO, 'vpc_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xOeT(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vpc_id')",
"def xOeT(Y... | [
"0.6474399",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64655846",
"0.64278966",
"0.62723225",
"0.6231177",
"0.6216843",
"0.61833256",
"0.6153539",
"0.61369574",
"0.6129676",
"0.6129676",
"0.6129676",
"0.... | 0.64346594 | 13 |
Whether the user requires a password to authenticate. | def type(YKHO) -> str:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sQUZ(YKHO, CBIr):\n return True if CBIr.password else False",
"def EvfH(YKHO, jTXt):\n return YKHO.password == jTXt",
"def sNjs(YKHO, jTXt):\n return YKHO.PASS == jTXt",
"def sNjs(YKHO, jTXt):\n return YKHO.PASSWORD == jTXt",
"def BybN(YKHO, NtEF, jTXt):\n return uZ9H",
"def gDhF(bGrB,... | [
"0.7983362",
"0.77129424",
"0.7703002",
"0.76763266",
"0.7506605",
"0.7502234",
"0.7490725",
"0.7483327",
"0.74660397",
"0.74472684",
"0.74223435",
"0.74122345",
"0.7381427",
"0.73778236",
"0.736039",
"0.73594326",
"0.7351806",
"0.7351107",
"0.7350109",
"0.7348506",
"0.733679... | 0.0 | -1 |
Calculates an estimate of emissivity | def lBVU(I2Si, _cYT):
onUk = _cYT.copy()
onUk[oyIN.where(_cYT < 0)] = 0.991
onUk[oyIN.where((0 <= _cYT) & (_cYT < 0.2))] = 0.966
onUk[oyIN.where((0.2 <= _cYT) & (_cYT < 0.5))] = 0.973 * I2Si[oyIN.where((0.2 <= _cYT) & (_cYT < 0.5))] + (0.966 * (1 - I2Si[oyIN.where((0.2 <= _cYT) & (_cYT < 0.5))]) + 0.005... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrwH(YKHO):\n return YKHO.parameters.E0 + YKHO.x * reeg * YKHO.parameters.sigma * YKHO.mt",
"def Mj5x(YKHO, fK7A):\n if YKHO.weight_ee == 0.0:\n return oyIN.zeros_like(fK7A)\n Yttq = oyIN.vstack(YKHO._gam)\n LBfv = Z9rn.cgs * Io0V(oyIN.vstack(YKHO._nelec) * YKHO._sigma_ee(Yttq, fK7A), YKHO... | [
"0.73396784",
"0.70681226",
"0.701977",
"0.6705343",
"0.6518762",
"0.6425226",
"0.6391614",
"0.6344747",
"0.633923",
"0.6330779",
"0.6325304",
"0.62861216",
"0.62720865",
"0.6219066",
"0.62181145",
"0.6185366",
"0.61717474",
"0.61706126",
"0.61706126",
"0.61621195",
"0.615229... | 0.6002614 | 29 |
r""" The series' precision. | def rhd_(YKHO):
return YKHO.__precision | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvxU(YKHO):\n ...",
"def rhd_(YKHO):\n hG7h, g1pg = (len(YKHO.__true_positives), len(YKHO.__false_positives))\n return float(hG7h) / (hG7h + g1pg)",
"def rhd_(YKHO):\n return p4BK",
"def rhd_(YKHO):\n if YKHO._temp_precision is not None:\n return YKHO._temp_precision\n return sup... | [
"0.81245166",
"0.80044436",
"0.7978113",
"0.775465",
"0.75198495",
"0.75084317",
"0.74624246",
"0.736589",
"0.73360354",
"0.73360354",
"0.7305079",
"0.72775817",
"0.7271454",
"0.72175217",
"0.7069444",
"0.70605683",
"0.7013307",
"0.69745684",
"0.6948589",
"0.694801",
"0.69067... | 0.80037963 | 2 |
r""" Set the series' precision. | def oYtw(YKHO, rhd_):
YKHO.__precision = YKHO.parent().monoid().filter(rhd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().action().filter(rhd_)",
"def ogIB(YKHO, *qIxc):\n return nxZz.ShapeUpgrade_Tool_SetPrecision(YKHO, *qIxc)",
"def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YK... | [
"0.77004534",
"0.7368873",
"0.72170144",
"0.711674",
"0.70803005",
"0.7026098",
"0.6980594",
"0.69088227",
"0.686783",
"0.68564606",
"0.6837906",
"0.6773249",
"0.6773249",
"0.676323",
"0.67113924",
"0.6682765",
"0.6665135",
"0.6600072",
"0.6575622",
"0.65689766",
"0.65591514"... | 0.7939025 | 0 |
r""" The coefficients of ``self``. | def FN88(YKHO):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FN88(YKHO):\n return YKHO.__coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO) -> oyIN.ndarray:\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO.coef_['x']",
"def MyUP(YKHO):\n return YKHO.coeffici... | [
"0.8871973",
"0.8639943",
"0.8639943",
"0.85898465",
"0.8515666",
"0.8221824",
"0.8221824",
"0.81595016",
"0.7913658",
"0.7836305",
"0.75207",
"0.7392499",
"0.73840374",
"0.70424825",
"0.7015772",
"0.696558",
"0.6956478",
"0.6762896",
"0.6690637",
"0.6639266",
"0.65921384",
... | 0.9023136 | 0 |
r""" The coefficients of ``self``. | def FN88(YKHO):
return YKHO.__coefficients | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FN88(YKHO):\n raise NotImplementedError",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO) -> oyIN.ndarray:\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO.coef_['x']",
"def MyUP(YKHO):\n return YKHO.coefficie... | [
"0.9023136",
"0.8639943",
"0.8639943",
"0.85898465",
"0.8515666",
"0.8221824",
"0.8221824",
"0.81595016",
"0.7913658",
"0.7836305",
"0.75207",
"0.7392499",
"0.73840374",
"0.70424825",
"0.7015772",
"0.696558",
"0.6956478",
"0.6762896",
"0.6690637",
"0.6639266",
"0.65921384",
... | 0.8871973 | 1 |
r""" The series' precision. | def rhd_(YKHO):
return YKHO.__precision | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VvxU(YKHO):\n ...",
"def rhd_(YKHO):\n hG7h, g1pg = (len(YKHO.__true_positives), len(YKHO.__false_positives))\n return float(hG7h) / (hG7h + g1pg)",
"def rhd_(YKHO):\n return p4BK",
"def rhd_(YKHO):\n if YKHO._temp_precision is not None:\n return YKHO._temp_precision\n return sup... | [
"0.81245166",
"0.80044436",
"0.7978113",
"0.775465",
"0.75198495",
"0.75084317",
"0.74624246",
"0.736589",
"0.73360354",
"0.73360354",
"0.7305079",
"0.72775817",
"0.7271454",
"0.72175217",
"0.7069444",
"0.70605683",
"0.7013307",
"0.69745684",
"0.6948589",
"0.694801",
"0.69067... | 0.80037963 | 3 |
r""" Set the series' precision. | def oYtw(YKHO, rhd_):
YKHO.__precision = YKHO.parent().action().filter(rhd_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oYtw(YKHO, rhd_):\n YKHO.__precision = YKHO.parent().monoid().filter(rhd_)",
"def ogIB(YKHO, *qIxc):\n return nxZz.ShapeUpgrade_Tool_SetPrecision(YKHO, *qIxc)",
"def aBlt(YKHO, rhd_):\n if rhd_ <= 0:\n print('Precision must be positive')\n else:\n YKHO.precision = rhd_\n YK... | [
"0.7939025",
"0.7368873",
"0.72170144",
"0.711674",
"0.70803005",
"0.7026098",
"0.6980594",
"0.69088227",
"0.686783",
"0.68564606",
"0.6837906",
"0.6773249",
"0.6773249",
"0.676323",
"0.67113924",
"0.6682765",
"0.6665135",
"0.6600072",
"0.6575622",
"0.65689766",
"0.65591514",... | 0.77004534 | 1 |
r""" The coefficients of ``self``. | def FN88(YKHO, knZQ=False):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FN88(YKHO):\n raise NotImplementedError",
"def FN88(YKHO):\n return YKHO.__coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO) -> oyIN.ndarray:\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO.coef_... | [
"0.9023136",
"0.8871973",
"0.8639943",
"0.8639943",
"0.85898465",
"0.8515666",
"0.8221824",
"0.8221824",
"0.81595016",
"0.7913658",
"0.7836305",
"0.7392499",
"0.73840374",
"0.70424825",
"0.7015772",
"0.696558",
"0.6956478",
"0.6762896",
"0.6690637",
"0.6639266",
"0.65921384",... | 0.75207 | 11 |
r""" The coefficients of ``self``. | def FN88(YKHO, knZQ=False):
if len(YKHO.__coefficients) == 0:
return dict()
elif not knZQ and len(YKHO.__coefficients) == 1:
return YKHO.__coefficients.values()[0]
else:
return YKHO.__coefficients | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FN88(YKHO):\n raise NotImplementedError",
"def FN88(YKHO):\n return YKHO.__coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO._coefficients",
"def FN88(YKHO) -> oyIN.ndarray:\n return YKHO._coefficients",
"def FN88(YKHO):\n return YKHO.coef_... | [
"0.9023136",
"0.8871973",
"0.8639943",
"0.8639943",
"0.85898465",
"0.8515666",
"0.8221824",
"0.8221824",
"0.81595016",
"0.7913658",
"0.7836305",
"0.75207",
"0.7392499",
"0.73840374",
"0.70424825",
"0.7015772",
"0.6956478",
"0.6762896",
"0.6690637",
"0.6639266",
"0.65921384",
... | 0.696558 | 16 |
Asserts that the following fields of segmentTestData are equal to the value computed by numpy. . max . mean . min . shape . size . std | def ve7K(YKHO, CNt1, nPrm):
YKHO.assertEqual(CNt1.max, oyIN.max(nPrm))
YKHO.assertEqual(CNt1.mean, oyIN.mean(nPrm))
YKHO.assertEqual(CNt1.min, oyIN.min(nPrm))
YKHO.assertEqual(CNt1.shape, oyIN.shape(nPrm))
YKHO.assertEqual(CNt1.size, oyIN.size(nPrm))
YKHO.assertEqual(CNt1.std, oyIN.std(nPrm)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F8vN(YKHO):\n YKHO.assertEqual(z2bo(Kt9y, sample=False), oyIN.std(Kt9y))\n YKHO.assertEqual(z2bo(Kt9y), oyIN.std(Kt9y, ddof=1))",
"def PhQw(YKHO):\n assert (len(YKHO.data), YKHO.data.var(), YKHO.data.mean()) == RL3y(YKHO.data)",
"def GDYj(YKHO):\n for lpha in YKHO.splits:\n CjQX, SLsv = ... | [
"0.64239573",
"0.6373529",
"0.6282944",
"0.61856544",
"0.6130011",
"0.5997697",
"0.5971954",
"0.5968743",
"0.5934422",
"0.5882087",
"0.588118",
"0.58590144",
"0.5858433",
"0.58564645",
"0.5851766",
"0.5833389",
"0.58234996",
"0.5822367",
"0.5778518",
"0.5762364",
"0.5750393",... | 0.79603374 | 0 |
Tests that the fields are set correctly in the constructor. | def gmPw(YKHO):
nPrm = oyIN.random.random((5, 5))
KCHu = Woza(nPrm)
YKHO._assert_fields_equal_to_data(KCHu, nPrm)
oyIN.testing.assert_array_equal(KCHu.data, nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kfWB(YKHO):\n V_D6 = {'Conn Note': {'offset': 0, 'length': 20}}\n wvEv = tlxW.Parser(fields=V_D6)\n CGbw = wvEv.get_fields()\n aEqx = V_D6\n tO9_ = 'Fields initialisation property setter/getter error.'\n YKHO.assertEqual(CGbw, aEqx, tO9_)",
"def as4H(YKHO):\n YKHO.assertEqual(YKHO.new_co... | [
"0.75746596",
"0.74538714",
"0.7369914",
"0.7363637",
"0.7301198",
"0.72469926",
"0.71646196",
"0.70892674",
"0.70838934",
"0.70467377",
"0.70440054",
"0.7036874",
"0.7031363",
"0.7031281",
"0.7008457",
"0.70008886",
"0.6977785",
"0.6977557",
"0.69603235",
"0.69510937",
"0.69... | 0.0 | -1 |
Returns a new APIRules instance for the current API version and configured rules. | def eLpg(**rnc7) -> 'APIRules':
YEnM = {G1Hx: Ty9i for G1Hx, Ty9i in rnc7.items() if G1Hx in FLi7.__fields__}
return FLi7.parse_obj(YEnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def c_NS(YKHO):\n return yVFx(YKHO)",
"def Hs9k(YKHO):\n YKHO.app.add_url_rule('/scheduler', 'get_scheduler_info', YKHO._apply_auth(nNXP.get_scheduler_info))\n YKHO.app.add_url_rule('/scheduler/jobs', 'add_job', YKHO._apply_auth(nNXP.add_job), methods=['POST'])\n YKHO.app.add_url_rule('/scheduler/job... | [
"0.5955498",
"0.5648376",
"0.5494508",
"0.53649634",
"0.5338248",
"0.5271837",
"0.5229927",
"0.50940627",
"0.5090088",
"0.5062579",
"0.4984754",
"0.4968622",
"0.49645168",
"0.49296302",
"0.4924877",
"0.49121693",
"0.49066514",
"0.48793676",
"0.4840095",
"0.48269096",
"0.48251... | 0.8130044 | 0 |
Return True if user is in the group, False otherwise. | def KbQy(CBIr, uOe2):
xlzw = uOe2.get_users()
if CBIr in xlzw:
return True
RmbD = uOe2.get_groups()
if len(RmbD) == 0:
return False
for ZfUD in RmbD:
return KbQy(CBIr, ZfUD)
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KbQy(CBIr, uOe2):\n DW23 = uOe2.get_users()\n if CBIr in DW23:\n return True\n return False",
"def H4UC(CBIr, IXKo):\n return FLA7(CBIr.id, IXKo)",
"def KbQy(CBIr, uOe2):\n if CBIr == uOe2.get_name():\n return True\n elif CBIr in uOe2.get_users():\n return True\n e... | [
"0.8791304",
"0.84474826",
"0.8253319",
"0.81782854",
"0.8154014",
"0.80775934",
"0.8077066",
"0.7991211",
"0.7917411",
"0.79046553",
"0.78879106",
"0.7874985",
"0.78737533",
"0.7837497",
"0.7784908",
"0.7684502",
"0.76652265",
"0.7655611",
"0.7571193",
"0.7561973",
"0.737242... | 0.7714273 | 15 |
This function opens, reads and closes a text file. The function then returns the whole text file as one string. | def lXJo(Ux0P):
nUeQ = open(Ux0P, 'r')
l5Ny = nUeQ.read()
nUeQ.close()
bF0M = []
l5Ny = l5Ny.split('\n')
for YRbF in range(len(l5Ny) - 1):
l5Ny[YRbF] = l5Ny[YRbF].strip()
bF0M.append(l5Ny[YRbF].split(' '))
return bF0M | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OcVp(qaEx):\n OwN0 = open(qaEx)\n LFxn = OwN0.read()\n OwN0.close()\n return LFxn",
"def Np1T(YNHG: str):\n hGN5: str = ''\n with open(YNHG, mode='r', encoding='utf-8') as nUeQ:\n print('file being read: ' + YNHG + '\\n')\n hGN5 = nUeQ.read()\n return hGN5",
"def qKJz(gIs... | [
"0.821146",
"0.81793684",
"0.8096301",
"0.80843616",
"0.8050027",
"0.80206877",
"0.7927163",
"0.7908435",
"0.7878271",
"0.7835688",
"0.7824517",
"0.77805686",
"0.77757144",
"0.7735",
"0.77269775",
"0.77235335",
"0.7717167",
"0.77148455",
"0.76737124",
"0.7665647",
"0.76407254... | 0.0 | -1 |
This function takes the Iris dataset as loaded by sklearn.datasets.load_iris(), and then splits so that the training set includes 90% of the full dataset, with the test set making up the remaining 10%. Your function should return a tuple (train_data, test_data, train_targets, test_targets) of appropriately split traini... | def Lzu_(MJSD):
MJSD = gMbG.load_iris()
nPrm = MJSD['data']
x6A0 = MJSD['target']
ppBc, Zwka, JCJW, NR7E = bHtP(nPrm, x6A0, test_size=0.1)
return (ppBc, Zwka, JCJW, NR7E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FJfc(__n6, LoCj, LTqX, R0g6):\n nzV8, BVu8, OJCd, PdIf = bHtP(__n6[LTqX], __n6[R0g6], train_size=LoCj, random_state=42)\n return (nzV8, BVu8, OJCd, PdIf)",
"def FJfc(__n6, LoCj, LTqX, R0g6):\n nzV8, BVu8, OJCd, PdIf = bHtP(__n6[LTqX], __n6[R0g6], train_size=LoCj)\n return (nzV8, BVu8, OJCd, PdIf)... | [
"0.7429238",
"0.73596966",
"0.7324942",
"0.73114485",
"0.73114485",
"0.7173067",
"0.70243925",
"0.7001993",
"0.69992864",
"0.698148",
"0.698148",
"0.6971545",
"0.69113606",
"0.6908209",
"0.6907308",
"0.6867146",
"0.686293",
"0.6858725",
"0.6836108",
"0.680628",
"0.67761016",
... | 0.7847423 | 0 |
This function should create and return a tuple (early_stopping, learning_rate_reduction) callbacks. The callbacks should be instantiated according to the above requirements. | def MWcv():
VxE8 = jX4P(monitor='val_loss', patience=30, min_delta=0.01, mode='min')
YXBH = ZylS.keras.callbacks.ReduceLROnPlateau(monitor='val_loss', factor=0.2, patience=20)
return (VxE8, YXBH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Rr1Y():\n cxjh = WTXF(FRi6)\n Q50R = Hy7s.path.join(kTSS, iv14)\n S2kk(Q50R)\n CTU4()\n UwDo = OTGK(filepath=Hy7s.path.join(Q50R, 'depplabV3plus_epoch-{epoch:02d}_val-loss-{val_loss:.2f}.ckpt'), save_weights_only=True, monitor='val_loss', mode='min', save_best_only=QyNx)\n xznh = b8Y3(log_dir... | [
"0.7272729",
"0.7066468",
"0.69508785",
"0.67919505",
"0.6757455",
"0.6502359",
"0.64947385",
"0.6437092",
"0.6337437",
"0.6215642",
"0.608207",
"0.602084",
"0.5990534",
"0.59795165",
"0.5763469",
"0.5735676",
"0.57082474",
"0.5679279",
"0.56364846",
"0.559038",
"0.5577522",
... | 0.8490703 | 0 |
If abbr is a state abbreviation, return the full name. Else return the abbreviation. | def M1ux(YKHO, _kTi):
return QMSQ(IlbO.get(_kTi, _kTi)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def knh5(tp3z):\n return f4_c.get(tp3z, XgTe)",
"def knh5(tp3z):\n return f4_c.get(tp3z) or XgTe",
"def XW0k(QTBn: str, jQ3Z: pd.DataFrame) -> str:\n return jQ3Z.loc[jQ3Z['State Name'] == QTBn.title(), 'State Abbreviation'].iloc[0]",
"def PUzW(YKHO, aevO):\n e473 = {'gws': 'greater western sydney... | [
"0.7403869",
"0.74004453",
"0.73604256",
"0.70342064",
"0.6967185",
"0.6931094",
"0.687996",
"0.67197937",
"0.635354",
"0.6328952",
"0.6271419",
"0.6265075",
"0.6256895",
"0.6208458",
"0.6168484",
"0.6164719",
"0.6163689",
"0.6117899",
"0.60103744",
"0.5999707",
"0.598703",
... | 0.70275784 | 4 |
Split a given DataFrame column (split_column) into multiple rows together with a second index column (index_column). | def uhlO(jQ3Z, Zhxh, Dpwp, CmwH, QVzF, nJms=';'):
lpha = rLdf.concat([rLdf.Series(rdlD[Zhxh], rdlD[Dpwp].split(nJms)) for bGrB, rdlD in jQ3Z.iterrows()]).reset_index()
lpha.columns = [QVzF, CmwH]
return lpha[[CmwH, QVzF]] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gru_(jQ3Z, hbLe, jDK_=0):\n if jQ3Z.shape[0] < hbLe:\n raise ValueError(\"n_split ({}) can't be greater than the number of rows ({}).\".format(hbLe, jQ3Z.shape[0]))\n elif hbLe <= 0:\n raise ValueError(\"n_split ({}) can't be less than 0.\".format(hbLe))\n exwG = jQ3Z.shape[0] // hbLe\n ... | [
"0.6540174",
"0.6138708",
"0.59899384",
"0.58212227",
"0.5729976",
"0.5724715",
"0.56651795",
"0.56604034",
"0.547992",
"0.53859234",
"0.5373713",
"0.53661054",
"0.5326458",
"0.5320248",
"0.5292662",
"0.51791424",
"0.515281",
"0.5148076",
"0.51402396",
"0.5122835",
"0.5090757... | 0.7921428 | 0 |
Create a minimal Domain DataFrame from the Candidate CSV file using the 'pfam_ids' column | def N7sj(n5J2, Zhxh):
return uhlO(n5J2, Zhxh, 'pfam_ids', 'contig_id', 'pfam_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BfLz() -> rLdf.DataFrame:\n ckRy = ['cafa4.tar.gz', 'CAFA4-export/TargetFiles/sp_species.9606.tfa']\n if not any((Hy7s.path.exists(pmON) for pmON in ckRy)):\n BsfS(url='https://www.biofunctionprediction.org/cafa-targets/CAFA4-export.tgz', path=ckRy[0])\n RDuA.unpack_archive(ckRy[0], '.')\n ... | [
"0.58200276",
"0.56673163",
"0.56568366",
"0.5521276",
"0.5488048",
"0.54873306",
"0.54744714",
"0.54697967",
"0.54571486",
"0.5447125",
"0.54410046",
"0.5439613",
"0.54326373",
"0.53710383",
"0.53422606",
"0.53104824",
"0.53080684",
"0.5306817",
"0.5301441",
"0.52762264",
"0... | 0.65814686 | 0 |
Returns the url to access a detail record for this book. | def hlzF(YKHO):
return gxEw('book_details', args=[str(YKHO.id)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])",
"def hlzF(YKHO):\n return gxEw('book-detail', args=[str(YKHO.id)])",
"def iLuo(inK4):\n ... | [
"0.76990575",
"0.7257499",
"0.7257499",
"0.7257499",
"0.7117704",
"0.6992158",
"0.69547594",
"0.6935497",
"0.684423",
"0.6591669",
"0.6543265",
"0.6541738",
"0.64656514",
"0.6445659",
"0.64323515",
"0.64318234",
"0.6417527",
"0.6407866",
"0.638662",
"0.6367192",
"0.6367192",
... | 0.7611185 | 1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew):
MKlR = H5ew % YKHO.m
jzdc = YKHO.a
if jzdc[MKlR]:
return jzdc[MKlR].val
else:
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew not in YKHO.map:\n return -1\n return YKHO.map[H5ew]",
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap.keys():\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n lWrn = H5ew % 37\n ... | [
"0.800388",
"0.79098475",
"0.762993",
"0.75650334",
"0.7529803",
"0.75259614",
"0.7493149",
"0.73738897",
"0.7294419",
"0.72940016",
"0.72216845",
"0.72175443",
"0.7181078",
"0.71774393",
"0.71633786",
"0.6980779",
"0.69289523",
"0.67850846",
"0.6757027",
"0.6734023",
"0.6612... | 0.7556994 | 4 |
r"""Retrieves the projection matrix for this scene. | def lOe5(YKHO):
F6jf = YKHO.figure.scene
Jb2r = tuple(F6jf.get_size())
pAIe = float(Jb2r[0]) / float(Jb2r[1])
XP5J = F6jf.camera.get_perspective_transform_matrix(pAIe, -1, 1).to_array().astype(oyIN.float32)
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lOe5(YKHO) -> KCsE:\n if YKHO._projection_matrix is None:\n if YKHO.projection_mode == J7n_.TOP_DOWN:\n YKHO._projection_matrix = YKHO.orthographic_matrix\n else:\n YKHO._projection_matrix = YKHO.perspective_matrix\n return YKHO._projection_matrix",
"def EVIl(YKHO):\... | [
"0.78104204",
"0.7666103",
"0.74616575",
"0.74465615",
"0.74224895",
"0.7257091",
"0.72499746",
"0.72499746",
"0.7068451",
"0.704346",
"0.7032178",
"0.6957537",
"0.6880624",
"0.6879542",
"0.6786198",
"0.6656584",
"0.66423136",
"0.6529158",
"0.64911455",
"0.64765614",
"0.64027... | 0.83785504 | 0 |
Check if a role exists with provided name. | async def check_role_name(QePW):
w2B8 = await HagN()
geh0 = await Ceo_.roles_search_duplicate(w2B8, QePW.args.get('name'))
w2B8.close()
return qQXR({'exists': bool(geh0)}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def asuZ(YKHO, h1Ur):\n return any((Mkmy.name == h1Ur for Mkmy in YKHO.roles))",
"def asuZ(LmAn, CXDR=None):\n return LmAn in UMnH('roles', CXDR)",
"def dovr(h1Ur, gIsw):\n ybfy = evsB('[ -f %s ] && grep \"^%s$\" %s && echo \"yes\" || echo \"no\"' % (gIsw, h1Ur, gIsw))\n if ybfy == 'yes':\n ... | [
"0.7704213",
"0.74145705",
"0.73849845",
"0.7315238",
"0.7132745",
"0.70899135",
"0.69661057",
"0.6901529",
"0.6887436",
"0.680472",
"0.6511793",
"0.6492095",
"0.6450325",
"0.640017",
"0.6355747",
"0.6328484",
"0.62988675",
"0.62868804",
"0.62002575",
"0.6100128",
"0.60914797... | 0.8029438 | 0 |
Add a member to a role. | async def add_role_member(QePW, d9OY):
XkHx = ['id']
BfDw.validate_fields(XkHx, QePW.json)
iPIP, FlNs = await BfDw.get_transactor_key(QePW)
jgQZ = str(kxTZ())
JlfD = FxgQ().member.propose.batch_list(signer_keypair=iPIP, signer_user_id=FlNs, proposal_id=jgQZ, role_id=d9OY, pack_id=QePW.json.get('pack... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BfpQ():\n x0hE = CueG()\n x0hE.set_method('POST')\n x0hE.set_endpoint('/accounts/{0}/memberships'.format(Dd8s['account_id']))\n TBsA = {'person_id': Dd8s['member_id']}\n x0hE.set_body(qQXR.dumps(TBsA))\n x0hE.execute_request()",
"async def addrole(YKHO, OaeV, mS46: discord.Member, LmAn: dis... | [
"0.7348769",
"0.7291903",
"0.7068307",
"0.6949378",
"0.6941964",
"0.69165707",
"0.69154483",
"0.6859402",
"0.684402",
"0.6813287",
"0.67874575",
"0.6775485",
"0.6769517",
"0.67252976",
"0.67011875",
"0.6664257",
"0.66319287",
"0.66097236",
"0.6541175",
"0.6485458",
"0.6483773... | 0.71393275 | 2 |
Close database and remove tempfile. | def tBIc(YKHO):
YKHO.db.close()
YKHO.dbfile.close()
Hy7s.unlink(YKHO.path) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBIc(YKHO):\n Hy7s.close(YKHO.db_fd)\n Hy7s.unlink(Pnk4.app.config['DATABASE'])",
"def tBIc(YKHO):\n Hy7s.close(YKHO.db_fd)\n Hy7s.unlink(HNql.app.config['DATABASE'])",
"def mTtn(YKHO):\n try:\n YKHO._close(True)\n except:\n pass\n try:\n Hy7s.unlink(Hy7s.path.join... | [
"0.81592",
"0.7996563",
"0.79932266",
"0.7991232",
"0.7943603",
"0.79382694",
"0.77299803",
"0.76762205",
"0.7675102",
"0.7675102",
"0.7675102",
"0.7675102",
"0.7576348",
"0.75221467",
"0.75054365",
"0.74743515",
"0.7416318",
"0.73940825",
"0.73868376",
"0.73823553",
"0.73539... | 0.7854662 | 6 |
Check if a given word is a real number. | def WMHw(JOqi: str) -> list:
if ZbWC.match('^(?:0|[1-9][0-9]*)(?:\\.[0-9]+)?$', JOqi):
eOtH = 'num_real'
return [True, eOtH]
else:
return [False, ''] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QpCZ(GIN8):\n try:\n float(GIN8)\n return True\n except ValueError:\n return False",
"def tIyV(GIN8):\n try:\n int(GIN8)\n return True\n except ValueError:\n return False",
"def xbPL(Ljzv):\n return z1cb.DECIMALNUMBERREGEX.match(Ljzv) != None",
"de... | [
"0.762255",
"0.7468598",
"0.74435747",
"0.730183",
"0.7287073",
"0.7281827",
"0.726655",
"0.7262698",
"0.7253065",
"0.7243992",
"0.7238527",
"0.7228147",
"0.7228147",
"0.7228147",
"0.7173918",
"0.71663624",
"0.71576375",
"0.71559525",
"0.7141952",
"0.71411204",
"0.7135744",
... | 0.75782555 | 1 |
Check if a given word is an identifier or a reserved word. | def qC8a(JOqi: str) -> list:
d9Dt = {'program': 'symb_program', 'begin': 'symb_begin', 'end': 'symb_end', 'const': 'symb_const', 'var': 'symb_var', 'real': 'symb_real', 'integer': 'symb_integer', 'procedure': 'symb_procedure', 'read': 'symb_read', 'else': 'symb_else', 'while': 'symb_while', 'do': 'symb_do', 'for': ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ptKd(YKHO, GIN8):\n GIN8 = GIN8.lower().strip()\n return not GIN8 or GIN8 in YKHO.dictionary",
"def Gtm1(YKHO, GIN8):\n return YKHO.data(GIN8) is not None",
"def m1oe(eW6D: str) -> bool:\n return eW6D in WMWg",
"def qOm7(YKHO, GIN8):\n return YKHO.root.checkString(u' ' + GIN8)",
"def ptK... | [
"0.6962261",
"0.6754092",
"0.6710042",
"0.6661024",
"0.65768445",
"0.6520431",
"0.65203524",
"0.65101093",
"0.6472301",
"0.6432031",
"0.63866",
"0.6299001",
"0.6291951",
"0.6291467",
"0.62890977",
"0.62844473",
"0.62531626",
"0.6252947",
"0.6248125",
"0.62438023",
"0.6231863"... | 0.65931326 | 4 |
Stores a transition in the buffer to be used later. | def OnZY(YKHO, OZkM):
YKHO.buffer.append(OZkM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GwRw(YKHO, KCHu, jzdc, Mkmy, gcJ8):\n if not hasattr(YKHO, 'memory_counter'):\n YKHO.memory_counter = 0\n M2hS = YKHO.actions_list.index(jzdc)\n OZkM = oyIN.hstack((KCHu, [M2hS, Mkmy], gcJ8))\n d6pt = YKHO.memory_counter % YKHO.memory_size\n YKHO.memory[d6pt, :] = OZkM\n YKHO.memory_co... | [
"0.73112977",
"0.7238376",
"0.717752",
"0.7161149",
"0.70977986",
"0.70807385",
"0.6936872",
"0.6908647",
"0.6887271",
"0.65726095",
"0.65604985",
"0.65576756",
"0.64840066",
"0.64533645",
"0.6391457",
"0.6348378",
"0.6330885",
"0.6270931",
"0.6245909",
"0.62016976",
"0.61827... | 0.87435853 | 0 |
Returns the minimax action using self.depth and self.evaluationFunction | def bk5W(YKHO, Ov5A):
WLtg = YKHO.depth
XOYl = Ov5A.getNumAgents()
def BWXx(QTBn, rb7a, Cwt5, UqYS):
if rb7a == WLtg * XOYl or QTBn.isLose() or QTBn.isWin():
return [YKHO.evaluationFunction(QTBn)]
if rb7a % XOYl == 0:
return eB_n(QTBn, rb7a, Cwt5, UqYS)
else:... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bk5W(YKHO, Ov5A: GameState):\n SkJr = float('-inf')\n XeOP = None\n for BZN_ in Ov5A.getLegalActions(0):\n gnPz = SR1K(YKHO.evaluationFunction, 1, 0, Ov5A.generateSuccessor(0, BZN_), YKHO.depth)\n if gnPz > SkJr or SkJr == float('-inf'):\n SkJr = gnPz\n XeOP = BZN_\... | [
"0.7482665",
"0.7383559",
"0.71806973",
"0.7110041",
"0.70884514",
"0.70694935",
"0.70683014",
"0.7048308",
"0.70055133",
"0.69651455",
"0.69642085",
"0.69604385",
"0.6945924",
"0.68998593",
"0.6895832",
"0.688605",
"0.6767276",
"0.6758028",
"0.6751636",
"0.6705453",
"0.67045... | 0.6826282 | 16 |
Function takes an image (RGB, HSV, etc.), channel (0,1,2) for 3 channels, threshold and returns binary image of the thresholded channel | def NU_n(VXjJ, Npgh=0, knl1=(0, 180)):
if VXjJ.shape[2] > Npgh:
rL9q = VXjJ[:, :, Npgh]
neaT = oyIN.zeros_like(rL9q)
neaT[(rL9q > knl1[0]) & (rL9q <= knl1[1])] = 1
return neaT
else:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwAu(YwkQ, knl1=(128, 255), oTYm=XC5k.THRESH_BINARY):\n return XC5k.threshold(YwkQ, knl1[0], knl1[1], oTYm)",
"def JfRw(VXjJ, gwAu=znoN):\n return XC5k.threshold(VXjJ, gwAu, p9KR, XC5k.THRESH_BINARY)",
"def gwAu(VXjJ, knl1):\n return XC5k.threshold(VXjJ, knl1, 255, XC5k.THRESH_BINARY)[1]",
"def ... | [
"0.7257197",
"0.72512984",
"0.71635854",
"0.71581554",
"0.7124226",
"0.7013585",
"0.6962464",
"0.6941106",
"0.6888597",
"0.6874667",
"0.6805758",
"0.67218673",
"0.6691793",
"0.6691624",
"0.6686006",
"0.66759545",
"0.6667048",
"0.6620656",
"0.6595911",
"0.6577171",
"0.6503583"... | 0.6973775 | 6 |
Function takes an image, grayscale it, applies Sobel x or y, then takes an absolute value and applies a threshold. | def Sk6z(YKHO, ENzu='x', oVn9=0, cdWX=255):
ITiw = XC5k.cvtColor(YKHO.img, XC5k.COLOR_RGB2GRAY)
if ENzu != 'x':
yBsX = 0
vAMe = 1
else:
yBsX = 1
vAMe = 0
H9dw = XC5k.Sobel(ITiw, XC5k.CV_64F, yBsX, vAMe)
SB9r = oyIN.absolute(H9dw)
iWhD = oyIN.uint8(255 * SB9r / oyI... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JfRw(YKHO, LNo8, M6vu, UFR4, i1vS, acJe, DCtH, r9iZ, Y73o):\n qJtC = XC5k.cvtColor(LNo8, XC5k.COLOR_RGB2HLS).astype(oyIN.float)\n yzxJ = qJtC[:, :, 1]\n mS2J = XC5k.Sobel(yzxJ, XC5k.CV_64F, 1, 0, ksize=M6vu)\n O6OF = oyIN.absolute(mS2J)\n iWhD = oyIN.uint8(255 * O6OF / oyIN.max(O6OF))\n FV0D ... | [
"0.70706564",
"0.700521",
"0.6952588",
"0.6683551",
"0.6672206",
"0.6667592",
"0.66553956",
"0.65481114",
"0.65142244",
"0.64996487",
"0.64885056",
"0.6480764",
"0.6332068",
"0.6284692",
"0.6267679",
"0.6259247",
"0.62581915",
"0.62547356",
"0.62533194",
"0.6205849",
"0.62031... | 0.6357954 | 12 |
Function returns binary thresholded image using gradient feature | def _Ghf(YKHO, QOe9=0):
TuBe = YKHO.abs_sobel_thresh(orient='x', thresh_min=25, thresh_max=55)
ROzM = YKHO.dir_threshold(sobel_kernel=9, thresh=(1.0721, oyIN.pi / 2))
OmTz = YKHO.dir_threshold(sobel_kernel=9, thresh=(0.0982, 0.3927))
PKLg = TZeR(TZeR(TuBe, ROzM), OmTz)
qJtC = XC5k.cvtColor(YKHO.img,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YquP(VXjJ, WZcn=3, knl1=(0, oyIN.pi / 2)):\n yBsX = XC5k.Sobel(VXjJ, XC5k.CV_64F, 1, 0, ksize=WZcn)\n vAMe = XC5k.Sobel(VXjJ, XC5k.CV_64F, 0, 1, ksize=WZcn)\n O6OF = oyIN.sqrt(yBsX ** 2)\n U2Ze = oyIN.sqrt(vAMe ** 2)\n XSoh = oyIN.arctan2(U2Ze, O6OF)\n dbuB = oyIN.zeros_like(XSoh)\n dbuB[(... | [
"0.7064512",
"0.68673354",
"0.6844981",
"0.67052937",
"0.6630067",
"0.66091895",
"0.6608282",
"0.65964717",
"0.65040433",
"0.6483056",
"0.6482947",
"0.6473928",
"0.6446394",
"0.6445282",
"0.6425684",
"0.64059865",
"0.6395026",
"0.63466567",
"0.63357484",
"0.63302374",
"0.6320... | 0.0 | -1 |
Initialize the model that will be used for prediction. | def Gdbk(YKHO, xpKI):
xs48 = YKHO.get_rels(xpKI)
YKHO._model = _tGK(xs48) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uIcm(YKHO):\n na1r.info('Initializing Model.')\n YKHO.model = YKHO.convert(df=YKHO.training_df)\n if YKHO.bootstraps is not None:\n na1r.info('Bootstrapping Data.')\n YKHO.bootstrap_data()",
"def Gv23(YKHO):\n pass",
"def fPO8(YKHO):\n pass",
"def DbxN(YKHO):\n g4y1 = YKHO... | [
"0.779014",
"0.77078915",
"0.7636239",
"0.75355023",
"0.7403137",
"0.7364823",
"0.7315481",
"0.7277654",
"0.72674614",
"0.7264292",
"0.7215646",
"0.7111046",
"0.7110114",
"0.70896906",
"0.7089447",
"0.70846367",
"0.7068159",
"0.7065056",
"0.7060362",
"0.70405215",
"0.70293534... | 0.6922751 | 36 |
Return an absolute path to the location based on provided strings. Substitute tilde '~' with home directory. | def n8un(*cGUr):
return pmON.abspath(pmON.expanduser(pmON.join(*cGUr))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z9ps(pmON):\n if '~' in pmON:\n return pmON.replace('~', hIOi('~'))\n else:\n return pmON",
"def h0m1(yFgu):\n if yFgu[:1] == '~':\n kZiy = hIOi('~')\n return kZiy + yFgu.strip('~')\n return yFgu",
"def SOoY(pmON):\n pmON = ZbWC.sub('~', Hy7s.environ['HOME'], str(... | [
"0.678737",
"0.6651808",
"0.65477717",
"0.6491881",
"0.6453702",
"0.6356276",
"0.63179314",
"0.6209195",
"0.6119369",
"0.6116454",
"0.61010146",
"0.6088717",
"0.60864735",
"0.60319287",
"0.6016312",
"0.59940815",
"0.5988271",
"0.5941935",
"0.5915677",
"0.5890978",
"0.5873511"... | 0.543807 | 51 |
Take a first and last name and format it to return the title case version of the name | def T37t(knSv, FOIu):
if knSv == '' or FOIu == '':
return "You didn't provide valid inputs."
TZXd = knSv.title()
pf2u = FOIu.title()
return f'{TZXd} {pf2u}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e1yb(c9ua, zp3f):\n eHMM = f'{c9ua} {zp3f}'\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.title()",
"def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM.t... | [
"0.8663646",
"0.8603068",
"0.8603068",
"0.8603068",
"0.85657644",
"0.8555767",
"0.85525084",
"0.8550996",
"0.8532395",
"0.85100186",
"0.85100186",
"0.85100186",
"0.85062385",
"0.8484088",
"0.84702533",
"0.84416676",
"0.84416676",
"0.84035605",
"0.83981806",
"0.8391093",
"0.83... | 0.72642416 | 47 |
Return a float between 0 (left) and 1 (right) representing the relative position of the ennemy in the player field of view in the basic scenario. | def v04p(QTBn):
z746 = QTBn.depth_buffer[65].astype(oyIN.int32)
zFiD = oyIN.diff(z746)
zFiD[oyIN.abs(zFiD) > 15] = 0
zJQx = zFiD.argmin()
zFiD[:zJQx] = 0
KO11 = zFiD.argmax()
return (zJQx + KO11) / 2 / len(z746) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def muXy(YKHO):\n return YKHO.x",
"def Cf7z(YKHO) -> AzJI[int, int]:\n return (YKHO.position[0] - YKHO.region.rect.x, YKHO.position[1] - YKHO.region.rect.y)",
"def Cf7z(YKHO) -> AzJI[int, int]:\n return (YKHO.position[0] - YKHO.region.rect.x, YKHO.position[1] - YKHO.region.rect.y)",
"def fYNH(YKHO):... | [
"0.6604129",
"0.6594732",
"0.6594732",
"0.6551132",
"0.64372027",
"0.6376991",
"0.6338158",
"0.6338158",
"0.6320881",
"0.6268785",
"0.6268114",
"0.62219703",
"0.61989105",
"0.6171039",
"0.6162807",
"0.60927355",
"0.6078739",
"0.60687274",
"0.6055316",
"0.6051",
"0.6050987",
... | 0.6140672 | 15 |
Helper function to ensure the file type is valid/manageable. | def dijZ(YKHO, SWgO):
WmM4 = 'mid'
owEI = ['mid', 'wav', 'flac', 'mp3', 'ogg', 'flv', 'mp4', 'wma', 'aac']
if type(SWgO) == int:
if SWgO >= len(owEI):
print('Index out of range. Defaulting to MIDI')
return WmM4
else:
return owEI[SWgO]
if type(SWgO) != ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xWBV(YKHO):\n assert YKHO.filekind in YKHO.obs_package.FILEKINDS, 'Invalid filekind ' + repr(YKHO.filekind) + ' in ' + repr(YKHO.filename)",
"def qdVJ(IznC):\n YBcr = pmON.splitext(IznC)[1]\n return YBcr in NexC",
"def xDbo(nUeQ):\n yvke = ['png', 'jpg', 'jpeg']\n sKBJ = nUeQ.filename.split(... | [
"0.74211967",
"0.6822177",
"0.67884934",
"0.6751811",
"0.6669142",
"0.66154075",
"0.66035235",
"0.65627986",
"0.6476442",
"0.6424021",
"0.64192426",
"0.64075345",
"0.6396387",
"0.63031405",
"0.6299122",
"0.62978774",
"0.62762874",
"0.6265574",
"0.6261629",
"0.62504286",
"0.62... | 0.0 | -1 |
Sanitize a string to be used as a filename. | def NVCy(KCHu):
KCHu = ZbWC.sub('\\([^\\(]*$', '', KCHu)
KCHu = KCHu.strip().replace(':', '-').replace(' ', '_')
jUwZ = '-_.()%s%s' % (vIwR.ascii_letters, vIwR.digits)
return ''.join((Z9rn for Z9rn in KCHu if Z9rn in jUwZ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOHH(Ux0P):\n XQg9 = ZbWC.sub('[/\\\\\\\\:*?\"<>|]', '-', Ux0P)\n XQg9 = XQg9.replace('&', 'and')\n XQg9 = XQg9.replace('\"', '')\n XQg9 = XQg9.replace(\"'\", '')\n XQg9 = XQg9.replace('/', '')\n XQg9 = XQg9.replace('\\\\', '')\n if XQg9[0] == '.':\n XQg9 = u'dot' + XQg9[1:]\n re... | [
"0.80123615",
"0.7964389",
"0.7964389",
"0.7878434",
"0.7810296",
"0.7665364",
"0.7573089",
"0.7558329",
"0.7546698",
"0.7541314",
"0.7524779",
"0.75132716",
"0.7482624",
"0.73833954",
"0.7329925",
"0.73262566",
"0.7320113",
"0.7261218",
"0.7230235",
"0.72295463",
"0.7217503"... | 0.7095692 | 25 |
r"""Set up a `VerbatimBlock` | def eCGt(YKHO, oxOY: PetscDocStringImpl) -> None:
DumB = {}
class Inspector:
AjPI = ('codeblocks', 'startline')
xPAo: int
yfJw: int
def FIMM(YKHO, yfJw: int) -> None:
YKHO.codeblocks = 0
YKHO.startline = yfJw
return
def nrOS(YKHO, ox... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rU4x(TZ9E):\n return {'t': 'RawBlock', 'c': ['html', TZ9E]}",
"def FIMM(YKHO):\n YKHO.block_stack = []\n JFat = None\n if not JFat:\n JFat = Hy7s.path.join(Hy7s.path.split(xAKo)[0], '../pymarkdown/resources')\n COrG.initialize(JFat)",
"def GIXO(nPrm):\n VOsW = nPrm[2]\n leAC = n... | [
"0.6427474",
"0.61481726",
"0.5874726",
"0.5868316",
"0.5795336",
"0.5705492",
"0.5658154",
"0.5572977",
"0.55654013",
"0.55625725",
"0.553499",
"0.5477947",
"0.54552984",
"0.54058444",
"0.5397841",
"0.5343472",
"0.53422",
"0.5327245",
"0.532312",
"0.530184",
"0.52898026",
... | 0.49463087 | 67 |
Get the connected YubiKey's version as a string. | def DpZH(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xhfZ(Emd4):\n Q7_y = Emd4.__getLib().voikkoGetVersion()\n return Ihjn(Q7_y, 'UTF-8')",
"def byL7(YKHO) -> str:\n return qe4Y.get(YKHO, 'version_bytes')",
"def DpZH(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'version')",
"def kaPv(YKHO) -> str:\n return fsDn.get_version()",
"def k... | [
"0.7518363",
"0.7468351",
"0.7444643",
"0.7426205",
"0.73935837",
"0.73913455",
"0.73913455",
"0.73913455",
"0.73913455",
"0.7352391",
"0.7306484",
"0.72672594",
"0.72613543",
"0.72493905",
"0.7237862",
"0.7228088",
"0.722017",
"0.721696",
"0.7211483",
"0.7198171",
"0.7171115... | 0.0 | -1 |
Get the response to a challenge from a connected YubiKey. `mode' is either 'HMAC' or 'OTP'. `slot' is 1 or 2. `variable' is only relevant for mode == HMAC. If variable is True, challenge will be padded such that the YubiKey will compute the HMAC as if there were no padding. If variable is False, challenge will always b... | def yzq9(YKHO, yzq9, Tuqy='HMAC', oQ6W=1, Es0b=True, oX0z=True):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZytV(nPrm, oQ6W=None) -> uLKX[ImMB, None]:\n if 'result' in nPrm:\n lRr0 = nPrm['result']['contexts'][0]\n if lRr0:\n SGPK = lRr0.get('parameters')\n else:\n SGPK = nPrm['result']['parameters']\n if oQ6W is None:\n return SGPK\n elif oQ6W i... | [
"0.49309647",
"0.48515275",
"0.4850242",
"0.47334254",
"0.46932486",
"0.4626481",
"0.46115807",
"0.4549656",
"0.44817528",
"0.4432513",
"0.44097",
"0.4402911",
"0.43896165",
"0.43741786",
"0.43556577",
"0.43437093",
"0.43305743",
"0.43264595",
"0.4316332",
"0.42936394",
"0.42... | 0.65719765 | 0 |
Return a YubiKey configuration object for this type of YubiKey. | def fOck(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mnvm(YKHO) -> 'outputs.CryptoKeyConfigResponse':\n return qe4Y.get(YKHO, 'crypto_key_config')",
"def q809(YKHO):\n try:\n YKHO.yk = tYB3.find_yubikey()\n YKHO.version.set('Version:%s' % YKHO.yk.version())\n YKHO.serial.set('Serial:%s' % YKHO.yk.serial())\n except tYB3.yubikey.Yu... | [
"0.5883121",
"0.56813526",
"0.56583446",
"0.5543895",
"0.55395997",
"0.5463443",
"0.54049355",
"0.5388315",
"0.5330292",
"0.5330158",
"0.53090227",
"0.5299784",
"0.52979136",
"0.52680945",
"0.52477074",
"0.5233944",
"0.52136266",
"0.5204096",
"0.51901853",
"0.5179389",
"0.516... | 0.0 | -1 |
Copy self queryset for prevent query caching. | def FIMM(YKHO, *qIxc, **B2fa):
super(fTNU, YKHO).__init__(*qIxc, **B2fa)
if not YKHO._meta.queryset is None:
YKHO._meta.queryset = YKHO._meta.queryset.all() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jth9(YKHO):\n return type(YKHO)(*YKHO.__queries, op=YKHO.__op)",
"def jth9(YKHO):\n raise NotImplementedError('Query does not support the copy() method.')",
"def bv2I(YKHO):\n Z9rn = YKHO.__class__(model=YKHO.model, query=YKHO.query.chain(), using=YKHO._db, hints=YKHO._hints)\n Z9rn._sticky_fil... | [
"0.7399769",
"0.71686095",
"0.70631844",
"0.6941556",
"0.6907978",
"0.6821032",
"0.6799747",
"0.67438066",
"0.67438066",
"0.6696478",
"0.6684554",
"0.66646594",
"0.66570437",
"0.66106",
"0.66074324",
"0.65938497",
"0.65938497",
"0.65938497",
"0.65938497",
"0.65895396",
"0.657... | 0.0 | -1 |
Reverse resource by ResourceClass or name. | def gxEw(Emd4, Eorv, **JKCy):
if not Emd4.api:
raise AssertionError('AdrestTestCase must have the api attribute.')
if isinstance(Eorv, exCv):
nMlH = Eorv
if not Emd4.api.resources.get(nMlH):
raise AssertionError('Invalid resource name: %s' % nMlH)
else:
nMlH = Eor... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Un0y(YKHO, Um9M):\n if Um9M == 'Resource':\n return None\n if Um9M in YKHO._classMapping:\n return YKHO._classMapping[Um9M]\n else:\n raise Exception('Given class name \"' + Um9M + '\"is not associated with a uri!')",
"def gxEw(YKHO, *qIxc, **B2fa):\n return gxEw(*qIxc, **B2f... | [
"0.5906841",
"0.58842605",
"0.5743924",
"0.5568378",
"0.5539185",
"0.54789793",
"0.5421403",
"0.54162896",
"0.5376105",
"0.53674114",
"0.53491414",
"0.5330041",
"0.5321578",
"0.5302124",
"0.52929467",
"0.5280923",
"0.524121",
"0.524121",
"0.5214597",
"0.52145886",
"0.5197051"... | 0.7011643 | 0 |
Returns whether or not the user has exceeded their throttle limit. | def jye8(YKHO, Eorv):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J3wX(YKHO):\n if YKHO.rate_limit_sleep:\n tO9_ = f'请求过于频繁,已被BitMEX限制,请等待{YKHO.rate_limit_sleep}秒后再试'\n YKHO.gateway.write_log(tO9_)\n return False\n elif not YKHO.rate_limit_remaining:\n tO9_ = '请求频率太高,有触发BitMEX流控的风险,请稍候再试'\n YKHO.gateway.write_log(tO9_)\n return... | [
"0.7139493",
"0.71100205",
"0.6955849",
"0.68879765",
"0.6859896",
"0.6697189",
"0.6591735",
"0.6508721",
"0.6492379",
"0.6472114",
"0.646948",
"0.64641124",
"0.6400263",
"0.63629967",
"0.63472015",
"0.63284254",
"0.6317153",
"0.6254077",
"0.62531424",
"0.6234124",
"0.6229649... | 0.6817646 | 5 |
Replace spaces with '' and hash if length is greater than 250. | def bPOL(H5ew):
LeuP = ZbWC.sub('\\s+', '-', H5ew)
LeuP = cJ_x(LeuP)
if len(LeuP) > 200:
LeuP = LeuP[:150] + '-' + HBct.md5(LeuP).hexdigest()
return LeuP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHJK(l5Ny):\n if not l5Ny:\n return ''\n return l5Ny.translate(Ncqq).lower()",
"def c1x5(CG4p):\n if len(CG4p) == 40:\n return CG4p.decode('hex')\n if len(CG4p) != 20:\n raise e6ok('Infohash not equal to 20 digits', CG4p)\n return CG4p",
"def Ymak(YKHO, VfPg: str, w13o: ... | [
"0.61413294",
"0.6119153",
"0.58871484",
"0.58260584",
"0.58260584",
"0.58260584",
"0.58260584",
"0.580712",
"0.5779639",
"0.57760966",
"0.57588935",
"0.57513255",
"0.5709565",
"0.57016",
"0.5674024",
"0.56139565",
"0.5605284",
"0.558613",
"0.55808145",
"0.55195224",
"0.55186... | 0.57001257 | 14 |
Wrapper for dot product operation, in order to be compatible with both Theano and Tensorflow | def uYbU(WKvO, WZcn):
if nMvt.backend() == 'tensorflow':
return nMvt.squeeze(nMvt.dot(WKvO, nMvt.expand_dims(WZcn)), axis=-1)
else:
return nMvt.dot(WKvO, WZcn) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yKrh(n2Q1: torch.Tensor, SpII: torch.Tensor, PJWX: bool=False):\n assert n2Q1.size() == SpII.size(), 'Sizes for dot-product must match'\n return ohcp.dot_prod(n2Q1, SpII, PJWX)",
"def iVXA(jzdc, Fg_i):\n return oyIN.einsum('ijk,ikl->ijl', jzdc, Fg_i)",
"def BJ1H(jzdc, Fg_i):\n jzdc, Fg_i = (uM5... | [
"0.76538557",
"0.761268",
"0.7590079",
"0.7535919",
"0.75187564",
"0.7498847",
"0.74907756",
"0.74907756",
"0.74907756",
"0.74907756",
"0.74392796",
"0.7429963",
"0.74196726",
"0.7382268",
"0.73776513",
"0.73444533",
"0.7332484",
"0.7311246",
"0.7310674",
"0.7276245",
"0.7272... | 0.7467345 | 10 |
Calculate m^2 area of a wgs84 square pixel. | def TM3Y(Y7KK, lhyD):
jzdc = 6378137
Fg_i = 6356752.3142
tTpl = XTiz.sqrt(1 - (Fg_i / jzdc) ** 2)
G5ox = []
for eHNT in [lhyD + Y7KK / 2, lhyD - Y7KK / 2]:
JXRe = 1 - tTpl * XTiz.sin(XTiz.radians(eHNT))
j7aV = 1 + tTpl * XTiz.sin(XTiz.radians(eHNT))
G5ox.append(XTiz.pi * Fg_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n f0tD = 0\n XVAW = YKHO._coordinates[-1]\n for Z9rn in YKHO._coordinates:\n f0tD += XVAW[0] * Z9rn[1] - XVAW[1] * Z9rn[0]\n XVAW = Z9rn\n return float('{:.2f}'.format(abs(f0tD) * 0.5))",
"def f0tD(WKvO, LVAh):\n return WKvO * LVAh / 2",
"def f0tD(YKHO):\n return... | [
"0.65402156",
"0.6536346",
"0.6490702",
"0.6384468",
"0.63473636",
"0.63410383",
"0.6317995",
"0.626634",
"0.62533635",
"0.6233821",
"0.6206045",
"0.6205743",
"0.6197351",
"0.6186741",
"0.61692876",
"0.6156493",
"0.6140983",
"0.6107988",
"0.6099527",
"0.6079559",
"0.6050664",... | 0.0 | -1 |