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
Property for the enumeration of this transaction ()
def VhdG(YKHO) -> jBxT: try: return jBxT(int(YKHO.protection_eligibility)) except: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQ1Y(YKHO):\n raise NotImplementedError", "def RLwS(YKHO) -> Lxry:\n return XEi0.get(YKHO.transaction_status)", "def XJAX(YKHO):\n raise Bx6I.NotImplementedError()", "def _Wu0(Emd4):\n return LY9e(60)", "def hkS8(YKHO):\n return RUGm(YKHO)", "def F0xD(YKHO):\n ZZKJ = {'name': YKHO.n...
[ "0.71118397", "0.6593331", "0.6270592", "0.62465674", "0.6158069", "0.59486014", "0.58366627", "0.58330446", "0.58252573", "0.5776557", "0.5740692", "0.57314277", "0.5705731", "0.5659605", "0.565769", "0.5623061", "0.56176597", "0.56176597", "0.561505", "0.561505", "0.5612701...
0.0
-1
Forward process. Only 4x feature maps is used to calculate loss. Additional feature maps supervising can be added if calculating resource is enough.
def KVH6(YKHO, WKvO): hHrd = WKvO[0] wveu = YKHO.P4_conv(hHrd) XGq8 = YKHO.channel4_1x7_conv(hHrd) j0Me = YKHO.P4_1x7_conv(wveu) hHrd = j0Me + wveu + XGq8 hHrd = YKHO.rpn4(hHrd) FqjE = YKHO.conv_logits_seg(hHrd) j7VB = YKHO.conv_logits_reg(hHrd) if YKHO.upsample is not None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n c7pe = list()\n ysMo = list()\n ET_X = YKHO.lds(WKvO)\n for G1Hx in range(22):\n WKvO = YKHO.features[G1Hx](WKvO)\n BiP6 = YKHO.ibn1(WKvO)\n ak4J, k_KH = YKHO.icn1(ET_X)\n KCHu = YKHO.Norm1(BiP6 * k_KH)\n for G1Hx in range(22, 34):\n WKvO = YKHO.feature...
[ "0.69317913", "0.68093896", "0.67466486", "0.66855973", "0.6674017", "0.6602134", "0.65924376", "0.657881", "0.65654254", "0.65557927", "0.6488124", "0.64579856", "0.6447587", "0.6445193", "0.6444281", "0.642611", "0.64092565", "0.6401186", "0.63872015", "0.6384943", "0.63688...
0.62248266
32
If the billing account already has an IOU account, return the update form. If there isn't an account yet, then return the creation form
def VXs_(GLga): try: U1nO = GLga.simple_processor_iou_account return umt9 except ih1k.DoesNotExist: return X6dY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def USEx():\n if c5ow.is_agency:\n L03z = gj86(user=c5ow)\n else:\n L03z = Bg9u(user=c5ow)\n if QePW.method == 'POST':\n if L03z.validate_on_submit():\n SVTm(L03z)\n vKnz(nKyW('auth.manage'))\n else:\n Dwep('Account cannot be updated.', category...
[ "0.6070687", "0.6037547", "0.5988173", "0.5983497", "0.5789755", "0.57439816", "0.56556976", "0.563131", "0.5623569", "0.5617682", "0.5516923", "0.54676425", "0.5454282", "0.54209024", "0.5419233", "0.5396492", "0.53896946", "0.53603184", "0.5337848", "0.52935314", "0.5287341...
0.7438349
0
Returns the Channels Group name that sockets should subscribe to to get sent messages as they are generated.
def IXKo(YKHO): return 'room-%s' % YKHO.pk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IXKo(YKHO):\n return 'DocumentChat-%s' % YKHO.id", "def McjM(YKHO):\n return YKHO.__peer_group_name", "def McjM(YKHO):\n return YKHO.__peer_group_name", "def XZ_F(YKHO):\n return YKHO.groupname", "def T_b0(YKHO):\n return cQ68('room-%s' % YKHO.id)", "def T_b0(YKHO):\n return cQ68('r...
[ "0.67033607", "0.647381", "0.647381", "0.6465417", "0.6434411", "0.64291686", "0.642359", "0.6367134", "0.63132614", "0.6228915", "0.62003005", "0.6188551", "0.6169147", "0.6107189", "0.60954183", "0.6086085", "0.60798824", "0.6052177", "0.60476255", "0.6019649", "0.6003893",...
0.58056945
37
The ID of the user to add the GPG key to. If this field is omitted, this resource manages a GPG key for the current user. Otherwise, this resource manages a GPG key for the specified user, and an admin token is required.
def uJjO(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'user_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_i...
[ "0.59973806", "0.59973806", "0.59461033", "0.59461033", "0.59461033", "0.58855414", "0.5857102", "0.57523966", "0.5672502", "0.56256455", "0.561052", "0.561052", "0.561052", "0.561052", "0.561052", "0.56017846", "0.5598544", "0.55765146", "0.55765146", "0.5566953", "0.5566593...
0.5794713
8
The ID of the user to add the GPG key to. If this field is omitted, this resource manages a GPG key for the current user. Otherwise, this resource manages a GPG key for the specified user, and an admin token is required.
def uJjO(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'user_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_i...
[ "0.59973806", "0.59973806", "0.59461033", "0.59461033", "0.59461033", "0.58855414", "0.5857102", "0.57523966", "0.5672502", "0.56256455", "0.561052", "0.561052", "0.561052", "0.561052", "0.561052", "0.56017846", "0.5598544", "0.55765146", "0.55765146", "0.5566953", "0.5566593...
0.5794713
7
The ID of the user to add the GPG key to. If this field is omitted, this resource manages a GPG key for the current user. Otherwise, this resource manages a GPG key for the specified user, and an admin token is required.
def uJjO(YKHO) -> qe4Y.Output[h8nf[int]]: return qe4Y.get(YKHO, 'user_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_id')", "def uJjO(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'user_i...
[ "0.59973806", "0.59973806", "0.59461033", "0.59461033", "0.59461033", "0.58855414", "0.5857102", "0.5794713", "0.5794713", "0.57523966", "0.5672502", "0.56256455", "0.561052", "0.561052", "0.561052", "0.561052", "0.561052", "0.56017846", "0.5598544", "0.55765146", "0.55765146...
0.53703696
36
Returns a formatted filename using the template stored in self.filename Arguments
def LWVQ(YKHO, nPrm, rdlD): return YKHO.filename.format(**YKHO.filename_formatters(nPrm, rdlD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cgGb(YKHO):\n gIsw = x7df.reports[YKHO._report_key]['fileName']\n return '{}.html'.format(gIsw)", "def yFjF(YKHO, pmON, NArs, kN9s=None):\n JT9N = YKHO.phase\n if kN9s:\n JT9N += '_' + kN9s\n Ux0P = YKHO.FILENAME_TEMPLATES[JT9N].format(**NArs)\n return Hy7s.path.join(pmON, Ux0P)", ...
[ "0.7372324", "0.72205263", "0.7211966", "0.71357596", "0.7116954", "0.70353585", "0.70277053", "0.69741374", "0.69528997", "0.6951184", "0.6936264", "0.6915955", "0.6906335", "0.6891999", "0.68614364", "0.68525696", "0.67716825", "0.67658573", "0.67550075", "0.6733696", "0.67...
0.71709263
3
Test getting dataset path.
def BKWe(YKHO) -> None: lBC3 = 'tensorflow' zrIJ = 'image_recognition' Aofo = c1ta(lBC3, zrIJ) YKHO.assertEqual(Aofo, 'examples/test/dataset/imagenet')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMNe(YKHO):\n pass", "def JA7F(YKHO):\n pmON = YKHO._api.GetDatapath()\n YKHO._api.End()\n YKHO.assertRaises(RuntimeError, YKHO._api.Init, path=YKHO._test_dir + Hy7s.path.sep)\n if Hpvu >= 60397568:\n ddn9 = pmON\n else:\n ddn9 = Hy7s.path.abspath(Hy7s.path.join(pmON, Hy7s.pat...
[ "0.75778013", "0.75268173", "0.7313395", "0.70568323", "0.6979461", "0.69666904", "0.69261616", "0.6925592", "0.6921823", "0.69095963", "0.679207", "0.6753882", "0.6716215", "0.67095876", "0.6703324", "0.6695395", "0.6667533", "0.66508496", "0.6650378", "0.66204023", "0.66069...
0.82967913
0
Check if a given bbUser object is stored in the database. Currently only checks if a user with the same ID is stored in the database, not if the objects are the same.
def gmO_(YKHO, CBIr: bbUser.bbUser) -> bool: return YKHO.userIDExists(CBIr.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Okbp(YKHO) -> bool:\n xDcj = 'SELECT * \\n FROM Users \\n WHERE Username=?;'\n return len(YKHO.db.fetchall(xDcj, values=(YKHO.username,))) > 0", "def kinv(id, QTiD):\n NCls = aM69.connect()\n return NCls[id]['createdBy'] == QTiD", "def pyx_(YKHO, YEnM):\n ...
[ "0.66454977", "0.6629096", "0.6502776", "0.64873165", "0.6384", "0.63549405", "0.634741", "0.6321379", "0.63175", "0.63037634", "0.62980324", "0.6297806", "0.6245325", "0.62262326", "0.62138486", "0.62071496", "0.6190167", "0.6176963", "0.616143", "0.615577", "0.6141846", "...
0.7575999
0
Reset the stats for the user with the specified ID.
def qmWL(YKHO, id: int): id = YKHO.validateID(id) if not YKHO.userIDExists(id): raise KeyError('user not found: ' + str(id)) YKHO.users[id].resetUser()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tf3z(YKHO):\n YKHO.stats.reset()", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def BJld(YKHO):\n print('Reseting stats')\n YKHO.player_lives = YKHO.ai_stts.player_lives\n YKHO.score = 0\n YKHO.level = 1", "def txK3(YKHO):\n bD7m = 'https://habitica.com/api/v4/user/reset'\n return v5p...
[ "0.6416", "0.6416", "0.63771105", "0.6241124", "0.6069007", "0.6018874", "0.6008657", "0.5996576", "0.59836346", "0.59318155", "0.5928619", "0.5910059", "0.5876897", "0.58712983", "0.58664316", "0.58137023", "0.5787853", "0.5773324", "0.5766223", "0.5684285", "0.5558619", "...
0.694401
0
If a bbUser exists in the database with the requested ID, return it. If not, create and store a new bbUser and return it.
def dRMA(YKHO, id: int) -> auMM.bbUser: return YKHO.getUser(id) if YKHO.userIDExists(id) else YKHO.addUser(id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KacQ(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n return YKHO.users[id]", "def Nmnc(YKHO, id: int) -> auMM.bbUser:\n id = YKHO.validateID(id)\n if YKHO.userIDExists(id):\n raise KeyError('Attempted to add a user that is already in this bbUserDB')\n jCbj = auMM.bbUser.from...
[ "0.71380436", "0.7094037", "0.70649517", "0.6900218", "0.68044686", "0.67403007", "0.6731143", "0.67079204", "0.6696172", "0.6682262", "0.6681719", "0.6681719", "0.6681719", "0.6681719", "0.6681203", "0.666396", "0.6660379", "0.66603625", "0.6650168", "0.6632992", "0.6603484"...
0.797189
0
Fetch the bbUser from the database with the given ID.
def KacQ(YKHO, id: int) -> auMM.bbUser: id = YKHO.validateID(id) return YKHO.users[id]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def fetch_user(YKHO, id: utils.Intable) -> mv1M | None:\n lBD1 = LJG0(id=id, type=eBH2.Individual)\n return await YKHO._connection.fetch_user(lBD1)", "def bt8D(YKHO, id):\n return YKHO.users.get(id)", "def lyxB(id):\n return mv1M.query.get(int(id))", "def lyxB(id):\n return mv1M.query.ge...
[ "0.8142412", "0.7948193", "0.79404026", "0.79404026", "0.79404026", "0.79404026", "0.7924561", "0.7899446", "0.7896432", "0.7849403", "0.78431547", "0.78220767", "0.78131187", "0.7770938", "0.7769073", "0.77454466", "0.77377176", "0.7650907", "0.7642752", "0.7618635", "0.7615...
0.8525421
0
Serialise this bbUserDB into dictionary format.
def jtBC(YKHO, **B2fa) -> dict: nPrm = {} for id in YKHO.getIds(): try: nPrm[str(id)] = YKHO.users[id].toDict(**B2fa) except Exception as e: blrL.log('UserDB', 'toDict', 'Error serialising bbUser: ' + tTpl.__class__.__name__, trace=wVCK.format_exc(), eventType='USERERR') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W9nz(YKHO):\n Csk6 = {}\n Csk6['username'] = YKHO.username\n Csk6['level'] = YKHO.level\n Csk6['name'] = YKHO.name\n Csk6['email'] = YKHO.email\n Csk6['creation'] = YKHO.creation\n Csk6['update'] = YKHO.update\n Csk6['nsentences'] = YKHO.nsentences\n Csk6['nsessions'] = YKHO.nsession...
[ "0.73725003", "0.72896534", "0.71920073", "0.71753246", "0.716274", "0.7151962", "0.71234363", "0.7105887", "0.7040066", "0.69651514", "0.6952894", "0.6938799", "0.6933408", "0.6907724", "0.68980014", "0.68346447", "0.6777401", "0.67636013", "0.6733848", "0.67159617", "0.6711...
0.7482245
0
Construct a bbUserDB from a dictionaryserialised representation the reverse of bbUserDB.toDict()
def MJdd(Emd4, vhs6: dict, **B2fa) -> WTaE: oI_G = WTaE() for id in vhs6.keys(): oI_G.addUserObj(auMM.bbUser.fromDict(vhs6[id], id=int(id))) return oI_G
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, qHj0: dict) -> 'UserBase':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jtBC(YKHO, **B2fa) -> dict:\n nPrm = {}\n for id in YKHO.getIds():\n try:\n nPrm[str(id)] = YKHO.users[id].toDict(**B2fa)\n except Exception as e:\n blrL.log('UserDB', 'toDict...
[ "0.67769945", "0.6622561", "0.65516293", "0.63922143", "0.63320786", "0.62116504", "0.6042782", "0.6004884", "0.5900546", "0.5864641", "0.5853948", "0.578413", "0.5688235", "0.5666956", "0.56637603", "0.5660747", "0.5650265", "0.5648268", "0.56327444", "0.5618494", "0.560434"...
0.71973324
0
The shrink (softthresholding) operator, which is also the proximal operator for the L1norm. The shrink operator reducing the magnitudes of all entries in x by t, leaving them at zero if they're already less than t.
def mSbW(WKvO: np.ndarray, a1PO: float) -> oyIN.ndarray: return oyIN.sign(WKvO) * oyIN.maximum(oyIN.abs(WKvO) - a1PO, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fCX(Oa1e, khtY, XkN1):\n WKvO = Oa1e.get_node(khtY.input('X')[0])\n yDqo = a8US(WKvO).checked_type.dtype\n gwAu = fJ4t.const(khtY.attr('lambda'), dtype=yDqo)\n VNqG = Bchp.zeros_like(WKvO)\n yvT9 = Bchp.where(WKvO < -gwAu, WKvO + gwAu, VNqG) + Bchp.where(WKvO > gwAu, WKvO - gwAu, VNqG)\n Oa1...
[ "0.65450245", "0.6496893", "0.64630055", "0.6456143", "0.6226922", "0.61587155", "0.5946745", "0.5927948", "0.5875077", "0.57929087", "0.57728153", "0.5728194", "0.5728194", "0.5728194", "0.5629461", "0.5480745", "0.543062", "0.5420821", "0.54135394", "0.5374806", "0.53720266...
0.78240633
0
Does the user have the permission to publish a data.
def C2O8(CBIr): PxMx(CBIr, KOwb.PUBLISH_DATA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _U68(id, QTiD):\n NCls = aM69.connect()\n NKb7 = NCls[id]\n return CBIr.isAdmin(QTiD) or QTiD == NKb7['createdBy']", "def Cb6P(YKHO, QePW):\n if not gCuF.PUBLISHER_CODE:\n return False\n return super().has_add_permission(QePW)", "def qHTF(YKHO, QePW, tTee):\n return True", "def q...
[ "0.7401715", "0.68930787", "0.6854572", "0.68086797", "0.6761256", "0.67495507", "0.6707519", "0.6702206", "0.6684865", "0.66546744", "0.6624943", "0.66060966", "0.6596229", "0.65667605", "0.6543968", "0.6537075", "0.6512933", "0.65074724", "0.6503338", "0.64965105", "0.64941...
0.889468
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, bLEf): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Return a dataframe from a json file.
def qQXR(pmON): try: jQ3Z = tZVM.instance.spark.read.json(pmON) except IOError as error: G9jH.error(P1dF) raise return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMrX(Ux0P):\n with open(Ux0P, 'rt') as eHNT:\n Csk6 = qQXR.load(eHNT)\n return rLdf.DataFrame.from_records(Csk6['dataset'])", "def UlWi(VqRE):\n return rLdf.read_json(VqRE)", "def UlWi(YKHO, VqRE: str) -> rLdf.DataFrame:\n with open(VqRE) as eHNT:\n YKHO.data = qQXR.load(eHNT)\n ...
[ "0.819254", "0.7823375", "0.78119093", "0.77657497", "0.75791085", "0.75206435", "0.7203945", "0.7167869", "0.71065944", "0.7062188", "0.6910279", "0.6895788", "0.6882497", "0.68209225", "0.67718965", "0.67359996", "0.6689824", "0.666205", "0.6643767", "0.66075075", "0.659852...
0.7011017
10
Return a dataframe from a parquet file.
def i7db(pmON, *qIxc, **B2fa): try: jQ3Z = tZVM.instance.spark.read.parquet(pmON, *qIxc, **B2fa) except IOError as error: G9jH.error(P1dF) raise return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w6La(KAfx):\n jQ3Z = rLdf.read_parquet(KAfx)\n return jQ3Z", "def YUHd(YKHO, Ux0P):\n if Ux0P is None:\n raise ValueError('File name is None')\n YKHO.logger.info('# Reading a Parquet file ' + Ux0P)\n CRBj = PeYM(YKHO.spark)\n return CRBj.read.parquet(Ux0P)", "def vXOu(i0XC: PathLik...
[ "0.8080801", "0.7680819", "0.75473124", "0.71808255", "0.70952356", "0.66877913", "0.65009177", "0.64348716", "0.642109", "0.64079404", "0.63399845", "0.63359207", "0.62860304", "0.624169", "0.6233218", "0.62246", "0.6219255", "0.61767995", "0.61527157", "0.6148135", "0.61377...
0.7916956
1
Save the trained vectorizer for future use.
def mRE8(YKHO, pmON='models/TFIDFVectorizer.pkl'): with open(pmON, 'wb') as eHNT: t2lc.dump(YKHO.vectorizer, eHNT) print('Pickled vectorizer at {}'.format(pmON))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b2Ed(YKHO, OPuR):\n with open(OPuR, 'w') as ytgA:\n qQXR.dump(YKHO._vectorizer.to_serializable(), ytgA)", "def xkzz(YKHO, Ynwl):\n with open(Ynwl, 'wb') as nDEB:\n t2lc.dump(YKHO, nDEB)", "def lac1(YKHO):\n YKHO.check_model()\n with open(YKHO.filename, 'wb') as nUeQ:\n t2lc...
[ "0.76096624", "0.73109317", "0.7164249", "0.70169145", "0.66974753", "0.6566269", "0.6522058", "0.64056844", "0.63931715", "0.6316061", "0.6313552", "0.6313552", "0.6276785", "0.62720037", "0.623774", "0.62127876", "0.62069654", "0.6184085", "0.6171327", "0.61685747", "0.6127...
0.7430699
1
Get the x, y, z, yaw, pitch and roll of the blender object.
def sK6D(YKHO): WKvO = YKHO.position_3d.x LVAh = YKHO.position_3d.y epBp = YKHO.position_3d.z xTkQ = YKHO.position_3d.yaw H2HG = YKHO.position_3d.pitch rKSe = YKHO.position_3d.roll YKHO._segments = [] hdte = 0 for aUGN in YKHO.robot_parent.blender_obj.children: if str(aUGN) =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WD0P(YKHO) -> tuple:\n return (YKHO.getHeading(), YKHO.getPitch(), YKHO.getRoll())", "def jH54(YKHO):\n WKvO, LVAh = YKHO._coordinates\n return (WKvO, LVAh, YKHO.__heading)", "def QyPm(YKHO):\n oeNL, XyWv = XP5J.getBasePositionAndOrientation(YKHO.pybullet_id)\n URbk = XP5J.getEulerFromQuater...
[ "0.63418734", "0.6309489", "0.6254961", "0.6254961", "0.6254961", "0.6217224", "0.60536915", "0.6044034", "0.6017542", "0.6001574", "0.5949086", "0.5943164", "0.58633053", "0.58633053", "0.58574796", "0.58550453", "0.5844058", "0.5816276", "0.58038104", "0.576194", "0.5691996...
0.0
-1
Initialize the client. Requires a BuiltWith API key. Optionally takes in the API version. If no API version is specified, a default of `12` is used.
def FIMM(YKHO, H5ew, clva=12): if clva not in AaEu.keys(): raise Wp2s(dLPk % clva) YKHO.key = H5ew YKHO.api_version = clva
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zb3C: str, Cxz5: str, R_du: str, DpZH: str):\n super().__init__(zb3C, Cxz5, R_du, DpZH)", "def FIMM(YKHO, V2fd=None, w_Ya=None, NKRf=None, clva=None, dsE5=False, kMyc=None):\n wOGa = y8cn(app_key=V2fd, app_sid=w_Ya, base_url=NKRf, api_version=clva, debug=dsE5, proxy=kMyc)\n YKHO.api_clien...
[ "0.7145586", "0.70431364", "0.6840511", "0.6745353", "0.6723974", "0.67110234", "0.66834116", "0.6665458", "0.661136", "0.66090286", "0.6545305", "0.6392615", "0.631137", "0.62908876", "0.62697035", "0.6265824", "0.6171141", "0.61463577", "0.61458045", "0.61331064", "0.611292...
0.68917906
2
The name of the resource group. The name is case insensitive.
def TRLE(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'resource_group_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')", "def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_grou...
[ "0.8591833", "0.83624226", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.8203686", "0.81753516", "0.80862474", "0.80862474", "0.80862474", "0.80862474", "0.80862474", "0.808624...
0.8088815
48
The name of the Application Insights component resource.
def kFeU(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'resource_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO.raw_resource['name']", "def mWFP(YKHO):\n return YKHO.resource['metadata']['name']", "def mWFP(YKHO) -> str:\n if YKHO._name is None:\n return 'AutoML Metric'\n else:\n return YKHO._name", "def mWFP(YKHO):\n return YKHO.manifest['name']", "def yr70...
[ "0.6259344", "0.62363994", "0.61032945", "0.60528404", "0.6051231", "0.60437256", "0.60437256", "0.60114765", "0.5920258", "0.5920258", "0.58952844", "0.58867717", "0.58867717", "0.5839472", "0.57963365", "0.5767712", "0.57452095", "0.5737283", "0.5734956", "0.5734956", "0.57...
0.54356354
74
Getter of the user id.
def Ad9r(YKHO): return YKHO.id_user
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.user_id", "def unpH(YKHO) -> int:\n return YKHO.user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return YKHO._user_id", "def uJjO(YKHO):\n return ...
[ "0.8740212", "0.8674682", "0.8466421", "0.8466421", "0.8466421", "0.8466421", "0.8466421", "0.84438294", "0.84438294", "0.8365442", "0.8362073", "0.83430153", "0.8284895", "0.8284895", "0.8263458", "0.8238554", "0.82361627", "0.82293457", "0.8197898", "0.8093313", "0.80851257...
0.8879019
0
Method to check if a movie have been already seen for the given user.
def rt7j(YKHO, fjv7): if fjv7 in YKHO.seen: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XKYM(NtEF: str, xTXs: int) -> bool:\n with UzPC:\n xNb3 = UzPC.execute(o4Tn, (xTXs,)).fetchone()\n qFEQ = UzPC.execute(HV_9, (NtEF,)).fetchone()\n if qFEQ is not None and xNb3 is not None:\n UzPC.execute(Jo7F, (qFEQ[0], xTXs))\n return True\n return False", ...
[ "0.62960756", "0.6231976", "0.609444", "0.6070275", "0.60486317", "0.6042864", "0.6039808", "0.6021467", "0.5981415", "0.59635645", "0.5831276", "0.58286434", "0.5827806", "0.5819191", "0.579271", "0.5785383", "0.57851636", "0.5760467", "0.57585835", "0.57534826", "0.5748277"...
0.7359592
0
Iteratively splits data with stratification. This function is based on the iterative_train_test_split function from the skmultilearn.model_selection package, but uses pandas dataframes as input and output.
def egx4(EcVT, LVAh, NI2E): D0Sm = zS2c(n_splits=2, order=2, sample_distribution_per_fold=[NI2E, 1.0 - NI2E]) mk3A, K7Us = next(D0Sm.split(EcVT, LVAh)) Lcqa, VJv0 = (EcVT.iloc[mk3A], LVAh[mk3A]) Z5wO, H96n = (EcVT.iloc[K7Us], LVAh[K7Us]) return (Lcqa, VJv0, Z5wO, H96n)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(QBPu, Ikji):\n return bHtP(QBPu, Ikji, test_size=0.2, random_state=42, stratify=Ikji)", "def lpha(jQ3Z, fU4n=None):\n if fU4n == None:\n EvQg, QOe9 = bHtP(jQ3Z, test_size=0.3, random_state=123)\n EvQg, xzCw = bHtP(jQ3Z, test_size=0.3, random_state=123)\n else:\n EvQg, QOe9 ...
[ "0.7940847", "0.77700734", "0.73608685", "0.72325754", "0.7231763", "0.7201539", "0.7191493", "0.71370035", "0.7097345", "0.70749754", "0.7068613", "0.70635283", "0.703297", "0.7010203", "0.69998264", "0.6987067", "0.69493777", "0.6917207", "0.69099796", "0.6895471", "0.68920...
0.682493
24
Quick way of getting all hosts or a subset for this stack. (list); list of primary keys of hosts in this stack (QuerySet);
def TDhs(YKHO, ur7m=None): if not ur7m: return YKHO.hosts.all() return YKHO.hosts.filter(id__in=ur7m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(YKHO, **B2fa):\n return YKHO.getResourceManager().getSdk().hosts.list(**B2fa)", "def TDhs(YKHO):\n raise NotImplementedError", "def Of0F(YKHO):\n return YKHO._get_list_field('hosts', lambda WKvO: u0HK(WKvO))", "def Of0F(YKHO):\n return YKHO._get_list_field('hosts', lambda WKvO: u0HK(WKvO...
[ "0.6386337", "0.6371365", "0.63523024", "0.63523024", "0.6272247", "0.6215245", "0.6201035", "0.6201035", "0.616472", "0.6138865", "0.6128013", "0.6115967", "0.6107518", "0.60520285", "0.6051724", "0.60374975", "0.6008605", "0.6000928", "0.599559", "0.59938854", "0.598613", ...
0.6725173
0
Compute the KL divergence KL[q || p] between q(x) = N(q_mu, q_sqrt^2) and p(x) = N(0, K) We assume N multiple independent distributions, given by the columns of q_mu and the last dimension of q_sqrt. Returns the sum of the divergences. q_mu is a matrix (M x N), each column contains a mean. q_sqrt can be a 3D tensor (M ...
def US6o(Wmca, g_0K, nMvt=None): if nMvt is None: AX3l = True Cwt5 = Wmca else: AX3l = False Gbf1 = ZylS.cholesky(nMvt) Cwt5 = ZylS.matrix_triangular_solve(Gbf1, Wmca, lower=True) if g_0K.get_shape().ndims == 2: A2lD = True ACWZ = ZylS.shape(g_0K)[1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(YKHO, qfME, P0tT):\n DvZS = qfME[:, :, 0]\n Cq55 = qfME[:, :, 1]\n cTBY = P0tT[:, :, 0]\n BcQb = P0tT[:, :, 1]\n rUEL = ht2j.exp(Cq55)\n vaTL = ht2j.exp(BcQb)\n t1lM = BcQb - Cq55 + (rUEL ** 2 + (DvZS - cTBY) ** 2) / (2.0 * vaTL ** 2) - 0.5\n return t1lM.sum(dim=-1)", "def tatQ(V...
[ "0.71765184", "0.7019512", "0.6987265", "0.69375336", "0.69356835", "0.6904298", "0.689787", "0.6729169", "0.6645247", "0.65512383", "0.6495925", "0.64693046", "0.6374325", "0.63563484", "0.6350259", "0.6266845", "0.6263321", "0.6241391", "0.62203217", "0.6207716", "0.6193783...
0.67699784
7
test that timestamp is really remembered
def I0AZ(YKHO): kIqZ.beaker_cache = rxxd ClQE = LKdF('/deep/a.css', '/b.css', combined=True, minified=True, timestamp=True) ITS7.sleep(1) SUjN = LKdF('/deep/a.css', '/b.css', combined=True, minified=True, timestamp=True) YKHO.assertEqual(ClQE, SUjN) b5lP = LKdF('/deep/a.js', '/b.js', combined=Tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d8tr(YKHO, E3oo):\n pass", "def g9hZ(YKHO, E3oo):\n return int(ITS7.time()) > E3oo + YKHO.__ttl", "def H1hF(YKHO, Ehsq):\n Ehsq.setenv('ENABLE_AUTO_EXPIRE', 'true')\n Ehsq.setenv('INACTIVITY_AGE', '10')\n _EYN = qcWV.datetime(2019, 1, 1, tzinfo=qcWV.timezone.utc)\n Ymu7 = qcWV.datetime(20...
[ "0.7103609", "0.7088542", "0.6672816", "0.65801454", "0.64244413", "0.641137", "0.64082605", "0.63636667", "0.63623965", "0.6352042", "0.6347807", "0.6344862", "0.6342813", "0.6341419", "0.6334243", "0.6309578", "0.62998533", "0.62858075", "0.62832284", "0.6267803", "0.624547...
0.59452564
49
Check that the response is not cached when the behavior is disabled.
def dE05(YKHO): hGN5 = YKHO.unique() VIzB = [] def NMoC(YKHO, QePW, *qIxc, **B2fa): VIzB.append(None) return Xqgu.HttpResponse(hGN5) YKHO.assertViewBehavior({'cache_page': False, 'get': NMoC}, repeat=2, status_code=200, content=hGN5) YKHO.assertEqual(len(VIzB), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True", "def nWGR(YKHO):\n hGN5 = YKHO.unique()\n YKHO.assertViewBehavior({'never_cache': False, 'get': hGN5}, status_code=200, content=hGN5, headers_exclude='Cache-Control')", "def uSKA(YKHO, geh0: Un...
[ "0.81057525", "0.76422733", "0.75728554", "0.7479882", "0.7288173", "0.7107524", "0.7067377", "0.7039522", "0.68838865", "0.6812274", "0.676797", "0.6756619", "0.6708938", "0.6700436", "0.6537605", "0.65188557", "0.65129423", "0.65013593", "0.64976686", "0.6464215", "0.645495...
0.7505479
3
Check that the default HTTP method name protection takes precedence.
def I_OO(YKHO): YKHO.assertViewBehavior(status_code=405)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYm3(YKHO, QePW, KzJa=None):\n if KzJa is None:\n KzJa = []\n jZqH = QePW.method.lower()\n itRq = ','.join(map(str.upper, KzJa))\n if jZqH == 'options':\n geh0 = igJ6(itRq)\n geh0['Allow'] = itRq\n raise yxqa(response=geh0)\n if not jZqH in KzJa:\n geh0 = Xqgu....
[ "0.7103364", "0.70686543", "0.70461714", "0.69518584", "0.68466485", "0.6784883", "0.6704716", "0.67026776", "0.66991746", "0.6694735", "0.66651976", "0.65623546", "0.65139705", "0.64794755", "0.64261013", "0.64012486", "0.63546383", "0.6338937", "0.6317658", "0.63083893", "0...
0.0
-1
Check that the defaults do not set any cache control headers on the response.
def DrQd(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'get': hGN5}, status_code=200, content=hGN5, headers_exclude='Cache-Control')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True", "def TIaq(geh0):\n geh0.cache_control.max_age = 0\n geh0.cache_control.no_cache = True\n geh0.cache_control.must_revalidate = True\n geh0.cache_control.no_store = True\n return geh0", ...
[ "0.7360473", "0.7291879", "0.72360945", "0.7173469", "0.704552", "0.70238", "0.69512165", "0.68105143", "0.67153543", "0.6714631", "0.6711166", "0.6690023", "0.66247284", "0.6617076", "0.6613454", "0.6605222", "0.6562822", "0.6557137", "0.6548916", "0.6548916", "0.6537977", ...
0.6132521
68
Check that the public cache control header is set on the resopnse.
def nyyu(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_public': True, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'public'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TyNi(YKHO):\n\n def chpw(TyNi):\n if not TyNi and 'surrogate-control' in YKHO.headers:\n del YKHO.headers['surrogate-control']\n elif TyNi:\n YKHO.headers['Surrogate-Control'] = TyNi.to_header()\n return LAY0(YKHO.headers.get('surrogate-control'), chpw, OA2m)", "def ...
[ "0.6707758", "0.6568386", "0.64592665", "0.6406012", "0.63427687", "0.6286725", "0.6247568", "0.6247568", "0.6219212", "0.61471593", "0.6057611", "0.59990674", "0.5977669", "0.5969899", "0.5969899", "0.5955601", "0.59221154", "0.5918134", "0.59029275", "0.589787", "0.5883854"...
0.6245776
8
Check that the no_cache cache control header is set on the resopnse.
def qTsL(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_no_cache': True, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'no-cache'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True", "def vmtv(geh0):\n geh0.headers['Cache-Control'] = 'no-store, no-cache, must-revalidate, max-age=0'\n return geh0", "def wyyA():\n qGiH = QePW.headers.get('If-Modified-Since') or QePW.header...
[ "0.7414972", "0.6805398", "0.67788416", "0.67497075", "0.6657216", "0.6639991", "0.6516709", "0.6489518", "0.6489176", "0.64887327", "0.644979", "0.6448329", "0.6426001", "0.63928515", "0.63785326", "0.6366645", "0.63470674", "0.63470674", "0.63428575", "0.6316757", "0.628442...
0.7025476
1
Check that the no_transform cache control header is set on the resopnse.
def Hdy1(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_no_transform': True, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'no-transform'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True", "def dN4V(YKHO):\n\n def T_2m(qv1X):\n _hkX = YKHO.client.get(qv1X.path_info)\n _hkX['Date'] = 'Sat, 12 Feb 2011 17:35:44 GMT'\n _hkX['Last-Modified'] = 'Sat, 12 Feb 2011 17:35:...
[ "0.6575073", "0.62584645", "0.6253825", "0.61756957", "0.6135134", "0.61045665", "0.6085116", "0.6053426", "0.6017882", "0.58883804", "0.5885764", "0.5883365", "0.58609915", "0.58609915", "0.577764", "0.5760166", "0.57544553", "0.5737813", "0.5737813", "0.5734081", "0.5727316...
0.72058463
0
Check that the must_revalidate cache control header is set on the resopnse.
def Tq3M(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_must_revalidate': True, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'must-revalidate'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVrz(YKHO, QePW, geh0=None):\n return qed_.OK <= geh0.status_code < qed_.BAD_REQUEST if geh0 else True", "def INNJ(YKHO, uTtn, ajCK=None):\n if 'If-Modified-Since' in YKHO.request.headers:\n JZs_ = YKHO.request.headers['If-Modified-Since']\n ZDlB = ITS7.mktime(bj_b(JZs_))\n return ...
[ "0.70986366", "0.67210567", "0.6683338", "0.6584366", "0.6584366", "0.6293861", "0.62422216", "0.62041104", "0.6199004", "0.6124973", "0.6101025", "0.608115", "0.6053864", "0.60428745", "0.60428745", "0.6038889", "0.6029584", "0.6014237", "0.600515", "0.5989785", "0.59765875"...
0.7850928
0
Check that the max_age cache control header is set on the resopnse.
def anYg(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_max_age': 1, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'max-age=1'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pL9a(YKHO, cb_Q):\n Mkmy = cb_Q.get(YKHO.url)\n assert YKHO.cache.get(YKHO.url) == Mkmy.raw\n Mkmy = cb_Q.get(YKHO.url, headers={'Cache-Control': 'max-age=3600'})\n assert Mkmy.from_cache is True\n _hkX = YKHO.cache.get(YKHO.url)\n _hkX.headers['date'] = 'Tue, 15 Nov 1994 08:12:31 GMT'\n M...
[ "0.72107726", "0.6873612", "0.68624157", "0.66889685", "0.6536094", "0.6532378", "0.6311946", "0.62280434", "0.6197227", "0.61068356", "0.61068356", "0.6103469", "0.60647094", "0.6050893", "0.5995915", "0.5928432", "0.58629507", "0.58624345", "0.5841793", "0.5827531", "0.5821...
0.7228714
0
Check that the s_maxage cache control header is set on the response.
def M2S_(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'cache_control_s_maxage': 1, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 's-maxage=1'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anYg(YKHO):\n hGN5 = YKHO.unique()\n YKHO.assertViewBehavior({'cache_control_max_age': 1, 'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'max-age=1'})", "def pL9a(YKHO, cb_Q):\n Mkmy = cb_Q.get(YKHO.url)\n assert YKHO.cache.get(YKHO.url) == Mkmy.raw\n Mkmy = cb_Q....
[ "0.7056533", "0.69589156", "0.6764175", "0.6662597", "0.6601882", "0.6553718", "0.6453501", "0.640816", "0.6405672", "0.63611406", "0.63209236", "0.63209236", "0.63096035", "0.6251666", "0.6251313", "0.6150831", "0.6150831", "0.6129807", "0.6030514", "0.6019444", "0.60143363"...
0.71437556
0
Check that the defaults set the never cache control headers on the response.
def DrQd(YKHO): hGN5 = YKHO.unique() YKHO.assertViewBehavior({'get': hGN5}, status_code=200, content=hGN5, headers_exact={'Cache-Control': 'max-age=0'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dN4V(YKHO):\n\n def T_2m(qv1X):\n _hkX = YKHO.client.get(qv1X.path_info)\n _hkX['Date'] = 'Sat, 12 Feb 2011 17:35:44 GMT'\n _hkX['Last-Modified'] = 'Sat, 12 Feb 2011 17:35:44 GMT'\n _hkX['Expires'] = 'Sun, 13 Feb 2011 17:35:44 GMT'\n _hkX['Vary'] = 'Cookie'\n _hkX['...
[ "0.74749523", "0.730792", "0.72691476", "0.7204676", "0.7196334", "0.71114993", "0.70886433", "0.7050699", "0.70001507", "0.69911003", "0.69644284", "0.69644284", "0.68751776", "0.68522364", "0.6808271", "0.6753384", "0.67490506", "0.672789", "0.67168194", "0.66634655", "0.66...
0.64401513
65
Gets the next expiration date for controller init
def Hrl5(): JRYC = qcWV.now() iTdx = rLdf.bdate_range(JRYC.strftime('%Y-%m-%d'), (JRYC + fCoM(days=20)).strftime('%Y-%m-%d'), freq=rLdf.offsets.CustomBusinessDay(calendar=KqAg())).tolist() N850 = [WKvO.strftime('%Y-%m-%d') for WKvO in iTdx if WKvO.weekday() == 4][0] return N850
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hrl5(YKHO):\n return YKHO.expiration_date", "def ju4O():\n return rIAI.now() + qcWV.timedelta(days=Vmw8)", "def b2y6(YKHO) -> qcWV:\n return YKHO.firstAccessDate + fCoM(seconds=YKHO.expirePeriodInSeconds)", "def SzDR():\n return rIAI.now() + PtXs.EXPIRY_TOKEN_DELTA", "def ad72(YKHO) -> str:...
[ "0.7094592", "0.7065402", "0.69285613", "0.69055295", "0.689841", "0.68810546", "0.673245", "0.6552515", "0.6523685", "0.6479755", "0.64234036", "0.63735986", "0.6339951", "0.63121927", "0.63121927", "0.62286556", "0.6214449", "0.62109494", "0.6199436", "0.6199257", "0.619664...
0.5652823
51
Create your Flask app here, with any configuration you need
def LUif(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(YKHO):\n YKHO.app = L2w0(__name__, instance_relative_config=True)\n YKHO.app.config.from_mapping(SECRET_KEY='!ZNeverSayNever116Z!', MONGODB_SETTINGS={'host': 'mongodb://localhost/opc_integrity'})\n aTj0(YKHO.app)\n iAwL.init_app(YKHO.app)", "def Nd3k() -> L2w0:\n bo34.info('creating flask...
[ "0.8607028", "0.8580267", "0.84813267", "0.8429017", "0.8415944", "0.8400027", "0.83875513", "0.83820134", "0.8361291", "0.8326353", "0.8321436", "0.8311477", "0.83113503", "0.8264292", "0.82542884", "0.82488364", "0.82475644", "0.82314956", "0.82283074", "0.8227069", "0.8216...
0.0
-1
Checks if a HTTP 404 returned e.g. resp = self.client.get("/") self.assert404(resp)
def nguk(YKHO, geh0): YKHO.assertTrue(geh0.status_code == 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3BG(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 404)", "def nguk(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 404)", "def mQ_b(YKHO):\n geh0 = YKHO.client.get('/testPage404')\n YKHO.assertEqual(geh0.status_code, 404)", "def v4ew(YKHO):\n bD7m = YKHO.baseurl + '/do-not-im...
[ "0.9120416", "0.8772316", "0.83236855", "0.8294703", "0.8184818", "0.8164809", "0.8145341", "0.8111421", "0.8110962", "0.81032133", "0.80804664", "0.80263186", "0.801481", "0.8005329", "0.79936945", "0.79776466", "0.7923277", "0.79124707", "0.77978474", "0.7754215", "0.772836...
0.8698492
2
Delivers HTML for the index (search) page
def NMoC(YKHO): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TgwQ():\n return TvZl('/home/search.html')", "def d6pt(YKHO) -> Z8IP:\n return TvZl('index.jinja2')", "def d6pt(YKHO):\n return TvZl('index.html')", "def dkPU():\n return TvZl('page_query.html', search_label=_k1G)", "def d6pt(YKHO):\n return YKHO.html", "def d6pt(QePW):\n L03z = H6V...
[ "0.7677268", "0.73201054", "0.72925377", "0.7237074", "0.7205405", "0.7118157", "0.7075616", "0.7043515", "0.7043515", "0.7014733", "0.7010515", "0.70035577", "0.6989658", "0.6979827", "0.6978994", "0.69691384", "0.69691384", "0.6959514", "0.6951294", "0.6951294", "0.6951294"...
0.66266
98
Configures CUDA environment variable and returns tensorflow GPU config.
def Z8qy(wqL3): Hy7s.environ['CUDA_VISIBLE_DEVICES'] = wqL3 jQY2 = ZylS.ConfigProto() jQY2.gpu_options.allow_growth = True return jQY2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xaHj():\n try:\n P06F = qCQm.getFirstAvailable(order='first', maxLoad=0.7, maxMemory=0.7, attempts=1, interval=10)\n seJA = P06F[0]\n Hy7s.environ['CUDA_DEVICE_ORDER'] = 'PCI_BUS_ID'\n Hy7s.environ['CUDA_VISIBLE_DEVICES'] = str(seJA)\n print(f'\\n GPU Found! running on GPU...
[ "0.7806248", "0.71696466", "0.7148312", "0.7142579", "0.69135433", "0.686044", "0.6859421", "0.6798698", "0.6659943", "0.66523975", "0.6578853", "0.64233935", "0.6382924", "0.63151455", "0.62676334", "0.6249967", "0.6245296", "0.620838", "0.6173646", "0.6164236", "0.61608374"...
0.78912264
0
Create baseline convolutional recurrent model. Arguments
def Vc_g(KUnM, tejx, hr1G, oug5, gF8_, Ybg9): pKvt = X6a0(shape=(259, gF8_, 1)) WKvO = yHwh(KUnM, (3, 3), padding='same', activation='relu', use_bias=oug5)(pKvt) WKvO = BzBX(pool_size=(1, 5))(WKvO) WKvO = yHwh(KUnM, (3, 3), padding='same', activation='relu', use_bias=oug5)(WKvO) WKvO = BzBX(pool_siz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3M3(Emd4: Type['ResNet'], *, _qKk: int, fOZ4: int, wVW3: int, lwMU: int, AGZ1: float, scah: float, F1RG: int) -> 'ResNet':\n return Emd4(d_in=_qKk, n_blocks=fOZ4, d_main=wVW3, d_hidden=lwMU, dropout_first=AGZ1, dropout_second=scah, normalization='BatchNorm1d', activation='ReLU', d_out=F1RG)", "def gdhe(K...
[ "0.647522", "0.6304403", "0.6284953", "0.6194349", "0.60414153", "0.5895362", "0.587735", "0.58602476", "0.58557093", "0.5830293", "0.5820108", "0.5811813", "0.5765692", "0.576528", "0.5761624", "0.57612926", "0.5757742", "0.5744773", "0.573896", "0.57358533", "0.573499", "...
0.64495075
1
Update the node Weights.
def MyUA(YKHO, eL49, WTkW, fqnS, cVZJ): pImw = YKHO.get_nodeDistance(cVZJ) liMP = oyIN.exp(-pImw * pImw / (2 * WTkW * WTkW)) if liMP > 0: for YRbF in range(len(YKHO.weights)): YKHO.weights[YRbF] = YKHO.weights[YRbF] - liMP * fqnS * (YKHO.weights[YRbF] - eL49[YRbF])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n pass", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()", "def MyUA(YKHO):\n VH1Q = YKHO.in_edges\n for D70y in VH1Q:\n upAO = D70y.w...
[ "0.7578588", "0.75189555", "0.71403605", "0.71005577", "0.7062587", "0.69478846", "0.6734397", "0.6722941", "0.6722521", "0.66968465", "0.6692374", "0.6667497", "0.6484811", "0.6466809", "0.6404177", "0.63912404", "0.6376099", "0.6338962", "0.63102174", "0.6305071", "0.630327...
0.0
-1
Update the node Weights.
def yq8R(YKHO, eL49, WTkW, fqnS, cVZJ): m4iD = 8 pImw = YKHO.get_nodeDistance(cVZJ) liMP = oyIN.exp(-pImw * pImw / (2 * WTkW * WTkW)) if liMP > 0 and pImw > 0: uSbu = int(round(liMP * fqnS + 0.5)) if uSbu < 1: uSbu = 1 print('oops no change: ' + str(pImw), 'Gauss:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value", "def MyUA(YKHO):\n pass", "def MyUA(YKHO):\n YKHO._weights = YKHO._weights + YKHO.update_weights_value\n YKHO.weights_clipping()", "def MyUA(YKHO):\n VH1Q = YKHO.in_edges\n for D70y in VH1Q:\n upAO = D70y.w...
[ "0.7578588", "0.75189555", "0.71403605", "0.71005577", "0.7062587", "0.69478846", "0.6734397", "0.6722941", "0.6722521", "0.66968465", "0.6692374", "0.6667497", "0.6484811", "0.6466809", "0.6404177", "0.63912404", "0.6376099", "0.6338962", "0.63102174", "0.6305071", "0.630327...
0.0
-1
Get a pydicom.FileDataset from the instance's Orthanc identifier
def eEvw(szGU: Orthanc, wOnp: str) -> cr3g.FileDataset: gnWe = szGU.get_instances_id_file(wOnp) return cr3g.dcmread(aKaX(gnWe))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eEvw(YKHO) -> cr3g.FileDataset:\n return gnPz.get_pydicom(YKHO.client, YKHO.id_)", "def dD7q(YKHO, Ilxn):\n tETI = YKHO.get_dataset_dir(Ilxn)\n if not Hy7s.path.isdir(tETI):\n return None\n return X16v.from_file(descriptor_file=Hy7s.path.join(tETI, ll0G), data_file=Hy7s.path.join(tETI, iSB...
[ "0.76758665", "0.6792178", "0.6289413", "0.628798", "0.62494963", "0.6189763", "0.6181921", "0.6159265", "0.6122643", "0.60905063", "0.6083762", "0.60353416", "0.6018338", "0.6012588", "0.59544116", "0.5922192", "0.5917395", "0.59086275", "0.5863918", "0.58565897", "0.5843114...
0.75693786
1
Turn off all LEDs.
def l4XF(vC9B): vC9B.do_static_colour(255, 0, 0, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QAmq(YKHO):\n for GDDk in f7Ob:\n YKHO.led_off(GDDk)\n G9jH.info('LED: ALL - Status: 0')", "def l4XF(YKHO):\n for agxD in YKHO.all:\n xi8C.output(agxD, 0)", "def Z_rv(YKHO):\n print('Turning the lights off')\n YKHO.led.all_off()\n YKHO.client.publish(uf2Z, nGxz)", "def Z_r...
[ "0.8682389", "0.85096216", "0.8233179", "0.78701323", "0.78341633", "0.7745513", "0.77019066", "0.75074905", "0.74071926", "0.7406597", "0.7396668", "0.7395751", "0.7395048", "0.7351189", "0.7350677", "0.73119456", "0.7311833", "0.7267839", "0.7256568", "0.7236224", "0.721898...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.7642627", "0.7417984", "0.7417116", "0.72703016", "0.7245068", "0.7244174", "0.72359973", "0.7221287", "0.72093123", "0.70574844", "0.68535876", "0.6785699", "0.6785369", "0.6770165", "0.6727407", "0.67198336", "0.67198336", "0.67198336", "0.67198336", "0.67198336", "0.671...
0.0
-1
Function to create a Flask instance for testing.
def LUif(YKHO): MynF = PeVI + '/remote_ui/www' YXON = MynF + '/static' qWqS = Iaei(args={'host': 'localhost', 'port': '5000', 'debug': True, 'mode': 'testing'}) return qWqS.app
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(zmu8=None) -> L2w0:\n P4t4 = L2w0('front-end-web-server', instance_relative_config=True)\n if zmu8 is None:\n U1Qf = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n PBUt = Hy7s.path.dirname(U1Qf)\n AeFH = Hy7s.path.join(PBUt, 'config.py')\n P4t4.config.from_pyfile(AeFH)\n ...
[ "0.800137", "0.79899365", "0.7917945", "0.7903484", "0.78777474", "0.7799609", "0.7797458", "0.77839214", "0.77667195", "0.77507985", "0.773824", "0.7732427", "0.7711934", "0.7660504", "0.7659221", "0.7613417", "0.7591966", "0.75756544", "0.756021", "0.75428635", "0.7511057",...
0.0
-1
Function to create a Flask instance for testing.
def LUif(YKHO): MynF = PeVI + '/remote_ui/www' YXON = MynF + '/static' qWqS = Iaei(args={'host': 'localhost', 'port': '5000', 'debug': True, 'mode': 'testing'}, template_folder=MynF, static_folder=YXON) return qWqS.app
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif(zmu8=None) -> L2w0:\n P4t4 = L2w0('front-end-web-server', instance_relative_config=True)\n if zmu8 is None:\n U1Qf = Hy7s.path.abspath(Hy7s.path.dirname(xAKo))\n PBUt = Hy7s.path.dirname(U1Qf)\n AeFH = Hy7s.path.join(PBUt, 'config.py')\n P4t4.config.from_pyfile(AeFH)\n ...
[ "0.8001913", "0.79912984", "0.7919605", "0.79042524", "0.7879039", "0.78006184", "0.779912", "0.7784838", "0.7769028", "0.7751926", "0.7739027", "0.7733947", "0.7712897", "0.7661446", "0.7659738", "0.7614846", "0.75935984", "0.75766546", "0.75618625", "0.75437117", "0.7512033...
0.0
-1
Check a given line to see if a move is valid. Return the squares that will change, if the move is valid, otherwise an empty list.
def oYFb(iBIi, WKvO, LVAh, Jw7X, eUWA): if not 0 <= WKvO + Jw7X + Jw7X < 8: return [] if not 0 <= LVAh + eUWA + eUWA < 8: return [] Jkam = iBIi.columns[WKvO + Jw7X] + iBIi.rows[LVAh + eUWA] Y_O7 = iBIi.columns[WKvO + Jw7X + Jw7X] + iBIi.rows[LVAh + eUWA + eUWA] if iBIi[Jkam] != -YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HMeC(oyg0, iBIi):\n return [MuIv for MuIv in VlLD.squares() if VlLD.is_legal(MuIv, oyg0, iBIi)]", "def SGVO(BZN_):\n return isinstance(BZN_, int) and BZN_ in VlLD.squares()", "def GQko(QTBn, BZN_):\n rdlD, fvDH = BZN_\n if rdlD not in [1, 2, 3] or fvDH not in [1, 2, 3]:\n print('Invalid ...
[ "0.6370445", "0.62957835", "0.6113358", "0.61125934", "0.59849495", "0.5977295", "0.5965192", "0.5934297", "0.59330297", "0.59321463", "0.5929608", "0.5929004", "0.5915414", "0.5898067", "0.58975315", "0.5873103", "0.5867404", "0.586026", "0.5846924", "0.58331126", "0.5830166...
0.7884284
0
Change pieces color according to the given squares
def gUkr(YKHO, o61b, dEWZ): for BHsk in dEWZ: YKHO.board[BHsk] = o61b
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y1EI(YKHO):\n for pe9u in YKHO.fleas.sprites():\n pe9u.square.change_color()", "def yMv1(a1PO, Rv0k):\n for YRbF in ['red', 'purple', 'hotpink', 'blue']:\n a1PO.color(YRbF)\n a1PO.forward(Rv0k)\n a1PO.left(90)", "def TrBp(Fyji):\n rdlD, fvDH = dQgj(Fyji)\n return c6c...
[ "0.74945563", "0.70106286", "0.66607684", "0.65294814", "0.64497787", "0.6353148", "0.6281977", "0.62021154", "0.61708444", "0.60909253", "0.6083564", "0.60631675", "0.60601044", "0.602275", "0.59414184", "0.5882508", "0.5834815", "0.5812058", "0.57959276", "0.57789", "0.5765...
0.62668204
7
Sets default root category id. Is set to 1, because the default root category is 1
def CwCY(): return 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LxdO(tk5Y: TreeNode):\n OPcR = [0]\n tkW9(tk5Y, OPcR)\n return OPcR[0]", "def FLwM(YKHO, WmM4=None):\n return YKHO.data.get('categories', [WmM4])[0]", "def tk5Y(YKHO) -> 'Category':\n if YKHO.parent:\n return YKHO.parent.root()\n else:\n return YKHO", "def mptB(YKHO, Ty9i,...
[ "0.65238833", "0.60481906", "0.5950954", "0.5714606", "0.5712186", "0.5594999", "0.55752224", "0.55726135", "0.5566532", "0.5562183", "0.55386394", "0.55160403", "0.5515742", "0.5502178", "0.5425077", "0.5389408", "0.5376485", "0.53576773", "0.5263281", "0.52428555", "0.52280...
0.82208395
0
read a json file directly into an object
def mIVO(FYKK): with open(FYKK, 'r') as hOYR: YEnM = qQXR.load(hOYR, object_hook=lambda Csk6: lakk(**Csk6)) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBvf(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n YEnM = qQXR.loads(eHNT.read())\n return YEnM", "def PSj2(Sd0C):\n with open(Sd0C, 'r') as eHNT:\n YEnM = qQXR.load(eHNT)\n return YEnM", "def MCoo(NqAa):\n object = qQXR.loads(NqAa)\n print(object)\n return object", "def...
[ "0.8234452", "0.8224244", "0.8179653", "0.810801", "0.8070145", "0.8070145", "0.8020177", "0.7981813", "0.79800755", "0.79516125", "0.79361403", "0.79361403", "0.79121983", "0.790699", "0.7869537", "0.78496486", "0.7820066", "0.7800198", "0.7795892", "0.77883345", "0.77602947...
0.77658606
20
Convert a scipy sparse matrix to a torch sparse tensor.
def FXf_(On0F): On0F = On0F.tocoo().astype(oyIN.float32) _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row, On0F.col)).astype(oyIN.int64)) hkxX = ht2j.from_numpy(On0F.data) ROpF = ht2j.Size(On0F.shape) return ht2j.sparse.FloatTensor(_0VL, hkxX, ROpF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TWjY(YKHO, SppC: sp.csr_matrix):\n SppC = SppC.tocoo()\n WKvO = ht2j.sparse.FloatTensor(ht2j.LongTensor(oyIN.array([SppC.row, SppC.col])), ht2j.FloatTensor(SppC.data.astype(oyIN.float32)), SppC.shape).to(YKHO.device)\n return WKvO", "def FXf_(On0F):\n _0VL = ht2j.from_numpy(oyIN.vstack((On0F.row,...
[ "0.83033675", "0.8148503", "0.8045674", "0.8032235", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.8029749", "0.80132157", "0.7997072", "0.7997072", "0.79769105", ...
0.7984944
22
Modifies self.heap to 'heapify' a new node
def Mhbv(YKHO, YRbF): _AKB = YKHO.parent(YRbF) while _AKB is not None and YKHO.heap[YRbF][1] < YKHO.heap[_AKB][1]: YKHO.switch(YRbF, _AKB) _AKB = YKHO.parent(_AKB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Q6kx: object) -> None:\n ixQc = YKHO.heap.length()\n ICDs = (ixQc - 1) // 2\n if ixQc == 0:\n YKHO.heap.append(Q6kx)\n else:\n YKHO.heap.append(Q6kx)\n while YKHO.heap.get_at_index(ixQc) < YKHO.heap.get_at_index(ICDs):\n YKHO.heap.swap(ixQc, ICDs)\n ...
[ "0.7368758", "0.7256856", "0.71981007", "0.70830905", "0.70596296", "0.7052933", "0.69609797", "0.6955587", "0.6944264", "0.69201875", "0.691447", "0.67921174", "0.670558", "0.670558", "0.670558", "0.66921777", "0.66847306", "0.66812456", "0.6663765", "0.66413444", "0.6616077...
0.0
-1
Modifies self.heap such that index is a root of a heap (bubble down)
def wsZt(YKHO, YRbF): CL9V = YKHO.find_smallest(YRbF) QAIN = YRbF while CL9V != QAIN: YKHO.switch(QAIN, CL9V) QAIN = CL9V CL9V = YKHO.find_smallest(CL9V)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vf6J(YKHO, d6pt):\n while d6pt:\n _AKB = YKHO._parent(d6pt)\n if YKHO._data[d6pt] < YKHO._data[_AKB]:\n YKHO.swap(d6pt, _AKB)\n d6pt = _AKB\n else:\n return", "def e55s(YKHO, d6pt):\n CD64 = (d6pt - 1) // 2\n while YKHO.store[d6pt].key < YKHO.sto...
[ "0.7791737", "0.7766719", "0.75886184", "0.74473083", "0.74288684", "0.73768574", "0.73337054", "0.727225", "0.723698", "0.72127444", "0.71719474", "0.71710014", "0.7146507", "0.71445376", "0.71445376", "0.7124536", "0.7057905", "0.70264316", "0.6930473", "0.6907069", "0.6878...
0.0
-1
Returns left child of node at n; None if there isn't a left_child
def cdj0(YKHO, exwG): if 2 * exwG + 1 >= len(YKHO.heap): return None else: return 2 * exwG + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XNuE(exwG):\n if exwG == None:\n return None\n while exwG.left:\n exwG = exwG.left\n return exwG", "def MFVY(YKHO, exwG: MazeCell) -> bhPX:\n if exwG.x == 0:\n return None\n else:\n return YKHO.get_node(exwG.x - 1, exwG.y)", "def LFlW(YKHO, exwG):\n return exwG...
[ "0.805531", "0.8024023", "0.7819353", "0.7786342", "0.77025276", "0.75769603", "0.7557661", "0.7511605", "0.749778", "0.72762555", "0.72099817", "0.7190135", "0.7172796", "0.7068378", "0.7064818", "0.69917893", "0.69912624", "0.69391996", "0.69372314", "0.69372314", "0.693026...
0.7845012
2
Returns right child of node at n; None if there isn't a right_child
def esTa(YKHO, exwG): if 2 * exwG + 2 >= len(YKHO.heap): return None else: return 2 * exwG + 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ux84(YKHO, exwG: MazeCell) -> bhPX:\n if exwG.x == YKHO._ncols - 1:\n return None\n else:\n return YKHO.get_node(exwG.x + 1, exwG.y)", "def esTa(YKHO, dQgj):\n aUGN = 2 * dQgj + 2\n if aUGN > len(YKHO.table) - 1:\n return None\n return aUGN", "def Tvdt(YKHO):\n if YKH...
[ "0.76178944", "0.7611006", "0.725117", "0.71613806", "0.71096224", "0.7073449", "0.69539064", "0.6897677", "0.6885739", "0.6885739", "0.68463993", "0.68296987", "0.6825695", "0.67875445", "0.6721572", "0.67042595", "0.6691901", "0.6611986", "0.65743893", "0.6552465", "0.64684...
0.7729437
0
1hot encodes a tensor
def fKLU(LVAh, jTqs): return oyIN.eye(jTqs, dtype='uint8')[LVAh]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def zGX0(YKHO, ezWE, OR2u):\n KLLm = oyIN.zeros((oyIN.multiply(*ezWE.shape), OR2u), dtype=oyIN.float32)\n KLLm[oyIN.arange(KLLm.shape[0]), ezWE.flatten()] = 1.0\...
[ "0.82578593", "0.8061468", "0.80140257", "0.7917851", "0.7914897", "0.7883416", "0.78429884", "0.78089696", "0.7765784", "0.77376443", "0.77376443", "0.7733915", "0.7728651", "0.77133274", "0.7686273", "0.76797515", "0.75851345", "0.7560708", "0.75560004", "0.75353223", "0.75...
0.0
-1
Test case for aws_service_api_flavor_get
def UMxx(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AdzY(YKHO):\n pass", "def uaSM(YKHO):\n geh0 = YKHO.flavors_client.get_flavor_details(YKHO.flavor_ref)\n k3Zu = geh0.entity\n YKHO.assertEqual(YKHO.flavor_ref, k3Zu.id)", "def LIzI(mWFP):\n return KVlU.flavors.find(name=mWFP)", "def LIzI(YKHO, QePW, mLXZ, jDnk):\n Bv0m = LIzI(jDnk)\n ...
[ "0.86479574", "0.7678447", "0.71027285", "0.70904493", "0.7076974", "0.6954673", "0.68324184", "0.6791326", "0.6621454", "0.657417", "0.65623415", "0.65623415", "0.6551517", "0.652183", "0.637626", "0.63374686", "0.63270867", "0.6284752", "0.62383753", "0.62356555", "0.622235...
0.9599665
0
Test case for aws_service_api_flavors_get
def AdzY(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UMxx(YKHO):\n pass", "def aSnm(YKHO):\n bD7m = '%s/flavors/detail' % YKHO.catalog['compute']\n Ylbp = YKHO.get(bD7m)\n if Ylbp['status'] == 200:\n return qQXR.loads(Ylbp['body'])['flavors']\n else:\n na1r.error('Get flavors failed: %s %s %s' % (Ylbp['status'], Ylbp['reason'], Ylb...
[ "0.8574573", "0.7565045", "0.714905", "0.71012104", "0.70156753", "0.7013291", "0.68955284", "0.6883247", "0.6825781", "0.6584661", "0.65827054", "0.6564486", "0.64388686", "0.64029205", "0.6390174", "0.6388977", "0.63272315", "0.6317298", "0.6264503", "0.62626445", "0.620792...
0.95660037
0
Test case for aws_service_api_network_subnets_get
def VryS(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VvNk(YKHO):\n bD7m = '%s/v2.0/subnets' % YKHO.catalog['network']\n Ylbp = YKHO.get(bD7m)\n if Ylbp['status'] == 200:\n return qQXR.loads(Ylbp['body'])['subnets']\n else:\n na1r.error('Get subnets failed: %s %s %s' % (Ylbp['status'], Ylbp['reason'], Ylbp['body']))\n raise mM00(Y...
[ "0.8326366", "0.8207443", "0.77458423", "0.773097", "0.76437336", "0.7635327", "0.75836563", "0.747489", "0.73467875", "0.73467875", "0.731024", "0.72891515", "0.7184063", "0.7079082", "0.70580095", "0.69772714", "0.6942426", "0.6940601", "0.6905459", "0.68559116", "0.6825933...
0.9566142
0
Method to remove the stop words used in get_left_right_lists() This method does not work for Catalan language.
def g8pp(s2mk, rQow): if not OUrX or rQow.__eq__('Catalan'): return s2mk hlel = [] JCyR = di0c.words(rQow.lower()) for eOtH in s2mk: if eOtH not in JCyR: hlel.append(eOtH) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def g8pp(YKHO):\n YKHO.word_list = [GIN8 for GIN8 in YKHO.word_list if len(GIN8) > 1 and GIN8 not in jMRN]\n YKHO.word_list.sort()", "def A5fq(...
[ "0.8411666", "0.79770213", "0.7972711", "0.7953195", "0.7869722", "0.78230315", "0.7814691", "0.7796424", "0.773496", "0.77157074", "0.7703494", "0.7695574", "0.76948166", "0.76899654", "0.76872563", "0.76872563", "0.76872563", "0.76872563", "0.7681711", "0.76450783", "0.7597...
0.7611969
20
Method to get the tokens on the left and right of the target word. The result list of tokens will be filtered according to different settings.
def TWyA(yAmx, rQow): qdDf = Dhdw.word_tokenize(n9yW(yAmx.childNodes[0].nodeValue.replace('\n', ''))) jzTa = Dhdw.word_tokenize(n9yW(yAmx.childNodes[2].nodeValue.replace('\n', ''))) qdDf = g8pp(qdDf, rQow) jzTa = g8pp(jzTa, rQow) qdDf = cQ_D(qdDf) jzTa = cQ_D(jzTa) qdDf = cKm3(qdDf) jzTa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thS1(YKHO):\n return YKHO.get_starttokens() + YKHO.get_endtokens()", "def s2mk(YKHO):\n H0of = list(Hs6x.chain.from_iterable(list(YKHO.term_to_tokens.values())))\n s2mk = set(list(Hs6x.chain.from_iterable([dFss(WKvO) for WKvO in H0of])))\n return list(s2mk)", "def s2mk(YKHO):\n return tuple(...
[ "0.6641464", "0.65268147", "0.64090097", "0.62245643", "0.62148035", "0.6099981", "0.6064908", "0.60643786", "0.6055512", "0.60490125", "0.60379094", "0.6024344", "0.6016069", "0.59767205", "0.5975851", "0.59644526", "0.58826864", "0.58402985", "0.5834286", "0.581225", "0.580...
0.58912784
16
Current Location Accessor Function to get the current location for this path.
def Y45c(YKHO): return YKHO._current_loc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y45c(YKHO):\n return YKHO.enu_2_local()", "def Y45c():\n global current_location\n return ekLW", "def hbd3(YKHO):\n return YKHO.__location", "def hbd3(YKHO):\n return YKHO.location", "def hbd3(YKHO):\n return YKHO.location", "def QXqx(YKHO):\n return YKHO._Location", "def G3_s(...
[ "0.82560873", "0.8195256", "0.8011756", "0.79347134", "0.7920117", "0.78825885", "0.7742611", "0.7653603", "0.7653603", "0.7628534", "0.7536863", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.75195265", "0.7...
0.8912243
0
Column Number Accessor Accessor to get the column number of this location.
def iYZ_(YKHO): return YKHO._column_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iVRZ(YKHO) -> int:\n return YKHO._column", "def iYZ_(YKHO, oeNL, **VKhi):\n gLi5, vzYC = YKHO._get_column(oeNL, **VKhi)\n return (gLi5 + YKHO.LINE_NUM_BASE, vzYC + YKHO.COLUMN_NUM_BASE)", "def iVRZ(YKHO) -> qe4Y.Input[int]:\n return qe4Y.get(YKHO, 'column')", "def iVRZ(YKHO) -> qe4Y.Input[int...
[ "0.784214", "0.7419771", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.7389335", "0.71282494", "0.6932579", "0.6846213", "0.68336886", ...
0.82080346
0
Special function for != operator
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, RKYb):\n return not YKHO.__eq__(RKYb)", "def Vdqg(LFlW, _tIi):\n return not LFlW == _tIi", "def Vdqg(YKHO, Elif):\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n ...
[ "0.8012074", "0.7888594", "0.7855215", "0.7828879", "0.779572", "0.7794179", "0.7726372", "0.7711095", "0.76889086", "0.76813257", "0.7669499", "0.7669306", "0.76685494", "0.76685494", "0.76685494", "0.76685494", "0.7649886", "0.76432693", "0.7642552", "0.7642552", "0.762906"...
0.0
-1
Function to return user_song_list_count which has data of all users and the count of songs the user has listened to.
def ZvG6(): ReDQ = rLdf.read_csv('/home/sachet/Artificial Intelligence/song_data.csv') JEwk = rLdf.read_csv('/home/sachet/Artificial Intelligence/10000.txt', sep='\t', header=None, names=['user', 'song', 'play_count']) Z7o6 = ReDQ.groupby('song_id').max().reset_index() q1Et = rLdf.merge(JEwk, Z7o6, how=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DUZc(NtEF):\n return qXXJ(NtEF)['count']", "def XzN5(uJjO):\n return ygsU(f'SELECT rating_type, count FROM counts_by_rating_type WHERE user_id = {uJjO} AND count > 0')", "def H2yw(YKHO, YEnM: User):\n EghX = YEnM.id\n g6cT = hnIv.objects.filter(uploader=EghX, is_private=False, is_profile_image=...
[ "0.6450388", "0.62384784", "0.621782", "0.62003124", "0.6174985", "0.6170376", "0.61630744", "0.6100274", "0.60886586", "0.6022709", "0.59969884", "0.5996942", "0.5968442", "0.5961288", "0.5941371", "0.5929401", "0.5906927", "0.5895797", "0.5879137", "0.58469474", "0.5841158"...
0.5567753
39
Rotates the point around the X axis by the given angle in degrees.
def k8vV(YKHO, YylR): Wskb = epAf.radians(YylR) ey4b = epAf.cos(Wskb) vdar = epAf.sin(Wskb) LVAh = YKHO.y * ey4b - YKHO.z * vdar epBp = YKHO.y * vdar + YKHO.z * ey4b return M1rV(YKHO.x, LVAh, epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rdJT(YKHO, YylR):\n YylR *= oyIN.pi / 180\n return YKHO.transform(oyIN.matrix([[1, 0, 0], [0, oyIN.cos(YylR), -oyIN.sin(YylR)], [0, oyIN.sin(YylR), oyIN.cos(YylR)]]))", "def rdJT(YKHO, YylR: float):\n YKHO.vertices = list(PVS4.x_rotate(YylR).transform_vertices(YKHO.vertices))\n return YKHO", "d...
[ "0.7946597", "0.75407946", "0.7309387", "0.7100913", "0.70926636", "0.70239174", "0.6984318", "0.6948638", "0.6939483", "0.68799853", "0.687543", "0.6835535", "0.6781335", "0.6731041", "0.6605782", "0.65896446", "0.6499886", "0.64935017", "0.6486113", "0.64761364", "0.6472282...
0.64040524
27
Transforms this 3D point to 2D using a perspective projection.
def bNKA(YKHO, hkd_, gydM, fZkQ, U61h): aM8h = fZkQ / (U61h + YKHO.z) WKvO = YKHO.x * aM8h + hkd_ / 2 LVAh = -YKHO.y * aM8h + gydM / 2 return M1rV(WKvO, LVAh, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CsOI(YKHO, AU8u: Point3D) -> M1rV:\n WKvO, LVAh, epBp = AU8u\n tvjJ, Aike, ZV9d = YKHO._pos\n WKvO -= tvjJ\n LVAh -= Aike\n epBp -= ZV9d\n Jw7X = YKHO._cy * (YKHO._sz * LVAh + YKHO._cz * WKvO) - YKHO._sy * epBp\n eUWA = YKHO._sx * (YKHO._sy * (YKHO._sz * LVAh + YKHO._cz * WKvO) + YKHO._cy ...
[ "0.7485761", "0.7218691", "0.6950993", "0.6886399", "0.68223923", "0.66571516", "0.6603911", "0.65672183", "0.6495761", "0.64801496", "0.6474243", "0.6377783", "0.6376653", "0.6376052", "0.6375711", "0.63709044", "0.6364304", "0.63624424", "0.63512695", "0.63367707", "0.63009...
0.62003535
30
Custom repr for easier debugging.
def wHJl(YKHO): l5Ny = str(YKHO) Eg_3 = l5Ny[:31] + '..' + l5Ny[-31:] if len(l5Ny) > 64 else l5Ny return f'{YKHO.element_id}. {Eg_3}...'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO) -> str:\n DumB = ('{}={}'.format(G1Hx, repr(Ty9i)) for G1Hx, Ty9i in YKHO.__dict__.items())\n return '<{}({})>'.format(YKHO.__class__.__name__, ', '.join(DumB))", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):\n return f'<{type(YKH...
[ "0.82584816", "0.8253082", "0.82329077", "0.8191106", "0.81365615", "0.81327766", "0.81327766", "0.81327766", "0.8118914", "0.8113123", "0.80449194", "0.80449194", "0.80449194", "0.80449194", "0.80425906", "0.801727", "0.7994082", "0.79937655", "0.798417", "0.79790634", "0.79...
0.0
-1
Get a list of token objects for the sentiment expression extent. The extent can be set to include targets. Setting this to an empty list will only return the original tokens.
def toX_(YKHO, xx9t=[], KpnJ=True): b1nX = YKHO.tokens.copy() for YBcr in xx9t: if getattr(YKHO, YBcr): b1nX.extend((a1PO for WKvO in getattr(YKHO, YBcr) for a1PO in WKvO.tokens)) b1nX = list(set(b1nX)) if KpnJ: b1nX.sort(key=lambda WKvO: WKvO.begin) return b1nX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def toX_(YKHO, xx9t=['discontiguous_triggers'], KpnJ=True):\n b1nX = YKHO.tokens.copy()\n BN_z = b1nX[0].in_sentence.element_id\n for YBcr in xx9t:\n if getattr(YKHO, YBcr):\n b1nX.extend((a1PO for WKvO in getattr(YKHO, YBcr) for a1PO in WKvO.tokens if a1PO.in_sentence.element_id == BN_z...
[ "0.79144996", "0.66847426", "0.64567703", "0.64525014", "0.6422023", "0.63470286", "0.6025481", "0.5879312", "0.5853642", "0.58203405", "0.58203405", "0.55929494", "0.5589577", "0.55816835", "0.5545209", "0.553422", "0.54197466", "0.54197466", "0.54197466", "0.5392735", "0.53...
0.82137984
0
Function to converts XML attributes into a dictionary
def _Roc(nFpk): azoT = {} for EOK0, iZom in nFpk.attributes.items(): azoT[EOK0] = iZom return azoT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aeUt(YKHO, ASnc):\n Zo1k = ASnc.findall('attribute')\n S41y = {}\n for geyT in Zo1k:\n S41y[geyT.attrib['name']] = {'value': geyT.attrib['value'], 'type': geyT.attrib.get('type', None)}\n return S41y", "def T5Ly(hH0Y):\n azoT = {}\n for mWFP, wEf2 in Ru61.findall(hH0Y):\n wEf2...
[ "0.7548967", "0.722563", "0.71245855", "0.711149", "0.7095163", "0.7094138", "0.70292187", "0.6932637", "0.69197536", "0.68689096", "0.6855458", "0.68021226", "0.68001693", "0.6756407", "0.6698822", "0.6619554", "0.6612907", "0.6576497", "0.6554866", "0.6512518", "0.6490863",...
0.7341555
1
Custom repr for easier debugging.
def wHJl(YKHO): return f'{YKHO.document_id} {YKHO.annotator_id}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO) -> str:\n DumB = ('{}={}'.format(G1Hx, repr(Ty9i)) for G1Hx, Ty9i in YKHO.__dict__.items())\n return '<{}({})>'.format(YKHO.__class__.__name__, ', '.join(DumB))", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):\n return f'<{type(YKH...
[ "0.8258345", "0.8253225", "0.82328606", "0.81909287", "0.8136453", "0.8132754", "0.8132754", "0.8132754", "0.81184274", "0.81119144", "0.8045108", "0.8045108", "0.8045108", "0.8045108", "0.80425274", "0.801632", "0.79938865", "0.7993399", "0.79841006", "0.79778564", "0.797201...
0.0
-1
Get a OptimizerDef for the given configuration and training_steps.
def q448(or8S, ox4f): GPtr = BJsk.get_optimizer_config(or8S) GPtr['training_steps'] = ox4f return _VVW(**GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iw5F(Ep8u: int, NGZp: int, _LWc: Text=muwo.LR_NAME_DEFAULT, WAjq: Text=muwo.OP_NAME_DEFAULT, gJHX: Dict[Text, Any]=muwo.LR_CONFIG_DEFAULT, V2WK: Dict[Text, Any]=muwo.OP_CONFIG_DEFAULT) -> ZylS.keras.optimizers.Optimizer:\n ONRr = SGGO.LearningRateConfig(name=_LWc, **gJHX)\n GmcC = SGGO.OptimizerConfig(na...
[ "0.56548405", "0.5534678", "0.5419", "0.53470206", "0.53421885", "0.5340555", "0.53079665", "0.511747", "0.50874454", "0.50743484", "0.5059995", "0.5049988", "0.50252277", "0.5016428", "0.50158036", "0.49935558", "0.498744", "0.49774894", "0.49573946", "0.49332434", "0.491900...
0.5022623
13
Returns True is the alien is in the scree's edge.
def BFll(YKHO): VXOZ = YKHO.screen.get_rect() if YKHO.rect.right >= VXOZ.right: return True elif YKHO.rect.left <= 0: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dict[WKvO]", "def GJ1X(YKHO, WKvO, LVAh):\n return LVAh in YKHO._dictOut[WKvO]", "def UJ3L(YKHO, tTpl):\n return any((tTpl.nvt in [YKHO.vertices[YRbF - 2], YKHO.vertices[YRbF]] and YKHO.vertices[YRbF - 1] == tTpl.pvt for YRbF in range(len(YKHO.vertice...
[ "0.67390007", "0.6689531", "0.66346663", "0.65844536", "0.6580659", "0.6557901", "0.65327895", "0.64890575", "0.6484122", "0.6412592", "0.6396653", "0.63721454", "0.63186455", "0.6302562", "0.6260699", "0.6248611", "0.6222273", "0.6212628", "0.6211989", "0.620916", "0.6201092...
0.59922844
36
Return a serializable form of the AddressStatus.
def Pt6R(YKHO): return {'address_name': YKHO.address_name, 'statecode': YKHO.state, 'statename': YKHO.state_string(), 'remote_time': U7ka(YKHO.remote_time), 'local_time': U7ka(YKHO.local_time), 'loading': YKHO.loading()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNaG(YKHO):\n return EGsq._to_string(YKHO.state)", "def lhTA(YKHO):\n return YKHO.get_document_status_choice(YKHO.receipt_address_status)", "def jGRS(YKHO):\n return pIqh[YKHO._get_property_(YKHO.STATUS).upper()]", "def QxIo(YKHO):\n return u', '.join(YKHO.active_address_fields())", "def jG...
[ "0.65376735", "0.6407179", "0.6125908", "0.61190885", "0.6088738", "0.5990919", "0.5974651", "0.59298563", "0.590801", "0.590526", "0.58993244", "0.5894258", "0.58879745", "0.5871039", "0.5828656", "0.5824285", "0.5814415", "0.5784133", "0.5779725", "0.5777793", "0.57745993",...
0.5553306
48
Given 4 sorted corners, compute the homography between the corners and the rectangle's ground truth and return the information on the mapped plane. In other words, this function returns information on a plane (in particular, the desk's or wall's). The plane's origin is in the topleft corner of the rectangle, and the no...
def X4Mt(YKHO, HjHK: np.ndarray) -> GmBz: C7Ls = jbYn.findHomography(YKHO.inner_rectangle, HjHK)[0] Aofo = YKHO.K_inv @ C7Ls Aofo /= jbYn.norm(Aofo[:, 1]) TRVV, J1b4, a1PO = oyIN.hsplit(Aofo, 3) CYjz = oyIN.cross(TRVV.T, J1b4.T).T bGrB, P6bq, iSzZ = jbYn.SVDecomp(oyIN.hstack([TRVV, J1b4, CYjz]))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j2x_(YKHO):\n Qbpe = [-YKHO.i_border[0] / YKHO._scaling[0], YKHO.i_border[1] / YKHO._scaling[1], -YKHO.i_border[0] / YKHO._scaling[0], -(YKHO.o_wh[1] - YKHO.i_border[1]) / YKHO._scaling[1], (YKHO.o_wh[0] - YKHO.i_border[0]) / YKHO._scaling[0], -(YKHO.o_wh[1] - YKHO.i_border[1]) / YKHO._scaling[1], (YKHO.o_w...
[ "0.58668405", "0.58515084", "0.5808322", "0.5808322", "0.5799701", "0.5799701", "0.5593243", "0.55419457", "0.5481281", "0.5459112", "0.54404145", "0.5418466", "0.541714", "0.53940755", "0.53733194", "0.5373061", "0.5357221", "0.5352762", "0.5341513", "0.53396374", "0.5331517...
0.6981937
0
Write a program that takes as input a BST and an interger k, and returns the k largest elements in the BST in decreasing order.
def R7IT(J_Es, G1Hx): def RO_e(J_Es): if J_Es and len(rytD) < G1Hx: RO_e(J_Es.right) if len(rytD) < G1Hx: rytD.append(J_Es.data) RO_e(J_Es.left) rytD = [] RO_e(J_Es) return rytD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nwFd(YKHO, xYvp: List[int], G1Hx: int) -> int:\n return sorted(xYvp)[-G1Hx]", "def fS9e(yv6U, G1Hx):\n ZFV4 = sorted([(wEf2, d6pt) for d6pt, wEf2 in enumerate(yv6U)])\n return list(reversed(ZFV4[-G1Hx:]))", "def LKcM(ezWE: list, G1Hx: int):\n if G1Hx > len(ezWE):\n raise IndexError\n ...
[ "0.7045558", "0.701398", "0.6677336", "0.6673362", "0.66666937", "0.65226465", "0.65028167", "0.646503", "0.6402724", "0.63980407", "0.6357561", "0.6304622", "0.617777", "0.61401814", "0.6116958", "0.6113665", "0.6077666", "0.60618454", "0.60614383", "0.60428995", "0.60170496...
0.8523908
0
Returns a dataloader over the `Placement` dataset.
def sDq7(b_kJ, yDqo='train', Ep8u=1, w5rR=1.0, hXNa=True, eiN9=True, TR5M=False, O8DC=None, Qi3c=2, r1VO=2, I7Gy=4, ds3w=True): def KbW8(Wc9F): """A custom collate function. This is to support variable length suction labels. """ xkjI = [Fg_i[0] for Fg_i in Wc9F] Crrw = [Fg_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KgqZ(YKHO):\n hXNa = True if YKHO.mode == 'train' else False\n return pVAc(YKHO.get_dataset(), batch_size=YKHO.batch_size, shuffle=hXNa, collate_fn=zxkI)", "def JyoU(YKHO):\n return pVAc", "def KgqZ(NArs, T37t='hdf5', **B2fa):\n uBwj = oloV(T37t)(NArs.modality)\n return pVAc(uBwj(NArs.datase...
[ "0.6528042", "0.6296754", "0.6117473", "0.5985506", "0.5861961", "0.58134794", "0.576722", "0.5752375", "0.5730256", "0.5723458", "0.5705245", "0.5683443", "0.5645826", "0.55966157", "0.55555403", "0.5552447", "0.5544895", "0.5537698", "0.5531602", "0.552853", "0.5525307", ...
0.6269584
2
Takes in a document, returns the individual words (no punctuation) in it
def wr3U(A97Q): s2mk = Dhdw.word_tokenize(A97Q) return s2mk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l4Z4(A97Q):\n wAJt = ZbWC.compile('\\\\W*')\n V22M = [KCHu.lower() for KCHu in wAJt.split(A97Q) if len(KCHu) > 2 and len(KCHu) < 20]\n return dict([(yzQ0, 1) for yzQ0 in V22M])", "def s2mk(A97Q):\n return (w2fL.lower() for w2fL in ZbWC.findall('\\\\w+', A97Q))", "def wr3U(C13M):\n eOtH = Dhd...
[ "0.7785867", "0.7555599", "0.7534922", "0.75300217", "0.75241643", "0.74158704", "0.7410245", "0.7398779", "0.73895", "0.7206151", "0.71567714", "0.7117067", "0.7102596", "0.7061617", "0.70349526", "0.69996923", "0.6893931", "0.6889518", "0.6820737", "0.67384434", "0.67279804...
0.6920817
16
The function 'match' when given a list of words, finds all indices pairs such that the concatenation of the two words is a palindrome.
def kUBT(VDwR): assert type(VDwR) == list for YRbF in VDwR: assert type(YRbF) == str assert YRbF.isalpha() NhgV = [] for YRbF in range(0, len(VDwR)): for r845 in range(0, len(VDwR)): if YRbF != r845: jzdc = VDwR[YRbF] Fg_i = VDwR[r845] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m3NO(YKHO, V22M: List[str]) -> x1iM[x1iM[int]]:\n Csk6 = {yzQ0: YRbF for YRbF, yzQ0 in enumerate(V22M)}\n Ylbp = []\n for or8S, GIN8 in enumerate(V22M):\n for YRbF in range(len(GIN8) + 1):\n Y0Fj = GIN8[:YRbF]\n Pb4f = GIN8[YRbF:]\n if Y0Fj == Y0Fj[::-1]:\n ...
[ "0.75175416", "0.7488159", "0.6926305", "0.6626271", "0.6542914", "0.63874125", "0.63204014", "0.630162", "0.62365013", "0.622492", "0.611714", "0.6113025", "0.609781", "0.6046568", "0.604634", "0.6016963", "0.6004262", "0.60025907", "0.6000019", "0.59904724", "0.59786916", ...
0.8192264
0
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: int) -> int: eNCK, or8S = YKHO._search(H5ew) if or8S is not None: return eNCK[or8S][1] 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.8002989", "0.7909007", "0.76288855", "0.7565029", "0.7557547", "0.7529507", "0.7525005", "0.74928814", "0.7372854", "0.7294311", "0.72926253", "0.72211987", "0.7216913", "0.718049", "0.7165574", "0.698056", "0.69297296", "0.67844254", "0.67563844", "0.6735803", "0.6611858"...
0.7176771
14
This function prints and plots the confusion matrix.
def LwSz(Bcwd, KndY, leAC='Confusion matrix', iMGt=QrM1.cm.Blues): QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt) QrM1.title(leAC) QrM1.colorbar() wIWT = oyIN.arange(len(KndY)) QrM1.xticks(wIWT, KndY, rotation=0) QrM1.yticks(wIWT, KndY) knl1 = Bcwd.max() / 2.0 for YRbF, r845 in Hs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80913913", "0.8078153", "0.7999024", "0.7947685", "0.7922891", "0.7846677", "0.7834236", "0.77823174", "0.77771777", "0.7758015", "0.77074605", "0.7704409", "0.76958793", "0.768", "0.76602453", "0.7643174", "0.76248074", "0.76126397", "0.76126075", "0.75999814", "0.7589856...
0.0
-1
head, tail = os.path.split(path) return tail or os.path.basename(head)
def T8mP(pmON): return ZbWC.sub('[^A-Za-z0-9]+', '_', pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EHZ1(pmON):\n sdCG, J3uN = Om__.split(pmON)\n return J3uN or Om__.basename(sdCG)", "def T8mP(pmON):\n sdCG, J3uN = Om__.split(pmON)\n return J3uN or Om__.basename(sdCG)", "def T8mP(pmON):\n sdCG, J3uN = Om__.split(pmON)\n return J3uN or Om__.basename(sdCG)", "def aPr_(pmON):\n return...
[ "0.8084616", "0.8074502", "0.8041229", "0.78678495", "0.78282255", "0.78110695", "0.7523113", "0.72164637", "0.7181861", "0.7169209", "0.7126973", "0.70769894", "0.68622905", "0.68341327", "0.6810272", "0.67949396", "0.67901784", "0.678849", "0.6783288", "0.67816633", "0.6759...
0.0
-1
r""" Calculate partial derivatives of zeta function.
def IBuR(YKHO, ogs3, G1Hx, _gQ_='', y0VO=0, pIXV=0): nPrm = YKHO.get_attr(_gQ_) eHNT = YKHO.zeta_func Fu02 = YKHO.num_i + pIXV if not ogs3[y0VO, 0]: YKHO.jacobian[G1Hx, y0VO, 0] = YKHO.numeric_deriv(eHNT, 'm', y0VO, zeta=_gQ_, inconn=y0VO, outconn=pIXV) if not ogs3[y0VO, 2]: YKHO.jac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VcwS(KCHu, jzdc=1, VVyp=0):\n return g2zq.zeta(KCHu, jzdc, VVyp)", "def _gQ_(epBp, WKvO, znmT):\n return 3 * (4 * epBp ** 2 - znmT * WKvO ** 2) / 4 / znmT / (1 + WKvO)", "def zMHU(YKHO) -> x1iM[YrBT]:\n return [YKHO.dfda, YKHO.dfdb, YKHO.dfdc]", "def zMHU(YKHO) -> x1iM[YrBT]:\n pass", "def ...
[ "0.69251996", "0.65251493", "0.6342588", "0.63092345", "0.6277536", "0.62325907", "0.622904", "0.6221183", "0.62180126", "0.6203884", "0.6199135", "0.6153695", "0.61268854", "0.61135817", "0.6100138", "0.60925937", "0.60837436", "0.6048938", "0.60380226", "0.60230154", "0.601...
0.56824744
36
Return an executable string representation. This method returns a string so that ``eval(cls.vrepr())`` returns a new `BvFunction` object with the same content.
def cGoW(Emd4): return Emd4.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO) -> str:\n return f'<Function[{YKHO.name}](line:{YKHO.line})>'", "def wHJl(YKHO):\n rV9y = YKHO.__class__.__qualname__\n HCmI = ' '.join(HwRy.argv)\n E_zZ = f'$ {HCmI}'\n qIxc = EyO9(YKHO.get_args())\n IAm3 = '\\n'.join((rV9y, E_zZ, qIxc))\n return f'<{IAm3}>'", "def wHJl(YKH...
[ "0.62824535", "0.6251113", "0.5906001", "0.5871243", "0.58202857", "0.5671611", "0.56357455", "0.5634955", "0.5599026", "0.5592916", "0.5587618", "0.5570723", "0.5525011", "0.5512445", "0.5512445", "0.5512445", "0.5488936", "0.54781395", "0.547464", "0.54700714", "0.5468626",...
0.60587823
2
Return an executable string representation. This method returns a string so that ``eval(self.vrepr())`` returns a new `SSA` object with the same content. >>> from cascada.bitvector.core import Variable >>> from cascada.bitvector.operation import BvXor, BvIdentity >>> from cascada.bitvector.ssa import BvFunction >>> z =...
def cGoW(YKHO): return '{}(input_vars={}, output_vars={}, assignments={}{})'.format(type(YKHO).__name__, f'[{', '.join([Ty9i.vrepr() for Ty9i in YKHO.input_vars])}]', f'[{', '.join([Ty9i.vrepr() for Ty9i in YKHO.output_vars])}]', f'[{', '.join([f'({Ty9i.vrepr()}, {tTpl.vrepr()})' for Ty9i, tTpl in YKHO.assignments....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aRbh(YKHO):\n KCHu = 'An equation '\n NNGZ = not YKHO.A().is_zero()\n if NNGZ:\n KCHu += repr(YKHO.A()) + ' x '\n if YKHO.b() >= 0:\n if NNGZ:\n KCHu += '+'\n else:\n KCHu += '-'\n if NNGZ:\n KCHu += ' '\n KCHu += repr(abs(YKHO.b())) + ' == 0'\n re...
[ "0.61188376", "0.61188376", "0.60854304", "0.6069777", "0.6012829", "0.5928467", "0.5817199", "0.58145636", "0.5814443", "0.5811863", "0.57879734", "0.5767751", "0.57263815", "0.5706116", "0.5697784", "0.5687782", "0.5685565", "0.56687975", "0.5661975", "0.56314254", "0.56243...
0.6500199
0
Return the round separators if the SSA was obtained from a `RoundBasedFunction`. If the `SSA` object was obtained from `RoundBasedFunction.to_ssa` of a `RoundBasedFunction` including `add_round_outputs` calls in its ``eval``, this method returns a list with the round outputs delimiting the rounds. Otherwise, ``None`` i...
def eK1u(YKHO): if getattr(YKHO, '_rounds_outputs', None) is None: return None if len(YKHO._rounds_outputs) == 0: return None return YKHO._rounds_outputs[:-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4bG(YKHO) -> x1iM[kVOe]:\n return YKHO._rounds", "def WeyG(Emd4):\n if Emd4._rounds_outputs is None:\n raise ValueError('eval must be called before get_rounds_outputs')\n return Emd4._rounds_outputs", "def s0xb(YKHO, XQHD):\n HNcV = tuKI.choice(YKHO.state.ruleNames)\n return fSAG[HNc...
[ "0.5567383", "0.5464221", "0.5120953", "0.511039", "0.5052884", "0.48159716", "0.46500137", "0.46258867", "0.45040205", "0.44882062", "0.4462644", "0.4399613", "0.43700054", "0.43601322", "0.43520933", "0.42661065", "0.42626894", "0.4245764", "0.42430812", "0.42364082", "0.42...
0.6987893
0
Return a random `BvFunction` with given shape.
def ypJf(TVTK, Sqw_, I07O, btBV, yokr, Yote=None, OB8d=0, JOhh=None, n1oZ=None): assert Sqw_ + btBV >= I07O import random import functools from cascada.bitvector.operation import BvAnd, BvOr, BvXor, BvShl, BvLshr, RotateLeft, RotateRight, BvAdd, BvSub, BvNeg, BvNot, Concat, BvIdentity, make_partial_oper...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPTj(ROpF, mWFP=None):\n hkxX = oyIN.random.normal(loc=0.5, scale=0.01, size=ROpF)\n return nMvt.variable(hkxX, name=mWFP)", "def nrOS(YKHO, ROpF):\n return oyIN.random.uniform(low=YKHO.minval, high=YKHO.maxval, size=ROpF)", "def yPTj(ROpF, mWFP=None):\n hkxX = xlLU.normal(loc=0.5, scale=0.01, ...
[ "0.60691446", "0.6022296", "0.5954505", "0.57499504", "0.57022244", "0.5671044", "0.5671044", "0.5621131", "0.56195396", "0.5616216", "0.5603668", "0.55633956", "0.5560976", "0.5538763", "0.55148214", "0.5467586", "0.54356635", "0.54152143", "0.53970236", "0.53505164", "0.532...
0.5444272
16
Create an instance by evaluating all constraints in the problem. The ``problem`` is a DnaChisel DnaOptimizationProblem.
def D_Mx(X3eO, Q4pF=True): def b7La(oVM8): if Q4pF and oVM8.enforced_by_nucleotide_restrictions: return fuHy(oVM8, X3eO, score=1, locations=[], message='Enforced by nucleotides restrictions') else: return oVM8.evaluate(X3eO) return iy9E([b7La(oVM8) for oVM8 in X3eO.const...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n67k(Emd4, X3eO: LinearConstraintsProblem) -> gzzQ:\n exwG = X3eO.n\n r8hN = len(X3eO.constraints)\n uw5A = oyIN.zeros(shape=exwG)\n zKFi = oyIN.ones(shape=r8hN)\n tTpl = oyIN.concatenate((uw5A, zKFi))\n nJ9F = oyIN.zeros(exwG)\n cflT = oyIN.abs(X3eO.b)\n lBt3 = oyIN.concatenate((nJ9F, ...
[ "0.6295126", "0.60471386", "0.5886922", "0.5765422", "0.5730006", "0.5707503", "0.565367", "0.5576092", "0.5528963", "0.54968774", "0.5491965", "0.54807454", "0.5393297", "0.53774476", "0.53702635", "0.5276206", "0.52658254", "0.5262188", "0.5253071", "0.5241584", "0.52301854...
0.6974452
0
Returns a Collection of Opportunities.
def d6pt(YKHO): qIxc = eqva.parse_args() qIxc.api_key = '8l3xbEmsQMq7AG7mXoSy3IuJAqehmWGRC754Otx7' bD7m = 'http://api.data.gov/gsa/fbopen/v0/opps?%s' % QIYp(query=qIxc) return qQXR.loads(Kf9k(url=bD7m).read())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BMHh(YKHO):\n return YKHO.opportunities.find()", "def KP3l(YKHO, qoqK=None, Ep8u=None):\n N1p7 = YKHO.iter_all()\n if qoqK:\n qoqK = int(qoqK)\n N1p7 = N1p7.limit(qoqK)\n if Ep8u:\n N1p7 = N1p7.batch_size(Ep8u)\n return N1p7", "def ebrE(YKHO):\n return YKHO.experience...
[ "0.75928587", "0.6055248", "0.56843185", "0.5382803", "0.5341676", "0.52663434", "0.5257113", "0.5237074", "0.51992303", "0.5176973", "0.5175872", "0.51342726", "0.51293606", "0.5111544", "0.50776553", "0.50687754", "0.5067086", "0.5067079", "0.5047134", "0.5043661", "0.50391...
0.0
-1
Checks for a comma
def jCGq(YKHO, o61b): if o61b.type == YKHO.scanner.COMMA: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kr03(l5Ny):\n XObx = 'style-guide.serial-comma'\n tO9_ = 'Use serial comma after penultimate item.'\n njyT = '\\\\,\\\\s[a-zA-Z0-9]*\\\\sand\\\\s'\n return sNnm(l5Ny, [njyT], XObx, tO9_, require_padding=False)", "def yqRT(YKHO, *qIxc):\n return gEqO.cexpr_t_contains_comma(YKHO, *qIxc)", "def...
[ "0.78176993", "0.7652777", "0.75575286", "0.739962", "0.6958344", "0.68487954", "0.67709404", "0.6737014", "0.654276", "0.6426066", "0.6025317", "0.60239697", "0.590207", "0.5873435", "0.5853992", "0.58382696", "0.5835906", "0.579905", "0.579905", "0.5768135", "0.5726377", ...
0.78183836
0
Checks if symbol is a number
def yz_j(YKHO, o61b): if o61b.type == YKHO.scanner.NUMBER: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4Bo(YKHO, o61b: str) -> bool:\n return o61b in YKHO.numerals", "def ye72(o61b):\n return wUhG(o61b, complex) or KptB(o61b)", "def Myyj(o61b):\n return wUhG(o61b, int)", "def Ozdp(yzQ0):\n rmc3 = list(yzQ0)\n for KCHu in rmc3:\n if KCHu in vIwR.digits:\n return '<NUM>'\n ...
[ "0.7981778", "0.796459", "0.7456952", "0.71271473", "0.7109606", "0.7074188", "0.7070969", "0.70643014", "0.7049879", "0.70249534", "0.7018031", "0.701756", "0.701756", "0.701756", "0.7005208", "0.69720167", "0.6957312", "0.69454503", "0.69375134", "0.6913471", "0.6888762", ...
0.87825435
0