query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return thermostat device info.
def GWuV(YKHO): return YKHO.thermostat_device.device_info
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U34r(YKHO, *, ZPs_: str, **B2fa) -> h8nf[GDQQ]:\n RO6q = [SkFs for SkFs in YKHO._list_thermostats() if SkFs['mac'] == ZPs_]\n if len(RO6q) == 0:\n return None\n heKV = RO6q[0]\n B4hm = super()._earth_client().get_iot_prop(did=ZPs_, keys=[pBHB.pid for pBHB in GDQQ.props().values()])\n if '...
[ "0.76180166", "0.74516994", "0.7439212", "0.7439212", "0.7432939", "0.7429143", "0.7405712", "0.73802453", "0.738007", "0.738007", "0.738007", "0.7368528", "0.73529303", "0.73233247", "0.73111033", "0.7304701", "0.72712046", "0.72712046", "0.72712046", "0.72712046", "0.727120...
0.8431818
0
Return that polling is not necessary.
def KZ_I(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return False", "def KZ_I(YKHO):\n return True", "def KZ_I(YKHO):\n return True", "def KZ_I(YKHO) -> bool:\n return False", "def KZ_I(YKHO) -> bool:\n return False", "def KZ_I(YKHO) -> bool:\n return False", "def KZ_I(YKHO):\n ...
[ "0.8157958", "0.8157958", "0.800071", "0.800071", "0.7967828", "0.7967828", "0.7967828", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0.7916716", "0....
0.8061462
7
Return the current temperature.
def CMHP(YKHO): return float(YKHO.thermostat_device.current_temperature)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMHP(YKHO):\n return YKHO._current_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._cur_temp", "def CMHP(YKHO):\n return YKHO._temperature", "def CMHP(YKHO) -> float:\n return YKHO.device['sensors']['temperature']", "def CMHP(YKHO):\n return YKHO._cu...
[ "0.88459253", "0.8834011", "0.8834011", "0.8827252", "0.88014287", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8787866", "0.8781482", "0.87779963", "0.87618834", "0.875637", "0.87354743", "0.8715311", "0.8701527",...
0.877693
16
Return the current heating actuator state.
def joWD(YKHO): return float(YKHO.thermostat_device.current_actuator)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ij0i(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'health_state')", "def xC4K(YKHO):\n return YKHO._health_state", "def c0mt(YKHO):\n return YKHO.agent.get_state()", "def Wc11(YKHO):\n Debg = YKHO._feature.is_on\n if not Debg:\n return None if Debg is None else h7b9\n wspz ...
[ "0.72875005", "0.7175273", "0.71568435", "0.71454704", "0.6950458", "0.6934757", "0.69331044", "0.6922567", "0.68952054", "0.68669", "0.6842184", "0.6834671", "0.68026537", "0.68026537", "0.68026537", "0.68026537", "0.68026537", "0.68026537", "0.68026537", "0.68026537", "0.68...
0.68007874
31
Return the unit of measurement used by the platform.
def xklW(YKHO): return hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO._sensor[LiQL]", "def b82i(YKHO) -> str | None:\n return YKHO._description[znBy]", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO):\n return YKHO._unit_of_measurement", "def qraf(YKHO) ...
[ "0.83880085", "0.83704066", "0.83695143", "0.83695143", "0.83695143", "0.8331717", "0.8331717", "0.8323839", "0.83007497", "0.82904446", "0.8287447", "0.8282208", "0.8276509", "0.8273146", "0.8264974", "0.8257184", "0.8243227", "0.8242125", "0.8238798", "0.8232627", "0.823072...
0.0
-1
Return json representation of current element.
def Pdnt(YKHO, MnRD=2): from json import dumps MnDN = JO_U() return MnDN.encode(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZGx(YKHO):\n return qQXR.dumps(YKHO.elements)", "def qQXR(YKHO):\n return YKHO.__dict__", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR.dumps(YKHO.__dict__)", "def qQXR(YKHO):\n return qQXR...
[ "0.7908605", "0.7890346", "0.78775257", "0.78775257", "0.78775257", "0.78775257", "0.78775257", "0.78775257", "0.7772807", "0.7754097", "0.77104205", "0.76511127", "0.76511127", "0.76511127", "0.76294065", "0.7597321", "0.7563332", "0.7563332", "0.7563332", "0.7563332", "0.75...
0.0
-1
Save models state dict on the specified path.
def xkzz(YKHO, ci4d: Union[str, Path]) -> None: ci4d = GkAb(ci4d) ci4d.parent.mkdir(exist_ok=True) ht2j.save(YKHO.state.model.state_dict(), ci4d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lac1(YKHO, pmON):\n ht2j.save(YKHO.state_dict(), pmON)", "def lac1(YKHO, pmON):\n QTBn = {'epoch': YKHO.epoch_counter, 'state_dict': YKHO.net.state_dict(), 'optimizer': YKHO.optimizer.state_dict()}\n ht2j.save(QTBn, pmON)", "def xkzz(YKHO, pmON=None):\n pmON = YKHO.opt.get('model_file', None) i...
[ "0.80488247", "0.79180336", "0.79102385", "0.7718875", "0.76829153", "0.7627472", "0.76107615", "0.7600966", "0.76002395", "0.76002395", "0.758343", "0.7577765", "0.7552803", "0.7547275", "0.7530538", "0.7494111", "0.7467767", "0.7459472", "0.7459472", "0.7459472", "0.7456583...
0.0
-1
Loads models state dict from the specified path.
def tyeH(YKHO, fc_H: Union[str, Path], lUvg: bool=False) -> None: fc_H = GkAb(fc_H) vauY = ht2j.load(fc_H, map_location=lambda S8SU, hksT: S8SU) if not isinstance(YKHO.state.model, mIOZ) and 'module.' in list(vauY.keys())[0]: vauY = {G1Hx[7:]: Ty9i for G1Hx, Ty9i in vauY.items()} xHdd(model=YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyeH(YKHO, uqvc: str):\n YKHO.load_state_dict(ht2j.load(uqvc))", "def uyMl(YKHO, pmON):\n _mSQ = ht2j.load(pmON)\n YKHO.load_state_dict(_mSQ)", "def tyeH(YKHO, pmON: str) -> cuzp[str, ImMB]:\n import parlai.utils.pickle\n with w2XM.open(pmON, 'rb') as eHNT:\n wspz = ht2j.load(eHNT, ma...
[ "0.8153481", "0.8151245", "0.8149428", "0.7959592", "0.7959592", "0.7959592", "0.78732646", "0.7822655", "0.78187716", "0.7753149", "0.77253604", "0.77015775", "0.7631287", "0.75605917", "0.75539094", "0.74783665", "0.74565285", "0.74337447", "0.7429822", "0.7390968", "0.7309...
0.0
-1
Deep copy. @ In, None @ Out, d, dict, self representation
def k8jS(YKHO): Csk6 = {'binaryFileName': YKHO._binaryLoc, 'whereFrameworkIs': YKHO._frameworkLoc} return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Di7o(YKHO):\n return YKHO.d.copy()", "def EF4K(YKHO):\n return _qLf(YKHO.__dict__)", "def FzJk(YKHO):\n return dict(YKHO)", "def FzJk(YKHO):\n return YKHO.__deepcopy__({})", "def jth9(YKHO):\n return dict(YKHO)", "def jth9(YKHO):\n BdN0 = t6vA()\n return YKHO._fillcopy(BdN0)", ...
[ "0.80958694", "0.79318917", "0.7797743", "0.77234715", "0.7673017", "0.7638947", "0.75858873", "0.7579686", "0.75636774", "0.754547", "0.7536796", "0.7504859", "0.7446133", "0.7395383", "0.73825276", "0.73434", "0.73378515", "0.7337244", "0.72887737", "0.72887737", "0.7288773...
0.0
-1
ResNeXt101 32x4d model from
def j9Xr(mL4f=False, **B2fa): return pUAO('resnext101_32x4d', 101, 32, mL4f, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uwZX(uqvc, **B2fa):\n C3ST = FYrf.resnext50_32x4d(pretrained=False)\n _e7G = C3ST.fc.in_features\n C3ST.fc = U78l.Linear(_e7G, 10)\n C3ST.load_state_dict(ht2j.load(uqvc, map_location='cpu'))\n C3ST.eval()\n return C3ST", "def OwNx(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **...
[ "0.65660906", "0.6562737", "0.6514656", "0.65049326", "0.6499707", "0.646305", "0.645015", "0.6447644", "0.6424595", "0.64217544", "0.6389129", "0.63842654", "0.629065", "0.6289651", "0.62468886", "0.6243359", "0.6223091", "0.61906904", "0.61834204", "0.61395884", "0.6132594"...
0.6296727
12
Assert that a user is rendered correctly as a dictionary.
def CHxl(cuiw): vCWU = inwl() CBIr = x7_4(vCWU) cmPJ = CBIr.as_dict() assert cmPJ['username'] == VoE1.user1['username']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ur0x(YKHO):\n YKHO.user.email = 'hbtn@holbertonschool.com'\n YKHO.user.password = 'toto1234'\n YKHO.user.first_name = 'Bob'\n YKHO.user.last_name = 'Dylan'\n vhq_ = YKHO.user.to_dict()\n SV9W = {'id': str(YKHO.user.id), 'email': str(YKHO.user.email), 'first_name': str(YKHO.user.first_name), '...
[ "0.7193461", "0.6841341", "0.67003536", "0.65805763", "0.65468496", "0.65211236", "0.6479358", "0.64616317", "0.64166087", "0.638557", "0.6383747", "0.6377747", "0.6359219", "0.6350794", "0.6338824", "0.633366", "0.6309227", "0.62673134", "0.6260697", "0.6254807", "0.62375855...
0.68970203
1
Assert that a user can be created by token.
def VnEx(cuiw, Ehsq): c5wb(BGC4.user_test, Ehsq) CBIr = x7_4.save_from_jwt_token() assert CBIr is not None cmPJ = CBIr.as_dict() assert cmPJ['username'] == BGC4.user_test['preferred_username'] assert cmPJ['keycloak_guid'] == BGC4.user_test['sub']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1AJ(YKHO):\n CBIr = OFHu(data=YKHO.token, model=npLe, retrn=True)\n assert CBIr in NCls.session", "def Ss3i(YKHO):\n lYUQ(**YKHO.payload)\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n YKHO.assertIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def Ss3i(Y...
[ "0.8291058", "0.7798952", "0.77909184", "0.77083796", "0.76366144", "0.7632518", "0.7616753", "0.7601085", "0.7583173", "0.75747937", "0.75690114", "0.7564868", "0.7533606", "0.753029", "0.749662", "0.7415377", "0.7395177", "0.7377994", "0.7349212", "0.73296165", "0.7309535",...
0.0
-1
Assert that a user can be created by token.
def X1GG(cuiw, Ehsq): c5wb(BGC4.anonymous_bcros_role, Ehsq) CBIr = x7_4.save_from_jwt_token() assert CBIr is not None cmPJ = CBIr.as_dict() assert cmPJ['username'] == BGC4.anonymous_bcros_role['preferred_username'] assert cmPJ['keycloak_guid'] == BGC4.anonymous_bcros_role['sub']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1AJ(YKHO):\n CBIr = OFHu(data=YKHO.token, model=npLe, retrn=True)\n assert CBIr in NCls.session", "def Ss3i(YKHO):\n lYUQ(**YKHO.payload)\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n YKHO.assertIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def Ss3i(Y...
[ "0.8291058", "0.7798952", "0.77909184", "0.77083796", "0.76366144", "0.7632518", "0.7616753", "0.7601085", "0.7583173", "0.75747937", "0.75690114", "0.7564868", "0.7533606", "0.753029", "0.749662", "0.7415377", "0.7395177", "0.7377994", "0.7349212", "0.73296165", "0.7309535",...
0.0
-1
Assert that a user can be created by token.
def TCla(cuiw, Ehsq): vCWU = inwl(VoE1.user_bcros) CBIr = x7_4(vCWU) cmPJ = CBIr.as_dict() assert cmPJ.get('keycloak_guid', None) is None c5wb(BGC4.anonymous_bcros_role, Ehsq) CBIr = x7_4.save_from_jwt_token() assert CBIr is not None cmPJ = CBIr.as_dict() assert cmPJ['username'] == B...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i1AJ(YKHO):\n CBIr = OFHu(data=YKHO.token, model=npLe, retrn=True)\n assert CBIr in NCls.session", "def Ss3i(YKHO):\n lYUQ(**YKHO.payload)\n Ylbp = YKHO.client.post(pEkX, YKHO.payload)\n YKHO.assertIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def Ss3i(Y...
[ "0.8291058", "0.7798952", "0.77909184", "0.77083796", "0.76366144", "0.7632518", "0.7616753", "0.7601085", "0.7583173", "0.75747937", "0.75690114", "0.7564868", "0.7533606", "0.753029", "0.749662", "0.7415377", "0.7395177", "0.7377994", "0.7349212", "0.73296165", "0.7309535",...
0.0
-1
Assert that a user cannot be created from an empty token.
def xJDv(cuiw): CBIr = x7_4.save_from_jwt_token() assert CBIr is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_2a(YKHO):\n Ylbp = YKHO.client.post(BfDw.TOKEN_URL, BfDw.USER_PAYLOAD)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def uUpR(YKHO):\n lYUQ(email='test@email.com', password='testpassword')\n pB3N = {'email': 'test@email.com', 'passw...
[ "0.81617486", "0.8116082", "0.81130135", "0.80182743", "0.79757774", "0.79574883", "0.7942315", "0.79308575", "0.7890172", "0.7879239", "0.78731865", "0.7858009", "0.78444326", "0.7834167", "0.78308594", "0.78238624", "0.7819597", "0.7818886", "0.781737", "0.7814386", "0.7803...
0.0
-1
Assert that an owner can be added as anonymous.
def WLzr(cuiw, OU6e, j6SQ): QAIN = C3bo(org_info=aJeM.org_anonymous) vmMD = [wsMB.generate_random_user(ePsc)] DW23 = x7_4.create_user_and_add_membership(vmMD, QAIN.id, single_mode=True) assert len(DW23['users']) == 1 assert DW23['users'][0]['username'] == Zcvs.BCROS.value + '/' + vmMD[0]['username']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LC4Q(YKHO):\n geh0 = YKHO.postJson('/images/permissions/', {'description': 'new description', 'permissions': [{'owner': 'other:all', 'can_read': True, 'can_write': False, 'can_manage': False}]})\n YKHO.assertEquals(geh0.status_code, 401)", "def wDqn(YKHO):\n return YKHO.kind == znbJ", "def cutG(YK...
[ "0.66657996", "0.6640923", "0.6543015", "0.654033", "0.65273505", "0.65273505", "0.6511034", "0.64720356", "0.6448842", "0.6443521", "0.643493", "0.6416799", "0.6415958", "0.641521", "0.6412431", "0.6412431", "0.6412431", "0.63931185", "0.638924", "0.6384211", "0.6384211", ...
0.65548056
2
Assert that the otp cant be reset.
def PPpp(cuiw, OU6e, j6SQ, Ehsq): eXc_ = pCvb() QAIN = C3bo(org_info=aJeM.org_anonymous) y26g = inwl() q1wm(y26g.id, QAIN.id) SCVp = BGC4.get_test_real_user(y26g.keycloak_guid) vmMD = [wsMB.generate_random_user(Edpv)] Msj1 = pCvb() QePW = n6Hm.create_user_request() QePW.user_name = v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DBCH(YKHO):\n YKHO.test_failure_limit_once()\n SiRx(ip='127.0.0.1')\n YKHO.test_valid_login()", "def e3zL(YKHO):\n pass", "def OAOs(YKHO):\n pass", "def gCDD(YKHO):\n YKHO.assertOk(YKHO.smtp.noop())", "def OvfQ(YKHO):\n pass", "def TfMY(YKHO):\n pass", "def NULz(YKHO, TBXe):...
[ "0.7024719", "0.6703501", "0.6520125", "0.6493358", "0.6339753", "0.6322142", "0.6321213", "0.62683624", "0.621571", "0.61718076", "0.6138655", "0.6134703", "0.6106566", "0.60926294", "0.60926294", "0.6084178", "0.60772544", "0.6044659", "0.6042878", "0.6005081", "0.60018", ...
0.0
-1
Assert that an admin can be added as anonymous.
def sVny(cuiw, OU6e, j6SQ): QAIN = C3bo(org_info=aJeM.org_anonymous) vmMD = [wsMB.generate_random_user(OGJM)] DW23 = x7_4.create_user_and_add_membership(vmMD, QAIN.id, single_mode=True) assert len(DW23['users']) == 1 assert DW23['users'][0]['username'] == Zcvs.BCROS.value + '/' + vmMD[0]['username']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nGX6(YKHO, Dvxc, x0hE):\n with x0hE:\n x0hE.get(rOmR, content_type='html/text', follow_redirects=True)\n geh0: oGir = x0hE.post(QePW.url, data=Dvxc, follow_redirects=True)\n assert QePW.path == nKyW('admin.index')\n assert geh0.status_code == 200\n x0hE.get('/logout')", ...
[ "0.75864255", "0.72528875", "0.72063786", "0.71390235", "0.69423854", "0.6941002", "0.6909573", "0.6894297", "0.68925047", "0.68777996", "0.6873126", "0.6873126", "0.6832422", "0.68317866", "0.6819726", "0.6808898", "0.6808898", "0.6808898", "0.6785992", "0.6767217", "0.67475...
0.645423
73
Assert that an member cannot be added as anonymous in single_mode mode.
def nVWd(cuiw, OU6e, j6SQ): QAIN = C3bo(org_info=aJeM.org_anonymous) vmMD = [wsMB.generate_random_user(Edpv)] with trZe.raises(qTNt) as AJ5d: x7_4.create_user_and_add_membership(vmMD, QAIN.id, single_mode=True) assert AJ5d.value.code == xxyF.INVALID_USER_CREDENTIALS.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FcEk(_ig9, mS46):\n _ig9.mocksql_connect().cursor().fetchall.side_effect = []\n with trZe.raises(XXFc.BadMemberError):\n _ig9.add_member(mS46)\n assert _ig9.mocksql_connect().cursor().execute.call_count == 0", "def fXcA(YKHO):\n YKHO.assertFalse(gB9w(YKHO.user, ['blabla']))", "def wDqn(Y...
[ "0.6340885", "0.6143791", "0.6124235", "0.60646564", "0.60536397", "0.60339236", "0.60324746", "0.6011152", "0.59990215", "0.5995736", "0.5985033", "0.5977085", "0.5962659", "0.5962659", "0.5962659", "0.59397024", "0.5934347", "0.5934347", "0.59326595", "0.59326595", "0.59274...
0.5776755
72
Assert that a user cannot not be created.
def yj26(cuiw, Ehsq): with Po4F.object(Nc2H, 'create_from_jwt_token', return_value=None): c5wb(BGC4.user_test, Ehsq) CBIr = x7_4.save_from_jwt_token() assert CBIr is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1QU(YKHO):\n YKHO._makePerson(reference='the_user', password='secret', open_assignment=0)\n YKHO._assertUserDoesNotExists('the_user', 'secret')", "def qqHR(YKHO):\n zyIQ(**YKHO.payload)\n Ylbp = YKHO.client.post(CKgv, YKHO.payload)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUES...
[ "0.7502474", "0.7498422", "0.74832225", "0.7480943", "0.71051335", "0.7101846", "0.70700455", "0.7035902", "0.70090944", "0.70086306", "0.6993561", "0.69925755", "0.6985276", "0.69745773", "0.6962654", "0.6932321", "0.6920355", "0.6912181", "0.6906739", "0.68878424", "0.68872...
0.0
-1
Assert that a contact can be updated for a user.
def qGyg(cuiw, Ehsq): lDjR = VoE1.user_test lDjR['keycloak_guid'] = BGC4.user_test['sub'] lDjR['idp_userid'] = BGC4.user_test['idp_userid'] inwl(user_info=lDjR) c5wb(BGC4.user_test, Ehsq) Mxk0 = x7_4.add_contact(X6Ha.contact1).as_dict() assert Mxk0 is not None sOpN = x7_4.update_contact(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skaU(YKHO):\n pass", "def Y_mX(YKHO):\n nPrm = {'phone': '1234567890'}\n YKHO.client.force_authenticate(user=YKHO.admin)\n geh0 = YKHO.client.patch(gxEw('user-detail', kwargs={'pk': YKHO.user.id}), nPrm, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK, geh0.content)\n h...
[ "0.7531053", "0.7292044", "0.7101491", "0.70628995", "0.6995243", "0.6995243", "0.6995243", "0.6979596", "0.69713557", "0.69541305", "0.695111", "0.6946761", "0.68966377", "0.68953717", "0.6834662", "0.6832837", "0.6798621", "0.6772506", "0.67595285", "0.67428327", "0.6729775...
0.7421078
1
Assert that a terms of use can be updated for a user.
def h6ks(cuiw, Ehsq): c5wb(BGC4.user_test, Ehsq) x7_4.save_from_jwt_token() _0Lx = x7_4.update_terms_of_use(True, 1) cmPJ = _0Lx.as_dict() assert cmPJ['user_terms']['isTermsOfUseAccepted'] is True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzX(YKHO):\n hkxX = [(u'username', vk2a.UPDATE_USER)]\n dnVu = f8D4(YKHO.user, hkxX)\n YKHO.assertEqual([], dnVu)", "def hxkm(YKHO):\n nPrm = {'last_acceptation_terms_and_conditions': rIAI.now().isoformat()}\n YKHO.client.force_authenticate(user=YKHO.user)\n geh0 = YKHO.client.patch(gxEw('...
[ "0.6802766", "0.6698833", "0.6629708", "0.66162205", "0.6403259", "0.6403259", "0.6403259", "0.6397604", "0.6342124", "0.63369876", "0.6327816", "0.62961984", "0.6276495", "0.62670475", "0.624461", "0.6224965", "0.62149304", "0.61686224", "0.61477655", "0.61293066", "0.611983...
0.74868643
0
Assert that a terms of use can be updated for a user.
def UO6y(cuiw, Ehsq): c5wb(BGC4.user_test, Ehsq) x7_4.save_from_jwt_token() _0Lx = x7_4.update_terms_of_use(True, 1) cmPJ = _0Lx.as_dict() assert cmPJ['user_terms']['isTermsOfUseAccepted'] is True _0Lx = x7_4.save_from_jwt_token() cmPJ = _0Lx.as_dict() assert cmPJ['user_terms']['isTermsO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6ks(cuiw, Ehsq):\n c5wb(BGC4.user_test, Ehsq)\n x7_4.save_from_jwt_token()\n _0Lx = x7_4.update_terms_of_use(True, 1)\n cmPJ = _0Lx.as_dict()\n assert cmPJ['user_terms']['isTermsOfUseAccepted'] is True", "def xkzX(YKHO):\n hkxX = [(u'username', vk2a.UPDATE_USER)]\n dnVu = f8D4(YKHO.user...
[ "0.74868643", "0.6802766", "0.6698833", "0.6629708", "0.66162205", "0.6403259", "0.6403259", "0.6403259", "0.6397604", "0.6342124", "0.63369876", "0.6327816", "0.62961984", "0.6276495", "0.62670475", "0.6224965", "0.62149304", "0.61686224", "0.61477655", "0.61293066", "0.6119...
0.624461
15
Assert that a contact cannot be updated for a user that does not exist.
def A6oC(cuiw, Ehsq): with trZe.raises(qTNt) as AJ5d: c5wb(BGC4.user_test, Ehsq) x7_4.update_contact(X6Ha.contact2) assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KT5N(cuiw, Ehsq):\n inwl(user_info=VoE1.user_test)\n with trZe.raises(qTNt) as AJ5d:\n c5wb(BGC4.user_test, Ehsq)\n x7_4.update_contact(X6Ha.contact2)\n assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name", "def mFqx(YKHO):\n Aofo = YKHO.app.patch(bnxY.ROUTE + 'b0ac2a08f1eb406f9936a4...
[ "0.7392273", "0.7305314", "0.70777833", "0.6857277", "0.6796052", "0.6762894", "0.66729206", "0.6602063", "0.65883714", "0.6570689", "0.65645826", "0.6554013", "0.65243155", "0.65094465", "0.6485618", "0.64697564", "0.6445153", "0.6444994", "0.64258784", "0.6415604", "0.64129...
0.73473823
1
Assert that a contact cannot be updated for a user with no contact.
def KT5N(cuiw, Ehsq): inwl(user_info=VoE1.user_test) with trZe.raises(qTNt) as AJ5d: c5wb(BGC4.user_test, Ehsq) x7_4.update_contact(X6Ha.contact2) assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A6oC(cuiw, Ehsq):\n with trZe.raises(qTNt) as AJ5d:\n c5wb(BGC4.user_test, Ehsq)\n x7_4.update_contact(X6Ha.contact2)\n assert AJ5d.value.code == xxyF.DATA_NOT_FOUND.name", "def rLAz(YKHO):\n nPrm = {'phone': '1234567890'}\n YKHO.client.force_authenticate(user=YKHO.user)\n geh0 =...
[ "0.7339598", "0.67870826", "0.6640748", "0.6518471", "0.65104663", "0.65001994", "0.647863", "0.64650226", "0.6410189", "0.6365608", "0.634527", "0.6330092", "0.6304197", "0.6295728", "0.62867516", "0.62805384", "0.62685657", "0.6265917", "0.6261052", "0.6256567", "0.62511456...
0.7512167
0
Assert that the business can't be found with no model.
def NlfO(cuiw): NtEF = VoE1.user_test['username'] CBIr = x7_4.find_by_username(NtEF) assert CBIr is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oI8n(YKHO):\n geh0 = YKHO.client.get(YKHO.prefix + 'businesses/1', headers={'Authorization': 'Bearer {}'.format(YKHO.access_token)})\n YKHO.assertEqual(geh0.status_code, 404)", "def RDFn(YKHO):\n with YKHO.mock_global_connection:\n YKHO.assertEqual(0, eax5.count())\n YKHO.manager.drop_...
[ "0.7581167", "0.7302268", "0.7182503", "0.71802205", "0.70636183", "0.69826967", "0.69811535", "0.69341195", "0.6889121", "0.6885225", "0.67883384", "0.6782317", "0.67471105", "0.67454195", "0.6716425", "0.6695175", "0.66833127", "0.6654742", "0.66068465", "0.6600786", "0.658...
0.0
-1
Assert that a contact can not be deleted if contact link exists.
def kV0Q(cuiw, OU6e, j6SQ, Ehsq): lDjR = VoE1.user_test lDjR['keycloak_guid'] = BGC4.public_user_role['sub'] lDjR['idp_userid'] = BGC4.public_user_role['idp_userid'] vCWU = inwl(user_info=lDjR) CBIr = x7_4(vCWU) c5wb(BGC4.public_user_role, Ehsq) QAIN = WxSC.create_org(aJeM.org1, user_id=CBIr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LWuE(YKHO):\n pass", "def LWuE(YKHO):\n YKHO.new_contact.save_contact()\n b5K5 = U2Av('Test', 'User', '0711111111', 'test@user.com')\n b5K5.save_contact()\n b5K5.delete_contact()\n YKHO.assertEqual(len(U2Av.contact_list), 1)", "def LWuE(YKHO):\n bD7m = gxEw('crm-admin:contact-delete', ...
[ "0.74671394", "0.70848817", "0.708031", "0.7006518", "0.6939176", "0.6878103", "0.68055016", "0.68017364", "0.66972405", "0.669709", "0.6634616", "0.66206455", "0.6601662", "0.6597745", "0.65833884", "0.6577025", "0.657207", "0.6548644", "0.6511805", "0.64991075", "0.64830947...
0.62706727
35
Loads a UK GeoJson file and returns the corresponding geopandas dataframe. Requires the optional dependency geopandas.
def iWBb(HOMp: bytes=Xi5E.GEO_JSON): cZbT = quUU.read_file(xDSY.BytesIO(HOMp)) return cZbT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KCU8(qaYW):\n return SsVK.read_file(qaYW)", "def qqgy(nUeQ):\n Tvv2 = quUU.read_file(nUeQ)\n return Tvv2", "def fDR1(YKHO, VqRE):\n zgjV = rLdf.read_json(VqRE, orient='values')\n YDX_ = zgjV['locations'].tolist()\n JRTH = rLdf.DataFrame.from_dict(YDX_)\n JRTH = JRTH.filter(items=['lati...
[ "0.71596664", "0.7072855", "0.7016136", "0.6911841", "0.6853298", "0.679926", "0.6743853", "0.6718228", "0.6594153", "0.6562694", "0.6536701", "0.6524036", "0.648211", "0.64701146", "0.6442338", "0.64203733", "0.64152175", "0.640159", "0.6384169", "0.63371813", "0.62956583", ...
0.6352624
19
Convert a dataset in a local file (usually a CSV) into a Pandas DataFrame
def brON(mWFP, i0XC=qclk, HN6s=None, PJWX=True): if Hy7s.path.isfile(mWFP): try: return PSj2(mWFP) except (IOError, UnicodeDecodeError, qQXR.JSONDecodeError): pass try: return HND1(mWFP, nrows=HN6s) except (IOError, rLdf.errors.ParserError): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rhr4(mC1D: str) -> CwDs.DataFrame:\n return CwDs.read_csv(mC1D, index_col=False, skiprows=1)", "def AyYN(i0XC):\n return rLdf.read_csv(i0XC, delimiter=',')", "def kWwb() -> rLdf.DataFrame:\n KAfx = iSBZ\n return rLdf.read_csv(KAfx, delimiter=',')", "def LvsP(KAfx):\n jQ3Z = rLdf.read_csv(K...
[ "0.787902", "0.7712875", "0.7610852", "0.7598109", "0.754883", "0.75353414", "0.75010896", "0.7500419", "0.74898434", "0.748023", "0.7467358", "0.74672997", "0.7460481", "0.7434447", "0.74231464", "0.7405097", "0.7402576", "0.73941565", "0.73930806", "0.73862845", "0.7369068"...
0.0
-1
Retrieve the Query number for a wikidata database of metadata about a particular article >>> print(get_wikidata_qnum(wikiarticle="Andromeda Galaxy", wikisite="enwiki")) Q2469
def h9NM(FJc3, H9x6): _hkX = G4JS.get('https://www.wikidata.org/w/api.php', {'action': 'wbgetentities', 'titles': FJc3, 'sites': H9x6, 'props': '', 'format': 'json'}).json() return list(_hkX['entities'])[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xuu9(l3QS):\n QDP4 = uRlK.parse.urlencode({'action': 'query', 'prop': 'pageprops', 'ppprop': 'wikibase_item', 'redirects': 1, 'format': 'json', 'titles': l3QS})\n R7S5 = 'https://de.wikipedia.org/w/api.php?%s' % QDP4\n U5bT = G4JS.get(R7S5).json()\n id = next(iter(U5bT['query']['pages']))\n retu...
[ "0.65711004", "0.5938957", "0.5879315", "0.58401084", "0.5528356", "0.54903007", "0.5434333", "0.5434333", "0.5375631", "0.5281823", "0.5274803", "0.5203446", "0.520132", "0.5186046", "0.5184526", "0.5154135", "0.50910854", "0.5084876", "0.5083249", "0.50783485", "0.50755274"...
0.8255892
0
Clean up whitespace in column names. See better version at `pugnlp.clean_columns` >>> normalize_column_name(pd.DataFrame([[1, 2], [3, 4]], columns=['Hello World', 'not here']) ['hello_world', 'not_here']
def djuA(jQ3Z): ZLJ_ = jQ3Z.columns if hasattr(jQ3Z, 'columns') else jQ3Z ZLJ_ = [Z9rn.lower().replace(' ', '_') for Z9rn in ZLJ_] return ZLJ_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ihEx(YKHO, jQ3Z):\n jQ3Z.rename(columns=lambda WKvO: str(WKvO).strip().replace(' ', '_').lower(), inplace=True)\n return jQ3Z", "def fKUY(bOBl):\n Gfpc = lambda WKvO: ZbWC.sub('[^a-zA-Z0-9 \\n\\\\.]', '-', WKvO.lower())\n rqWw = lambda WKvO: zVCt.normalize('NFD', WKvO).encode('ascii', 'ignore').d...
[ "0.79817736", "0.7834894", "0.77254695", "0.77093685", "0.7593908", "0.75365967", "0.7453037", "0.73965734", "0.73183805", "0.7295909", "0.7263305", "0.70584637", "0.701133", "0.6950326", "0.69365764", "0.69127506", "0.69060576", "0.69056535", "0.69046086", "0.6864447", "0.68...
0.855585
0
Return the DCTII matrix of order n as a numpy array.
def lIbB(exwG): WKvO, LVAh = oyIN.meshgrid(range(exwG), range(exwG)) lWPh = oyIN.sqrt(2.0 / exwG) * oyIN.cos(oyIN.pi * (2 * WKvO + 1) * LVAh / (2 * exwG)) lWPh[0] /= oyIN.sqrt(2) return lWPh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JKAK(ywwl):\n Kt_s = []\n Kt_s.append([float(1.0 / epAf.sqrt(ywwl))] * ywwl)\n r8hN = float(2.0 * ywwl)\n ifkm = epAf.sqrt(float(2.0 / ywwl))\n for YRbF in range(1, ywwl):\n k0lF = [0] * ywwl\n for r845 in range(0, ywwl):\n k0lF[r845] = ifkm * epAf.cos(float(epAf.pi * YR...
[ "0.7554661", "0.75237143", "0.7517577", "0.7302044", "0.69888663", "0.6658582", "0.6583315", "0.63871735", "0.6325348", "0.6279787", "0.6201077", "0.61858284", "0.61494577", "0.6109683", "0.6106988", "0.6046458", "0.6028201", "0.6020429", "0.60086423", "0.58903265", "0.586471...
0.71309954
4
Convert each bounding box to a list of pairs (x,y) and (t,r,b,l), where
def XtOd(YKHO, cviu, KCHu): U5bT = [] nJ9F, nxyw, yzQ0, MKlR = tuple(cviu[0:4]) def o7Nh(nJ9F, KCHu): BAMb = nJ9F + 0.5 - KCHu / 2 return oyIN.ceil(BAMb / KCHu).astype(int) def kTDo(nJ9F, KCHu): BAMb = nJ9F + 0.5 - KCHu / 2 return oyIN.floor(BAMb / KCHu).astype(int) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C1GJ(YKHO):\n eRPr, JvQp = YKHO.bounds()\n return [[eRPr[0], eRPr[1]], [JvQp[0], eRPr[1]], [JvQp[0], JvQp[1]], [eRPr[0], JvQp[1]], [eRPr[0], eRPr[1]]]", "def JO9U(JVlD: Box2D) -> x1iM[float]:\n TVTK = JVlD.x2 - JVlD.x1 + 1\n H2v2 = JVlD.y2 - JVlD.y1 + 1\n return [JVlD.x1, JVlD.y1, TVTK, H2v2]"...
[ "0.7082174", "0.7070429", "0.704417", "0.6903302", "0.6881852", "0.68782574", "0.6864407", "0.67951757", "0.6789326", "0.67607355", "0.6754608", "0.67450523", "0.67082095", "0.6692252", "0.668419", "0.66749865", "0.66722125", "0.6666372", "0.66557896", "0.6655679", "0.6644515...
0.7014594
3
Convert seconds to (seconds, minutes, hours, remainder_seconds)
def a8Pe(C6wh): Mkmy = C6wh KCHu = Mkmy % 60 r8hN = (Mkmy - KCHu) % (60 * 60) MKlR = (Mkmy - KCHu - r8hN) % (60 * 60 * 60) return (KCHu, int(r8hN / 60), int(MKlR / (60 * 60)), Mkmy - (KCHu + r8hN + MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8Pe(C6wh):\n yVtz, kRsb = divmod(C6wh, 60)\n ROt1, yVtz = divmod(yVtz, 60)\n return (ROt1, yVtz, kRsb)", "def EDSZ(ITS7):\n sUJb = ITS7 // (24 * 3600)\n ITS7 %= 24 * 3600\n rsPw = ITS7 // 3600\n ITS7 %= 3600\n fg7a = ITS7 // 60\n ITS7 %= 60\n yfby = ITS7\n return (sUJb, rsPw...
[ "0.8422709", "0.82168067", "0.8203244", "0.81545925", "0.8145901", "0.806774", "0.8028107", "0.79291785", "0.7924774", "0.7904854", "0.7850468", "0.7841771", "0.7838921", "0.78022105", "0.77860373", "0.77810735", "0.77317834", "0.7704069", "0.770154", "0.770154", "0.7692279",...
0.8102785
5
Test functionality to rename a column.
def iFMq(YKHO): HCmI = nve6.rename_column(dataset_name=Lrzk, column=1, name='The col', validate=True) YKHO.validate_command(HCmI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnvG(YKHO):\n YKHO.tdata[2].rename('newname')\n YKHO.assertEqual(YKHO.tdata.find('newname'), 2)\n YKHO.tdata['newname'].rename('newnewname')\n YKHO.assertEqual(YKHO.tdata.find('newnewname'), 2)", "def ad_U():\n ...", "def ytTs(YKHO):\n\n class DestModel(w6CG):\n Kh0K = FYrf.CharFie...
[ "0.86494166", "0.8502111", "0.79706675", "0.77827686", "0.76938164", "0.76050246", "0.742743", "0.7357978", "0.73526615", "0.73382735", "0.73139036", "0.7182424", "0.71381", "0.7090538", "0.6994393", "0.69741106", "0.69720197", "0.69709176", "0.6958048", "0.6908699", "0.68338...
0.8766688
0
Convert an integer to a byte string.
def TTZC(exwG, Z1S6=0): KCHu = b'' exwG = int(exwG) tMMy = BlNT.pack while exwG > 0: KCHu = tMMy('>I', exwG & 4294967295) + KCHu exwG = exwG >> 32 for YRbF in range(len(KCHu)): if KCHu[YRbF] != b'\x00'[0]: break else: KCHu = b'\x00' YRbF = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vPav(kAne):\n if kAne == 0:\n return chr(kAne)\n dZxd = []\n while kAne > 0:\n dZxd.append(chr(kAne - (kAne >> 8 << 8)))\n kAne = kAne >> 8\n return ''.join(dZxd)", "def jykZ(YKHO, FGW3):\n if not (type(FGW3) is SnBA.LongType or type(FGW3) is SnBA.IntType):\n raise ...
[ "0.8379438", "0.819343", "0.8166191", "0.78736997", "0.7771579", "0.77686626", "0.7762478", "0.7583406", "0.7516338", "0.7499411", "0.74917763", "0.7486218", "0.74813074", "0.74765944", "0.743638", "0.743638", "0.7398202", "0.73480564", "0.73273134", "0.7307164", "0.72863865"...
0.0
-1
The set of arguments for constructing a VpcIpamPoolCidrAllocation resource.
def FIMM(Ro_8, *, cYKK: pulumi.Input[str], yf3m: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, sRWP: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, ieVu: Optional[pulumi.Input[int]]=None): qe4Y.set(Ro_8, 'ipam_pool_id', cYKK) if yf3m is not None: qe4Y.set(Ro_8, 'ci...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: VpcIpamPoolCidrAllocationArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, yf3m: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, sRWP: Optional[pulumi.In...
[ "0.8049919", "0.66785187", "0.6042544", "0.59542906", "0.5880012", "0.5591241", "0.5568578", "0.5426997", "0.53991425", "0.5390137", "0.5235369", "0.5196265", "0.5143864", "0.5143864", "0.5136019", "0.51353776", "0.50951326", "0.5093407", "0.50923854", "0.5090404", "0.5064031...
0.65399486
2
The CIDR you want to assign to the pool.
def yf3m(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cidr')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yf3m(YKHO):\n return YKHO.subnets[YKHO.given_cidr]['cidr']", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def yf3m(YKHO):\n return YKHO._cidr", "def yf3m(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.g...
[ "0.73073065", "0.71927625", "0.71927625", "0.71247566", "0.7049339", "0.7011712", "0.6831206", "0.6831206", "0.68202287", "0.68202287", "0.6715704", "0.67027026", "0.67027026", "0.66764617", "0.66764617", "0.6615825", "0.6615825", "0.6615825", "0.65747833", "0.6518832", "0.65...
0.69793123
7
The CIDR you want to assign to the pool.
def yf3m(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'cidr')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yf3m(YKHO):\n return YKHO.subnets[YKHO.given_cidr]['cidr']", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def yf3m(YKHO):\n return YKHO._cidr", "def yf3m(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.g...
[ "0.73073065", "0.71927625", "0.71927625", "0.71247566", "0.7049339", "0.7011712", "0.6831206", "0.6831206", "0.68202287", "0.68202287", "0.6715704", "0.67027026", "0.67027026", "0.66764617", "0.66764617", "0.6615825", "0.6615825", "0.6615825", "0.65747833", "0.6518832", "0.65...
0.69793123
6
The ID of the resource.
def PcW4(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'resource_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO._resource_id", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"...
[ "0.92022413", "0.91389847", "0.8652155", "0.8652155", "0.8652155", "0.8598405", "0.8540496", "0.85403514", "0.84969217", "0.8316472", "0.82420367", "0.8184797", "0.81668425", "0.8159377", "0.8159377", "0.8159377", "0.8159377", "0.8159377", "0.8085464", "0.8085464", "0.8085464...
0.0
-1
The type of the resource.
def Qjbs(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'resource_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO):\n return YKHO._get_field('type')", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._res_type", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n retu...
[ "0.91223353", "0.9010284", "0.9010284", "0.8933747", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.86131585", "0.8593198", "0.8593198", ...
0.842651
40
The CIDR you want to assign to the pool.
def yf3m(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'cidr')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yf3m(YKHO):\n return YKHO.subnets[YKHO.given_cidr]['cidr']", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def rQJp(YKHO) -> str:\n return qe4Y.get(YKHO, 'cidr_ip')", "def yf3m(YKHO):\n return YKHO._cidr", "def yf3m(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.g...
[ "0.73073065", "0.71927625", "0.71927625", "0.71247566", "0.7049339", "0.69793123", "0.69793123", "0.6831206", "0.6831206", "0.68202287", "0.68202287", "0.6715704", "0.67027026", "0.67027026", "0.66764617", "0.66764617", "0.6615825", "0.6615825", "0.6615825", "0.65747833", "0....
0.7011712
5
The ID of the resource.
def PcW4(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'resource_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO):\n return YKHO._resource_id", "def id(YKHO):\n return YKHO._getValue('resource-id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')", "def PcW4(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_id')"...
[ "0.92022413", "0.91389847", "0.8652155", "0.8652155", "0.8652155", "0.8598405", "0.8540496", "0.85403514", "0.84969217", "0.8316472", "0.82420367", "0.8184797", "0.81668425", "0.8085464", "0.8085464", "0.8085464", "0.8085464", "0.8085464", "0.807934", "0.807934", "0.807934", ...
0.8159377
14
The type of the resource.
def Qjbs(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'resource_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qjbs(YKHO):\n return YKHO._get_field('type')", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._resource_type", "def Qjbs(YKHO):\n return YKHO._res_type", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n retu...
[ "0.91223353", "0.9010284", "0.9010284", "0.8933747", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.8921219", "0.86131585", "0.8584647", "0.8584647", ...
0.8593198
19
Collect the column names in the SQL database (per create_lab_tables).
def wOLV(YKHO, V3B_): YKHO.sql_columns = V3B_.collect_table_column_names(YKHO.table_name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XUX0(YKHO, tyNF):\n if YKHO.__check_database_is_initialised() is False:\n return []\n DpUl = YKHO.con.cursor()\n try:\n DpUl.execute('PRAGMA table_info({})'.format(tyNF))\n except Exception as e:\n RKD7.error('Exception: {} when trying to get column names for table {}'.format(t...
[ "0.7305982", "0.72739184", "0.719237", "0.71561754", "0.7125302", "0.7112815", "0.70777434", "0.70454943", "0.7044255", "0.70311856", "0.7026096", "0.70255435", "0.7013221", "0.7006505", "0.6997018", "0.69677794", "0.69644326", "0.6962368", "0.6952467", "0.6946652", "0.693522...
0.7619569
0
>>> t1 = Trie(26, False) >>> t2 = Trie(26, True) >>> t3 = Trie(26, True) >>> t4 = Trie(26, True) >>> t1.setBucket('c', t2) >>> t2.setBucket('a', t3) >>> t1.setBucket('b', t4) >>> t1.lookup("c") True >>> t1.lookup("ca") True >>> t1.lookup("") False >>> t1.lookup("car") False >>> t1.lookup("b") True
def ccBJ(YKHO, vIwR): g8IW = YKHO YRbF = 0 while YRbF < len(vIwR): if g8IW.contents[YKHO.bucket(vIwR[YRbF])] != None: g8IW = g8IW.contents[YKHO.bucket(vIwR[YRbF])] else: return False YRbF = YRbF + 1 return g8IW.hasContent()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sSH_():\n from trie import Trie\n trie = Trie()\n eOtH = 'pig'\n ok3O = 'piglet'\n trie.insert(eOtH)\n trie.insert(ok3O)\n assert trie.contains(eOtH)\n assert trie.contains(ok3O)", "def FIMM(YKHO):\n YKHO.trie = ep_x()\n YKHO.string_to_integer_map = {}", "def JFsl(ZOCz):\n ...
[ "0.6400049", "0.59242386", "0.591961", "0.5914408", "0.5892321", "0.5881578", "0.587585", "0.5857059", "0.58508325", "0.5828563", "0.58017606", "0.57390666", "0.57390666", "0.57390666", "0.57390666", "0.57390666", "0.57390666", "0.57390666", "0.5733068", "0.5733068", "0.57224...
0.0
-1
Checks if scriptName is valid exists in the content.
def zLsE(YKHO, QzNl, jpqd) -> bool: if not jpqd: return True HBP2 = YKHO.current_file.get('scriptName', '') if not HBP2: return True JXH8 = QzNl['scripts', []] for EcxX in JXH8: Evw7 = list(EcxX.keys())[0] if HBP2 == EcxX[Evw7]['name']: return True ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qykR(YKHO, OcnH: unicode) -> bool:\n ...", "def FYXB(YKHO, mWFP):\n return mWFP in YKHO.__scripts", "def SiJp(Ux0P):\n YBcr = Hy7s.path.splitext(Ux0P)[1]\n return YBcr.lower() in wxma", "def SiJp(tk5Y, lH5w):\n AuQP = lH5w.endswith('py')\n return AuQP", "def Jwxp(YKHO):\n mXDZ = Zb...
[ "0.6816637", "0.65262127", "0.64846534", "0.6458582", "0.6392577", "0.6371331", "0.6311183", "0.6311183", "0.6311183", "0.62192994", "0.61926854", "0.61862016", "0.6077249", "0.60610205", "0.6039966", "0.6035089", "0.60325867", "0.5890368", "0.5862093", "0.5855594", "0.584505...
0.64230454
4
Returns the product of each digit in a string of numbers
def Lx3t(vIwR): wjRY = int(vIwR[0]) for YRbF in vIwR[1:]: wjRY *= int(YRbF) return wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ji6S(NPoT):\n QRFO = 1\n for Ko6S in NPoT:\n QRFO *= int(Ko6S)\n return QRFO", "def AI9R(fktj):\n if '0' in fktj:\n return 0\n Ylbp = 1\n for Ko6S in fktj:\n Ylbp *= int(Ko6S)\n return Ylbp", "def gqFW(FGW3: str) -> int:\n Lx3t = 1\n for Ko6S in FGW3:\n ...
[ "0.8535845", "0.8267875", "0.8157802", "0.7993691", "0.7484124", "0.7407395", "0.7299923", "0.7229196", "0.7159466", "0.7096005", "0.7035455", "0.6939926", "0.6900658", "0.6795656", "0.6739512", "0.6739459", "0.6739459", "0.6726924", "0.6681006", "0.6670003", "0.6651167", "...
0.8501666
1
add the object to the current database session
def BdN0(YKHO, YEnM): if YEnM: YKHO.__session.add(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mzC(YKHO):\n NCls.session.add(YKHO)", "def H2v5(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def H2v5(YKHO, YEnM):\n YKHO.session.add(YEnM)", "def RFVC(Emd4, cuiw, YEnM):\n cuiw.add(YEnM)", "def H2v5(YKHO):\n NCls.s...
[ "0.8323839", "0.82484263", "0.82043564", "0.82043564", "0.819759", "0.8141994", "0.7956055", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", "0.7815265", ...
0.7642505
43
Returns the address value for an element.
def vAkW(YKHO, U6D_, hkS8): LlLv = U6D_.get(hkS8) if '::' in LlLv: return MLXs elif ':' in LlLv: [pClB, gWqP] = vIwR.split(LlLv, ':') vgXP = int(gWqP, 16) if YKHO.is_int(pClB) == True: o8zf = int(pClB, 16) rRzo = (o8zf << 4) + vgXP else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UTX6(YKHO):\n return YKHO.container['address']", "def vAkW(YKHO):\n return YKHO.address()", "def ceuN(YKHO):\n return YKHO.address", "def UTX6(YKHO):\n return YKHO.data.get('address')", "def vAkW(YKHO):\n return YKHO.address", "def vAkW(YKHO):\n return YKHO.address", "def vAkW(YKH...
[ "0.7251089", "0.72014695", "0.71880263", "0.71754456", "0.71603906", "0.71603906", "0.71603906", "0.7113277", "0.7019906", "0.7001149", "0.695819", "0.694847", "0.694847", "0.694847", "0.694847", "0.6933115", "0.6927957", "0.6927957", "0.68895066", "0.68895066", "0.68895066",...
0.71386236
7
Returns true if the datatype represents a string type.
def TcK7(YKHO, SLLj): if SLLj.lower().startswith('unicode'): return True if SLLj.lower().startswith('string'): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7_c(YKHO) -> bool:\n return YKHO.type_generic == S02B.STRING", "def X7_c(YKHO) -> bool:\n return YKHO.data_record_type.is_string()", "def X7_c(YKHO) -> bool:\n return YKHO == H8DZ.STRING", "def X7_c(vGaq):\n return type(vGaq) in SnBA.StringTypes", "def X7_c(vGaq):\n return type(vGaq) in...
[ "0.8746268", "0.8488238", "0.82307005", "0.81364584", "0.81364584", "0.8049936", "0.8049936", "0.8027324", "0.79837936", "0.79767865", "0.79717255", "0.7898519", "0.78913563", "0.7854109", "0.78536695", "0.78181916", "0.7790091", "0.77696717", "0.7755835", "0.7746438", "0.773...
0.9168977
0
Returns true if the datatype represents a structure in the database.
def XbH2(YKHO, SLLj): if GTZY.get_struc_id(SLLj) == GTZY.BADNODE: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XbH2(YKHO) -> bool:\n return YKHO.structure_def is not None", "def ykOE(yDqo: np.dtype) -> bool:\n return hasattr(yDqo, 'fields') and yDqo.fields is not None", "def YC7V(YKHO, y6Xa):\n return y6Xa.code == yc5u.TYPE_CODE_STRUCT", "def lobk(a1PO):\n return type(a1PO) is type(gk2W.Structure)", ...
[ "0.74579483", "0.7225069", "0.6891497", "0.68112034", "0.65924", "0.65923446", "0.6460912", "0.6427889", "0.6412352", "0.63375086", "0.6239658", "0.62341374", "0.6207871", "0.6196698", "0.6174872", "0.61599046", "0.61379915", "0.61181724", "0.61166096", "0.61162776", "0.60844...
0.8130295
0
Get the directory of a repository
def ERDM(YKHO, boHx): if 'checked-out-directory-name' in boHx: DorE = boHx['checked-out-directory-name'] elif 'repository' in boHx: N5OF = boHx['repository'] DorE = vgd6(Hy7s.path.basename(N5OF), '.git') else: raise ValueError('no way to find basename') DorE = Hy7s.path.j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dMng(AGPF=None):\n return Hy7s.path.join(AGPF, ejh1) if AGPF else ejh1", "def cl4h(YKHO, F3jJ):\n return Hy7s.path.join(OSdB, F3jJ.id)", "def dMng(AGPF=None):\n return Hy7s.path.join(AGPF, ejh1) if AGPF else ejh1", "def a_7F(boHx):\n return Orwp.joinpath(boHx)", "def rsxK():\n return iXC...
[ "0.8212885", "0.81733227", "0.8162069", "0.788699", "0.78325665", "0.7791356", "0.7674378", "0.7573987", "0.75346446", "0.7511872", "0.7510439", "0.7479433", "0.74496627", "0.73748606", "0.73696804", "0.7315238", "0.72917426", "0.7251022", "0.7248059", "0.7247961", "0.7213357...
0.7790189
6
Get the last world QSR state.
def Qhff(YKHO, zZpL=False): a1PO = YKHO.get_sorted_timestamps()[-1] return YKHO.trace[a1PO] if zZpL else jth9.deepcopy(YKHO.trace[a1PO])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0mt(YKHO):\n return YKHO.states[-1]", "def QTBn(YKHO):\n QTBn = YKHO.world.state[YKHO.state_name]\n assert QTBn is not None\n return QTBn", "def A3Vt(YKHO):\n return YKHO._states_dict['R'][0]", "def n5LY(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'last_known_power_state')", "...
[ "0.6379718", "0.62612146", "0.6096644", "0.6085808", "0.6057871", "0.60567254", "0.6036983", "0.6021726", "0.5969254", "0.59560376", "0.5919947", "0.5908507", "0.5892168", "0.5888109", "0.5832531", "0.5823377", "0.58132404", "0.5807742", "0.57756513", "0.5772455", "0.5771913"...
0.0
-1
Generates the ground truth for transformer_class_logits. This function generates a pseudo ground truth that we will use to train the transformer class head logits. The input tensors, matched_mask_slot_indices and mask_gt_semantic_map, are obtained by (hungarian) matching the ground truth masks with the predicted masks....
def r529(y3K1: tf.Tensor, kYPZ: tf.Tensor, uhYl: int, v06O: List[int]): HbLP = kYPZ.get_shape().as_list() Ep8u = HbLP[0] gEyR = HbLP[-1] ITSp = ZylS.expand_dims(ZylS.range(Ep8u), axis=-1) ITSp = ZylS.tile(ITSp, [1, gEyR]) ITSp = ZylS.reshape(ITSp, [-1, 1]) y3K1 = ZylS.reshape(y3K1, [-1, 1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cc7Y(YKHO, hB0Y: Tuple[Dict[Text, tf.Tensor], Dict[Text, tf.Tensor]]):\n WL4v = hB0Y[0]\n YKHO._max_thing_id = int(WL4v[BJsk.GT_THING_ID_CLASS_KEY][-1])\n g0X5 = hB0Y[1]\n L3ux = g0X5[BJsk.PRED_TRANSFORMER_CLASS_LOGITS_KEY]\n YKHO._num_mask_slots = int(L3ux[1])\n YKHO._num_thing_stuff_classes...
[ "0.6082554", "0.6060123", "0.6060123", "0.58759695", "0.584276", "0.58423823", "0.58164734", "0.57614654", "0.5751609", "0.5748514", "0.5734508", "0.56323946", "0.5605784", "0.55891335", "0.55629563", "0.55629563", "0.55537754", "0.5527664", "0.54912126", "0.5489342", "0.5475...
0.60442567
3
Initializes a MaXDeepLab loss. This class supports PQstyle loss, mask id cross entropy loss, and instance discrimination loss, proposed in MaXDeepLab. The PQstyle loss can be further decomposed in to a classification term and a mask dice term.
def FIMM(YKHO, BGpG: config_pb2.LossOptions, uisG: int, AQRy: Tuple[int], qpxG: float=0.75, SaO_: float=0.3): super(JLXH, YKHO).__init__(name='MaXDeepLabLoss') YKHO.loss_terms = [] YKHO._pq_style_loss_weight = 0.0 if BGpG.HasField(BJsk.PQ_STYLE_LOSS): YKHO._pq_style_loss_weight = BGpG.pq_style_l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, O1PP, VNv8=1.0):\n YKHO.basic_loss = O1PP\n YKHO.pos_class_weight = VNv8", "def FIMM(YKHO, cOS_: bool=True, lO5t: bool=False):\n assert qwjZ()\n super().__init__()\n assert cOS_ != lO5t or not cOS_\n YKHO.use_masking = cOS_\n YKHO.use_weighted_masking = lO5t\n gH2v = 'none'...
[ "0.60677534", "0.60391647", "0.5917616", "0.59007573", "0.5867322", "0.58331627", "0.58304214", "0.5780893", "0.57732904", "0.5770529", "0.5759528", "0.5724113", "0.5689482", "0.5667567", "0.5666478", "0.56583774", "0.5651519", "0.5644206", "0.56400156", "0.56380206", "0.5637...
0.7406971
0
Test retrieve all currencies
def WHiE(YKHO): Ylbp = YKHO.client.get(qbCh) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xKdL(YKHO):\n YKHO.assertEqual(len(list(qdHh.all_currencies())), len(AkZa))", "def RgDE(YKHO):\n x0hE = iJSR()\n geh0 = x0hE.get('/currencies/', format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(geh0.data), len(qdHh.all_currencies()))\n YKHO.assert...
[ "0.77642715", "0.7762416", "0.77111554", "0.7671442", "0.7330663", "0.7161586", "0.71292484", "0.7045913", "0.6968518", "0.6965964", "0.6941964", "0.68897814", "0.68609256", "0.6840455", "0.68399155", "0.68371695", "0.68371695", "0.6834568", "0.68087584", "0.6805336", "0.6782...
0.79975533
0
Get the indices for the next batch of data.
def UDAb(YKHO) -> oyIN.array: if YKHO._pointer >= len(YKHO.interactions): raise StopIteration DNs0 = YKHO.iteration_order[YKHO._pointer:YKHO._pointer + YKHO.batch_size] YKHO._pointer += YKHO.batch_size return DNs0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dthx(Zgof, Ep8u):\n bS0K = oyIN.arange(Zgof)\n oyIN.random.shuffle(bS0K)\n or8S = 0\n GYD4 = []\n while or8S <= Zgof:\n GYD4.append(bS0K[or8S:or8S + Ep8u])\n or8S += Ep8u\n return GYD4", "def ITSp(Z67g, jEa4, Ep8u):\n yKcO = int(Z67g * Ep8u)\n Os4s = int((Z67g + 1) * Ep8...
[ "0.7533191", "0.7481993", "0.73057246", "0.72293717", "0.7169509", "0.711922", "0.7116368", "0.6973582", "0.6963918", "0.6955851", "0.69256043", "0.689572", "0.6893846", "0.68481714", "0.68234897", "0.68205017", "0.6811103", "0.6796505", "0.6772161", "0.6772161", "0.6772161",...
0.6445176
65
Get the indices for the next batch of data.
def UDAb(YKHO) -> x1iM[AzJI[int]]: if YKHO._pointer >= len(YKHO.data_to_iterate_through): raise StopIteration or8S = YKHO.data_to_iterate_through[YKHO._pointer] YKHO._pointer += 1 return or8S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dthx(Zgof, Ep8u):\n bS0K = oyIN.arange(Zgof)\n oyIN.random.shuffle(bS0K)\n or8S = 0\n GYD4 = []\n while or8S <= Zgof:\n GYD4.append(bS0K[or8S:or8S + Ep8u])\n or8S += Ep8u\n return GYD4", "def ITSp(Z67g, jEa4, Ep8u):\n yKcO = int(Z67g * Ep8u)\n Os4s = int((Z67g + 1) * Ep8...
[ "0.7533191", "0.7481993", "0.73057246", "0.72293717", "0.7169509", "0.711922", "0.7116368", "0.6973582", "0.6963918", "0.6955851", "0.69256043", "0.689572", "0.6893846", "0.68481714", "0.68234897", "0.68205017", "0.6811103", "0.6796505", "0.6772161", "0.6772161", "0.6772161",...
0.656527
44
Very simple function to fill missing values. Should only be used for values which basically do not change like month and day. Will most likely give strange results when the day does change.
def njzY(dy_H): dy_H.values[0] = dy_H.dropna().values[0] dy_H.values[-1] = dy_H.dropna().values[-1] dy_H.fillna(method='ffill', inplace=True) return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i962(Tura):\n pass\n Tura.fillna(method='ffill', inplace=True)\n Tura.fillna(method='bfill', inplace=True)\n return Tura", "def i962(Tura):\n Tura.fillna(method='ffill', inplace=True)\n Tura.fillna(method='bfill', inplace=True)", "def i962(Tura):\n Tura.fillna(method='ffill', inplace=T...
[ "0.775019", "0.7706691", "0.76648664", "0.7648217", "0.7630283", "0.73565346", "0.73509836", "0.73337346", "0.72832125", "0.71551275", "0.70630157", "0.70105994", "0.6963871", "0.69523853", "0.69300133", "0.69067466", "0.6865153", "0.6844728", "0.68445045", "0.68212026", "0.6...
0.7159853
9
minimum area rectangle containing self and other.
def gN4g(YKHO, Elif: 'Rect') -> 'Rect': if YKHO.empty(): return Elif elif not Elif.empty(): WKvO = min(YKHO.x, Elif.x) LVAh = min(YKHO.y, Elif.y) yzQ0 = max(YKHO.x + YKHO.width, Elif.x + Elif.width) - WKvO MKlR = max(YKHO.y + YKHO.height, Elif.y + Elif.height) - LVAh ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WzO4(YKHO):\n return YKHO._minimum_area", "def b65I(YKHO, Elif: 'Rect') -> float:\n return YKHO.area() + Elif.area() - YKHO.intersection(Elif)", "def WP1B(YKHO, Elif):\n return WP1B(YKHO, Elif)", "def iQin(YKHO, Elif: 'Rect') -> float:\n if YKHO.empty() or Elif.empty():\n return 0\n ...
[ "0.7302159", "0.72617173", "0.71438646", "0.7087246", "0.68517214", "0.68517214", "0.68132985", "0.6697621", "0.6697621", "0.6624625", "0.6607408", "0.65958816", "0.6593155", "0.6593155", "0.6569117", "0.6533352", "0.65328574", "0.65328574", "0.64895266", "0.64615816", "0.645...
0.6781609
7
Alternative constructor using two points.
def l56d(Emd4, ShLW: Point, XOP0: Point) -> 'Rect': o4D3, si3g = ShLW ajwV, skBL = XOP0 yzQ0 = ajwV - o4D3 MKlR = skBL - si3g return Emd4(o4D3, si3g, yzQ0, MKlR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l56d(Emd4, EBgd, HpuQ):\n o4D3, si3g = EBgd\n ajwV, skBL = HpuQ\n if ajwV < o4D3:\n o4D3, ajwV = (ajwV, o4D3)\n if skBL < si3g:\n si3g, skBL = (skBL, si3g)\n return Emd4(o4D3, ajwV, si3g, skBL)", "def FIMM(YKHO, EBgd=PvyL(), HpuQ=PvyL()):\n YKHO.set_points(EBgd, HpuQ)", "def...
[ "0.76107556", "0.76084393", "0.7519886", "0.7490743", "0.738154", "0.73772484", "0.7241794", "0.7059819", "0.6933161", "0.68729144", "0.6862761", "0.6834042", "0.68157136", "0.6813532", "0.68076867", "0.67844296", "0.6777809", "0.6748764", "0.6744042", "0.66946983", "0.666816...
0.0
-1
Return the unit the value is expressed in.
def b82i(YKHO): return YKHO._unit_of_measurement if not YKHO.is_binary else None
{ "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.84137076", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.8299376", "0.82590276", "0.8214496", "0.8192878", "0.8180198", "0.81793565", "0.8151953", "0.8094752", "0.8094752", "0.8061112", "0.80569327",...
0.7655696
82
Return the state attributes of the sensor.
def TzCU(YKHO): if not YKHO.is_binary: return {qElU: YKHO._sampling_size, Xs_X: YKHO.count, cZM6: YKHO.mean, EoZq: YKHO.median, kTwP: YKHO.quantiles, ap30: YKHO.stdev, ZGFV: YKHO.variance, FFDB: YKHO.total, PHnO: YKHO.min, QNkS: YKHO.max, PSNg: YKHO.min_age, _nkg: YKHO.max_age, ZiBr: YKHO.change, UQ7x: YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.data", "def R1i3(YKHO):\n ...
[ "0.84223557", "0.8348435", "0.8348435", "0.8348158", "0.83429486", "0.8255979", "0.8250938", "0.8250938", "0.8250938", "0.8243502", "0.8243502", "0.8243502", "0.8243502", "0.8168779", "0.8168779", "0.8168779", "0.8168779", "0.8168779", "0.8166157", "0.8166157", "0.8145351", ...
0.0
-1
Remove states which are older than self._max_age.
def q5vw(YKHO): wzkt = GhSD.utcnow() vzeF.debug('%s: purging records older then %s(%s)', YKHO.entity_id, GhSD.as_local(wzkt - YKHO._max_age), YKHO._max_age) while YKHO.ages and wzkt - YKHO.ages[0] > YKHO._max_age: vzeF.debug('%s: purging record with datetime %s(%s)', YKHO.entity_id, GhSD.as_local(YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pg_u(YKHO, ZJe_):\n joFi = qcWV.utcnow - ZJe_\n if YKHO.__timestamps[0][1] <= joFi:\n YKHO.__url_to_short = {}\n YKHO.__short_to_url = {}\n YKHO.__timestamps = []\n return\n if YKHO.__timestamps[-1][1] > joFi:\n return\n d6pt = YKHO.__find_first_unexpired_index(ZJ...
[ "0.57399523", "0.5685021", "0.56512326", "0.56221884", "0.5611776", "0.56004655", "0.5509112", "0.5502515", "0.5428265", "0.5414633", "0.54067415", "0.5394445", "0.53807443", "0.537626", "0.53690535", "0.5346107", "0.53312147", "0.5283304", "0.52822804", "0.5276528", "0.52630...
0.70127565
0
Calculate Stock Price based on trades recorded in past 15 minutes. Return the price of the given stock on the basis of the transactions recorded in the last `last_minutes`. Return NaN if no transactions are available.
def Lkuh(YKHO, LpID, di7W=15): pw_q = qcWV.datetime.now() - qcWV.timedelta(minutes=di7W) if len(YKHO.trade) == 0: return float('nan') LpID = YKHO.trade[YKHO.trade['Stock_Symbol'] == LpID] if len(LpID) == 0: return float('nan') vfb4 = [d5IO.parser.parse(WKvO) > pw_q for WKvO in list(L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zKap(SWox):\n Uj1v = [IYUG for IYUG in WZsM if IYUG['timestamp'] >= SWox]\n for ZfUD in Uj1v:\n l9Ur[RWlt.StockPrice.value][Rb6i[ZfUD['StockId'].value][N2Mb.TheType.value].value] += ZfUD['price']", "def ew4W(idx7, LpID):\n V2Oj = 0\n IJGg = 0\n gc0R = qcWV.datetime.now()\n for IYUG i...
[ "0.5975535", "0.54774576", "0.53551674", "0.53347814", "0.5314919", "0.52684176", "0.52329975", "0.5211875", "0.5187154", "0.51128304", "0.5097845", "0.5082625", "0.50351536", "0.5026476", "0.50172895", "0.49852592", "0.49601737", "0.4939021", "0.4873835", "0.48128873", "0.48...
0.82151955
0
Convert Pol to Cart, returns a tuple of (x, y)
def XX5B(oZuG, rVnq): WKvO = oZuG * oyIN.cos(rVnq) LVAh = oZuG * oyIN.sin(rVnq) sQC5.loginfo('x: %f, y: %f', WKvO, LVAh) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zC5S(*qIxc):\n if len(qIxc) == 1:\n WKvO = qIxc[:, 0]\n LVAh = qIxc[:, 1]\n else:\n WKvO = qIxc[0]\n LVAh = qIxc[1]\n return (oyIN.hypot(WKvO, LVAh), oyIN.arctan2(LVAh, WKvO))", "def zrt4(*qIxc):\n if len(qIxc) == 1:\n Mkmy = qIxc[0][:, 0]\n q7In = qIxc[0...
[ "0.6629059", "0.6528861", "0.65135324", "0.64455307", "0.6440857", "0.64239126", "0.6409488", "0.63633573", "0.6350202", "0.6297862", "0.6261837", "0.6223391", "0.620344", "0.6150264", "0.61066246", "0.6091471", "0.5970081", "0.59641594", "0.5936588", "0.5863068", "0.5826498"...
0.6621938
1
Sends `!pcr all` to BOT_CHANNEL (to get Poker Now Bot to send balances) Fetches bot channel id from environment sends !pcr using discord.GroupChannel.send()
async def send_pcr(YKHO) -> None: YwkQ = YKHO.get_channel(int(str(Hy7s.getenv('BOT_CHANNEL')))) await YwkQ.send('!pcr all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def potd(YKHO):\n for lSCo in YKHO.bot.guilds:\n wxMQ = neBz(lambda WKvO: WKvO.name == 'problem-of-the-day' or WKvO.name == 'potd', lSCo.text_channels)\n try:\n await YKHO.random_problem('Problem of the Day', wxMQ)\n except:\n print(f'Error sending to {lSCo}')\n ...
[ "0.56181294", "0.55690295", "0.5475647", "0.5338031", "0.5278621", "0.5260669", "0.51109815", "0.50612706", "0.505189", "0.50267774", "0.50100684", "0.49999496", "0.49955615", "0.49952027", "0.49800903", "0.4975454", "0.49479914", "0.49456257", "0.4938335", "0.4936851", "0.49...
0.8502494
0
Controller to show homepage.
def d6pt(): return TvZl('pages/home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return a0J7.index()", "def C_QL():\n return TvZl('home.html')", "def C_QL():\n return TvZl('welcome_page.html')", "def C_QL():\n return TvZl('index.html')", "def IC8O():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('homepage.html')", "def C_QL():\n retu...
[ "0.77606994", "0.75315315", "0.75256526", "0.7470141", "0.7439808", "0.7425273", "0.7421451", "0.7417794", "0.7399705", "0.73948926", "0.7387517", "0.73805964", "0.73339134", "0.7333343", "0.73046124", "0.7298558", "0.729755", "0.72930694", "0.72930694", "0.72930694", "0.7293...
0.7206215
39
Controller to render new venue form.
def kI4K(): L03z = gA6Z() return TvZl('forms/new_venue.html', form=L03z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kI4K():\n L03z = gA6Z()\n return TvZl('forms/new_venue.html', form=L03z)", "def kI4K():\n L03z = gA6Z()\n return TvZl('forms/new_venue.html', form=L03z)", "def fDvs(QePW):\n c3tQ = tggL\n if QePW.user.profile.superuser == False:\n if QePW.user.profile.enhanced_functionality == Fals...
[ "0.83810973", "0.8342124", "0.7784946", "0.76264876", "0.7550024", "0.7494862", "0.74237", "0.7271697", "0.6951543", "0.68782365", "0.6869935", "0.6749698", "0.67301977", "0.672768", "0.66220105", "0.6446458", "0.6324212", "0.6299691", "0.6291854", "0.6212055", "0.61570054", ...
0.83418876
2
Controller to render edit artist form.
def Y9IY(SvuF): h5p_ = yp6H.query.get(SvuF) Mf7L = niON(h5p_, summarized=False) L03z = U0jz(obj=h5p_) return TvZl('forms/edit_artist.html', form=L03z, artist=Mf7L)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y9IY(SvuF):\n h5p_ = yp6H.query.get_or_404(SvuF, description='There is no artist with id={}'.format(SvuF))\n L03z = U0jz(obj=h5p_)\n return TvZl('forms/edit_artist.html', form=L03z, artist=h5p_)", "def Y9IY(SvuF):\n Aofo = yp6H.query.get(SvuF)\n L03z = U0jz(obj=Aofo)\n h5p_ = {'id': Aofo.id...
[ "0.7874002", "0.7843751", "0.7708348", "0.76545256", "0.76491654", "0.7221474", "0.70904803", "0.70797205", "0.7077228", "0.7050638", "0.70186204", "0.7013001", "0.7013001", "0.6969995", "0.67801887", "0.64377797", "0.634471", "0.62864", "0.6261439", "0.61593175", "0.6133592"...
0.7925628
0
Returns `True` if the named field is a member of this form.
def FYXB(YKHO, mWFP): return mWFP in YKHO._fields
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qeqw(YKHO, mWFP):\n return mWFP in ['_user_fields', '_system_fields', '_flat', '_core', '_flat_core'] or mWFP in YKHO.ufields or mWFP in YKHO.sfields", "def gB9w(YKHO):\n return YKHO._tag == 'member'", "def qeqw(YKHO, G1Hx):\n return G1Hx in YKHO.kwargs", "def FYXB(YKHO, vXX7):\n return vXX7 ...
[ "0.76266617", "0.72648466", "0.70547104", "0.69319904", "0.69216305", "0.6882751", "0.6772161", "0.6757054", "0.67286444", "0.6615168", "0.6598502", "0.65621406", "0.65278745", "0.6525218", "0.6513718", "0.64803183", "0.64259875", "0.64230686", "0.641298", "0.6402708", "0.638...
0.7190116
2
Specify an image file. If a file is selected, the appropriate function is called to process and display it.
def JcYw(YKHO): kCaJ, bGrB = lZdW.getOpenFileName(YKHO, 'Choose an image file to open', YKHO.path, 'Images (*.*)') if kCaJ != '': YKHO.openImageFile(kCaJ) YKHO.path = kCaJ if not Hy7s.path.exists('result.jpg'): RSAV.Seg(str(YKHO.path)) try: YKHO.bbox, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ki2L():\n AGPF = Hy7s.path.dirname(vFRs.get())\n IL9V = ((bGrB('jpeg files'), '*.jpg'), (bGrB('JPEG files'), '*.JPG'), (bGrB('png files'), '*.png'), (bGrB('PNG files'), '*.PNG'), (bGrB('All files'), '*.*'))\n vFRs.set(XqpT.askopenfilename(title=bGrB('Select picture for processing'), initialdir=AGPF, f...
[ "0.73113203", "0.72676575", "0.70203197", "0.68326724", "0.68123406", "0.6745624", "0.6693846", "0.66909707", "0.66802955", "0.6624005", "0.66094303", "0.66016227", "0.6593866", "0.6469099", "0.6427746", "0.64100844", "0.6401344", "0.6381778", "0.636302", "0.6339377", "0.6336...
0.58837885
70
Iterate over a DAG. The DAG is structured as a mapping of `parent > children` such that each children is a set of elements that depend on `parent`. The iteration happens such that for any `parent` that is being yielded, all of the `children` for that parent will have been previosly yielded.
def NyZO(aUfT: Mapping[TItem, Collection[TItem]]) -> iu5r[JAcI]: PwWw: fHNa[JAcI] = set() RZ9F = set(aUfT.keys()) Ys9o = set(Hs6x.chain.from_iterable(aUfT.values())) if not RZ9F.issuperset(Ys9o): raise ValueError('Parents not representative of all children') while PwWw != RZ9F: hsUU ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNvf(YKHO) -> a1PO.Iterator[tPEx]:\n yield YKHO\n for aUGN in YKHO.children:\n yield from aUGN.traverse()", "def OKyt(pNZh, yokr):\n pNZh = lqeT(pNZh)\n E5BI = gqag()\n E5BI.put((None, yokr))\n while not E5BI.empty():\n _AKB, aUGN = E5BI.get()\n yOs7 = pNZh[aUGN, :].non...
[ "0.6582157", "0.6498049", "0.6417802", "0.6394252", "0.6350963", "0.6325387", "0.62850076", "0.6271305", "0.6209429", "0.61979985", "0.61976624", "0.61906743", "0.6190298", "0.61578566", "0.6134853", "0.61085963", "0.60826325", "0.6060655", "0.60550797", "0.6054115", "0.60521...
0.75905937
0
Returns the current workflow state of the object.
def ja6o(YKHO): return YKHO.current_state or BfDw.get_state(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Dm6e(YKHO):\n return YKHO._workflow_state", "def Dm6e(YKHO):\n return YKHO._workflow_state", "def Dm6e(YKHO):\n return YKHO._workflow_state", "def Dm6e(YKHO):\n mdek = OZpC(YKHO.context, 'portal_workflow')\n return mdek.getInfoFor(YKHO.context, 'review_state')", "def W94Z(YKHO):\n ret...
[ "0.8613667", "0.8613667", "0.8563925", "0.7995798", "0.77306926", "0.7448071", "0.7431221", "0.74147475", "0.74147475", "0.74016285", "0.73986393", "0.738495", "0.7361845", "0.7311463", "0.7310579", "0.7309207", "0.7303687", "0.72895503", "0.7252293", "0.7252293", "0.72330433...
0.7228432
27
Returns the current workflow state name of the object.
def bAAu(YKHO): return str(YKHO.current_state or BfDw.get_state(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jb5s(YKHO):\n if YKHO.current_state:\n return QMSQ(YKHO.current_state.objectName())", "def mWFP(YKHO):\n return YKHO.current_state.name", "def DghZ(YKHO):\n return YKHO.name", "def QTBn(YKHO):\n return YKHO._name", "def cOz4(YKHO):\n return getattr(YKHO.state, 'name', YKHO.state)"...
[ "0.85745305", "0.8296169", "0.7897428", "0.78618395", "0.78467923", "0.77840203", "0.76624733", "0.7561768", "0.75438094", "0.7533455", "0.7460196", "0.7418313", "0.7407085", "0.7382091", "0.7361981", "0.73490226", "0.73479694", "0.73145056", "0.7289196", "0.727526", "0.72752...
0.82630694
2
Initialize name and cuisine type attributes
def FIMM(YKHO, zqv0, N4Ku): YKHO.restaurant_name = zqv0 YKHO.cuisine_type = N4Ku
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP\n YKHO.cuisine_type = N4Ku", "def FIMM(YKHO, mWFP, N4Ku):\n YKHO.name = mWFP.title()\n YKHO.cuisine_type = N4Ku", "def FIMM(YKHO, mWFP, TdJL):\n YKHO.name = mWFP\n YKHO.cuisine_type = TdJL", "def FIMM(YKHO, mWFP, FKii='ice cream'):\n super()...
[ "0.81155145", "0.79287887", "0.7597677", "0.71296865", "0.7127655", "0.70330584", "0.7018808", "0.7003765", "0.69829595", "0.69829595", "0.69829595", "0.69829595", "0.69459033", "0.6863253", "0.68215334", "0.6817113", "0.68134326", "0.6808013", "0.6787988", "0.6785903", "0.67...
0.6777204
21
Describes the restaurant's name and cuisine type.
def GiS8(YKHO): print("The restaurant's name is " + YKHO.restaurant_name.title() + ' and the cuisine type is ' + YKHO.cuisine_type.title() + '.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiS8(YKHO):\n print(f'Restaurant name: {YKHO.name.title()}')\n print(f'Cuisine type: {YKHO.cuisine_type}')", "def GiS8(YKHO):\n print(f'{YKHO.restaurant_name} Restaurant has {YKHO.cuisine_type} cuisine type.')", "def GiS8(YKHO):\n print('Name of the Restaurant: ' + YKHO.name)\n print('Specia...
[ "0.89316875", "0.8918721", "0.8861287", "0.8763189", "0.876141", "0.876141", "0.876141", "0.8759507", "0.8734169", "0.87299585", "0.8715791", "0.8705437", "0.86949193", "0.86841184", "0.8668579", "0.8666851", "0.8663092", "0.8656477", "0.8653546", "0.8636257", "0.86038405", ...
0.86804014
14
Inidcates if the restaurant is open.
def IY3P(YKHO): print(YKHO.restaurant_name.title() + ' is open!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oXw0(YKHO):\n print(f'{YKHO.restaurant_name} is open.')", "def IY3P(YKHO):\n print(f'{YKHO.restaurant_name} is now open.')", "def IY3P(YKHO):\n print(f'{YKHO.restaurant_name} is now open.')", "def IY3P(YKHO):\n print(f'{YKHO.restaurant_name} is now open.')", "def IY3P(YKHO):\n print(f'{Y...
[ "0.7438619", "0.7264023", "0.7264023", "0.7264023", "0.7257595", "0.7189296", "0.7180776", "0.71277493", "0.7116455", "0.7116455", "0.7038473", "0.7010586", "0.69982356", "0.69861335", "0.69861335", "0.69861335", "0.69778484", "0.69734234", "0.6949815", "0.6946502", "0.692286...
0.6999969
12
The name of a namespace file for this language.
def Crbg(YKHO) -> laHg.Optional[str]: return YKHO._config.get_config_value(YKHO._section, YKHO.WKCV_NAMESPACE_FILE_STEM, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jHrh(YKHO):\n return YKHO.key_to_namespace(YKHO.key())", "def ioKw(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespaced_name')", "def _63S(YKHO):\n return YKHO._name", "def LHEZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'namespace_name_suffix')", "def _63S(YKHO) -> str:\n return qe4Y.get(YKHO, ...
[ "0.74177563", "0.7404639", "0.7366364", "0.7268377", "0.72019756", "0.72019756", "0.72019756", "0.72019756", "0.72019756", "0.72019756", "0.72019756", "0.71802264", "0.71589494", "0.69305325", "0.6916742", "0.6916742", "0.6862244", "0.6862244", "0.6862244", "0.68113124", "0.6...
0.0
-1
The hierarchical namespace used by the support software. The property is a dot separated string when specified in configuration. This property returns that value split into namespace components with the first identifier being the first index in the array, etc.
def TsLC(YKHO) -> laHg.List[str]: GC21 = YKHO._config.get_config_value(YKHO._section, YKHO.WKCV_SUPPORT_NAMESPACE, default_value='') return GC21.split('.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _63S(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('namespace'))", "def _63S(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('namespace'))", "def _63S(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('namespace'))", "def oXmQ(YKHO):\n if YKHO.namespace is Non...
[ "0.7159544", "0.7159544", "0.7159544", "0.6964643", "0.6869124", "0.6869124", "0.6869124", "0.6869124", "0.6869124", "0.6869124", "0.6869124", "0.68602246", "0.6849346", "0.67709136", "0.6653969", "0.6653969", "0.6653969", "0.6653969", "0.6653969", "0.6643779", "0.65830237", ...
0.6390819
38
Get a map of named values to the token to emit for this language.
def YYj2(YKHO) -> laHg.Mapping[str, str]: return YKHO._config.get_config_value_as_dict(YKHO._section, YKHO.WKCV_NAMED_VALUES, default_value={})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NJl7():\n dict = {}\n dict['.'] = '||Period||'\n dict[','] = '||Comma||'\n dict['\"'] = '||QuotationMark||'\n dict[';'] = '||Semicolon||'\n dict['!'] = '||Exclamationmark||'\n dict['?'] = '||Questionmark||'\n dict['('] = '||LeftParentheses||'\n dict[')'] = '||RightParentheses||'\n ...
[ "0.6158941", "0.6013779", "0.5892858", "0.57801574", "0.5640964", "0.5611972", "0.56042653", "0.5588795", "0.556115", "0.55423445", "0.5535402", "0.54896504", "0.5478818", "0.54380614", "0.5433531", "0.54000735", "0.53957295", "0.5383809", "0.5365215", "0.5359758", "0.5356753...
0.52833545
25
Compute the number of predictions that match some target classes in the output of a model.
def qK9P(hFpD, x6A0): bGrB, jMHP = hFpD.max(dim=1) gXXc = (jMHP == x6A0).sum() return gXXc.item()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _plq(YKHO):\n return 10", "def N8hd(YKHO):\n return len(YKHO.predictions.index)", "def c6Lz(YKHO, N6Z1):\n o8P4 = {}\n for UXqs in YKHO.__mapper.labels:\n o8P4[UXqs] = 0\n for o3Uj in N6Z1:\n UXqs = o3Uj[0]\n o8P4[UXqs] += 1\n wnZB = {}\n for UXqs, UHFx in o8P4.ite...
[ "0.74492836", "0.72507435", "0.724534", "0.7166539", "0.71594644", "0.70645285", "0.7018157", "0.7002286", "0.6987688", "0.69766104", "0.696465", "0.6951053", "0.693405", "0.6911632", "0.69067806", "0.6889776", "0.6888715", "0.6856066", "0.683176", "0.6806881", "0.6800793", ...
0.76047593
0
Given a list of rank scores and ground truth labels, calculate recall ak k.
def Scpn(cCrA, Crrw, G1Hx=1): wjRY = ht2j.count_nonzero(Crrw) if wjRY == 0: return 0 LhW9 = 0 bGrB, _0VL = cCrA.sort(descending=True) for YRbF in range(G1Hx): if Crrw[_0VL[YRbF]] > 0: LhW9 += 1 return LhW9 / wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JkI8(cCrA, Crrw, hz5a=(1,)):\n Ylbp = []\n Crrw = oyIN.array(Crrw)[:, oyIN.newaxis]\n for G1Hx in hz5a:\n JiHv = oyIN.argsort(cCrA, axis=1)[:, -G1Hx:][:, ::-1]\n sChw = oyIN.logical_or.reduce(JiHv == Crrw, axis=1)\n Qtre = sChw.sum() / sChw.shape[0]\n Ylbp.append(Qtre)\n ...
[ "0.74336046", "0.6944923", "0.6940151", "0.69129443", "0.6807748", "0.6789405", "0.67614335", "0.6750021", "0.6732531", "0.67314684", "0.6675838", "0.66706735", "0.6665238", "0.66446984", "0.66443026", "0.6604399", "0.66031516", "0.6599807", "0.6586357", "0.6556063", "0.65397...
0.7683688
0
Nonterminal tokens in this grammar.
def Fw0I(YKHO): return YKHO._nonterm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vkVo(YKHO):\n return YKHO.n2i.items()", "def vkVo(YKHO):\n return YKHO._nonterminals", "def ljN0(YKHO):\n return len(YKHO.n2i)", "def vkVo(ecqT):\n if isinstance(ecqT, tuple):\n ecqT = ecqT[0]\n return ZbWC.findall(T57u, ecqT)", "def jjsj(YKHO):\n return YKHO._symbols - YKHO._n...
[ "0.7482459", "0.7085015", "0.68055075", "0.6510687", "0.6377252", "0.6259407", "0.6155158", "0.61448103", "0.6142627", "0.61338574", "0.61036664", "0.60685766", "0.60468376", "0.60275424", "0.5765989", "0.5765989", "0.5720484", "0.5720484", "0.5714989", "0.57142454", "0.57116...
0.8033271
0
Create a tf.train.Example from an image file.
def hQjK(VfIt: str, lt9u: InputFileType) -> ZylS.train.Example: with open(VfIt, 'rb') as eHNT: if lt9u == NVTO.PNG: VXjJ = oyIN.asarray(hnIv.open(xDSY.BytesIO(eHNT.read())).convert('L')) PU1l = xfLS.png_to_tfexample(VXjJ) elif lt9u == NVTO.DICOM: RyoF = cr3g.dcmre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NJQa(YKHO):\n with open(YKHO.image_path, 'rb') as nUeQ:\n LNo8 = nUeQ.read()\n Mpe1 = ZylS.train.Example(features=ZylS.train.Features(feature={'image_id': NhGy(YKHO.image_id.encode()), 'image': NhGy(LNo8), 'cls_map': NhGy(YKHO.cls_map.tobytes()), 'reg_map': NhGy(YKHO.reg_map.tobytes())}))\n ret...
[ "0.77118796", "0.7497171", "0.74785054", "0.74574935", "0.7390414", "0.7323608", "0.73201734", "0.7314248", "0.7252331", "0.7236566", "0.7228247", "0.7217025", "0.7167969", "0.7116143", "0.7088164", "0.7069084", "0.7036065", "0.69997376", "0.6938715", "0.69369406", "0.6926734...
0.8091247
0
Initialize a gravitational model of spatial accessibility.
def FIMM(YKHO, Lx1G, IWVi={}, e267=False, nvvB=1.0): YKHO.decay_function = YKHO._bind_decay_function_parameters(Lx1G, IWVi) YKHO.huff_normalization = e267 YKHO.suboptimality_exponent = nvvB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._check_static_members()\n YKHO.ge = {}\n YKHO.term = {}\n YKHO.ns_weight_f = lambda Mkmy: 1.0 / oyIN.power(Mkmy, 2)\n YKHO._gaussian_weight_radius = 5", "def FIMM(YKHO):\n YKHO._rig = None", "def uIcm(YKHO):\n YKHO.logger.logDebug(\"Initializing CombatMapModel '{0}'\...
[ "0.6055359", "0.5892966", "0.5808395", "0.5807504", "0.57824826", "0.5711262", "0.5695511", "0.5694156", "0.5681199", "0.56739396", "0.56739044", "0.56560117", "0.56426436", "0.5633725", "0.5610161", "0.5595406", "0.55943114", "0.5589582", "0.5588667", "0.55681396", "0.555336...
0.0
-1
Randomly flips a dimension of the given tensor. The decision to randomly flip the `Tensors` is made together. In other words, all or none of the images pass in are flipped. Note that tf.random_flip_left_right and tf.random_flip_up_down isn't used so that we can control for the probability as well as ensure the same dec...
def hA_Y(kdmR, JxU2=0.5, tpio=1): RjKZ = ZylS.random_uniform([]) def fh2j(): NKly = [] for vhpA in kdmR: if tpio < 0 or tpio >= len(vhpA.get_shape().as_list()): raise ValueError('dim must represent a valid dimension.') NKly.append(ZylS.reverse_v2(vhpA, [t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nyya(vb7U, jDK_=1, yokr=None):\n vb7U = ZylS.convert_to_tensor(vb7U, name='mat')\n ZNVI = ZylS.random_uniform([], 0, 1.0, seed=yokr)\n A7Sw = ZylS.less(ZNVI, 0.5)\n Aofo = ZylS.cond(A7Sw, lambda: ZylS.reverse(vb7U, [jDK_]), lambda: vb7U)\n return Aofo", "def Nyya(WKvO, RsXC=False, u3c_=True):\...
[ "0.72792107", "0.703426", "0.6896106", "0.68285805", "0.6670403", "0.6592328", "0.6456561", "0.6449965", "0.63759553", "0.637528", "0.6330084", "0.62636447", "0.6241135", "0.6178114", "0.6130373", "0.61266387", "0.6119507", "0.610364", "0.61029786", "0.61021835", "0.6069057",...
0.77028036
0
Return a full name, neatly formatted.
def e1yb(c9ua, zp3f): eHMM = c9ua + ' ' + zp3f print(eHMM.title()) return eHMM.title()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(YKHO):\n return '%s %s' % (YKHO.first_name, YKHO.last_name)", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()", "def eHMM(YKHO):\n return '%s %s...
[ "0.86527246", "0.86397916", "0.86397916", "0.8610865", "0.86055064", "0.8602058", "0.8599447", "0.8597453", "0.8587099", "0.858194", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0.85792047", "0....
0.8558333
58
Return the details of the current Logged In User
def NMoC(YKHO, QePW, format=None): try: CBIr = QePW.user ZMzz = YKHO.serializer_class(CBIr) return oGir(ZMzz.data) except: return oGir({'error': ['Authentication details are not correct.']}, status=jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_session()", "def VCCg(YKHO):\n return YKHO.auth.get_user_by_sessi...
[ "0.8622224", "0.8622224", "0.85594124", "0.85594124", "0.85594124", "0.85594124", "0.8477657", "0.8477657", "0.8477657", "0.8477657", "0.8198458", "0.8024674", "0.7800539", "0.77002513", "0.7665775", "0.7665775", "0.7665775", "0.7665775", "0.7650926", "0.76215595", "0.7606826...
0.0
-1
Find the next power of 2 for number i
def rCT3(YRbF): exwG = 1 while exwG < YRbF: exwG *= 2 return exwG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fSkf(YRbF):\n exwG = 2\n while exwG < YRbF:\n exwG = exwG * 2\n return exwG", "def rCT3(YRbF):\n exwG = 1\n while exwG < YRbF:\n exwG *= 2\n return exwG", "def rCT3(YRbF):\n exwG = 1\n while exwG < YRbF:\n exwG *= 2\n return exwG", "def SZow(YRbF):\n LaV...
[ "0.9143496", "0.895318", "0.8872192", "0.87613267", "0.8751628", "0.8483356", "0.84635055", "0.8453617", "0.8426567", "0.81952125", "0.8166633", "0.81483746", "0.8122985", "0.8082938", "0.8040524", "0.8017401", "0.7992832", "0.7976558", "0.79190135", "0.78429276", "0.7823601"...
0.8893821
2
Calculates the precision of a given label using the confusionMatrix
def ljjg(UXqs, Zn1g): r1hH = 0 dixj = 0 for XP5J in Zn1g: if XP5J[0] == UXqs: dixj = dixj + Zn1g[XP5J] if XP5J[1] == UXqs: r1hH = r1hH + Zn1g[XP5J] rhd_ = r1hH / float(dixj) return rhd_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(YKHO, UXqs: str):\n jMlA = sum((YKHO[vC9B, UXqs] for vC9B in YKHO.true_labels))\n if jMlA == 0:\n return 0\n else:\n return YKHO[UXqs, UXqs] / jMlA", "def lGpo(Y8eF, aMgO):\n COti = nMvt.sum(nMvt.round(nMvt.clip(Y8eF * aMgO, 0, 1)))\n ftZB = nMvt.sum(nMvt.round(nMvt.clip(aMg...
[ "0.8021659", "0.75532204", "0.7545347", "0.7535539", "0.7505845", "0.7490303", "0.7476815", "0.7474574", "0.7474574", "0.74599814", "0.74587727", "0.74583757", "0.74572784", "0.7449026", "0.7449026", "0.7425181", "0.74081904", "0.74081904", "0.74081904", "0.74081904", "0.7408...
0.87072706
0
Dynamically adds properties to serializer_class from request's GET params.
def l5oD(YKHO): lHli = None V_D6 = None ikUn = hasattr(YKHO, 'request') and YKHO.request and (YKHO.request.method == 'GET') if not ikUn: return YKHO.serializer_class V_D6 = YKHO.request.query_params.get('fields') if not V_D6 and hasattr(YKHO, 'fields'): V_D6 = YKHO.fields V_D...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a9qP(YKHO, *qIxc, **B2fa):\n cIuE = YKHO.get_serializer_class()\n V_D6 = None\n if YKHO.request.method == 'GET':\n f4lR = YKHO.request.QUERY_PARAMS.get('fields', None)\n if f4lR:\n V_D6 = tuple(f4lR.split(','))\n B2fa['context'] = YKHO.get_serializer_context()\n B2fa['fi...
[ "0.64513963", "0.5632936", "0.5623029", "0.5527457", "0.5518055", "0.5502117", "0.54880965", "0.538002", "0.53782624", "0.53670985", "0.53538275", "0.5349622", "0.53415906", "0.534055", "0.532075", "0.53033584", "0.5278418", "0.52654797", "0.52639514", "0.52557063", "0.524310...
0.6513269
0
Given a certain type, get the corresponding irtype
def C08U(YKHO, Bo55): Bo55 = YKHO.context.get_type(Bo55) if isinstance(Bo55, Ziit.FloatType): MGJV = {32: _ABP.f32, 64: _ABP.f64} return MGJV[Bo55.bits] elif isinstance(Bo55, Ziit.SignedIntegerType): jZLP = {8: _ABP.i8, 16: _ABP.i16, 32: _ABP.i32, 64: _ABP.i64} return jZLP[Bo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ExhB(YKHO, type):\n if type == 'BYTE':\n return 1\n elif type == 'INT':\n return 2\n elif type == 'LONG':\n return 3\n elif type == 'FLOAT':\n return 4\n elif type == 'DOUBLE':\n return 5\n elif type == 'COMPLEX':\n return 6\n elif type == 'STRING'...
[ "0.6894899", "0.67722064", "0.67449385", "0.66925436", "0.6649215", "0.6539022", "0.64610296", "0.63449776", "0.63449776", "0.63449776", "0.6328743", "0.6315153", "0.6308497", "0.6308081", "0.62760305", "0.62497646", "0.624807", "0.6215332", "0.6203377", "0.6202144", "0.61946...
0.7039367
0
Test that /query_profile_encoded error message starts with the expected line in case of missing query and does not contain any leading whitespace.
def vCwZ(YKHO): hKn5 = CM8_() J2GB = hKn5.get_any_impalad() Aofo = J2GB.service.read_debug_webpage('query_profile_encoded?query_id=123') assert Aofo.startswith('Could not obtain runtime profile: Query id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jbZy(YKHO, zZcM, AFMI, Ol8d):\n with YKHO.assertRaises(wvEv.ParseError) as tTpl:\n wvEv.parse_string(TI0e.dedent(zZcM).lstrip(), options=YKHO.options)\n YKHO.assertRegex(str(tTpl.exception), ZbWC.escape(Ol8d))\n YKHO.assertEqual(AFMI, tTpl.exception.line)", "def RNVD(YKHO):\n YKHO.assertMe...
[ "0.6114111", "0.6070272", "0.6070272", "0.5983679", "0.5873344", "0.58662444", "0.5855777", "0.58483803", "0.58021516", "0.5801966", "0.5801966", "0.5796331", "0.5773981", "0.5771062", "0.57645696", "0.5758702", "0.5758702", "0.5758702", "0.5737351", "0.57289773", "0.57181966...
0.6509542
0
Determine appropriate config class based on provided env var
def LfEK() -> str: arSR = Hy7s.getenv('FLASK_ENV', 'development') return GnGq.get(arSR, _jPe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vO59(qvZV):\n if qvZV == 'vanilla':\n return j5sA.CityGridEnv\n elif qvZV == 'map':\n return j5sA.MapGridEnv\n else:\n raise ValueError(f'Unsupported environment type: {qvZV}')", "def pnQ7(Emd4, AaLu):\n return AaLu.capitalize() + 'Config'", "def tgzD():\n try:\n ...
[ "0.6918821", "0.6905856", "0.6803592", "0.67913693", "0.6600728", "0.6562039", "0.6537454", "0.6522355", "0.651108", "0.6503056", "0.64717644", "0.6307393", "0.6153108", "0.61164165", "0.6101174", "0.60622597", "0.60138106", "0.5977694", "0.596456", "0.5958599", "0.5915118", ...
0.60697204
15
Cast bool string representation into actual Bool type
def TpFH(Ty9i: str=None) -> bool: if type(Ty9i) is bool: return Ty9i if isinstance(Ty9i, str) is False: return False return Ty9i.lower() in ('yes', 'true', 't', '1')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LtPm(vIwR):\n return xpzE.parseBoolean(vIwR)", "def j_4z(KCHu):\n return bool(gnPz.strtobool(KCHu))", "def M0mR(KCHu):\n if KCHu == 'false':\n return False\n if KCHu == 'true':\n return True\n raise Exception('Unable to cast as bool %s' % KCHu)", "def DUUG(BWXx):\n if BWXx...
[ "0.86904305", "0.85650903", "0.8436028", "0.83966035", "0.8357793", "0.8242856", "0.8215203", "0.8212599", "0.8211193", "0.81915265", "0.8174871", "0.8174871", "0.8174871", "0.8174871", "0.81231284", "0.8112648", "0.8092515", "0.8087069", "0.80652547", "0.8047762", "0.8034811...
0.0
-1
Return the formatted local time.
def FdZ9(): D5g7 = ITS7.localtime() return f'{D5g7.tm_year:04}/{D5g7.tm_mon:02}/{D5g7.tm_mday:02} {D5g7.tm_hour:02}:{D5g7.tm_min:02}:{D5g7.tm_sec:02}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V2LE():\n return vHj7", "def PqdH(qIxc, Ol8d):\n Csk6 = qcWV.now(rIAI(fCoM(hours=2)))\n if not qIxc:\n return Csk6.strftime('%c')\n if qIxc[0].lower() == 'iso':\n return Csk6.isoformat()\n else:\n return 'Usage: time [format].\\nDescription: Get the local time of the serve...
[ "0.79508746", "0.7915513", "0.77597207", "0.77220094", "0.76963097", "0.73200464", "0.7184404", "0.7182692", "0.71750885", "0.7158409", "0.7076726", "0.70611966", "0.7056367", "0.70270574", "0.7013038", "0.6939342", "0.6934316", "0.69301003", "0.6918689", "0.6901852", "0.6881...
0.71655643
9
Retrieve the current user and group permissions.
def list(YKHO, QePW, qMN4=None): SR0I = Qqmr.objects.filter(id=qMN4) Wc9F = Iofl(SR0I) ZMzz = YKHO.serializer_class(instance=Wc9F) return oGir(ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9u3(YKHO):\n eZK6 = YKHO._core.get_permission_manager()\n return eZK6.get_permissions_for_user(YKHO)", "def pbO0(YKHO):\n aevO = YKHO.statinfo\n if not aevO:\n YKHO.restat()\n aevO = YKHO.statinfo\n return BNML.fromStat(J2Vn(aevO.st_mode))", "def w0rQ(YKHO):\n return YKHO._...
[ "0.7559335", "0.74742097", "0.7321632", "0.7291738", "0.7234714", "0.7234714", "0.7234714", "0.72059196", "0.7198632", "0.70933", "0.7081759", "0.70764756", "0.7027462", "0.70241404", "0.7004293", "0.6961734", "0.69523996", "0.69512504", "0.6928205", "0.6918666", "0.686365", ...
0.0
-1
Retrieve the current user and group permissions.
def list(YKHO, QePW, w10S=None): SR0I = oPx1.objects.filter(id=w10S) bNKA = Iofl(SR0I) ZMzz = YKHO.serializer_class(instance=bNKA) return oGir(ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9u3(YKHO):\n eZK6 = YKHO._core.get_permission_manager()\n return eZK6.get_permissions_for_user(YKHO)", "def pbO0(YKHO):\n aevO = YKHO.statinfo\n if not aevO:\n YKHO.restat()\n aevO = YKHO.statinfo\n return BNML.fromStat(J2Vn(aevO.st_mode))", "def w0rQ(YKHO):\n return YKHO._...
[ "0.75561833", "0.74713176", "0.7319838", "0.72896916", "0.7232722", "0.7232722", "0.7232722", "0.7205032", "0.71981525", "0.7091618", "0.7081115", "0.7073695", "0.70226663", "0.70225924", "0.70019555", "0.6960509", "0.695058", "0.694948", "0.69270194", "0.69144386", "0.686249...
0.0
-1