query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return string cut to specified length. | def js1M(vIwR: str, /, TVTK: int=79, *, sv4l: int | float | None=None, Vg4u: str | None=None) -> str:
if sv4l is None:
sv4l = 0.5
if Vg4u is None:
if isinstance(vIwR, bytes):
Vg4u = b'...'
else:
Vg4u = '…'
c4f6 = len(Vg4u)
PL9q = vIwR.splitlines()
Aofo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G34s(vIwR, u54L):\n return vIwR[0:u54L]",
"def cPNW(BWXx, u54L):\n return BWXx[0:u54L]",
"def W4oG(YKHO, vIwR, u54L):\n if type(vIwR) != str:\n vIwR = str(vIwR)\n if len(vIwR) > u54L:\n return vIwR[0:u54L]\n return vIwR",
"def JN59(wEf2, wzH_):\n return wEf2[:wzH_]",
"de... | [
"0.81014824",
"0.79649955",
"0.75628567",
"0.7541014",
"0.741969",
"0.73498404",
"0.73412097",
"0.73030406",
"0.72110784",
"0.71705383",
"0.71705383",
"0.7130946",
"0.71220315",
"0.7105321",
"0.70198053",
"0.69578874",
"0.6955099",
"0.6935625",
"0.67819667",
"0.6776479",
"0.6... | 0.0 | -1 |
Return short string representation of Enum member. >>> enumstr(PHOTOMETRIC.RGB) 'RGB' | def nKRQ(qQ1Y: Any, /) -> str:
mWFP = qQ1Y.name
if mWFP is None:
mWFP = str(qQ1Y)
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VFGc(Mwmx: enum_type) -> str:\n return {Ty9i: G1Hx if AW0A else G1Hx.lower() for G1Hx, Ty9i in p5ux.__members__.items()}[Mwmx]",
"def DkJh(wEf2):\n return str(wEf2.value)",
"def Pzfq(YKHO):\n return '\\n #ifdef DEBUG\\n int aesara_enum_to_string_%(cname)s(%(ctype)s in, char* out) {\\... | [
"0.72481394",
"0.7085946",
"0.69374305",
"0.6895744",
"0.6886154",
"0.6703671",
"0.66965735",
"0.6681531",
"0.6675651",
"0.66265005",
"0.6623515",
"0.6525048",
"0.6441913",
"0.64075667",
"0.6402465",
"0.63177407",
"0.63148165",
"0.6299908",
"0.62928194",
"0.6258835",
"0.62170... | 0.7513867 | 0 |
Return dict with keys from keys|keyvals and values from kwargs|keyvals. Existing keys are deleted from `kwargs`. | def uH9d(B2fa: dict[str, Any], /, *sjXb: str, **sEQ7: Any) -> dict[str, ImMB]:
Aofo = {}
for H5ew in sjXb:
if H5ew in B2fa:
Aofo[H5ew] = B2fa[H5ew]
del B2fa[H5ew]
for H5ew, BWXx in sEQ7.items():
if H5ew in B2fa:
Aofo[H5ew] = B2fa[H5ew]
del B2fa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Y3Py(DQjg, B2fa):\n return {G1Hx: B2fa.pop(G1Hx) for G1Hx in DQjg if G1Hx in B2fa}",
"def B2fa(Emd4, **B2fa):\n return QKqJ()",
"def AKNF(Emd4, B2fa):\n return dict([(XP5J, B2fa.pop(XP5J, None)) for XP5J in Emd4._method_parameters])",
"def tS2U(B2fa: Dict, dQdN: Dict) -> cuzp:\n Aofo = {}\n ... | [
"0.68095773",
"0.6657756",
"0.6600998",
"0.6566816",
"0.64412326",
"0.63974404",
"0.63503194",
"0.6327372",
"0.6212105",
"0.61602885",
"0.6136603",
"0.61160254",
"0.610438",
"0.610438",
"0.6093773",
"0.605667",
"0.6044067",
"0.6042186",
"0.60335046",
"0.60238934",
"0.60199875... | 0.7246577 | 0 |
Update dict with keys and values if keys do not already exist. | def MbA7(B2fa: dict[str, Any], /, **sEQ7: Any) -> None:
for H5ew, BWXx in sEQ7.items():
if H5ew not in B2fa:
B2fa[H5ew] = BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XNFI(WMwn, PMve):\n for H5ew, BWXx in PMve.items():\n if H5ew in WMwn.keys():\n qmLP.warn('Multiple values for one key, last value is kept.\\n Check input file to remove duplicate entries.')\n WMwn[H5ew] = BWXx",
"def TeKw(YKHO, H5ew, nhLb):\n tMEI = super().get(H5ew)\n ... | [
"0.689832",
"0.6886059",
"0.68512416",
"0.6842577",
"0.66573995",
"0.65549517",
"0.6550682",
"0.6550682",
"0.6550682",
"0.6550682",
"0.6550682",
"0.6528425",
"0.64693916",
"0.64672035",
"0.64467746",
"0.6432031",
"0.642598",
"0.64256257",
"0.6419773",
"0.6418081",
"0.64130104... | 0.0 | -1 |
Plot ndimensional images with `matplotlib.pyplot`. | def r2sP(nPrm: NDArray[Any], /, *, YGPH: PHOTOMETRIC | int | str | None=None, fcWJ: PLANARCONFIG | int | str | None=None, O5Wi: int | None=None, W1Td: int | float=0, GoGv: str | int | None=None, iMGt: Any | None=None, MynD: int | float | None=None, n4wC: int | float | None=None, JI1i: Any=None, Eb6b: Any=None, leAC: st... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uLoT(EcVT, exwG):\n sN96 = int(oyIN.sqrt(EcVT.shape[1]))\n U4F5 = int(oyIN.sqrt(exwG))\n WnbB = EcVT[:exwG, :]\n LZpg, K1bR = QrM1.subplots(nrows=U4F5, ncols=U4F5, sharey=True, sharex=True, figsize=(8, 8))\n for Mkmy in range(U4F5):\n for Z9rn in range(U4F5):\n K1bR[Mkmy, Z9rn]... | [
"0.75188",
"0.75185573",
"0.739708",
"0.7353372",
"0.73095137",
"0.71946526",
"0.71845996",
"0.71816975",
"0.71720576",
"0.7139592",
"0.7068723",
"0.70615894",
"0.70419246",
"0.7031361",
"0.702462",
"0.7023854",
"0.70046806",
"0.69843876",
"0.6977996",
"0.69640553",
"0.694271... | 0.0 | -1 |
Calculate the unioned number of nodes across all graph files. Returns np.array Sorted array of unioned nodes. | def jjhR(YKHO):
return oyIN.sort(Pusg(oyIN.union1d, [yvY1.nodes for yvY1 in YKHO.nx_graphs])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b65I(eQUr: np.ndarray) -> float:\n ywwl = len(eQUr)\n iQSh = WBdH(eQUr, return_labels=False)\n return 1 - (iQSh - 1) / (ywwl - 1)",
"def XKHI(SOvZ):\n k9lP = rLdf.read_csv(SOvZ, header=0, sep='\\t')\n k9lP.set_index('#OTU ID', inplace=True)\n k9lP.index = k9lP.index.str.replace('.', '')\n ... | [
"0.6337302",
"0.6084955",
"0.605147",
"0.6004066",
"0.60039634",
"0.59080565",
"0.58186305",
"0.57983416",
"0.5786561",
"0.5778355",
"0.57690054",
"0.5749644",
"0.5744685",
"0.5729547",
"0.57154006",
"0.570252",
"0.5692022",
"0.56712425",
"0.5670575",
"0.5659084",
"0.56251365... | 0.6000267 | 5 |
Ensure that all networkx graphs have the same number of nodes. Returns None | def DJeB(YKHO):
for pNZh in YKHO.nx_graphs:
pNZh.add_nodes_from(YKHO.vertices) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gR1m():\n Oa1e = O5on()\n PCpl = Oa1e.network_size(n1=1)\n assert len(PCpl) == len(Oa1e.nodes())",
"def OtzW(YKHO):\n return len(list(YKHO.graph.nodes()))",
"def OtzW(YKHO) -> int:\n pass",
"def OtzW(YKHO):\n return YKHO.graph.number_of_nodes()",
"def OtzW(YKHO):\n return len(YKHO.... | [
"0.6885442",
"0.6825389",
"0.6705318",
"0.6599933",
"0.6597002",
"0.65842676",
"0.6494039",
"0.6484399",
"0.64673334",
"0.6461319",
"0.64487046",
"0.6444122",
"0.64284074",
"0.64158183",
"0.6405313",
"0.64049375",
"0.6401576",
"0.6366844",
"0.63655996",
"0.6352908",
"0.634239... | 0.0 | -1 |
Returns the config object | def tgzD(pmON):
GPtr = enR0.ConfigParser()
GPtr.read(pmON)
return GPtr | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Dhbr(YKHO):\n return YKHO.config",
"def tgzD():\n return PSrQ()",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def wLv7(YKHO):\n return YKHO.__config",
"def tgzD(YKHO):\n return YKHO.config",
"d... | [
"0.9307554",
"0.8798383",
"0.87679994",
"0.87679994",
"0.87679994",
"0.87679994",
"0.87574697",
"0.87261516",
"0.87261516",
"0.87261516",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.8712044",
"0.87120... | 0.0 | -1 |
Return the formal representation of this C{ParseError}. | def wHJl(YKHO):
if YKHO._linenum is None:
return '<ParseError on line %d' % YKHO._offset
else:
return '<ParseError on line %d>' % (YKHO._linenum + YKHO._offset) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n if YKHO.token_type == hDhk.EOL:\n return '{}\\n'.format(YKHO.token_type.name)\n if YKHO.token_type == hDhk.EOF:\n return '{}'.format(YKHO.token_type.name)\n yvT9 = \"{} '{}'\".format(YKHO.token_type.name, YKHO.lexeme)\n if YKHO.literal is not None:\n yvT9 += ' val... | [
"0.62902033",
"0.61916035",
"0.596541",
"0.59329367",
"0.58915293",
"0.58581704",
"0.5813178",
"0.57743114",
"0.57356906",
"0.57138973",
"0.5698199",
"0.56977046",
"0.5670048",
"0.5668739",
"0.56655407",
"0.56629574",
"0.5643675",
"0.5638169",
"0.56196505",
"0.5608227",
"0.56... | 0.6184611 | 2 |
Test that invalid issues cannot be created, in this case with insufficient information | def ej_o(YKHO):
XP5J = KG2U.objects.all()
geh0 = YKHO.c.post('/issue/' + str(XP5J[0].id), {'severity': ''})
YKHO.assertEquals(geh0.data, {'severity': ['A valid integer is required.']}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AWEt(YKHO):\n geh0 = YKHO.c.post('/issue/32', {'severity': '1', 'description': 'Invalid', 'property_id': '32'})\n YKHO.assertEqual(geh0.data['detail'], 'Not found.')",
"def Jhma(YKHO):\n RAdv = {'description': 'example description'}\n g3Hn = {'summary': 'example summary'}\n YKHO.assertRaises(K... | [
"0.74919796",
"0.6635778",
"0.6600109",
"0.653858",
"0.6532011",
"0.6524809",
"0.65170485",
"0.64998996",
"0.6499059",
"0.64340115",
"0.6418257",
"0.64046186",
"0.6400066",
"0.6397368",
"0.63964576",
"0.63905597",
"0.63890547",
"0.63819224",
"0.6374159",
"0.6369268",
"0.6352"... | 0.774869 | 0 |
Test that invalid issues cannot be created, in this case with an invalid property id | def AWEt(YKHO):
geh0 = YKHO.c.post('/issue/32', {'severity': '1', 'description': 'Invalid', 'property_id': '32'})
YKHO.assertEqual(geh0.data['detail'], 'Not found.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ej_o(YKHO):\n XP5J = KG2U.objects.all()\n geh0 = YKHO.c.post('/issue/' + str(XP5J[0].id), {'severity': ''})\n YKHO.assertEquals(geh0.data, {'severity': ['A valid integer is required.']})",
"def vyyz(YKHO):\n YKHO.assertEqual(KG2U.objects.count(), 0)\n YKHO.prop_values_one['id'] = 'A' * 16\n ... | [
"0.8322417",
"0.7482195",
"0.7280628",
"0.7063725",
"0.68977845",
"0.68442",
"0.6842022",
"0.68027973",
"0.67788523",
"0.67456585",
"0.67451614",
"0.67450607",
"0.67324126",
"0.67074776",
"0.66943336",
"0.66924953",
"0.66839844",
"0.6674176",
"0.6666036",
"0.6659849",
"0.6646... | 0.84395 | 0 |
Test that issues cann't be retrieved from a non existent property | def EcDY(YKHO):
geh0 = YKHO.c.get('/issues/666')
YKHO.assertEquals(geh0.status_code, jGRS.HTTP_404_NOT_FOUND) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hc8T(YKHO):\n YKHO.assertIsNone(YKHO.config.get(key='NOPE'))",
"def QI6v(YKHO):\n with trZe.raises(Exception, 'Value not found for key'):\n a11a(directory=YKHO.directory, locale='en_US').get(YKHO, 'notfoundkey')",
"def GPoV(YKHO):\n YKHO.assertRaises(yXsM, setattr, YKHO.launchpad, 'foo', 'b... | [
"0.766101",
"0.76237243",
"0.718841",
"0.71274376",
"0.70910645",
"0.70784986",
"0.70552593",
"0.7042479",
"0.7035823",
"0.7034684",
"0.69914776",
"0.69035983",
"0.6879756",
"0.68699944",
"0.6846833",
"0.6828903",
"0.67834926",
"0.67580205",
"0.675173",
"0.6700354",
"0.669399... | 0.7029815 | 10 |
Extracts an unvalidated JSON web token from the given "Authorization" header value. | def Xlcv(YKHO, WBPg):
SQ3m = WBPg.split()
if len(SQ3m) == 0:
return None
if SQ3m[0].decode(W4pB) != 'Server':
raise BZnW(bGrB('Authorization not from server'), code='bad_authorization_header')
if len(SQ3m) != 2:
raise BZnW(bGrB('Authorization header must contain two space-delimit... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V6Jx():\n H2rA = QePW.headers.get('Authorization')\n if not H2rA or 'Bearer' not in H2rA:\n return pz3A({'error': 'Bad authorization header', 'status': 400})\n eOtH = H2rA.split(' ')[1]\n return eOtH",
"def BbzP(em58: str) -> cuzp[str, ImMB]:\n em58 = em58 if len(em58.split()) < 2 else ... | [
"0.83102256",
"0.7711232",
"0.7636499",
"0.7481554",
"0.7475036",
"0.74734527",
"0.74395996",
"0.74347377",
"0.74257046",
"0.74157715",
"0.74073046",
"0.7394523",
"0.7394523",
"0.7394523",
"0.7293097",
"0.72210866",
"0.72197133",
"0.72159374",
"0.72147673",
"0.7198333",
"0.71... | 0.7691174 | 2 |
Sets up the muted role. | async def muterole(YKHO, OaeV, LmAn: discord.Role=None):
if LmAn is None:
if await YKHO.db.find_one({'_id': 'muterole'}) is not None:
if OaeV.guild.get_role((await YKHO.db.find_one({'_id': 'muterole'}))[str(OaeV.guild.id)]) != None:
return await OaeV.send(embed=ZOrr.Embed(title='... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def mute_setup(YKHO, OaeV):\n jtyf = ''\n V70B = ''\n lSCo = OaeV.guild\n if 'Muted' not in lSCo.roles:\n await lSCo.create_role(name='Muted', reason='Automatically created for muting.', permissions=ZOrr.Permissions(send_messages=False))\n cIGi = ZOrr.utils.get(lSCo.roles, name='Muted')... | [
"0.762315",
"0.7172284",
"0.70691645",
"0.6946613",
"0.69426966",
"0.69347054",
"0.69093823",
"0.68091637",
"0.6758404",
"0.67018044",
"0.66966605",
"0.66892916",
"0.66724956",
"0.6670452",
"0.66339356",
"0.66304255",
"0.66012067",
"0.65971977",
"0.6582241",
"0.65795815",
"0.... | 0.695991 | 3 |
Warns the specified member. | async def warn(YKHO, OaeV, mS46: discord.Member=None, *, lo9Y=None):
if mS46 == None:
return await OaeV.send_help(OaeV.command)
if lo9Y != None:
if not lo9Y.endswith('.'):
lo9Y = lo9Y + '.'
RhGk = await YKHO.get_case()
tO9_ = f'You have been warned in {OaeV.guild.name}' + (f'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def add_(YKHO, OaeV: commands.Context, mS46: MemberOrID, *, lo9Y: CannedStr) -> None:\n if cofT(mS46, await YKHO.bot.db.get_guild_config(OaeV.guild.id))[0] >= cofT(OaeV.author, await YKHO.bot.db.get_guild_config(OaeV.guild.id))[0]:\n await OaeV.send('User has insufficient permissions')\n else:\n... | [
"0.6091666",
"0.59739166",
"0.59492666",
"0.59442174",
"0.59281594",
"0.59194833",
"0.58763087",
"0.58745944",
"0.58513856",
"0.58475536",
"0.58228177",
"0.5796268",
"0.57754326",
"0.57140833",
"0.5660698",
"0.56572133",
"0.56467706",
"0.5626556",
"0.56122327",
"0.5609704",
"... | 0.5961285 | 2 |
API route to retrieve user data | def eG1L(QePW, NtEF):
try:
CBIr = mv1M.objects.get(username=NtEF)
ftJt = mv1M.objects.get(username=QePW.user.username)
except mv1M.DoesNotExist:
return jnRN({'error': f'User {NtEF} does not exist.'}, status=402)
if QePW.method == 'PUT':
nPrm = qQXR.loads(QePW.body)
if... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Xlg4(QePW):\n return oGir(KacQ())",
"def HxkP():\n return h4Rr()",
"def NMoC(YKHO, QePW):\n ZMzz = hq_r(QePW.user)\n return oGir(ZMzz.data)",
"def CBIr(YKHO):\n return YKHO.make_request('user', method='GET')",
"def NMoC(YKHO, QePW):\n try:\n nPrm = QePW.data\n nPrm['user... | [
"0.80671364",
"0.80058974",
"0.78600633",
"0.7659618",
"0.75483876",
"0.7488316",
"0.7487658",
"0.7486985",
"0.73953825",
"0.73937637",
"0.73932886",
"0.732738",
"0.7314412",
"0.73074645",
"0.7301938",
"0.730031",
"0.7296346",
"0.7261444",
"0.72501576",
"0.7236358",
"0.722938... | 0.0 | -1 |
Return access_key of your app | def NBJ2():
return PNq_.get('HTTP_ACCESSKEY', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MYjm(YKHO) -> str:\n return YKHO._data.get('access_key', 'A123LOBOTOMY')",
"def MYjm(YKHO):\n return YKHO.credentials.access_key",
"def V2fd(YKHO) -> str:\n return YKHO._api.app_key",
"def MYjm(YKHO) -> str:\n return qe4Y.get(YKHO, 'access_key')",
"def MYjm(YKHO) -> str:\n return qe4Y.ge... | [
"0.80614775",
"0.8008249",
"0.79450715",
"0.79389995",
"0.79389995",
"0.79389995",
"0.79389995",
"0.78866214",
"0.78804",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
"0.76324993",
... | 0.8290006 | 0 |
Return secret_key of your app | def lpZ1():
return PNq_.get('HTTP_SECRETKEY', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QDug():\n return wk5E.config['SECRET_KEY'].encode('utf-8')",
"def QDug(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_key')",
"def QDug(YKHO) -> str:\n return qe4Y.get(YKHO, 'secret_key')",
"def NHEw():\n print(P4t4.config['SECRET_KEY'])",
"def QDug(YKHO) -> h8nf[str]:\n return N4yN.get('... | [
"0.87714064",
"0.818025",
"0.818025",
"0.7970624",
"0.7966325",
"0.7953914",
"0.7912279",
"0.78685075",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.78554684",
"0.7... | 0.8332542 | 1 |
Reset every host in the pool to an "alive" state. | def LSOg(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSOg(YKHO):\n for KCHu in YKHO.servers:\n KCHu.dead_until = 0",
"def yCHf(Emd4):\n Emd4.ghosts = []",
"def SiRx(YKHO):\n G9jH.info('clearing state')\n YKHO.nodemap_lock.acquire()\n YKHO.nodemap.clear()\n for N5z6 in YKHO.nodecounts:\n UHFx = YKHO.nodecounts[N5z6]\n if... | [
"0.6563788",
"0.6427471",
"0.64124346",
"0.62734383",
"0.62123156",
"0.61881477",
"0.61734504",
"0.6130064",
"0.61032426",
"0.6073329",
"0.60696405",
"0.6063695",
"0.6029804",
"0.59179735",
"0.59179735",
"0.59179735",
"0.59179735",
"0.58942693",
"0.58942354",
"0.58746547",
"0... | 0.6269486 | 4 |
Reset every host in the pool to an "alive" state. | def LSOg(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LSOg(YKHO):\n for KCHu in YKHO.servers:\n KCHu.dead_until = 0",
"def yCHf(Emd4):\n Emd4.ghosts = []",
"def SiRx(YKHO):\n G9jH.info('clearing state')\n YKHO.nodemap_lock.acquire()\n YKHO.nodemap.clear()\n for N5z6 in YKHO.nodecounts:\n UHFx = YKHO.nodecounts[N5z6]\n if... | [
"0.6563788",
"0.6427471",
"0.64124346",
"0.62734383",
"0.62123156",
"0.61881477",
"0.61734504",
"0.6130064",
"0.61032426",
"0.6073329",
"0.60696405",
"0.6063695",
"0.6029804",
"0.59179735",
"0.59179735",
"0.59179735",
"0.59179735",
"0.58942693",
"0.58942354",
"0.58746547",
"0... | 0.6269486 | 5 |
Like L{incr}, but decrements. Unlike L{incr}, underflow is checked and new values are capped at 0. If server value is 1, a decrement of 2 returns 0, not 1. | def uBrU(YKHO, H5ew, RA_F=1):
return YKHO._incrdecr('decr', H5ew, RA_F) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRpo(YKHO):\n with YKHO.lock:\n YKHO.val.value -= 1\n YKHO.decval.value += 1",
"def TRpo(YKHO, RddF):\n return YKHO.increment(-RddF)",
"def UYa6(YKHO) -> int:\n with YKHO._lock:\n YKHO._value -= 1\n return YKHO._value",
"async def decr(YKHO, w2B8: Connection, H5ew: by... | [
"0.7363405",
"0.71744555",
"0.69485116",
"0.6725234",
"0.6622937",
"0.6622238",
"0.6573335",
"0.6573335",
"0.6573335",
"0.6550187",
"0.6548604",
"0.65176445",
"0.65063006",
"0.6457307",
"0.64240664",
"0.639535",
"0.6343367",
"0.62497926",
"0.62100166",
"0.61565006",
"0.613362... | 0.61454195 | 20 |
Returns the leading numeric part of a string. >>> numeric_part("20alpha") 20 >>> numeric_part("foo") >>> numeric_part("16b") 16 | def uAc9(KCHu):
r8hN = LAHl.match(KCHu)
if r8hN:
return int(r8hN.group(1))
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ekab(KCHu):\n sdCG = KCHu.rstrip('0123456789')\n J3uN = KCHu[len(sdCG):]\n return int(J3uN)",
"def cNYj(vIwR):\n if vIwR is None or vIwR == '':\n return ''\n list = vIwR.split()\n S06t = []\n for GIN8 in list:\n if 'mm' in GIN8 or 'cm' in GIN8:\n continue\n ... | [
"0.64194345",
"0.61010164",
"0.5907187",
"0.5890078",
"0.5737133",
"0.5708304",
"0.5682527",
"0.5625833",
"0.5585388",
"0.5579542",
"0.54802185",
"0.54794884",
"0.5477794",
"0.546101",
"0.543281",
"0.5419926",
"0.5361257",
"0.53426003",
"0.53270304",
"0.53257835",
"0.5306923"... | 0.7537428 | 0 |
Convert something into a SQL string literal. If using MySQL3.23 or newer, string_literal() is a method of the _mysql.MYSQL object, and this function will be overridden with that method when the connection is created. | def GTAa(z1Rg, Csk6):
return BJ5x(z1Rg, Csk6) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AG_8(WKvO):\n return \"'%s'\" % WKvO.replace(\"'\", \"''\")",
"def U1JU(jQS2, WSSG, VMpJ, *, J2_b=None):\n dsE5 = False\n if J2_b is None:\n gQ7v = WSSG == '\"'\n J2_b = not gQ7v\n try:\n wEf2 = jQS2.isoformat()\n fX2f = WSSG + wEf2 + WSSG\n except AttributeError:\n... | [
"0.6601026",
"0.639708",
"0.6358654",
"0.6298317",
"0.6296589",
"0.62697625",
"0.62653494",
"0.6208752",
"0.6182608",
"0.6178052",
"0.61632085",
"0.612384",
"0.6111377",
"0.60635316",
"0.6059921",
"0.6041493",
"0.601989",
"0.5995305",
"0.5975676",
"0.59277284",
"0.5888373",
... | 0.5997817 | 17 |
Convert an Instance to a string representation. If the __str__() method produces acceptable output, then you don't need to add the class to conversions; it will be handled by the default converter. If the exact class is not found in d, it will use the first class it can find for which o is an instance. | def k80e(z1Rg, Csk6):
if Csk6.has_key(z1Rg.__class__):
return Csk6[z1Rg.__class__](z1Rg, Csk6)
CQwJ = filter(lambda WKvO, z1Rg=z1Rg: type(WKvO) is SnBA.ClassType and isinstance(z1Rg, WKvO), Csk6.keys())
if not CQwJ and hasattr(SnBA, 'ObjectType'):
CQwJ = filter(lambda WKvO, z1Rg=z1Rg: type(W... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTzM(YKHO, KAOR):\n raise NotImplementedError",
"def zAg0(YKHO):\n return '<{} instance>'.format(type(YKHO).__name__)",
"def zAg0(YKHO) -> str:\n return lSJJ(YKHO)",
"def zAg0(YKHO):\n return super().__str__() + ': value {!r} is an instance of {} but should be an instance of: {}'.format(YKHO.... | [
"0.6934568",
"0.678126",
"0.63683873",
"0.6250395",
"0.619949",
"0.6196456",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0.6183354",
"0... | 0.7389508 | 0 |
Returns the logged in renren user, or None if unconnected. | def c5ow(YKHO):
if not hasattr(YKHO, '_current_user'):
YKHO._current_user = None
uJjO = aWga(YKHO.get_secure_cookie('renren_user'))
if uJjO:
G9jH.info('renren_user in cookie is: %s', uJjO)
YKHO._current_user = mv1M.get(uJjO)
return YKHO._current_user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QJes(YKHO):\n PObu = YKHO.getLoginUID()\n return YKHO._getUser(PObu)",
"def jF0d(YKHO):\n return CnSx.session.get(BGO4)",
"def TKWP():\n MgeT = cHms()\n if MgeT not in JC5i:\n return None\n return JC5i[MgeT]",
"def c5ow(YKHO):\n m6Me = YKHO.get_str_cookie('username')\n if m... | [
"0.752153",
"0.7448146",
"0.7444841",
"0.7438096",
"0.7401043",
"0.7392774",
"0.73842984",
"0.734666",
"0.7342086",
"0.73190004",
"0.7296643",
"0.7263791",
"0.72550344",
"0.72532153",
"0.7175492",
"0.7157024",
"0.71271414",
"0.7110573",
"0.70795363",
"0.7059494",
"0.7023521",... | 0.7459219 | 1 |
returns a copy of the container | def i3ak(YKHO) -> 'AsyncContextContainer':
return g8OE(YKHO, context_types=YKHO._context_types, context_singletons=YKHO._context_singletons, log_undefined_deps=YKHO._undefined_logger) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kYn4(YKHO):\n return YKHO",
"def jth9(YKHO):\n return YKHO[:]",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n return AkZY.deepcopy(YKHO)",
"def jth9(YKHO):\n return jth9.deepcopy(YKHO)",
"def jth9(YKHO):\n ret... | [
"0.8734836",
"0.76992995",
"0.76311123",
"0.76311123",
"0.75615686",
"0.75504494",
"0.75504494",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",
"0.75376374",... | 0.0 | -1 |
Transpose each matrix in a stack of matrices. Unlike np.transpose, this only swaps the last two axes, rather than all of them | def l7uB(jzdc):
return kp_e(jzdc, -1, -2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(YKHO):\n Q9wQ = [[0] * 4 for bGrB in range(4)]\n for YRbF in range(4):\n for r845 in range(4):\n Q9wQ[YRbF][r845] = YKHO.matrix[r845][YRbF]\n YKHO.matrix = Q9wQ",
"def l7uB(E3D9):\n return zip(*[zip(*a1PO) for a1PO in zip(*E3D9)])",
"def Ck9Z(k0lF):\n ywwl, E3D9 = hv8s... | [
"0.7030766",
"0.7030477",
"0.6972228",
"0.69386935",
"0.6934842",
"0.69140553",
"0.6865601",
"0.6849804",
"0.6842253",
"0.68019253",
"0.6786365",
"0.6779035",
"0.66995347",
"0.6680248",
"0.6680248",
"0.66796625",
"0.66766924",
"0.66756636",
"0.66712314",
"0.6669916",
"0.66521... | 0.6760522 | 12 |
return the complelement sequence. | def wx1e(Q6uT, Mx95='DNA'):
Qcax = ''
for P8oC in reversed(Q6uT):
Qcax += r4I8(P8oC, material=Mx95)
return Qcax | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eDCr(YKHO):\n zsAc = []\n for YRbF in YKHO.seq:\n zsAc.append(YKHO.complements[YRbF])\n return zsAc",
"def dLKy(YKHO, Q6uT):\n Q6uT = Q6uT.upper()\n PHwL = Q6uT[::-1]\n _Aja = ''.join([YKHO.compliment[WKvO] for WKvO in PHwL])\n return _Aja",
"def NmWg(YKHO) -> RnTg.util.bytesear... | [
"0.6835172",
"0.67236096",
"0.67115027",
"0.6528963",
"0.648149",
"0.64770174",
"0.6361418",
"0.635175",
"0.6339648",
"0.6339648",
"0.6339648",
"0.6339648",
"0.6311462",
"0.6308269",
"0.6301337",
"0.6299096",
"0.6299096",
"0.6284918",
"0.626387",
"0.62438065",
"0.6236192",
... | 0.0 | -1 |
Show a user's profile. | def tTee(uJjO):
CBIr = ud_Z.find_active_user(uJjO, include_avatar=True)
if CBIr is None:
eTsH(404)
htxP = x63D.get_badges_awarded_to_user(CBIr.id)
kFZ2 = _iCh.find_orga_team_for_user_and_party(CBIr.id, Oa1e.party_id)
cJe3 = RtCT.find_tickets_used_by_user(CBIr.id, Oa1e.party_id)
lPV3 = [a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YxIp():\n CBIr = mv1M.query.get_or_404(Oa1e.user.id)\n return TvZl('/user/profile.html', user=CBIr)",
"def QyAW():\n return TvZl('user_profile_page.html')",
"def OfdD(uJjO):\n z39Z = mv1M.query.get(uJjO)\n c9ua = z39Z.first_name\n zp3f = z39Z.last_name\n qwnb = z39Z.image_url\n lIhF... | [
"0.85119116",
"0.843339",
"0.8356638",
"0.82915235",
"0.82573754",
"0.8206209",
"0.8146977",
"0.8103624",
"0.8085544",
"0.8078461",
"0.8073714",
"0.8015151",
"0.79828274",
"0.7968716",
"0.79516274",
"0.795119",
"0.7934166",
"0.79161334",
"0.7899062",
"0.78504974",
"0.7848161"... | 0.0 | -1 |
Function to create a dataframe with given column names and list of lists for columns. | def dKUz(A8fR, Gi1I):
WwTo = rLdf.DataFrame(Gi1I, columns=A8fR)
WwTo.sort_values(by=['File'], inplace=True)
return WwTo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MSvY(UHhk, jpg8=True):\n Euml = UHhk[:]\n MOPg = None\n if jpg8:\n MOPg = Euml.pop(0)\n jQ3Z = rLdf.DataFrame(Euml, columns=MOPg)\n return jQ3Z",
"def vST6(OlsH=None):\n HN6s = 48\n jQ3Z = rLdf.DataFrame(index=oyIN.arange(HN6s))\n if OlsH is None:\n OlsH = []\n for fv... | [
"0.75789773",
"0.72011626",
"0.71190417",
"0.69052786",
"0.6804118",
"0.67862827",
"0.67758775",
"0.64743584",
"0.6423973",
"0.63513553",
"0.6297976",
"0.6282036",
"0.62553555",
"0.6254645",
"0.6252502",
"0.6236071",
"0.62194824",
"0.6175449",
"0.61153513",
"0.5966344",
"0.59... | 0.6713555 | 7 |
Function to rearrange folders as per the requirements of tensorflow keras. | def Lgqt(bUyW, nGlJ, urr6):
tN6u = tuKI.sample(nGlJ, 82)
ZLkO = tuKI.sample(urr6, 124)
_mtH = set(nGlJ) - set(tN6u)
zkfM = set(urr6) - set(ZLkO)
uszS = bUyW.loc[bUyW['Label'] == '0']
wEsz = bUyW.loc[bUyW['Label'] == '1']
JZXy = 'assets/becode-signature-object-detection/train'
ljjL = 'ass... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w272(xtX7):\n s9QV = HHIE(xtX7)\n ukjG = []\n for YRbF, UH90 in enumerate(s9QV):\n qtQv = UH90.split('_')[-1]\n Dokz = kHmP.fill(qtQv, YRbF)\n ukjG.append(Dokz)\n RDuA.move(GkAb(xtX7, UH90), GkAb(xtX7, Dokz))\n return (s9QV, ukjG)",
"def UQdu():\n if not ZylS.gfile.... | [
"0.6177027",
"0.6051578",
"0.6051578",
"0.604515",
"0.5975043",
"0.5958899",
"0.5942307",
"0.59303164",
"0.5926912",
"0.59151536",
"0.59151536",
"0.58885515",
"0.5875221",
"0.5870886",
"0.58408976",
"0.58053005",
"0.5773948",
"0.5771289",
"0.57068527",
"0.57051116",
"0.570248... | 0.5394655 | 58 |
Find all files beneath path with file name suffix. Note that a path may contain further subdirectories and those subdirectories may also contain further subdirectories. There are no limit to the depth of the subdirectories can be. | def A99F(ZI14, pmON):
if not Hy7s.path.isdir(pmON):
return 'Not a valid path'
if not ZI14 or len(ZI14) <= 0:
return 'Not a valid suffix'
rt49 = Hy7s.listdir(pmON)
RRlC = []
for nUeQ in rt49:
Zg0d = Hy7s.path.join(pmON, nUeQ)
if Hy7s.path.isdir(Zg0d):
RRlC.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(ZI14, pmON):\n Zg0d = gzes(Odyn, pmON)\n if vtfo(Zg0d) == False:\n return []\n MXwC = []\n\n def uaUC(acAb):\n if EFYe(acAb) == True:\n if acAb.endswith(ZI14) == True:\n MXwC.append(PsRC(acAb, Odyn))\n else:\n for S3Wb in U9eF(acAb):\n ... | [
"0.8309915",
"0.8207053",
"0.8193337",
"0.81497216",
"0.81353307",
"0.81295544",
"0.812918",
"0.81277746",
"0.8086599",
"0.80591226",
"0.8047838",
"0.8032941",
"0.80285066",
"0.799247",
"0.7990868",
"0.79881054",
"0.79767424",
"0.79241836",
"0.7900404",
"0.78234273",
"0.77851... | 0.81825304 | 3 |
Convert LeakyReLU activation layer | def IAoW(Q6kx, NArs, fhcK, AwDt):
if len(Q6kx.input) != 1:
assert AttributeError('More than 1 input for an activation layer.')
sGjG = EQ5T(fhcK[Q6kx.input[0]])
c2ow = bdPE.layers.LeakyReLU(alpha=NArs['alpha'], name=AwDt)
fhcK[AwDt] = c2ow(sGjG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qUJm(YDYE):\n u_ln = {'ReLU': U78l.ReLU, 'LeakyReLU': U78l.LeakyReLU}[YDYE]\n if YDYE == 'LeakyReLU':\n u_ln = YLnl(u_ln, negative_slope=0.1)\n return u_ln(inplace=True)",
"def ra_o(YKHO, WKvO, Cwt5=0.2):\n return ZylS.maximum(Cwt5 * WKvO, WKvO)",
"def zMt_(input):\n CkYf = GVKG(axis=... | [
"0.7192848",
"0.7146807",
"0.71269",
"0.71269",
"0.71269",
"0.71136343",
"0.70872337",
"0.70762515",
"0.7048577",
"0.70122534",
"0.6973632",
"0.69735366",
"0.6924126",
"0.68951887",
"0.6890316",
"0.68443215",
"0.68351597",
"0.68265414",
"0.6805505",
"0.67881066",
"0.6763102",... | 0.7474679 | 0 |
Convert SELU activation layer | def K737(Q6kx, NArs, fhcK, AwDt):
if len(Q6kx.input) != 1:
assert AttributeError('More than 1 input for an activation layer.')
sGjG = EQ5T(fhcK[Q6kx.input[0]])
DFqp = bdPE.layers.Activation('selu', name=AwDt)
fhcK[AwDt] = DFqp(sGjG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DFqp(WKvO):\n Cwt5 = 1.6732632423543772\n NXpY = 1.0507009873554805\n return NXpY * ZylS.contrib.keras.activations.elu(WKvO, Cwt5)",
"def DFqp(WKvO):\n Cwt5 = 1.6732632423543772\n NXpY = 1.0507009873554805\n return NXpY * ZylS.contrib.keras.activations.elu(WKvO, Cwt5)",
"def eG8h(bySB):\n... | [
"0.6952603",
"0.6952603",
"0.63620865",
"0.63520575",
"0.63052934",
"0.6250831",
"0.6225541",
"0.620678",
"0.6188356",
"0.61754847",
"0.6162107",
"0.61319643",
"0.6129891",
"0.61190885",
"0.6110813",
"0.6100767",
"0.6092007",
"0.60830843",
"0.6076792",
"0.60185426",
"0.601028... | 0.7496672 | 0 |
Convert softmax activation layer | def texz(Q6kx, NArs, fhcK, AwDt):
if len(Q6kx.input) != 1:
assert AttributeError('More than 1 input for an activation layer.')
sGjG = EQ5T(fhcK[Q6kx.input[0]])
N93T = bdPE.layers.Activation('softmax', name=AwDt)
fhcK[AwDt] = N93T(sGjG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(zKTd):\n return zKTd / (XTiz.sum(zKTd) + 1e-06)",
"def N93T(KeL5, jDK_=-1, mWFP=None, **B2fa):\n return NhUL.softmax(KeL5, axis=jDK_, name=mWFP, **B2fa)",
"def IJ17(WKvO):\n JvQp = ht2j.max(WKvO, 1, keepdim=True)[0]\n yRgo = ht2j.exp(WKvO - JvQp)\n hZBe = ht2j.sum(yRgo, 1, keepdim=True)... | [
"0.73715115",
"0.73468673",
"0.73114055",
"0.72748345",
"0.71987456",
"0.7107719",
"0.70987684",
"0.7095535",
"0.7093729",
"0.7085509",
"0.70797753",
"0.70626414",
"0.70580214",
"0.70460576",
"0.7018498",
"0.6977931",
"0.69538814",
"0.69477975",
"0.6947221",
"0.6943421",
"0.6... | 0.76771677 | 0 |
Test that new user registration and log in is successful | def Td84(YKHO):
CBIr = {'username': 'test', 'email': 'email@email.com', 'password': 'password', 'password_again': 'password'}
geh0 = YKHO.client.post('/api/v1/auth/register', data=qQXR.dumps(CBIr), content_type='application/json')
YKHO.assertEqual(geh0.status_code, 201)
geh0 = YKHO.client.post('/api/v1/... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def U4gI(YKHO):\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.users.sign_up('userN', 'myPassword', 'myPassword', 'userN@gmail.com'))\n YKHO.assertEqual(FYrf.SUCCESS, YKHO.users.login('userN', 'myPassword'))",
"def cCBn(YKHO):\n print(tq_1.currentframe().f_code.co_name)\n geh0 = YKHO.c.post('/user_app/login',... | [
"0.84486204",
"0.83381814",
"0.8318924",
"0.83110535",
"0.8211142",
"0.82085806",
"0.8203119",
"0.81740457",
"0.8171523",
"0.81403744",
"0.81400466",
"0.8075833",
"0.8060116",
"0.80589277",
"0.80495",
"0.8043603",
"0.80369335",
"0.79992926",
"0.79924166",
"0.79877096",
"0.798... | 0.8547681 | 0 |
Displays the data from the dataframe, certain number of rows at a time, until the user stops the display of data. | def wsM1(jQ3Z, FZx9):
T61m = len(jQ3Z.index)
SuFY = ''
NUEI = 0
QZHG = FZx9
print('Displaying ' + str(FZx9) + ' rows of data at a time from the data file:\n')
while SuFY.lower() != 'quit':
if QZHG > T61m:
QZHG = T61m
print(jQ3Z[NUEI:QZHG])
NUEI = QZHG
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def voXz(jQ3Z):\n DR2N = 0\n while True:\n W8mS = input('Disply 5 rows of data ? Enter yes or no ')\n if W8mS.lower() == 'yes':\n print(jQ3Z.iloc[DR2N:DR2N + 5])\n DR2N += 5\n else:\n break",
"def wsM1(jQ3Z):\n xv4v = 0\n KIf6 = 5\n g7q1 = inpu... | [
"0.75926536",
"0.7587867",
"0.75814414",
"0.7548286",
"0.7445234",
"0.7416557",
"0.7415606",
"0.74068576",
"0.7385603",
"0.7383094",
"0.7367251",
"0.73376465",
"0.7321645",
"0.7291532",
"0.72670954",
"0.7265326",
"0.72534883",
"0.71622336",
"0.7134244",
"0.7110083",
"0.703711... | 0.78526336 | 0 |
Displays statistics on the most frequent times of travel. | def dWJR(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Frequent Times of Travel...\n')
SWox = ITS7.time()
if x0eS.title() != 'All':
sve5 = x0eS.title()
Ol8d = 'Specified month is: ' + sve5 + '\n'
StUT = jQ3Z.loc[jQ3Z.month == a6S9[x0eS.title()], 'day-of-week'].mode()[0]
Ol... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i... | [
"0.79996175",
"0.7920857",
"0.7891767",
"0.78612196",
"0.785926",
"0.7838814",
"0.779974",
"0.77848285",
"0.7735119",
"0.7723049",
"0.771342",
"0.7708436",
"0.770453",
"0.77017164",
"0.7689714",
"0.7685842",
"0.7680146",
"0.76788265",
"0.76721054",
"0.7661351",
"0.7660023",
... | 0.0 | -1 |
Displays statistics on the most popular stations and trip. | def Huc_(jQ3Z, x0eS, CjKC):
print('\nCalculating The Most Popular Stations and Trip...\n')
SWox = ITS7.time()
if x0eS.title() != 'All':
if CjKC.title() == 'All':
_8rG = jQ3Z.loc[jQ3Z.month == a6S9[x0eS.title()], 'Start Station'].mode()[0]
Ol8d = 'Popular start station among a... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)",
"def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ... | [
"0.76664937",
"0.76271904",
"0.76108116",
"0.75858396",
"0.75767946",
"0.7567278",
"0.7558413",
"0.7538156",
"0.75297517",
"0.7503056",
"0.7499961",
"0.74967057",
"0.7487728",
"0.7484119",
"0.7475753",
"0.7473595",
"0.74375546",
"0.7436976",
"0.7433463",
"0.7428539",
"0.74269... | 0.0 | -1 |
Displays statistics on the total and average trip duration. | def kDMA(jQ3Z, x0eS, CjKC):
print('\nCalculating Trip Duration...\n')
SWox = ITS7.time()
if x0eS.title() != 'All':
if CjKC.title() == 'All':
h4cM = len(jQ3Z.loc[jQ3Z.month == a6S9[x0eS.title()]])
Ol8d = 'Total number of trips in all the days of the specified month is: ' + str... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ... | [
"0.8251978",
"0.81471264",
"0.80965656",
"0.80127156",
"0.7987783",
"0.79834235",
"0.7978646",
"0.79705906",
"0.7965226",
"0.79636025",
"0.79616374",
"0.79614663",
"0.79523134",
"0.7948989",
"0.79445267",
"0.7937707",
"0.7923821",
"0.792045",
"0.79198813",
"0.7918623",
"0.791... | 0.0 | -1 |
Read the value of the characteristic. This is to be fully implemented at the application level | def MFfM(YKHO, xAU6: Dict) -> bytearray:
eHNT = YKHO._service.app.Read
if eHNT is None:
raise NotImplementedError()
return eHNT(YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ueki(YKHO):\n return YKHO.value",
"def Zmkp(YKHO):\n return YKHO.sensor.raw",
"def Ueki(YKHO):\n return YKHO.adc.read()",
"def Ueki(YKHO):\n return YKHO.adc.read()",
"def BWXx(YKHO):\n return YKHO.io.value",
"def BWXx(YKHO):\n return YKHO.io.value",
"def Ueki(YKHO):\n if YKHO.m... | [
"0.7530103",
"0.7133482",
"0.7073057",
"0.7073057",
"0.6923784",
"0.6923784",
"0.6910893",
"0.69093573",
"0.6886021",
"0.68587416",
"0.68582726",
"0.6845474",
"0.6759568",
"0.67561126",
"0.67543876",
"0.6747423",
"0.66985416",
"0.66801953",
"0.6662073",
"0.6658701",
"0.661662... | 0.0 | -1 |
Writes the document as a pickle to the target location. This method is called multiple times from the transform runner. | def NBjn(YKHO, mm0e):
pan_ = YKHO.abspath(mm0e)
_AKB = Hy7s.path.dirname(pan_)
if not Hy7s.path.exists(_AKB):
Hy7s.makedirs(_AKB)
if not Hy7s.path.isdir(_AKB):
raise ValueError('Please supply a directory to write preprocessed data to.')
C13M = list(YKHO.tagging(mm0e))
with open(p... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vXoK(YKHO, C13M):\n ACuK = AvK2.ZipFile(YKHO._fileName, 'r', AvK2.ZIP_DEFLATED)\n MEfr = AvK2.ZipFile(YKHO._fileName + 'tmp', 'w', AvK2.ZIP_DEFLATED)\n for ZfUD in ACuK.infolist():\n NRcB = ACuK.read(ZfUD.filename)\n if ZfUD.filename != C13M.documentID:\n MEfr.writestr(ZfUD, N... | [
"0.70090836",
"0.672421",
"0.6417732",
"0.62290823",
"0.6181399",
"0.6166526",
"0.61646163",
"0.61588013",
"0.6158101",
"0.61572707",
"0.6154222",
"0.610245",
"0.6102279",
"0.6058256",
"0.60525703",
"0.60073334",
"0.5992371",
"0.59691197",
"0.5960648",
"0.59600496",
"0.595782... | 0.62051105 | 4 |
Loads MNIST and preprocesses to combine training and validation data. | def kPcd():
EvQg, QOe9 = ZylS.keras.datasets.mnist.load_data()
ppBc, h4TO = EvQg
Zwka, s8RJ = QOe9
ppBc = oyIN.array(ppBc, dtype=oyIN.float32) / 255
Zwka = oyIN.array(Zwka, dtype=oyIN.float32) / 255
h4TO = oyIN.array(h4TO, dtype=oyIN.int32)
s8RJ = oyIN.array(s8RJ, dtype=oyIN.int32)
asser... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MXzz():\n zRFz = 28\n X3bi = 10\n RRlC = {'X_train': ('train-images-idx3-ubyte.gz', 60000), 'T_train': ('train-labels-idx1-ubyte.gz', 60000), 'X_test': ('t10k-images-idx3-ubyte.gz', 10000), 'T_test': ('t10k-labels-idx1-ubyte.gz', 10000)}\n nPrm = {}\n for UXqs, (mWFP, wK7l) in RRlC.items():\n ... | [
"0.81392884",
"0.80599415",
"0.787275",
"0.77647424",
"0.7663883",
"0.76322424",
"0.7578489",
"0.757088",
"0.7544689",
"0.7530672",
"0.75043267",
"0.74746436",
"0.7442518",
"0.7377964",
"0.73565245",
"0.7333248",
"0.730532",
"0.7295906",
"0.72833395",
"0.7280819",
"0.7279295"... | 0.7274145 | 22 |
Retrieves a set of new submissions that are older than 1 day. | def Bsl5(YKHO):
return YKHO.subreddit.get_hot(limit=None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hduK(YKHO, E3oo):\n cnPP = E3oo\n e3lu = []\n _5RM = YKHO.reddit.subreddit(YKHO.subreddit_name)\n for w213 in _5RM.new(limit=vPBo.submission_limit):\n if E3oo >= int(w213.created):\n continue\n cnPP = max(cnPP, int(w213.created))\n e3lu.append({'subreddit': YKHO.subr... | [
"0.7013276",
"0.61100525",
"0.5926447",
"0.5875703",
"0.57474786",
"0.5720173",
"0.5666611",
"0.566149",
"0.564842",
"0.56242603",
"0.55997014",
"0.5599061",
"0.5563003",
"0.5492633",
"0.54841644",
"0.5478124",
"0.54587394",
"0.54131657",
"0.5411827",
"0.5410548",
"0.5403313"... | 0.57067186 | 6 |
Returns the area of both of the target areas in pixels. | def Cnb1(WD4p: str) -> tuple:
cfbQ = Hy7s.listdir(WD4p)
cfbQ.sort()
assert min([len(eHNT) for eHNT in cfbQ]) > 8, 'not all files in the img_folder are valid.'
ioH_ = [int(eHNT.split('_')[-1].split('.')[0]) for eHNT in cfbQ]
KS0V = min(ioH_)
lpwQ = max(ioH_)
NPEL = int((KS0V + lpwQ) / 2)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f0tD(YKHO):\n return (YKHO.x_max - YKHO.x_min) * (YKHO.y_max - YKHO.y_min)",
"def Y1Xt(YKHO, Q7UY, Gdpj):\n qEJV = oyIN.clip(Gdpj - Q7UY, 0.0, None)\n return qEJV[..., 0] * qEJV[..., 1]",
"def Rqyz(jzdc, Fg_i):\n return float(jzdc) * float(Fg_i)",
"def f0tD(YKHO):\n return YKHO.__width * Y... | [
"0.72541565",
"0.7231458",
"0.714726",
"0.71066976",
"0.7094012",
"0.70700794",
"0.70634526",
"0.70634526",
"0.70634526",
"0.70568657",
"0.70568657",
"0.70551",
"0.70387226",
"0.69896835",
"0.6979803",
"0.6945832",
"0.6945832",
"0.6945832",
"0.6945832",
"0.6945832",
"0.694583... | 0.0 | -1 |
Load the tutorial specified by id from the .json file | def PF97(YKHO, id):
Ux0P = wk5E.config['TUTORIAL_PATH'] + id + '.json'
if pmON.isfile(Ux0P):
with open(Ux0P, 'r') as eHNT:
try:
nPrm = qQXR.load(eHNT)
return nPrm
except:
wk5E.logger.error('Error in JSON-Data')
eTsH(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, id):\n if not y_j6(QePW):\n return eTsH(401)\n return nKSp(id)",
"def UlWi():\n with open('json/course.json') as eHNT:\n YEnM = qQXR.load(eHNT)\n for YRbF in YEnM:\n sDlr[int(YRbF['id'])] = YRbF\n return sDlr",
"def tyeH(nUeQ: TextIO) -> 'Seeding':\n ... | [
"0.64823663",
"0.6187619",
"0.60216945",
"0.59763986",
"0.5911748",
"0.57703805",
"0.57238907",
"0.56996083",
"0.56717294",
"0.56562287",
"0.5621452",
"0.55816466",
"0.55421984",
"0.5538965",
"0.55201954",
"0.54938257",
"0.54635906",
"0.54361886",
"0.54307115",
"0.5428059",
"... | 0.82272136 | 0 |
Helper to create a Variable stored on CPU memory. | def js1U(mWFP, ROpF, MuED):
with ZylS.device('/cpu:0'):
yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32
SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo)
return SRYB | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def js1U(mWFP, ROpF, MuED, XJsN):\n with ZylS.device('/cpu:0'):\n yDqo = ZylS.float32\n SRYB = ZylS.get_variable(mWFP, ROpF, initializer=MuED, dtype=yDqo, trainable=XJsN)\n return SRYB",
"def js1U(mWFP, ROpF, MuED, yDqo):\n with ZylS.device('/cpu:0'):\n SRYB = ZylS.get_variable(mWFP... | [
"0.7053174",
"0.68374807",
"0.68162715",
"0.6711794",
"0.670901",
"0.669595",
"0.6693301",
"0.6679854",
"0.66779804",
"0.6661204",
"0.6656669",
"0.66533124",
"0.66533124",
"0.6645065",
"0.6637938",
"0.6597281",
"0.65675366",
"0.6566952",
"0.6566952",
"0.6555388",
"0.65545285"... | 0.6515185 | 26 |
Helper to create an initialized Variable with weight decay. Note that the Variable is initialized with a truncated normal distribution. A weight decay is added only if one is specified. | def xSbR(mWFP, ROpF, z2bo, TI1B):
yDqo = ZylS.float16 if vPBo.use_fp16 else ZylS.float32
SRYB = js1U(mWFP, ROpF, ZylS.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))
if TI1B is not None:
oNEO = ZylS.mul(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')
ZylS.add_to_collection('losses', ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lJ6q(mWFP, ROpF, z2bo, TI1B):\n yDqo = ZylS.float32\n SRYB = Es0b(mWFP, ROpF, initializer=ZylS.compat.v1.truncated_normal_initializer(stddev=z2bo, dtype=yDqo))\n if TI1B is not None:\n oNEO = ZylS.multiply(ZylS.nn.l2_loss(SRYB), TI1B, name='weight_loss')\n ZylS.compat.v1.add_to_collectio... | [
"0.74686563",
"0.74326473",
"0.7425652",
"0.73640794",
"0.7330969",
"0.7321472",
"0.7321472",
"0.73074436",
"0.7301555",
"0.72860205",
"0.72838944",
"0.72834074",
"0.72795606",
"0.72780496",
"0.7263836",
"0.7260257",
"0.7260257",
"0.7256267",
"0.7245559",
"0.72423375",
"0.724... | 0.7302316 | 8 |
Yields unique elements of iterable I in the order they first appear | def kcwm(pdhd):
YRbF = iter(pdhd)
LVAh = []
while 1:
WKvO = YRbF.next()
if WKvO not in LVAh:
yield WKvO
LVAh.append(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gvve(OxJJ):\n A6b2 = []\n for YRbF in OxJJ:\n if YRbF not in A6b2:\n A6b2.append(YRbF)\n yield YRbF",
"def uLHl(OxJJ):\n return iter(set(OxJJ))",
"def kcwm(OxJJ: typing.Iterable[typing.Any]):\n PwWw = set()\n for ZfUD in OxJJ:\n if ZfUD not in PwWw:\n ... | [
"0.75663555",
"0.7505725",
"0.7401101",
"0.72457945",
"0.72097087",
"0.72094256",
"0.71872693",
"0.717573",
"0.7126963",
"0.7098694",
"0.70656866",
"0.69981825",
"0.699536",
"0.6991359",
"0.6986496",
"0.6950043",
"0.6947202",
"0.69343644",
"0.68633765",
"0.68629247",
"0.67720... | 0.8360907 | 0 |
The name of the organization owning this notification. | def wbiw(YKHO):
return YKHO._get_field('organization') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wbiw(YKHO) -> str:\n return YKHO._organization",
"def wbiw(YKHO) -> str:\n return YKHO._organization",
"def ad3Y(YKHO):\n return YKHO.__org_name",
"def wbiw(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'organization')",
"def wbiw(YKHO):\n return YKHO._get_field('organization')",
... | [
"0.81415623",
"0.81415623",
"0.7824473",
"0.7701787",
"0.76619864",
"0.75176334",
"0.74601066",
"0.74452984",
"0.74452984",
"0.7275668",
"0.7275668",
"0.71174717",
"0.70565575",
"0.70565575",
"0.70565575",
"0.6998961",
"0.69236666",
"0.68998796",
"0.68958324",
"0.687744",
"0.... | 0.75437325 | 5 |
Get an existing EC2 cluster. | def iBC6(*, c0yN: str, zn0c: str) -> dW14:
return I7LB(cluster_names=[c0yN], region=zn0c)[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(z39Z, hKn5=None):\n x0hE = yy95.get('ecs', z39Z)\n if hKn5:\n FE4Z = [hKn5]\n else:\n qC6E = x0hE.list_clusters()\n FE4Z = qC6E['clusterArns']\n NArs = {}\n NArs['clusters'] = FE4Z\n return x0hE.describe_clusters(**NArs)",
"def VH3M(qXcF: Optional[str]=None, mWFP: ... | [
"0.72108823",
"0.7111069",
"0.69767",
"0.69767",
"0.69767",
"0.69767",
"0.6959586",
"0.6881975",
"0.6810321",
"0.6806126",
"0.6778009",
"0.67506987",
"0.6732226",
"0.67199475",
"0.66612583",
"0.66597855",
"0.66548634",
"0.66402954",
"0.66126424",
"0.659697",
"0.6557993",
"0... | 0.71974015 | 1 |
Generate decoder input and output label from padded_input Add to decoder input, and add to decoder output label | def biH0(YKHO, _n8z):
bEXe = [LVAh[LVAh != IxkY] for LVAh in _n8z]
l3At = bEXe[0].new([YKHO.eos_id])
G2sS = bEXe[0].new([YKHO.sos_id])
qWp6 = [ht2j.cat([G2sS, LVAh], dim=0) for LVAh in bEXe]
yT4P = [ht2j.cat([LVAh, l3At], dim=0) for LVAh in bEXe]
zv6D = RnIX(qWp6, YKHO.eos_id)
rUwU = RnIX(yT... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(YKHO, Fu9e):\n xSZe = ht2j.cat((Fu9e, YKHO.attention_context), -1)\n YKHO.attention_hidden, YKHO.attention_cell = YKHO.attention_rnn(xSZe, (YKHO.attention_hidden, YKHO.attention_cell))\n YKHO.attention_hidden = vuvg.dropout(YKHO.attention_hidden, YKHO.p_attention_dropout, YKHO.training)\n wJem... | [
"0.6618724",
"0.65257215",
"0.6398533",
"0.6290694",
"0.62754244",
"0.62198186",
"0.62194186",
"0.6218626",
"0.6177928",
"0.61610717",
"0.6116875",
"0.6114034",
"0.6084208",
"0.6054351",
"0.6046385",
"0.6027948",
"0.6014577",
"0.6002551",
"0.59873545",
"0.5969354",
"0.5965916... | 0.6144384 | 10 |
Return the instance for a given model. | def YrZb(YKHO, mWFP):
return YKHO._models.get(mWFP, None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YrZb(C3ST, **B2fa):\n return MIHy.query(C3ST).filter_by(**B2fa).first()",
"def M34g(C3ST, _sei):\n KAOR = C3ST.objects.get(pk=_sei)\n return wiZu(KAOR)",
"def _8gI(C3ST, **B2fa):\n xDcj = Qj6z(C3ST).filter_by(**B2fa)\n Ylbp = xDcj.one()\n return Ylbp",
"def iSDi(C3ST, o_gm):\n try:\n... | [
"0.77289325",
"0.768221",
"0.766593",
"0.75824255",
"0.75109744",
"0.7479873",
"0.74446803",
"0.7438075",
"0.743421",
"0.7422359",
"0.7403417",
"0.7275162",
"0.7186698",
"0.71785116",
"0.7079705",
"0.7078623",
"0.7048542",
"0.69867486",
"0.6986561",
"0.69832927",
"0.69832927"... | 0.6803542 | 44 |
Return the storage directory. IE where the model puts it's files. | def EJdr(YKHO, C3ST):
return Hy7s.path.join(YKHO._directory, C3ST.MODEL_NAME) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pi44(YKHO):\n return YKHO.Storage.get_storage_dir()",
"def igqt(YKHO):\n YKHO.InitStorage()\n return YKHO.log_dir",
"def iw_Z(YKHO):\n eHKs = YKHO._settings.get(GPtr.DIRECTORY)\n if eHKs is None:\n eHKs = YKHO._default_path\n if not Hy7s.path.exists(eHKs):\n YKHO._ma... | [
"0.9016082",
"0.81379515",
"0.78000337",
"0.76585436",
"0.7566257",
"0.75510734",
"0.7423669",
"0.7395996",
"0.72846615",
"0.725145",
"0.72420305",
"0.7194828",
"0.71944284",
"0.7178686",
"0.7085688",
"0.7078785",
"0.70667464",
"0.70547765",
"0.70248204",
"0.70129603",
"0.700... | 0.89595026 | 1 |
Return a cache directory. | def mGpN(YKHO, C3ST):
return Hy7s.path.join(YKHO._directory, 'cache', C3ST.MODEL_NAME) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wsLY(YKHO):\n Csk6 = YKHO.get('cache.dir')\n if Hy7s.path.exists(Csk6):\n if Hy7s.path.isdir(Csk6):\n return Csk6\n else:\n raise RuntimeError('unable to create cache dir {} due to existing file of same name'.format(Csk6))\n else:\n return LEgL(Csk6)",
"def... | [
"0.88686967",
"0.8846358",
"0.8748929",
"0.8558783",
"0.8538495",
"0.8523902",
"0.8493455",
"0.84144837",
"0.83749694",
"0.8358822",
"0.8323573",
"0.8281097",
"0.8237801",
"0.81608003",
"0.81388974",
"0.80947584",
"0.80947584",
"0.8035279",
"0.79672486",
"0.79437244",
"0.7860... | 0.82074195 | 13 |
Model for Gaussian function $$y = offset + amplitude np.exp((1/2)(xmean)^2/s^2)$$ | def IAWS(WKvO, JBMS, M1Jx, caa_=1, vgXP=0):
LVAh = vgXP + caa_ * oyIN.exp(-(WKvO - JBMS) * (WKvO - JBMS) / (2 * M1Jx * M1Jx))
return LVAh | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ufxv(WKvO, JBMS, WTkW, caa_, vgXP):\n LVAh = IAWS(WKvO, JBMS, WTkW, caa_, vgXP)\n return LVAh",
"def ufxv(WKvO, JBMS, WTkW, caa_):\n LVAh = IAWS(WKvO, JBMS, WTkW, caa_)\n return LVAh",
"def IAWS(WKvO, JBMS, WTkW, caa_):\n return caa_ * oyIN.e ** (-1 * ((WKvO - JBMS) / (oyIN.sqrt(2) * WTkW)) ... | [
"0.8739302",
"0.8004568",
"0.721436",
"0.71391803",
"0.69737667",
"0.695026",
"0.6945858",
"0.6939456",
"0.69088036",
"0.6874742",
"0.6872522",
"0.6872522",
"0.6871916",
"0.6856478",
"0.6768911",
"0.6742549",
"0.6717078",
"0.6708453",
"0.66798604",
"0.66747886",
"0.6656218",
... | 0.7998355 | 2 |
Cost function for fitting of double Gaussian. | def Cl2M(SLsv, CjQX, NArs):
C3ST = cuJv(SLsv, NArs)
sSN_ = oyIN.linalg.norm(CjQX - C3ST)
return sSN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YNFo(SLsv, CjQX, NArs):\n [JBMS, M1Jx, caa_, vgXP] = NArs\n Q5cK = IAWS(SLsv, JBMS, M1Jx, caa_, vgXP)\n sSN_ = oyIN.linalg.norm(CjQX - Q5cK)\n return sSN_",
"def qJ8m(WKvO, *qIxc):\n KF17, q7In = qIxc\n wEf2 = 0.5 * oyIN.linalg.norm(WKvO)\n wEf2 = wEf2 + 0.5 * oyIN.sum((q7In - KF17) * (q... | [
"0.7885134",
"0.6447934",
"0.64444065",
"0.64262515",
"0.6421979",
"0.6421979",
"0.6406219",
"0.63673097",
"0.63505626",
"0.63398993",
"0.6324086",
"0.6314647",
"0.62661695",
"0.62572837",
"0.62225574",
"0.62019235",
"0.61940104",
"0.6174494",
"0.611621",
"0.60981214",
"0.609... | 0.78710914 | 1 |
Returns the latitude extracted from the input. | def MTfP(YKHO, fZOT):
for eOtH in YKHO.tagger.tokenize(fZOT):
if 'latitude=' in eOtH:
return ZbWC.sub('latitude=', '', eOtH)
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _UuI(YKHO) -> h8nf[qe4Y.Input[float]]:\n return qe4Y.get(YKHO, 'latitude')",
"def TujQ(YKHO):\n XP5J = YKHO._get_sub_text('lat')\n if not XP5J:\n return None\n else:\n try:\n return float(XP5J)\n except ValueError:\n return None",
"def _UuI(dQgj):\n ... | [
"0.7873284",
"0.77717394",
"0.7661346",
"0.7645692",
"0.7637512",
"0.7635236",
"0.7635236",
"0.7558149",
"0.75407714",
"0.7482007",
"0.74632335",
"0.7460505",
"0.74590325",
"0.7447413",
"0.74265957",
"0.7365311",
"0.73522335",
"0.7325723",
"0.73214173",
"0.73197126",
"0.73119... | 0.8103502 | 0 |
Returns the longitude extracted from the input. | def w9kk(YKHO, fZOT):
for eOtH in YKHO.tagger.tokenize(fZOT):
if 'longitude=' in eOtH:
return ZbWC.sub('longitude=', '', eOtH)
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fopC(YKHO):\n return YKHO._location[1]",
"def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT",
"def fopC(YKHO) -> h8nf[qe4Y.Input[float]]:\n return qe4Y.get(YKHO, 'longitude')",
"def fopC(YKHO):\n return YKHO['lon']",
"def fopC(YKHO) -> str:\n return qe4Y.get(YKHO, 'longitude')",... | [
"0.8140987",
"0.8124438",
"0.8120298",
"0.80697",
"0.80492747",
"0.79803",
"0.7959378",
"0.7937518",
"0.7883539",
"0.78388536",
"0.78364897",
"0.7812675",
"0.7809174",
"0.77572113",
"0.7753726",
"0.77444524",
"0.7740854",
"0.77258587",
"0.77217025",
"0.771953",
"0.7713964",
... | 0.84303665 | 0 |
Checks whether `path` is a virtualenv. This function is somewhat redundant now that virtualenv uses venv | def eg9B(pmON):
if SXRB.exists(SXRB.join(pmON, N9xs, 'python')):
aiXz = any((SXRB.exists(SXRB.join(pmON, N9xs, eHNT)) for eHNT in LgS_))
if aiXz:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs0o(pmON):\n return lXA2(pmON) or eg9B(pmON)",
"def Jxmw(pmON):\n for mWFP, pEzh in nD34.items():\n lQDD = Hy7s.path.join(pmON, pEzh)\n if not Hy7s.path.exists(lQDD):\n return False\n return True",
"def f4Ev(pmON):\n if not pmON.is_dir():\n return False\n for... | [
"0.84326875",
"0.8259697",
"0.8056248",
"0.79784626",
"0.7658455",
"0.7485323",
"0.72641927",
"0.7191029",
"0.6902306",
"0.68185836",
"0.68176115",
"0.6729178",
"0.6616169",
"0.6600283",
"0.65323424",
"0.6474571",
"0.6440585",
"0.63602155",
"0.6357017",
"0.6356747",
"0.634630... | 0.82879376 | 1 |
Checks whether `path` is a PEP 405 venv. | def lXA2(pmON):
if SXRB.exists(SXRB.join(pmON, kmWe)):
with open(SXRB.join(pmON, kmWe)) as eHNT:
for zFiD in eHNT:
H5ew = zFiD.split('=')[0].strip()
if H5ew == 'home':
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs0o(pmON):\n return lXA2(pmON) or eg9B(pmON)",
"def Jxmw(pmON):\n for mWFP, pEzh in nD34.items():\n lQDD = Hy7s.path.join(pmON, pEzh)\n if not Hy7s.path.exists(lQDD):\n return False\n return True",
"def f4Ev(pmON):\n if not pmON.is_dir():\n return False\n for... | [
"0.89179367",
"0.764059",
"0.7242053",
"0.7057803",
"0.69947904",
"0.6753699",
"0.67382395",
"0.66722983",
"0.6666026",
"0.6591564",
"0.6348962",
"0.634694",
"0.6254564",
"0.61883366",
"0.61587405",
"0.6149928",
"0.60781276",
"0.6052565",
"0.60389596",
"0.60037804",
"0.598459... | 0.857877 | 1 |
Checks whether `path` is a virtualenv/venv. | def Vs0o(pmON):
return lXA2(pmON) or eg9B(pmON) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jxmw(pmON):\n for mWFP, pEzh in nD34.items():\n lQDD = Hy7s.path.join(pmON, pEzh)\n if not Hy7s.path.exists(lQDD):\n return False\n return True",
"def eg9B(pmON):\n if SXRB.exists(SXRB.join(pmON, N9xs, 'python')):\n aiXz = any((SXRB.exists(SXRB.join(pmON, N9xs, eHNT))... | [
"0.8116917",
"0.80865324",
"0.8037826",
"0.7651841",
"0.728709",
"0.72248954",
"0.72234935",
"0.674792",
"0.6594811",
"0.64511335",
"0.64376754",
"0.64041764",
"0.63662034",
"0.63473415",
"0.62961346",
"0.624825",
"0.6144849",
"0.61174595",
"0.60704964",
"0.60577697",
"0.6055... | 0.8377788 | 0 |
State. Get an observation of the current environment's state. Used in rendering. | def QTBn(YKHO) -> oyIN.ndarray:
return YKHO._env.observation() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ja6o(YKHO):\n return YKHO.env._get_obs()",
"def ja6o():\n return sEAN.get_obs()",
"def QTBn(YKHO):\n vzeF.info(YKHO.name, 'accessing state')\n return YKHO._state",
"def QTBn(YKHO):\n YKHO._update_env_state()\n return YKHO._state",
"def GBfH(YKHO):\n return YKHO.__currentState",
"... | [
"0.8463592",
"0.8205285",
"0.7859054",
"0.7783189",
"0.77382016",
"0.7729799",
"0.7728047",
"0.7728047",
"0.7728047",
"0.7728047",
"0.7728047",
"0.7728047",
"0.7722791",
"0.7722791",
"0.7722791",
"0.7722791",
"0.7692239",
"0.7692239",
"0.7692239",
"0.7692239",
"0.7692239",
... | 0.0 | -1 |
Get driver platform where tests are running | def rhe1(YKHO):
return YKHO.driver.capabilities['platformName'] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KwMM():\n return WU2G[a9EH.system()]",
"def Z5O9():\n return a9EH.system()",
"def hoKW() -> int:\n pass",
"def LPWL():\n return C9U5.VALUES.run.platform.Get()",
"def a9EH(YKHO):\n return mnFt.global_instance().get_platform_for_target(YKHO)",
"def RSoG():\n Wju4 = a9EH.uname()\n i... | [
"0.7931326",
"0.7797961",
"0.7635836",
"0.7568304",
"0.7533559",
"0.7489561",
"0.7483504",
"0.7467471",
"0.74366456",
"0.7412217",
"0.73937243",
"0.73576814",
"0.73347104",
"0.73332965",
"0.73295385",
"0.7317593",
"0.73052305",
"0.72729874",
"0.72400105",
"0.7224416",
"0.7206... | 0.8158271 | 0 |
Returns the source observable sequence or the other observable sequence if duetime elapses. | def vYBr(YKHO, O34w, Elif=None, IesV=None):
rQol = None
JZXy = YKHO
Elif = Elif or cBwQ.throw_exception(Exception('Timeout'))
Elif = cBwQ.from_future(Elif)
IesV = IesV or VlgG
if isinstance(O34w, qcWV):
rQol = IesV.schedule_absolute
else:
rQol = IesV.schedule_relative
de... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uBTr(JZXy: Observable[_T]) -> cBwQ[sb5H]:\n\n def FxIp(LiTy: abc.ObserverBase[_T], D15J: Optional[abc.SchedulerBase]=None):\n RJ4a = IesV or D15J or XvhI.singleton()\n open = [False]\n\n def XeOP(IesV: abc.SchedulerBase, QTBn: Any) -> None:\n open[0] = True\n a1PO = RJ... | [
"0.58815235",
"0.5654941",
"0.5456532",
"0.54333043",
"0.53900385",
"0.5341793",
"0.5134647",
"0.50248915",
"0.5012736",
"0.49800637",
"0.49415654",
"0.49303296",
"0.48908442",
"0.48905063",
"0.48663563",
"0.48403105",
"0.48357484",
"0.48211348",
"0.48190808",
"0.47945285",
"... | 0.57603884 | 1 |
Returns the widget's y position | def BBTF(YKHO):
return YKHO.widget.position[1] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dtR9(YKHO):\n return YKHO._position[0]",
"def IkQz(YKHO):\n return YKHO._position_y",
"def IkQz(YKHO):\n return YKHO._position_y",
"def LVAh(YKHO):\n return YKHO.position.y",
"def LVAh(YKHO):\n return YKHO.position.y",
"def LVAh(YKHO) -> int:\n return YKHO.position.y",
"def xdjK(Y... | [
"0.8229246",
"0.8183956",
"0.8183956",
"0.81777984",
"0.81666595",
"0.8076477",
"0.80218184",
"0.7989656",
"0.7963035",
"0.79558206",
"0.7940086",
"0.78983504",
"0.7783881",
"0.77618957",
"0.772386",
"0.76720726",
"0.7634217",
"0.76314723",
"0.7608969",
"0.7598062",
"0.755726... | 0.91862357 | 0 |
Sets the id of this PlansAccountPlanAssoc. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wERM(YKHO, wERM):\n YKHO._plan_id = wERM",
"def wERM(YKHO, wERM):\n YKHO._plan_id = wERM",
"def V_9M(YKHO, M2hS):\n YKHO._id = M2hS",
"def V_9M(YKHO, id):\n YKHO._id = id",
"def psjw(YKHO, id):\n YKHO._id = id",
"def V_9M(YKHO, id):\n YKHO.id = id",
"def V_9M(YKHO, id):\n YKHO.... | [
"0.6886599",
"0.6886599",
"0.6170698",
"0.60801846",
"0.6056976",
"0.60280037",
"0.60280037",
"0.60050935",
"0.5950486",
"0.5950486",
"0.5948765",
"0.5898508",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",
"0.5896958",... | 0.5673551 | 96 |
Sets the create_timestamp of this PlansAccountPlanAssoc. | def _LRs(YKHO, _LRs):
YKHO._create_timestamp = _LRs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _LRs(YKHO, _LRs):\n if _LRs is None:\n raise ValueError('Invalid value for `create_timestamp`, must not be `None`')\n YKHO._create_timestamp = _LRs",
"def ZCOK(YKHO, ZCOK):\n YKHO._create_at = ZCOK",
"def OhEq(YKHO, OhEq):\n YKHO._creation_timestamp = OhEq",
"def x7vo(YKHO, x7vo):\n ... | [
"0.64913714",
"0.60111606",
"0.5997408",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5886555",
"0.5836413",
"0.56971186",
"0.55329627",
"0.54927796",
"0.54927796",
"0.54567003",
"0.545670... | 0.6893183 | 0 |
Sets the start_timestamp of this PlansAccountPlanAssoc. | def K4yx(YKHO, K4yx):
YKHO._start_timestamp = K4yx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BiNk(YKHO, BiNk):\n YKHO._start_time_stamp = BiNk",
"def VJW7(YKHO, EKFi=None):\n YKHO.start_datetime = NzH8(EKFi)",
"def YFxH(YKHO, kepv):\n YKHO._start_date = kepv",
"def I_9r(YKHO, R4lU):\n YKHO.start_time = R4lU",
"def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv",
"def I_9r(YKHO, ... | [
"0.66259754",
"0.6537571",
"0.64987934",
"0.6487117",
"0.64539045",
"0.6425988",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.63408285",
"0.6334759",
"0.6322755",
"... | 0.73174924 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.8640854",
"0.85093737",
"0.785447",
"0.7744496",
"0.77114135",
"0.7696879",
"0.76601094",
"0.7639409",
"0.7623007",
"0.7608497",
"0.7608497",
"0.7608497",
"0.76073915",
"0.7600974",
"0.75863326",
"0.75839657",
"0.7572215",
"0.7569474",
"0.75403374",
"0.75403374",
"0.752854... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Add a string to this trie. | def H2v5(YKHO, KCHu: str):
XP5J = YKHO.root
Ziit = [exwG for exwG in YKHO._pre_nodes(KCHu) if exwG]
for YRbF in range(len(Ziit)):
if Ziit[YRbF] not in XP5J.children:
Esd_ = ep_x(Ziit[YRbF])
XP5J.children[Ziit[YRbF]] = Esd_
XP5J = Esd_
else:
XP5... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aUm5(YKHO, KCHu):\n XP5J = YKHO.root\n exwG = len(KCHu)\n for YRbF in range(exwG):\n if XP5J.kid.has_key(KCHu[YRbF]):\n XP5J = XP5J.kid[KCHu[YRbF]]\n if YRbF == exwG - 1:\n XP5J.is_word = True\n return\n else:\n Esd_ = ep_x()... | [
"0.75594944",
"0.7550582",
"0.7235313",
"0.7231069",
"0.7123861",
"0.7030812",
"0.6991874",
"0.698055",
"0.696718",
"0.6879455",
"0.6870923",
"0.6826399",
"0.68179876",
"0.68113226",
"0.68016875",
"0.67882085",
"0.6777635",
"0.67612225",
"0.675185",
"0.67497563",
"0.67118955"... | 0.7714408 | 0 |
Calculate the standard deviatino of the data set. | def ybJL(YKHO, mvm2=True):
if mvm2:
exwG = len(YKHO.data) - 1
else:
exwG = len(YKHO.data)
JBMS = YKHO.calculate_mean()
WTkW = sum([epAf.pow(Csk6 - JBMS, 2) for Csk6 in YKHO.data])
WTkW = epAf.sqrt(WTkW / exwG)
YKHO.stdev = WTkW
return WTkW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RSc0(YKHO):\n return YKHO.variance ** 0.5",
"def ee6l(BkYD):\n return qw7D.standardDeviation(BkYD)",
"def ee6l(YKHO):\n raise NotImplementedError",
"def M1Jx(nPrm):\n nPrm = list(nPrm)\n exwG = len(nPrm)\n if exwG == 0:\n raise ValueError('cannot compute stdev of empty set')\n ... | [
"0.81780714",
"0.80079705",
"0.79916346",
"0.79179114",
"0.78881544",
"0.77090067",
"0.7691991",
"0.7688482",
"0.7668022",
"0.7616614",
"0.7615249",
"0.75947446",
"0.7568613",
"0.7553738",
"0.7520169",
"0.75050443",
"0.749597",
"0.7490281",
"0.7480475",
"0.7478701",
"0.747027... | 0.7373536 | 36 |
Apply transform to an image | def niyA(SZFh, LNo8, aC0l, GoGv='linear'):
return SZFh.apply_to_image(LNo8, aC0l, GoGv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _Fpf(VXjJ, Ymkf):\n return Ymkf(VXjJ)",
"def xhoG(YKHO, LNo8):\n VXjJ = YKHO.imageTransformer(LNo8)\n return VXjJ",
"def JEPG(YKHO, VXjJ: np.ndarray) -> oyIN.ndarray:\n return XC5k.warpAffine(VXjJ, YKHO.affine, YKHO.output_size, flags=XC5k.INTER_LINEAR)",
"def SZFh(p4m8):\n VXjJ = YKHO.loa... | [
"0.81455505",
"0.7671622",
"0.7514973",
"0.7483415",
"0.74265623",
"0.7332876",
"0.7220976",
"0.720435",
"0.71763706",
"0.715494",
"0.7122033",
"0.7117448",
"0.7094548",
"0.70800143",
"0.7055785",
"0.70396656",
"0.70308465",
"0.7028592",
"0.7018127",
"0.69516855",
"0.6945213"... | 0.7734462 | 1 |
Create and save barplot. | def Ux1i(WKvO, LVAh, nPrm, leAC, IICq, V1J5):
uuEx.barplot(x=WKvO, y=LVAh, data=nPrm, palette='YlGn')
QrM1.title(leAC)
QrM1.ylabel(IICq)
QrM1.grid(ls='--', alpha=0.6)
QrM1.savefig(V1J5)
QrM1.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fQjq(WKvO, LVAh, VoLU, IICq, leAC):\n uuEx.barplot(x=WKvO, y=LVAh)\n QrM1.xlabel(VoLU)\n QrM1.ylabel(IICq)\n QrM1.xticks(rotation=45)\n QrM1.tight_layout()\n QrM1.savefig('reports\\\\vis\\\\{}.png'.format(leAC))",
"def X8GP(kPp7, owrZ):\n uuEx.set(style='whitegrid', palette='Set1', font_... | [
"0.7310103",
"0.73080915",
"0.7276149",
"0.7070732",
"0.70390254",
"0.69389606",
"0.6869034",
"0.6856732",
"0.68306714",
"0.66443336",
"0.65876484",
"0.65828043",
"0.6564604",
"0.65243894",
"0.65166914",
"0.6512468",
"0.64752454",
"0.6474848",
"0.6467742",
"0.6456904",
"0.645... | 0.7649924 | 0 |
Represents email reminder object | def FIMM(YKHO, yyc8=60):
super().__init__('email', yyc8) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pk3P(G7Nt):\n YEnM = lbqT(G7Nt)\n hB2u = next((o8Kj for o8Kj in YEnM.REMINDERABLE_HANDLERS.values() if G7Nt.notification_type.name in o8Kj['reminders']), False)\n rpoD = {}\n if hB2u:\n nPrm = hB2u['data']\n if YEnM.status not in nPrm:\n return rpoD\n a5Ml = nPrm[YEn... | [
"0.601423",
"0.5956752",
"0.578782",
"0.57135904",
"0.57065773",
"0.5704215",
"0.56900173",
"0.56794405",
"0.56707287",
"0.5650211",
"0.55450475",
"0.5498354",
"0.5433252",
"0.5429604",
"0.5423296",
"0.54230255",
"0.5421011",
"0.5414999",
"0.5402385",
"0.5378573",
"0.53571904... | 0.52265435 | 29 |
Indicates if outbounding SAMLRequest should be signed. | def vRH4(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'sign_request') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZNl(YKHO):\n return YKHO.__signature is not None",
"def F01X(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'ocsp_signing')",
"def PZNl(YKHO) -> bool:\n return YKHO._is_signed",
"def PZNl(YKHO, *qIxc, **B2fa):\n pass",
"def PZNl(YKHO, *qIxc, **B2fa):\n pass",
"def DbGr(YKHO)... | [
"0.698393",
"0.6844436",
"0.674529",
"0.63267344",
"0.63267344",
"0.62428117",
"0.6027392",
"0.59493256",
"0.5940704",
"0.5940704",
"0.58348083",
"0.57308954",
"0.56744134",
"0.5662478",
"0.5625923",
"0.56027246",
"0.5591986",
"0.55879015",
"0.5493628",
"0.545092",
"0.5393774... | 0.673267 | 4 |
Whether to allow more than one account to have the same email. | def jMia(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'allow_duplicate_emails') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Zm8X(D3lj):\n if TQW7.get_user(D3lj) is not None:\n raise sUXu(Eair('EMAIL_ALREADY_ASSOCIATED', email=D3lj)[0])",
"def a4p5(L03z, Jyyj):\n OSYx = Nc2H.query(Nc2H.email == Jyyj.data).count()\n if OSYx >= 1:\n raise ffF6.ValidationError('This Email is already in use. Please try another o... | [
"0.6851627",
"0.66890824",
"0.6687666",
"0.6641843",
"0.6634756",
"0.66273624",
"0.66072494",
"0.6560211",
"0.6489703",
"0.6455735",
"0.6413613",
"0.6402492",
"0.6393172",
"0.6351652",
"0.63303816",
"0.6321844",
"0.63196355",
"0.6312473",
"0.6303643",
"0.62991136",
"0.6277219... | 0.750959 | 0 |
Whether anonymous user auth is enabled for the project or not. | def etR_(YKHO) -> qe4Y.Input[bool]:
return qe4Y.get(YKHO, 'enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bLGg() -> bool:\n from ..core.config import config\n return config['general_system_enable_anonymous']",
"def WV_0(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_anonymous_user')",
"def rts1(YKHO):\n if YKHO.is_anonymous:\n return False\n else:\n return True",
"def rts1(YKHO):... | [
"0.78512084",
"0.7812674",
"0.76457113",
"0.7479348",
"0.7424135",
"0.73228824",
"0.723438",
"0.72341835",
"0.71845764",
"0.7177156",
"0.71008044",
"0.70960146",
"0.70776284",
"0.70776284",
"0.7070816",
"0.70602494",
"0.7056488",
"0.7056078",
"0.7056078",
"0.7056078",
"0.7056... | 0.0 | -1 |
Whether email auth is enabled for the project or not. | def etR_(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'enabled') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n1gB(YKHO) -> MH_9:\n return YKHO._email_enabled",
"def DUSJ():\n return GPtr.get('auth').enabled",
"def yDji(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_email_link_signin')",
"def TJtD(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'email_protection')",
"def I5HD(CBIr):\n r... | [
"0.7720228",
"0.72681606",
"0.7106661",
"0.7034096",
"0.7032987",
"0.69577736",
"0.69390017",
"0.6922037",
"0.6894661",
"0.6830478",
"0.6785384",
"0.6751685",
"0.6710027",
"0.6710027",
"0.6695585",
"0.6661694",
"0.66557187",
"0.65858275",
"0.65682673",
"0.65542406",
"0.653287... | 0.0 | -1 |
Indicates if outbounding SAMLRequest should be signed. | def vRH4(YKHO) -> h8nf[qe4Y.Input[bool]]:
return qe4Y.get(YKHO, 'sign_request') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PZNl(YKHO):\n return YKHO.__signature is not None",
"def F01X(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'ocsp_signing')",
"def PZNl(YKHO) -> bool:\n return YKHO._is_signed",
"def PZNl(YKHO, *qIxc, **B2fa):\n pass",
"def PZNl(YKHO, *qIxc, **B2fa):\n pass",
"def DbGr(YKHO)... | [
"0.698393",
"0.6844436",
"0.674529",
"0.63267344",
"0.63267344",
"0.62428117",
"0.6027392",
"0.59493256",
"0.5940704",
"0.5940704",
"0.58348083",
"0.57308954",
"0.56744134",
"0.5662478",
"0.5625923",
"0.56027246",
"0.5591986",
"0.55879015",
"0.5493628",
"0.545092",
"0.5393774... | 0.673267 | 3 |
Returns optimal policy, if the cost is required call get_optimized_cost after optimization | def WIl5(YKHO):
YKHO.cost, YKHO.policy = YKHO._find_best_cost_and_policy(YKHO.battery.current_charge, 0, len(YKHO.period_summary))
return YKHO.policy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kByd(YKHO):\n pass",
"def _Iqi(YKHO):\n return YKHO._optimization_policy",
"def diOt(YKHO):\n if YKHO.args.no_random_sampling:\n\n def UM2M(aabv):\n return YKHO.compute_costs(aabv.reshape(1, -1))['cost'][0]\n X7zS = YKHO.manipulator.get_bounds()\n aabv = YKHO.manipu... | [
"0.8085066",
"0.7145202",
"0.6858463",
"0.6817451",
"0.6753859",
"0.67048824",
"0.6675138",
"0.6674936",
"0.667343",
"0.66622263",
"0.6538684",
"0.6458569",
"0.6353562",
"0.6346388",
"0.63345224",
"0.6320437",
"0.6266111",
"0.6259073",
"0.62479866",
"0.6214692",
"0.6212026",
... | 0.75267893 | 1 |
This is the cost that we will get on the clipped energy period if we don't use the battery | def kwIM(YKHO):
sSN_ = 0
for qtWj in range(len(YKHO.period_summary.balance)):
sSN_ += YKHO._block_cost(0, 0, qtWj)
return sSN_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def om_W(YKHO):\n pass",
"def B9no(nPrm):\n return nPrm.iloc[-1][U6hv] * n6Y2 * X8Rg['costs']['energy']",
"def VYvU(YKHO):\n JBMS, FefQ = YKHO.compute_performance()\n tTpl = JBMS * 10000 + YKHO.penalizer * FefQ\n return tTpl",
"def k0PC(YKHO):\n a1PO = YKHO.cruise_parameters['t'] / 3600.0\n... | [
"0.7063705",
"0.7001651",
"0.6840667",
"0.6758749",
"0.6677679",
"0.6646696",
"0.65694535",
"0.6551986",
"0.6517898",
"0.6514524",
"0.6506497",
"0.64779174",
"0.64593583",
"0.6416078",
"0.63596296",
"0.63406634",
"0.63258386",
"0.62917393",
"0.6269447",
"0.6263638",
"0.626363... | 0.0 | -1 |
Parse the given version string. >>> parse('1.0.dev1') | def hfK9(DpZH: str) -> 'Version':
return moxu(DpZH) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BvuR(Jkv0):\n Ty9i = ZbWC.findall('\\\\d+.\\\\d+.\\\\d+', Jkv0)\n if Ty9i:\n return Ty9i[0]\n else:\n print('cannot parse string {}'.format(Jkv0))\n raise KeyError",
"def Rwzw(VsNR):\n kUBT = ZbWC.match('([0-9.]*\\\\d)(.*)', VsNR)\n if kUBT is None:\n raise ValueErr... | [
"0.7688425",
"0.7325955",
"0.7264632",
"0.7221241",
"0.70751095",
"0.70676357",
"0.6992907",
"0.6881806",
"0.68243355",
"0.67784214",
"0.6770206",
"0.6664913",
"0.66591996",
"0.65782684",
"0.6578159",
"0.65767044",
"0.65732884",
"0.65654486",
"0.6543543",
"0.6521344",
"0.6519... | 0.74644226 | 1 |
Returns all the files in a folder ending with suffix | def zjv5(dir, ZI14):
RRlC = []
for nUeQ in Hy7s.listdir(dir):
if nUeQ.endswith(ZI14):
RRlC.append(nUeQ)
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(ZI14, pmON):\n if ZI14 == '':\n return []\n if Hy7s.listdir(pmON) == []:\n return []\n hlel = []\n rNxu = Hy7s.listdir(pmON)\n RRlC = []\n ucBt = []\n for _pUq in rNxu:\n if '.' + ZI14 in _pUq:\n RRlC.append(_pUq)\n elif '.' not in _pUq:\n ... | [
"0.81132567",
"0.8053046",
"0.80332595",
"0.7997489",
"0.79814535",
"0.7973296",
"0.79548544",
"0.78915644",
"0.78915644",
"0.7874035",
"0.78359735",
"0.7771188",
"0.776664",
"0.7762277",
"0.7759873",
"0.7754132",
"0.7749593",
"0.7734234",
"0.7726548",
"0.77080965",
"0.76799"... | 0.83120596 | 0 |
Checks if the game has been won on the right diagonal (\) by inserting a char into the space defined by c and r. | def Oapq(iBIi, Z9rn, Mkmy):
UHFx = 1
YRbF = 1
while Mkmy - YRbF >= 0 and Z9rn - YRbF >= 0 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn - YRbF][Mkmy - YRbF]):
UHFx += 1
YRbF += 1
YRbF = 1
while Mkmy + YRbF <= 5 and Z9rn + YRbF <= 6 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn + YRbF][Mkmy + YRbF]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwMd(iBIi, Z9rn, Mkmy):\n UHFx = 1\n YRbF = 1\n while Mkmy - YRbF >= 0 and Z9rn + YRbF <= 6 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn + YRbF][Mkmy - YRbF]):\n UHFx += 1\n YRbF += 1\n YRbF = 1\n while Mkmy + YRbF <= 5 and Z9rn - YRbF >= 0 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn - YRbF][Mkmy + Y... | [
"0.72528917",
"0.67932194",
"0.6683875",
"0.6598806",
"0.6530801",
"0.63392967",
"0.62996656",
"0.62759787",
"0.6175468",
"0.6147238",
"0.6051827",
"0.60238934",
"0.6018087",
"0.5995496",
"0.5950738",
"0.59312034",
"0.5908134",
"0.58962727",
"0.5867944",
"0.5839201",
"0.57719... | 0.77455914 | 0 |
Checks if the game has been won on the left diagonal (/) by inserting a char into the space defined by c and r. | def nwMd(iBIi, Z9rn, Mkmy):
UHFx = 1
YRbF = 1
while Mkmy - YRbF >= 0 and Z9rn + YRbF <= 6 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn + YRbF][Mkmy - YRbF]):
UHFx += 1
YRbF += 1
YRbF = 1
while Mkmy + YRbF <= 5 and Z9rn - YRbF >= 0 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn - YRbF][Mkmy + YRbF]):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Oapq(iBIi, Z9rn, Mkmy):\n UHFx = 1\n YRbF = 1\n while Mkmy - YRbF >= 0 and Z9rn - YRbF >= 0 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn - YRbF][Mkmy - YRbF]):\n UHFx += 1\n YRbF += 1\n YRbF = 1\n while Mkmy + YRbF <= 5 and Z9rn + YRbF <= 6 and (iBIi[Z9rn][Mkmy] == iBIi[Z9rn + YRbF][Mkmy + Y... | [
"0.7245975",
"0.71564347",
"0.678518",
"0.66300267",
"0.650001",
"0.64626384",
"0.63963675",
"0.6392678",
"0.6227197",
"0.6183229",
"0.6122007",
"0.6120304",
"0.60787076",
"0.6006511",
"0.5967725",
"0.59654343",
"0.5952535",
"0.5914157",
"0.59052885",
"0.58907485",
"0.5876997... | 0.76750284 | 0 |
Show detail about a tag. Have links to edit form and to delete. | def cLdO(ozjU):
TZ9E = OhYN.get_tag_by_id(ozjU)
return TvZl('tag_detail.html', tag=TZ9E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wbah(qw32):\n TZ9E = OhYN.query.get(qw32)\n mWFP = TZ9E.name\n PzIc = TZ9E.posts\n return TvZl('show-tag.html', name=mWFP, posts=PzIc, tag_id=qw32)",
"def iK0R(qw32):\n TZ9E = OhYN.query.get(qw32)\n return TvZl('tagdetails.html', tag=TZ9E)",
"def GV3b(qw32):\n TZ9E = OhYN.query.get(qw3... | [
"0.8021132",
"0.7957116",
"0.78887993",
"0.7680704",
"0.76777476",
"0.7608367",
"0.74816287",
"0.7468251",
"0.74261343",
"0.74043083",
"0.73955303",
"0.70179",
"0.6926492",
"0.6754822",
"0.67531836",
"0.67403436",
"0.666448",
"0.66542673",
"0.6627704",
"0.6517378",
"0.6513588... | 0.76284873 | 5 |
Show edit form for a tag. | def bFlY(ozjU):
TZ9E = OhYN.get_tag_by_id(ozjU)
return TvZl('edit_tag.html', tag=TZ9E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tBcN(qw32):\n TZ9E = OhYN.query.get_or_404(qw32)\n return TvZl('tags/edit.html', tag=TZ9E)",
"def tBcN(qw32):\n TZ9E = OhYN.query.get_or_404(qw32)\n return TvZl('edit-tag.html', tag=TZ9E)",
"def tBcN(qw32):\n TZ9E = OhYN.query.get(qw32)\n return TvZl('edit-tag.html', tag_id=TZ9E.id, name=... | [
"0.89072585",
"0.8873217",
"0.88070655",
"0.87222636",
"0.8494402",
"0.8350705",
"0.8242257",
"0.82121074",
"0.8032177",
"0.802622",
"0.780126",
"0.7436582",
"0.71030986",
"0.7078329",
"0.70348334",
"0.6919117",
"0.6839863",
"0.6812412",
"0.67479455",
"0.6704725",
"0.66907114... | 0.8515446 | 4 |
Has the stage 'stage' completed yet? Returns True if it has, or else False if it hasn't. Checking if 'stage' has completed implies that any previous stage must have completed. | def OSxd(EtM5):
global last_stage
Ux0P = f'checkpoint_{EtM5.replace(' ', '_')}.txt'
if Hy7s.path.exists(Ux0P):
return True
if UTH1:
fO8u = f'checkpoint_{UTH1.replace(' ', '_')}.txt'
with open(fO8u, 'w') as U0IZ:
U0IZ.write('completed\n')
UTH1 = EtM5
return Fal... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xVHC(YKHO):\n d6pt = EuXk.index(YKHO.stage)\n if d6pt is 5:\n return True\n elif not _YHq[d6pt]:\n return True\n else:\n return False",
"def OSxd(YKHO):\n if YKHO.state.token_pos == -1:\n return False\n return len(YKHO.objects) - 1 == YKHO.state.token_pos and YKH... | [
"0.6782534",
"0.6520119",
"0.63321704",
"0.62852",
"0.6256999",
"0.62430406",
"0.6237913",
"0.6235168",
"0.62341887",
"0.6224695",
"0.62165207",
"0.6209144",
"0.6205913",
"0.61840653",
"0.6176393",
"0.61607933",
"0.6157513",
"0.615378",
"0.6151708",
"0.6147289",
"0.61331534",... | 0.77863616 | 0 |
Initialize a turtle with given position, direction, window, colors | def FIMM(YKHO, dQgj, XSoh, KnxT, qfpW):
YKHO.position = dQgj
YKHO.direction = float(XSoh)
YKHO.window = KnxT
YKHO.color = qfpW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DbxN():\n ZbiO.up()\n ZbiO.setpos(-200, -200)\n ZbiO.down()",
"def DbxN():\n ZbiO.setup(width=LjkA, height=LjkA, startx=200, starty=200)\n ZbiO.speed(0)\n ZbiO.setheading(0)\n ZbiO.up()\n ZbiO.back(400)\n ZbiO.write('Designers :: Justin & Sagar', True, 'left', font=('Arial', 10, 'n... | [
"0.6871188",
"0.67541486",
"0.66769934",
"0.66695017",
"0.6565235",
"0.6544416",
"0.65391797",
"0.6531655",
"0.64767075",
"0.64699876",
"0.6407877",
"0.63322866",
"0.6315096",
"0.6284448",
"0.62779313",
"0.62455535",
"0.62335515",
"0.6226083",
"0.6204631",
"0.6203665",
"0.617... | 0.66639256 | 4 |
Sets the spark_version of this V1Spark. | def GkR6(YKHO, GkR6):
YKHO._spark_version = GkR6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.set_byte(0, DpZH[0])\n YKHO.set_byte(1, DpZH[1])",
"def R2V2(YKHO, D... | [
"0.64543235",
"0.6408996",
"0.63003796",
"0.6245375",
"0.61970115",
"0.61970115",
"0.61970115",
"0.6111178",
"0.605418",
"0.605418",
"0.60260594",
"0.6024993",
"0.6024993",
"0.6017912",
"0.5985429",
"0.5985429",
"0.59739906",
"0.59514713",
"0.59496564",
"0.59496564",
"0.59496... | 0.8653491 | 0 |
Sets the python_version of this V1Spark. | def wkGJ(YKHO, wkGJ):
YKHO._python_version = wkGJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def R2V2(YKHO, DpZH):\n YKHO._version = DpZH",
"def R2V2(YKHO, DpZH):\n YKHO.version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO._version = DpZH",
"def dPFR(YKHO, DpZH):\n YKHO.version... | [
"0.70356977",
"0.70356977",
"0.6385919",
"0.6311819",
"0.6274409",
"0.62161434",
"0.6181882",
"0.6181882",
"0.6181882",
"0.6145483",
"0.6081511",
"0.6070646",
"0.604663",
"0.60418594",
"0.5964039",
"0.5964039",
"0.5959961",
"0.59363407",
"0.593009",
"0.593009",
"0.5908896",
... | 0.7553461 | 0 |
Sets the spark_conf of this V1Spark. | def aHsF(YKHO, aHsF):
YKHO._spark_conf = aHsF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F07F(YKHO, F07F):\n YKHO._spark_settings = F07F",
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def oSuT(YKHO, oSuT):\n YKHO._spark_config_map = oSuT",
"def kulC(YKHO, kulC):\n YKHO._hadoop_conf = kulC",
"def ZHIf(YKHO, ZHI... | [
"0.69663954",
"0.6679096",
"0.6679096",
"0.62490284",
"0.6022898",
"0.5915192",
"0.58764064",
"0.5844024",
"0.5844024",
"0.5769018",
"0.5742654",
"0.56153184",
"0.5605417",
"0.5585645",
"0.5474685",
"0.54297227",
"0.5397915",
"0.5350177",
"0.5336593",
"0.5332907",
"0.5325473"... | 0.84309155 | 0 |
Sets the spark_config_map of this V1Spark. | def oSuT(YKHO, oSuT):
YKHO._spark_config_map = oSuT | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aHsF(YKHO, aHsF):\n YKHO._spark_conf = aHsF",
"def jjLY(YKHO, jjLY):\n YKHO._hadoop_config_map = jjLY",
"def F07F(YKHO, F07F):\n YKHO._spark_settings = F07F",
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def GkR6(YKHO, GkR6):\n YKHO._spark_version = GkR6",
"def cJNk(YKHO) -> ... | [
"0.699641",
"0.6552164",
"0.62362957",
"0.56792665",
"0.56792665",
"0.55633277",
"0.55633277",
"0.5508859",
"0.5470128",
"0.5209807",
"0.5188535",
"0.51591104",
"0.5139945",
"0.5077461",
"0.49730113",
"0.49506518",
"0.48713827",
"0.4861602",
"0.48330924",
"0.48248637",
"0.480... | 0.8637887 | 0 |
Sets the executor of this V1Spark. | def ZaUd(YKHO, ZaUd):
YKHO._executor = ZaUd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZaUd(YKHO, ZaUd):\n YKHO._executor = ZaUd",
"def icG7(YKHO, AwDt: typing.Optional[str]=None, dbuD: typing.Optional[typing.Dict[str, str]]=None, t385: typing.Optional[client.V1Affinity]=None):\n if AwDt:\n raise NotImplementedError('Setting node name is not supported for spark runtime')\n if t... | [
"0.64032745",
"0.631495",
"0.56840444",
"0.55167496",
"0.5493416",
"0.54339653",
"0.54094917",
"0.5201418",
"0.5163285",
"0.5047133",
"0.50285447",
"0.50246465",
"0.5021499",
"0.50185025",
"0.5016579",
"0.49987137",
"0.49517116",
"0.49369982",
"0.49139455",
"0.4853303",
"0.48... | 0.6326233 | 1 |
Sets the driver of this V1Spark. | def E_qD(YKHO, E_qD):
YKHO._driver = E_qD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YTOL(YKHO, E_qD):\n YKHO.driver = E_qD",
"def YTOL(YKHO, E_qD):\n YKHO.driver = E_qD",
"def E_qD(YKHO, BWXx: str):\n YKHO._properties['driver'] = BWXx",
"def g7QD(YKHO, g7QD):\n YKHO._driver_name = g7QD",
"def YTOL(YKHO, E_qD, nuPx):\n YKHO.default_map.set_driver(E_qD, nuPx)",
"def WLf... | [
"0.71976",
"0.71037483",
"0.6596088",
"0.6443717",
"0.6393274",
"0.5989495",
"0.59766006",
"0.59766006",
"0.59766006",
"0.595865",
"0.595865",
"0.5820683",
"0.57373196",
"0.5662962",
"0.5579551",
"0.55689627",
"0.5540144",
"0.5487832",
"0.5457575",
"0.5457575",
"0.54457843",
... | 0.6739359 | 2 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, xmYz):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Build the softmax op to make final predictions (probabilities) | def _D_D(WKvO, zPgq, jTqs, wOkA='softmax'):
with ZylS.name_scope(wOkA):
_mSQ = ZylS.Variable(ZylS.zeros([zPgq, jTqs]))
HabP = ZylS.Variable(ZylS.zeros([jTqs]))
KeL5 = ZylS.matmul(WKvO, _mSQ) + HabP
N93T = ZylS.nn.softmax(KeL5)
ZylS.summary.histogram(N93T.op.name + '/activatio... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def N93T(zKTd):\n return zKTd / (XTiz.sum(zKTd) + 1e-06)",
"def N93T(YKHO):\n return ZylS.nn.softmax(YKHO.output)",
"def YEmv(YKHO, Z5wO):\n Mnfm = oyIN.zeros(len(Z5wO))\n for YRbF in range(len(Z5wO)):\n Mnfm[YRbF] = oyIN.argmax(oyIN.dot(YKHO.w, Z5wO[YRbF]))\n return Mnfm",
"def anMS(YK... | [
"0.7220949",
"0.707844",
"0.6910983",
"0.6910161",
"0.6899231",
"0.68886447",
"0.68851423",
"0.68642336",
"0.6843504",
"0.6839578",
"0.68382466",
"0.683418",
"0.6822968",
"0.68170977",
"0.67827016",
"0.6782029",
"0.6776974",
"0.67550284",
"0.67429614",
"0.6716374",
"0.6715438... | 0.66273767 | 30 |