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
_patch_case will update an case with the specified json payload.
def qz7i(YKHO, r6gR, ieFv): try: bVtQ = '/'.join([qk7b, str(r6gR)]) RhGk = YKHO.rest_client.get(bVtQ) Po4F = laML(RhGk) for mWFP, bGrB in ieFv.items(): if mWFP == 'properties': for vXX7, sjci in ieFv['properties'].items(): Po4F.add_valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Po4F(YKHO, r6gR):\n yk4i = QePW.json\n if not yk4i:\n tO9_ = {'error_type': 'Malformed body attributes', 'error_text': \"Can't deserialize json document\"}\n return (pz3A(tO9_), 422)\n try:\n RhGk = wCsP.update_by_id(r6gR, yk4i)\n except XsrM as e:\n tO9_ = {'error_type'...
[ "0.7818514", "0.75696635", "0.7283202", "0.68336934", "0.6568774", "0.6340034", "0.6294245", "0.6220505", "0.62141335", "0.5961668", "0.5894083", "0.58857876", "0.58499277", "0.58375347", "0.5735036", "0.5705988", "0.5691712", "0.5689214", "0.5655057", "0.5630259", "0.5596332...
0.8202444
0
Devuelve true si existe usuario asociado a ese mail
def cuzt(YKHO, oX61): SSGf = False xDcj = f"Select * from Usuarios WHERE id_telegram = '{oX61}'" vhmo = YKHO.__recuperarEnBBDD(xDcj) if len(vhmo) > 0: SSGf = True return SSGf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sSZu(CBIr: User, D3lj: str) -> bool:\n if not CBIr:\n na1r.error(f'User with email {D3lj} not found')\n return False\n na1r.info(f'User with email {D3lj} found')\n return True", "def B3o1(YKHO, D3lj):\n YKHO.cursor.execute('SELECT email FROM userdata WHERE email = ?', (D3lj,))\n ...
[ "0.7481512", "0.7405488", "0.7264831", "0.7239126", "0.72189784", "0.72082436", "0.70609504", "0.70255965", "0.6889383", "0.6864727", "0.68264663", "0.6822499", "0.68125594", "0.67944574", "0.67789054", "0.6768724", "0.6758345", "0.67542297", "0.6738003", "0.67358315", "0.670...
0.65952396
31
returns the total number of parameters used by `m` (only counting shared parameters once); if `only_trainable` is True, then only includes parameters with `requires_grad = True`
def eQ5t(r8hN: torch.nn.Module, Ccyk: bool=False): SGPK = r8hN.parameters() if Ccyk: SGPK = list((XP5J for XP5J in SGPK if XP5J.requires_grad)) kcwm = dict(((XP5J.data_ptr(), XP5J) for XP5J in SGPK)).values() return sum((XP5J.numel() for XP5J in kcwm))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQ5t(yR_P, GnzJ=True):\n SGPK = yR_P.parameters()\n if GnzJ:\n SGPK = filter(lambda XP5J: XP5J.requires_grad, SGPK)\n mLGw = sum([oyIN.prod(XP5J.size()) for XP5J in SGPK])\n return mLGw", "def mbAw(YKHO):\n return sum((xqoZ.numel() for xqoZ in YKHO.parameters() if xqoZ.requires_grad))",...
[ "0.84256595", "0.8132209", "0.80369294", "0.80186623", "0.7989372", "0.79649216", "0.78383094", "0.7822843", "0.7813002", "0.7740999", "0.7737108", "0.7734266", "0.77054626", "0.75995415", "0.7500108", "0.7500108", "0.7500108", "0.7500108", "0.7367506", "0.735493", "0.7278961...
0.8810889
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86416155", "0.8510352", "0.78545547", "0.77443707", "0.77117187", "0.7697595", "0.76603293", "0.7638324", "0.76217484", "0.7607743", "0.7607743", "0.7607743", "0.76074046", "0.75997984", "0.7585864", "0.7583017", "0.75715595", "0.75687325", "0.7539626", "0.7539626", "0.752...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Returns all paths of files given a directory path
def I92w(dZk2): xXFf = [gzes(dZk2, nUeQ) for nUeQ in U9eF(dZk2) if EFYe(gzes(dZk2, nUeQ)) and nUeQ[-2:] == 'h5'] return xXFf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QY5T(pmON):\n return [Hy7s.path.join(pmON, eHNT) for eHNT in PuZh(pmON)]", "def JMfG(pmON):\n\n def VqRE(pmON, Ux0P):\n \"\"\"\n Creates full file path with path and filename\n \"\"\"\n return pmON + VWe_ + Ux0P\n return (pmON, [VqRE(pmON, Z_ls) for Z_ls in U9eF(pmON) if ...
[ "0.8435851", "0.832063", "0.8290527", "0.82205415", "0.81954414", "0.81552076", "0.81423706", "0.81120646", "0.8070588", "0.8020534", "0.80088884", "0.80017483", "0.79987067", "0.7987502", "0.79785675", "0.7977666", "0.7974814", "0.79392284", "0.7935192", "0.7926571", "0.7919...
0.772784
45
update local model that transforms features of raw input This 'update_local_model' function serves as a handler on updating local model that transforms features of raw input into more representative features. We typically adopt neural networks as the local model, which is typically updated/trained based on stochastic g...
def eERG(YKHO, jOAb, Xa7L, vqVR, **UuR9): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HwXW(YKHO, G2lv, JL7p):\n hsW5 = oyIN.array(G2lv.get_weights())\n IxwW = oyIN.array(JL7p.get_weights())\n rhwM = 'Local and Target model parameters must have same size'\n assert len(hsW5) == len(IxwW), rhwM\n GamQ = YKHO.tau * hsW5 + (1 - YKHO.tau) * IxwW\n JL7p.set_weights(GamQ)", "def PaM...
[ "0.61876774", "0.61437833", "0.6108285", "0.61004114", "0.6081431", "0.5948546", "0.59271413", "0.5880146", "0.58314043", "0.5823209", "0.57814956", "0.5674607", "0.5620989", "0.56198424", "0.561795", "0.5606508", "0.56013244", "0.559905", "0.5584927", "0.55763036", "0.556324...
0.7019369
0
Test creating user with valid payload is successful
def RDRA(YKHO): pB3N = {'email': 'user_test@email.com', 'password': 'test_password_1234', 'name': 'Full Name'} geh0 = YKHO.client.post(YKHO.CREATE_USER_URL, pB3N) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) CBIr = egNl().objects.get(**geh0.data) YKHO.assertTrue(CBIr.check_password(pB3N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aLKA(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'testTSET1230', 'name': 'khaled osman'}\n lYUQ(**pB3N)\n Ylbp = YKHO.client.post(CKgv, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create_an_existing_user')", "def sviJ(YKHO):\n ...
[ "0.87384486", "0.8673422", "0.86301637", "0.860623", "0.8593443", "0.8581819", "0.8566508", "0.8547879", "0.8510724", "0.8509991", "0.8505808", "0.8502736", "0.84628385", "0.8458289", "0.84549356", "0.8452944", "0.8435702", "0.8419368", "0.8412287", "0.8400295", "0.8390692", ...
0.84376156
16
Test that token is not created if invalid credentials are given
def dQdX(YKHO): YKHO.create_user(email='user@email.com', password='user_password_1234') pB3N = {'email': 'user@email.com', 'password': 'wrong_pass'} geh0 = YKHO.client.post(YKHO.TOKEN_URL, pB3N) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WzbI(YKHO):\n lYUQ(email='ramon@gmail.com', password='1234password')\n pB3N = {'email': 'amila@amila.com', 'password': 'pas'}\n Ylbp = YKHO.client.post(pEkX, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def yj75(YKHO):\n lYU...
[ "0.83247954", "0.82776743", "0.82398206", "0.8230027", "0.82224756", "0.8219608", "0.8208558", "0.820763", "0.8189386", "0.81874496", "0.8146175", "0.8121068", "0.8100472", "0.80681443", "0.8050806", "0.8023598", "0.7947903", "0.78915673", "0.78781295", "0.78641796", "0.78529...
0.7853544
20
Test that token is not created if user doesn't exists
def i_2a(YKHO): pB3N = {'email': 'non_exist_user@email.com', 'password': 'non_user_password_test_1234'} geh0 = YKHO.client.post(YKHO.TOKEN_URL, pB3N) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YGLT(YKHO):\n pB3N = {'email': 'k@gmail.com', 'password': 'pass1232321PASS', 'name': 'khaled osman'}\n Ylbp = YKHO.client.post(pz0m, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n print('T-----> success test_create token for non ex...
[ "0.8187844", "0.80872893", "0.80618423", "0.79261136", "0.7839544", "0.7835082", "0.77927804", "0.77907395", "0.7778437", "0.7778281", "0.7774899", "0.7772589", "0.7768604", "0.77662784", "0.77654254", "0.77361727", "0.7728472", "0.765998", "0.76562494", "0.7564562", "0.75384...
0.78651375
4
Test that email and password required
def aAJY(YKHO): geh0 = YKHO.client.post(YKHO.TOKEN_URL, {'email': 'user@email.com', 'password': ''}) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tZDB(YKHO):\n zTiW = [{'identification': 'john@example.com', 'password': 'inhalefish'}, {'identification': 'alice@example.com', 'password': 'blowfish'}]\n for OSKk in zTiW:\n Aofo = YKHO.backend.authenticate(request=None, identification=OSKk['identification'], password=OSKk['password'])\n Y...
[ "0.80014515", "0.7825062", "0.77810895", "0.77205825", "0.7709331", "0.75790316", "0.75672626", "0.7532915", "0.7495951", "0.7471382", "0.7466858", "0.7414463", "0.7413204", "0.7412708", "0.74060285", "0.73647004", "0.7361742", "0.73592496", "0.73580855", "0.73482764", "0.734...
0.0
-1
Return the lcm of a and b. Both must be nonzero. The sign of the output is _always_ positive.
def BsJX(jzdc: int, Fg_i: int) -> int: if jzdc * Fg_i == 0: raise ValueError('Both a and b must be nonzero') jzdc = abs(jzdc) Fg_i = abs(Fg_i) return jzdc * Fg_i // ML2l(jzdc, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BsJX(jzdc: int, Fg_i: int) -> int:\n if jzdc < 0:\n jzdc = -jzdc\n if Fg_i < 0:\n Fg_i = -Fg_i\n return sOBe(jzdc, Fg_i).lcm", "def BsJX(YKHO, jzdc, Fg_i):\n return jzdc.lcm(Fg_i)", "def BsJX(YKHO, jzdc, Fg_i):\n return pEp3(jzdc, Fg_i)", "def BsJX(jzdc: int, Fg_i: int) -> in...
[ "0.9193815", "0.90671366", "0.8962752", "0.8861263", "0.8795638", "0.87899417", "0.8783648", "0.8774476", "0.874246", "0.8715041", "0.867685", "0.8671541", "0.8595362", "0.8595362", "0.85854334", "0.85645384", "0.85645384", "0.85645384", "0.85645384", "0.85645384", "0.8564538...
0.88867056
3
Remove block comments by replacing them with an empty string
def fmMq(vIwR): return ZbWC.sub('/\\*((.|\\s)*?)\\*/', '', vIwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSLV(YKHO, cSAc):\n XP5J = ZbWC.compile('/\\\\*.*?\\\\*/')\n Cxtm = XP5J.sub('', cSAc)\n return Cxtm", "def EqT2(nPrm):\n Ylbp = ZbWC.sub('(%.*\\\\n)', '', nPrm)\n Ylbp = ZbWC.sub('(comment [^\\\\n]*\\\\n)', '', Ylbp)\n return Ylbp", "def lvfG(nPrm):\n PJAs = ZbWC.compile('/\\\\*.*?\\\...
[ "0.77042145", "0.77037346", "0.73770696", "0.7057998", "0.704924", "0.7049096", "0.7017304", "0.7010671", "0.6990823", "0.6906532", "0.68742156", "0.6869156", "0.6865204", "0.68375105", "0.6786114", "0.67839473", "0.6775626", "0.67719454", "0.6765844", "0.6745042", "0.6741967...
0.7379639
2
Remove line comments by replacing them with a new line character
def QDjs(vIwR): return ZbWC.sub('//(.*?)\n', '\n', vIwR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nl0P(zFiD):\n idn_ = zFiD.find('//')\n if idn_ != -1 and (not oSf7(zFiD[:idn_])):\n zFiD = zFiD[:idn_].rstrip()\n return zARZ.sub('', zFiD)", "def bSLV(zFiD):\n GYIr = '^(\\\\s*#)'\n if ZbWC.search(GYIr, zFiD) is not None:\n return '\\n'\n else:\n Frqk = '#\\\\s*\\\\w*(...
[ "0.79113156", "0.7762543", "0.7535188", "0.75212896", "0.75069505", "0.7493724", "0.749366", "0.746931", "0.7467871", "0.74033463", "0.7369593", "0.73506534", "0.73375434", "0.73235404", "0.72981113", "0.7261052", "0.7253886", "0.7238354", "0.7232523", "0.7229129", "0.7201531...
0.7882147
1
Sign transactions in a transaction group given the indexes. Returns an array of encoded signed transactions. The length of the array will be the same as the length of indexesToSign, and each index i in the array corresponds to the signed transaction from txnGroup[indexesToSign[i]].
def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]: g88O = [] for YRbF in bS0K: t92g = aCH3[YRbF].sign(YKHO.private_key) g88O.append(t92g) return g88O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]:\n g88O: x1iM[b_Vh] = []\n for YRbF in bS0K:\n Jqz6 = Kh6j.MultisigTransaction(aCH3[YRbF], YKHO.msig)\n for Kxs4 in YKHO.sks:\n Jqz6.sign(Kxs4)\n g88O.append(Jqz6)\n return g88O", "def tCH8...
[ "0.85612565", "0.8310489", "0.6168935", "0.5803791", "0.5503229", "0.54392177", "0.53743356", "0.536944", "0.52875215", "0.5261949", "0.5242195", "0.5169251", "0.5104057", "0.5041617", "0.50363505", "0.49920303", "0.4985141", "0.49797326", "0.49620208", "0.49343714", "0.49224...
0.8586154
0
Sign transactions in a transaction group given the indexes. Returns an array of encoded signed transactions. The length of the array will be the same as the length of indexesToSign, and each index i in the array corresponds to the signed transaction from txnGroup[indexesToSign[i]].
def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]: g88O: x1iM[b_Vh] = [] for YRbF in bS0K: t92g = Kh6j.LogicSigTransaction(aCH3[YRbF], YKHO.lsig) g88O.append(t92g) return g88O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]:\n g88O = []\n for YRbF in bS0K:\n t92g = aCH3[YRbF].sign(YKHO.private_key)\n g88O.append(t92g)\n return g88O", "def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]:\n g88O:...
[ "0.85865784", "0.8561571", "0.617018", "0.5803926", "0.5503289", "0.5438897", "0.5373965", "0.53694427", "0.52883834", "0.5262149", "0.5243081", "0.5170143", "0.51047015", "0.5041292", "0.50367", "0.4993007", "0.49853173", "0.49807703", "0.4961685", "0.49345693", "0.49226835"...
0.83110625
2
Sign transactions in a transaction group given the indexes. Returns an array of encoded signed transactions. The length of the array will be the same as the length of indexesToSign, and each index i in the array corresponds to the signed transaction from txnGroup[indexesToSign[i]].
def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]: g88O: x1iM[b_Vh] = [] for YRbF in bS0K: Jqz6 = Kh6j.MultisigTransaction(aCH3[YRbF], YKHO.msig) for Kxs4 in YKHO.sks: Jqz6.sign(Kxs4) g88O.append(Jqz6) return g88O
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]:\n g88O = []\n for YRbF in bS0K:\n t92g = aCH3[YRbF].sign(YKHO.private_key)\n g88O.append(t92g)\n return g88O", "def tCH8(YKHO, aCH3: List[transaction.Transaction], bS0K: List[int]) -> x1iM[b_Vh]:\n g88O:...
[ "0.8585991", "0.83106333", "0.61707133", "0.58030164", "0.55046993", "0.5439603", "0.5375651", "0.53689474", "0.5288241", "0.5261092", "0.52445954", "0.5170936", "0.51048446", "0.50421864", "0.5036524", "0.49923167", "0.4986014", "0.49817753", "0.49625364", "0.49355227", "0.4...
0.85612196
1
Returns the status of this composer's transaction group.
def VLTN(YKHO) -> IDdx: return YKHO.status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRxN(YKHO):\n return YKHO._conn.get_transaction_status()", "def jGRS(YKHO, **B2fa):\n return YKHO.get_transaction(**B2fa)", "def jGRS(YKHO):\n kL40 = set([uOe2.status for uOe2 in YKHO.groups.all()])\n return Oa8p.OPEN if gW0c.NEW in kL40 else Oa8p.CLOSED", "def Zrxg(YKHO) -> qe4Y.Output['Mode...
[ "0.6886416", "0.675616", "0.6635988", "0.6626239", "0.65548575", "0.6504029", "0.64735883", "0.64735883", "0.64735883", "0.64735883", "0.6467795", "0.6467795", "0.64614254", "0.64364797", "0.64364797", "0.64364797", "0.64362764", "0.6409352", "0.6409352", "0.6408259", "0.6408...
0.76969445
0
Creates a new composer with the same underlying transactions. The new composer's status will be BUILDING, so additional transactions may be added to it.
def i3ak(YKHO) -> 'AtomicTransactionComposer': YFsy = Srkc() YFsy.method_dict = jth9.deepcopy(YKHO.method_dict) YFsy.txn_list = jth9.deepcopy(YKHO.txn_list) for a1PO in YFsy.txn_list: a1PO.txn.group = None YFsy.status = IDdx.BUILDING return YFsy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhgZ():\n nPrm = QePW.get_json()\n jeGQ = ['sender', 'recipient', 'amount']\n if not iGZr(jeGQ, nPrm.keys()):\n return ({'message': 'Missing values'}, 400)\n xhkC = klBj.new_transaction(nPrm['sender'], nPrm['recipient'], nPrm['amount'])\n if xhkC:\n _hkX = {'message': f'{nPrm['amou...
[ "0.56417537", "0.5445844", "0.5350967", "0.5277919", "0.52372503", "0.5226303", "0.5168982", "0.51461524", "0.5097273", "0.5087231", "0.5071401", "0.50617844", "0.50393444", "0.50378954", "0.5036549", "0.5036323", "0.5030531", "0.502965", "0.5028904", "0.5013373", "0.4991912"...
0.5858349
0
Name of rendered input element.
def mWFP(YKHO): A7od = YKHO.field.model.__class__.__name__ _sei = YKHO.field.parent._bound_pk assert _sei != '' if isinstance(_sei, exCv) or not OxJJ(_sei): Gs2B = ddrW(_sei) else: Gs2B = u'_'.join([ddrW(G1Hx) for G1Hx in _sei]) AdfU = [A7od, Gs2B, YKHO.field.name] if YKHO.fi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dvBq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input_name')", "def dvBq(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'input_name')", "def bUue(YKHO) -> KjgF:\n return KjgF(YKHO, Rc4l())", "def mWFP(YKHO):\n return YKHO.el.name.text", "def mWFP(YKHO) -> qe4Y.Input[str]:\n re...
[ "0.7623613", "0.7623613", "0.74860555", "0.7265238", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", "0.7056029", ...
0.0
-1
Return the current value for this field, either from the database or from the result of the validation, if any value was successfully parsed. This value should always look like if it came from the database model. It should be some python value (eg., datetime object). It can also come from the deserialize() function, or...
def BWXx(YKHO): return YKHO.field.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LXG0(YKHO):\n if not YKHO.field.is_readonly() and YKHO.params is not None:\n Ty9i = YKHO._serialized_value()\n else:\n Ty9i = None\n return Ty9i or YKHO._model_value_as_string()", "def OG8V(YKHO):\n Kriu = YKHO.__get_value_instance()\n if Kriu:\n if isinstance(Kriu, rnk2):...
[ "0.7837683", "0.72520447", "0.71992916", "0.7107811", "0.6952112", "0.6838003", "0.68373567", "0.6814209", "0.68030924", "0.67908263", "0.67605567", "0.6747852", "0.67391634", "0.670837", "0.6666231", "0.66439146", "0.66439146", "0.66412234", "0.66412234", "0.66401875", "0.66...
0.7020569
4
Same as `value`, except returns a list of objects instead of primary keys, when working with ForeignKeys. Use this when your `deserialize` or `render` functions manipulates ForeignKey objects; adding, removing or changing display according to their contents.
def ypOZ(YKHO): return YKHO.field.value_objects
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d7rc(YKHO, BWXx, hkS8, YEnM):\n if BWXx:\n BWXx = BWXx.id\n return super(tIo_, YKHO)._serialize(BWXx, hkS8, YEnM)", "def XEFy(YKHO, BWXx):\n if BWXx is None:\n return None\n if YKHO.is_collection:\n return [AkGB(ZfUD) for ZfUD in BWXx]\n if YKHO.is_relation:\n retur...
[ "0.68356234", "0.65321416", "0.6388569", "0.60698813", "0.6010694", "0.5959962", "0.5890955", "0.5840584", "0.57981074", "0.5792563", "0.5782351", "0.57299596", "0.572645", "0.5721409", "0.56869507", "0.5659594", "0.5659594", "0.56206536", "0.55972517", "0.5586839", "0.557081...
0.5638106
17
Creates a dataframe containing the project ids and the members matched to that project
def YQci(ohVQ, w2B8): if w2B8.is_connected(): N1p7 = w2B8.cursor() for rdlD in ohVQ.index: Pe9W = 'INSERT INTO Team(ProjectId, ProjectName, MemberId, MemberName)VALUES(%s,%s,%s,%s);' N1p7.execute(Pe9W, (str(ohVQ.loc[rdlD, 'ProjectId']), str(ohVQ.loc[rdlD, 'ProjectName']), str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aq7q(nPrm):\n ZWCE = nPrm['gh_project_name'].unique()\n return rLdf.DataFrame({'gh_project_name': ZWCE})", "def VzM8(YKHO, pgYI):\n XbWl = []\n for rdlD in pgYI.itertuples():\n bNKA = ZJNt()\n bNKA.id = rdlD.id\n bNKA.atlas_id = rdlD.atlas_id\n bNKA.name = rdlD.name\n ...
[ "0.6297622", "0.5835355", "0.5457246", "0.54538697", "0.5415532", "0.5408592", "0.5394724", "0.53517836", "0.53311574", "0.53145486", "0.53117967", "0.531025", "0.5308744", "0.527265", "0.52427775", "0.5220839", "0.5219658", "0.5201151", "0.5187825", "0.5167866", "0.51443785"...
0.0
-1
Calculate the alphabet ratio of a word.
def nLFs(GIN8): mLGw = 0 for hcXw in GIN8: if hcXw >= 'a' and hcXw <= 'z': mLGw += 1 return float(mLGw) / len(GIN8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K2bd(GIN8):\n if not GIN8:\n return 0\n beGZ = TWfo(GIN8)\n return CyTW(GIN8) / beGZ if beGZ else 0", "def _zk7(YKHO, l5Ny):\n try:\n HML0 = float(YKHO.letter_count(l5Ny) / YKHO.lexicon_count(l5Ny))\n return YKHO.legacy_round(HML0, 4)\n except ZeroDivisionError:\n r...
[ "0.83861226", "0.77023137", "0.71109426", "0.6968077", "0.68613154", "0.6814699", "0.68065727", "0.68065727", "0.67941284", "0.6755743", "0.6737435", "0.6734461", "0.67271954", "0.6723834", "0.6712165", "0.66771775", "0.6660013", "0.66360176", "0.6617535", "0.65685403", "0.65...
0.8804513
0
Init the User Interface.
def MG5I(YKHO): YKHO.ver_layout = x5x0.QVBoxLayout() YKHO.label = x5x0.QLabel() YKHO.checkbox = x5x0.QCheckBox('Show/Hide') YKHO.checkbox.setChecked(False) YKHO.ver_layout.addWidget(YKHO.label) YKHO.ver_layout.addWidget(YKHO.checkbox) YKHO.ver_layout.setSpacing(0) YKHO.ver_layout.setCont...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgV(YKHO):\n YKHO.setGeometry(50, 50, 250, 420)\n YKHO.setWindowTitle('2.1 - User Profile GUI')\n YKHO.displayImages()\n YKHO.displayUserInfo()\n YKHO.show()", "def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().sho...
[ "0.8322974", "0.8289559", "0.8074662", "0.80044013", "0.7918988", "0.78692836", "0.78445613", "0.77894527", "0.7709111", "0.76990783", "0.7690642", "0.76792204", "0.7667849", "0.76540685", "0.7637561", "0.7605279", "0.7520254", "0.7503543", "0.74668115", "0.7383934", "0.73432...
0.7000434
60
Init the User Interface.
def MG5I(YKHO, *qIxc, **B2fa): YKHO.hor_layout = x5x0.QHBoxLayout() YKHO.slider = x5x0.QSlider(uaAZ.Horizontal) YKHO.slider.setMinimum(0) YKHO.slider.setMaximum(100) YKHO.spinbox = LEEC(parent=None, value=0.0, **B2fa) YKHO.hor_layout.addWidget(YKHO.slider) YKHO.hor_layout.addWidget(YKHO.spin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgV(YKHO):\n YKHO.setGeometry(50, 50, 250, 420)\n YKHO.setWindowTitle('2.1 - User Profile GUI')\n YKHO.displayImages()\n YKHO.displayUserInfo()\n YKHO.show()", "def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().sho...
[ "0.8322974", "0.8289559", "0.8074662", "0.80044013", "0.7918988", "0.78692836", "0.78445613", "0.77894527", "0.7709111", "0.76990783", "0.7690642", "0.76792204", "0.7667849", "0.76540685", "0.7637561", "0.7605279", "0.7520254", "0.7503543", "0.74668115", "0.7383934", "0.73432...
0.0
-1
Init the User Interface.
def MG5I(YKHO): YKHO.hor_layout = x5x0.QHBoxLayout() YKHO.combo = x5x0.QComboBox() YKHO.combo.addItems(YKHO.items) YKHO.add_pb = x5x0.QPushButton() YKHO.add_pb.setText('') LrjP = CsJA.QIcon() LrjP.addPixmap(CsJA.QPixmap(':/icons/Icon_Library/Add2.png'), CsJA.QIcon.Normal, CsJA.QIcon.Off) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgV(YKHO):\n YKHO.setGeometry(50, 50, 250, 420)\n YKHO.setWindowTitle('2.1 - User Profile GUI')\n YKHO.displayImages()\n YKHO.displayUserInfo()\n YKHO.show()", "def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().sho...
[ "0.8322974", "0.8289559", "0.8074662", "0.80044013", "0.7918988", "0.78692836", "0.78445613", "0.77894527", "0.7709111", "0.76990783", "0.7690642", "0.76792204", "0.7667849", "0.76540685", "0.7637561", "0.7605279", "0.7520254", "0.7503543", "0.74668115", "0.7383934", "0.73432...
0.0
-1
Get the dictionnary of values contained in the QtWidget attribute. Returns dictionnary The dictionnary of all_items compared to the slelectedItems.
def Zmkp(YKHO): ZyLU = [ZfUD.text() for ZfUD in YKHO.selectedItems()] jQdN = [ZfUD.text() for ZfUD in YKHO.all_items()] return dict(all_items=jQdN, selected=ZyLU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aunT(YKHO):\n wX_w = {}\n for inGW in YKHO.widget_list:\n for H5ew, Fyhp in inGW.items():\n if isinstance(Fyhp.value, bool):\n if Fyhp.value:\n PZB5 = 'true'\n else:\n PZB5 = 'false'\n else:\n ...
[ "0.62390965", "0.57109314", "0.5535188", "0.5535188", "0.5535188", "0.5483822", "0.5470034", "0.54254824", "0.54250866", "0.54219335", "0.53949827", "0.53774834", "0.5353226", "0.5319731", "0.5304055", "0.5297969", "0.5282671", "0.527529", "0.5265727", "0.5265727", "0.5263034...
0.55883664
2
Init the User Interface.
def MG5I(YKHO): YKHO.hor_layout = x5x0.QHBoxLayout() YKHO.base_path_edit = x5x0.QPlainTextEdit(str(YKHO.path)) YKHO.base_path_edit.setMaximumHeight(50) YKHO.base_path_edit.setReadOnly(True) YKHO.base_path_browse_pb = x5x0.QPushButton() YKHO.base_path_browse_pb.setText('') LrjP = CsJA.QIcon()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgV(YKHO):\n YKHO.setGeometry(50, 50, 250, 420)\n YKHO.setWindowTitle('2.1 - User Profile GUI')\n YKHO.displayImages()\n YKHO.displayUserInfo()\n YKHO.show()", "def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().sho...
[ "0.8322974", "0.8289559", "0.8074662", "0.80044013", "0.7918988", "0.78692836", "0.78445613", "0.77894527", "0.7709111", "0.76990783", "0.7690642", "0.76792204", "0.7667849", "0.76540685", "0.7637561", "0.7605279", "0.7520254", "0.7503543", "0.74668115", "0.7383934", "0.73432...
0.0
-1
Init the User Interface.
def MG5I(YKHO): YKHO.hor_layout = x5x0.QHBoxLayout() YKHO.text_edit = x5x0.QPlainTextEdit() YKHO.text_edit.setReadOnly(True) YKHO.text_edit.setMaximumHeight(50) YKHO.add_pb = x5x0.QPushButton() YKHO.add_pb.setText('') LrjP = CsJA.QIcon() LrjP.addPixmap(CsJA.QPixmap(':/icons/Icon_Library/...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def edgV(YKHO):\n YKHO.setGeometry(50, 50, 250, 420)\n YKHO.setWindowTitle('2.1 - User Profile GUI')\n YKHO.displayImages()\n YKHO.displayUserInfo()\n YKHO.show()", "def MG5I(YKHO):\n YKHO.setFixedSize(600, 300)\n YKHO.centre()\n YKHO.setWindowTitle('UBCCrawler')\n YKHO.statusBar().sho...
[ "0.8322974", "0.8289559", "0.8074662", "0.80044013", "0.7918988", "0.78692836", "0.78445613", "0.77894527", "0.7709111", "0.76990783", "0.7690642", "0.76792204", "0.7667849", "0.76540685", "0.7637561", "0.7605279", "0.7520254", "0.7503543", "0.74668115", "0.7383934", "0.73432...
0.0
-1
Return a list of Request objects.
def list(Emd4, QpfX, qoqK=None, _5yy=None, gpXh=None, G852=None, KUnM=None): Vz2l = Emd4.dbapi.get_request_list(QpfX, limit=qoqK, marker=_5yy, sort_key=gpXh, sort_dir=G852, filters=KUnM) return VNUm._from_db_object_list(Vz2l, Emd4, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xCU0():\n return ouvA().query(VNUm).all()", "def list(YKHO, **B2fa):\n qv1X = VNUm(**YKHO.request_kwargs).get(add_params=B2fa)\n if YKHO.custom_return:\n return [YKHO.custom_return(YRbF, YKHO.parent_obj.endpoint.api, YKHO.parent_obj.endpoint) for YRbF in qv1X]\n return qv1X", "def _lv4(Y...
[ "0.7396126", "0.7226539", "0.71432847", "0.7112072", "0.7066914", "0.69635737", "0.69443536", "0.6854927", "0.6733149", "0.6673215", "0.66422814", "0.6597131", "0.6593265", "0.6550838", "0.6539995", "0.6539995", "0.6539995", "0.6539995", "0.6539995", "0.6530352", "0.6509655",...
0.69537425
6
Gets the username of this RequestUser.
def NtEF(YKHO) -> str: return YKHO._username
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fiXC(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_username()", "def fiXC(YKHO):\n return getattr(YKHO, YKHO.USERNAME_FIELD)", "def NtEF(YKHO):\n return YKHO.user.username", "def NtEF(YKHO):\n return YKHO.user.username", "def fiXC(YKHO):\n return YKHO.username", "...
[ "0.8611386", "0.824216", "0.822038", "0.822038", "0.81854105", "0.8183681", "0.81631374", "0.8150903", "0.8123865", "0.81117874", "0.80877006", "0.80553854", "0.80486214", "0.8047933", "0.80280423", "0.80280423", "0.80280423", "0.80280423", "0.80280423", "0.80280423", "0.8028...
0.81176525
9
Gets the plain_password of this RequestUser.
def M56W(YKHO) -> str: return YKHO._plain_password
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hNw5(YKHO):\n hNw5 = YKHO._authenticated_user_request(api_url='/api/security/encryptedPassword', request_type=YKHO._session.get)\n return hNw5", "def AuKh(YKHO):\n return YKHO.decoded_password", "def Oot7(YKHO):\n return YKHO._user_password_attribute", "def AuKh(YKHO):\n return YKHO.passwo...
[ "0.77025336", "0.7519791", "0.7331791", "0.7238251", "0.7221934", "0.72134155", "0.7188017", "0.7171881", "0.71128446", "0.70716196", "0.70716196", "0.70716196", "0.706939", "0.7052051", "0.7024496", "0.70202786", "0.7012072", "0.69433063", "0.6940142", "0.68850726", "0.68639...
0.8249222
0
Sets the plain_password of this RequestUser.
def M56W(YKHO, M56W: str): if M56W is None: raise ValueError('Invalid value for `plain_password`, must not be `None`') YKHO._plain_password = M56W
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3s8(YKHO, Ud05):\n super(mv1M, YKHO).set_password(Ud05)", "def M56W(YKHO) -> str:\n return YKHO._plain_password", "def G3s8(YKHO, Ud05):\n YKHO.password = Mi51.generate_password_hash(Ud05, length=12)", "def G3s8(YKHO, Ud05):\n YKHO.password = Mi51.generate_password_hash(Ud05, length=12)", ...
[ "0.67064464", "0.6690931", "0.6659352", "0.6659352", "0.66140115", "0.6589572", "0.6589572", "0.6555992", "0.64159536", "0.64146775", "0.6352945", "0.6351354", "0.6336", "0.6332078", "0.62605846", "0.6247826", "0.6246666", "0.6217155", "0.6215215", "0.6215215", "0.6213188", ...
0.8196149
0
Gets the email of this RequestUser.
def D3lj(YKHO) -> str: return YKHO._email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()", "def D3lj(YKHO):\n return YKHO.user.email if YKHO.user else YKHO._email", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def cHyp(YKHO) -> str:\n return qe4Y.get(YKHO, 'user_email')", "def D...
[ "0.87676346", "0.85199875", "0.8339103", "0.8339103", "0.83355254", "0.83155274", "0.82726437", "0.8209923", "0.81993866", "0.8126569", "0.8126569", "0.8126569", "0.80674714", "0.79953444", "0.79926246", "0.7986591", "0.7986591", "0.7986591", "0.7914076", "0.7896432", "0.7876...
0.7478228
60
Sets the email of this RequestUser.
def D3lj(YKHO, D3lj: str): if D3lj is None: raise ValueError('Invalid value for `email`, must not be `None`') YKHO._email = D3lj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def srEc(YKHO, D3lj=''):\n YKHO._email = D3lj", "def srEc(YKHO, D3lj):\n YKHO.email = D3lj", "def lEeL(YKHO, D3lj):\n YKHO.__email = D3lj", "def lEeL(YKHO, D3lj: str):\n YKHO.__email = D3lj\n return YKHO", "def D3lj(YKHO, BWXx):\n if xs3G.validate_email(BWXx) is True:\n YKHO._updat...
[ "0.77500594", "0.7701172", "0.7667748", "0.7662927", "0.7461605", "0.74468017", "0.74468017", "0.74394727", "0.73732936", "0.7284973", "0.7284973", "0.7281468", "0.72261006", "0.72261006", "0.72261006", "0.72261006", "0.72261006", "0.7217", "0.7217", "0.7217", "0.7217", "0....
0.7054624
48
Gets the first_name of this RequestUser.
def c9ua(YKHO) -> str: return YKHO._first_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9ua(YKHO):\n return YKHO.user.first_name", "def c9ua(YKHO):\n return YKHO.user.first_name", "def fz1W(YKHO):\n return YKHO._first_name", "def fz1W(YKHO) -> str:\n return YKHO.first_name", "def c9ua(YKHO, KAOR):\n return KAOR.user.first_name", "def c9ua(YKHO):\n return YKHO._first_n...
[ "0.891336", "0.891336", "0.87564445", "0.86617446", "0.86064243", "0.8580127", "0.8580127", "0.8580127", "0.8580127", "0.8580127", "0.8580127", "0.8580127", "0.8562368", "0.85577685", "0.8524317", "0.8509815", "0.84948415", "0.8403752", "0.83429945", "0.8321782", "0.82868356"...
0.8521549
15
Gets the last_name of this RequestUser.
def zp3f(YKHO) -> str: return YKHO._last_name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zp3f(YKHO):\n return YKHO.user.last_name", "def zp3f(YKHO):\n return YKHO.user.last_name", "def CCKR(YKHO) -> str:\n return YKHO.last_name", "def CCKR(YKHO):\n return YKHO._last_name", "def CCKR(YKHO):\n return YKHO._last_name", "def zp3f(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_...
[ "0.8803082", "0.8803082", "0.8568014", "0.8549258", "0.8522813", "0.84684205", "0.8460629", "0.8409563", "0.8375459", "0.8375459", "0.8375459", "0.8375459", "0.8375459", "0.8375459", "0.8375459", "0.8370008", "0.8326285", "0.82994866", "0.82890046", "0.8213199", "0.81942576",...
0.8372096
15
Calculate beta for a given susceptible node based on T and a susceptibility value for the susceptible node. Susceptibility values range from 0 (not susceptible at all) to 1 (completely susceptible). Susceptibility values are assigned by age class. This calculation operates under the assumption that T = infectivity susc...
def f7lX(Kt_s, KMvS, N63E, DEzW, suzl): b8V_(f7lX) X0JK = Kt_s * suzl[DEzW[N63E]] hvip = -X0JK * KMvS / (X0JK - 1) return hvip
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UqYS(ywwl):\n vC9B = 0.01\n Aofo = vC9B\n return Aofo", "def yD0E(YKHO, Oa1e):\n if Oa1e.dim == YKHO._Nd:\n return YKHO.rock.BULK_MODULUS * 3 * YKHO.rock.THERMAL_EXPANSION\n else:\n X73w = YKHO.gb.node_props(Oa1e)[_oWe.STATE][_oWe.ITERATE]\n RTOE = X73w[YKHO.temperature_va...
[ "0.64049387", "0.62677395", "0.6186198", "0.6147913", "0.60884887", "0.6063805", "0.5942159", "0.59198636", "0.59147793", "0.5886597", "0.586551", "0.5859981", "0.58415", "0.5832386", "0.58081305", "0.5795363", "0.5789802", "0.5767989", "0.5756547", "0.5707732", "0.5688048", ...
0.7836222
0
Clone(itkBruker2dseqImageIO self) > itkBruker2dseqImageIO_Pointer
def B29l(YKHO) -> 'itkBruker2dseqImageIO_Pointer': return _Xy3.itkBruker2dseqImageIO_Clone(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B29l(YKHO) -> 'itkBinaryReconstructionByDilationImageFilterIUC2_Pointer':\n return cm8v.itkBinaryReconstructionByDilationImageFilterIUC2_Clone(YKHO)", "def B29l(YKHO) -> 'itkBinaryReconstructionByDilationImageFilterISS2_Pointer':\n return cm8v.itkBinaryReconstructionByDilationImageFilterISS2_Clone(YKHO...
[ "0.7782387", "0.76934236", "0.7680724", "0.7640666", "0.76085943", "0.7574543", "0.75383824", "0.75036085", "0.74997395", "0.7498157", "0.74944264", "0.74481994", "0.7448085", "0.74455136", "0.7443887", "0.7440668", "0.74309844", "0.74274576", "0.74263155", "0.7416399", "0.74...
0.91536075
0
cast(itkLightObject obj) > itkBruker2dseqImageIO
def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *': return _Xy3.itkBruker2dseqImageIO_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vbHi(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n return _Xy3.itkBruker2dseqImageIO_cast(YEnM)", "def _6EG(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *':\n return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory...
[ "0.87389916", "0.79480374", "0.79037374", "0.7155659", "0.707276", "0.7020682", "0.7017511", "0.7005926", "0.69884455", "0.69591343", "0.69511545", "0.6934518", "0.6915261", "0.6905702", "0.6879326", "0.687165", "0.6868206", "0.6865966", "0.68652594", "0.68596214", "0.6849332...
0.86380315
1
New() > itkBruker2dseqImageIO Create a new object of the class itkBruker2dseqImageIO and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the first input, et...
def oW_4(*qIxc, **PECO): YEnM = M4ga.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = A38l.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = E8rh.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.77255636", "0.6913803", "0.6851618", "0.6817112", "0.680157", "0.67830074", "0.6782741", "0.67737705", "0.6760132", "0.67499995", "0.6747614", "0.6736373", "0.6734119", "0.67216253", "0.67165256", "0.6709985", "0.6706058", "0.67049736", "0.6697091", "0.6695987", "0.6684034...
0.7810267
0
itkBruker2dseqImageIO_cast(itkLightObject obj) > itkBruker2dseqImageIO
def vbHi(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *': return _Xy3.itkBruker2dseqImageIO_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n return _Xy3.itkBruker2dseqImageIO_cast(YEnM)", "def _6EG(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *':\n return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory...
[ "0.9049399", "0.83709824", "0.82417", "0.7455234", "0.7367076", "0.7362448", "0.7358246", "0.73505634", "0.732293", "0.7321926", "0.72865146", "0.7261912", "0.72611374", "0.7229864", "0.722268", "0.7183722", "0.7177832", "0.7153792", "0.71506494", "0.7090887", "0.707946", "...
0.9253847
0
cast(itkLightObject obj) > itkBruker2dseqImageIOFactory
def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *': return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _6EG(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *':\n return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)", "def vbHi(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n return _Xy3.itkBruker2dseqImageIO_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n ...
[ "0.8985096", "0.8496942", "0.84398973", "0.7789924", "0.76616347", "0.7203334", "0.71897095", "0.71881187", "0.7156814", "0.71009195", "0.70981264", "0.7097511", "0.70951736", "0.70651186", "0.7064907", "0.70605266", "0.704837", "0.7028497", "0.7014933", "0.70144594", "0.7009...
0.89065874
1
New() > itkBruker2dseqImageIOFactory Create a new object of the class itkBruker2dseqImageIOFactory and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the f...
def oW_4(*qIxc, **PECO): YEnM = A38l.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = M4ga.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\n YEnM = _a28.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def oW_4(*qIxc, **PECO):\...
[ "0.7459986", "0.68759185", "0.686843", "0.68575555", "0.68566275", "0.68539745", "0.68398213", "0.6819389", "0.6804817", "0.6797606", "0.67793417", "0.677424", "0.6771521", "0.6759366", "0.67473173", "0.6744288", "0.67429197", "0.6736384", "0.67352027", "0.67179435", "0.67160...
0.7855029
0
itkBruker2dseqImageIOFactory_cast(itkLightObject obj) > itkBruker2dseqImageIOFactory
def _6EG(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *': return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIOFactory *':\n return _Xy3.itkBruker2dseqImageIOFactory_cast(YEnM)", "def vbHi(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n return _Xy3.itkBruker2dseqImageIO_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObject') -> 'itkBruker2dseqImageIO *':\n ...
[ "0.9146149", "0.8635578", "0.84394217", "0.7828815", "0.7815089", "0.72851264", "0.727672", "0.71656513", "0.7162486", "0.71357393", "0.7123933", "0.71167064", "0.7088293", "0.7079478", "0.70777196", "0.7074261", "0.70660204", "0.7054652", "0.70528764", "0.70524305", "0.70515...
0.9414464
0
Getter method for interface_type, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/interface_type (enumeration)
def JHZ4(YKHO): return YKHO.__interface_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChYv(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'port-channel': {'value': 5}, u'loopback': {'value': 7}, u'fortygigabitethernet': {'value': 4}, u'unknow...
[ "0.75541174", "0.7324812", "0.72771305", "0.6528367", "0.64974296", "0.6012633", "0.5986438", "0.5329485", "0.5184767", "0.51711005", "0.5140775", "0.5100656", "0.5091799", "0.5091799", "0.5091799", "0.5091799", "0.4974199", "0.49501628", "0.4937386", "0.4911347", "0.4911347"...
0.6034878
6
Setter method for interface_type, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/interface_type (enumeration)
def ChYv(YKHO, Ty9i, tyeH=False): _AKB = getattr(YKHO, '_parent', None) if _AKB is not None and tyeH is False: raise AttributeError('Cannot set keys directly when' + ' within an instantiated list') if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ChYv(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'port-channel': {'value': 5}, u'loopback': {'value': 7}, u'fortygigabitethernet': {'value': 4}, u'unknow...
[ "0.7804378", "0.75984365", "0.61067325", "0.5957513", "0.57570094", "0.57140476", "0.5574606", "0.5574606", "0.5574606", "0.5501207", "0.53565526", "0.53565526", "0.5335287", "0.52750206", "0.52584743", "0.52584743", "0.52584743", "0.52584743", "0.5244771", "0.5244771", "0.52...
0.7562386
2
Setter method for interface_name, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/interface_name (union)
def DoWc(YKHO, Ty9i, tyeH=False): _AKB = getattr(YKHO, '_parent', None) if _AKB is not None and tyeH is False: raise AttributeError('Cannot set keys directly when' + ' within an instantiated list') if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DoWc(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=[ukQ0(base_type=QMSQ, restriction_dict={'pattern': u'((([1-9]|[1-9][0-9]|1[0-9][0-9]|2[0-3][0-9])/)?(([0-9]|[1][0-6]))/([1-9]|[1-9][0-9]|[1-9][0-9][0-9])(:[1-4])?)', 'lengt...
[ "0.80137634", "0.7710874", "0.6962136", "0.6385905", "0.63485396", "0.62975353", "0.62579566", "0.6059026", "0.59549385", "0.59549385", "0.59549385", "0.58549404", "0.5802475", "0.57998604", "0.5776282", "0.5775159", "0.5604673", "0.55974483", "0.55974483", "0.55719763", "0.5...
0.77921295
1
Setter method for if_name, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/if_name (string)
def FzUN(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='if-name', rest_name='if-name', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=False, namespace='urn:brocade.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DoWc(YKHO, Ty9i, tyeH=False):\n _AKB = getattr(YKHO, '_parent', None)\n if _AKB is not None and tyeH is False:\n raise AttributeError('Cannot set keys directly when' + ' within an instantiated list')\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(...
[ "0.68261766", "0.6753133", "0.6709225", "0.641651", "0.63498515", "0.6207305", "0.61773676", "0.6075014", "0.6066425", "0.58679134", "0.5704614", "0.56943583", "0.5666929", "0.56098676", "0.56095076", "0.55414915", "0.55218023", "0.55088794", "0.5485745", "0.5463642", "0.5426...
0.8164767
0
Setter method for if_description, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/if_description (string)
def W0GR(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='if-description', rest_name='if-description', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=False, namespace=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zs2o(YKHO):\n return YKHO.__if_description", "def CK_S(YKHO, Q6kx, jEa8, JBZA):\n assert YKHO.is_router(Q6kx)\n ygBj = YKHO.get_ifaces(Q6kx)\n XObx = \"Undefined iface '%s' in %s\" % (jEa8, ygBj.keys())\n assert jEa8 in ygBj, XObx\n ygBj[jEa8]['description'] = JBZA", "def JBZA(YKHO, BWXx:...
[ "0.6961156", "0.6060768", "0.5824795", "0.5822902", "0.55912685", "0.55912685", "0.55912685", "0.5587002", "0.55790496", "0.55790496", "0.55790496", "0.55790496", "0.53713655", "0.53713655", "0.53596616", "0.53596616", "0.5319999", "0.5299409", "0.5279379", "0.52117866", "0.5...
0.8500069
0
Getter method for actual_line_speed, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/actual_line_speed (string)
def e2zn(YKHO): return YKHO.__actual_line_speed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nxcm(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='actual-line-speed', rest_name='actual-line-speed', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=Fa...
[ "0.7826434", "0.6559603", "0.6271007", "0.6259923", "0.547409", "0.547409", "0.5380197", "0.5375463", "0.52488536", "0.5234484", "0.5219773", "0.52106524", "0.52083296", "0.51848215", "0.51742595", "0.51742595", "0.51678765", "0.5135079", "0.51241165", "0.5114438", "0.5106476...
0.7288646
1
Setter method for actual_line_speed, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/actual_line_speed (string)
def Nxcm(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=QMSQ, is_leaf=True, yang_name='actual-line-speed', rest_name='actual-line-speed', parent=YKHO, path_helper=YKHO._path_helper, extmethods=YKHO._extmethods, register_paths=False, name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e2zn(YKHO):\n return YKHO.__actual_line_speed", "def zUcn(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'8Gbps': {'value': 9}, u'nil': {'value': 1}, u...
[ "0.71895224", "0.69785315", "0.6237259", "0.57592016", "0.569147", "0.5637412", "0.56131935", "0.555205", "0.543722", "0.53998846", "0.5396458", "0.5336185", "0.5307962", "0.5307573", "0.53049225", "0.5303382", "0.5303382", "0.5298937", "0.52975994", "0.528981", "0.52857256",...
0.86483747
0
Getter method for flow_control, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/flow_control (enumeration)
def n0AK(YKHO): return YKHO.__flow_control
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ckgn(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'received': {'value': 0}, u'transmitted': {'value': 1}}), is_leaf=True, yang_name='flow-control', rest_n...
[ "0.7366345", "0.5315047", "0.5292484", "0.5156153", "0.4737573", "0.47222787", "0.46413186", "0.46287116", "0.46144888", "0.45980406", "0.45980248", "0.45895153", "0.45621878", "0.4559637", "0.4553372", "0.45487076", "0.45370415", "0.4533403", "0.45012775", "0.44936314", "0.4...
0.54223657
1
Getter method for queuing_strategy, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/queuing_strategy (enumeration)
def Le4G(YKHO): return YKHO.__queuing_strategy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BPMl(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'fifo': {'value': 1}}), is_leaf=True, yang_name='queuing-strategy', rest_name='queuing-strategy', parent...
[ "0.7600565", "0.5774868", "0.5331589", "0.52273864", "0.51355964", "0.51355964", "0.51355964", "0.51355964", "0.51355964", "0.51355964", "0.5078424", "0.5047365", "0.49588993", "0.49532828", "0.49485967", "0.49457762", "0.49264687", "0.48880476", "0.48812976", "0.48007792", "...
0.6456705
1
Setter method for queuing_strategy, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/queuing_strategy (enumeration)
def BPMl(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'fifo': {'value': 1}}), is_leaf=True, yang_name='queuing-strategy', rest_name='queuing-strategy', parent=YKHO, pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Le4G(YKHO):\n return YKHO.__queuing_strategy", "def NmkF(YKHO) -> 'QueuingConfiguration':\n return laHg.cast('QueuingConfiguration', YKHO._properties.get('queuing'))", "def NmkF(YKHO, BWXx: typing.Union['QueuingConfiguration', dict]):\n if isinstance(BWXx, dict):\n BWXx = laHg.cast(FctO, Fc...
[ "0.6551899", "0.61261696", "0.60449517", "0.52530694", "0.52507114", "0.5240118", "0.52382904", "0.51835996", "0.5172551", "0.5167456", "0.51590437", "0.51564234", "0.5122287", "0.51209325", "0.5096619", "0.50900304", "0.506435", "0.50551915", "0.5029037", "0.5024706", "0.501...
0.8076336
0
Getter method for port_role, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/port_role (enumeration)
def GPS1(YKHO): return YKHO.__port_role
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dz0B(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'edge': {'value': 2}, u'isl': {'value': 1}}), is_leaf=True, yang_name='port-role', rest_name='port-role'...
[ "0.7619649", "0.62722695", "0.62722695", "0.60899353", "0.60749507", "0.60749507", "0.6074059", "0.6074059", "0.6074059", "0.6074059", "0.6074059", "0.6074059", "0.59905356", "0.59905356", "0.59905356", "0.59905356", "0.59905356", "0.59905356", "0.56657887", "0.5608239", "0.5...
0.69480467
1
Setter method for port_role, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/port_role (enumeration)
def dz0B(YKHO, Ty9i, tyeH=False): if hasattr(Ty9i, '_utype'): Ty9i = Ty9i._utype(Ty9i) try: a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'edge': {'value': 2}, u'isl': {'value': 1}}), is_leaf=True, yang_name='port-role', rest_name='port-role', parent=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GPS1(YKHO):\n return YKHO.__port_role", "def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise AttributeError(\"missing required field 'role'\")", "def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise Attr...
[ "0.6610227", "0.6001081", "0.6001081", "0.57155687", "0.57155687", "0.5659568", "0.5659568", "0.5659568", "0.5659568", "0.5659568", "0.5659568", "0.565276", "0.565276", "0.565276", "0.565276", "0.565276", "0.565276", "0.564717", "0.5541911", "0.54833174", "0.54474723", "0.5...
0.81531155
0
Getter method for port_mode, mapped from YANG variable /brocade_interface_ext_rpc/get_interface_detail/output/interface/port_mode (enumeration)
def _kJB(YKHO): return YKHO.__port_mode
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y_6A(YKHO, Ty9i, tyeH=False):\n if hasattr(Ty9i, '_utype'):\n Ty9i = Ty9i._utype(Ty9i)\n try:\n a1PO = ltgX(Ty9i, base=ukQ0(base_type=QMSQ, restriction_type='dict_key', restriction_arg={u'unknown': {'value': 0}, u'l2': {'value': 2}, u'l3': {'value': 1}, u'mirror': {'value': 3}}), is_leaf=Tr...
[ "0.77267236", "0.71926546", "0.60394275", "0.599495", "0.5689779", "0.55634063", "0.55578136", "0.5511143", "0.54505616", "0.54440856", "0.5379206", "0.5373164", "0.5358101", "0.5341477", "0.53381646", "0.5335454", "0.5327585", "0.532591", "0.5324545", "0.5320143", "0.5319745...
0.7132071
2
Return timedelta since running start_timing Only the first call to stop_and_pop_timing will return a timedelta; subsequent calls will return None until the next time start_timing is called. This helps avoid doublerecording timings (for example when a task is retried).
def MYwy(YKHO): o1fw = wyyA.get(YKHO._cache_key) if o1fw is None: raise HlLJ() wyyA.delete(YKHO._cache_key) return qcWV.datetime.utcnow() - o1fw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WbTE(YKHO):\n if YKHO.time_start is None or YKHO.time_stop is None:\n return None\n return YKHO.time_stop - YKHO.time_start", "def JRmW(YKHO):\n if YKHO.start_time is not None:\n if YKHO.stop_time is not None:\n return YKHO.stop_time - YKHO.start_time\n return ITS7.ti...
[ "0.6782441", "0.67605615", "0.6753211", "0.6648191", "0.6648191", "0.6638467", "0.6638467", "0.66187423", "0.6568761", "0.6562563", "0.6515636", "0.6506808", "0.64966315", "0.6492264", "0.6393603", "0.6373167", "0.6368174", "0.63646287", "0.63601345", "0.6359893", "0.62832", ...
0.64668375
14
Add a visual. This method should be called in `self.initialize`. A visual is an instanciation of a `Visual`. A Visual defines a pattern for one, or a homogeneous set of plotting objects.
def rbIp(YKHO, XrcI, *qIxc, **B2fa): YKHO.scene_creator.add_visual(XrcI, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvEx(YKHO, BvEx):\n YKHO._visual = BvEx", "def YJnK(YKHO, mWFP, H5on):\n if mWFP in YKHO._visualizations:\n raise Exception('Unable to add visualization: visualization named {} already exist.'.format(mWFP))\n YKHO._visualizations[mWFP] = H5on", "def kWdA(YKHO, BvEx):\n raise NotImplement...
[ "0.700434", "0.69479495", "0.6630169", "0.650087", "0.6479547", "0.6159075", "0.60737544", "0.5866279", "0.58637506", "0.580332", "0.57694316", "0.57640356", "0.57502675", "0.57325727", "0.57172394", "0.57151455", "0.57065564", "0.56781936", "0.566419", "0.56530935", "0.55898...
0.83472294
0
Takes an NumPy objects and calculate mean rounded up to 2 decimal places. Uses NumPy.
def a47U(p891): return oyIN.around(oyIN.mean(p891), 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pueu(ezWE):\n return ezWE.mean()", "def nC2r(nPrm: []) -> float:\n try:\n return round(sum(nPrm) / len(nPrm), 2)\n except ZeroDivisionError:\n return 0.0", "def JBMS(mJLf):\n import numpy as oyIN\n return oyIN.mean(mJLf)", "def sSLT(ezWE):\n return Pusg(AdrB, ezWE) ** (1.0...
[ "0.74240214", "0.71423835", "0.7127189", "0.7119404", "0.7076041", "0.70754385", "0.7048772", "0.70354176", "0.70154786", "0.6961629", "0.6955609", "0.6924931", "0.69063145", "0.6896544", "0.6882948", "0.6830472", "0.68145275", "0.6796488", "0.67599565", "0.67599565", "0.6747...
0.7820069
0
Removes \n from beginning and end of string. All Whitespace is removed as well, except for whitespace directly preceding the text
def xThC(Wxnj): yKcO = 0 for YRbF, Z9rn in enumerate(Wxnj): if Z9rn == '\n': yKcO = YRbF + 1 if not (Z9rn == ' ' or Z9rn == '\t' or Z9rn == '\n'): break YRbF = len(Wxnj) - 1 while YRbF > 0 and VgeL(Wxnj[YRbF]): YRbF -= 1 return Wxnj[yKcO:YRbF + 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nZmv(l5Ny):\n return l5Ny.replace('\\r\\n', ' ').replace('\\n', ' ')", "def GMXA(KCHu):\n KCHu = KCHu.replace('\\n', ' ')\n KCHu = KCHu.replace('\\r', ' ')\n KCHu = ZbWC.sub('\\\\s+', ' ', KCHu)\n return KCHu", "def ccMH(l5Ny):\n return Q5aV.sub(' ', Cwdj.sub('\\\\n', l5Ny)).strip()", "...
[ "0.815433", "0.76825917", "0.7506389", "0.7351048", "0.7347467", "0.7297334", "0.7249623", "0.72258496", "0.7208966", "0.71988887", "0.7126703", "0.71047765", "0.70964986", "0.70116913", "0.7009814", "0.70072323", "0.69814956", "0.697334", "0.6963592", "0.69458437", "0.693213...
0.6937638
20
Implements call() for the layer. When `position_ids` is specified, it will return the position embeddings corresponding to this `position_ids`; otherwise, `position_ids` will be
def pOv4(YKHO, g4y1, h6bD=None, wzxP=None): GhuM = jPbk.get_shape_list(g4y1, expected_rank=3) if YKHO._use_dynamic_slicing: lrJW = YKHO._position_embeddings[:GhuM[1], :] else: lrJW = YKHO._position_embeddings if h6bD is not None: return ZylS.gather(lrJW, h6bD) if wzxP is None...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, Pha6=None, h6bD=None, blF9=None, ThNW=None, Tuqy='embedding', Y9ns=False):\n if Tuqy == 'embedding':\n return YKHO._embedding(Pha6, h6bD, blF9, ThNW, training=Y9ns)\n elif Tuqy == 'linear':\n return YKHO._linear(Pha6)\n else:\n raise ValueError('mode {} is not valid.'.f...
[ "0.7192704", "0.7103677", "0.70513666", "0.7012074", "0.6225959", "0.61460066", "0.60747385", "0.60171056", "0.5976607", "0.5943717", "0.5914062", "0.59066707", "0.5905248", "0.5865523", "0.56093043", "0.56041664", "0.5595403", "0.557956", "0.5563736", "0.5560359", "0.5551077...
0.77296704
0
A factory for making a logger that contains the processes name.
def fZx2(mWFP, NX0m='INFO'): dDGN = {} dDGN['worker'] = mWFP bo34 = G9jH.getLogger(mWFP) bo34.setLevel(NX0m.upper()) if not bo34.handlers: Npgh = G9jH.StreamHandler() uaPq = G9jH.Formatter('%(asctime)s [%(worker)s]: %(message)s') Npgh.setLevel(NX0m.upper()) Npgh.setFo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmAE():\n zeTD = eh9D()\n oPxp = '%s.log' % zeTD\n St8E = G9jH.Client()\n bo34 = St8E.logger(oPxp)\n return bo34", "def lmAE():\n zeTD = eh9D()\n oPxp = '%s.log' % zeTD\n St8E = G9jH.Client()\n bo34 = St8E.logger(oPxp)\n return bo34", "def lmAE(p3yv: str):\n BG9c = G9jH.get...
[ "0.6895731", "0.6895731", "0.6830637", "0.6792166", "0.67724144", "0.672939", "0.67150193", "0.67052627", "0.6700112", "0.6680742", "0.6679423", "0.66294956", "0.66052604", "0.6594024", "0.65940094", "0.65781206", "0.65377223", "0.6535775", "0.6528549", "0.6490393", "0.648676...
0.6290126
47
Indicates whether the property is variadic. If True, this parameter will be represented as multiple properties on the instance
def GrOc(YKHO): Abm8 = gk2W.c_bool() ZSvt = YKHO.mAPIContext.SDProperty_isVariadic(YKHO.mHandle, gk2W.byref(Abm8)) if ZSvt != ll8f.NoError.value: if ZSvt == ll8f.NoErrorOutputParamNotSet.value: return None raise UvM_(ll8f(ZSvt)) return Abm8.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U0Mk(YKHO, wAVY):\n raise NotImplementedError", "def c5Dv(YKHO):\n return YKHO._has_multiple_values_for_attr('args')", "def WRbW(YKHO) -> bool:\n return YKHO.var_args", "def dpY6(YKHO) -> bool:\n ...", "def gfa7(YKHO):\n return False", "def bth1(YKHO, *qIxc):\n for property in qIxc:...
[ "0.71788883", "0.6665646", "0.65819013", "0.6568842", "0.6512427", "0.6099916", "0.5700682", "0.5502735", "0.5449459", "0.5404464", "0.53762823", "0.5344169", "0.53217757", "0.5252065", "0.52320606", "0.5223119", "0.5191555", "0.5134067", "0.5118925", "0.5096608", "0.5096608"...
0.67865294
1
List materials currently in the database
def Cjp0(): LSZ7 = dict() for C13M in iqPE.Material.objects(): LSZ7[str(C13M.material_name)] = dict() LSZ7[str(C13M.material_name)]['material_id'] = C13M.material_id LSZ7[str(C13M.material_name)]['database_id'] = C13M.id return LSZ7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LSZ7(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'materials')", "def LSZ7(YKHO):\n return Jc_e(YKHO)", "def RSn6(PATF, P8oC):\n print('Loading requested materials...')\n NCls = AO05.XrayData(P8oC)\n for Mx95 in PATF:\n NCls.add(Mx95)\n NCls = NCls.get_database()\n for Mx95, InLe...
[ "0.7127714", "0.701829", "0.6898385", "0.68207985", "0.67796946", "0.67794895", "0.6775089", "0.6705854", "0.6656629", "0.64325166", "0.64325166", "0.64325166", "0.6406358", "0.6301194", "0.62940884", "0.62337583", "0.621138", "0.6169672", "0.61613667", "0.6151331", "0.614816...
0.8115991
0
Get the average time for this type of construction (2D or 1D)
def fWum(Zi9o: str) -> int: xmqG = Qv3F.Delphin.objects(id=Zi9o).first() e_2d = xmqG.dimensions kPa1 = xmqG.estimated_simulation_time if kPa1: bo34.debug(f'Predicted simulation time for Delphin project in {e_2d}D: {kPa1}min') return kPa1 else: B9mt = Qv3F.Delphin.objects(dime...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)", "def Cn5a(YKHO):\n if len(YKHO.times) == 0:\n return 0\n return round(SfSc(YKHO.times), YKHO.precision)", "def qqgr(YKHO):\n return sum(YKHO.times) / len(YKHO.times)", "def xZkv():\n return bBLp / Icon", "def BBfX(YKHO):\n ...
[ "0.7343421", "0.73395604", "0.7325913", "0.7174675", "0.71187335", "0.7071673", "0.694725", "0.68465877", "0.67991036", "0.6791673", "0.6753828", "0.6752413", "0.67428315", "0.6731288", "0.672442", "0.6711547", "0.6704022", "0.66859436", "0.66856897", "0.6682979", "0.66607374...
0.0
-1
Looks for the .ini file for a specified dialect and checks for excluded standard tests. The expected file name is `dialect_name.ini`.
def pwrQ(sP1A, LT1k): kjdm = sP1A + '.ini' jmji = Hy7s.path.join(LT1k, kjdm) zwiH = Hy7s.path.isfile(jmji) if zwiH: with open(jmji, 'r') as Alqa: for zFiD in Alqa: if zFiD.startswith('ExpressionExclusions_Standard'): iR_J = ['standard.' + vGaq for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VggH(AGPF, LT1k):\n for Z0kE, tbXA, RRlC in Hy7s.walk(AGPF):\n for nUeQ in RRlC:\n if nUeQ.endswith('Dialect.cpp'):\n Ethp = nUeQ.split('Dialect')[0].lower() + '.ini'\n Wgkb = Hy7s.path.join(LT1k, Ethp)\n zwiH = Hy7s.path.isfile(Wgkb)\n ...
[ "0.72070265", "0.6158872", "0.6075736", "0.6072895", "0.60141855", "0.59330237", "0.5924431", "0.5775979", "0.55603236", "0.5555732", "0.55526096", "0.5453432", "0.5399338", "0.5383337", "0.5330701", "0.5307323", "0.52384", "0.52303904", "0.51602095", "0.50850475", "0.507774"...
0.7440364
0
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.title = vGfb.get('title', KAOR.title) KAOR.content = vGfb.get('content', KAOR.content) KAOR.style = vGfb.get('style', KAOR.style) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.comments = vGfb.get('comments', KAOR.comments)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n...
[ "0.6782608", "0.66628504", "0.66628504", "0.664349", "0.65242296", "0.65242296", "0.6511838", "0.64883846", "0.6473172", "0.64305496", "0.63021404", "0.6293087", "0.6278878", "0.6203836", "0.6138691", "0.60995233", "0.6073869", "0.60547733", "0.60541296", "0.60123277", "0.596...
0.665865
3
This function converts a list of np.array (each array is a singletrial) into a single np.array where trials are concatenated
def Lgbk(EcVT): xL7R = oyIN.size(EcVT[0], 1) fuBA = oyIN.empty((0, xL7R)) for mAB6 in EcVT: fuBA = oyIN.vstack((fuBA, mAB6)) return fuBA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YtMx(Cmjf):\n return oyIN.concatenate(Cmjf, axis=0)", "def MPiJ(KQOt: list) -> oyIN.array:\n Aofo = KQOt[0]\n for YRbF in range(1, len(KQOt)):\n if len(KQOt[YRbF]) is not 0:\n Aofo = oyIN.concatenate([Aofo, KQOt[YRbF]], axis=0)\n return Aofo", "def QXSd(Cmjf):\n ROpF = list...
[ "0.65036404", "0.63724947", "0.6176988", "0.61743116", "0.6170606", "0.6121427", "0.6121427", "0.6115858", "0.5944921", "0.59115994", "0.59012973", "0.5892813", "0.5884626", "0.58613944", "0.58563316", "0.5850886", "0.58114374", "0.5808814", "0.57325953", "0.5684728", "0.5678...
0.0
-1
For every vector in R calculate the normalized residuum r.
def koYg(A3Vt): SxBT = [] for Mkmy in A3Vt: SxBT.append(cbY4(Mkmy)) return SxBT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IFbn(YKHO, Mkmy, Ty9i, yGTL):\n A3Vt = YKHO.rVectorNotUnit(Mkmy, Ty9i, yGTL)\n KRwN = oyIN.linalg.norm(A3Vt)\n A3Vt = A3Vt / KRwN\n return A3Vt", "def NkkI(iArr):\n WuUW = []\n for YRbF in range(len(iArr)):\n wjRY = 0\n wjRY += iArr[YRbF] * (1 / CkYf(iArr))\n WuUW.appen...
[ "0.7063416", "0.68587667", "0.6836426", "0.6742531", "0.6740749", "0.6712083", "0.67100006", "0.66787255", "0.66624165", "0.6650333", "0.6643611", "0.660207", "0.65993845", "0.65619755", "0.65548664", "0.65479565", "0.6467954", "0.6467954", "0.64654577", "0.64639866", "0.6457...
0.765262
0
Tokenization/string cleaning for all datasets except for SST. Every dataset is lower cased except for TREC
def LNLQ(vIwR, sG8V=False): vIwR = ZbWC.sub("[^A-Za-z0-9(),!?\\'\\`]", ' ', vIwR) vIwR = ZbWC.sub("\\'s", " 's", vIwR) vIwR = ZbWC.sub("\\'ve", " 've", vIwR) vIwR = ZbWC.sub("n\\'t", " n't", vIwR) vIwR = ZbWC.sub("\\'re", " 're", vIwR) vIwR = ZbWC.sub("\\'d", " 'd", vIwR) vIwR = ZbWC.sub("\\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KElI(__n6):\n if isinstance(__n6, list):\n return [str.lower(YRbF.replace(' ', '')) for YRbF in __n6]\n elif isinstance(__n6, str):\n return str.lower(__n6.replace(' ', ''))\n else:\n return ' '", "def TfmK(__n6, xhP4):\n b0j5 = Dhdw.tokenize.RegexpTokenizer('[a-zA-Z]+')\n ...
[ "0.72319627", "0.7114001", "0.6478988", "0.6459705", "0.64237297", "0.6388659", "0.6309823", "0.63016", "0.628479", "0.62493396", "0.623815", "0.6198195", "0.61824924", "0.61801875", "0.616446", "0.61515397", "0.61474574", "0.6140467", "0.6132887", "0.6132218", "0.6101358", ...
0.0
-1
Returns a list of all files ending in `suffix` contained within `path`.
def TLtP(pmON, ZI14=''): if Hy7s.path.isdir(pmON): y1iq = Hy7s.listdir(pmON) Fd4y = [Hy7s.path.join(pmON, bTKY) for bTKY in y1iq] UHhk = [TLtP(_o7t, ZI14) for _o7t in Fd4y] qnkS = [] for vC9B in UHhk: for LihS in vC9B: qnkS.append(LihS) ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A99F(ZI14, pmON):\n yvT9 = []\n RAiZ(ZI14, pmON, yvT9)\n return yvT9", "def A99F(ZI14, pmON):\n if not Hy7s.path.isdir(pmON):\n return 'Not a valid path'\n if not ZI14 or len(ZI14) <= 0:\n return 'Not a valid suffix'\n rt49 = Hy7s.listdir(pmON)\n RRlC = []\n for nUeQ in ...
[ "0.8350666", "0.8338883", "0.8249577", "0.81107277", "0.80954677", "0.80878764", "0.80490315", "0.8042241", "0.80154747", "0.79908293", "0.793759", "0.7884506", "0.7875415", "0.782188", "0.77872527", "0.7778854", "0.77341706", "0.7721311", "0.7700496", "0.7697175", "0.7687294...
0.74414897
31
Function to compute new reward.
def xfaQ(YKHO, Cubv, xi3E, U34r): del U34r return oyIN.sum(Cubv - xi3E)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KvT(YKHO, pR3T, _ins):\n return vOGg", "def vOGg(YKHO):\n YKHO.r = YKHO.calc_reward()", "def vOGg(YKHO):\n pass", "def YncY(YKHO):\n raise NotImplementedError", "def vOGg(YKHO, vOGg):\n return vOGg + 0.01", "def BiIn(YKHO):\n raise NotImplementedError", "def Wdp1(YKHO):\n retu...
[ "0.8149241", "0.81129783", "0.8007303", "0.7968517", "0.7946303", "0.77511126", "0.77032197", "0.76524496", "0.76524496", "0.76524496", "0.76524496", "0.76524496", "0.76403767", "0.76273257", "0.7618455", "0.7605812", "0.7599595", "0.75783014", "0.7563852", "0.75329834", "0.7...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.8640854", "0.85093737", "0.785447", "0.7744496", "0.77114135", "0.7696879", "0.76601094", "0.7639409", "0.7623007", "0.7608497", "0.7608497", "0.7608497", "0.76073915", "0.7600974", "0.75863326", "0.75839657", "0.7572215", "0.7569474", "0.75403374", "0.75403374", "0.752854...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Root mean square error
def iAxY(jzdc, Fg_i): return oyIN.sqrt(((jzdc - Fg_i) ** 2).mean())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def ewIN(LTIa):\n Qth0 = True\n if not Qth0:\n sum = 0\n for AU8u in LTIa.values():\n sum += pow(oyIN.abs(AU8u.get_pollution_value()) - oyIN.abs(AU8u.get_actual_pollution_value()), 2)\n iAxY = epAf.sqrt(sum ...
[ "0.8213438", "0.7656963", "0.75625825", "0.75592315", "0.75508624", "0.75219816", "0.74197865", "0.7414928", "0.73902524", "0.7355874", "0.7355874", "0.73184687", "0.7302037", "0.7272658", "0.7224805", "0.7205668", "0.7119793", "0.7108357", "0.70663553", "0.70534176", "0.7044...
0.6290485
97
Returns a player's team.
def sKxE(YKHO): return YKHO.team
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjbk(YKHO):\n return YKHO._team", "def L7Cr(YKHO):\n return YKHO.team", "def dZPi(YKHO):\n Skwb = YKHO.team_num\n if not Skwb:\n return\n return YKHO.parser.entities.teams[Skwb]", "def dZPi(YKHO):\n return YKHO._team", "def QXVf(YKHO):\n for _oWe in YKHO.play_players:\n ...
[ "0.779729", "0.7677285", "0.7389684", "0.72604704", "0.72046286", "0.71660393", "0.71565604", "0.71426404", "0.7069064", "0.70667315", "0.70147806", "0.6960848", "0.6868242", "0.68609136", "0.6847374", "0.6828401", "0.68059206", "0.6784577", "0.6751341", "0.6745042", "0.67263...
0.8595169
0
Returns a player's position.
def sl0n(YKHO): return YKHO.position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def smmJ():\n return rShR.player_position()", "def fYNH(YKHO):\n return YKHO._env.acting_player_position", "def Iuzb(YKHO):\n return YKHO.position", "def Iuzb(YKHO):\n return YKHO.current_position.position", "def Iuzb(YKHO):\n return YKHO.position", "def Iuzb(YKHO):\n return YKHO.positi...
[ "0.7882873", "0.77271146", "0.76976806", "0.76889265", "0.76703227", "0.76703227", "0.76703227", "0.76703227", "0.7665573", "0.76366925", "0.7598679", "0.75729346", "0.75522155", "0.75522155", "0.7485237", "0.7485237", "0.7485237", "0.7485237", "0.7485237", "0.7467447", "0.74...
0.90225923
0
procesar_caracter recibe una lista de Strings y dos indices, uno dentro del rango de la lista y otro dentro del rango de la cadena de caracteres. devuelve un caracter numerico en base a la cantidad de caracteres vecinos que contengan un asterisco o retorna un asterisco en caso de ser el mismo ese simbolo.
def Cvlq(B9PH, e_1Z, GAMI): if B9PH[e_1Z][GAMI] == '*': return '*' else: v9Lt = 0 for WKvO in range(3): for LVAh in range(3): if e_1Z + WKvO - 1 >= 0 and e_1Z + WKvO - 1 < len(B9PH): if GAMI + LVAh - 1 >= 0 and GAMI + +LVAh - 1 < len(B9PH[e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_5m(YEf3, YPdv):\n eKbg = ''\n for oeNL in range(len(YEf3)):\n eKbg += YPdv\n return 'Su clave es ' + eKbg", "def DaX1(zNXY: str) -> str:\n if zNXY[:2] == '10':\n GdQK = True\n i3Vv = QZ_k(zNXY, 2)\n else:\n GdQK = False\n if int(zNXY[0]) < 1 or int(zNXY[0])...
[ "0.6806567", "0.6796492", "0.64396167", "0.6391693", "0.6181448", "0.5767404", "0.57495266", "0.5744019", "0.57072353", "0.5704022", "0.5599241", "0.5566281", "0.5545217", "0.55424476", "0.5483991", "0.54432386", "0.5404653", "0.53878963", "0.53173846", "0.5272504", "0.519429...
0.71780914
0
Return bit number from the right within the byte. >>> get_bit(0b00000101, 2) 1 >>> get_bit(0b00000101, 1) 0
def SMHM(YB8B: int, XU7X: int) -> int: return (YB8B & 1 << XU7X) >> XU7X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SMHM(YB8B, XU7X):\n return (YB8B & 1 << XU7X) >> XU7X", "def SMHM(exwG, Fg_i):\n return (1 << Fg_i & exwG) >> Fg_i", "def ugFU(BWXx, HkJz, OM2p=64):\n return vniw(BWXx, HkJz, 1, OM2p)", "def qe9m(mLGw):\n return mLGw[-1]", "def SMHM(YKHO, d6pt):\n P8oC = int(d6pt // 8)\n DkWr = int(d6...
[ "0.84102046", "0.76867634", "0.7522429", "0.73527056", "0.72791916", "0.726985", "0.7259759", "0.7241016", "0.71469706", "0.7050657", "0.6947351", "0.69126767", "0.682253", "0.6800721", "0.6715156", "0.66973245", "0.6651125", "0.662215", "0.6620933", "0.6570864", "0.65623647"...
0.84761417
0
Return the integer number corresponding to the string of bits . If the string has less than 8 bits, it will be padded with zeroes to the right. >>> bits_to_byte("00000101") 5 >>> bits_to_byte("101") == 0b10100000 True
def shCs(UOVU: str) -> int: return sum([int(UOVU[oeNL]) << 7 - oeNL for oeNL in range(len(UOVU))])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jrRc(tXcD):\n UOVU = bin(tXcD)[2:].zfill(8)\n return UOVU", "def IrKf(YB8B):\n return bin(VbBP(YB8B))[2:].zfill(8)", "def qCDD(KCHu):\n Fg_i = b''\n for d6pt in range(len(KCHu)):\n Fg_i += bytes([int(KCHu[d6pt], 2)])\n return Fg_i", "def shCs(UOVU):\n return sum([int(UOVU[oeNL...
[ "0.76456136", "0.73673564", "0.73572713", "0.73117656", "0.72479665", "0.70862246", "0.70656556", "0.70356816", "0.70051336", "0.7004557", "0.6973925", "0.69549906", "0.69432175", "0.69376385", "0.69237125", "0.69217813", "0.68875307", "0.6850462", "0.6823295", "0.681868", "0...
0.8336107
0
Return an integer from a given 4byte littleendian representation >>> bytes_to_int(bytes([44, 1, 0, 0])) 300
def PCNz(LaVg: bytes) -> int: return int.from_bytes(LaVg, 'little')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PCNz(bytes):\n return BlNT.unpack('>I', ''.join([chr(WKvO) for WKvO in bytes]))[0]", "def zChK(YKHO):\n ORTn = (0, 255)\n kAne = BfDw.little_endian_bytes_to_int(ORTn)\n zVnb = 65280\n YKHO.assertEqual(kAne, zVnb)", "def UnH3(nPrm: bytes, yq8y: bool=True) -> int:\n Ph3p = 'little' if yq8y ...
[ "0.8139728", "0.8029827", "0.7985195", "0.79554784", "0.79489917", "0.7866094", "0.78012246", "0.7783725", "0.7748125", "0.77199984", "0.7714796", "0.77008456", "0.76888204", "0.7646729", "0.7625201", "0.7564217", "0.75335026", "0.7527688", "0.75232196", "0.7521073", "0.74898...
0.80430233
1
Return the integer converted to a bytes object. The integer is assumed to contain a 32bit (4byte) number.
def _WCm(mLGw: int) -> bytes: return mLGw.to_bytes(4, 'little')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _WCm(BWXx: int) -> bytes:\n return BWXx.to_bytes(l3LF, HwRy.byteorder)", "def jykZ(FGW3):\n return int.to_bytes(FGW3, cpgS, 'big')", "def _WCm(BWXx):\n gXtX = [0, 0, 0, 0]\n gXtX[0] = BWXx & 255\n gXtX[1] = (BWXx & 65280) >> 8\n gXtX[2] = (BWXx & 16711680) >> 16\n gXtX[3] = (BWXx & 427...
[ "0.8507354", "0.8267684", "0.80225426", "0.7916523", "0.78533673", "0.78019494", "0.7789138", "0.7773642", "0.7717754", "0.7679653", "0.7637905", "0.7623676", "0.7598752", "0.75810134", "0.75630754", "0.7485707", "0.74801683", "0.74482185", "0.7406016", "0.7318095", "0.726474...
0.8504052
1
Return constructorstyle string representation of this ReadNode.
def wHJl(YKHO) -> str: return 'ReadNode({}, {}, {}, {})'.format(YKHO.l_type, YKHO.l_data, YKHO.r_type, YKHO.r_data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vIwR(YKHO):\n l5Ny = 'node ' + SLdk.string(YKHO.identifier, default='unknown') + '\\n'\n for xC3W in dir(YKHO):\n if xC3W.startswith('_'):\n continue\n BWXx = getattr(YKHO, xC3W)\n if callable(BWXx):\n continue\n l5Ny = l5Ny + ' ' + xC3W + YKHO.fieldDelim...
[ "0.7013857", "0.67952216", "0.6775508", "0.6775508", "0.6775508", "0.6775508", "0.6775508", "0.6775508", "0.6775508", "0.6775508", "0.6751719", "0.6731064", "0.6707143", "0.66930807", "0.664569", "0.66328764", "0.6625678", "0.6617663", "0.6607684", "0.65970945", "0.65209275",...
0.7865672
0
return ordered list of fields to export
def jGKK(Emd4) -> x1iM[str]: raise NotImplemented()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TnMw(YKHO):\n return [YKHO.fields[eHNT] for eHNT in YKHO.get_column_order()]", "def P5L6(YKHO):\n g75F = []\n for H5ew in sorted(YKHO.__fields):\n JZXy = YKHO.__fields[H5ew]\n hGN5 = []\n hGN5.append(\"'%s'\" % H5ew)\n if 'values' in JZXy:\n hkxX = JZXy['values...
[ "0.7417985", "0.7170843", "0.69958144", "0.6978394", "0.6978176", "0.69350904", "0.68877155", "0.6808814", "0.6764633", "0.669719", "0.66843647", "0.6672505", "0.6672505", "0.6664133", "0.6652233", "0.6649035", "0.6633218", "0.6595164", "0.6594371", "0.6594371", "0.65798753",...
0.64156866
34
Sets the local_id of this SnapshotPlanTask.
def CLML(YKHO, CLML): if YKHO.local_vars_configuration.client_side_validation and CLML is None: raise ValueError('Invalid value for `local_id`, must not be `None`') YKHO._local_id = CLML
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLML(YKHO, CLML):\n YKHO._local_id = CLML", "def CLML(YKHO, CLML):\n YKHO._local_id = CLML", "def CLML(YKHO, CLML):\n YKHO._local_id = CLML", "def CLML(YKHO, CLML):\n YKHO._local_id = CLML", "def CLML(YKHO, CLML):\n YKHO._local_id = CLML", "def CLML(YKHO, CLML):\n YKHO._local_id = C...
[ "0.789268", "0.789268", "0.789268", "0.789268", "0.789268", "0.789268", "0.78876305", "0.6974986", "0.6974986", "0.6974986", "0.6974986", "0.6974986", "0.68596864", "0.68596864", "0.68596864", "0.68596864", "0.68596864", "0.6855372", "0.6855372", "0.6855372", "0.6855372", "...
0.71292454
7
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, k3B2): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Factory to get relevance loss related to classification usecase.
def L8kW(WQaq) -> zvAi: if WQaq == L5EI.CATEGORICAL_CROSS_ENTROPY: return mUfc() else: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PIj4() -> TSUr:\n pass", "def L8kW(YKHO):\n YKHO.loss = YKHO.category_criterion(YKHO.output, YKHO.categories)", "def PIj4(N77f):\n return getattr(U78l, N77f)()", "def Qpq2(qIxc, **B2fa):\n Tim_ = []\n for LlSf in kj4A.stem_string(qIxc['trainer']['criterion_name']).split(','):\n if L...
[ "0.6362841", "0.6233755", "0.61251247", "0.6103544", "0.60781175", "0.6050383", "0.6044132", "0.60247743", "0.6019028", "0.5961963", "0.58358926", "0.58316886", "0.5823263", "0.5822173", "0.58182734", "0.5811559", "0.58046144", "0.5777998", "0.57575166", "0.57453203", "0.5744...
0.6490479
0
Add a blade object to the guide. This mehod can initialize the object or draw it. Blade object is a 3points curve to define a plan in the guide.
def btv8(YKHO, mWFP, yAS6, K5Fv): if mWFP not in YKHO.blades.keys(): YKHO.blades[mWFP] = he6J.Blade(EDRr.getTransformFromPos(JRYC.Vector(0, 0, 0))) vgXP = False else: vgXP = True pImw = 0.6 * YKHO.root.attr('scaleX').get() OYn8 = YSxQ.guideBladeIcon(parent=yAS6, name=YKHO.getName...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def btv8(YKHO, mWFP, yAS6, K5Fv):\n if mWFP not in YKHO.blades.keys():\n YKHO.blades[mWFP] = iArr.Blade(SZFh.getTransformFromPos(sb_0.Vector(0, 0, 0)))\n vgXP = False\n else:\n vgXP = True\n OYn8 = _G4g.guideBladeIcon(parent=yAS6, name=YKHO.getName(mWFP), lenX=0.5, color=[0, 0, 1], m=...
[ "0.72704655", "0.6662769", "0.63618255", "0.5811542", "0.58054507", "0.5779733", "0.576697", "0.5713008", "0.5502261", "0.5454692", "0.53782064", "0.5376989", "0.53452945", "0.5282876", "0.5278968", "0.52570164", "0.5233414", "0.5231884", "0.5229433", "0.521461", "0.520361", ...
0.7208697
1
Get the size of the component.
def R8e4(YKHO): zNig = 0.01 for oeNL in YKHO.apos: Csk6 = he6J.getDistance(YKHO.pos['root'], oeNL) zNig = max(zNig, Csk6) zNig = max(zNig, 0.01) return zNig
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4():\n return YKHO.size", "def R8e4(YKHO):\n return YKHO.size", "def jiw9(YKHO):\n return float(YKHO.__props.size[0])", "def R8e4(YKHO):\n return YKHO.size", "def R8e4(YKHO):\n return YKHO.size", "def R8e4(YKHO):\n return YKHO.size", "def R8e4(YKHO):\n return YKHO.size", "...
[ "0.81918955", "0.8185413", "0.81657416", "0.8155421", "0.8155421", "0.8155421", "0.8155421", "0.8155421", "0.8155421", "0.81181467", "0.81113845", "0.8110985", "0.8103522", "0.81023234", "0.81016374", "0.81016374", "0.80846137", "0.80715984", "0.8043984", "0.8043984", "0.8043...
0.0
-1
Return the type of the component.
def YwLH(YKHO): return YKHO.compType
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5oO(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'component_type')", "def type(YKHO):\n return YKHO.container['type']", "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.__type", "def FRul(YKHO):\n return YKHO.Type.value()", "def FRul(YKHO):\n return YKHO.type",...
[ "0.84385866", "0.7778505", "0.7769946", "0.7769946", "0.7667142", "0.76608145", "0.76608145", "0.76608145", "0.7656561", "0.7656561", "0.75932217", "0.75932217", "0.75932217", "0.75932217", "0.75932217", "0.75932217", "0.75932217", "0.7587763", "0.7587763", "0.75862694", "0.7...
0.7824231
1
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
83
return the index.html file to the client
def kZiy(): return P4t4.send_static_file('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6pt():\n return CfgF(open('index.html').read())", "def d6pt():\n return j0kY('static/index.html')", "def d6pt():\n return P4t4.send_static_file('index.html')", "def d6pt():\n return cs4A('static', 'index.html')", "def VI_d():\n return c5qa('static/index.html')", "def d6pt():\n P4t4...
[ "0.87324893", "0.8633734", "0.845707", "0.8329871", "0.82593244", "0.82188094", "0.81924224", "0.8187304", "0.81647724", "0.81540394", "0.81415254", "0.81263274", "0.8124902", "0.8124902", "0.8124902", "0.8124902", "0.8124902", "0.8124902", "0.8124902", "0.8124902", "0.812490...
0.0
-1
Assert if no email and password is passed, the user cannot login and an error message will be shown.
def nUW2(YKHO): YKHO.loginpage = V6wC(YKHO.driver) YKHO.loginpage.empty_email_and_password_login() ITS7.sleep(2) if len(YKHO.loginpage.driver.find_elements(Q71O.CLASS_NAME, qLjg.ERROR_LOCATOR)) > 0: t9or = True else: t9or = False YKHO.assertTrue(t9or)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ACsd():\n Y7Bk()\n Aofo = Jpbe.auth_register('testEmail@gmail.com', 'abcdefg', 'Christian', 'Ilagan')\n Jpbe.auth_logout(Aofo['token'])\n with trZe.raises(DQrD):\n Jpbe.auth_login('testEmail@gmail.com', 'abcde')\n Y7Bk()", "def ath6(YKHO):\n L03z = Eo6a(data={'username': 'usertest.co...
[ "0.77939135", "0.77901953", "0.7762755", "0.7752987", "0.77363884", "0.77171946", "0.77091116", "0.7699046", "0.7693774", "0.7691547", "0.76855654", "0.76593965", "0.76490515", "0.76481825", "0.761304", "0.76101047", "0.76099056", "0.76018214", "0.7595442", "0.7591232", "0.75...
0.0
-1
Assert if no password is passed, the user cannot login and an error message will be shown.
def jrTC(YKHO): YKHO.loginpage = V6wC(YKHO.driver) YKHO.loginpage.empty_password_login() ITS7.sleep(2) if len(YKHO.loginpage.driver.find_elements(Q71O.CLASS_NAME, qLjg.ERROR_LOCATOR)) > 0: t9or = True else: t9or = False YKHO.assertTrue(t9or)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGzb():\n trZe.sel.get(trZe.sel.base_url())\n MC83(Fv2L.credentials['default']['username'], 'badpassword@#$')\n pHd6 = 'the username or password you entered is incorrect'\n assert RMV5.is_displayed()\n assert pHd6 in trZe.sel.text(RMV5.flash)", "def O65P(YKHO):\n YKHO.user_signup()\n YKH...
[ "0.8099926", "0.80398935", "0.7933891", "0.79156184", "0.78413683", "0.78328705", "0.783207", "0.7816673", "0.7802933", "0.7793297", "0.77790135", "0.7773241", "0.7718746", "0.7713328", "0.7708691", "0.77014077", "0.7701243", "0.76748526", "0.7653764", "0.7649516", "0.7629294...
0.0
-1
Assert if the wrong password is passed, the user cannot login and an error message will be shown.
def lqAA(YKHO): YKHO.loginpage = V6wC(YKHO.driver) YKHO.loginpage.incorrect_password_login() ITS7.sleep(2) if len(YKHO.loginpage.driver.find_elements(Q71O.CLASS_NAME, qLjg.ERROR_LOCATOR)) > 0: t9or = True else: t9or = False YKHO.assertTrue(t9or)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CGzb():\n trZe.sel.get(trZe.sel.base_url())\n MC83(Fv2L.credentials['default']['username'], 'badpassword@#$')\n pHd6 = 'the username or password you entered is incorrect'\n assert RMV5.is_displayed()\n assert pHd6 in trZe.sel.text(RMV5.flash)", "def pwat(YKHO):\n aqR5 = {'user_id': YKHO.use...
[ "0.85196936", "0.835872", "0.83276", "0.82524806", "0.81519663", "0.812895", "0.81246156", "0.8120357", "0.80488896", "0.8036927", "0.80126065", "0.80045944", "0.7997772", "0.79900914", "0.79766256", "0.79471433", "0.7945724", "0.79457146", "0.794273", "0.7925739", "0.7921198...
0.0
-1