query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Returns the position of the Player.
def Iuzb(YKHO): return YKHO.position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sl0n(YKHO):\n return YKHO.position", "def Pdd2(YKHO):\n return YKHO.screen.get_rect().center", "def fYNH(YKHO):\n return YKHO._env.acting_player_position", "def Iuzb(YKHO):\n return YKHO.position", "def Iuzb(YKHO):\n return YKHO.s.get_position()", "def Iuzb(YKHO):\n return YKHO.curr...
[ "0.9189654", "0.79442155", "0.79335535", "0.7909189", "0.7897646", "0.78971255", "0.7888552", "0.78829247", "0.78829247", "0.78432417", "0.78432417", "0.78357536", "0.78357536", "0.78357536", "0.78357536", "0.78357536", "0.78178763", "0.78178763", "0.7817529", "0.7761057", "0...
0.79434156
2
String representation of class Item
def zAg0(YKHO): return f"Item('{YKHO.get_id()}')"
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.item)", "def wHJl(YKHO):\n return 'Item{{{}}}'.format(YKHO.__get_tuple())", "def wHJl(YKHO):\n return f'<Item {YKHO.id} {YKHO.name} {YKHO.is_wearable} {YKHO.armor_class} {YKHO.quantity} {YKHO.character_id}>'", "def zAg0(YKHO) -> str:\n return str(YKHO.__items)", ...
[ "0.8293282", "0.8237247", "0.82273954", "0.8203471", "0.81732404", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8135543", "0.8061835", "0.80170697", "0.80170697", "0.798397", "0.7910073", "0.78871137", "0.77449477"...
0.7735813
21
Returns the game Player
def nAM4(YKHO): return YKHO._player
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.players[YKHO.current_player]", "def GFCh(YKHO):\n return YKHO.player", "def GFCh(YKHO):\n return YKHO.server.getPlayer(YKHO.getUniqueId())", "def GFCh(YKHO):\n oyg0 = YKHO._pers...
[ "0.8628894", "0.8628894", "0.8623247", "0.8452242", "0.8450438", "0.8284175", "0.82823044", "0.8169222", "0.8143408", "0.8114519", "0.8092441", "0.80917263", "0.80863154", "0.80710423", "0.8070637", "0.8056811", "0.80565107", "0.80393565", "0.80393565", "0.80031085", "0.79506...
0.8596778
3
returns True if val of self is less than or equal to that of other; both self and other are Node instances
def TPjt(YKHO, Elif): return YKHO.val <= Elif.val
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return isinstance(Elif, o7DN) and Elif.__lt__(YKHO)", "def TPjt(YKHO, Elif):\n return YKHO.value <= Elif.value", "def TPjt(YKHO, Elif):\n return YKHO.value <= Elif.value", "def Zcf_(YKHO, Elif):\n return YKHO.value >= Elif.value", "def Zcf_(YKHO, Elif):\n return YKHO....
[ "0.8136204", "0.79941326", "0.79941326", "0.7963601", "0.7963601", "0.7939012", "0.78534865", "0.78534865", "0.78534865", "0.78127486", "0.77963316", "0.77685523", "0.7734122", "0.76853716", "0.76853716", "0.76853716", "0.76831377", "0.7666993", "0.765597", "0.76489556", "0.7...
0.7918606
6
Provides the type of this variable.
def qOCO(YKHO) -> h8nf[eBH2]: return YKHO._variable_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSzE(YKHO):\n return YKHO.varType", "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.__type", "def Hghu(YKHO):\n return type(YKHO)._type", "def ZRB_(YKHO) -> str:\n return YKHO.__model.solver.var_get_var_type(YKHO)", "def type(YKHO):\n return YKHO.__type", "d...
[ "0.80971676", "0.79644436", "0.79644436", "0.7948371", "0.79445755", "0.79321355", "0.79142785", "0.7896248", "0.7873432", "0.7873432", "0.7867473", "0.7867473", "0.78644806", "0.7862424", "0.7852068", "0.784506", "0.78332144", "0.7829994", "0.7821679", "0.7821679", "0.782167...
0.8374583
0
Whether the given coordinate is a wall.
def OC7g(YKHO, WKvO, LVAh): return (WKvO, LVAh) in YKHO.walls
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO, WKvO, LVAh):\n return YKHO.get_state_kind(WKvO, LVAh) == rRPI.CELL_KIND_WALL", "def OC7g(YKHO, AU8u):\n return AU8u not in YKHO.walls", "def OC7g(YKHO, dQgj):\n WKvO, LVAh = dQgj\n return YKHO.walls[LVAh][WKvO]", "def OC7g(YKHO):\n return YKHO.node_type is CvW4.WALL", "def OC7...
[ "0.8525168", "0.8453822", "0.83284384", "0.8230771", "0.81404907", "0.8140343", "0.8107512", "0.8107512", "0.8107097", "0.8097139", "0.8082489", "0.8042367", "0.8008173", "0.79693943", "0.7923279", "0.7802491", "0.7801365", "0.7713404", "0.7653014", "0.76486844", "0.75779474"...
0.86675256
0
Render the scene screen.
def NgQf(YKHO): jIOH.start_render() YKHO.current_scene.draw()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _1tc(YKHO):\n YKHO.scene.render()", "def _1tc(YKHO):\n YKHO.screen.fill(_Fei.background_color)\n if YKHO.active_scene != None:\n YKHO.active_scene.render(YKHO.screen)\n YKHO.sprite_list.draw(YKHO.screen)\n if YKHO.show_fps:\n YKHO.screen.blit(YKHO.font.render(str(int(YKHO.clock.g...
[ "0.86995053", "0.8251941", "0.8188318", "0.7840546", "0.7695346", "0.75872266", "0.7579726", "0.752524", "0.7499457", "0.7490894", "0.7436551", "0.7428832", "0.73991096", "0.7363709", "0.736088", "0.7332061", "0.73007333", "0.7295793", "0.72886944", "0.72350854", "0.72256607"...
0.6942622
42
Get the RoleChannel for this message, or None if not found.
async def get_channel_entry(YKHO, Ol8d): if not Ol8d.guild: G9jH.debug('Received message not in guild context, ignoring.') return None try: return t0gy.select().where(t0gy.guild == Ol8d.guild.id).where(t0gy.channel == Ol8d.channel.id).get() except t0gy.DoesNotExist: G9jH.debu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Iimf(YKHO) -> uLKX[str, None]:\n _8dd = YKHO.client_roles\n if _8dd:\n return _8dd[0]\n return None", "def LmAn(YKHO):\n return i6od.type.core.common.Role.for_id(YKHO.data.playerRole) if YKHO.data.playerRole else None", "def Iimf(YKHO):\n return YKHO.roles.role", "def NMoC(YKHO, _Fo...
[ "0.6773045", "0.6459265", "0.6326954", "0.6320223", "0.63068855", "0.63068855", "0.63068855", "0.63068855", "0.63068855", "0.63068855", "0.63068855", "0.63035345", "0.63035345", "0.63035345", "0.63035345", "0.63035345", "0.63035345", "0.6300396", "0.6283622", "0.6180712", "0....
0.74066126
0
Return study bucket from study KF ID
def yXO4(YKHO) -> str: return f'kf-study-us-east-1-dev-{YKHO.study_id.lower().replace('_', '-')}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def czD3(YKHO, RDhP, BWXx):\n try:\n return YKHO.feature_dict[RDhP].get_bucket(BWXx)\n except IndexError:\n print(f'{RDhP} is not a known feature of this model')", "def WE7e():\n pass", "def jNYj(YKHO, yokr, UhPP=None):\n Nzyw = HBct.sha1(YKHO.name + yokr)\n WE7e = Swre(Nzyw.hexdig...
[ "0.6622277", "0.6284949", "0.6239473", "0.60802746", "0.6049444", "0.60425943", "0.6014081", "0.6012253", "0.5973283", "0.5952261", "0.58408153", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", "0.5839432", ...
0.7200779
0
This function makes use of the test client to send GET requests
def kKfJ(YKHO, pmON='/api/v1/users'): Ylbp = YKHO.client.get(pmON) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gchn(d4y1):\n geh0 = d4y1.get('/get-test')\n assert geh0.url == '{base_url}/get-test'.format(base_url=zDeW)\n assert geh0.status_code == 200\n assert geh0.json() == {'Get-Test': 'A-OK'}", "def ScdL(YKHO):\n geh0 = YKHO.client.open('/v1/test', method='GET')\n YKHO.assert200(geh0, 'Response b...
[ "0.8018254", "0.8014714", "0.76376796", "0.7610612", "0.75595754", "0.7515906", "0.74622804", "0.7402985", "0.73844826", "0.73086905", "0.73063415", "0.7304427", "0.7299776", "0.729675", "0.72681224", "0.7267206", "0.7262126", "0.7262126", "0.7262126", "0.7262126", "0.7262126...
0.0
-1
Test that an unregistered user can sign up
def AXwI(YKHO): CBIr = {**YKHO.user} pB3N = YKHO.post_req(data=CBIr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BsA5(YKHO):\n geh0 = YKHO.client.get(gxEw('streamwebs:register'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertContains(geh0, 'Create an account.')", "def Ixb3(YKHO):\n geh0 = YKHO.client.post(gxEw('register'), {'username': 'blabla', 'email': 'blablaagain', 'password': 'moreblabla'})\n ...
[ "0.7899265", "0.7876511", "0.7875392", "0.7762336", "0.771729", "0.7717278", "0.76652056", "0.76431924", "0.7615236", "0.7589885", "0.75855446", "0.75832736", "0.75828665", "0.7532168", "0.7522465", "0.7505749", "0.7505617", "0.7496669", "0.7496533", "0.74866205", "0.7462766"...
0.0
-1
Test that registering with an existing username or email, will throw an error
def w0u7(YKHO): CBIr = {**YKHO.user} pB3N = YKHO.post_req(data=CBIr) YKHO.assertEqual(pB3N.status_code, 400) YKHO.assertEqual(pB3N.json['Error'], 'This account exists') uDCI = {**YKHO.user} uDCI['email'] = 'mash@gmail.com' pB3N = YKHO.post_req(data=uDCI) YKHO.assertEqual(pB3N.json['Error...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQGi():\n Y7Bk()\n Jpbe.auth_register('testEmail@gmail.com', 'abcdefg', 'Christian', 'Ilagan')\n with trZe.raises(DQrD):\n Jpbe.auth_register('testEmail@gmail.com', 'abcdefg', 'Christian', 'Ilagan')\n Y7Bk()", "def uXbo(YKHO):\n XKMW = 'auth.login'\n YKHO.make_user(pwd=True, confirm=...
[ "0.86401117", "0.8536653", "0.84335434", "0.8425485", "0.84114563", "0.8401587", "0.8381271", "0.83652014", "0.8359944", "0.8301455", "0.82878405", "0.8263148", "0.82228553", "0.8199822", "0.8191415", "0.8181621", "0.81781816", "0.8175475", "0.81664675", "0.8162656", "0.81574...
0.7841622
98
Test that an unregistered user can't edit accounts
def heWU(YKHO): ITwz = YKHO.post_req(path='/api/v1/account/edit/<int:editID>', data=YKHO.user) YKHO.assertEqual(ITwz.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cej3(YKHO):\n geh0 = YKHO.connect_dummy_user_fixture()\n geh0 = YKHO.testapp.get('/tools/user/1/edit', status=302)\n vKnz = geh0.follow()\n YKHO.assertEqual(vKnz.status, '200 OK')\n YKHO.assertEqual(vKnz.request.path, '/')\n YKHO.assertTrue('Insufficient permissions!' in vKnz.body)", "def T...
[ "0.76713955", "0.72717047", "0.7260213", "0.7177842", "0.7157352", "0.7157352", "0.7157352", "0.71239513", "0.70792115", "0.7063906", "0.70066965", "0.7000329", "0.69458777", "0.6940989", "0.6940989", "0.6940989", "0.6940989", "0.6940989", "0.6940989", "0.6940989", "0.6940989...
0.0
-1
Loads and returns a DB session object.
def GGod(): if not hasattr(Oa1e, 'neo4j_db'): Oa1e.neo4j_db = E_qD.session() return Oa1e.neo4j_db
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KxFu(YKHO):\n yIVm = hj9Q.metadata\n DMju = FJ3D(bind=eHpk)\n cuiw = DMju()\n return cuiw", "def ouvA():\n return cuiw", "def KfiN(tFj2):\n eHpk = y2U9(tFj2)\n i_Aq.metadata.bind = eHpk\n GhOX = FJ3D(bind=eHpk)\n cuiw = GhOX()\n return cuiw", "def Dbxd(YKHO):\n FfT0.initi...
[ "0.81212723", "0.7951931", "0.77504903", "0.77453035", "0.7743709", "0.7743313", "0.7714021", "0.7656987", "0.7656987", "0.763856", "0.76220804", "0.75179654", "0.7397627", "0.73568463", "0.73312616", "0.7309803", "0.7293362", "0.72918344", "0.72805816", "0.72636986", "0.7251...
0.0
-1
Check if a point is inside a circle.
def xY9z(WKvO, LVAh, JPqE, fXzF, r1VO): Jw7X = abs(WKvO - JPqE) eUWA = abs(LVAh - fXzF) if Jw7X > r1VO: return False if eUWA > r1VO: return False if Jw7X + eUWA <= r1VO: return True if Jw7X ** 2 + eUWA ** 2 <= r1VO ** 2: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r4R3(FV9o, AU8u):\n return Ayfi(AU8u, FV9o.center) <= FV9o.radius", "def r4R3(FV9o, AU8u):\n return epAf.sqrt((AU8u.x - FV9o.centre.x) ** 2 + (AU8u.y - FV9o.centre.y) ** 2) <= FV9o.radius", "def r4R3(AU8u, FV9o):\n Csk6 = YyoZ(AU8u, FV9o.center)\n return Csk6 <= FV9o.radius", "def I5JB(YKHO, ...
[ "0.89154696", "0.8906853", "0.884429", "0.8826753", "0.85839087", "0.8549084", "0.85439193", "0.84517944", "0.83811015", "0.8330187", "0.82607394", "0.8216184", "0.8023305", "0.8022271", "0.7855077", "0.7852711", "0.7852711", "0.77182066", "0.7717562", "0.7709849", "0.7706946...
0.86695623
4
Transform 2D cartesian coordinates to 2D polar coordinates.
def ZPTq(B_mR, PN4h, iREb=0, cxow=0): nhBs = B_mR - iREb kGOI = PN4h - cxow EWOL = oyIN.sqrt(nhBs ** 2 + kGOI ** 2) MyqH = oyIN.arctan2(kGOI, nhBs) return (EWOL, MyqH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ua7K(WKvO, LVAh):\n return (oyIN.sqrt(oyIN.array(WKvO) ** 2 + oyIN.array(LVAh) ** 2), oyIN.arctan2(LVAh, WKvO))", "def ua7K(WKvO, LVAh):\n Mkmy, rVnq, bGrB = f7KR(WKvO, LVAh, 0)\n return (Mkmy, rVnq)", "def vcUJ(WKvO, LVAh):\n return (oyIN.hypot(WKvO, LVAh), oyIN.arctan2(LVAh, WKvO))", "def v...
[ "0.81570005", "0.7902535", "0.7735086", "0.7691852", "0.7688274", "0.76237404", "0.7608411", "0.76055026", "0.760269", "0.7526677", "0.74682134", "0.7463496", "0.7441852", "0.73822546", "0.73454136", "0.7341571", "0.7334059", "0.7272754", "0.7265916", "0.7265436", "0.7246216"...
0.73924154
13
Test we handle invalid auth.
async def test_form_invalid_auth(ajET: HomeAssistant, bqDz, P1dF) -> None: Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kzTJ.SOURCE_USER}) with Po4F('homeassistant.components.openai_conversation.config_flow.openai.Engine.list', side_effect=bqDz): EtKK = await ajET.config_ent...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lusF(YKHO, P4t4, ZTVO):\n assert JRFA.AUTH_ERROR == P4t4.login.auth_login_error(), 'We are auth!'", "def NgWQ(YKHO):\n Wju4 = 'fakeuname'\n zN5h = 'DNE'\n Jpbe = mv1M.authenticate(Wju4, zN5h)\n YKHO.assertFalse(Jpbe)", "def RDMd(YKHO):\n Aofo = YKHO._auth('honey@badger.com')\n NaW5(Aof...
[ "0.83053976", "0.8005501", "0.79701793", "0.77235705", "0.7664159", "0.7661794", "0.7648461", "0.76318216", "0.7621099", "0.7612918", "0.75898254", "0.7557425", "0.75545514", "0.75368273", "0.7529143", "0.75193137", "0.74999154", "0.74695355", "0.74478346", "0.7443899", "0.74...
0.0
-1
Returns a datetime from the string format defined above
def jE4r(hYEm: str, foH1: bool=False) -> qcWV: if hYEm.endswith('Z'): hYEm = hYEm.replace(JvE8, UACZ) wEf2 = qcWV.strptime(hYEm, '%Y-%m-%dT%H:%M:%S.%f%z') if not foH1: return wEf2.replace(tzinfo=None) return wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m89t(YKHO, vIwR):\n try:\n from dateutil.parser import parse\n return parse(vIwR)\n except ImportError:\n return vIwR", "def WPto(YKHO, Dhyu):\n return qcWV.datetime.strptime(Dhyu, '%Y-%m-%dT%H:%M:%S')", "def DSF0(vIwR):\n from datetime import datetime\n from dateutil.pa...
[ "0.78503907", "0.7732232", "0.7702014", "0.7690872", "0.7678177", "0.76332617", "0.7629177", "0.76172817", "0.76059216", "0.7587783", "0.7564635", "0.75334936", "0.7523574", "0.74962926", "0.74852943", "0.7463636", "0.74375814", "0.7427302", "0.74120927", "0.73986596", "0.739...
0.0
-1
Clear the current canvas.
def fccZ(YKHO): OfK8, hkS8, dnR4 = YKHO.palette['background'] for LVAh in range(YKHO._canvas._buffer_height): YKHO._canvas.print_at(' ' * YKHO._canvas.width, 0, LVAh, OfK8, hkS8, dnR4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThF5(YKHO):\n YKHO.canvas.destroy()\n YKHO.create_paint_screen()", "def ThF5(YKHO):\n YKHO.canvas.delete('all')", "def Y7Bk(YKHO):\n YKHO.check_alive()\n YKHO.refresh_canvas()", "def kpKt(YKHO):\n YKHO.img = oyIN.zeros((BO49, BO49), oyIN.uint8)", "def Y7Bk(YKHO):\n if YKHO.canvas:\...
[ "0.8509636", "0.8407952", "0.75181293", "0.74815553", "0.74615896", "0.7440656", "0.73442656", "0.7336176", "0.7224887", "0.7192687", "0.7188014", "0.7109902", "0.70987344", "0.705508", "0.70219624", "0.69441545", "0.69408494", "0.69076043", "0.6892361", "0.6868967", "0.68619...
0.69953346
15
Reset the values for any Widgets in this Layout based on the current Frame data store.
def cOzm(YKHO, pNlb=None): for iVRZ in YKHO._columns: for TEdI in iVRZ: if TEdI.name in YKHO._frame.data: TEdI.value = YKHO._frame.data[TEdI.name] elif TEdI.is_tab_stop: TEdI.value = TEdI.value if pNlb: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.update_widgets()\n for iVRZ in YKHO._columns:\n for TEdI in iVRZ:\n TEdI.reset()\n TEdI.blur()\n YKHO._live_widget = -1\n YKHO._find_next_widget(1)", "def SiRx(YKHO):\n YKHO._remove_handlers()\n YKHO._set_values({}, 100, [])\n YKHO.layout.v...
[ "0.7064912", "0.7032931", "0.70313454", "0.6668045", "0.6603702", "0.6593466", "0.65366054", "0.65088063", "0.6454505", "0.6418152", "0.63583094", "0.63308156", "0.63299084", "0.6311303", "0.6255161", "0.62523097", "0.62472236", "0.6225751", "0.6204601", "0.61983514", "0.6159...
0.61739254
20
Reset this Layout and the Widgets it contains.
def SiRx(YKHO): YKHO.update_widgets() for iVRZ in YKHO._columns: for TEdI in iVRZ: TEdI.reset() TEdI.blur() YKHO._live_widget = -1 YKHO._find_next_widget(1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GOX7(YKHO):\n YKHO.message_box = None\n YKHO.power_input = None\n YKHO.flux_combo = None\n YKHO.area_combo = None", "def SiRx(YKHO):\n YKHO._remove_handlers()\n YKHO._set_values({}, 100, [])\n YKHO.layout.visibility = 'hidden'", "def kgV4(YKHO, LAOT):\n YKHO.ui.addParamCombo.setCurr...
[ "0.73824334", "0.7274698", "0.7129524", "0.7088028", "0.68742085", "0.68446255", "0.6837228", "0.67629683", "0.67193276", "0.6703234", "0.66997886", "0.6688939", "0.6644686", "0.6644686", "0.66427815", "0.6613538", "0.65755314", "0.6556707", "0.65555036", "0.65460163", "0.653...
0.7191624
2
The label for this widget. Can be `None`.
def UXqs(YKHO): return YKHO._label
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXqs(YKHO):\n if 'label' in YKHO:\n return YKHO['label']\n else:\n return None", "def UXqs(YKHO):\n return YKHO._label or YKHO.name", "def DeTJ(YKHO):\n return YKHO.widget.get_label()", "def d3Pt(YKHO) -> str:\n return YKHO.__name", "def UXqs(YKHO) -> str:\n return YKHO....
[ "0.85306746", "0.8522911", "0.8477932", "0.83810246", "0.8379538", "0.8379538", "0.8379538", "0.8379538", "0.8379538", "0.8379538", "0.8379538", "0.8358", "0.8305353", "0.8206301", "0.8186921", "0.81731427", "0.81731427", "0.81731427", "0.81731427", "0.81731427", "0.81731427"...
0.8196354
16
The name for this widget (for reference in the persistent data). Can be `None`.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bE4R(YKHO):\n return YKHO.widget.getName()", "def mWFP(YKHO):\n try:\n return YKHO._name\n except AttributeError:\n return None", "def mWFP(YKHO):\n return None", "def mWFP(YKHO):\n return YKHO._name.get()", "def Q0HP(YKHO):\n return YKHO.name.get()", "def XWXe(YKHO):\...
[ "0.85986805", "0.75159687", "0.7479199", "0.7456038", "0.74482864", "0.7409243", "0.7409243", "0.7409243", "0.7386574", "0.7386574", "0.7384802", "0.7359062", "0.7359062", "0.7359062", "0.7321156", "0.7299797", "0.72536963", "0.72536963", "0.72536963", "0.72507924", "0.724724...
0.0
-1
Get the dimensions of an axes in figure coords.
def HtyV(LZpg, aNZO): uPnQ = LZpg.transFigure.inverted() bGrB, bGrB, yzQ0, MKlR = aNZO.bbox.transformed(uPnQ).bounds return (yzQ0, MKlR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kuoY(kj9G):\n return (len(kj9G), len(kj9G[0]))", "def zNig(YKHO):\n return YKHO.axes.size", "def tpio(YKHO):\n return len(YKHO.axes)", "def tpio(YKHO):\n return len(YKHO.axes)", "def ROpF(YKHO):\n return YKHO.axes.size", "def S96Q(YKHO):\n return len(YKHO.axes)", "def sN0K(YKHO):\...
[ "0.7408727", "0.7389677", "0.7341104", "0.7341104", "0.72310483", "0.7116702", "0.6908929", "0.6870339", "0.6848076", "0.6830643", "0.6809743", "0.67981523", "0.6763874", "0.6755094", "0.67486185", "0.67389905", "0.67282254", "0.67268693", "0.67109305", "0.67057776", "0.67016...
0.6353524
57
Truncate a string by one character and end with ``self.dots``.
def G34s(YKHO, KCHu, xlFA=[0]): if len(KCHu) <= len(YKHO.dots): raise BiwE(KCHu) xlFA[0] += 1 return KCHu[:-(len(YKHO.dots) + 1)] + YKHO.dots
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(YKHO, vIwR, qoqK):\n vIwR = str(vIwR)\n if len(vIwR) < qoqK - 4:\n return vIwR\n else:\n return vIwR[:qoqK - 4] + '...'", "def CHEN(l5Ny: str, bseI: str) -> str:\n pass", "def G34s(KCHu, vC9B, Vg4u='…'):\n try:\n ZTmp = len(KCHu)\n except:\n return KCHu\n ...
[ "0.6425254", "0.63936156", "0.6256483", "0.6236815", "0.6158317", "0.6141684", "0.60812044", "0.603758", "0.603758", "0.603758", "0.603758", "0.603758", "0.603758", "0.603758", "0.603758", "0.60345525", "0.60331017", "0.60331017", "0.6005508", "0.59944046", "0.59923637", "0...
0.7999917
0
it should add 2 numbers in a comma separated string
def ence(YKHO): BWXx = YKHO.calculate.add('1, 2') YKHO.assertEqual(3, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def duIk(EoWa):\n pass", "def CKfd(BWXx):\n zXzD = str(BWXx)\n BdN0 = ZbWC.sub('^(-?\\\\d+)(\\\\d{3})', '\\\\g<1>,\\\\g<2>', zXzD)\n if zXzD == BdN0:\n return BdN0\n else:\n return CKfd(BdN0)", "def Slee(BWXx):\n zXzD = str(BWXx)\n BdN0 = ZbWC.sub('^(-?\\\\d+)(\\\\d{3})', '\\...
[ "0.7395207", "0.7264269", "0.7218468", "0.7192226", "0.70034313", "0.6890139", "0.6890139", "0.67657083", "0.67161185", "0.6690668", "0.6608554", "0.6547397", "0.6352659", "0.63521564", "0.63287854", "0.62590176", "0.62379235", "0.6229003", "0.6221363", "0.61936754", "0.61934...
0.0
-1
it should an unknown amount of numbers in a comma separated string
def n6Ya(YKHO): BWXx = YKHO.calculate.add('1, 2, 3') YKHO.assertNotEqual(3, BWXx) YKHO.assertEqual(6, BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLNT(KCHu):\n return [int(Z9rn) for Z9rn in ZbWC.findall('\\\\d+', KCHu)]", "def eANR():\n with trZe.raises(ValueError, match='invalid literal'):\n FNSy('4,thebigboi,100')\n with trZe.raises(ValueError, match='invalid literal'):\n FNSy(',100,10')", "def wHxI(yAmx):\n ptVi = ZbWC.c...
[ "0.66359764", "0.6574753", "0.6556077", "0.64359295", "0.6435598", "0.63650155", "0.63363934", "0.63051575", "0.62203205", "0.61432534", "0.6104463", "0.60912627", "0.6074489", "0.606898", "0.60551417", "0.60551417", "0.60499346", "0.6037133", "0.6009368", "0.5985824", "0.598...
0.0
-1
Initializes an empty MenuItemsCollection
def FIMM(YKHO): YKHO._subcollections = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO) -> None:\n YKHO._menu_items = []", "def FIMM(YKHO, DumB):\n YKHO._items = DumB\n pass", "def FIMM(YKHO):\n YKHO.items = []", "def FIMM(YKHO) -> None:\n YKHO._items = []\n pass", "def FIMM(YKHO):\n YKHO.items = []", "def FIMM(YKHO):\n MZYv.MenuBar.__init__(YKHO)\n ...
[ "0.78555167", "0.722347", "0.6786278", "0.66052216", "0.6380899", "0.6365921", "0.6312074", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0.62717164", "0...
0.0
-1
This will succeed because both data sets match, testing that we do retrieve all employee data given his/her username
def KtRM(YKHO): YKHO.dao_employee_object = Q9cD('JimHalpert', productionDB=False) YKHO.assertEqual(YKHO.test_employee_object, YKHO.dao_employee_object, 'The data sets were not equal')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mf5Z(YKHO):\n nPrm = YKHO.create_test_employees()\n YvUd = nPrm['test_employee_data'][1]\n J2us = YKHO.dbm.view_everything(employee=YvUd['name'])\n YKHO.assertEqual(len(J2us), 2)\n for AIu6 in J2us:\n YKHO.assertEqual(AIu6['name'], YvUd['name'])", "def Duzf(YKHO):\n Zwka = YKHO.creat...
[ "0.6865948", "0.67954487", "0.64731705", "0.63320184", "0.6300374", "0.62325996", "0.62275887", "0.6038891", "0.6026823", "0.6021999", "0.60016954", "0.59986746", "0.5980435", "0.5955259", "0.5952466", "0.5868852", "0.5848604", "0.5817385", "0.5813448", "0.5802058", "0.579928...
0.6724403
2
Returns a boolean value indicating if the version vector has no versions greater than 0.
def lsmZ(YKHO): return len(YKHO.v) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Witr(YKHO):\n for BWXx in YKHO._v:\n if BWXx != 0:\n return False\n return True", "def gGT0(he6J):\n return he6J.count(0) == len(he6J)", "def _0EP(Ty9i):\n return ZxqF.utils.VectorEqual(ZxqF.Vector(0), Ty9i)", "def ebnO(YKHO) -> 'bool':\n return FZrS.vectorvectorUL___nonz...
[ "0.6820066", "0.68158865", "0.6663007", "0.6661033", "0.65596086", "0.65118015", "0.6454138", "0.6449486", "0.64465564", "0.6419233", "0.6404907", "0.6403792", "0.639269", "0.6388395", "0.6387096", "0.6382124", "0.6382124", "0.6372837", "0.6369132", "0.63674444", "0.63565797"...
0.611894
56
Checks if this version vector dominates a single version. A version vector (X) dominates a version (Y) when the version in X for the replica associated with Y is greater than or equal to Y.
def EZGx(YKHO, fUpG): assert isinstance(fUpG, moxu) if fUpG.replica_id in YKHO.v: Z9rn = YKHO.v[fUpG.replica_id] else: Z9rn = 0 return Z9rn >= fUpG.counter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIBh(YKHO, Elif):\n assert isinstance(Elif, l5g0)\n A07C = set(YKHO.v.keys()).union(set(Elif.v.keys()))\n for id in A07C:\n z5la = 0\n RBVb = 0\n if id in YKHO.v:\n z5la = YKHO.v[id]\n if id in Elif.v:\n RBVb = Elif.v[id]\n if z5la < RBVb:\n ...
[ "0.71006984", "0.6687981", "0.6253165", "0.6097418", "0.6079526", "0.5948031", "0.5945972", "0.5817276", "0.5785555", "0.5750054", "0.5658332", "0.5623658", "0.5612288", "0.5602926", "0.5599797", "0.55840975", "0.55364597", "0.5534023", "0.55268544", "0.5512945", "0.55064285"...
0.75203466
0
Gets the value of a single replica version from the version vector.
def kaPv(YKHO, w5u3): try: Z9rn = YKHO.v[w5u3] return moxu(w5u3, Z9rn) except KeyError: return moxu(w5u3, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO, w5u3):\n try:\n Z9rn = YKHO.v[w5u3].prefix_max\n return moxu(w5u3, Z9rn)\n except KeyError:\n return moxu(w5u3, 0)", "def kaPv(YKHO, DpZH='0.0.0'):\n return YKHO.get('main', 'version', DpZH)", "def kaPv(YKHO, DpZH):\n return YKHO.legaldocumentversion_set.get(vers...
[ "0.6886436", "0.6483586", "0.638789", "0.6210893", "0.6193532", "0.6178242", "0.6168248", "0.598376", "0.5969122", "0.59476566", "0.59133947", "0.58740693", "0.58440053", "0.5835271", "0.5835271", "0.5835271", "0.5835271", "0.5832954", "0.5806279", "0.5791604", "0.57457715", ...
0.7392042
0
Returns a boolean value indicating if the set is empty.
def lsmZ(YKHO): return len(YKHO.v) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return YKHO._values.empty", "def FBfn(YKHO):\n return YKHO._values == []", "def FBfn(YKHO):\n return any(YKHO.values.keys())", "def lsmZ(YKHO):\n return bool(not YKHO._keys and (not YKHO._result))", "def FBfn(YKHO) -> bool:\n return len(YKHO._contains) == 0", "def FBfn(YK...
[ "0.82996863", "0.81252", "0.8090671", "0.799899", "0.7986326", "0.7986326", "0.7975846", "0.79380405", "0.7900816", "0.7867473", "0.78646946", "0.7846049", "0.7824997", "0.7823513", "0.78148806", "0.78119224", "0.7805271", "0.7805242", "0.7805242", "0.7805242", "0.7805242", ...
0.0
-1
Gets the version for a single replica in the greatest contiguous prefix.
def kaPv(YKHO, w5u3): try: Z9rn = YKHO.v[w5u3].prefix_max return moxu(w5u3, Z9rn) except KeyError: return moxu(w5u3, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO, w5u3):\n try:\n Z9rn = YKHO.v[w5u3]\n return moxu(w5u3, Z9rn)\n except KeyError:\n return moxu(w5u3, 0)", "def sQKe(YKHO):\n Aofo = l5g0()\n for w5u3, tTpl in YKHO.v.items():\n if tTpl.prefix_max > 0:\n Aofo.update_version(moxu(w5u3, tTpl.prefix_m...
[ "0.68792284", "0.6018902", "0.56866497", "0.56788313", "0.56775016", "0.56178206", "0.5577237", "0.5543502", "0.5530458", "0.5525358", "0.5515781", "0.55148226", "0.55082476", "0.54947686", "0.5468894", "0.5462069", "0.5430917", "0.54075533", "0.5383288", "0.5378296", "0.5376...
0.8030762
0
Determines if this version set dominates the given version vector. A version set (X) dominates a version vector (Y) when the greatest contiguous prefix of X dominates Y.
def _d7w(YKHO, MHxz): assert isinstance(MHxz, l5g0) return YKHO.get_gcp().dominates(MHxz)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIBh(YKHO, Elif):\n assert isinstance(Elif, l5g0)\n A07C = set(YKHO.v.keys()).union(set(Elif.v.keys()))\n for id in A07C:\n z5la = 0\n RBVb = 0\n if id in YKHO.v:\n z5la = YKHO.v[id]\n if id in Elif.v:\n RBVb = Elif.v[id]\n if z5la < RBVb:\n ...
[ "0.6765598", "0.6627147", "0.5755241", "0.5702933", "0.56431854", "0.5641572", "0.56036353", "0.5598537", "0.55037063", "0.54398865", "0.54049355", "0.53950197", "0.53909713", "0.5388496", "0.5364686", "0.53015894", "0.52953225", "0.52884734", "0.52502805", "0.52314013", "0.5...
0.6639818
1
Sets the street_address1 of this Building.
def UdcS(YKHO, UdcS): YKHO._street_address1 = UdcS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fy4A(YKHO, fy4A):\n YKHO._address1 = fy4A", "def fy4A(YKHO, fy4A):\n YKHO._address1 = fy4A", "def fy4A(YKHO, fy4A):\n YKHO._address1 = fy4A", "def NKKl(YKHO, NKKl):\n YKHO._contact_address1 = NKKl", "def UdcS(YKHO) -> str:\n return qe4Y.get(YKHO, 'street_address1')", "def vwKg(YKHO, VX...
[ "0.7626327", "0.7626327", "0.7626327", "0.76018196", "0.7334764", "0.73124737", "0.7238054", "0.7142024", "0.7136193", "0.71172726", "0.70510024", "0.70510024", "0.6972729", "0.69177115", "0.69136274", "0.69136274", "0.69136274", "0.6906406", "0.68363935", "0.67568326", "0.67...
0.90878683
0
Sets the city of this Building.
def j5sA(YKHO, j5sA): YKHO._city = j5sA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MFwm(YKHO, j5sA: str):\n YKHO.__city = j5sA\n return YKHO", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def j5sA(YKHO, j5sA: str):\n YKHO._city = j5sA", "def Eg4e(YKHO, nPrm):\n YKHO.city = nPrm", "def ShnA(YKHO, BWXx):\n YKHO._city_changed = True\n return BWXx", "def j5sA...
[ "0.835645", "0.83004844", "0.83004844", "0.8026141", "0.79735893", "0.7914882", "0.7890762", "0.77235913", "0.7275589", "0.71457523", "0.7094298", "0.7031364", "0.69307727", "0.6796857", "0.6726615", "0.66870934", "0.66870934", "0.6627547", "0.6627547", "0.6627547", "0.662754...
0.8267615
6
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, iGVe): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Returns a float for sentiment strength based on the input text. Positive values are positive valence, negative value are negative valence.
def El7S(l5Ny): l5Ny = l5Ny.lower().replace('"', '') QOe9 = l5Ny.split(' ') u54L = len(QOe9) for YRbF in range(0, len(QOe9) - 1): if '/' in QOe9[YRbF]: QOe9[YRbF] = QOe9[YRbF].split('/')[0] if QOe9[YRbF] == 'five' or QOe9[YRbF] == 'one' or QOe9[YRbF] == 'four' or (QOe9[YRbF] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def El7S(YKHO, l5Ny: str) -> float:\n return 0.0", "def El7S(YKHO, l5Ny: str) -> float:\n Rhv4 = YKHO.normalize(l5Ny)\n cCrA = [YKHO.sentence_sentiment(KCHu) for KCHu in Rhv4]\n if not Rhv4:\n return 0.0\n Z083 = sum(cCrA) / epAf.sqrt(len(Rhv4))\n return Z083", "def El7S(YKHO, l5Ny: st...
[ "0.7876001", "0.7813915", "0.7716265", "0.76651484", "0.76651484", "0.76651484", "0.7653376", "0.740103", "0.7297571", "0.725937", "0.71493095", "0.7127248", "0.71248263", "0.71232325", "0.71132904", "0.7107907", "0.70982784", "0.70834357", "0.70811564", "0.7071556", "0.69958...
0.0
-1
Build DataFrame from CSV file and read input and call corresponding functions
def b8V_(): lfPI = rLdf.read_csv('course.csv', index_col=None, header=0) Y6Yo = rLdf.read_csv('instructor.csv', index_col=None, header=0) while True: print() print('**************************************************************') print() print() print(' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gjFT():\n G9jH.info('Start of the load_csv_file function\\n\\n')\n XYh7 = {'chicago': 'chicago.csv', 'c': 'chicago.csv', 'new york city': 'new_york_city.csv', 'nyc': 'new_york_city.csv', 'washington': 'washington.csv', 'w': 'washington.csv'}\n Ol8d = 'Choose between: chicago, new york city, washington...
[ "0.7060185", "0.70309496", "0.7023488", "0.7015994", "0.69869983", "0.69469196", "0.6912935", "0.68726456", "0.68300617", "0.67864525", "0.67572296", "0.6723887", "0.67169917", "0.66860425", "0.65929186", "0.65861356", "0.65691286", "0.6548945", "0.65275884", "0.65201616", "0...
0.0
-1
Tests search questions failure 404
def AYqa(YKHO): geh0 = YKHO.client().post('/search', json={'searchTerm': 'hvjvjvjvj'}) nPrm = qQXR.loads(geh0.data) YKHO.assertEqual(geh0.status_code, 404) YKHO.assertEqual(nPrm['success'], False) YKHO.assertEqual(nPrm['message'], 'resource not found')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZIi(YKHO):\n Ylbp = YKHO.client().post('/api/v1.0/questions/search', json={'searchTerm': 'xgjtddk'})\n nPrm = qQXR.loads(Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, 404)\n YKHO.assertEqual(nPrm['success'], False)", "def iniv(YKHO):\n im04 = YKHO.app.get('/search?q=')\n assert 'Invalid ...
[ "0.8346478", "0.78386676", "0.7655882", "0.7611445", "0.7582297", "0.7572322", "0.7547602", "0.75274664", "0.74885404", "0.7486168", "0.74143213", "0.73870075", "0.73817194", "0.73596686", "0.7344701", "0.73240143", "0.7279835", "0.7278699", "0.7275025", "0.7223565", "0.71785...
0.8673299
0
Function to return a matrix with random numbers
def jOZF(jL4c: int, Hgiv: int, zkkE): SppC = oyIN.random.randint(jL4c, Hgiv, zkkE) return SppC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PB7L(exwG):\n return [[tuKI() for r845 in range(exwG)] for YRbF in range(exwG)]", "def PB7L(exwG):\n return [[tuKI() for r845 in range(exwG)] for YRbF in range(exwG)]", "def glVU(YKHO, r8hN, exwG):\n k0lF = oyIN.random.rand(r8hN, exwG) * 10\n return k0lF", "def PB7L(exwG):\n return [[tuKI(...
[ "0.82720214", "0.82720214", "0.8170863", "0.816626", "0.80132884", "0.7696", "0.7593341", "0.75899494", "0.75427365", "0.7454708", "0.7381221", "0.7317469", "0.7248333", "0.72056234", "0.7203689", "0.71531254", "0.7139463", "0.7095582", "0.7084871", "0.7072468", "0.7070423", ...
0.7544369
8
Close WHMCS client account.
def lKxe(YKHO, Eorv: Union[ClientResource, int]) -> None: zb3C = P8oC.getid(Eorv) YKHO.client.send_request(action='closeclient', params={'clientid': zb3C})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLgZ(YKHO) -> None:\n YKHO._cf.close_link()", "def D4hg(YKHO):\n WrdS = ['DELETE FROM card WHERE number = ?', [YKHO.current_user]]\n YKHO.execute_sql(WrdS, query=False)", "def ngVb(YKHO):\n YKHO.connection.logout()", "def DDI8(YKHO):\n try:\n YKHO.logoff()\n except:\n pass...
[ "0.7122223", "0.7068925", "0.6725214", "0.6714485", "0.6708872", "0.6702257", "0.66917455", "0.6671342", "0.66646606", "0.6632463", "0.66249037", "0.6623386", "0.6623386", "0.6623386", "0.6623386", "0.6613216", "0.6613216", "0.6613216", "0.65942633", "0.65942633", "0.6561175"...
0.6508191
26
Create and dislike an article.
def la2k(YKHO): eOtH = YKHO.authenticate_user(YKHO.auth_user_data).data['token'] l3QS = YKHO.client.post(YKHO.articles_url, YKHO.article, format='json', HTTP_AUTHORIZATION=f'Token {eOtH}') s5ru = l3QS.data['slug'] return YKHO.client.patch(CG4g.dislikes_article_url(s5ru), format='json', HTTP_AUTHORIZATIO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8iE(YKHO):\n eOtH = YKHO.authenticate_user(YKHO.auth_user_data).data['token']\n l3QS = YKHO.client.post(YKHO.articles_url, YKHO.article, format='json', HTTP_AUTHORIZATION=f'Token {eOtH}')\n s5ru = l3QS.data['slug']\n return YKHO.client.patch(CG4g.likes_article_url(s5ru), format='json', HTTP_AUTHOR...
[ "0.745337", "0.7020639", "0.66874474", "0.66176945", "0.6605046", "0.6491332", "0.6382939", "0.63628924", "0.63349354", "0.62992454", "0.61801773", "0.61379683", "0.61253536", "0.6094107", "0.6038576", "0.60010463", "0.5979844", "0.59318954", "0.59206164", "0.5918372", "0.587...
0.83872414
0
Return the unit the value is expressed in.
def b82i(YKHO): return YKHO._unit_of_measurement
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82...
[ "0.8413863", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.829953", "0.8259684", "0.8214764", "0.8193237", "0.8180365", "0.81795245", "0.8151776", "0.8061289", "0.80567676", "0.80567676", "0.80567676", "0.8056...
0.8094879
17
Return the state attributes.
def R1i3(YKHO): return YKHO._attributes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO):\n return YKHO._state_attrs", "def upgy(YKHO):\n nPrm = {}\n return nPrm", "def upgy(YKHO):\n azoT = {}\n for H5ew in YKHO._attributes.keys():\n azoT[H5ew] = YKHO._item[YKHO._attributes[H5ew]]\n return azoT", "def R1i3(YKHO):\n return YKHO.attr\n 'Return the stat...
[ "0.9143755", "0.8802014", "0.8795997", "0.85616785", "0.84978926", "0.84978926", "0.8403377", "0.83848894", "0.83840966", "0.83661157", "0.83661157", "0.83661157", "0.83661157", "0.83661157", "0.8357762", "0.8335113", "0.8335113", "0.8335113", "0.82890624", "0.82890624", "0.8...
0.83652854
15
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
36
Returns the distance to a point.
def M_X5(YKHO, x_GZ): c1pd = YKHO.loc() FGvw = x_GZ.loc() jzdc = XTiz.array((c1pd['x'], c1pd['y'], c1pd['z'])) Fg_i = XTiz.array((FGvw['x'], FGvw['y'], FGvw['z'])) pImw = aJJu.norm(jzdc - Fg_i) return pImw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WrkD(YKHO, AU8u):\n return pYAm(YKHO, AU8u)", "def XnYi(YKHO, AU8u):\n q5JD, q2Ro = AU8u\n Jw7X = YKHO.x - q5JD\n eUWA = YKHO.y - q2Ro\n pImw = epAf.sqrt(Jw7X * Jw7X + eUWA * eUWA)\n return pImw", "def sHLW(YKHO, AU8u):\n return YKHO.euclidean_distance(YKHO.abs_coords, AU8u)", "def A...
[ "0.89873433", "0.8760277", "0.873243", "0.87137717", "0.84886813", "0.8374199", "0.835731", "0.8304148", "0.80890507", "0.8049634", "0.80142754", "0.79796594", "0.78766775", "0.7826379", "0.78171456", "0.77767754", "0.77283275", "0.77036357", "0.76963335", "0.7692476", "0.768...
0.0
-1
Gets the expiration date by concatenating strings
def q4Nq(x0eS, lO87): return '{0}/{1}'.format(x0eS, lO87)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rG7T(YKHO):\n OBx7 = fCoM(days=gCuF.INVOICE_EXPIRATION_DAYS)\n return YKHO.date + OBx7", "def rG7T(YKHO):\n OBx7 = fCoM(days=31)\n return YKHO.date + OBx7", "def ycq0(YKHO):\n return YKHO.expirationdate", "def ad72(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'expiration_date')", "def ...
[ "0.7491158", "0.7278736", "0.70565253", "0.70464265", "0.70464265", "0.70415914", "0.69803673", "0.6977272", "0.6960778", "0.6926512", "0.6913347", "0.68820244", "0.68620116", "0.6861124", "0.6861124", "0.6837818", "0.673939", "0.6697199", "0.66746545", "0.66737777", "0.66737...
0.0
-1
Save checkpoint if a new best is achieved
def IRyE(qtWj, C3ST, K0do, N77f, xWf0): if not xWf0: print('=> Validation Accuracy did not improve') else: print('=> Saving a new best') xBra = HvBO + 'checkpoint{0}_epoch{1}_loss{2:.4f}.pth.tar'.format(ZWrm, qtWj, N77f) ht2j.save({'epoch': qtWj, 'model_state_dict': C3ST.state_di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRyE(YKHO, xWf0, Ux0P=None):\n Ux0P = Hy7s.path.join(YKHO.args.checkpoint_dir, Ux0P)\n QTBn = {'epoch': YKHO.current_epoch + 1, 'iteration': YKHO.current_iter, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'best_MIou': YKHO.best_MIou}\n if xWf0:\n bo34.info('=...
[ "0.8266038", "0.8223599", "0.82104695", "0.809479", "0.800978", "0.784001", "0.78015846", "0.7800611", "0.7791193", "0.77430564", "0.7710844", "0.7689427", "0.76438427", "0.76184404", "0.75749797", "0.7574096", "0.7565265", "0.755794", "0.75466865", "0.75466865", "0.75466865"...
0.76582354
12
Calculate the seeing FWHM at the specified wavelength. Assumes that seeing scales with wavelength with a power 1/5, as predicted by Kolmogorov turbulence theory.
def zfsK(YKHO, __d3): JSkD = __d3.to(P6bq.Angstrom).value / YKHO._seeing['wlen_ref'].to(P6bq.Angstrom).value return YKHO._seeing['fwhm_ref'] * JSkD ** (-0.2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_yx():\n qJa9, A3Vt = oyIN.loadtxt(Hy7s.path.join(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)), 'muse_wave_R.dat')).T\n qJa9 = qJa9 * P6bq.nm\n rXfu = qJa9.to('angstrom') / A3Vt\n Dyub = vldj(qJa9.to('angstrom'), rXfu, kind='linear', bounds_error=False, fill_value='extrapolate')\n qJa9 = oyIN.hst...
[ "0.6814429", "0.6805669", "0.6803724", "0.6793634", "0.6785397", "0.67742693", "0.6594526", "0.65719146", "0.65138865", "0.65072787", "0.65020734", "0.6452364", "0.6430461", "0.64089733", "0.64074016", "0.63813704", "0.63523346", "0.6347693", "0.63352954", "0.6277724", "0.625...
0.805795
0
Readonly value of the Vband extinction of the moon spectrum. Calculated as V V where V is the BessellV magnitude of the input lunar spectrum and V is calculated with airmass 1.0 extinction applied.
def nDnI(YKHO): return YKHO._vband_extinction
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UphJ(YKHO) -> P6bq.V / P6bq.m:\n ...", "def caa_(YKHO, Ty9i):\n return (-YKHO.rbm_am.effective_energy(Ty9i)).exp().sqrt()", "def m8jn(YKHO) -> float:\n YKHO.__send_message('SOUR:VOLT:IMM?')\n return float(YKHO.__read_message())", "def JLV9(YKHO):\n if hasattr(YKHO.model, 'Rv'):\n re...
[ "0.68952996", "0.63379824", "0.63143426", "0.6224995", "0.6126336", "0.60543627", "0.60164905", "0.6004208", "0.59950143", "0.5956701", "0.58704525", "0.58379567", "0.5824164", "0.5821291", "0.580983", "0.5805228", "0.5801196", "0.5801196", "0.5801196", "0.5801196", "0.580119...
0.70126694
0
This default evaluation function just returns the score of the state. The score is the same one displayed in the Pacman GUI. This evaluation function is meant for use with adversarial search agents (not reflex agents).
def fHT3(rfNN): return rfNN.getScore()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def fHT3(Ov5A):\n return Ov5A.getScore()", "def b7La(YKHO, QTBn):\n iBIi, oyg0, YPaw = QTBn\n return phK_(oyg0, iBIi)", "def fHT3(rfNN):\n return rfNN.getScore()", "def fHT3(rfNN: GameState):\n re...
[ "0.8074533", "0.8053557", "0.8053557", "0.79383284", "0.7676924", "0.7660595", "0.76425344", "0.7633476", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7592871", "0.7504403", "0.7488267", "0.7488267", ...
0.7553003
19
Check if the point belongs to the manifold. Check if an (n,n)matrix is an orthogonal projector onto a subspace of rank p.
def jeWf(YKHO, AU8u, D1sU=ANWk): raise NotImplementedError('The Grassmann `belongs` is not implemented.It shall test whether p*=p, p^2 = p and rank(p) = k.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AQW1(YKHO, AU8u):\n return (AU8u - YKHO.point).dot(YKHO.normal) == 0", "def JaSx(XP5J, Mkmy=1):\n Mkmy = Mkmy / 2\n return not oyIN.any(oyIN.logical_or(XP5J <= -Mkmy, XP5J >= Mkmy))", "def YLXj(Emd4, AU8u, xk60):\n return oyIN.all(xk60[:, :-1] @ AU8u + xk60[:, -1] >= -Emd4.TOL)", "def jeWf(YK...
[ "0.63765615", "0.62899905", "0.61323243", "0.6090817", "0.60819507", "0.6040752", "0.60350364", "0.6026272", "0.5992289", "0.59878206", "0.59877515", "0.59781677", "0.5869642", "0.5869344", "0.5829185", "0.58205223", "0.58119464", "0.5805321", "0.57832277", "0.5776886", "0.57...
0.0
-1
load image from saved path use pytesseract to extract text from movitional quote image
def gFHi(pmON): VXjJ = XC5k.imread(pmON) GCiW = Z537.image_to_string(VXjJ) return GCiW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FLau(Ux0P):\n l5Ny = Z537.image_to_string(hnIv.open(Ux0P))\n return l5Ny", "def FLau(Ux0P):\n l5Ny = Z537.image_to_string(hnIv.open(Ux0P))\n return l5Ny", "def FLau(Ux0P):\n l5Ny = Z537.image_to_string(hnIv.open(Ux0P))\n return l5Ny", "def FLau(Ux0P):\n l5Ny = Z537.image_to_string(hn...
[ "0.70686173", "0.68851864", "0.6840833", "0.6788982", "0.678043", "0.677394", "0.6765121", "0.6765121", "0.6765121", "0.6765121", "0.6765121", "0.6696984", "0.6686997", "0.66676", "0.66260374", "0.6624183", "0.66009575", "0.6587927", "0.6566076", "0.6558766", "0.65141124", ...
0.70686674
0
Retrieve list of categories This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def hRmV(YKHO, **B2fa): B2fa['_return_http_data_only'] = True if B2fa.get('callback'): return YKHO.catalog_category_management_v1_get_tree_get_with_http_info(**B2fa) else: nPrm = YKHO.catalog_category_management_v1_get_tree_get_with_http_info(**B2fa) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)", "def LQuW(YKHO):\n rNmM = []\n vgXP = 0\n MOPg = {'authorization': f'Bearer {YKHO.access_token}'}\n while vgXP != 'stop':\n bD7m = f'{YKHO.base_url}{YKHO.account_id}/Category.json?offset={vgXP}'\n ...
[ "0.7414238", "0.70649195", "0.7033856", "0.7020666", "0.7014184", "0.6954747", "0.6882014", "0.68750197", "0.68691033", "0.6787026", "0.6747431", "0.6728484", "0.671682", "0.6715536", "0.6715536", "0.6654511", "0.6647251", "0.66432244", "0.659239", "0.65861106", "0.6558024", ...
0.0
-1
Retrieve list of categories This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def MB05(YKHO, **B2fa): HhGF = ['root_category_id', 'depth'] HhGF.append('callback') HhGF.append('_return_http_data_only') HhGF.append('_preload_content') HhGF.append('_request_timeout') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise Ty...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)", "def LQuW(YKHO):\n rNmM = []\n vgXP = 0\n MOPg = {'authorization': f'Bearer {YKHO.access_token}'}\n while vgXP != 'stop':\n bD7m = f'{YKHO.base_url}{YKHO.account_id}/Category.json?offset={vgXP}'\n ...
[ "0.7417641", "0.7066716", "0.703522", "0.7023356", "0.70163924", "0.6957352", "0.6885133", "0.6877648", "0.6871489", "0.6788816", "0.67498994", "0.67309034", "0.6718633", "0.67182803", "0.67182803", "0.6656473", "0.6648103", "0.6646795", "0.6594888", "0.65883756", "0.65613884...
0.0
-1
Decorator to load a model given a query parameter.
def uyMl(C3ST, azoT=None, k78t=None, B2fa=False, Uvf2=None, EUYl=None, lEts=()): return MNw1((C3ST, azoT, k78t), kwargs=B2fa, permission=Uvf2, addlperms=EUYl, urlcheck=lEts)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO, *SGPK, **B2fa):\n pass", "def YrZb(C3ST, **B2fa):\n return MIHy.query(C3ST).filter_by(**B2fa).first()", "def NMoC(ZuBV, NArs):\n C3ST = BfDw._get_model(ZuBV)\n try:\n YEnM = C3ST.objects.get(**NArs)\n except C3ST.DoesNotExist:\n YEnM = None\n return YEnM", "def ...
[ "0.6236258", "0.6167395", "0.6163216", "0.60147595", "0.5957998", "0.5939368", "0.5939368", "0.5928617", "0.59279794", "0.5887816", "0.58746994", "0.5776433", "0.577106", "0.5745215", "0.5687815", "0.56632864", "0.5643452", "0.5616083", "0.56080174", "0.5563754", "0.5525393",...
0.6713182
0
View decorator that requires a certain permission to be present in ``current_auth.permissions`` before the view is allowed to proceed. Aborts with ``403 Forbidden`` if the permission is not present. The decorated view will have an ``is_available`` method that can be called to perform the same test.
def mN5l(Uvf2): def _gRY(eHNT): def WFel(): if not T0zl.permissions: return False elif WCg9(Uvf2): return bool(T0zl.permissions & Uvf2) else: return Uvf2 in T0zl.permissions def Sdxo(QpfX=None): Aofo =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vhqh(Uvf2):\n\n def mrMx(tTee):\n\n @zaGL(tTee)\n def Nlkd(*qIxc, **B2fa):\n try:\n with Uvf2.require():\n return tTee(*qIxc, **B2fa)\n except wPvU:\n return UhOT(401, message='401 Unauthorized')\n return Nlkd\n r...
[ "0.79259574", "0.7624149", "0.75993085", "0.7597586", "0.7558298", "0.7407453", "0.7305534", "0.7235568", "0.7229682", "0.7170002", "0.71298456", "0.7108786", "0.70849216", "0.6992502", "0.6907175", "0.6879222", "0.6869597", "0.68678224", "0.67898214", "0.678937", "0.6789009"...
0.7768863
1
Normalized coordinates (x, y)
def oGiJ(YKHO, WKvO, LVAh): TVTK, H2v2 = (YKHO.size_info['width'], YKHO.size_info['height']) return (WKvO / TVTK, LVAh / H2v2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UjaM(YKHO, WKvO, LVAh):\n eeYG = (WKvO - YKHO.xlim[0]) / (YKHO.xlim[1] - YKHO.xlim[0]) * (YKHO.S[0][1] - YKHO.S[0][0]) + YKHO.S[0][0]\n MOYU = (LVAh - YKHO.ylim[0]) / (YKHO.ylim[1] - YKHO.ylim[0]) * (YKHO.S[1][1] - YKHO.S[1][0]) + YKHO.S[1][0]\n return oyIN.array([eeYG, MOYU])", "def NkkI(YKHO, WKvO...
[ "0.7348617", "0.7302633", "0.71496123", "0.7138653", "0.7099414", "0.7086921", "0.700974", "0.7003561", "0.68153065", "0.6712345", "0.6712345", "0.66989547", "0.66850764", "0.668312", "0.66273755", "0.66212595", "0.66077167", "0.65581596", "0.6554475", "0.65515155", "0.651918...
0.655352
19
Load transformer encoderdecoder model to True Case.
def d1bu(C3ST: str='base', BHxz: bool=False, **B2fa): C3ST = C3ST.lower() if C3ST not in weMe: raise ValueError('model not supported, please check supported models from `malaya.true_case.available_transformer()`.') if 't5' in C3ST: return shlM.load(module='true-case', model=C3ST, model_class...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, pmON, qtWj):\n MdWP = Hy7s.path.join(pmON, 'encoder/')\n nBdL = Hy7s.path.join(pmON, 'decoder/')\n if qtWj is not None:\n MdWP = MdWP + str(qtWj) + '.ckpt'\n nBdL = nBdL + str(qtWj) + '.ckpt'\n else:\n MdWP = max(SC2F.glob(MdWP + '*'), key=Hy7s.path.getctime)\n ...
[ "0.6611669", "0.6472032", "0.6453633", "0.63689345", "0.6298666", "0.6298666", "0.62141937", "0.61992294", "0.6182864", "0.6055282", "0.6008053", "0.5987962", "0.59785396", "0.59691346", "0.59507823", "0.5949886", "0.5929689", "0.588553", "0.5878911", "0.5838052", "0.58126813...
0.59886956
11
Output config into a yaml file.
def S9Vy(YKHO, Ux0P): R8cc = {} for H5ew in type(YKHO).__dict__: if isinstance(type(YKHO).__dict__[H5ew], _qad): if type(YKHO).__dict__[H5ew]._isArray: R8cc[H5ew] = oyIN.ndarray.tolist(type(YKHO).__dict__[H5ew]._value) else: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChRH():\n global _config\n global _modified\n if VDLm:\n cLAE = vmCi()\n tzAq, IaaG = Hy7s.path.split(cLAE)\n Hy7s.makedirs(tzAq, exist_ok=True)\n with open(cLAE, 'w') as eHNT:\n eJb6.dump(viqz, eHNT)\n VDLm = False", "def xkzz(YKHO):\n with open(YKHO...
[ "0.7687571", "0.75986254", "0.74737453", "0.7452921", "0.7347648", "0.7328782", "0.73236066", "0.73090535", "0.729206", "0.72775346", "0.7276606", "0.7181249", "0.71613115", "0.7143129", "0.71425486", "0.7132608", "0.70654124", "0.7048038", "0.70369816", "0.7033612", "0.70066...
0.7351774
4
r"""Returns dictionary with blank separated tokens in `document_text` field. Removes byte offsets from annotations, and removes `document_html` and `document_tokens` fields. All annotations in the output are represented as [start_token, end_token) offsets into the blank separated tokens in the `document_text` field.
def q4Hh(MuVg): def GkjM(eOtH): """ Returns token in which blanks are replaced with underscores. HTML table cell openers may contain blanks if they span multiple columns. There are also a very few unicode characters that are prepended with blanks. Args: token: Di...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GacI(YKHO):\n global annot_indexes\n YKHO.annotated_pages = []\n YKHO.page = [None] * YKHO.total_pages\n YKHO.document = LhGl.open(YKHO.filename)\n YKHO.image_data = YKHO.get_page_data(YKHO.current_page)\n YKHO.update_image()\n Kg6P = [-1, -1, 0]", "def N1HP(A97Q: List[List[Token]], l5Ny...
[ "0.5966986", "0.59295577", "0.59042466", "0.5836694", "0.57588416", "0.57509047", "0.5738945", "0.5736064", "0.570443", "0.56954217", "0.56621593", "0.56149894", "0.5593694", "0.55253255", "0.5467901", "0.544662", "0.54353225", "0.5407921", "0.54028505", "0.5355318", "0.53305...
0.0
-1
Make a grid for an image with a given boundaries and resolution
def wwKj(rTQi=[25, 50], jk7u=[-110, -80], Ylbp=0.5): Z6mt, bpbe = mWKm(HfiF(jk7u[0], jk7u[1], Ylbp), HfiF(rTQi[0], rTQi[1] + 1, Ylbp)) return (Z6mt, bpbe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ry8O(uyle, H2v2, TVTK):\n LNo8 = uyle()\n yDqo = LNo8.data.dtype\n GdnS = LNo8.data.shape[0]\n nW6T = LNo8.data.shape[1]\n fIMm = H2v2 * GdnS\n GNZ6 = TVTK * nW6T\n vC9B = len(LNo8.data.shape)\n if vC9B == 2:\n LNo8 = hnIv((fIMm, GNZ6))\n elif vC9B == 3:\n utSP = LNo8.d...
[ "0.71438384", "0.6937752", "0.6920003", "0.6918144", "0.6910517", "0.6898566", "0.6851785", "0.68374956", "0.68362445", "0.68313706", "0.68313706", "0.6806724", "0.6780041", "0.67679477", "0.6750148", "0.67436004", "0.6738592", "0.6738034", "0.67296326", "0.67296326", "0.6729...
0.67824316
12
Action executed when the device must be Turn OFF.
def Z_rv(x0hE: Client): if glIp(): g9Xm() print('OFF action skipped') else: x0hE.publish(gCuF.off_topic, gCuF.off_payload) print('Tx OFF: Requested device to turn OFF/Sleep')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaUi(YKHO):\n YKHO.action('turnOff')", "def l4XF(YKHO):\n YKHO.event['action'] = 'off'\n YKHO.LED.write(False, event=YKHO.event)\n return True", "def l4XF(YKHO):\n YKHO.status = 0\n print(YKHO, 'turned off')", "def Z_rv(YKHO, **B2fa):\n YKHO._state = YKHO._hass.data[J6RW].switch(Fals...
[ "0.8077451", "0.7967055", "0.78686345", "0.775527", "0.7669052", "0.7664964", "0.7645094", "0.76408213", "0.7610356", "0.7571645", "0.75419307", "0.7520476", "0.75139266", "0.75016", "0.74937063", "0.7490457", "0.7479557", "0.74776864", "0.746572", "0.7424953", "0.7424539", ...
0.7783508
3
The total amount of backoff attempts that will be made.
def EI4D(YKHO): return YKHO._total_attempts
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QuhE(YKHO):\n return YKHO._backoff_count", "def plaf(YKHO) -> int:\n return qe4Y.get(YKHO, 'backoff_limit')", "def mVSg(YKHO):\n return YKHO._backoff_factor", "def T0bq(YKHO):\n return YKHO.__retry_count", "def _BJT(YKHO):\n if YKHO.force_auto_sync:\n YKHO.get('TotalRetry')\n r...
[ "0.8651225", "0.7639845", "0.7620039", "0.72546077", "0.7218084", "0.713905", "0.71001333", "0.7021747", "0.7021747", "0.70040584", "0.6941661", "0.69356596", "0.6923987", "0.6878274", "0.68738043", "0.6850094", "0.6847495", "0.6798325", "0.67968607", "0.675752", "0.6749915",...
0.74325454
3
The current amount of backoff attempts that have been made.
def QuhE(YKHO): return YKHO._backoff_count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mVSg(YKHO):\n return YKHO._backoff_factor", "def plaf(YKHO) -> int:\n return qe4Y.get(YKHO, 'backoff_limit')", "def lDfj(YKHO):\n return YKHO.config['retry_backoff_ms']", "def hEXa(WLLB):\n return 3 ** WLLB", "def T0bq(YKHO):\n return YKHO.__retry_count", "def kk7D(YKHO, uJCA: float, K...
[ "0.8085011", "0.8048017", "0.7524156", "0.7517848", "0.7502937", "0.749647", "0.73016065", "0.7278664", "0.725749", "0.725749", "0.72234744", "0.7211331", "0.71707773", "0.7167438", "0.71002555", "0.7036708", "0.69859505", "0.69801724", "0.6962888", "0.69580275", "0.6941372",...
0.89302593
0
Create a consistencygroup object in the DB.
def LK64(bp_0, KcEq='test_host@fakedrv#fakepool', mWFP='test_cg', JBZA='this is a test cg', jGRS=V_D6.ConsistencyGroupStatus.AVAILABLE, TUUx='fake_az', VM2l=None, _kz4=None, HOdb=None, **B2fa): P1Hs = ei4T.ConsistencyGroup(bp_0) P1Hs.host = KcEq P1Hs.user_id = bp_0.user_id or n9UN.USER_ID P1Hs.project_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LK64(YKHO, uOe2):\n YKHO._consistencygroup_creation_check(uOe2)\n FBv8 = uOe2.id\n AaFj = {'status': 'available'}\n XObx, Ylbp = YKHO.client.create_consistencygroup(FBv8)\n if XObx:\n if XObx['errorCode'] == YKHO.RESOURCE_ALREADY_EXIST:\n na1r.warning(EE9z('CG %s with this name...
[ "0.7779713", "0.753869", "0.71850055", "0.6810524", "0.6808021", "0.678536", "0.67496127", "0.67172396", "0.6602825", "0.6557775", "0.6416381", "0.63874036", "0.63476515", "0.63402563", "0.63383925", "0.6334484", "0.6306857", "0.623513", "0.62223744", "0.62057847", "0.6205784...
0.7500778
2
Create a group snapshot object in the DB.
def IUr5(bp_0, hE03, iYX8=None, mWFP='test_group_snapshot', JBZA='this is a test group snapshot', jGRS='creating', H8pb=True, cRtr=True, **B2fa): hkxX = {'user_id': bp_0.user_id or n9UN.USER_ID, 'project_id': bp_0.project_id or n9UN.PROJECT_ID, 'status': jGRS, 'name': mWFP, 'description': JBZA, 'group_id': hE03, 'g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IUr5(YKHO, **B2fa):\n Ppmp = qQXR.dumps({'group_snapshot': B2fa})\n _hkX, TBsA = YKHO.post('group_snapshots', Ppmp)\n TBsA = qQXR.loads(TBsA)\n YKHO.validate_response(uPxI.create_group_snapshot, _hkX, TBsA)\n return hKde.ResponseBody(_hkX, TBsA)", "def Sv2y(YKHO, uOe2):\n YKHO._createGroup ...
[ "0.8022553", "0.6732671", "0.664898", "0.66460264", "0.65983385", "0.659043", "0.6518362", "0.6515141", "0.6506232", "0.6476533", "0.6431292", "0.63473725", "0.6334877", "0.6330912", "0.63160086", "0.6297607", "0.6295967", "0.6293035", "0.62877876", "0.62850404", "0.62708104"...
0.72925687
1
Return a 'file' spec. This is to be used anywhere that you need to do something such as mock.MagicMock(spec=file) to mock out something with the file attributes. Due to the 'file' builtin method being removed in Python 3 we need to do some special handling for it.
def _H9l(): global file_spec if h3AP is None: import _io h3AP = list(set(dir(_io.TextIOWrapper)).union(set(dir(_io.BytesIO))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DyVx(YKHO):\n r8hN = TMAJ.MagicMock(spec=nUeQ, return_value=TMAJ.sentinel.file_object)\n with TMAJ.patch('__builtin__.open', r8hN):\n rVmU = tElq(YKHO.path_source)\n r8hN.assert_called_once_with(YKHO.path_source, 'rb')\n YKHO.assertEqual(rVmU, TMAJ.sentinel.file_object)", "def SH8A(YKHO):\...
[ "0.64448625", "0.6344111", "0.6192296", "0.61333805", "0.61046755", "0.60902077", "0.60769385", "0.6047628", "0.6032337", "0.59959745", "0.59325814", "0.5918482", "0.591508", "0.5863049", "0.5818887", "0.5809614", "0.57954484", "0.57954484", "0.5756891", "0.5736644", "0.57134...
0.69482017
0
Format datetime string to date.
def mZOz(_QSz=None): if not _QSz: _QSz = TsP8.utcnow() JvEs = _QSz.strftime('%Y-%m-%dT%H:%M:%S') yl4j = _QSz.tzname(None) if _QSz.tzinfo else 'UTC' JvEs += 'Z' if yl4j in ['UTC', 'UTC+00:00'] else yl4j return JvEs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l0Eo(vIwR):\n return vIwR", "def OZOJ(pKvt):\n return qcWV.datetime.strptime(str(pKvt), '%Y%m%d')", "def pbww(WKvO, PFAa):\n import dateutil.parser\n if isinstance(WKvO, str):\n WKvO = d5IO.parser.parse(WKvO)\n return WKvO.strftime(PFAa)", "def pbww(YKHO, _c1T):\n return qcWV.str...
[ "0.74226046", "0.7411461", "0.72405565", "0.7233156", "0.7192382", "0.7147671", "0.7088627", "0.70806277", "0.70776206", "0.70625544", "0.7051567", "0.6999439", "0.6999439", "0.6960239", "0.6955904", "0.69353664", "0.69344294", "0.69289476", "0.6906577", "0.6906522", "0.68685...
0.0
-1
Test if user post invalid ingredient
def wSL9(YKHO): pB3N = {'name': ''} Ylbp = YKHO.client.post(ZrLe, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AnTE(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, pB3N)\n vtfo = _baS.objects.filter(user=YKHO.user).exists()\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertFalse(vtfo)", "def wSL9(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(ZrLe, ...
[ "0.7956447", "0.72363293", "0.72306466", "0.7217724", "0.7213086", "0.7211502", "0.7201952", "0.7187699", "0.7180347", "0.714118", "0.7136764", "0.6968375", "0.6941818", "0.69144225", "0.6888354", "0.68742365", "0.6564548", "0.65250593", "0.65250593", "0.65114975", "0.6496423...
0.71662325
9
returns (x,y) position of the given unit_model
def Iuzb(YKHO, qjqx: str): if qjqx not in YKHO._allocated_positions: raise KeyError(f"${qjqx} doesn't exist in the current layout") return YKHO._allocated_positions[qjqx]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TwAD(FMwV):\n uPnQ = FMwV.get_transform()\n WKvO = uPnQ.location.x\n LVAh = uPnQ.location.y\n return (WKvO, LVAh)", "def fBW9(YKHO):\n TIQN()\n DuhE()\n hBUG(YKHO.vehicle.x, YKHO.vehicle.y)\n N0Pp(YKHO.vehicle.angle)\n hBUG(YKHO.x, YKHO.y)\n N0Pp(YKHO.angle)\n WKvO, LVAh = (m...
[ "0.7270398", "0.6848006", "0.682797", "0.6631157", "0.66252935", "0.66089875", "0.65654683", "0.65265334", "0.65067333", "0.65064853", "0.65064853", "0.6500149", "0.64804363", "0.6479327", "0.64727575", "0.645223", "0.6449225", "0.6446928", "0.6418654", "0.6418502", "0.640880...
0.7310038
0
Strip the identation of a line for the comment header.
def Nlxd(zFiD): if zFiD.startswith(' ' * 4): zFiD = zFiD[4:] return zFiD.rstrip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGao(YKHO, zFiD):\n return YKHO.comments.sub('', zFiD).strip()", "def bSLV(Emd4, zFiD):\n if '#' in zFiD:\n zFiD = zFiD[:zFiD.find('#')]\n return zFiD.strip()", "def o9dR(zFiD):\n aM_I = zFiD.find('#')\n if aM_I != -1:\n zFiD = zFiD[:aM_I]\n return zFiD.strip()", "def o9dR...
[ "0.8185476", "0.81815165", "0.81698656", "0.80387485", "0.8017068", "0.7984539", "0.78276616", "0.7802836", "0.77896845", "0.7727546", "0.77014315", "0.75164855", "0.74976444", "0.74578524", "0.74426836", "0.7407025", "0.7307769", "0.72976154", "0.7209633", "0.71841425", "0.7...
0.6333969
57
Sets the manual_claim of this TpoDataDTOsClaimClaimDTO.
def Zohy(YKHO, Zohy): YKHO._manual_claim = Zohy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bo6b(YKHO, Bo6b):\n YKHO._manual_mapping = Bo6b", "def JFnc(YKHO, JFnc):\n if JFnc is None:\n raise ValueError('Invalid value for `manual_duration`, must not be `None`')\n YKHO._manual_duration = JFnc", "def HyII(YKHO, HyII):\n if HyII is None:\n raise ValueError('Invalid value fo...
[ "0.574869", "0.5526401", "0.54647684", "0.5408936", "0.5408936", "0.5408936", "0.51941156", "0.5170762", "0.50954485", "0.5039657", "0.49394178", "0.47746545", "0.47610357", "0.47492713", "0.47492713", "0.47335845", "0.4720524", "0.45798698", "0.449697", "0.4440468", "0.43417...
0.84821147
0
Sets the national_id_number of this TpoDataDTOsClaimClaimDTO.
def dFzo(YKHO, dFzo): if dFzo is None: raise ValueError('Invalid value for `national_id_number`, must not be `None`') YKHO._national_id_number = dFzo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nw7m(YKHO, Nw7m):\n YKHO._identification_number = Nw7m", "def Nw7m(YKHO, Nw7m):\n YKHO._identification_number = Nw7m", "def oTSd(YKHO, oTSd):\n YKHO._nationality = oTSd", "def EkJL(YKHO, EkJL):\n YKHO._national_topographic_system_map_number = EkJL", "def qxxh(YKHO, qxxh):\n YKHO._number_...
[ "0.5835356", "0.5835356", "0.578879", "0.541934", "0.54099864", "0.5259217", "0.51979256", "0.5193558", "0.51505303", "0.5149657", "0.51221246", "0.51164055", "0.50615364", "0.5016759", "0.49942937", "0.4985884", "0.49857628", "0.49850222", "0.4965299", "0.4925805", "0.490439...
0.6743522
0
Sets the net of this TpoDataDTOsClaimClaimDTO.
def Zxma(YKHO, Zxma): if Zxma is None: raise ValueError('Invalid value for `net`, must not be `None`') YKHO._net = Zxma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ipmz(YKHO, Ipmz):\n YKHO._net_amount = Ipmz", "def iQpH(YKHO, Zxma):\n YKHO.net = Zxma\n YKHO.net.to(YKHO.device)", "def Zxma(YKHO, Zxma):\n YKHO._net = Zxma", "def Zxma(YKHO, Zxma):\n YKHO._net = Zxma", "def iQpH(YKHO, Zxma):\n YKHO._net = Zxma\n YKHO._initialize_whole_map_line_se...
[ "0.57390463", "0.5639329", "0.5281396", "0.5281396", "0.5141335", "0.4997099", "0.49159387", "0.48477393", "0.48032323", "0.4767277", "0.47608128", "0.47606215", "0.47182167", "0.4691369", "0.46643275", "0.4663988", "0.46484905", "0.4611302", "0.46090165", "0.44443926", "0.44...
0.5732105
1
Sets the activity of this TpoDataDTOsClaimClaimDTO.
def rxHD(YKHO, rxHD): YKHO._activity = rxHD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxHD(YKHO, rxHD):\n if rxHD is None:\n raise ValueError('Invalid value for `activity`, must not be `None`')\n YKHO._activity = rxHD", "def rxHD(YKHO, rxHD):\n if rxHD is None:\n raise ValueError('Invalid value for `activity`, must not be `None`')\n YKHO._activity = rxHD", "async d...
[ "0.6732116", "0.6732116", "0.6374562", "0.5807889", "0.5807383", "0.5807383", "0.5782371", "0.5782371", "0.5669766", "0.5359708", "0.51454073", "0.51454073", "0.5008495", "0.5001347", "0.49919578", "0.49871466", "0.49587172", "0.48865658", "0.48511648", "0.48271668", "0.48226...
0.6504563
2
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393104", "0.8355197", "0.8295551", "0.8133039", "0.811476", "0.8100177", "0.80994433", "0.80982935", "0.80982935", "0.8093244", "0.8093244", "0.8093244", "0.8093244", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80671525", "0.80597436", "0.8057952", "0...
0.0
-1
Returns the start date of Challenge
def nUNa(YKHO): return YKHO.start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'start_date')", "def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')", "de...
[ "0.74841857", "0.737109", "0.737109", "0.7364154", "0.73600817", "0.73451704", "0.7264588", "0.72213626", "0.71868795", "0.7179682", "0.71766305", "0.71766305", "0.7115659", "0.7115659", "0.7115659", "0.7115659", "0.7115659", "0.7115659", "0.7115659", "0.70700467", "0.7021578...
0.728688
6
Returns the end date of Challenge
def mjdP(YKHO): return YKHO.end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'end_date')", "def mjdP(YKHO):\n return", "def Os4s(YKHO):\n return YKHO.getEffectiveDate()", "def KhBf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end_date')", ...
[ "0.7634365", "0.7558567", "0.75185466", "0.74222404", "0.7337778", "0.7337778", "0.73372185", "0.73307157", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.7294044", "0.72519684", "0.7198518", "0.719007", "0.719007", "0.717234", "0.70804...
0.7541714
3
Returns if the challenge is active or not
def ksfB(YKHO): if YKHO.start_date < rIAI.now() and YKHO.end_date > rIAI.now(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb1C(YKHO):\n if YKHO.progress is None:\n return False\n return YKHO.progress <= wDeZ", "def hAP2(YKHO):\n return YKHO._current_action != -1", "def ksfB(YKHO):\n TxiD = YKHO.get('modality') == 'dmri'\n return TxiD", "def ksfB(YKHO):\n return", "def ksfB(YKHO):\n return YKHO....
[ "0.7298862", "0.69745225", "0.69677204", "0.69054794", "0.68606734", "0.6854807", "0.68523484", "0.68523484", "0.6819323", "0.6807142", "0.68038666", "0.6795947", "0.67825633", "0.67825633", "0.6775981", "0.67683774", "0.6761085", "0.67471963", "0.67471963", "0.67471963", "0....
0.0
-1
Returns the start date of Phase
def nUNa(YKHO): return YKHO.start_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kepv(YKHO) -> _c1T:\n return YKHO.__start_date", "def kepv(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'start_date')", "def nUNa(YKHO):\n return YKHO.__start_date", "def kepv(YKHO) -> str:\n return qe4Y.get(YKHO, 'start_date')", "def nUNa(YKHO):\n return", "def yKcO(YKHO) -> _c1...
[ "0.74287206", "0.7419093", "0.7419089", "0.7418469", "0.74006885", "0.73833376", "0.7213444", "0.72053623", "0.72053623", "0.72053623", "0.72053623", "0.72053623", "0.72053623", "0.72053623", "0.72050285", "0.72050285", "0.7198295", "0.7194326", "0.7177506", "0.7167966", "0.7...
0.7452504
0
Returns the end date of Challenge
def mjdP(YKHO): return YKHO.end_date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO) -> str:\n return qe4Y.get(YKHO, 'end_date')", "def KhBf(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'end_date')", "def mjdP(YKHO):\n return", "def Os4s(YKHO):\n return YKHO.getEffectiveDate()", "def KhBf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'end_date')", ...
[ "0.7634365", "0.7558567", "0.75185466", "0.74222404", "0.7337778", "0.7337778", "0.73372185", "0.73307157", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.72982717", "0.7294044", "0.72519684", "0.7198518", "0.719007", "0.719007", "0.717234", "0.70804...
0.7541714
2
Returns if the challenge is active or not
def ksfB(YKHO): if YKHO.start_date < rIAI.now() and YKHO.end_date > rIAI.now(): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mb1C(YKHO):\n if YKHO.progress is None:\n return False\n return YKHO.progress <= wDeZ", "def hAP2(YKHO):\n return YKHO._current_action != -1", "def ksfB(YKHO):\n TxiD = YKHO.get('modality') == 'dmri'\n return TxiD", "def ksfB(YKHO):\n return", "def ksfB(YKHO):\n return YKHO....
[ "0.7298862", "0.69745225", "0.69677204", "0.69054794", "0.68606734", "0.6854807", "0.68523484", "0.68523484", "0.6819323", "0.6807142", "0.68038666", "0.6795947", "0.67825633", "0.67825633", "0.6775981", "0.67683774", "0.6761085", "0.67471963", "0.67471963", "0.67471963", "0....
0.0
-1
Returns the email of the user
def zAg0(YKHO): return YKHO.email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def D3lj(YKHO):\n return YKHO._user_dat['email']", "def bzh1():\n if QePW.en...
[ "0.89543086", "0.88382924", "0.88382924", "0.86730707", "0.85842395", "0.8565229", "0.85637647", "0.8494612", "0.84557664", "0.8413246", "0.84116644", "0.83294946", "0.8325519", "0.82608986", "0.82170355", "0.8202744", "0.8128192", "0.80899686", "0.80899686", "0.80899686", "0...
0.0
-1
Return 405 response for unauthorised '/settings' method types.
def bWD0(mWFP=None): eTsH(405, 'Not Allowed (%s)' % mWFP if mWFP else 'Not Allowed')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLnz(tTpl):\n return geh0(QePW, status=405)", "def xAU6(YKHO):\n YKHO.error(405)", "def _tIS(YKHO, qv1X):\n _hkX = oGir(status=405)\n _hkX.allow = YKHO.methods\n return _hkX", "def _tIS(tTpl):\n RKD7.warning(tTpl)\n geh0 = {'message': 'Method not allowed'}\n return (pz3A(geh0), 40...
[ "0.7139251", "0.6927993", "0.691328", "0.6749755", "0.6701304", "0.6513446", "0.6502286", "0.647717", "0.647717", "0.6452808", "0.6450586", "0.64463043", "0.64251614", "0.64187646", "0.6413295", "0.6413068", "0.6362563", "0.6361983", "0.6347943", "0.6347542", "0.6347542", "...
0.7259156
0
Return 405 response for unauthorised '/code' method types.
def nYRh(): eTsH(405, 'Not Allowed, code can only be sent by POST.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _tIS(YKHO, qv1X):\n _hkX = oGir(status=405)\n _hkX.allow = YKHO.methods\n return _hkX", "def PLnz(tTpl):\n return geh0(QePW, status=405)", "def _tIS(tTpl):\n RKD7.warning(tTpl)\n geh0 = {'message': 'Method not allowed'}\n return (pz3A(geh0), 405)", "def _tIS(P1dF):\n geh0 = pz3A({...
[ "0.74193317", "0.7407561", "0.7396449", "0.73876685", "0.72502464", "0.72341263", "0.71363753", "0.69614017", "0.6955574", "0.6933317", "0.69204843", "0.69173276", "0.6787412", "0.6777674", "0.673704", "0.673704", "0.67180103", "0.6669833", "0.6625944", "0.66093874", "0.66084...
0.7968593
0
Remove duplicate attributes. Only the first encountered attribute is retained.
def Qtcr(YKHO): azoT = [] PwWw = set() for xC3W in YKHO.attributes: if xC3W[0] not in PwWw: azoT.append(xC3W) PwWw.add(xC3W[0]) YKHO.attributes = azoT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4ZY(rmZ9, o8Kj):\n H5ew = lambda Csk6: '/'.join([getattr(Csk6, jzdc) or '' for jzdc in o8Kj])\n sjXb = []\n qon3 = []\n for Csk6 in rmZ9:\n if H5ew(Csk6) not in sjXb:\n qon3.append(Csk6)\n sjXb.append(H5ew(Csk6))\n return qon3", "def FpHy(YKHO):\n TJMk = YKHO.g...
[ "0.7321387", "0.709538", "0.6933549", "0.6913323", "0.6567332", "0.6558114", "0.6468114", "0.64505255", "0.63852304", "0.6367622", "0.636491", "0.63420457", "0.63292015", "0.6329002", "0.6328724", "0.6325757", "0.631976", "0.6304544", "0.6304544", "0.6298351", "0.6248349", ...
0.8690285
0
Returns the output of the case based on the number of elements that row1 and row2 have in common. Assumes that the numbers in each of row1 and row2 are distinct.
def vnyT(ecEc, znzI): iQin = set(ecEc) & set(znzI) if len(iQin) == 0: return 'Volunteer cheated!' elif len(iQin) == 1: return list(iQin)[0] else: return 'Bad magician!'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ywSh(XOOk, pHXX):\n XOOk = oyIN.array(XOOk, dtype=int)\n pHXX = oyIN.array(pHXX, dtype=int)\n j93S = {tuple(Mkmy) for Mkmy in XOOk}\n Nqp_ = {tuple(Mkmy) for Mkmy in pHXX}\n return len(j93S & Nqp_)", "def dEO7(YKHO, Elif):\n if YKHO.ksize != Elif.ksize:\n raise Exception('different k...
[ "0.6668087", "0.63808846", "0.6287303", "0.6245815", "0.61969924", "0.6156939", "0.61099565", "0.6039496", "0.5974024", "0.5965375", "0.59544027", "0.5930475", "0.5924014", "0.5922868", "0.5912926", "0.59053475", "0.59038514", "0.58983326", "0.58907175", "0.5887325", "0.58741...
0.6623659
1
Normalises vector by subtracting mean and dividing by sigma each term
def mMps(he6J): yGTL = oyIN.mean(he6J) WTkW = oyIN.std(he6J) return (he6J - yGTL) / WTkW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D7zl(YKHO):\n return (tVah((YKHO.maximum - YKHO.mu) / 2 ** 0.5 / YKHO.sigma) - tVah((YKHO.minimum - YKHO.mu) / 2 ** 0.5 / YKHO.sigma)) / 2", "def J050(WKvO, yGTL, WTkW):\n exwG = WKvO.shape[0]\n tpio = WKvO.shape[1]\n MDmR = (2 * oyIN.pi) ** (tpio / 2)\n Gj2Z = oyIN.linalg.det(WTkW) ** (1 / 2)...
[ "0.7225111", "0.7225082", "0.7162763", "0.71197695", "0.7036976", "0.7001971", "0.6996751", "0.696755", "0.6963687", "0.6958277", "0.69366556", "0.68574315", "0.6844634", "0.6829108", "0.68105775", "0.68105775", "0.6803538", "0.6793075", "0.6782873", "0.67807156", "0.67738134...
0.71132755
4
Remove and returns value of head node.
def BEuN(YKHO): if YKHO.head is None: raise IndexError('List is empty.') hlel = YKHO.head.data YKHO.head = YKHO.head.next YKHO._counter -= 1 return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n if YKHO.head is None:\n return None\n Q6kx = YKHO.head\n YKHO.head = YKHO.head.next\n return Q6kx.value", "def Ml0O(YKHO):\n if YKHO.size == 0:\n return None\n ZESx = YKHO.head.value\n if YKHO.size == 1:\n YKHO.head = YKHO.tail = None\n else:\n ...
[ "0.8119859", "0.8103562", "0.81003374", "0.80743283", "0.80588514", "0.79644847", "0.7916233", "0.7885877", "0.78306156", "0.7824985", "0.77878886", "0.7710184", "0.7680953", "0.7663803", "0.7610488", "0.7604638", "0.75688654", "0.75605464", "0.75479156", "0.75049317", "0.750...
0.68998444
74
Return length of linked list.
def zNig(YKHO): return YKHO._counter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n exwG += 1\n AsCw = AsCw.next\n return exwG", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L +=...
[ "0.8731087", "0.8703748", "0.8610377", "0.857673", "0.8531789", "0.8523338", "0.8480015", "0.8430744", "0.8388546", "0.83812773", "0.83704346", "0.83685637", "0.83614916", "0.83409697", "0.8320443", "0.83203006", "0.83119565", "0.82508886", "0.821235", "0.821111", "0.81901705...
0.0
-1
Return length of linked list.
def szAg(YKHO): return YKHO._counter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n exwG = 0\n AsCw = YKHO.head\n while AsCw != None:\n exwG += 1\n AsCw = AsCw.next\n return exwG", "def szAg(YKHO):\n u54L = 0\n if YKHO.head is not None:\n aCLL = YKHO.head\n u54L = 1\n while aCLL.pointer_next is not None:\n u54L +=...
[ "0.8731087", "0.8703748", "0.8610377", "0.857673", "0.8531789", "0.8523338", "0.8480015", "0.8430744", "0.8388546", "0.83812773", "0.83704346", "0.83685637", "0.83614916", "0.83409697", "0.8320443", "0.83203006", "0.83119565", "0.82508886", "0.821235", "0.821111", "0.81901705...
0.0
-1
Remove given node from linked list.
def kSdD(YKHO, wEf2): kMLo = YKHO.head while kMLo is not wEf2: kMLo = kMLo.next kMLo.next = kMLo.next.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSdD(YKHO, Q6kx):\n if YKHO.head is None:\n raise IndexError('list is empty')\n jvSB = YKHO.head\n if jvSB == Q6kx and jvSB.next_node is not None:\n YKHO.head = jvSB.next_node\n jvSB = None\n return YKHO.head\n try:\n while jvSB.next_node != Q6kx:\n jvS...
[ "0.85061306", "0.84590745", "0.8401195", "0.8385333", "0.8321244", "0.83189404", "0.8260283", "0.8198406", "0.81845856", "0.81477946", "0.81477946", "0.813993", "0.81231934", "0.8117327", "0.8102009", "0.80900264", "0.8030271", "0.7975544", "0.7975544", "0.79359007", "0.79288...
0.7142847
69
Does a GET request to /v2/payments/{payment_id}. Retrieves details for a specific payment.
def g51h(YKHO, q0JL): T6Z0 = '/v2/payments/{payment_id}' T6Z0 = fPb2.append_url_with_template_parameters(T6Z0, {'payment_id': {'value': q0JL, 'encode': True}}) RGYk = YKHO.config.get_base_uri() RGYk += T6Z0 vgAy = fPb2.clean_url(RGYk) kkzV = {'accept': 'application/json'} N0q9 = YKHO.config....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GKJL(q0JL):\n pu1N = xiv5()\n geh0, IaaG = pu1N.get(iAwL.url(iAwL.PAYMENT_RESOURCE, resource_id=q0JL))\n return JKCy.Payment(**geh0)", "def g51h(q0JL='', rJDA=''):\n bD7m = gCuF.ASAAS_API_URL + '/payments/' + q0JL\n MOPg = E_hp()\n geh0 = G4JS.get(bD7m, headers=MOPg)\n return {'status_co...
[ "0.849984", "0.8062512", "0.7952971", "0.79475534", "0.7562541", "0.66637415", "0.6643671", "0.65919065", "0.6529707", "0.6335699", "0.62646306", "0.6257065", "0.6252681", "0.61964726", "0.61588675", "0.61033285", "0.60708547", "0.6062993", "0.6055859", "0.6025172", "0.602185...
0.8240352
1
Does a POST request to /v2/payments/{payment_id}/complete. Completes (captures) a payment. By default, payments are set to complete immediately after they are created. You can use this endpoint to complete a payment with the APPROVED `status`.
def nz9Q(YKHO, q0JL, TBsA): T6Z0 = '/v2/payments/{payment_id}/complete' T6Z0 = fPb2.append_url_with_template_parameters(T6Z0, {'payment_id': {'value': q0JL, 'encode': True}}) RGYk = YKHO.config.get_base_uri() RGYk += T6Z0 vgAy = fPb2.clean_url(RGYk) kkzV = {'accept': 'application/json', 'content...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fd4y(YKHO, **B2fa):\n return YKHO.post(txn_type=YKHO.COMPLETE, **B2fa)", "def gUiw(YKHO):\n if YKHO.status == BSkt.PLACED:\n YKHO.status = BSkt.COMPLETE\n YKHO.complete_date = qcWV.now().date()\n YKHO.save()", "def vNXD(YKHO, QePW, _sei: int) -> oGir:\n T4Wy = Iofl(L9Jq.object...
[ "0.6639456", "0.6415118", "0.63018435", "0.6191018", "0.5930475", "0.59216124", "0.59216124", "0.5913339", "0.5831082", "0.58132565", "0.578327", "0.5744574", "0.57292897", "0.5725119", "0.57209045", "0.56942225", "0.56466776", "0.5645273", "0.56342727", "0.5613346", "0.56054...
0.7764416
0