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
Test temporary_cd() context manager
def KJC3(): K0Ex = Hy7s.getcwd() eWLA = '/' from openforcefield.utils import temporary_cd with temporary_cd(eWLA): assert Hy7s.getcwd() == eWLA assert Hy7s.getcwd() == K0Ex
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mJ46(YKHO):\n with TMAJ.patch('tempfile.mkdtemp', lambda: YKHO.temp_directory):\n with P8oC.BaseRecipe('fake_recipe') as YSCM:\n YKHO.assertTrue(Hy7s.path.isdir(YKHO.temp_directory))\n YKHO.assertEqual(YSCM._workdir, YKHO.temp_directory)\n YKHO.assertFalse(Hy7s.path.isdir...
[ "0.6980569", "0.6711925", "0.6459582", "0.63552225", "0.6324862", "0.62804693", "0.62800485", "0.62206185", "0.6202046", "0.6195", "0.61690104", "0.6160064", "0.6143204", "0.6129913", "0.61230826", "0.6121746", "0.61046064", "0.6104341", "0.60943174", "0.6083337", "0.60738313...
0.8061026
0
Find the node in the graph which requires the smallest magnitude of u to get to from the random state.
def FLFm(YKHO, cW4Z): edK2 = oyIN.inf ONmy = None for Q6kx in YKHO.Tree: sSN_ = YKHO.compute_dist(Q6kx.state_time[0:6], cW4Z) if sSN_ < edK2: ONmy = Q6kx edK2 = sSN_ return ONmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfuF(YKHO, KCHu):\n ONmy = None\n qzD7 = YKHO.inf\n for SLBp in KCHu:\n if YKHO.dist[SLBp] < qzD7:\n qzD7 = YKHO.dist[SLBp]\n ONmy = SLBp\n return ONmy", "def TS4g(YKHO):\n EwQl = 10 ** 10\n U96t = -1\n for Q6kx in YKHO.node:\n if Q6kx.energy < EwQl:\n...
[ "0.6527561", "0.6435463", "0.6431374", "0.6232134", "0.6199517", "0.6179466", "0.60915333", "0.60906845", "0.6082688", "0.6071737", "0.6040509", "0.6023843", "0.6004322", "0.5960131", "0.59301215", "0.59179556", "0.5907052", "0.5876883", "0.58652204", "0.5801122", "0.5795765"...
0.5932491
14
Find the node in the graph which requires the smallest magnitude of u to get to from the random state.
def FLFm(YKHO, cW4Z): edK2 = oyIN.inf ONmy = None for Q6kx in YKHO.Tree: sSN_ = YKHO.compute_dist(Q6kx.state_time[0:6], cW4Z) if sSN_ < edK2: ONmy = Q6kx edK2 = sSN_ return ONmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bfuF(YKHO, KCHu):\n ONmy = None\n qzD7 = YKHO.inf\n for SLBp in KCHu:\n if YKHO.dist[SLBp] < qzD7:\n qzD7 = YKHO.dist[SLBp]\n ONmy = SLBp\n return ONmy", "def TS4g(YKHO):\n EwQl = 10 ** 10\n U96t = -1\n for Q6kx in YKHO.node:\n if Q6kx.energy < EwQl:\n...
[ "0.6527743", "0.6436093", "0.6432691", "0.6232609", "0.61991054", "0.6180935", "0.60923404", "0.60921085", "0.60834223", "0.6071551", "0.6042296", "0.60239965", "0.6005576", "0.59606874", "0.59308326", "0.5918277", "0.59081244", "0.5877088", "0.5865453", "0.5801121", "0.57967...
0.59344953
15
Matches the string with the pattern, caching the compiled regexp.
def kUBT(mXDZ, KCHu): if mXDZ not in DkSV: DkSV[mXDZ] = ttF9.compile(mXDZ) return DkSV[mXDZ].match(KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compile(YKHO, mWFP, mXDZ):\n try:\n return YKHO.get_pattern(mWFP)\n except KeyError:\n return YKHO.store_pattern(mWFP, ZbWC.compile(mXDZ))", "def R6hS(mXDZ: str) -> ZbWC.Pattern:\n return ZbWC.compile(hBUG(mXDZ))", "def tt0_(mWFP, lvR3):\n if not lvR3 in Iy_7:\n Ylbp = hBUG...
[ "0.71482474", "0.6756026", "0.6744813", "0.6722702", "0.6654812", "0.65595526", "0.6545594", "0.65077955", "0.6425168", "0.641809", "0.63556606", "0.6297387", "0.62467575", "0.62355703", "0.6205774", "0.61628044", "0.61571676", "0.6150092", "0.61344326", "0.6126535", "0.61137...
0.7651433
0
Generate usable time string.
def RHR7(C6wh): ZAlx = True Sm0u = int(pBSp(C6wh / 86400)) _SP3 = str(Sm0u) + 'd ' if Sm0u < 1: _SP3 = '' else: ZAlx = False OAwr = bnxV(C6wh, 86400) Wave = int(pBSp(OAwr / 3600)) Htz9 = str(Wave) + 'h ' if Wave < 1 and ZAlx: Htz9 = '' else: ZAlx =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B1Ou(YKHO):\n return str(bin(int(round(ITS7.time() * 1000))))[2:]", "def sc4B(YKHO) -> str:\n return qe4Y.get(YKHO, 'generate_time')", "def scnb(YKHO):\n return f'{YKHO.year} {YKHO.month:02} {YKHO.start_day:02} {YKHO.start_hour:02} 00 {YKHO.get_duration():6}'", "def YCc8():\n return JRYC.strf...
[ "0.79932034", "0.7851666", "0.7776816", "0.7623589", "0.7615458", "0.7587137", "0.75653434", "0.7546133", "0.7488429", "0.74793303", "0.7459818", "0.7357713", "0.7330868", "0.7306385", "0.72327703", "0.7230358", "0.71383786", "0.7128545", "0.71268487", "0.7087252", "0.7051371...
0.0
-1
This method gets our order total
def vrmj(YKHO): egzR = 0 for ZfUD in YKHO.cart_items: egzR += ZfUD['price'] return egzR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h4aS(YKHO):\n wjRY = super(H_h9, YKHO).get_total()\n if YKHO.qty < 10:\n wjRY = wjRY + 3\n return wjRY", "def h4aS(YKHO):\n _Erc = super(H_h9, YKHO).get_total()\n if YKHO.qty < 10:\n wjRY = _Erc + 3\n return wjRY", "def h4aS(YKHO):\n NR94 = 5\n if YKHO.species == 'Chri...
[ "0.7931804", "0.7841695", "0.77408457", "0.7681984", "0.7676626", "0.75567734", "0.7512882", "0.74579936", "0.7405691", "0.73995197", "0.7307088", "0.72877693", "0.7261905", "0.7258633", "0.7242722", "0.72369826", "0.7155262", "0.71541977", "0.71280813", "0.71271825", "0.7125...
0.84648013
0
Hash a password using a salt. A salt is a random sequence added to the password string before using the hash function this is used to prevent dictionary and rainbow tables attacks. For IPython, the hashed passphrase should be in the format
def qzFd(jTXt, E91_='sha1'): cW_1 = 12 MKlR = HBct.new(E91_) NTfD = ('%0' + str(cW_1) + 'x') % tuKI.getrandbits(4 * cW_1) MKlR.update(jTXt.encode('utf-8') + NTfD.encode('ascii')) return ':'.join(['sha1', NTfD, MKlR.hexdigest()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzFd(jTXt, NTfD):\n jTXt = str(jTXt).encode('utf-8')\n NTfD = str(NTfD).encode('utf-8')\n return HBct.sha512(jTXt + NTfD).hexdigest()", "def a2tF(jTXt, NTfD):\n return HBct.pbkdf2_hmac('sha512', jTXt.encode(), NTfD, 100000)", "def qzFd(jTXt):\n NTfD = HBct.md5(jTXt.encode())\n return NTfD...
[ "0.8006383", "0.7934795", "0.79033065", "0.7779137", "0.769561", "0.7625197", "0.7612696", "0.7592995", "0.75869584", "0.758049", "0.7525644", "0.7525644", "0.7525644", "0.7516438", "0.75040305", "0.7502213", "0.74630284", "0.74513763", "0.74110043", "0.7409933", "0.7390822",...
0.6951533
50
Parses requirements.txt and returns arrays with `install_requires` packages and with `dependency_links` sources.
def khiT(): tk5Y = Hy7s.path.dirname(Hy7s.path.abspath(xAKo)) fA3L = [] SMAd = [] with open(Hy7s.path.join(tk5Y, 'requirements.txt'), 'r') as eHNT: for zFiD in eHNT.readlines(): zFiD = zFiD.rstrip() if not zFiD or zFiD.startswith('#'): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1OY():\n with open('requirements.txt') as Gcbu:\n Nqlg = Gcbu.read().splitlines()\n emMa, wPdp = ([], [])\n for zFiD in Nqlg:\n if zFiD.startswith('git+'):\n wPdp.append(zFiD)\n elif zFiD:\n emMa.append(zFiD)\n return (emMa, wP...
[ "0.81457865", "0.8066655", "0.7832942", "0.7801418", "0.7609523", "0.7606973", "0.75887316", "0.7575572", "0.7503911", "0.75038475", "0.7491879", "0.7468125", "0.73611116", "0.7359987", "0.7353672", "0.73363036", "0.73330444", "0.73057646", "0.72224545", "0.7219688", "0.71200...
0.7923224
2
Check if the current image is transformable.
def mjFs(YKHO): if not YKHO._app.get_paths(): raise vq_C('No image to') elif not T9gl(YKHO._app.get_path()): raise vq_C('Filetype not supported for') elif not gCuF['autosave_images'].get_value(): Ol8d = '' if YKHO._app['thumbnail'].toggled: Ol8d = 'When operating ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbJf(YKHO):\n return YKHO._can_retransform", "def ZjXu(jQ3Z, OO3z, VanI):\n try:\n ucxv = getattr(jQ3Z, 'crs')\n except AttributeError:\n return False\n if not ucxv:\n return False\n elif ucxv and (OO3z is not None or VanI is not None):\n return True", "def ZjXu(j...
[ "0.67576784", "0.66709805", "0.66709805", "0.6374297", "0.6161215", "0.6148102", "0.61152226", "0.60924584", "0.6089935", "0.5935475", "0.5934404", "0.581421", "0.581421", "0.57912976", "0.5705352", "0.5696411", "0.5692357", "0.56322336", "0.56060916", "0.5574751", "0.5562395...
0.7899624
0
Returns a copy of an operation from another Graph under a specified scope. Given an `Operation` `org_instance` from one `Graph`, initializes and returns a copy of it from another `Graph`, under the specified scope (default `""`). The copying is done recursively, so any `Operation` whose output is required to evaluate t...
def GqN2(lQtQ, HHfS, kc1W, rrBf=''): if rrBf != '': Dokz = rrBf + '/' + lQtQ.name else: Dokz = lQtQ.name CVIQ = dict(((WKvO.name, WKvO) for WKvO in kc1W)) if Dokz in CVIQ: return HHfS.get_tensor_by_name(CVIQ[Dokz].name) try: D628 = HHfS.as_graph_element(Dokz, allow_te...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HsFE(lQtQ, pNZh, rrBf=''):\n if rrBf != '':\n Dokz = rrBf + '/' + lQtQ.name\n else:\n Dokz = lQtQ.name\n return pNZh.as_graph_element(Dokz, allow_tensor=True, allow_operation=True)", "def XqH0(lQtQ, HHfS, rrBf=''):\n if not isinstance(lQtQ, iQnE):\n raise TypeError(str(lQtQ) ...
[ "0.77009594", "0.7223673", "0.5707519", "0.55270463", "0.5391068", "0.5240481", "0.52279663", "0.51939565", "0.51422054", "0.5068282", "0.50412333", "0.5008318", "0.49972668", "0.49842364", "0.49809194", "0.49085328", "0.49025807", "0.48967817", "0.48869377", "0.48471335", "0...
0.769516
1
Given an `Operation` instance from some `Graph`, returns its namesake from `graph`, under the specified scope (default `""`). If a copy of `org_instance` is present in `graph` under the given `scope`, it will be returned.
def HsFE(lQtQ, pNZh, rrBf=''): if rrBf != '': Dokz = rrBf + '/' + lQtQ.name else: Dokz = lQtQ.name return pNZh.as_graph_element(Dokz, allow_tensor=True, allow_operation=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XE_i(mWFP, pNZh, Id4K):\n with pNZh.as_default():\n if mWFP not in Id4K:\n with ZylS.name_scope(mWFP) as rrBf:\n Id4K[mWFP] = rrBf\n return ZylS.name_scope(Id4K[mWFP])", "def GqN2(lQtQ, HHfS, kc1W, rrBf=''):\n if rrBf != '':\n Dokz = rrBf + '/' + lQtQ.name...
[ "0.55972886", "0.5518905", "0.52510613", "0.5225995", "0.51589733", "0.509764", "0.50343996", "0.5020464", "0.4878269", "0.48743412", "0.48486558", "0.4842584", "0.48090503", "0.47804478", "0.47511098", "0.47458586", "0.47375217", "0.4728693", "0.4690386", "0.46869633", "0.46...
0.65003526
0
Check for validity of a password.
def UpdD(L03z: CompleteSignupForm, Jyyj: PasswordField) -> None: from run import config kw5p = int(config['MIN_PWD_LEN']) x2MA = int(config['MAX_PWD_LEN']) wbm8 = len(Jyyj.data) if wbm8 == 0: raise sUXu('new password cannot be empty') if wbm8 < kw5p or wbm8 > x2MA: raise sUXu(f'P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tWk5(YKHO, jTXt):\n if YKHO.password_regex.search(jTXt) is not None:\n print('Correct password')\n return True\n else:\n print('Wrong password')\n return False", "def kOTF(NtEF, jTXt):\n BHGE = ZbWC.search('\\\\d+', jTXt)\n PVq6 = ZbWC.search('[A-Z]+', jTXt)\n Fb9w ...
[ "0.82361525", "0.81910443", "0.8176714", "0.81728435", "0.8153556", "0.81447965", "0.81328094", "0.80977815", "0.8082152", "0.8075861", "0.80493385", "0.8040423", "0.80356884", "0.8032196", "0.80199283", "0.80061185", "0.7993979", "0.79896325", "0.79846525", "0.7963109", "0.7...
0.0
-1
Check if the passed email is already in use.
def ZRDd(I2Wr: bool=False) -> YrBT: def Fkc4(L03z, Jyyj): uJjO = -1 if not I2Wr else L03z.user.id CBIr = mv1M.query.filter(mv1M.email == Jyyj.data).first() if CBIr is not None and CBIr.id != uJjO and (len(Jyyj.data) > 0): raise sUXu('This address is already in use') return F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eSEi(YKHO, D3lj):\n QePW = YKHO.req_factory.post('unused_url', data={'new_email': D3lj, 'password': 'test'})\n QePW.user = YKHO.user\n YKHO.assertFailedRequest(YKHO.run_request(QePW), 'An account with this e-mail already exists.')", "def KJ4h(Hxmi: str) -> bool:\n return hGhV(NJJf.email_address, ...
[ "0.7910521", "0.7538514", "0.7453208", "0.72637945", "0.72568357", "0.7036964", "0.70270187", "0.68022", "0.666322", "0.66546845", "0.6648498", "0.6647866", "0.66474634", "0.66336673", "0.6583613", "0.65820855", "0.64584386", "0.64489746", "0.64347625", "0.6349496", "0.632682...
0.62104756
28
Validate if the repeated password is the same as 'password'.
def Gy02(L03z: CompleteSignupForm, Jyyj: PasswordField) -> None: if Jyyj.data != L03z.password.data: raise sUXu('The password needs to match the new password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gy02(L03z, Jyyj) -> None:\n if Jyyj.data != L03z.password.data:\n raise sUXu('The password needs to match the new password')", "def z02M(YKHO):\n if 'password' in YKHO.cleaned_data and 'password_repeat' in YKHO.cleaned_data:\n if YKHO.cleaned_data['password'] != YKHO.cleaned_data['passwor...
[ "0.8312043", "0.81205213", "0.81102145", "0.7868941", "0.74847686", "0.7224185", "0.721416", "0.71873873", "0.7185018", "0.6976725", "0.697177", "0.6957016", "0.69195044", "0.69021696", "0.689425", "0.6837563", "0.6816214", "0.6767813", "0.6767484", "0.67638636", "0.6759106",...
0.8040536
3
Validate current password entered with the password stored in database.
def EVvE(L03z, Jyyj) -> None: if L03z.user is None: raise sUXu('User instance not passed to form validation') if not L03z.user.is_password_valid(Jyyj.data): raise sUXu('Invalid password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bPEj(YKHO):\n if not YKHO.user.check_password(YKHO.cleaned_data['current_password']):\n raise H6V6.ValidationError('Wrong password.')\n return True", "def SqNO(YKHO):\n RnXU = wsY0(''.join(['x' * int(YKHO.app.config['MAX_PWD_LEN'])]))\n UpdD(None, RnXU)", "def bPEj(YKHO):\n rn8m = YKH...
[ "0.79288685", "0.7620796", "0.75543356", "0.75177693", "0.7437509", "0.74217004", "0.74136174", "0.74116725", "0.7390938", "0.73856384", "0.7331894", "0.7311954", "0.728966", "0.72892106", "0.726398", "0.7241312", "0.7228408", "0.7227566", "0.7209986", "0.71687925", "0.716046...
0.76065063
2
Explores all root nodes and terminates
def WflK(tZuJ): rT9S = tZuJ.node_map[0].children.copy() hXNa(rT9S) wspz = [] for Q6kx in rT9S: Sr1w = jth9.deepcopy(tZuJ) wspz.append(Sr1w) Q6kx.observe() Sr1w = jth9.deepcopy(tZuJ) wspz.append(Sr1w) return zip(wspz, [Q6kx.label for Q6kx in tZuJ.observed_nodes] + [0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOZ5(YKHO):\n YKHO.root = None\n YKHO.action = None\n YKHO.dist_probability = None", "def lHli(YKHO):\n YKHO.children = []\n for Z9rn in YKHO.pos.moves():\n yCTS = YKHO.pos.move(Z9rn)\n if yCTS is int:\n YKHO.children = [pin7(YKHO.net, yCTS, Z9rn)]\n Q6kx = pin7...
[ "0.64291155", "0.6415831", "0.6400718", "0.633354", "0.63218606", "0.63041884", "0.61008126", "0.6015183", "0.60115045", "0.599604", "0.59802413", "0.59761983", "0.59730256", "0.593634", "0.59228206", "0.5920266", "0.5903833", "0.58932805", "0.58878696", "0.58698523", "0.5854...
0.0
-1
Returns true if numeric_string is composed by zeros
def u8gs(YKHO, HmBO): for FGW3 in HmBO: if FGW3 != '0': return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgEI(YKHO):\n return len(YKHO._digits) == 1 and YKHO._digits[0] == YKHO.Symbols.ZERO.value", "def cV7v(vIwR, xK3g):\n return True", "def cmyg(YKHO, w2Td):\n try:\n float(w2Td)\n return True\n except ValueError:\n return False", "def dece(KCHu):\n if KCHu == False or KC...
[ "0.6928954", "0.6816665", "0.6564357", "0.6557275", "0.6508306", "0.65027934", "0.6486621", "0.6464294", "0.6450796", "0.6447824", "0.64134127", "0.639514", "0.6373436", "0.63697636", "0.63571095", "0.6325822", "0.6323705", "0.6307757", "0.62969565", "0.6285611", "0.6280963",...
0.84920955
0
Test deploy s3 backend result.
def aJYi(eFny: Result) -> None: assert eFny.exit_code != 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eFny(T1Ea: CliRunner, Qetl: Path) -> bDy6[nQ3j]:\n yield T1Ea.invoke(GSyo, ['deploy', '--tag', 'test'], env={'CI': '1'})\n RDuA.rmtree(NJFQ / '.runway', ignore_errors=True)\n RDuA.rmtree(NJFQ / '.terraform', ignore_errors=True)\n RDuA.rmtree(NJFQ / 'terraform.tfstate.d', ignore_errors=True)\n (N...
[ "0.7319608", "0.70846677", "0.681071", "0.6755746", "0.66679525", "0.66224587", "0.6605111", "0.65455836", "0.65260255", "0.64875156", "0.6467467", "0.6454232", "0.6451846", "0.6424447", "0.64181495", "0.6399061", "0.6383198", "0.63712394", "0.63166744", "0.6306198", "0.62647...
0.8108288
0
Returns a 3D Tensor object representing the image as RGB.
def GgRL(pmON: Path) -> ZylS.Tensor: ThLH = ZylS.io.read_file(str(pmON)) j3sf = ZylS.io.decode_jpeg(ThLH, channels=3) return j3sf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QnV5(YKHO):\n Exmq = YKHO.z[:, :, dxBm]\n return Exmq * YKHO.c", "def yYbR(LNo8: tf.Tensor) -> ZylS.Tensor:\n WKvO, LVAh, epBp = ZylS.unstack(LNo8, axis=-1)\n w7_P = WKvO / 100\n DIi8 = LVAh / 100\n p9ny = epBp / 100\n kDk3 = w7_P * 3.2406 + DIi8 * -1.5372 + p9ny * -0.4986\n xsx2 = w7...
[ "0.705571", "0.69729817", "0.66338193", "0.6469118", "0.6360668", "0.62437516", "0.6156353", "0.6130597", "0.6076949", "0.60362107", "0.6008963", "0.60069484", "0.59681296", "0.5915794", "0.59057957", "0.5877763", "0.58614", "0.58516264", "0.5843878", "0.58382493", "0.5775189...
0.60449916
9
Reads a yaml file and returns a dict representation of it
def hOQa(xzSM): bo34.debug('Attempting to load configuration file - ' + xzSM) Nu1S = None try: with open(xzSM, 'r') as Nu1S: GPtr = eJb6.safe_load(Nu1S) bo34.info('Loaded configuration') return GPtr finally: if Nu1S: bo34.info('Closing configur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M2Ye(VqRE: str) -> cuzp:\n return eJb6.safe_load(Nwr9(VqRE))", "def xRMc(SGPW: str) -> dict:\n with open(SGPW, 'r', encoding='utf8') as AUpj:\n tbx9 = eJb6.safe_load(AUpj)\n G9jH.info(f'Yaml file {SGPW} parsed!')\n return tbx9", "def f9B0(qaEx: str) -> dict:\n assert qaEx.endswith...
[ "0.824739", "0.8133218", "0.7990602", "0.79682404", "0.78804845", "0.7854786", "0.78105295", "0.76530236", "0.761646", "0.75974536", "0.75883496", "0.7539582", "0.74978906", "0.7462577", "0.7425986", "0.73968613", "0.7366731", "0.73637956", "0.7294568", "0.729267", "0.7276272...
0.6427831
73
r""" Given two vectors a and b, return the dot product (\hat{a}).b.
def IvSW(jzdc, Fg_i): chmV = jzdc / oyIN.linalg.norm(jzdc) return oyIN.dot(chmV, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(len(jzdc))]))", "def BJ1H(jzdc, Fg_i):\n return jzdc[0] * Fg_i[0] + jzdc[1] * Fg_i[1] ...
[ "0.89196104", "0.86572", "0.85203725", "0.8435241", "0.83679235", "0.8347663", "0.82052124", "0.8159955", "0.8116322", "0.8096167", "0.8087081", "0.8084914", "0.80606186", "0.8037773", "0.80159616", "0.7991759", "0.7959075", "0.7959013", "0.79321116", "0.7878579", "0.7854872"...
0.0
-1
r""" Given two vectors a and b, return the gradient of the norm of the dot product (\hat{a}).b w/r.t. a.
def Z6Sb(jzdc, Fg_i): return oyIN.dot(jaWK(jzdc), Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BJ1H(jzdc, Fg_i):\n if len(jzdc) != len(Fg_i):\n raise Exception('Input vectors must be of same length, not %d and %d' % (len(jzdc), len(Fg_i)))\n return float(sum([jzdc[YRbF] * Fg_i[YRbF] for YRbF in range(len(jzdc))]))", "def zdHr(jzdc, Fg_i):\n U5bT = 0.0\n for YRbF in range(len(jzdc)):...
[ "0.73145396", "0.6951153", "0.67704046", "0.6695468", "0.66618603", "0.6641333", "0.6615133", "0.65799725", "0.6558491", "0.6537899", "0.65082276", "0.64963293", "0.64158374", "0.64007926", "0.63591534", "0.63305676", "0.6247301", "0.624375", "0.6226108", "0.62196106", "0.621...
0.0
-1
r""" Given two vectors a and b, return the cross product (\hat{a})xb.
def KS0v(jzdc, Fg_i): chmV = jzdc / oyIN.linalg.norm(jzdc) return oyIN.cross(chmV, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WHx2(jzdc, Fg_i):\n return iArr(jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0])", "def WHx2(jzdc, Fg_i):\n return oyIN.array([jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * ...
[ "0.8755098", "0.8478476", "0.8446517", "0.8416587", "0.8380508", "0.8119657", "0.81027275", "0.78738904", "0.7872392", "0.7715274", "0.77144223", "0.75706947", "0.7513075", "0.74758035", "0.7464408", "0.7436238", "0.7371955", "0.7364403", "0.73624307", "0.7351102", "0.7313862...
0.80847013
7
r""" Given two vectors a and b, return the norm of the cross product (\hat{a})xb.
def AUnE(jzdc, Fg_i): chmV = jzdc / oyIN.linalg.norm(jzdc) return oyIN.linalg.norm(oyIN.cross(chmV, Fg_i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JNxw(jzdc, Fg_i):\n Z9rn = oyIN.cross(jzdc, Fg_i)\n u54L = PZyS(Z9rn.dot(Z9rn))\n return Z9rn / u54L if u54L > 0 else Z9rn", "def WHx2(jzdc, Fg_i):\n return iArr(jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0])", "def KS0v(jzdc...
[ "0.8134442", "0.7775754", "0.764184", "0.7555269", "0.7488114", "0.74775994", "0.74265224", "0.7247486", "0.72362244", "0.72033066", "0.714692", "0.7044095", "0.7041369", "0.70292693", "0.6954864", "0.69045866", "0.6894118", "0.6864826", "0.6839023", "0.68195075", "0.68183494...
0.76270884
3
Test that pinctrl headers are generated correctly.
def BGcA(nPrm, ZqHk): b8V_(nPrm, ZqHk) Zw3T = ('gd32f888x(0-1)xx-pinctrl.h', 'gd32f888x(2-3)xx-pinctrl.h', 'gd32f888y(0-1)xx-pinctrl.h', 'gd32f999x(0-1)xx-pinctrl.h', 'gd32f999x(2-3)xx-pinctrl.h', 'gd32f999y(0-1)xx-pinctrl.h') for nUeQ in Zw3T: IRmK = nPrm / nUeQ Qwvr = ZqHk / nUeQ a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RNie(YKHO):\n pass", "def n_h0(YKHO):\n YKHO.assertEqual(SNrO(**YKHO.mac_plain), YKHO.auth_plain)\n YKHO.assertEqual(SNrO(**YKHO.mac_body), YKHO.auth_body)\n YKHO.assertEqual(SNrO(**YKHO.mac_both), YKHO.auth_both)", "def zHgm(YKHO):\n pass", "def CVqs(YKHO):\n pass", "def G4Hm(YKHO):\...
[ "0.5954903", "0.580561", "0.5766719", "0.5656653", "0.5644531", "0.563073", "0.55938345", "0.5570545", "0.5544761", "0.5541444", "0.55347157", "0.5507324", "0.54649055", "0.5443585", "0.5432881", "0.54287153", "0.54147935", "0.54058355", "0.5402034", "0.53688896", "0.5355705"...
0.0
-1
Unit of measurement this thermostat expresses itself in.
def b82i(YKHO): return jryT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b82i(YKHO):\n return YKHO.device.unit()", "def b82i(YKHO):\n return YKHO.temperature_unit", "def b82i(YKHO):\n return None", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit", "def b82i(YKHO):\n return YKHO._unit...
[ "0.83797014", "0.83081", "0.829437", "0.82849425", "0.82849425", "0.82849425", "0.82849425", "0.82849425", "0.82849425", "0.82849425", "0.82849306", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458", "0.8264458...
0.77996516
49
Helper to recompute learning rate; most helpful in eagermode.
def weSO(): qjah = ZylS.divide(PsQ8, IF_C) qqvz = ZylS.divide(Aak1, C00Q) ZSbU = ZylS.pow(qjah, qqvz) return ZylS.multiply(IF_C, ZSbU, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)", "def fggk(YK...
[ "0.7688023", "0.7537041", "0.7499854", "0.7494561", "0.7467328", "0.7441302", "0.7387377", "0.7375683", "0.7375683", "0.7252527", "0.72324973", "0.7211719", "0.7201351", "0.716078", "0.70632654", "0.7041095", "0.7006256", "0.7006177", "0.6986262", "0.6985258", "0.69581175", ...
0.0
-1
Helper to recompute learning rate; most helpful in eagermode.
def x0CH(): iKds = ZylS.divide(IF_C, PsQ8) qqvz = ZylS.divide(Aak1, C00Q) ZSbU = ZylS.pow(iKds, qqvz) return ZylS.multiply(PsQ8, ZSbU, name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WVy8(YKHO):\n YKHO.n_steps += 1\n tspZ = YKHO.factor * YKHO._get_lr_scale()\n for Lwm5 in YKHO._optimizer.param_groups:\n Lwm5['lr'] = tspZ", "def fggk(YKHO):\n YKHO.scheduler.step()\n tspZ = YKHO.optimizer.param_groups[0]['lr']\n print('learning rate = %.7f' % tspZ)", "def fggk(YK...
[ "0.76880443", "0.75364", "0.7499322", "0.74952453", "0.7467178", "0.744076", "0.7387276", "0.737572", "0.737572", "0.72512084", "0.72316664", "0.7211402", "0.72014195", "0.7160985", "0.7064323", "0.70407027", "0.7007683", "0.7005778", "0.6986938", "0.6984599", "0.69577515", ...
0.0
-1
Pads the given tensor along the height and width dimensions with `num` 0s on each side
def hVLt(vhpA, mLGw=1): return ZylS.pad(vhpA, [[0, 0], [mLGw, mLGw], [mLGw, mLGw], [0, 0]], 'CONSTANT')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(vhpA):\n LkVj = ZylS.constant([[0, 0], [0, 10], [0, 0]])\n yvT9 = ZylS.pad(vhpA, LkVj, 'CONSTANT', constant_values=0)\n return yvT9", "def IPnV(vhpA):\n fdMZ = len(vhpA.shape)\n assert fdMZ > 0\n dvgN = _WqI.stack([[0, j0VL]] + [[0, 0]] * (fdMZ - 1))\n BafG = (Ep8u,) + tuple(vhpA.sh...
[ "0.6779519", "0.66084576", "0.6369796", "0.6293441", "0.6105821", "0.6037869", "0.60302526", "0.6009469", "0.6005366", "0.590743", "0.59034216", "0.58852917", "0.5881324", "0.58679533", "0.58548045", "0.5791917", "0.5782444", "0.56984186", "0.569474", "0.56496835", "0.5639351...
0.77457047
0
Creates copy of sentence with leading blanks, if any, removed.
def BDtW(YKHO, yAmx): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mm5d(yAmx):\n return ZbWC.sub(f'[{juOp}]', ' ', aUcs(yAmx).strip().lower()).replace(' ', ' ')", "def mrzr():\n Selw = B6Hl()\n assert Selw.remove_single_space('this is a test answer') == 'thisisatestanswer'", "def mQFJ(YKHO) -> None:\n YKHO.text = ZbWC.sub('\\\\s[^\\n\\\\s]\\\\s', ' ', YKHO.t...
[ "0.6741744", "0.64187455", "0.64060426", "0.6366195", "0.631605", "0.6231962", "0.62179965", "0.608996", "0.5993996", "0.59798205", "0.5916025", "0.58860064", "0.5876743", "0.5866046", "0.58414435", "0.5829963", "0.5817878", "0.580323", "0.57795715", "0.57793796", "0.57610077...
0.80456704
0
Get the filter type.
def v35O(YKHO): return YKHO.filter
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FRul(YKHO, l57s: str) -> AzJI[str, str]:\n return YKHO.types[YKHO.filters.index(l57s)]", "def v35O(YKHO, type: int) -> int:\n ...", "def hEKL(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['FilterEventTypeItem']]]]:\n return qe4Y.get(YKHO, 'event_type')", "def dkDL(PJWX=False):\n if PJWX:\n ...
[ "0.79032725", "0.7408463", "0.71033245", "0.6734105", "0.65543044", "0.6519243", "0.6412073", "0.6349868", "0.6349868", "0.6337962", "0.633497", "0.63286203", "0.62999064", "0.62895477", "0.6281994", "0.62812275", "0.62766963", "0.6266968", "0.61978245", "0.61978245", "0.6186...
0.69181424
3
Get the boundary of magnitude under the current filter type.
def qPhD(YKHO): Bx88 = JNix RrHW = JNix if YKHO.filter == YKHO.FilterU: Bx88 = 7.94 RrHW = 14.8 elif YKHO.filter == YKHO.FilterG: Bx88 = 9.74 RrHW = 16.17 elif YKHO.filter == YKHO.FilterR: Bx88 = 9.56 RrHW = 15.73 elif YKHO.filter == YKHO.FilterI: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(YKHO):\n return PZyS(YKHO & YKHO)", "def x3Y0(YKHO):\n return YKHO.magflux", "def zXil(YKHO):\n return YKHO._boundary", "def zXil(YKHO):\n if not hasattr(YKHO, '_hessian_boundary'):\n YKHO.maskBoundaries()\n return YKHO._hessian_boundary", "def fQpu(YKHO):\n if YKHO._color...
[ "0.64608544", "0.6194449", "0.61099595", "0.60122204", "0.5938468", "0.5933466", "0.58856344", "0.5867662", "0.5858901", "0.5820216", "0.5798565", "0.5758791", "0.5734439", "0.572457", "0.57144994", "0.5709058", "0.56948704", "0.56791246", "0.56791246", "0.5657116", "0.564364...
0.8350745
0
All the logic to move, and the game logic goes here. Normally, you'll call update() on the sprite lists that need it.
def QdZT(YKHO, OeYL): YKHO.explosions_list.update() if YKHO.countdown > 101: YKHO.countdown = YKHO.countdown - 1 print(len(YKHO.ball_list)) for nYVo in YKHO.ball_list: nYVo.x = nYVo.x + nYVo.dx nYVo.y = nYVo.y + nYVo.dy if nYVo.gettingbigger: if nYVo.size >= n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J8cm(YKHO):\n if not YKHO.game_over:\n YKHO.all_sprites_list.update()", "def QdZT(YKHO):\n YKHO.moving_sprites.update()\n YKHO.static_sprites.update()\n YKHO.camera.update(YKHO.player)", "def QdZT(YKHO):\n if YKHO.able_to_move:\n YKHO.pix_pos += YKHO.direction * YKHO.speed\n ...
[ "0.81334394", "0.7563454", "0.7412635", "0.7385562", "0.7198482", "0.71573585", "0.7144947", "0.7115579", "0.70487356", "0.7024642", "0.6959462", "0.6952431", "0.6950409", "0.68809843", "0.673952", "0.67373407", "0.6732356", "0.6701463", "0.6694559", "0.6693119", "0.6690788",...
0.0
-1
Model with only a dense layer to evaluate the different embeddings
def n8cN(f9FC='None', DMw4='default', Ybg9=18, KLk8=100, jXxl=100000): yokr(0) PVng(0) if f9FC != 'None': wjQX = S8de(embedding_path=f9FC) C3ST = ileL() if f9FC == 'None': C3ST.add(DilS(jXxl, 1000, input_length=KLk8, trainable=True, mask_zero=True)) else: C3ST.add(wjQX.ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Gv23(YKHO):\n vHnr = X6a0(shape=(YKHO.input_length,), dtype='int32', name='input')\n if YKHO.embedding_matrix is None:\n wjQX = DilS(output_dim=YKHO.embedding_size, input_dim=YKHO.vocabulary_size + 1, input_length=YKHO.input_length, mask_zero=True, name='embedding')(vHnr)\n else:\n wjQX ...
[ "0.722294", "0.7194703", "0.714891", "0.7148304", "0.7055958", "0.6983941", "0.69585645", "0.6930824", "0.69198096", "0.6888874", "0.68449", "0.68420976", "0.68226284", "0.6785886", "0.6682099", "0.66688156", "0.6665962", "0.66652775", "0.66593367", "0.66578126", "0.6648026",...
0.0
-1
Returns whether the suffix/ character at index i is a leftmost Stype
def w5Ww(YRbF, a1PO): return a1PO[YRbF] == x1DP and a1PO[YRbF - 1] == q908
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def llNc(YKHO, KCHu):\n Q6kx, l4XF = YKHO.followPath(KCHu)\n if Q6kx is None:\n return False\n if l4XF is None:\n return '$' in Q6kx.out\n else:\n return Q6kx.lab[l4XF] == '$'", "def E5M8(Q6uT):\n E5M8 = Q6uT[-1:] + Q6uT[1:-1] + Q6uT[0:1]\n return E5M8", "def xuwD(Ty9i, K...
[ "0.5515776", "0.5472415", "0.5388456", "0.53278637", "0.52836365", "0.52449006", "0.52246815", "0.5214051", "0.52047104", "0.5159498", "0.5157829", "0.5084014", "0.50627506", "0.5054812", "0.50469124", "0.50406426", "0.5028765", "0.50171703", "0.49872115", "0.49785116", "0.49...
0.5681686
0
Finds the positions of all lms_suffixes
def gDxK(a1PO, exwG): oeNL = qw7D('l') for YRbF in range(exwG): if a1PO[YRbF] == x1DP and a1PO[YRbF - 1] == q908: oeNL.append(YRbF) return oeNL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VyVR(YKHO):\n TK2h = YKHO.short_sf.get_suffixes()\n YKHO.assertEqual(TK2h, [(0, 0), (1, 1), (0, 1), (0, 2), (1, 0), (1, 2)])", "def xS0i(YKHO):\n TK2h = YKHO.random_sf.get_suffixes()\n eS_U = sum([len(bFC9) for bFC9 in YKHO.rand_gs.values()])\n myd5 = len(TK2h)\n YKHO.assertEqual(myd5, eS_U...
[ "0.72249657", "0.6794337", "0.6647936", "0.6337083", "0.61419636", "0.60550034", "0.5958417", "0.58112794", "0.57781327", "0.56907856", "0.5635941", "0.5580855", "0.54999554", "0.5482387", "0.54709697", "0.5468816", "0.54662097", "0.53341466", "0.53061426", "0.52247465", "0.5...
0.75250655
0
Initialises a new 'AssetModel' instance.
def FIMM(YKHO, AOQ4=None, vlQJ=None, *qIxc, **lcZy): YKHO._AssetInfo = None YKHO.AssetInfo = AOQ4 YKHO._ErpInventoryCounts = [] YKHO.ErpInventoryCounts = [] if vlQJ is None else vlQJ super(aFpg, YKHO).__init__(*qIxc, **lcZy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, *, l87X: pulumi.Input['AssetModelTypeName'], xC3W: Optional[pulumi.Input['AssetModelAttributeArgs']]=None, AcYW: Optional[pulumi.Input['AssetModelMetricArgs']]=None, SZFh: Optional[pulumi.Input['AssetModelTransformArgs']]=None):\n qe4Y.set(Ro_8, 'type_name', l87X)\n if xC3W is not None:\n ...
[ "0.6740592", "0.6569173", "0.6345981", "0.63226545", "0.6281654", "0.62780106", "0.62679225", "0.62566185", "0.62411904", "0.61997217", "0.6188741", "0.61804986", "0.6174497", "0.6137742", "0.6137742", "0.6137742", "0.6137742", "0.6132694", "0.6094634", "0.60822076", "0.60612...
0.6673079
1
Get train and test online environment dataloaders for the given params
def wcRP(NArs): sEAN = aWPX.get_environment(**NArs['environment']) O0pk = NyTb(environment=sEAN, dataset_len=NArs['dataset']['num_train_samples'], number_of_frames=NArs['dataset']['rollout']['seq_length'], delta_time=NArs['dataset']['rollout']['delta_time'], number_of_rollouts=NArs['optimization']['batch_size']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uz_9(NArs):\n O0pk = jkXC(NArs['dataset']['train_data'])\n P39p = ht2j.utils.data.DataLoader(O0pk, shuffle=True, batch_size=NArs['optimization']['batch_size'])\n ZS9W = jkXC(NArs['dataset']['test_data'])\n a4cW = ht2j.utils.data.DataLoader(ZS9W, shuffle=True, batch_size=NArs['optimization']['batch_...
[ "0.8129935", "0.70242244", "0.6894393", "0.68715394", "0.6855566", "0.6817197", "0.67631644", "0.6762964", "0.6752037", "0.65683234", "0.65544677", "0.65463495", "0.65087974", "0.64979017", "0.6430376", "0.64121747", "0.64121747", "0.64121747", "0.64121747", "0.64121747", "0....
0.8401608
0
Get train and test online environment dataloaders for the given params
def Uz_9(NArs): O0pk = jkXC(NArs['dataset']['train_data']) P39p = ht2j.utils.data.DataLoader(O0pk, shuffle=True, batch_size=NArs['optimization']['batch_size']) ZS9W = jkXC(NArs['dataset']['test_data']) a4cW = ht2j.utils.data.DataLoader(ZS9W, shuffle=True, batch_size=NArs['optimization']['batch_size']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wcRP(NArs):\n sEAN = aWPX.get_environment(**NArs['environment'])\n O0pk = NyTb(environment=sEAN, dataset_len=NArs['dataset']['num_train_samples'], number_of_frames=NArs['dataset']['rollout']['seq_length'], delta_time=NArs['dataset']['rollout']['delta_time'], number_of_rollouts=NArs['optimization']['batch...
[ "0.8401118", "0.70235455", "0.6893315", "0.686973", "0.6854565", "0.6815096", "0.6761742", "0.6760609", "0.67499745", "0.6566577", "0.65532", "0.6544684", "0.6507047", "0.6495713", "0.64295375", "0.64101946", "0.64101946", "0.64101946", "0.64101946", "0.64101946", "0.64101946...
0.81288964
1
Loads the documents used to train an encoder, either from disk or from memory (if already loaded).
def yOPc(YKHO, MnDN, pmON): if pmON in YKHO._encoder_docs: YKHO._logger.debug('Loading documents from cache: ' + pmON) return YKHO._encoder_docs[pmON] else: YKHO._logger.debug('Loading documents from disk: ' + pmON) Q5mJ = MnDN.load_documents(pmON) YKHO._encoder_docs[pmON...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFqp(YKHO):\n if Hy7s.path.isfile(YKHO.vocab_path):\n YKHO.vocab_processor = YKHO.load_vocab()\n else:\n YKHO.vocab_processor = YKHO.train_vocab()\n if YKHO.data_path:\n YKHO.x, YKHO.y = YKHO.load_data(YKHO.need_shuffle)\n print('Max document length: {}'.format(YKHO.max_doc))",...
[ "0.7484016", "0.66754264", "0.6650122", "0.65432966", "0.6527745", "0.65002805", "0.6311801", "0.6221456", "0.6166345", "0.6144936", "0.6127881", "0.6120437", "0.6078949", "0.6042302", "0.6028145", "0.5994733", "0.59868973", "0.5975017", "0.59618336", "0.5949019", "0.59327626...
0.65124655
5
Asserts that all playback frames have a valid move id
def Nlh0(YKHO): t6FI = YKHO.program.simulation_result.playback_frames ltKD = len(YKHO.program.steps) for d6pt, nUno in enumerate(t6FI): tO9_ = f'Frame {d6pt} has invalid move id {nUno.move_id}. Move id must be between 1 and {ltKD}' YKHO.assertGreaterEqual(nUno.move_id, 1, tO9_) YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ex9n(YKHO):\n Sh4w = 0\n for KCHu in YKHO.program.steps:\n Sh4w += 1\n YKHO.assertNotEqual(len(KCHu.playback_frames), 0, f'Step {KCHu.name} has no playbackFrames. Move Id {Sh4w} is missing')", "def Cizy(YKHO):\n paSp = YKHO.program.steps\n for KCHu in paSp:\n for d6pt, nUno i...
[ "0.79082274", "0.6655439", "0.6448554", "0.61946905", "0.617997", "0.6144759", "0.6050009", "0.60432184", "0.59868485", "0.59771174", "0.59502435", "0.5923309", "0.5894237", "0.58796144", "0.58442533", "0.58434385", "0.5746185", "0.57271564", "0.57242477", "0.57230914", "0.57...
0.85081476
0
converts TSA to 4digit string for lookup in a CSV table
def vRwe(xhUf): ulZy = RWRJ(xhUf) hvDl = ulZy[1:3] + ulZy[4:] return hvDl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RWRJ(xhUf):\n if type(xhUf) != str:\n xhUf = str(xhUf)\n xhUf = xhUf.strip()\n if len(xhUf) < 4:\n HwRy.exit('Enter TSA with at least 4 digits')\n elif len(xhUf) == 4:\n xhUf = '0' + xhUf[:2] + '0' + xhUf[2:]\n elif len(xhUf) == 5:\n if xhUf[0] == '0':\n xh...
[ "0.68188435", "0.5983041", "0.54606766", "0.54258645", "0.5421599", "0.53421855", "0.53256106", "0.53180027", "0.52802855", "0.52759165", "0.5239025", "0.5234493", "0.52235603", "0.52103114", "0.5185288", "0.51835394", "0.51824486", "0.51794976", "0.5172968", "0.514658", "0.5...
0.69214207
0
returns a list of all nonhidden files in a given directory
def JGsS(AGPF, k_5b): RRlC = Hy7s.listdir(AGPF) RRlC.sort(reverse=True) RRlC = [WKvO for WKvO in RRlC if not WKvO.startswith(k_5b)] return RRlC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfjS(pmON):\n return SC2F.glob(Hy7s.path.join(pmON, '*'))", "def zwEh(pmON):\n return [mWFP for mWFP in Hy7s.listdir(pmON) if not mWFP.startswith('.')]", "def kCRL(pmON):\n return SC2F(Hy7s.path.join(pmON, '*'))", "def d65G(AGPF):\n SLBz = Hy7s.listdir(AGPF)\n return [WKvO for WKvO in SLBz...
[ "0.8347654", "0.8328161", "0.8201243", "0.7161072", "0.7161072", "0.7161072", "0.7161072", "0.68601865", "0.6836751", "0.6798408", "0.67915094", "0.65953726", "0.658303", "0.6581735", "0.65731114", "0.65152586", "0.64749", "0.64631164", "0.6457509", "0.64544386", "0.6437079",...
0.723067
3
Checks whether or not the given user or her groups has the given permission for the given object.
def M1EP(YKHO, XnWo, IuXB, YEnM=None): if YEnM is None: return False if not XnWo.is_authenticated(): return False try: IuXB = 'can_%s' % IuXB.split('.')[-1].split('_')[0] except IndexError: return False m5r4 = DDS9.objects.get_for_model(YEnM) Wa7t = hhAN.objects.f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m4il(YKHO, QePW, tTee, YEnM):\n HM3F = QePW.user.grupo.name == 'Administrador'\n XfTk = YEnM.grupo.name == 'SuperUsuario' or YEnM.grupo.name == 'Administrador'\n if HM3F and XfTk:\n return False\n return True", "def m4il(YKHO, QePW, tTee, YEnM):\n if QePW.method in w0rQ.SAFE_METHODS:\n ...
[ "0.77086645", "0.75715464", "0.7551632", "0.74548435", "0.74548435", "0.742661", "0.7400372", "0.7373459", "0.735643", "0.7352607", "0.7316124", "0.7290384", "0.728106", "0.7264221", "0.7258825", "0.72262746", "0.7222477", "0.72155863", "0.72103685", "0.7197588", "0.71920514"...
0.7838363
0
Conver the lists to numpy arrays.
def sGSN(yirw): if len(yirw['points']) == 0: return {'points': None, 'evaluations': None, 'var_noise': None} nPrm = {} KR0Q = len(yirw['points']) rDQF = len(yirw['points'][0]) LTIa = oyIN.zeros((KR0Q, rDQF)) i94Y = oyIN.zeros(KR0Q) ik3z = None if len(yirw['var_noise']) > 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTDd(jzdc: List[tvm.nd.NDArray]) -> x1iM[oyIN.ndarray]:\n assert jzdc is not None, 'Empty result cannot be converted to numpy'\n return [WKvO.numpy() for WKvO in jzdc]", "def nU0b(YKHO, Yw_3):\n for YRbF in range(0, len(Yw_3)):\n if YKHO.image_size is not None:\n VXjJ = Yw_3[YRbF]....
[ "0.7544344", "0.6927558", "0.6877729", "0.6841456", "0.68395084", "0.66200143", "0.65280706", "0.65140414", "0.6422324", "0.6362602", "0.63436204", "0.6281312", "0.62410855", "0.62399143", "0.6200664", "0.61919755", "0.6104107", "0.6103991", "0.6037161", "0.6029629", "0.60129...
0.6136823
16
Conver the numpy arrays to lists.
def lpas(c0iW): i94Y = list(c0iW['evaluations']) if c0iW['var_noise'] is not None: ik3z = list(c0iW['var_noise']) else: ik3z = [] KR0Q = len(i94Y) LTIa = [list(c0iW['points'][YRbF, :]) for YRbF in Ni9Y(KR0Q)] nPrm = {} nPrm['points'] = LTIa nPrm['var_noise'] = ik3z nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKA0(Ddli):\n return [U6D_ for U6D_ in Ddli]", "def l9X7(gyIm):\n grQE = []\n for a0E5 in gyIm:\n if isinstance(a0E5, GChh.matlab.mio5_params.mat_struct):\n grQE.append(XAei(a0E5))\n elif isinstance(a0E5, oyIN.ndarray):\n grQE.append(l9X7(a0E5))\n else:\n ...
[ "0.73682904", "0.7337199", "0.73018867", "0.70192665", "0.6939759", "0.6898504", "0.6787571", "0.6594566", "0.65127116", "0.6503407", "0.6486051", "0.64760566", "0.64542955", "0.64464897", "0.632249", "0.6313819", "0.63110757", "0.6285415", "0.62850916", "0.6277751", "0.62700...
0.6645779
7
sanitize a string for comparison. fix universal newlines, strip trailing newlines, and normalize likely random values (memory addresses and UUIDs)
def aSeI(YKHO, KCHu): if not isinstance(KCHu, jKi7.string_types): return KCHu '\n re.sub matches a regex and replaces it with another.\n The regex replacements are taken from a file if the option\n is passed when py.test is called. Otherwise, the strings\n are not processed\n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRP1(Qe2y):\n if Qe2y == None:\n return\n oRP1 = Qe2y.strip('\\n')\n oRP1 = ' '.join(oRP1.split())\n return oRP1", "def GPjv(KCHu, wzH_=XwB6):\n Aofo = ''\n if len(KCHu) > wzH_:\n KCHu = KCHu[0:wzH_ // 2] + '\\n*** <snip> ***\\n' + KCHu[-wzH_ // 2:]\n Nqlg = KCHu.rstrip().s...
[ "0.69142085", "0.65796363", "0.64233685", "0.63520724", "0.6300958", "0.62753654", "0.62342876", "0.6224075", "0.62016493", "0.6117629", "0.608495", "0.60761774", "0.60543936", "0.6035738", "0.6033869", "0.59931934", "0.59805113", "0.59787613", "0.5975113", "0.59670264", "0.5...
0.57245743
78
Compute the induced velocity from a vortex ring of radius r0, located at z0,
def oUij(Mkmy, epBp, p6tM=-1, TRVV=1, cflT=0, _hZ2=0, ySVy='Saffman'): def alPO(Mkmy, epBp, p6tM=-1, TRVV=1): jzdc = oyIN.sqrt((Mkmy + TRVV) ** 2 + epBp ** 2) r8hN = 4 * Mkmy * TRVV / jzdc ** 2 k0lF = epBp ** 2 + Mkmy ** 2 + TRVV ** 2 tjUW = -2 * Mkmy * TRVV QOYf = 4.0 / jzd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y917(epBp, Z9rn=U7YL.cc.c_light_cm_s / 100000.0):\n return Z9rn * ((1 + epBp) ** 2 - 1) / ((1 + epBp) ** 2 + 1)", "def pwY9(yGTL, aCgN, Zu6A, a1PO):\n TRVV = CkYf(aCgN)\n T8d8 = CkYf(Zu6A)\n DJ5M = oyIN.dot(aCgN, Zu6A) / TRVV\n Cwt5 = 2 / TRVV - pow(T8d8, 2) / yGTL\n WKvO = R44s(yGTL, a1PO,...
[ "0.69115067", "0.62729424", "0.6116766", "0.6108478", "0.6061912", "0.6059802", "0.60324866", "0.59655434", "0.58819264", "0.5875945", "0.5872899", "0.5858533", "0.58429354", "0.5804715", "0.5785914", "0.5760519", "0.5758119", "0.5734086", "0.57088566", "0.5705639", "0.569979...
0.58222115
13
Tests if the local version is not the dev one.
def zNdd(YKHO): aEqx = False n5sN = moxu.is_local_dev() YKHO.assertEqual(aEqx, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uiAQ(YKHO):\n aEqx = False\n n5sN = moxu.is_local_dev()\n YKHO.assertEqual(aEqx, n5sN)", "def vRVJ(YKHO):\n aEqx = True\n n5sN = moxu.is_local_dev()\n YKHO.assertEqual(aEqx, n5sN)", "def PyOj(DpZH):\n return ZbWC.match('^.*\\\\.dev\\\\d+$', DpZH)", "def ktqJ(DpZH=None):\n return H...
[ "0.8591115", "0.83058125", "0.7462762", "0.69628954", "0.6770029", "0.6749504", "0.6724103", "0.6711387", "0.6704639", "0.66722286", "0.662955", "0.6587835", "0.6305156", "0.6221846", "0.61973006", "0.6160562", "0.6137554", "0.61099607", "0.6076193", "0.60631394", "0.60483307...
0.84267443
1
Tests if the local version is the not the dev one.
def uiAQ(YKHO): aEqx = False n5sN = moxu.is_local_dev() YKHO.assertEqual(aEqx, n5sN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vRVJ(YKHO):\n aEqx = True\n n5sN = moxu.is_local_dev()\n YKHO.assertEqual(aEqx, n5sN)", "def zNdd(YKHO):\n aEqx = False\n n5sN = moxu.is_local_dev()\n YKHO.assertEqual(aEqx, n5sN)", "def PyOj(DpZH):\n return ZbWC.match('^.*\\\\.dev\\\\d+$', DpZH)", "def ktqJ(DpZH=None):\n return H...
[ "0.8396262", "0.83533067", "0.73645437", "0.7018722", "0.6913196", "0.6863444", "0.68535614", "0.6809757", "0.6784189", "0.6754467", "0.6728141", "0.64851063", "0.63094544", "0.62476826", "0.61977434", "0.6132021", "0.6119249", "0.611421", "0.611007", "0.61076903", "0.6094860...
0.8503368
0
Converts path to default form (with no slash at the end)
def ks45(pmON): while pmON[len(pmON) - 1] == '/' or pmON[len(pmON) - 1] == '\\': pmON = pmON[0:-1] return pmON
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NqPW(pmON):\n if pmON == None or len(pmON) == 0 or pmON == '/':\n return '/'\n yxzR = '/' + pmON if pmON[0] != '/' else pmON\n return yxzR.replace('//', '/')", "def SqM1(pmON):\n pmON.rstrip('/')\n if not pmON.startswith('.*'):\n pmON = '/' + pmON\n pmON = ZbWC.compile('/+').s...
[ "0.7469715", "0.7436723", "0.72492105", "0.7059338", "0.7040359", "0.69737846", "0.690945", "0.6889803", "0.68541396", "0.6836067", "0.6795662", "0.6763439", "0.6721073", "0.6710526", "0.66923636", "0.6668612", "0.6655637", "0.6604171", "0.6594724", "0.6589893", "0.65788436",...
0.82352024
0
Creates an ISO 8601 string.
def mbyn(lO87, x0eS, CjKC, ROt1=0, yVtz=0, CsFy=0.0, g9FU=None): if g9FU is None: if type(CsFy) is float: g9FU = int((CsFy - int(CsFy)) * 1000000) else: g9FU = 0 lO87 = int(lO87) x0eS = int(x0eS) CjKC = int(CjKC) ROt1 = int(ROt1) yVtz = int(yVtz) CsFy ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AJqZ(YKHO):\n if YKHO.timezoneNaive():\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d' % (YKHO._year, YKHO._month, YKHO._day, YKHO._hour, YKHO._minute, YKHO._second)\n PduB = Ja1h(SED2(YKHO._tz, YKHO._t))\n return '%0.4d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d%s' % (YKHO._year, YKHO._month, YKHO._day, YKH...
[ "0.738748", "0.72034556", "0.71179396", "0.7015039", "0.6997366", "0.6990952", "0.6917153", "0.6874146", "0.6845186", "0.6825397", "0.6772207", "0.6724812", "0.6707795", "0.66871846", "0.66497374", "0.66053146", "0.6589852", "0.65883666", "0.65788174", "0.6572596", "0.6545017...
0.5632527
62
returns the raw trace of all data samples from this channel
def QmJF(YKHO): zgsA = oyIN.array([]) for XkN1 in YKHO.parent.data_block_list: zgsA = oyIN.append(zgsA, XkN1.getTrace(YKHO.signal_type, YKHO.native_channel_name)) return zgsA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m6Me(YKHO) -> h8nf[x1iM[zT4D]]:\n if YKHO._raw_traces is None:\n return None\n return list(YKHO._raw_traces)", "def gXuE(YKHO):\n return YKHO._traces[:]", "def mvm2(YKHO):\n bo34.info('%s: collect sensor data', YKHO.__class__.__name__)\n gGnb = []\n YKHO._fetch_data(gGnb)\n retu...
[ "0.6194536", "0.6104066", "0.601251", "0.60050976", "0.59835947", "0.596181", "0.59003425", "0.58792394", "0.582978", "0.58041245", "0.57996124", "0.5799008", "0.57725286", "0.57570016", "0.57159644", "0.56948435", "0.5689759", "0.56889516", "0.5684811", "0.56712675", "0.5661...
0.7301673
0
Set the value of the AccountNumber input for this Choreo. ((required, string) Your FedEx Account Number or Test Account Number.)
def ecyp(YKHO, BWXx): super(Sh63, YKHO)._set_input('AccountNumber', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lb7m(YKHO, lb7m):\n YKHO._account_number = lb7m", "def FTpm(YKHO, FTpm):\n YKHO._funding_account_account_number = FTpm", "def AwQC(YKHO, ZrNc: str):\n U5bT = YKHO._call_txtrader_api('set_account', {'account': ZrNc})\n if U5bT:\n YKHO.account = ZrNc\n return U5bT", "def ao0w(YKHO, ao...
[ "0.7494862", "0.6722283", "0.6383567", "0.6026619", "0.590429", "0.58957136", "0.58165157", "0.58165157", "0.5808072", "0.5711511", "0.5711511", "0.5711511", "0.5711511", "0.5711511", "0.5711511", "0.56486756", "0.56336063", "0.562059", "0.56119835", "0.56119835", "0.5572887"...
0.69677097
1
Set the value of the AuthenticationKey input for this Choreo. ((required, string) The Production Authentication Key or Development Test Key provided by FedEx Web Services.)
def orph(YKHO, BWXx): super(Sh63, YKHO)._set_input('AuthenticationKey', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TqtU(YKHO, rJDA):\n YKHO.request('/v1.1/auth_key', 'POST', body={'auth_key': rJDA})", "def WcAq(YKHO, rJDA):\n YKHO._api_key = rJDA", "def yElH(YKHO, rJDA):\n YKHO._analyzer.SetAPIKey(rJDA)", "def KUn3(YKHO, KUn3):\n YKHO._authentication = KUn3", "def FegH(YKHO, FegH):\n YKHO._tokenizati...
[ "0.62885904", "0.5474165", "0.5467669", "0.54638636", "0.545296", "0.52624184", "0.52489454", "0.51922363", "0.5185063", "0.518501", "0.51752347", "0.51752347", "0.51593846", "0.51539326", "0.5080486", "0.49515927", "0.4898207", "0.48373514", "0.48373514", "0.4770954", "0.474...
0.60825783
1
Set the value of the ClientReferenceID input for this Choreo. ((optional, string) A reference id provided by the client.)
def klsV(YKHO, BWXx): super(Sh63, YKHO)._set_input('ClientReferenceID', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jS4s(YKHO, OSJW):\n YKHO.reference_id = OSJW", "def OSJW(YKHO, OSJW):\n YKHO._reference_id = OSJW", "def zb3C(YKHO, zb3C):\n if zb3C is None:\n raise ValueError('Invalid value for `client_id`, must not be `None`')\n YKHO._client_id = zb3C", "def zb3C(YKHO, zb3C):\n if zb3C is None:\...
[ "0.70510787", "0.6592393", "0.572961", "0.572961", "0.56450987", "0.5561925", "0.5542874", "0.5542874", "0.5542874", "0.5542874", "0.5368134", "0.51531297", "0.5126917", "0.50657153", "0.50643486", "0.49677926", "0.49553916", "0.4943203", "0.4943203", "0.4927404", "0.4909367"...
0.64276165
2
Set the value of the CompanyName input for this Choreo. ((optional, string) Identifies the company associated with the location.)
def cspv(YKHO, BWXx): super(Sh63, YKHO)._set_input('CompanyName', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u8qZ(YKHO, u8qZ):\n YKHO._company_name = u8qZ", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def q9zX(YKHO, q9zX):\n YKHO._company = q9zX", "def u8qZ(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'company_name')", "def u8qZ(YKHO):\n ...
[ "0.79050255", "0.58283", "0.5811604", "0.5811604", "0.58108425", "0.58091545", "0.5644894", "0.5644032", "0.5541695", "0.5541695", "0.5301297", "0.5249057", "0.5198234", "0.51773447", "0.5177334", "0.51638454", "0.5083943", "0.50245047", "0.49730775", "0.48760468", "0.4876046...
0.69791114
1
Set the value of the MeterNumber input for this Choreo. ((required, string) The Production or Test Meter Number provided by FedEx Web Services.)
def TKsf(YKHO, BWXx): super(Sh63, YKHO)._set_input('MeterNumber', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PBuA(YKHO, PBuA):\n YKHO._number_value = PBuA", "def LHKC(YKHO, FGW3):\n YKHO.number = FGW3", "def cJKY(YKHO, FGW3):\n vFFL = YKHO.number\n YKHO.number = FGW3\n return vFFL", "def FGW3(YKHO, BWXx: float):\n YKHO._number = BWXx", "def IACx(YKHO, FGW3):\n YKHO.number_served = FGW3", ...
[ "0.5600567", "0.55819005", "0.541286", "0.52719426", "0.5212014", "0.5043343", "0.5043343", "0.49407005", "0.47774115", "0.47391132", "0.461555", "0.46114314", "0.4509081", "0.44401604", "0.44103974", "0.4402093", "0.43929273", "0.43421808", "0.43366542", "0.4331988", "0.4331...
0.72092104
0
Set the value of the Password input for this Choreo. ((required, password) The Production or Test Password provided by FedEx Web Services.)
def PtTa(YKHO, BWXx): super(Sh63, YKHO)._set_input('Password', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G3s8(YKHO, jTXt):\n YKHO.password = jTXt", "def G3s8(YKHO, jTXt):\n YKHO.PASSWORD = jTXt", "def G3s8(YKHO, jTXt):\n YKHO.PASS = jTXt", "def jTXt(YKHO, jTXt: str):\n YKHO._password = jTXt", "def G3s8(YKHO, jTXt):\n YKHO.cloudserver.change_password(jTXt)", "def jTXt(YKHO, jTXt):\n YKH...
[ "0.7638883", "0.76062834", "0.754238", "0.7481274", "0.747636", "0.7438323", "0.7438323", "0.7438323", "0.7438323", "0.7434047", "0.73978597", "0.7390608", "0.7290692", "0.72720623", "0.7238837", "0.7213231", "0.71962816", "0.71838737", "0.71708965", "0.71708965", "0.71588594...
0.6509622
41
Set the value of the PostalCode input for this Choreo. ((conditional, string) The postal code associated with the address being validated.)
def vEcJ(YKHO, BWXx): super(Sh63, YKHO)._set_input('PostalCode', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def kAHQ(YKHO, kAHQ):\n YKHO._postal_code = kAHQ", "def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d", "def BQ5d(YKHO, BQ5d):\n YKHO._postcode = BQ5d", "def BQ5d(YKHO, BQ5d):\n YKHO._pos...
[ "0.7558557", "0.7558557", "0.7558557", "0.6944466", "0.6944466", "0.6944466", "0.6909446", "0.67534596", "0.67515236", "0.64641523", "0.64641523", "0.64641523", "0.6186219", "0.6186219", "0.6071813", "0.606421", "0.6056432", "0.5955608", "0.5908946", "0.59030753", "0.5898676"...
0.74232686
3
Retrieve the value for the "Response" output from this Choreo execution. (The response from FedEx.)
def _O3m(YKHO): return YKHO._output.get('Response', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gje0(YKHO):\n return YKHO._response_variable", "def geh0(YKHO):\n return YKHO._response", "def T_2m(YKHO):\n Aofo = YKHO.get_response_impl()\n if YKHO.log_dest is not None:\n WOls, geh0 = Aofo\n if WOls:\n geh0 = '? ' + geh0\n else:\n geh0 = '= ' + geh...
[ "0.70524627", "0.70520693", "0.6914014", "0.6886181", "0.6611647", "0.6568172", "0.6562059", "0.6537524", "0.6537524", "0.647294", "0.63551396", "0.6274281", "0.62555087", "0.6240821", "0.6235893", "0.62195116", "0.61403584", "0.611055", "0.60943425", "0.6079117", "0.6048903"...
0.8529691
7
Compute logistic sigmoid activation
def YDYE(YKHO, epBp): return 1.0 / (1.0 + oyIN.exp(-oyIN.clip(epBp, -250, 250)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d1fz(WKvO):\n return 1.0 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + kLQb(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n return 1 / (1 + oyIN.exp(-WKvO))", "def m1Hg(WKvO):\n retur...
[ "0.838003", "0.819735", "0.819735", "0.81502354", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.8134324", "0.812058", "0.8110861", "0.8107186", "0.8099222", "0.8098866", "0.80923676", "0.80923676", "0.8088351", "0.80804044", "0.8072143", "0.80694366", ...
0.0
-1
Calculate y trajectory. No force independent of position. Periodic boundary at y = =/ ymax and reflecting at y = 0.0.
def wmXS(nxyw, V0zD, Z3uP, ChAv=True): LVAh = nxyw + JRYC * oyIN.cumsum(V0zD) while (LVAh > Z3uP).any() or (LVAh < 0.0).any(): v5T9 = LVAh > Z3uP LVAh[v5T9] = 2 * Z3uP - LVAh[v5T9] if ChAv else Z3uP tEbh = LVAh < 0.0 LVAh[tEbh] *= -1.0 return LVAh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVG_(YKHO):\n t_Ki = YKHO.t\n YKHO.t = YKHO.momentum.update(YKHO.var_momentum())\n if YKHO.opt['Monotone'] and YKHO.k > 0:\n YKHO.Y = YKHO.X + t_Ki / YKHO.t * (YKHO.ZZ - YKHO.X) + (t_Ki - 1.0) / YKHO.t * (YKHO.X - YKHO.Xprv)\n else:\n YKHO.Y = YKHO.X + (t_Ki - 1.0) / YKHO.t * (YKHO.X ...
[ "0.69759566", "0.68533254", "0.6196896", "0.6166748", "0.6121747", "0.6081692", "0.60493684", "0.60484165", "0.59897673", "0.5972642", "0.59229565", "0.58808905", "0.5869655", "0.5858238", "0.5835728", "0.58274454", "0.5813127", "0.5811749", "0.5773907", "0.57695234", "0.5748...
0.7356498
0
Establish connection to Husqvarna Automower API.
def eCGt(ajET, vPjB): from pyhusmow import API as NCK9 GPtr = vPjB.get(Sugg) if ajET.data.get(Sugg) is None: ajET.data[Sugg] = {'devices': []} nNXP = NCK9() nNXP.login(GPtr.get(kG_n), GPtr.get(mLFF)) sT2H = nNXP.list_robots() if not sT2H: return False for fQxG in sT2H: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ykhp(YKHO):\n GPtr.base_url = YKHO.get_config('host')\n GPtr.client_connection_attempts = 1\n GPtr.assume_untrusted = False\n if YKHO.get_config('insecure'):\n GPtr.assume_untrusted = True\n GPtr.credentials = BfDw.PseudoNamespace({'default': {'username': YKHO.get_config('username'), 'pas...
[ "0.66095656", "0.6298784", "0.62699634", "0.6076178", "0.5990469", "0.5970808", "0.57315", "0.5700846", "0.5609827", "0.5571661", "0.5540257", "0.55332017", "0.55294824", "0.5529294", "0.5525096", "0.5515013", "0.5499911", "0.54889244", "0.5478855", "0.54767376", "0.54600114"...
0.5161584
57
Return the id of the Automower.
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:\n return qe4Y.get(YKHO, 'id')", "def id(YKHO) -> str:...
[ "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "0.7126547", "...
0.0
-1
Return the state attributes of the automower.
def R1i3(YKHO): azoT = dict(YKHO._state) for H5ew in ['lastErrorCodeTimestamp', 'nextStartTimestamp', 'storedTimestamp']: if H5ew in azoT: if isinstance(azoT[H5ew], int): if azoT[H5ew] > 999999999999: azoT[H5ew] /= 1000.0 azoT[H5ew] = qcWV....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def upgy(YKHO):\n return YKHO._wan", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._ba_attrs", "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attri...
[ "0.7811739", "0.770392", "0.76935124", "0.76935124", "0.76499206", "0.76357394", "0.76357394", "0.7547552", "0.7512806", "0.7512612", "0.74631464", "0.74444985", "0.74444985", "0.74323195", "0.74300134", "0.74300134", "0.74300134", "0.74300134", "0.74300134", "0.74300134", "0...
0.0
-1
Return a list of dictionaries of all model inputs and outputs.
def JiDk(YKHO): fgcx = [] for or8S, cuiw in enumerate(YKHO): Csk6 = cuiw.to_dict() Csk6.update(dataset_index=or8S) fgcx.append(Csk6) return fgcx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO) -> x1iM[cuzp[str, ImMB]]:\n return [WKvO.to_dict() for WKvO in YKHO.inputs]", "def bnhr(YKHO) -> Kt_s.List[oyIN.ndarray]:\n fhcK = {gEmA.name: x5RR.to_array(gEmA) for gEmA in YKHO.onnx_model.graph.initializer}\n DTb0 = ['imageinput_Mean', 'conv_1_W', 'conv_1_B', 'batchnorm_1_mean', 'batch...
[ "0.6992733", "0.67019933", "0.6663397", "0.6651758", "0.65298784", "0.6523861", "0.6474659", "0.6449568", "0.6435706", "0.64217675", "0.64214563", "0.64214563", "0.64214563", "0.6394131", "0.6378737", "0.6372464", "0.6372464", "0.6372464", "0.6347249", "0.6332133", "0.6282717...
0.0
-1
Return a pandas DataFrame for each model and dataset.
def xpSY(YKHO, yNv6=False, htpa=True): SeSY = DFXb.df_ordered_dict(htpa) [cuiw._add_to_to_ordered_dict(SeSY, YRbF, yNv6) for YRbF, cuiw in enumerate(YKHO)] return rLdf.DataFrame(SeSY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PK3w(YKHO):\n nPrm = YKHO.read_raw_data()\n YKHO.default_header = list(nPrm.columns.values)\n YKHO.fit(nPrm.copy())\n return (dKUz(nPrm, YKHO.features), dKUz(nPrm, YKHO.targets))", "def Z2Jc(YKHO):\n ZmMI = rLdf.DataFrame(YKHO._model_dataset.copy(deep=True))\n yd5C = oyIN.arange(ZmMI.shape[...
[ "0.668858", "0.6455939", "0.64197564", "0.62756926", "0.62423587", "0.6232934", "0.6215379", "0.6152462", "0.6133652", "0.6042723", "0.6042243", "0.60094357", "0.60093355", "0.60010195", "0.6001015", "0.59704983", "0.5959645", "0.595393", "0.5941078", "0.5929311", "0.5920693"...
0.0
-1
Return a CSV for each model and dataset.
def zHPr(YKHO, Ux0P, TDw3=',', yNv6=False, htpa=True): jQ3Z = YKHO.to_df(yNv6, htpa) jQ3Z.to_csv(Ux0P, index=False, sep=TDw3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAGm(YKHO):\n YKHO.model_df.to_csv(YKHO.model_output_file)", "def PTPc(QePW):\n geh0 = rhGK(QePW, x3i3)\n return geh0", "def XyP_(YKHO):\n if YKHO.input_data.get_value(x8dn.TIME_PERIOD) == 'all':\n YKHO.header.append('Date')\n else:\n YKHO.header.append('sample id')\n ZVgY =...
[ "0.691726", "0.6896964", "0.6132257", "0.6119019", "0.6102318", "0.60807824", "0.6056371", "0.6046314", "0.60319996", "0.60079306", "0.5994343", "0.5994339", "0.59362835", "0.59146726", "0.586477", "0.58498687", "0.58485276", "0.5847168", "0.58147264", "0.579787", "0.5784347"...
0.0
-1
Function creating a list of Country object
def PTBl(o89n, hLRM='united kingdom', UqYS=0.2, KMvS=0.1, cMsa=10, XB_Z=j5P3): TBEy = [] for vxW9 in o89n: if vxW9 == hLRM: Z9rn = hgFs(name=vxW9, N=a2nL['population'].loc[vxW9], beta=UqYS, gamma=KMvS, I0=cMsa, H=XB_Z) else: Z9rn = hgFs(name=vxW9, N=a2nL['population'].loc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MpGZ(Emd4):\n return pz3A(result=[{'key': Z9rn.id, 'value': Z9rn.name} for Z9rn in zSyu.countries])", "def aUX3(lfbr):\n TBEy = list()\n for jfNl in sorted(list(lfbr)):\n if jfNl == rFGe:\n TBEy.append({'iso3': rFGe, 'name': 'World'})\n else:\n aF1U = hgFs.get_cou...
[ "0.72143734", "0.6891215", "0.67718303", "0.6683834", "0.6680371", "0.66659725", "0.64770865", "0.64471436", "0.6440009", "0.6371902", "0.63350695", "0.6317598", "0.6309646", "0.62344265", "0.6177495", "0.6133362", "0.6079091", "0.6025811", "0.6016951", "0.60031694", "0.59860...
0.7433951
0
Return the string representation of this ResourceCounter.
def zAg0(YKHO): return str(YKHO._num_rotations)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.counter)", "def zAg0(YKHO):\n return str(YKHO.__resource)", "def Eorv(YKHO):\n return str(YKHO._resource)", "def fXoN(YKHO, ewCu):\n vC9B = [0] * YKHO.nObjectTypes\n for YRbF, Z9rn in ewCu.items():\n vC9B[YRbF] = Z9rn\n return '[' + ' '.join((str(WKv...
[ "0.75005877", "0.71447617", "0.69445306", "0.69348043", "0.68757695", "0.669743", "0.66880697", "0.6676654", "0.6648977", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", "0.65759945", ...
0.0
-1
Half studentT base distribution. A HalfStudentT is the absolute value of a StudentT.
def vle1(YKHO, *qIxc, **B2fa): return PdgQ.TransformedDistribution(distribution=PdgQ.StudentT(*qIxc, **B2fa), bijector=KCQP.bijectors.AbsoluteValue(), name='HalfStudentT')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fXJ9(a1PO=1.345):\n return vg0C.robust.norms.HuberT(a1PO)", "def scUA(YKHO, a1PO, KCHu):\n LFlW = oyIN.mean(oyIN.log(YKHO.dists[a1PO, KCHu] / YKHO.dists[a1PO, a1PO]))\n _tIi = oyIN.mean(oyIN.log(YKHO.dists[KCHu, a1PO] / YKHO.dists[KCHu, KCHu]))\n return 0.5 * (LFlW + _tIi)", "def lRne(d6pt, P8o...
[ "0.5822213", "0.5454788", "0.54282784", "0.53696555", "0.5353726", "0.52987075", "0.5287704", "0.5183978", "0.5175727", "0.5154686", "0.5153963", "0.5055174", "0.5047764", "0.50235087", "0.5017259", "0.5008962", "0.49884492", "0.4985667", "0.49653035", "0.4964098", "0.4938041...
0.7504949
0
Logit normal base distribution. A LogitNormal is the standard logistic (i.e. sigmoid) of a Normal.
def vle1(YKHO, *qIxc, **B2fa): return PdgQ.TransformedDistribution(distribution=PdgQ.Normal(*qIxc, **B2fa), bijector=KCQP.bijectors.Sigmoid(), name='LogitNormal')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VS4B(jzdc, Fg_i, mWFP=None):\n return PZlI.kl_divergence(jzdc.distribution, Fg_i.distribution, name=mWFP or 'kl_logitnormal_logitnormal')", "def twsE(YKHO):\n return 1.0 / TFEx(YKHO.alpha - 1)", "def CBRO(yGTL, qEJV, WKvO):\n return oyIN.exp(-(oyIN.log(WKvO / yGTL) / (0.01 * qEJV)) ** 2)", "def ...
[ "0.6897505", "0.68737024", "0.68315256", "0.6728761", "0.67126894", "0.6696059", "0.669249", "0.66727036", "0.66015214", "0.65354604", "0.6503524", "0.6500882", "0.6496924", "0.6495575", "0.64632696", "0.64298636", "0.64223534", "0.64008516", "0.6382283", "0.6371518", "0.6369...
0.7204992
0
String representation of a user, for internal purposes.
def zAg0(YKHO): return f'{YKHO._meta.verbose_name.title()} <{YKHO.username}>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.user_id) + ': ' + str(YKHO.user_name) + ': ' + str(YKHO.user_email)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO):\n return str(YKHO.user)", "def zAg0(YKHO...
[ "0.7885197", "0.78819275", "0.78819275", "0.78819275", "0.78819275", "0.78819275", "0.7844326", "0.7718378", "0.76201546", "0.7607364", "0.760583", "0.760583", "0.760583", "0.760583", "0.7542704", "0.752349", "0.74813193", "0.7460829", "0.7431479", "0.7385497", "0.7380902", ...
0.0
-1
Get a string showing a user's full name. Avoid doing random concatenation throughout the app and get a consistent name for our user.
def xpqj(YKHO): return f'{YKHO.first_name} {YKHO.last_name}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.user.first_name.strip(), YKHO.user.last_name.strip())\n if len(eHMM.strip()) == 0:\n eHMM = YKHO.user.username\n return eHMM.strip()", "def IQH1(YKHO):\n eHMM = f'{YKHO.f_name} {YKHO.l_name}'\n return eHMM", "def eHMM(YKHO):\n return '{} {}'.for...
[ "0.8706871", "0.86765844", "0.8668493", "0.8658107", "0.85461295", "0.8398248", "0.83136845", "0.82894355", "0.82799006", "0.8252934", "0.8220692", "0.8220692", "0.8197219", "0.8195103", "0.8178459", "0.8178459", "0.8176791", "0.81531554", "0.814468", "0.8141032", "0.81394994...
0.81144625
24
The path to the artifact's output data.
def kmfe(YKHO): return Hy7s.path.join(YKHO._sandbox, 'output' + Hy7s.path.sep)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n80H(YKHO):\n return '%s/%s' % (Hy7s.path.abspath(Hy7s.path.dirname(xAKo) + 'outputs'), YKHO.identifier)", "def n80H(YKHO):\n return YKHO._event.output_path", "def RzyW(YKHO):\n return Hy7s.path.join(YKHO.queue.data_abspath, YKHO.id)", "def oLzv(YKHO):\n return YKHO.__output_file_path", "de...
[ "0.8049666", "0.7996136", "0.78829163", "0.7689978", "0.7558554", "0.7530734", "0.7491344", "0.7432051", "0.738997", "0.7349866", "0.72963864", "0.7191997", "0.7151246", "0.71416366", "0.6991851", "0.69853747", "0.6890405", "0.6889659", "0.68765384", "0.686697", "0.686697", ...
0.65094537
46
Return a filtered queryset of approved exams.
def ukxQ(YKHO): return YKHO.filter(verified=True, blacklisted=False, flags__lte=AvEA.LIMIT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y8eF(YKHO):\n return W7aK.objects.filter(house=YKHO.house, approved=True)", "def k66M(YKHO, QePW):\n umWR = super().get_queryset(QePW)\n if not QePW.user.is_superuser and QePW.user.approved_organisations.exists():\n umWR = umWR.filter(organisation__in=QePW.user.approved_organisations.all()).d...
[ "0.5975536", "0.59272766", "0.57324284", "0.5665981", "0.5613183", "0.5574131", "0.54571897", "0.5424945", "0.541518", "0.540266", "0.5370942", "0.5370942", "0.53670067", "0.53657037", "0.5352938", "0.53108144", "0.53029007", "0.5285532", "0.52773744", "0.5270182", "0.5266833...
0.7666953
0
Return the relative path of the exam file from inside the media root.
def ZfdX(YKHO): return Hy7s.path.join(RoxL.EXAM_FILES_LOCATION, str(YKHO.unique_id)[0:2], str(YKHO.unique_id) + YKHO.file_ext)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qZmm(VqRE, ppkx=gCuF.MEDIA_ROOT):\n t_yv = Hy7s.path.relpath(VqRE, ppkx)\n return t_yv", "def ADRz(YKHO):\n return YKHO._path", "def j1XE():\n return Hy7s.path.dirname(Hy7s.path.abspath(xAKo)) + '/'", "def t_yv(Ux0P):\n u54L = len(Hy7s.path.abspath(N7Kc)) + 1\n return Hy7s.path.abspath(...
[ "0.7084054", "0.67861694", "0.6639991", "0.6554625", "0.654", "0.6504675", "0.6481501", "0.64682615", "0.64373404", "0.64343196", "0.64266986", "0.64078075", "0.6378572", "0.6372947", "0.63657284", "0.63565034", "0.63546705", "0.63388", "0.63195527", "0.6304031", "0.62831795"...
0.7195906
0
checks if data is a valid utf8
def AKkO(nPrm): for _9lj in nPrm: pSfY = JUyz(_9lj) if pSfY in (1, 7, 8): return False for YRbF in range(pSfY - 1): f9_w = nPrm[YRbF] if f9_w is None or f9_w >> 6 != 2: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LGEq(nPrm, XObx='Input not valid unicode'):\n try:\n if not isinstance(nPrm, str) and (not isinstance(nPrm, str)):\n raise UnicodeError(XObx)\n str(nPrm)\n except UnicodeError:\n raise UnicodeError(XObx)", "def AKkO(nPrm):\n yLen = 1 << 6\n mXDZ = 1 << 7\n TpH5 ...
[ "0.7506815", "0.741345", "0.7328074", "0.7017084", "0.6932292", "0.68139154", "0.6799195", "0.6747536", "0.6659043", "0.66026866", "0.65893435", "0.65627855", "0.64627725", "0.64623725", "0.64583963", "0.6328345", "0.6286717", "0.6241355", "0.6232374", "0.61827576", "0.616730...
0.79154724
0
This is the property getter function for the interval attribute.
def VOlW(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VOlW(YKHO):\n return YKHO.__interval", "def VOlW(YKHO):\n return YKHO._interval", "def VOlW(YKHO):\n return YKHO._interval", "def VOlW(YKHO):\n return YKHO._base_interval", "def VOlW(YKHO) -> int:\n return qe4Y.get(YKHO, 'interval')", "def VOlW(YKHO):\n raise NotImplementedError('(%...
[ "0.84457177", "0.8375238", "0.8375238", "0.8083278", "0.7913586", "0.7866113", "0.77943707", "0.7606129", "0.75930816", "0.7489256", "0.7407826", "0.73319227", "0.7330711", "0.68145853", "0.68055433", "0.6750766", "0.65407836", "0.65367264", "0.65367264", "0.6510422", "0.6493...
0.79259795
4
This is the getter method of the interval. The interval is a numeric value, that states the amount of seconds supposed to be between the individual poll calls. The function checks if the keep_interval flag is still set and returns the ild value in case it is, but updates the internal attribute with the new value of the...
def VOlW(YKHO): if YKHO.keep_interval: return YKHO._interval else: YKHO._update_interval() YKHO.keep_interval = True return YKHO._interval
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pRmv(YKHO):\n return YKHO.opts.poll_interval", "def VOlW(YKHO):\n return YKHO._interval", "def VOlW(YKHO):\n return YKHO._interval", "def VOlW(YKHO):\n return YKHO.__interval", "def eUH0(YKHO):\n return YKHO.interval * 1000", "def ucB5(YKHO):\n return YKHO.interval_generator()", "...
[ "0.7069184", "0.70124817", "0.70124817", "0.70109975", "0.69630235", "0.6715261", "0.66860104", "0.659472", "0.6480293", "0.64450896", "0.63610065", "0.62147546", "0.6206308", "0.6158649", "0.60910255", "0.60504186", "0.60322213", "0.6016508", "0.5938451", "0.5931195", "0.593...
0.7682498
0
Overriding the get_queryset method
def k66M(YKHO, *qIxc, **B2fa): return msfn.objects.featured()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k66M(YKHO):\n return None", "def k66M(YKHO):\n return None", "def k66M(YKHO, QePW, SR0I):\n return SR0I", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YKHO) -> ZYvt:\n raise NotImplementedError()", "def k66M(YKHO):\n return YKHO.model.objects.all()", "def k66M(YK...
[ "0.834625", "0.834625", "0.82596415", "0.8062471", "0.8057827", "0.7953172", "0.78141594", "0.77389127", "0.74829775", "0.74411374", "0.74318916", "0.7347242", "0.732872", "0.7315388", "0.7300111", "0.7233902", "0.72322077", "0.7228018", "0.7203291", "0.71932507", "0.715636",...
0.0
-1
Returns the score of the game (int)
def hckV(YKHO): return YKHO._score
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO) -> int:\n return YKHO.rstate.score()", "def pU8J(YKHO):\n p1kx = YKHO.score.quantize(ZjSO('0.001'))\n return p1kx if p1kx > 0 else 0", "def p1kx(YKHO) -> int:\n return YKHO._score", "def p1kx(YKHO) -> int:\n return YKHO.__state.score()", "def vNP6(YKHO, Ov5A):\n if YKHO.red...
[ "0.8099498", "0.8037411", "0.7876181", "0.77995104", "0.77651644", "0.77364767", "0.76647973", "0.76647973", "0.76647973", "0.7647928", "0.76014405", "0.75491035", "0.7536076", "0.74917895", "0.7486581", "0.74539965", "0.7451855", "0.7428595", "0.72968525", "0.7286702", "0.72...
0.7598435
12
Sets the direction .
def q8mp(YKHO, Cuyv): YKHO._direct = Cuyv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oivB(YKHO, dir):\n if dir == 0:\n YKHO.direction = [0, -1]\n elif dir == 1:\n YKHO.direction = [1, 0]\n elif dir == 2:\n YKHO.direction = [0, 1]\n elif dir == 3:\n YKHO.direction = [-1, 0]", "def zWQZ(YKHO, EaBz=2):\n pass", "def oivB(YKHO, bPBo):\n YKHO.__dire...
[ "0.8579024", "0.83851117", "0.83169", "0.80384606", "0.7990125", "0.7846229", "0.76734173", "0.750635", "0.748717", "0.7468697", "0.7468697", "0.743139", "0.73967785", "0.7391938", "0.7323124", "0.72788084", "0.72788084", "0.7265908", "0.7155536", "0.70482415", "0.70235556", ...
0.0
-1
Deletes the bolt in the list if it goes outside the game heights
def HhWO(YKHO): jzdc = YKHO.get_bolts() for YRbF in YKHO.get_bolts(): if YRbF.y > ralU: jzdc.remove(YRbF) YKHO.set_plyrbolts(0) elif YRbF.y <= -hlPc: jzdc.remove(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xPb3(YKHO):\n for O3ya in YKHO._bolts:\n if O3ya.y - hlPc / 2 > ralU:\n YKHO._bolts.remove(O3ya)\n YKHO._key = False\n elif O3ya.y + hlPc < 0:\n YKHO._bolts.remove(O3ya)", "def ReNU(YKHO):\n if fs6s.frame_count % YKHO.vy == 0:\n WoTU(YKHO, jNOC)\n ...
[ "0.77061796", "0.63262725", "0.6138227", "0.6107835", "0.60689366", "0.5936481", "0.5934939", "0.587539", "0.58620894", "0.5860783", "0.57325244", "0.5729399", "0.5705338", "0.569005", "0.56722784", "0.5664569", "0.5650705", "0.5637029", "0.5636223", "0.5614233", "0.5613228",...
0.7672821
1
Retrieve colony to which belongs Cell instance with identifier 'cid'
def w_Xv(YKHO, iIih): EmMj = False for VMND in YKHO.trees: if VMND.contains(iIih): EmMj = True break if EmMj: return VMND else: tO9_ = "There's no colony corresponding to {}".format(iIih) tO9_ += ' in this container {}'.format(YKHO.label) r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEZb(YKHO):\n dixj = YKHO.database.findall(l5Ny('select cid from cid_minter'))\n if dixj:\n return dixj[0]\n else:\n YXxD = 'Database error: No CID was found in the cid_minter table.'\n G9jH.error(YXxD)\n raise ValueError(YXxD)", "def Ot7I(YKHO):\n return None", "def...
[ "0.6108341", "0.5846092", "0.5753813", "0.57134336", "0.55493855", "0.55475724", "0.54867554", "0.54703194", "0.54285115", "0.5417686", "0.5406066", "0.53856134", "0.53768426", "0.53108335", "0.52670926", "0.52639467", "0.5225461", "0.5162494", "0.5151897", "0.51465046", "0.5...
0.718982
0
Check if the credit card number is a valid.
def qutR(exwG): BviU = sum(gfNv(exwG)) return BviU % 10 == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDm8(pv0N):\n SGVO = PpYb(pv0N) == 0\n return SGVO", "def xzCw(YKHO):\n try:\n mLGw = map(int, YKHO.card_number)\n except ValueError:\n raise Twwj('Credit card number is not valid.')\n if sum(mLGw[::-2] + map(lambda Csk6: sum(divmod(Csk6 * 2, 10)), mLGw[-2::-2])) % 10:\n r...
[ "0.777877", "0.7708181", "0.729873", "0.7231169", "0.7231169", "0.7231169", "0.7231169", "0.7231169", "0.7231169", "0.7224119", "0.7148391", "0.71457696", "0.7123973", "0.70890385", "0.70834035", "0.7002407", "0.6982196", "0.6959245", "0.6943644", "0.6928551", "0.6890659", ...
0.7197937
10
Pads vector 1 up to size n, with the value val
def he4C(YKHO, lSjb, exwG, wEf2): if len(lSjb) < exwG: lSjb = oyIN.pad(lSjb, (0, exwG - len(lSjb)), 'constant', constant_values=wEf2) else: lSjb = lSjb[0:exwG] return oyIN.array(lSjb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def abj_(exwG, KneB=0.0):\n return [KneB] * exwG", "def xcjF(NArs, exwG=1, wEf2=0):\n wEf2 = oLG2.full((exwG,) + NArs.shape[1:], wEf2)\n return oLG2.concatenate([NArs, wEf2], axis=0)", "def qw3p(jzdc, exwG, BWXx):\n yvT9 = oyIN.empty(jzdc.shape[0] + exwG, dtype=oyIN.float_)\n yvT9[:exwG] = BWXx\...
[ "0.66970176", "0.6407956", "0.62794185", "0.62085414", "0.61494535", "0.601938", "0.598485", "0.594154", "0.5891604", "0.585811", "0.5815687", "0.57030565", "0.56637466", "0.5592547", "0.5585172", "0.55488724", "0.5509341", "0.5502468", "0.54687667", "0.5464518", "0.54223704"...
0.7783556
0
Returns True if the file type is in the supported languages or no language is specified for the linting rule and False otherwise. The file type is determined based upon the file extension.
def VpDr(YKHO, nUeQ): if not YKHO.languages or kWae(nUeQ['path']) in YKHO.languages: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qdVJ(IznC):\n YBcr = pmON.splitext(IznC)[1]\n return YBcr in NexC", "def VpDr(qIxc, EdbX=False):\n if kbZq(qIxc) and agEV(qIxc) or EdbX:\n if qIxc.language is not None:\n return True\n return False", "def tSZB(YKHO):\n if YKHO._allowed_ext:\n if YKHO.get_ext() not in...
[ "0.6794162", "0.6676702", "0.66753393", "0.66525245", "0.662058", "0.6559167", "0.65226805", "0.6507326", "0.63927895", "0.6389078", "0.63548726", "0.63548726", "0.6342597", "0.6324626", "0.63147753", "0.629082", "0.629082", "0.62877965", "0.62421244", "0.62134165", "0.620342...
0.8022905
0
If the variable has been assigned a value, retrieve it. Returns None if the variable hasn't been assigned yet
def xw8c(YKHO, SRYB): return YKHO.assigned_values.get(SRYB, None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ct3E(YKHO, TMbP, lhin):\n for SRYB in lhin.get_variables():\n if not TMbP.has_assignment_for(SRYB):\n return SRYB\n return None", "def kfDP(YKHO, SRYB):\n return YKHO.variable_to_value.get(SRYB)", "def AU3M(YKHO, mWFP=None):\n if mWFP is not None and mWFP != '':\n if YK...
[ "0.67984724", "0.6676857", "0.66513926", "0.65910417", "0.6577111", "0.65009785", "0.64410925", "0.64085674", "0.63712054", "0.6322651", "0.6232617", "0.6223635", "0.6163608", "0.61594456", "0.6154384", "0.6147226", "0.6125914", "0.61167973", "0.60655224", "0.60066867", "0.59...
0.72336644
0
Create a default `lmfit.Parameters` instance, which can be used to fit DNA force extension data with lmfit. The default parameters calculated are the contour length (L_0), the persistence length (L_p) and the temperature (T). The contour length is calculated from the number of basepairs (bps) and the pitch (pitch) of t...
def K4Y8(huhu, H2HG=None, kemo=None, Kt_s=None, pgAI=None, **B2fa): H2HG = H2HG or 3.38e-10 kemo = kemo or 5e-08 Kt_s = Kt_s or 298 hyRV = huhu * H2HG pgAI = pgAI or {} AzKe = pgAI.get('bps', True) NArs = Jczo() NArs.add('L_0', value=hyRV, vary=pgAI.get('L_0', AzKe)) NArs.add('L_p', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DfhT():\n yZn7 = Jczo('lvad_model')\n yZn7.add('lvad_volume', 66.0)\n yZn7.add('alpha_slope', 0.0091)\n yZn7.add('alpha_intercept', 1.4)\n yZn7.add('beta_slope', -0.19)\n yZn7.add('beta_intercept', -1.9)\n yZn7.add('frequency', float())\n return yZn7", "def UZ35(YKHO, **VKhi):\n fr...
[ "0.6835969", "0.6272214", "0.6184853", "0.59712154", "0.5957968", "0.59085506", "0.58692825", "0.5817008", "0.5799932", "0.57943106", "0.5778758", "0.57549995", "0.5752405", "0.5744929", "0.572709", "0.5689335", "0.564958", "0.5627402", "0.5626087", "0.56133604", "0.55986154"...
0.71071064
0
Return whether this color is cue's color.
def N4Ni(qfpW, D1sU=100): return zUyX(qfpW, piQx) <= D1sU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HE49(YKHO, qfpW):\n return YKHO.color == qfpW", "def B0z8(YKHO):\n return YKHO.color == HRmL.RED", "def B0z8(YKHO):\n return 'red' == YKHO.color", "def LWuR(YKHO, *qIxc):\n return EdJ_.XCAFDoc_ColorTool_IsColor(YKHO, *qIxc)", "def ByNG(YKHO):\n return 'black' == YKHO.color", "def LB8I(...
[ "0.7156366", "0.69561297", "0.6955254", "0.6843813", "0.679817", "0.65913254", "0.6505436", "0.6502803", "0.6444754", "0.6427036", "0.6417671", "0.63754535", "0.6355578", "0.6274695", "0.62434286", "0.6180503", "0.608339", "0.6067604", "0.60409385", "0.6038667", "0.59640723",...
0.7655248
0
Return whether the segment connect point1, point2 is a cue line.
def zRAX(lCHq, ANJu, LNo8): if lCHq[0] <= ANJu[0]: fmus, BCsD = (lCHq, ANJu) else: fmus, BCsD = (ANJu, lCHq) NAQq = BCsD[1] - fmus[1] J2ZS = BCsD[0] - fmus[0] if J2ZS != 0: for WKvO in range(fmus[0], BCsD[0] + 1): Jw7X = WKvO - fmus[0] eUWA = Jw7X * NA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5ZI(YKHO, AU8u):\n if AU8u < YKHO.start and AU8u < YKHO.end or (AU8u > YKHO.start and AU8u > YKHO.end):\n return False\n if YKHO.getArea(YKHO.start, YKHO.end, AU8u) > Z9rn.EPSILON:\n return False\n return True", "def kCxW(QLgk: Sequence, aQJ1: Sequence) -> bool:\n tG8k = False\n ...
[ "0.6962338", "0.6753144", "0.6658903", "0.66405946", "0.6613546", "0.6551926", "0.6544258", "0.64450705", "0.64279497", "0.6373599", "0.6356946", "0.63556725", "0.6342672", "0.627818", "0.6253513", "0.62485945", "0.6238712", "0.62382734", "0.6210221", "0.62070554", "0.6183308...
0.81268615
0
given a list of lists, returns all the possible combinations taking one element from each list The list does not have to be of equal length
def rcf2(UHhk): return Pusg(RXQn, UHhk, [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E6VQ(*qIxc: List[Any]) -> x1iM[x1iM]:\n return list([list(geyT) for geyT in list(Lx3t(*qIxc))])", "def lzIn(YKHO, d0Sw):\n return [Hs6x.combinations(d0Sw, d6pt + 1) for d6pt in range(len(d0Sw))]", "def UAWl(vASe: list[str], OQAR: list[str]) -> list[tuple[str, str]]:\n FQVE: list[tuple[str, str]] =...
[ "0.77020794", "0.741914", "0.72532415", "0.71915007", "0.7056734", "0.70454365", "0.70370454", "0.6988426", "0.6977084", "0.6933962", "0.68215847", "0.68174875", "0.68147933", "0.6706153", "0.6658565", "0.66468805", "0.66265106", "0.6620485", "0.65778834", "0.6502949", "0.647...
0.6840305
10
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name + str(ywwl)\n return P8oC.from_list(em8M, F4JO, ywwl)", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN.linspace(0, 1, ywwl))\n em8M = P8oC.name ...
[ "0.7242805", "0.71656674", "0.6901114", "0.68781185", "0.68781185", "0.68781185", "0.6861682", "0.6854892", "0.684856", "0.67342144", "0.66580445", "0.6597808", "0.65941465", "0.65885794", "0.6582792", "0.6508348", "0.64398456", "0.64053196", "0.63276744", "0.6316793", "0.628...
0.6861819
9
Sends a 401 response that enables basic auth
def NLCy(): return oGir('Could not verify your access level for that URL.\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm="Login Required"'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy():\n return oGir('', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})", "def NLCy():\n return oGir('You have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\...
[ "0.8093736", "0.80926424", "0.7958403", "0.7852648", "0.7843114", "0.7824419", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", "0.7810746", ...
0.776624
27
Compute ricci curvature for all nodes and edges in G. Node ricci curvature is defined as the average of all it's adjacency edge.
def gAD4(yvY1, Cwt5=0.5, upAO=None): lGE9 = ITS7.time() u54L = dict(jHsn.all_pairs_dijkstra_path_length(yvY1, weight=upAO)) if ITS7.time() - lGE9 > 5: print(ITS7.time() - lGE9, ' sec for all pair') for KCHu, a1PO in yvY1.edges(): yvY1[KCHu][a1PO]['ricciCurvature'] = L3Oe(yvY1, source=KCH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X74i(YKHO):\n return YKHO.circle().curvature(YKHO.o, YKHO.r, p=YKHO.a)", "def C2c2(V6IE):\n LVAh = V6IE[:, 1].copy()\n WKvO = V6IE[:, 0].copy()\n Jw7X = oyIN.gradient(WKvO)\n NsEU = oyIN.gradient(LVAh, Jw7X)\n cmHj = oyIN.gradient(NsEU, Jw7X)\n return oyIN.sum(cmHj ** 2)", "def _v41(YK...
[ "0.65307355", "0.62947464", "0.628898", "0.6148709", "0.6146022", "0.60335684", "0.601647", "0.6016419", "0.59686583", "0.59591705", "0.59580296", "0.5783392", "0.56206346", "0.5454164", "0.5451209", "0.54046565", "0.53753686", "0.53608567", "0.5320454", "0.53164357", "0.5294...
0.76373357
0
Function that calculates the magnitude of the given vector
def BJTC(qaSK): YXbZ = 0 for ZfUD in qaSK.values(): YXbZ += ZfUD ** 2 return YXbZ ** 0.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return epAf.sqrt(Lzxs(iArr))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def b3Gc(Ty9i):\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(Ty9i):\n if len(Ty9i.arr) != 4 or Ty9i[3] != 0.0:...
[ "0.8889121", "0.8727219", "0.8703709", "0.86457086", "0.84638685", "0.8353756", "0.8321988", "0.82970536", "0.82789177", "0.8265785", "0.82312655", "0.81229854", "0.8055713", "0.78811353", "0.78140724", "0.7760445", "0.77123815", "0.76013935", "0.74516785", "0.71060884", "0.7...
0.77635497
15
Check case if input has wrong shape.
def n3pU(YKHO): cCrA = oyIN.column_stack((oyIN.ones(10), oyIN.ones(10))) with YKHO.assertRaises(ValueError): KiYu(cCrA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fuw0(gOGe, KDwe):\n return True", "def DxXZ(YKHO, khtY, XkN1):\n ZwCY = khtY.input(khtY.input_names[0])\n n1FG = XkN1.var(ZwCY).shape\n for YRbF in n1FG:\n if YRbF < 0:\n HbIg = f'Input {ZwCY}(shape={n1FG}) has unkown dimension shapes. Specifying static values may improve perfor...
[ "0.77478", "0.7627686", "0.75921834", "0.75702965", "0.75427914", "0.7507562", "0.7440126", "0.7437663", "0.7397914", "0.7355922", "0.731435", "0.7276764", "0.7259658", "0.7200504", "0.7155421", "0.71542364", "0.71168107", "0.7111445", "0.70359635", "0.6983382", "0.6968996", ...
0.65060616
51
Draw a line between previous and current data points.
def jRqI(YKHO, TuAq): zNig = YKHO.size() YKHO.yOffset = [zNig.height() * 0.2 + zNig.height() * 0.618 / YKHO.NUM_CHANNEL * LVAh for LVAh in Ni9Y(YKHO.NUM_CHANNEL)] for p6S0 in Ni9Y(YKHO.NUM_CHANNEL): YKHO.pen.setStyle(uaAZ.SolidLine) YKHO.pen.setWidth(2) YKHO.pen.setBrush(YKHO.PEN_COL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LZ5z():\n AhRk(AU8u().previous_line())", "def lXKT():\n global y1, y2\n g_NO.create_line(o4D3, si3g, ajwV, skBL, width=2, fill=qfpW)\n si3g -= 10\n skBL += 10", "def lXKT(YKHO, nJ9F, nxyw, o4D3, si3g, qfpW=HRmL['white']):\n a9eO.draw.line(YKHO.display, qfpW, (nJ9F, nxyw), (o4D3, si3g))", ...
[ "0.75817573", "0.6934287", "0.680875", "0.6636438", "0.66180754", "0.65603083", "0.64937496", "0.64824474", "0.6427642", "0.64183474", "0.6389613", "0.6386527", "0.63336986", "0.6306745", "0.63025856", "0.6294018", "0.62741625", "0.6271146", "0.6259881", "0.62597656", "0.6258...
0.56101316
99