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
Check if a quaternion contains Infs or NaNs (not valid) quaternion The quaternion to check True If the quaternion is valid False if it contains Infs or NaNs A quaternion with all values zero is considered valid in this function
def qtwI(slpS): if not ogDa(slpS.x) or not ogDa(slpS.y) or (not ogDa(slpS.z)) or (not ogDa(slpS.w)): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ThXn(slpS):\n if slpS.x == 0.0 and slpS.y == 0.0 and (slpS.z == 0.0) and (slpS.w == 0.0):\n return True\n return False", "def IIpb(YKHO, WKvO):\n pass", "def IIpb(YKHO, *qIxc, **B2fa):\n pass", "def IIpb(YKHO, *qIxc, **B2fa):\n pass", "def dY8y(WKvO):\n if not WKvO.dtype.is_flo...
[ "0.7342909", "0.674359", "0.6523461", "0.6523461", "0.6165169", "0.61122674", "0.60994196", "0.6043507", "0.59903395", "0.5988149", "0.598614", "0.59757644", "0.5947775", "0.5941802", "0.5940053", "0.59222364", "0.5916478", "0.58905023", "0.58644134", "0.5813785", "0.579175",...
0.77152115
0
Checks if the given quaternion is not instantiated quaternion The quaternion to check True If the quaternion is (x,y,z,w) = (0,0,0,0), else False
def ThXn(slpS): if slpS.x == 0.0 and slpS.y == 0.0 and (slpS.z == 0.0) and (slpS.w == 0.0): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qtwI(slpS):\n if not ogDa(slpS.x) or not ogDa(slpS.y) or (not ogDa(slpS.z)) or (not ogDa(slpS.w)):\n return False\n return True", "def anV4(YKHO) -> bool:\n ...", "def eRwN(YKHO) -> bool:\n return YKHO.x != 0 or YKHO.y != 0 or YKHO.z != 0", "def lyvi(YKHO):\n fR5M = R5H8(YKHO.quat_u...
[ "0.83090097", "0.662134", "0.6332976", "0.6171784", "0.6097561", "0.6019581", "0.5982951", "0.59590703", "0.5936624", "0.589366", "0.5893188", "0.58804023", "0.58157015", "0.5805869", "0.57783085", "0.57723546", "0.57608956", "0.5757073", "0.5752938", "0.57351595", "0.5734992...
0.8963934
0
Make sure we can prune values from domains. (We want to pay for this only if we use it.)
def tk9j(YKHO): if YKHO.curr_domains is None: YKHO.curr_domains = {Ty9i: list(YKHO.domains[Ty9i]) for Ty9i in YKHO.variables}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjNp(YKHO):\n for Ty9i in YKHO.domains.keys():\n lV4j = set()\n for WKvO in YKHO.domains[Ty9i]:\n if len(WKvO) != Ty9i.length:\n lV4j.add(WKvO)\n for ZfUD in lV4j:\n YKHO.domains[Ty9i].remove(ZfUD)", "def X4io(YKHO):\n pass", "def X4io(YKHO):\...
[ "0.65378094", "0.6460655", "0.6460655", "0.63196975", "0.6311381", "0.6233123", "0.60692275", "0.5875993", "0.5836814", "0.58204454", "0.5816016", "0.58000165", "0.57882667", "0.5764486", "0.5742194", "0.57103974", "0.5692361", "0.5679406", "0.56477624", "0.5617001", "0.56170...
0.5552181
34
True if the cookies is non empty.
def qPgS(YKHO): return len(YKHO._cookies) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def paMU(YKHO):\n LFg0 = set(['c_user', 'datr', 'xs'])\n k45i = set(YKHO.getCookiesNames())\n if LFg0.issubset(k45i):\n return True\n return False", "def T_ME(YKHO):\n for zatQ in YKHO.cookie_jar:\n if zatQ.name == 'ukey' and len(zatQ.value) > 1:\n return True\n return ...
[ "0.7574409", "0.74667627", "0.7173321", "0.69998085", "0.69575876", "0.6918848", "0.6918848", "0.68749774", "0.68496776", "0.68026686", "0.67889595", "0.67829454", "0.6666214", "0.6598094", "0.6574998", "0.6518928", "0.6518228", "0.65016705", "0.6484963", "0.64424783", "0.642...
0.7502191
1
Creates and saves a User with the given email, name and password.
def lYUQ(YKHO, D3lj, jTXt=None, **B2fa): if not D3lj: raise ValueError(bGrB('Users must have an email address')) ZrNc = YKHO.model(email=YKHO.normalize_email(D3lj).lower(), **B2fa) ZrNc.is_active = True ZrNc.set_password(jTXt) ZrNc.save() return ZrNc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kI0b(Emd4, D3lj, jTXt, mWFP, URHx):\n kz9X = B8ni.generate_password_hash(jTXt).decode('UTF-8')\n CBIr = mv1M(name=mWFP, email=D3lj, password=kz9X, google_enabled=URHx)\n NCls.session.add(CBIr)\n return CBIr", "def lYUQ(YKHO, D3lj, jTXt, mWFP, **wdCM):\n if not D3lj:\n raise ValueError('...
[ "0.8427973", "0.8419837", "0.8372032", "0.83669096", "0.83595276", "0.8344448", "0.834118", "0.83402497", "0.8325293", "0.8323227", "0.83229005", "0.830999", "0.8306009", "0.82981527", "0.8265157", "0.82637066", "0.8249637", "0.82452524", "0.8233338", "0.8231962", "0.8223431"...
0.0
-1
Creates and saves a superuser with the given email, date of birth and password.
def Zp54(YKHO, D3lj, jTXt, **B2fa): ZrNc = YKHO.create_user(D3lj, jTXt, **B2fa) ZrNc.is_staff = True ZrNc.is_superuser = True ZrNc.save() return ZrNc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt, **w...
[ "0.8167128", "0.81637347", "0.81589764", "0.8156212", "0.8150157", "0.8131285", "0.81294847", "0.81161183", "0.80782014", "0.80772203", "0.80752206", "0.8073533", "0.8073533", "0.80396384", "0.8031492", "0.8017715", "0.8002478", "0.79988194", "0.79896677", "0.7988612", "0.798...
0.7948961
38
Extracts number before the word presence and returns the number without a comma
def wHxI(yAmx): ptVi = ZbWC.compile('(\\d+,\\d+) presence') seqS = ptVi.findall(yAmx) mSrU = [] for FGW3 in seqS: GPOS = FGW3.replace(',', '') mSrU.append(GPOS) return mSrU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnHj(FUjE):\n XP5J = '[\\\\d]+[.,\\\\d]+|[\\\\d]*[.][\\\\d]+|[\\\\d]+'\n LBuA = ZbWC.findall(XP5J, FUjE)\n if not LBuA:\n return FUjE\n else:\n mLGw = LBuA[0]\n mLGw = mLGw.replace(',', '')\n return mLGw", "def cdU6(BWXx):\n yvT9 = ''\n oi6k = 0\n for hcXw in ...
[ "0.73828316", "0.6946347", "0.6555426", "0.65496707", "0.65348774", "0.6500792", "0.64780223", "0.64499956", "0.642037", "0.6377153", "0.6360343", "0.6283827", "0.6268576", "0.6227056", "0.6157546", "0.6128601", "0.61245537", "0.6123255", "0.61040735", "0.61012495", "0.609344...
0.7065736
1
this function create empty board
def efGj(YKHO): iBIi = [] for iVRZ in range(_apf.NUM_COLUMNS): rdlD = [] for usx6 in range(_apf.NUM_ROWS): rdlD.append(None) iBIi.append(rdlD) return iBIi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFif():\n return [['.' for bGrB in range(9)] for bGrB in range(9)]", "def AFif():\n return [10 * [0] for bGrB in wPFE(0, 10)]", "def DPQb(YKHO):\n iBIi = []\n for Mkmy in range(YKHO.__BOARD_HEIGHT):\n iBIi.append([YKHO.__EMPTY_CELL] * YKHO.__BOARD_WIDTH)\n return iBIi", "def efGj(YK...
[ "0.83712155", "0.8110624", "0.81013304", "0.8021993", "0.7987599", "0.7972387", "0.79701775", "0.78980297", "0.7894012", "0.78777725", "0.78777725", "0.78777725", "0.78740585", "0.78708297", "0.7863555", "0.7827205", "0.7804964", "0.7773706", "0.77531034", "0.77439326", "0.77...
0.7916396
7
Returns the maximum allowable brightness value.
def kw9s(YKHO): YKHO._max_brightness, BWXx = YKHO.get_cached_attr_int(YKHO._max_brightness, 'max_brightness') return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kw9s() -> int:\n return DVw1[taLS].getint(Z3LO)", "def kw9s(YKHO) -> float:\n return max(YKHO.brightness_west, YKHO.brightness_south, YKHO.brightness_north, YKHO.brightness_east)", "def o_Ga(YKHO):\n return YKHO.max_rgb_value", "def JUbC(YKHO) -> int:\n s1JZ = YKHO._device_type_instance.get_c...
[ "0.8774411", "0.8598393", "0.8043514", "0.72655535", "0.72611415", "0.7230975", "0.721326", "0.721326", "0.7201846", "0.7154166", "0.7150483", "0.71385664", "0.7118326", "0.7097198", "0.7091589", "0.70658016", "0.7063235", "0.7058203", "0.70477176", "0.7023881", "0.7015515", ...
0.86749387
1
Calculate weighted sum of squared deviations. Returns
def wGMw(YKHO): return oyIN.sum(YKHO.residuals() ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRqP(YKHO, kdJa):\n if 'WSS' in YKHO._cache_data:\n return YKHO._cache_data['WSS']\n ytjR = YKHO.X.eval(kdJa)\n r1VO = YKHO.depth_radius\n ytjR = ytjR.reshape((-1, YKHO.shape[-1]))\n\n def a4HF(WKvO):\n return map(lambda YRbF: oyIN.sum(oyIN.square(WKvO[max(0, YRbF - r1VO):min(YRbF ...
[ "0.76605844", "0.7548278", "0.73015326", "0.7287032", "0.7214272", "0.71214753", "0.71117234", "0.6962591", "0.6962591", "0.69048405", "0.6877541", "0.68767184", "0.68524736", "0.681051", "0.68061835", "0.68032914", "0.6785692", "0.6745727", "0.6740154", "0.67351747", "0.6730...
0.62048906
93
Calculate weighted sum of squared deviations.
def wGMw(K5WD, qIxc): JfyU = qIxc[0] EcVT, fuBA, XcU5 = qIxc[1] return (oyIN.sum(XcU5 * (fuBA - JfyU(EcVT, K5WD)) ** 2), K5WD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRqP(YKHO, kdJa):\n if 'WSS' in YKHO._cache_data:\n return YKHO._cache_data['WSS']\n ytjR = YKHO.X.eval(kdJa)\n r1VO = YKHO.depth_radius\n ytjR = ytjR.reshape((-1, YKHO.shape[-1]))\n\n def a4HF(WKvO):\n return map(lambda YRbF: oyIN.sum(oyIN.square(WKvO[max(0, YRbF - r1VO):min(YRbF ...
[ "0.76661026", "0.7390323", "0.7249526", "0.72101134", "0.7144437", "0.708857", "0.7023442", "0.6928169", "0.6928169", "0.68242747", "0.6783987", "0.67633754", "0.67544883", "0.673975", "0.6733093", "0.6674515", "0.6662766", "0.6662766", "0.6662189", "0.6655584", "0.6655584", ...
0.0
-1
Calculate approximate standard deviation of the estimates from the inverse of the Hessian matrix ('observed information matrix').
def QjRI(q7In, JfyU, qIxc): PFC2 = GvHN(q7In, JfyU, qIxc) return oyIN.sqrt(PFC2.diagonal())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O8vJ(h_5y, uv09):\n N3Fh = h_5y * (1 - h_5y)\n return 1 / oyIN.dot(oyIN.transpose(uv09) * N3Fh, uv09)", "def e_VS(YKHO, NArs: ArrayLike) -> oyIN.ndarray:\n return -YKHO.information(NArs)", "def mNq8(YKHO, fuBA):\n EcVT = YKHO.model.parametrization_backward(fuBA)\n _Ank = YKHO.likelihood.comp...
[ "0.65252185", "0.6260205", "0.62520736", "0.6182963", "0.60476166", "0.60425615", "0.60398626", "0.5980725", "0.5957735", "0.5944079", "0.5927058", "0.58992594", "0.58766294", "0.58765465", "0.5865212", "0.5834384", "0.58341086", "0.5818223", "0.5813459", "0.58078283", "0.579...
0.5501078
84
Get a sequence of chunks for the squad feature. In reality, the document will be too long for the NLP model, and we will split it into multiple chunks. For example, consider the following
def dlVb(YKHO, U4xQ, z3tr=None): Pfwu = 0 z3tr = z3tr if z3tr is not None else len(YKHO.context_token_ids) U5bT = [] while Pfwu < len(YKHO.context_token_ids): U70v = min(z3tr, len(YKHO.context_token_ids) - Pfwu) if YKHO.gt_answer_text is None: mc0b = None LR1F = N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AIBp(YKHO, vUcB):\n Rhv4 = tcMp('np_chunking_wsj', document_class=vUcB)\n yokr(1)\n hXNa(Rhv4)\n return (Rhv4[:8936], Rhv4[8936:])", "def AyNP(YKHO, Q6uT, exwG):\n return (Q6uT[YRbF:YRbF + exwG] for YRbF in range(0, len(Q6uT), exwG))", "def ChZT(yAmx):\n return yAmx.split()", "def GMp5(...
[ "0.65057755", "0.6195098", "0.6105824", "0.6044228", "0.6037104", "0.59931576", "0.59925735", "0.5847855", "0.58168083", "0.58064693", "0.58064693", "0.57927805", "0.57872623", "0.5779728", "0.57622397", "0.57543004", "0.57496154", "0.57194775", "0.5711951", "0.5707555", "0.5...
0.5737787
17
Convert a SquadExample object to a SquadFeature object with the designated tokenizer. There are accually few examples can not be converted properly with token level tokenization, due to the groundtruth are given by the start position and the answer text, and some examples are annotated with wrong labels. Thus, attribut...
def qkhk(PU1l: SquadExample, b0j5: BaseTokenizerWithVocab, LT6S: bool): XZ5g = PU1l.context_text qYRv = PU1l.answer_text Qzwg = PU1l.query_text ps7k, gQVb = b0j5.encode_with_offsets(XZ5g, int) twUS = b0j5.encode(Qzwg, int) z4J7 = qYRv LSIy, zx_t = (None, None) BBci = False YWRU = Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTA8(PU1l, MTKo, LT6S, b0j5, G8d9, rsL0, Pmkr):\n \"\"\" option: tf idf or all\"\"\"\n 'train: 1:3 pos neg. Test: all'\n VimU = []\n bAls = PU1l.question\n for cxUR in PU1l.all_positive:\n cxxr = PU1l.all_positive[cxUR]\n aKIF = RQd9(b0j5, bAls, cxxr, 1, G8d9, rsL0, Pmkr)\n ...
[ "0.6436913", "0.6400005", "0.6195211", "0.6160219", "0.6158172", "0.60624266", "0.60621184", "0.60520756", "0.6033869", "0.6031147", "0.6022943", "0.5975927", "0.5974773", "0.5964904", "0.59603655", "0.5949392", "0.59424603", "0.59411126", "0.59399724", "0.5911874", "0.591032...
0.75289935
0
r"""Verify that we strip '\xEF\xBB\xBF' from the first line.
def fYJ2(kETg, b4rG): Nqlg = [kETg] sjp3 = m_u7.FileProcessor('-', b4rG, Nqlg[:]) assert sjp3.lines != Nqlg assert sjp3.lines[0] == '"""Module docstring."""\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AeH_(YKHO):\n YKHO.dropTable('\"äüö\"')\n aEqx = ['', 'Welcome to the SAP HANA Database interactive terminal.', ' ', 'Type: \\\\h for help with commands ', ' \\\\q to quit ', '', '0 rows affected ' + YKHO.helper.PROCESSING_...
[ "0.67449015", "0.62969464", "0.62429744", "0.6213102", "0.61361945", "0.6039291", "0.58279395", "0.58062327", "0.57680535", "0.57144076", "0.56590194", "0.56403077", "0.56242704", "0.5549886", "0.55374587", "0.5525776", "0.5489125", "0.5479673", "0.5420837", "0.534244", "0.53...
0.69554937
0
Verify that we properly handle noqa line at the end of the file.
def lK2q(b4rG): zZcM = 'from foo \\\nimport bar' Nqlg = zZcM.splitlines(True) sjp3 = m_u7.FileProcessor('-', b4rG, lines=Nqlg) fnot = 'from foo \\\nimport bar' assert sjp3.noqa_line_for(1) == fnot assert sjp3.noqa_line_for(2) == fnot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1r6(zFiD):\n EESs = zFiD.strip()\n return EESs.endswith('# noqa: {}'.format(x3Vv)) or EESs.endswith('# noqa')", "def k6wa(YKHO, Ux0P, En3Y, nT2z, P1dF):\n pass", "def eWPR(YKHO):\n YKHO.assert_transformed_files_equal('declaration_trailing_comment')", "def pXsh(Ux0P):\n with open(Ux0P, mod...
[ "0.64153135", "0.6065928", "0.58888036", "0.58616495", "0.58134305", "0.57718307", "0.5771791", "0.57286453", "0.5642979", "0.55734026", "0.5559181", "0.5557407", "0.5551361", "0.5549074", "0.55273134", "0.55163074", "0.5494518", "0.5476407", "0.54755133", "0.5470864", "0.546...
0.58491933
4
Get the time a token will expire
def y0BA(geh0, VYiB=ITS7()): return int(geh0['expires_in']) + int(VYiB)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PiTA(YKHO) -> qcWV:\n return YKHO.token_generated + fCoM(seconds=YKHO.TOKEN_VALID_DURATION_IN_SECONDS)", "def MXIX(YKHO) -> h8nf[xrPC]:\n if YKHO.forget_password_token_creation_date is None:\n return None\n else:\n Z9rn: xrPC = YKHO.forget_password_token_creation_date\n return Z...
[ "0.8115221", "0.8029514", "0.79873323", "0.79714674", "0.79620385", "0.7911099", "0.7636617", "0.76180094", "0.7609485", "0.7438992", "0.73684835", "0.73666734", "0.7346938", "0.73027706", "0.73027706", "0.73027706", "0.73027706", "0.72826177", "0.7274567", "0.7263332", "0.72...
0.7251662
22
getbase(number [,base, frombase]) > string Converts a nonfloat number from any valid base to any other that's not greater than 36 The function utilizes alphanumerals as expected. Valid bases to convert to or from must be greater than 1 but not greater than 36 Negative number are supported as equally as positive numbers...
def z7Rw(FGW3, P8oC=2, cplh=10): if not cplh == 10: FGW3 = baOo(FGW3, cplh) if 1 >= P8oC or P8oC >= len(dHPO) or (not pBSp(P8oC) == P8oC): raise PF0t('Invalid value: {} entered as base to convert to. \n{}'.format(P8oC, 'Assert that the base to convert to is a decimal integer.')) if isinstanc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def baOo(FGW3, P8oC=10):\n if not P8oC == int(P8oC):\n raise PF0t('Invalid value : {} entered as base of number. \\n{}'.format(P8oC), 'Assert that the specified base of the number is an integer.')\n if P8oC >= len(dHPO):\n raise PF0t('The base: {} is too large for conversion.'.format(P8oC))\n ...
[ "0.7952863", "0.781862", "0.76645887", "0.76154333", "0.75800717", "0.7489799", "0.7472863", "0.7442847", "0.7428733", "0.74166346", "0.7356826", "0.7290036", "0.72882646", "0.727021", "0.7262691", "0.72454596", "0.72427607", "0.72427607", "0.72427607", "0.72177136", "0.72052...
0.87011087
0
Add edge between input vertices in adjacency matrix.
def bsXo(YKHO, i48S, AzEm): YKHO.adj_matrix[i48S][AzEm] = 1 YKHO.adj_matrix[AzEm][i48S] = 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, E_MB, ohRA):\n YKHO._matrix[E_MB][ohRA] = True", "def F1KG(YKHO, D70y):\n CBRg = D70y.v1\n j9ly = D70y.v2\n SknJ = BGDo(CBRg, YKHO.height)\n Yeof = BGDo(j9ly, YKHO.height)\n YKHO.adjacencyMatrix[SknJ - 1][Yeof - 1] = 1\n YKHO.adjacencyMatrix[Yeof - 1][SknJ - 1] = 1\n return...
[ "0.7719868", "0.7584609", "0.7111882", "0.69707584", "0.69495314", "0.6862363", "0.6831688", "0.68185043", "0.68085295", "0.6807082", "0.6802758", "0.6790956", "0.67815834", "0.67815834", "0.67815834", "0.67815834", "0.67815834", "0.6774828", "0.6773132", "0.67515725", "0.673...
0.6457982
70
Generate success response with the status code and data.
def YwCW(jGRS, nPrm): G9jH.info('Sending success response with status : {}'.format(jGRS.value)) return ({'status': 'success', 'data': nPrm}, jGRS.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jJPQ(JBvl=200, nPrm=None):\n return gJfj(status='success', status_code=JBvl, data=nPrm)", "def KV5F(nPrm, Wxnj=200):\n return (qQXR.dumps({'success': True, 'data': nPrm}), Wxnj)", "def vRbE(YKHO, nPrm=None):\n YKHO.response.write(qQXR.dumps({'status': 'ok', 'data': nPrm}))", "def gGm8(nPrm, SaEn...
[ "0.79179496", "0.7890962", "0.77729774", "0.7750515", "0.7743695", "0.77381516", "0.76570094", "0.7649679", "0.7505412", "0.74519354", "0.74200004", "0.74122155", "0.7386471", "0.7334227", "0.7120848", "0.70942944", "0.70889693", "0.70221156", "0.70019513", "0.6984903", "0.68...
0.86482996
0
Generate failure response with the status code and error messsage.
def kRuZ(jGRS, Ol8d): G9jH.info('Generating failure response with status : {}'.format(jGRS.value)) return ({'message': Ol8d}, jGRS.value)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def APxp(jIIP, Ol8d, E4zG=qed_.INTERNAL_SERVER_ERROR):\n return OeRI(jIIP, E4zG, Ol8d)", "def Ad1R(JBvl=400, Ol8d=None, nPrm=None):\n return gJfj(status='fail', status_code=JBvl, message=Ol8d, data=nPrm)", "def OBuW(jIIP, E4zG=qed_.INTERNAL_SERVER_ERROR):\n return OeRI(jIIP, E4zG)", "def rS_m(YKHO, ...
[ "0.7961279", "0.78871053", "0.7837129", "0.7595806", "0.75461715", "0.75138134", "0.744675", "0.7436017", "0.74000335", "0.7379597", "0.7360044", "0.73164845", "0.7293557", "0.72238123", "0.7206671", "0.72036207", "0.7155414", "0.7097999", "0.7081706", "0.7032333", "0.702449"...
0.83438677
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
88
Adds words from a text of tabsepareted values to a dictionary.
def F1WI(KCHu, inGW): CBIr = inGW.user YRbF = 1 Ok3y = [] for zFiD in KCHu.splitlines(): zFiD = zFiD.strip() if zFiD == '': continue V_D6 = zFiD.split('\t') if len(V_D6) < 2: tO9_ = bGrB('Not enough fields in line %(linenumber)s: %(line)s') % {'lin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSnO(l5Ny):\n hlel = {}\n for zFiD in l5Ny.splitlines():\n H5ew, BWXx = zFiD.split('=')\n if '\\t' in BWXx:\n v9CE = BWXx.split('\\t')\n hlel[H5ew] = v9CE\n else:\n hlel[H5ew] = BWXx\n return hlel", "def JTTa(YKHO, nPrm):\n for KCHu in ZbWC.fi...
[ "0.61387515", "0.61258215", "0.60237414", "0.59550726", "0.5949096", "0.5902068", "0.5869726", "0.58258593", "0.5727072", "0.57051766", "0.56957", "0.56865764", "0.566749", "0.56500417", "0.56391394", "0.56199795", "0.56191206", "0.5604005", "0.5597991", "0.55862254", "0.5533...
0.5274703
67
Split text into sentences.
def Rhv4(YKHO): yield njyT.findall('\\p{L}+', YKHO.text.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JHW8(l5Ny):\n Rhv4 = KZdB.tokenize(l5Ny)\n return Rhv4", "def JHW8(YKHO, l5Ny):\n Rhv4 = YKHO.sent_detector.tokenize(l5Ny)\n return Rhv4", "def JHW8(YKHO, l5Ny):\n Rhv4 = YKHO.sent_detector.tokenize(l5Ny)\n return Rhv4", "def UQZR(YKHO, l5Ny):\n return YKHO.sentence_split(l5Ny, YKHO....
[ "0.87082857", "0.86954564", "0.86954564", "0.85171854", "0.84830177", "0.835875", "0.8351584", "0.83371204", "0.83197516", "0.82836974", "0.82395977", "0.82018906", "0.81711507", "0.8132483", "0.79692125", "0.7959331", "0.79463434", "0.7916274", "0.79006743", "0.78905994", "0...
0.66757035
92
Gets the active window title.
def JSu6(): from subprocess import Popen, PIPE, TimeoutExpired Jgwa = 'xdotool' RIlO(Jgwa) NRWD = Popen([Jgwa, 'getactivewindow', 'getwindowname'], stdin=None, stdout=PIPE, stderr=PIPE) try: yvT9, XObx = NRWD.communicate(timeout=60) except TimeoutExpired: NRWD.kill() yvT9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCKt():\n ufJO = g335()\n if ufJO:\n return ufJO.title\n else:\n return ''", "def OCKt():\n ufJO = g335()\n if ufJO:\n return ufJO.title\n else:\n return ''", "def fR8I(YKHO):\n return YKHO.window_title", "def lOEx():\n if Hy7s.name == 'nt':\n bR...
[ "0.8854769", "0.8830729", "0.8681145", "0.8134914", "0.80852526", "0.798569", "0.77871734", "0.77819186", "0.7754778", "0.76577204", "0.7633355", "0.7422972", "0.7390427", "0.736845", "0.73581976", "0.7352654", "0.7338221", "0.73070365", "0.71786606", "0.71197015", "0.7103146...
0.85437006
3
Reset all the seed(s) of the given environment(s).
def yokr(YKHO, yokr=None): if hasattr(YKHO.env, 'seed'): return YKHO.env.seed(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZkMw():\n ht2j.manual_seed(0)\n fTff.seed(0)\n tuKI.seed(0)", "def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)", "def yo0O(YKHO):\n QTBn = YKHO.env.reset()\n QTBn = YKHO.preprocess_state(QTBn)\n YKHO._reset_state(QTBn)", "def yo0O(YKHO):\n...
[ "0.74271774", "0.7356365", "0.7350003", "0.73255384", "0.7313314", "0.72470224", "0.72470224", "0.72470224", "0.7245451", "0.71655226", "0.7055867", "0.7031419", "0.7027574", "0.70149493", "0.70017534", "0.69968444", "0.695453", "0.6903325", "0.68980235", "0.68710536", "0.686...
0.0
-1
Returns a logger (using a StreamHandler logs to stdout)
def fZx2(mWFP: str) -> G9jH.Logger: bo34 = G9jH.getLogger(mWFP) bo34.setLevel(G9jH.DEBUG) Npgh = G9jH.StreamHandler(HwRy.stdout) Npgh.setLevel(rwlZ[fQWd]) uaPq = G9jH.Formatter('%(asctime)s [%(name)s] %(levelname)s: %(message)s', '%Y-%m-%d %H:%M:%S') Npgh.setFormatter(uaPq) bo34.addHandler(N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2():\n bo34 = G9jH.getLogger()\n bo34.setLevel(G9jH.INFO)\n DCgT = G9jH.StreamHandler(HwRy.stdout)\n DCgT.setLevel(G9jH.DEBUG)\n uaPq = G9jH.Formatter('%(asctime)s - %(name)s - %(levelname)s - %(message)s')\n DCgT.setFormatter(uaPq)\n bo34.addHandler(DCgT)\n return bo34", "def Kdcu...
[ "0.8257939", "0.7981721", "0.78608936", "0.7746278", "0.7660681", "0.75691503", "0.75515854", "0.7541801", "0.7516609", "0.7477849", "0.74728924", "0.74697095", "0.74661916", "0.7441674", "0.74305254", "0.74291074", "0.7427128", "0.74163216", "0.7390006", "0.73792", "0.737639...
0.7481777
9
Appends the single byte b to array.
def lGDT(qw7D, Fg_i): qw7D.append(Fg_i & 255)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSqY(YKHO, BWXx):\n YKHO.add_data(BlNT.pack('B', BWXx))", "def xDAd(YKHO, wEf2):\n zNig = len(wEf2)\n YKHO._expand_to(YKHO.offset + zNig)\n YKHO.array[YKHO.offset:YKHO.offset + zNig] = qw7D.array('B', wEf2)\n YKHO.offset += zNig", "def Lsrz(YKHO, Fg_i):\n YKHO._output.extend(Fg_i)", "de...
[ "0.70676994", "0.67576885", "0.6709534", "0.66835225", "0.66294765", "0.6482428", "0.6462731", "0.638196", "0.6320219", "0.6294792", "0.62790126", "0.62622684", "0.62581855", "0.6247793", "0.62421215", "0.6171736", "0.6134056", "0.6107069", "0.598261", "0.59822524", "0.598225...
0.8342564
0
Skip num_lines from file_to_read, return num_lines+1 start position.
def OPUW(YKHO, cJUo, wlyL): if cJUo.tell() > 0: cJUo.seek(0) dQgj = 0 bGrB, Ee5b = YKHO._read_record(cJUo, wlyL) if Ee5b > 0: dQgj += Ee5b return dQgj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrgq(YKHO, Ux0P):\n with open(Ux0P) as eHNT:\n for YRbF, vC9B in enumerate(eHNT):\n pass\n return YRbF + 1", "def LZDM(IznC):\n with open(IznC) as eHNT:\n for YRbF, vC9B in enumerate(eHNT):\n pass\n return YRbF + 1", "def BT3r(IznC):\n with open(IznC) as e...
[ "0.6753527", "0.6483838", "0.6410598", "0.63124233", "0.62990975", "0.62971", "0.6243396", "0.62397176", "0.62127215", "0.6189926", "0.61493677", "0.61432636", "0.6130755", "0.60485643", "0.6015364", "0.5986206", "0.5978857", "0.5958993", "0.59493756", "0.5899517", "0.5866729...
0.6682974
1
Is x either a scalar, an array scalar, or a 0dim array?
def o6rO(WKvO): return oyIN.isscalar(WKvO) or (tpcS(WKvO) and WKvO.ndim == 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OjXW(YKHO, ezWE: array_like) -> bool:\n return oyIN.isscalar(ezWE) or ezWE.ndim == 0 or (ezWE.shape[0] == 1 and (ezWE.ndim == 1 or ezWE.shape[1] == 1))", "def QvQx(WKvO):\n return isinstance(WKvO, oyIN.ndarray)", "def OjXW(EcVT) -> bool:\n return oyIN.issubdtype(type(EcVT), oyIN.number) or (ZylS.i...
[ "0.70209956", "0.69048125", "0.6887807", "0.6833187", "0.68279374", "0.6815947", "0.6812165", "0.68087995", "0.6790158", "0.66989136", "0.66306955", "0.6629819", "0.6609412", "0.6609255", "0.658016", "0.6563721", "0.65149033", "0.6499671", "0.6460276", "0.64434487", "0.644006...
0.61098653
40
Return a JSONformatted error message.
def sVBQ(QpfX, QePW): u14C(QePW) return {'reason': bGrB("Uh-oh, something went wrong! We're very sorry, our application wasn't able to load this page. The team has been notified and we'll fix it shortly. If the problem persists or you'd like more information please email support@hypothes.is with the subject 'In...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oKIV(YKHO):\n return qQXR.dumps(YKHO.obj_err(), ensure_ascii=False)", "def Yh_A(YKHO):\n return \"Got a response from '\" + YKHO.host + \"', but metric could not be found. \" + \"Maybe your model of Envoy doesn't \" + 'support the requested metric.'", "def U_vr(qQXR):\n return qQXR['message'] + ' ...
[ "0.8173955", "0.80616105", "0.7826941", "0.7771848", "0.76885164", "0.7614473", "0.7434879", "0.7386612", "0.7374166", "0.7296036", "0.72795403", "0.72597903", "0.7227783", "0.7170504", "0.7137892", "0.7061956", "0.70495546", "0.70495546", "0.70495546", "0.70495546", "0.70087...
0.690505
26
Test user can update their patient details test status code test response.json() test data from database
def iMMp(YKHO): lhUb = YKHO.clone_object(YKHO.patient) lhUb.created_by = YKHO.user lhUb.save() fRfm = xWtB.NEGATIVE geh0 = YKHO.client.patch(YKHO.get_url(lhUb.id), {'disease_status': fRfm.value}, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) lhUb.refresh_from_db() Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iMMp(YKHO):\n lhUb = YKHO.patient\n lhUb.created_by = YKHO.user\n lhUb.save()\n LIFi = '9999997775'\n geh0 = YKHO.client.put(f'/api/v1/patient/{lhUb.id}/', {'name': lhUb.name, 'age': lhUb.age, 'gender': lhUb.gender, 'phone_number': LIFi, 'contact_with_carrier': lhUb.contact_with_carrier, 'medica...
[ "0.73317933", "0.69790477", "0.69507575", "0.663615", "0.6525655", "0.6503405", "0.64863276", "0.64622736", "0.64414537", "0.6431801", "0.6416614", "0.6393945", "0.6331903", "0.63222724", "0.6309659", "0.6299703", "0.6251749", "0.6234415", "0.62084347", "0.62054724", "0.62036...
0.6863102
3
Define the constructor of 'CubeManager' class. It only works with '_cropped_Preprocessed.mat' files (GT and preProcessedImages). Inputs
def FIMM(YKHO, FTrt=7, Ep8u=16, R3oI=None, meY_='2D'): if not isinstance(FTrt, int): raise TypeError('Expected integer (int) as input. Received input of type: ', str(type(FTrt))) if not isinstance(Ep8u, int): raise TypeError('Expected integer (int) as input. Received input of type: ', str(type(E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, fw1b, Rhxj, JQEi, FTrt=7, Ep8u=16):\n YKHO.raw_image = fw1b\n YKHO.white_ref = Rhxj\n YKHO.black_ref = JQEi\n YKHO.processedCube = None\n YKHO.pad_processedCube = None\n YKHO.patch_size = FTrt\n YKHO.pad_margin = int(oyIN.ceil(YKHO.patch_size / 2))\n YKHO.batch_size = Ep8u", ...
[ "0.7028417", "0.6798221", "0.6490884", "0.6139547", "0.61168224", "0.6100767", "0.6088718", "0.6036226", "0.60325354", "0.601318", "0.601318", "0.6010686", "0.5982495", "0.5981292", "0.59668654", "0.5959594", "0.5938639", "0.5934655", "0.5916111", "0.5848167", "0.58088654", ...
0.0
-1
(Private method) Look for the labeled class with more elements from a numpy vector. If working with '2D' batches, we look at all unique labels of 'self.label4Classes' attribute. If working with '3D' batches, we look at all unique labels of 'self.appended_gtMaps' attribute (except unlabeled pixels representing 0)
def B3or(YKHO): _Ktc = oyIN.zeros(YKHO.numUniqueLabels, dtype=int) if YKHO.batch_dim == '2D': for UXqs in oyIN.unique(YKHO.label4Classes)[0:]: _Ktc[UXqs - 1] = oyIN.count_nonzero(YKHO.label4Classes == UXqs) return oyIN.where(_Ktc == oyIN.amax(_Ktc))[0] + 1 elif YKHO.batch_dim...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B3or(YKHO):\n _Ktc = oyIN.zeros(YKHO.numUniqueLabels, dtype=int)\n for UXqs in oyIN.unique(YKHO.label4Classes)[0:]:\n _Ktc[UXqs - 1] = oyIN.count_nonzero(YKHO.label4Classes == UXqs)\n return oyIN.where(_Ktc == oyIN.amax(_Ktc))[0] + 1", "def FIMM(YKHO, Crrw):\n YKHO.class_indicies = {UXqs: ...
[ "0.656759", "0.6545048", "0.63994515", "0.6367466", "0.6357992", "0.62620455", "0.6182126", "0.61744523", "0.61701065", "0.6153308", "0.61484534", "0.6146904", "0.61297554", "0.6120114", "0.61082697", "0.6078489", "0.6078385", "0.6077175", "0.60677326", "0.60594326", "0.60501...
0.70922387
0
Create a Python dictionary with small 2D batches of size 'batch_size' from the loaded cubes. It follows the Random Stratified Sampling methodology. Not all batches will be perfectly distributed, since classes with fewer samples may not appear in all batches. Also, in case a batch is not going to comply with the input '...
def Okvt(YKHO): if len(YKHO.patient_cubes) == 0: raise RuntimeError("No '_cropped_Pre-processed.mat' file has been loaded. To use 'create_2d_batches()' method, please first load datasets using the 'load_patient_cubes()' method.") XQ_u = YKHO.__largest_class() DJXk = oyIN.copy(YKHO.data) DDIZ = o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Bmt(YKHO):\n if len(YKHO.patient_cubes) == 0:\n raise RuntimeError(\"No '_cropped_Pre-processed.mat' file has been loaded. To use 'create_2d_batches()' method, please first load datasets using the 'load_patient_cubes()' method.\")\n XQ_u = YKHO.__largest_class()\n SSsI = oyIN.copy(YKHO.appende...
[ "0.6574618", "0.6431084", "0.63754", "0.6372778", "0.6351833", "0.6333709", "0.6158896", "0.613043", "0.61008066", "0.6057085", "0.604729", "0.6039471", "0.60353285", "0.60087657", "0.6006675", "0.60042095", "0.59912455", "0.5990919", "0.59888494", "0.597205", "0.59443325", ...
0.6376211
2
Concatenate all elements in the input Python list to return a numpy array. Inputs
def TjMS(YKHO, jJlP): if len(jJlP[0].shape) == 2: yp4p = oyIN.zeros((1, jJlP[0].shape[-1])) elif len(jJlP[0].shape) == 4: yp4p = oyIN.zeros_like(jJlP[0])[0, :, :, :].reshape(1, jJlP[0].shape[1], jJlP[0].shape[2], jJlP[0].shape[3]) ts96 = False for U6D_ in jJlP: yp4p = oyIN.vstack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SzeA(XZLe):\n return oyIN.stack(XZLe, axis=0)", "def MPiJ(KQOt: list) -> oyIN.array:\n Aofo = KQOt[0]\n for YRbF in range(1, len(KQOt)):\n if len(KQOt[YRbF]) is not 0:\n Aofo = oyIN.concatenate([Aofo, KQOt[YRbF]], axis=0)\n return Aofo", "def YtMx(Cmjf):\n return oyIN.conca...
[ "0.729592", "0.71562856", "0.7145829", "0.7143832", "0.69496787", "0.68239087", "0.67815834", "0.67341316", "0.6655823", "0.6647645", "0.66162604", "0.65893537", "0.6542025", "0.6503845", "0.6464682", "0.64359254", "0.6407787", "0.63753", "0.6363286", "0.6331298", "0.6321053"...
0.6705498
9
Concatenate all elements in the input Python list to return a numpy array. Inputs
def TjMS(YKHO, jJlP): if len(jJlP[0].shape) == 2: yp4p = oyIN.zeros((1, jJlP[0].shape[-1])) elif len(jJlP[0].shape) == 4: yp4p = oyIN.zeros_like(jJlP[0])[0, :, :, :].reshape(1, jJlP[0].shape[1], jJlP[0].shape[2], jJlP[0].shape[3]) ts96 = False for U6D_ in jJlP: yp4p = oyIN.vstack...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SzeA(XZLe):\n return oyIN.stack(XZLe, axis=0)", "def MPiJ(KQOt: list) -> oyIN.array:\n Aofo = KQOt[0]\n for YRbF in range(1, len(KQOt)):\n if len(KQOt[YRbF]) is not 0:\n Aofo = oyIN.concatenate([Aofo, KQOt[YRbF]], axis=0)\n return Aofo", "def YtMx(Cmjf):\n return oyIN.conca...
[ "0.729592", "0.71562856", "0.7145829", "0.7143832", "0.69496787", "0.68239087", "0.67815834", "0.67341316", "0.6655823", "0.6647645", "0.66162604", "0.65893537", "0.6542025", "0.6503845", "0.6464682", "0.64359254", "0.6407787", "0.63753", "0.6363286", "0.6331298", "0.6321053"...
0.6705498
8
Sets the random seed separately for each thread (to avoid getting the same results in each thread)
def nMpp(YKHO, MgeT=0): if YKHO.n_jobs > 1 and (not YKHO.random_state): ADdS = oyIN.random.randint(0, high=2 ** 32 - 2) tuKI.seed(ADdS + MgeT) oyIN.random.seed(ADdS + MgeT) elif YKHO.random_state: ADdS = int(YKHO.random_state) tuKI.seed(ADdS + MgeT) oyIN.random.se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PVng(YKHO, MgeT):\n if YKHO.random_state is None:\n YKHO.random_state = oyIN.random.randint(0, high=2 ** 32 - 2)\n tuKI.seed(YKHO.random_state + MgeT)\n oyIN.random.seed(YKHO.random_state + MgeT)", "def yokr(YKHO, yokr):\n YKHO.random.seed(yokr)\n YKHO.nprandom.seed(yokr)", "def e3of(...
[ "0.810874", "0.7893643", "0.7845246", "0.7751232", "0.7714577", "0.76573217", "0.76527125", "0.7628917", "0.76216245", "0.75936913", "0.759346", "0.75862926", "0.7576724", "0.7558528", "0.7556084", "0.75498945", "0.75390667", "0.75014365", "0.7498769", "0.74806297", "0.745876...
0.81583035
0
Converts this object to an INI formatted string.
def zAg0(YKHO): VeEE = kwpV() VeEE.optionxform = str t0D0 = 'CARLA/Server' v3K5 = 'CARLA/QualitySettings' z96T = 'CARLA/LevelSettings' CPTc = 'CARLA/Sensor' def b8bj(YEnM): return [jzdc for jzdc in dir(YEnM) if not jzdc.startswith('_') and (not callable(getattr(YEnM, jzdc)))] d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n aPd6 = ['[%s]' % YKHO.section]\n for G1Hx in YKHO.ini.get(YKHO.section):\n Ty9i = YKHO.ini.get(YKHO.section, G1Hx)\n aPd6.append('%s=%s' % (G1Hx, Ty9i))\n return '\\n'.join(aPd6)", "def wHJl(YKHO):\n vIwR = ''\n for H5ew, wEf2 in YKHO.setting().items():\n vIw...
[ "0.73729205", "0.697211", "0.68972635", "0.68701273", "0.6802838", "0.6764143", "0.67640805", "0.67567116", "0.67487186", "0.67466635", "0.66306925", "0.6601493", "0.6514653", "0.6510606", "0.6495388", "0.6495388", "0.6495388", "0.6495388", "0.6495388", "0.6495388", "0.649538...
0.0
-1
Write a geojson feature as a compressed GeoJSON feature
def wXwn(YKHO, RDhP: typ.Union[typ.Mapping, Feature]) -> None: if not isinstance(RDhP, V_n5): RDhP = V_n5.from_dict(RDhP) r4TL: bytes = YKHO._dump_feature(RDhP) rDZ4: int = len(r4TL) YKHO.stream.write(BlNT.pack(MLPT, rDZ4)) YKHO.stream.write(r4TL) YKHO.stream.write(BlNT.pack(MLPT, rDZ4))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _uxg(NgpY, ayNg):\n with jZcR.open(ayNg + '.geojson', 'w', 'GeoJSON', crs=ucxv, schema=SILJ) as hlel:\n for Oa1e in enumerate(NgpY):\n RDhP = {}\n RDhP['geometry'] = J8oL(Oa1e[1])\n RDhP['properties'] = {'id': Oa1e[0]}\n hlel.write(RDhP)", "def lP1a(gEmA)...
[ "0.7061691", "0.7006465", "0.6899257", "0.6898879", "0.6839288", "0.67296135", "0.6720549", "0.6637941", "0.659732", "0.65829426", "0.65451145", "0.6518392", "0.64519215", "0.6438984", "0.6383737", "0.63729185", "0.63691056", "0.63526744", "0.6327765", "0.631324", "0.6279649"...
0.6199064
24
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get lazy_object's structure by recursively getting attributes' key without evaluating their real value
def Kuz7(O2Sr): g8x2 = {} for H5ew in dir(O2Sr): if not H5ew.startswith('_'): if O2Sr._is_subset(H5ew): g8x2[H5ew] = Kuz7(getattr(O2Sr, H5ew)) else: g8x2[H5ew] = None return g8x2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(O2Sr):\n Aofo = {}\n for H5ew in dir(O2Sr):\n if not H5ew.startswith('_'):\n if O2Sr._is_subset(H5ew):\n Aofo[H5ew] = MNRr(getattr(O2Sr, H5ew))\n else:\n Aofo[H5ew] = getattr(O2Sr, H5ew)\n return Aofo", "def yzUB(YKHO):\n YEnM = UUu9...
[ "0.63547176", "0.6141443", "0.59612477", "0.5861167", "0.58571583", "0.5809558", "0.5799379", "0.5799379", "0.57503206", "0.57114476", "0.5647786", "0.5647492", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "0.56165", "...
0.70578134
0
extracts the leading number parts of a version string to a tuple
def kNOi(IexU): import re return tuple((int(KCHu) for KCHu in re.findall('\\.(\\d+)', '.' + IexU)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BvuR(DpZH: str) -> tuple:\n SQ3m = DpZH.split('.')\n v3uw = 3 - len(SQ3m)\n return tuple(map(int, SQ3m + ['0'] * v3uw))", "def kelO(IexU):\n return tuple(map(int, IexU.split('.')))", "def Rwzw(PZfk: str) -> tuple[int, int, int]:\n DpZH = PZfk.split(' ')[-1]\n BHGE = DpZH.split('.')\n r...
[ "0.82219416", "0.80847013", "0.80653226", "0.79816914", "0.79627943", "0.7952329", "0.79273754", "0.77729315", "0.7771982", "0.77650476", "0.77139074", "0.7704777", "0.7690704", "0.7658317", "0.7625874", "0.76249474", "0.7586596", "0.7568567", "0.7553315", "0.7528555", "0.749...
0.78469974
7
Try loading IPython shell. The result is set in self._ipython (can be None if IPython not available).
def Rram(YKHO): YKHO._ipython = None import __main__ try: import IPython except ImportError: return if IPython.version_info < (1,): return from IPython.core.interactiveshell import InteractiveShell YKHO._ipython = InteractiveShell(user_module=__main__) Uaul = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f9Jn():\n try:\n MZlh\n return True\n except NameError:\n return False", "def gwME():\n try:\n import IPython\n except ImportError:\n return False\n return True", "def WuZM() -> bool:\n try:\n eval('__IPYTHON__')\n except NameError:\n re...
[ "0.6580154", "0.643779", "0.6425016", "0.6316437", "0.6249779", "0.620299", "0.61882657", "0.616384", "0.61612964", "0.6154203", "0.6131611", "0.6118337", "0.611083", "0.60981613", "0.6084901", "0.60787535", "0.60647196", "0.6054265", "0.6039983", "0.6021013", "0.6007204", ...
0.70451766
0
Tests an agent given an environment and the agent's policy
def QOe9(YWSi, sEAN, Qabx): _ins = False W061 = sEAN.reset() IvsU = 0.0 while not _ins: XeOP = Qabx[YWSi.discretize(W061)] YFaX, vOGg, _ins, U34r = sEAN.step(XeOP) W061 = YFaX IvsU += vOGg return IvsU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o0Lw(qIxc: argparse.Namespace):\n WFQ0 = qIxc.env_seed\n if WFQ0 is not None:\n WFQ0 = WFQ0 * 2\n xUF0 = oyIN.random.RandomState(seed=WFQ0)\n djUM = xUF0.choice(qIxc.grid_width, size=(qIxc.num_init_states,), replace=False)\n rBOQ = [(LVAh, 0) for LVAh in djUM]\n sEAN = t0_A.SlipperySlo...
[ "0.59409684", "0.5851048", "0.5846911", "0.58367646", "0.58348095", "0.58333075", "0.5819414", "0.5810422", "0.5791971", "0.57675683", "0.5765066", "0.5739355", "0.56701773", "0.5667436", "0.56394154", "0.5622436", "0.56208646", "0.5620233", "0.5619311", "0.5601403", "0.55878...
0.65607786
0
Can we create a rating instance?
def bUEQ(YKHO): YKHO.assertEqual(YKHO.m.rating, 5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PRII(RK3H):\n RrWF = t0o2(timespan=RK3H.get('timespan'), rating_text=RK3H.get('ratingText'), rating=RK3H.get('rating'))\n return RrWF", "def eLpg(jnR1, hrxr, RrWF):\n mVUw = Rs5E(user_rating=jnR1, movie_rated=hrxr, rating=RrWF)\n return mVUw.save()", "def eLpg(YKHO, vGfb):\n taDc = vGfb.get(...
[ "0.75552493", "0.7415546", "0.7146628", "0.70770705", "0.7066632", "0.69153905", "0.6756761", "0.673833", "0.6679424", "0.64163554", "0.64010406", "0.6259415", "0.62577945", "0.6238172", "0.6230964", "0.6191638", "0.61338806", "0.61262983", "0.61113334", "0.6069389", "0.60655...
0.6222405
15
Normalises words to lowercase and stems and lemmatizes it.
def kwsU(GIN8): GIN8 = GIN8.lower() GIN8 = mkhU.stem_word(GIN8) GIN8 = LkXt.lemmatize(GIN8) return GIN8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = LkXt.lemmatize(GIN8)\n return GIN8", "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = LkXt.lemmatize(GIN8)\n return GIN8", "def NkkI(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = v_nw(GIN8)\n return GIN8", "def kwsU(GIN8):\n GIN8 = GIN8.lowe...
[ "0.80836946", "0.80836946", "0.8035472", "0.7971538", "0.7971538", "0.7775982", "0.7575146", "0.7498265", "0.74234706", "0.7333393", "0.72242004", "0.7040927", "0.70312184", "0.70140386", "0.7012369", "0.69629586", "0.6941491", "0.69281995", "0.692604", "0.69207793", "0.69165...
0.79862684
3
Reset the state of the criterion tracker. Convergence criterion objects hold state, e.g. the number of iterations so far. This method resets the state of `self` so that it can be reused.
def SiRx(YKHO): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ka5c(YKHO):\n YKHO.monitor_op = lambda jzdc, Fg_i: oyIN.less(jzdc, Fg_i * (1 - YKHO.min_delta))\n YKHO.best = oyIN.Inf\n YKHO.cooldown_counter = 0\n YKHO.wait = 0", "def SiRx(YKHO):\n YKHO.current_theta = None\n YKHO.next_theta = None\n YKHO.iter = 0\n YKHO.converged = False\n YKHO...
[ "0.7070522", "0.7022963", "0.6961007", "0.6929865", "0.69285214", "0.6817837", "0.68052024", "0.6733792", "0.6725426", "0.6722395", "0.6708474", "0.6704613", "0.6676669", "0.6672032", "0.6655515", "0.6640197", "0.6640197", "0.6640197", "0.6640197", "0.6630446", "0.66052186", ...
0.0
-1
Determines if the Alarm is 'active', meaning enabled and at least one weekday set to repeat.
def ksfB(YKHO): if YKHO.enabled is True and YKHO.any_day_enabled() is True: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wpEo(YKHO) -> bool:\n _INc = [jzdc.alarm for jzdc in YKHO.escalation_doc.items]\n return bool(Xkki.objects.filter(id__in=_INc))", "def Zvg7(YKHO):\n eOBK = False\n for CjKC in YKHO.__repeat:\n if YKHO.__repeat[CjKC] is True:\n eOBK = True\n return eOBK", "def zF4E(YKHO):\n ...
[ "0.70957935", "0.69042337", "0.6763812", "0.64326", "0.63712233", "0.63509095", "0.63207084", "0.62667555", "0.62270594", "0.61893106", "0.6183079", "0.61796683", "0.61289394", "0.61217993", "0.6118964", "0.6113621", "0.6111222", "0.61111575", "0.6107134", "0.60822344", "0.60...
0.7464946
0
Loads a model from Cloud AI Platform.
def Sw9T(bNKA, C3ST, DpZH=None, Vt89=None): if h0JD not in YCNp: raise NotImplementedError('There are no implementations of remote model.') w2IS = Hy7s.path.join('projects', bNKA, 'models', C3ST) if DpZH: w2IS = Hy7s.path.join(w2IS, 'versions', DpZH) return YCNp[h0JD](w2IS, Vt89)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO, ZGE9: str) -> None:\n YKHO.client.load_model(ZGE9)", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl():\n return", "def uyMl(YKHO):\n NotImplemente...
[ "0.75260264", "0.75260264", "0.7448836", "0.7411911", "0.7411911", "0.7411911", "0.7411911", "0.73107916", "0.7260535", "0.72545576", "0.7194381", "0.71843904", "0.7184014", "0.7158621", "0.7134966", "0.7111518", "0.70755666", "0.7066318", "0.7059154", "0.7026858", "0.7016955...
0.71443325
14
Loads a model based on a local model's path and attribution config.
def CK5N(uqvc, GPtr): if X4u5 not in YCNp: raise NotImplementedError('There are no implementations of local model.') return YCNp[X4u5](uqvc, GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(Emd4, uqvc):\n pass", "def O5RJ(YKHO, uqvc: str):\n pass", "def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError()", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(_Fei, EDTX, HKEI, feEW=None):\n C3ST = dNvh(_Fei, HKEI, feEW)\n C3ST.load(EDTX)\n return C3ST", ...
[ "0.76475984", "0.76321894", "0.75449246", "0.7411309", "0.7411309", "0.7331533", "0.72806954", "0.7279506", "0.7242335", "0.72279584", "0.71958286", "0.715419", "0.7151644", "0.71328616", "0.71122766", "0.70861274", "0.7075961", "0.7075961", "0.7075961", "0.7075961", "0.70355...
0.8321882
0
return intersection over union given two bounding boxes
def RjuK(sOrw, sxK1): sOrw = [float(YRbF) for YRbF in sOrw] sxK1 = [float(YRbF) for YRbF in sxK1] QQV6, iir0, BYMk, CGgS = sOrw golL, iiFG, W1g9, s_MQ = sxK1 wRsl = max(QQV6, iir0) dKaC = min(QQV6, iir0) h7zL = max(BYMk, CGgS) BuiT = min(BYMk, CGgS) HCES = max(golL, iiFG) CHV6 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwWG(OiNL, M8do, iQin):\n Lb9F = (OiNL[2] - OiNL[0]) * (OiNL[3] - OiNL[1])\n w4IT = (M8do[2] - M8do[0]) * (M8do[3] - M8do[1])\n VXSp = Lb9F + w4IT - iQin\n return VXSp", "def nuKs(OiNL, M8do):\n CK4Q = oyIN.maximum(OiNL[0], M8do[0])\n fVgO = oyIN.minimum(OiNL[2], M8do[2])\n BSH7 = oyIN.m...
[ "0.80113727", "0.7861125", "0.7858576", "0.78201777", "0.7810681", "0.77364", "0.77035385", "0.76960826", "0.7692927", "0.75405306", "0.7525968", "0.75105554", "0.74907094", "0.74760795", "0.7463548", "0.7444973", "0.74279875", "0.7391164", "0.7379765", "0.7379336", "0.737294...
0.0
-1
Reorder links around a patch to be counterclockwise. Examples >>> from landlab.graph.sort.sort import sort_links_at_patch >>> import numpy as np >>> xy_of_node = np.array([[0., 0.], [0., 1.], [1., 1.,], [1., 0.]]) >>> nodes_at_link = np.array([[0, 1], [1, 2], [2, 3], [3, 0]]) >>> links_at_patch = np.array([[0, 1, 3, 2]...
def Xm2o(rk2J, YmRX, qIiH): wp2H = oyIN.mean(qIiH[YmRX], axis=1) YE0F = oyIN.mean(wp2H[rk2J], axis=1) i7rk = oyIN.arange(rk2J.shape[0] + 1) * rk2J.shape[1] NGeR(rk2J.reshape((-1,)), i7rk, YE0F, wp2H)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rk2J(ohfT, BA9O=True, YmRX=None, qIiH=None):\n from ..quantity.ext.of_link import calc_midpoint_of_link\n from ..sort.ext.remap_element import reorder_links_at_patch\n rk2J, OjBd = ohfT\n BA9O = False\n if BA9O:\n wp2H = oyIN.empty((len(YmRX), 2), dtype=float)\n calc_midpoint_of_li...
[ "0.82141995", "0.76102334", "0.725472", "0.70587784", "0.56673557", "0.5598404", "0.55885196", "0.5576372", "0.5538183", "0.5446888", "0.5327885", "0.52903455", "0.50449204", "0.50354356", "0.50245035", "0.5007407", "0.49290887", "0.49266273", "0.49236903", "0.48809037", "0.4...
0.84443897
0
Adds the given symbol by creating nodes for each path component before adding symbol as the last ("leaf") node.
def wOwC(YKHO, o61b): pmON = oAb3.Path(o61b.file) Q6kx = YKHO.tree_root for Q7me in pmON.parts: hnSN = filter(YKHO.Node.is_path, Q6kx.children) UPOx = list(filter(lambda Q6kx: Q6kx.data == Q7me, hnSN)) assert len(UPOx) <= 1 if len(UPOx) == 0: UPOx = YKHO.Node(Q7me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M4sg(YKHO, o61b):\n assert o61b not in YKHO.symbol_to_node, f'{YKHO.__repr__()} already contained a child for symbol {o61b}'\n Q6kx = o7DN(symbol=o61b, parent=YKHO)\n YKHO.symbol_to_node[o61b] = Q6kx\n return Q6kx", "def Rgpq(YKHO, gLiZ):\n Q6kx = YKHO\n for hcXw in gLiZ:\n Q6kx = Q6...
[ "0.63893163", "0.6164501", "0.60148513", "0.5968798", "0.59207344", "0.5651985", "0.5649812", "0.5587907", "0.5568082", "0.55313116", "0.5523485", "0.5510002", "0.55050033", "0.54815453", "0.5455232", "0.54379547", "0.54183763", "0.54078436", "0.54062", "0.5385258", "0.535341...
0.78030145
0
Returns length of current shape coordinates.
def zNig(YKHO): return len(YKHO.coords)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO.coords.length", "def yall(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return float(LBWB.length(YKHO))", "def u54L(YKHO):\n return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2)", "def u54L(YKHO):\n return epAf.sqrt(YKHO.x * YKHO.x + YKHO.y * ...
[ "0.8340359", "0.81069016", "0.8038375", "0.8006687", "0.8006681", "0.7994934", "0.7987992", "0.78690606", "0.77819294", "0.7714384", "0.7625518", "0.7622191", "0.7553132", "0.7553132", "0.7553132", "0.75473267", "0.7515809", "0.75046784", "0.74915206", "0.7491042", "0.7480249...
0.7782207
8
Create an empty list and add a few random integers to it.
def fQp4(): nPrm = [] for YRbF in range(0, 16): nPrm.append(tuKI.randint(1, 99)) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UfH_():\n vC9B: list = []\n [vC9B.append(tuKI.randint(0, 1000)) for bGrB in range(100)]\n return vC9B", "def t4rA():\n S06t = tuKI.sample(range(1, 10000), 500)\n return S06t", "def nocu(exwG):\n JTgH = list()\n for YRbF in range(exwG):\n JTgH.append(tuKI.randint(0, 100000))\n ...
[ "0.7829871", "0.76325274", "0.7527585", "0.7525274", "0.74747455", "0.7467436", "0.7350501", "0.7238863", "0.7192372", "0.71903986", "0.7179444", "0.7175555", "0.71710485", "0.71247196", "0.7114682", "0.70868975", "0.70665467", "0.70665467", "0.7055129", "0.70439863", "0.7012...
0.65684175
40
Finds the index of the lowest item in the unsorted part of the data.
def rMkw(nPrm, yKcO): H_Qq = yKcO for YRbF in range(yKcO, len(nPrm)): if nPrm[YRbF] < nPrm[H_Qq]: H_Qq = YRbF return H_Qq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXjM(nPrm) -> int:\n VAJu = 0\n r8hN = nPrm[VAJu]\n for YRbF in range(len(nPrm)):\n if nPrm[YRbF] < r8hN:\n r8hN = nPrm[YRbF]\n VAJu = YRbF\n return VAJu", "def o7w4(YKHO):\n kpLf = 2\n ZSml = -1\n for d6pt, bTKY in enumerate(YKHO.contents):\n if bTKY....
[ "0.80003697", "0.760972", "0.74707466", "0.7321294", "0.7305635", "0.7231536", "0.72139126", "0.7105433", "0.708727", "0.70203686", "0.6971664", "0.69650894", "0.6940042", "0.6924966", "0.69107276", "0.6882704", "0.68620956", "0.6853304", "0.682578", "0.682416", "0.68003476",...
0.7618512
1
Truncate text at given length and append truncate_indicator if truncated. If the text is shorter than or equal to max_length, just return text unmodified
def BYUf(l5Ny, BcCR, Hho8='...'): return l5Ny[:BcCR - len(Hho8)] + Hho8 if len(l5Ny) > BcCR else l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(BWXx: Union[str, None, int], BcCR: int) -> uLKX[str, None, int]:\n LXG0 = BWXx\n if isinstance(LXG0, bytes):\n LXG0 = LXG0.decode('utf-8')\n if isinstance(LXG0, str) and BcCR < len(LXG0):\n bFhN = BcCR - xYoS\n if bFhN <= 0:\n LXG0 = W6uZ\n else:\n ...
[ "0.784982", "0.78157854", "0.76883024", "0.75924534", "0.7567278", "0.747739", "0.74643075", "0.7315984", "0.7135673", "0.7135646", "0.71247166", "0.71247166", "0.7113669", "0.70992297", "0.7089526", "0.7001625", "0.69885194", "0.69238347", "0.68921953", "0.6889704", "0.68612...
0.8654825
0
Removes an existing vertex from this graph if it is in the graph
def AYvI(YKHO, SLBp): if not YKHO.contains_vertex(SLBp): return False if isinstance(SLBp, int): SLBp = YKHO.find_vertex(SLBp) for Ty9i in YKHO.vertices: if Ty9i is SLBp: for YRbF in range(len(YKHO.vertices)): YKHO.vertices[YRbF].delete_adjacent(Ty9i) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AYvI(YKHO, SLBp):\n if SLBp not in YKHO.vertices:\n raise ValueError('Vertex not found')\n YKHO.vertices.pop(SLBp)\n for ZfUD in YKHO.vertices:\n if SLBp in YKHO.vertices[ZfUD]:\n YKHO.vertices[ZfUD].pop(SLBp)", "def AYvI(YKHO, Ty9i):\n if YKHO.has_key(Ty9i):\n mC4...
[ "0.8020405", "0.7853441", "0.77712685", "0.7768387", "0.77457565", "0.7700293", "0.7625501", "0.7554413", "0.75341016", "0.743991", "0.7414517", "0.7395233", "0.73937124", "0.7388951", "0.73698354", "0.7335066", "0.72855663", "0.7281639", "0.7270187", "0.72517574", "0.7212304...
0.78104615
2
Creates an edge between 2 vertices in the graph with the supplied weight
def bsXo(YKHO, CBRg, j9ly, upAO=0): if not YKHO.contains_vertex(CBRg) or not YKHO.contains_vertex(j9ly): return False if isinstance(CBRg, int): CBRg = YKHO.find_vertex(CBRg) if isinstance(j9ly, int): j9ly = YKHO.find_vertex(j9ly) CBRg.add_adjacent(j9ly, upAO) YKHO.weights.upd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, Ty9i: int, yzQ0: int, upAO: float=1.0) -> None:\n pass", "def rz7z(YKHO, hQHm, jlSq, upAO):\n if not YKHO.has_vert(hQHm):\n raise ValueError('First given Vertice is not present')\n if not YKHO.has_vert(jlSq):\n raise ValueError('Second given Vertice is not present')\n YKH...
[ "0.7675502", "0.7618302", "0.7601509", "0.75696766", "0.75471896", "0.75052285", "0.7464548", "0.7451924", "0.74209785", "0.738549", "0.73638725", "0.7297772", "0.72882646", "0.7252824", "0.7249955", "0.72478163", "0.72478163", "0.72478163", "0.72478163", "0.72478163", "0.724...
0.75579435
4
Returns the weight of the edge between two vertices in the graph if they are adjacent
def rOos(YKHO, CBRg, j9ly): if not YKHO.contains_vertex(CBRg) or not YKHO.contains_vertex(j9ly): raise RuntimeError(f'Both vertices must be present in the graph') if isinstance(CBRg, int): CBRg = YKHO.find_vertex(CBRg) if isinstance(j9ly, int): j9ly = YKHO.find_vertex(j9ly) if YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rOos(YKHO, sdFo):\n return YKHO.connected_to.get(sdFo)", "def sR9N(YKHO, P6bq, Ty9i):\n if YKHO.are_connected(P6bq, Ty9i):\n for tTpl in YKHO.edges:\n if tTpl[0] == P6bq and tTpl[1] == Ty9i:\n return tTpl[2]\n if tTpl[0] == Ty9i and tTpl[1] == P6bq:\n ...
[ "0.7412732", "0.7289274", "0.72066605", "0.70904666", "0.7080009", "0.69837636", "0.6953261", "0.6896846", "0.6870387", "0.6815504", "0.6801041", "0.67931366", "0.67259854", "0.6694928", "0.66392493", "0.6602336", "0.656464", "0.65362245", "0.64904046", "0.64753515", "0.64445...
0.7786722
0
Returns the Vertex in this Graph with the requested id, and None if it doesn't exist
def tWkW(YKHO, id): SLBp = None for YRbF in range(0, len(YKHO.vertices)): if YKHO.vertices[YRbF].id == id: SLBp = YKHO.vertices[YRbF] return SLBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kfix(YKHO, yHil):\n if yHil in YKHO.adj_list:\n return YKHO.adj_list[yHil]\n else:\n return None", "def Kfix(YKHO, oqUi):\n if oqUi not in YKHO.__vertex_dict:\n return None\n ds2i = YKHO.__vertex_dict[oqUi]\n return ds2i", "def Kfix(YKHO, uBEG):\n if uBEG in YKHO.vert...
[ "0.8093024", "0.7947166", "0.79292995", "0.79162204", "0.778468", "0.77004015", "0.7589427", "0.7546363", "0.7513488", "0.74717", "0.7314951", "0.7314951", "0.730049", "0.725133", "0.72463006", "0.7211864", "0.7104495", "0.6958651", "0.6946395", "0.6909454", "0.69014364", "...
0.85732836
0
Function that returns whether or not a given Vertex is in this graph
def g_kN(YKHO, SLBp): if isinstance(SLBp, Yegm): return SLBp in YKHO.vertices if isinstance(SLBp, int): for Ty9i in YKHO.vertices: if Ty9i.id == SLBp: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HhQ7(YKHO, SLBp):\n return SLBp in YKHO._vertices", "def FYXB(YKHO, SLBp):\n return SLBp in YKHO._neighbors", "def hg4F(pNZh, SLBp):\n return rrLg.containsVertex(pNZh, SLBp)", "def HhQ7(YKHO, H5ew):\n return H5ew in YKHO.vertex", "def g_kN(YKHO, niHF: n) -> bool:\n return niHF in YKHO._g...
[ "0.7877786", "0.7857989", "0.78315973", "0.7819136", "0.7815471", "0.7808383", "0.7743684", "0.7690672", "0.75015134", "0.7391008", "0.734747", "0.7334023", "0.7298813", "0.72879285", "0.72053057", "0.7204733", "0.7201646", "0.71973634", "0.71878594", "0.7086638", "0.69941837...
0.78021914
6
Calculates and returns the maximum degree of the graph Returns int The maximum degree of all vertices in the graph
def hQ4q(YKHO): vhsA = 0 for SLBp in YKHO.vertices: if len(SLBp.get_adjacent_vertices()) > vhsA: vhsA = len(SLBp.get_adjacent_vertices()) return vhsA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vhsA(YKHO):\n vhsA = 0\n for SLBp in YKHO:\n tjON = YKHO.degree(SLBp)\n if tjON > vhsA:\n vhsA = tjON\n return vhsA", "def KZlT(YKHO):\n if not YKHO.vertex:\n return 0\n return max((YKHO.vertex_degree(H5ew) for H5ew in YKHO.vertices()))", "def MgEv(YKHO) -> in...
[ "0.87214756", "0.86846757", "0.8624866", "0.84330606", "0.81662524", "0.80047894", "0.7950281", "0.7786474", "0.7670822", "0.76632535", "0.7304819", "0.72768337", "0.72324985", "0.71481824", "0.7139224", "0.7095298", "0.70661783", "0.70603067", "0.7023737", "0.7013432", "0.69...
0.8555868
3
Create the UserProfile when a new User is saved
def sxXS(vC92, KAOR, _EYN, **B2fa): if _EYN: SYRW.objects.create(user=KAOR) else: try: SYRW.objects.get(user=KAOR) except SYRW.DoesNotExist: SYRW.objects.create(user=KAOR)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lqHO(vC92, KAOR, **B2fa):\n BFpK.objects.get_or_create(user=KAOR)", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z = BFpK()\n z39Z.user = KAOR\n z39Z.save()", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z = BFpK()\n z39Z.user = KAOR\n z39Z...
[ "0.84271014", "0.841891", "0.841891", "0.8402197", "0.836771", "0.836771", "0.8364555", "0.8325676", "0.8325676", "0.8291276", "0.8256508", "0.82360756", "0.8233739", "0.819495", "0.8097959", "0.8081751", "0.8054626", "0.80168265", "0.7984516", "0.7937757", "0.78967965", "0...
0.7400232
61
Applies a 2D convolution over an input signal composed of several input planes.
def FIMM(YKHO, VKhi, DYuh: int, tYiq: int, Ot1W: int or tuple, _0fC: Optional[int or tuple]=1, ivFb: Optional[int or tuple]=1, moMn: Optional[int]=1, oug5: Optional[bool]=False, ktt2: Optional[str]='zeros', vo0r: Optional[bool]=True, HzhG: Optional[bool]=True, *qIxc, **B2fa) -> None: super(NQE4, YKHO).__init__() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KL2G(LNo8, WZcn, mzkS=True):\n raise NotImplementedError", "def P79G(YKHO, input, **B2fa):\n KUnM = YKHO.W\n input = input\n BDll = [None if isinstance(geyT, Kt_s.TensorVariable) else geyT for geyT in YKHO.get_W_shape()]\n ETfU = YKHO.in_shape\n pfA5 = d19N(ETfU[2:], YKHO.filter_size, YKHO....
[ "0.7147621", "0.6996595", "0.6965656", "0.6963212", "0.69112706", "0.6883954", "0.6883954", "0.6800977", "0.67900187", "0.67678344", "0.6704431", "0.6657777", "0.662591", "0.6617369", "0.66031146", "0.66031146", "0.6557581", "0.65476304", "0.6535683", "0.65300083", "0.6509241...
0.0
-1
Applies a 2D Transpose Convolution over an input signal composed of several input planes.
def FIMM(YKHO, VKhi, DYuh: int, tYiq: int, Ot1W: int or tuple, _0fC: Optional[int or tuple]=1, ivFb: Optional[int]=1, moMn: Optional[int]=1, oug5: Optional[bool]=False, ktt2: Optional[str]='zeros', vo0r: Optional[bool]=True, HzhG: Optional[bool]=True, dvgN: Optional[int or tuple]=(0, 0), GqF4: Optional[bool]=True): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ujod(UUZO, sYyA, _0fC=1):\n return A_Zv(UUZO, sYyA, kernel_size=3, stride=_0fC, padding=1, bias=False)", "def O1jb(YKHO, he5B, Ot1W, vHnr):\n aJva = wyuq(he5B, (Ot1W, Ot1W), strides=(2, 2), use_bias=False)(vHnr)\n aJva = GVKG(axis=YKHO.axis)(aJva)\n aJva = MroH('relu')(aJva)\n return aJva", ...
[ "0.6638683", "0.6476285", "0.6391864", "0.63521796", "0.63022035", "0.6296793", "0.6296793", "0.6001213", "0.59716016", "0.59594905", "0.59369177", "0.5916765", "0.5902787", "0.5883007", "0.588063", "0.5874113", "0.5866594", "0.58306247", "0.58266795", "0.57286763", "0.571800...
0.5354988
45
Applies a normalization layer followed by activation layer over an input tensor
def FIMM(YKHO, VKhi, HhVR): super(ihBY, YKHO).__init__() XkN1 = U78l.Sequential() YKHO.norm_name = None ykhl = QYad(opts=VKhi, num_features=HhVR) XkN1.add_module(name='norm', module=ykhl) YKHO.norm_name = ykhl.__class__.__name__ YKHO.act_name = None KLM6 = getattr(VKhi, 'model.activation...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def goIx(WKvO):\n WKvO = ZylS.keras.layers.BatchNormalization()(WKvO)\n return ZylS.keras.layers.Activation('relu')(WKvO)", "def nrOS(YKHO, g4y1: jnp.ndarray) -> oLG2.ndarray:\n CLda = len(YKHO.layers)\n yvT9 = TP_I.Flatten()(g4y1)\n for YRbF, gEmA in enumerate(YKHO.layers):\n if YRbF == CL...
[ "0.75380224", "0.69590646", "0.6939973", "0.68887365", "0.6887222", "0.68691444", "0.68550956", "0.6804161", "0.67957175", "0.67616266", "0.67004967", "0.66873246", "0.6675054", "0.6630673", "0.6614886", "0.6572178", "0.6567862", "0.65556854", "0.65290886", "0.6516291", "0.64...
0.0
-1
Simple recursive dictionary update
def C09e(Csk6, P6bq): for G1Hx, Ty9i in P6bq.iteritems(): if isinstance(Ty9i, g760.Mapping): Mkmy = C09e(Csk6.get(G1Hx, {}), Ty9i) Csk6[G1Hx] = Mkmy else: Csk6[G1Hx] = P6bq[G1Hx] return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cM0y():\n bJN7 = dict(subdict=dict(to_update=1))\n Dbmo = dict(subdict=dict(to_update=2))\n C09e(bJN7, Dbmo)\n assert bJN7 == dict(subdict=dict(to_update=2))", "def Jc8_(Csk6: collections.abc.Mapping, P6bq: collections.abc.Mapping):\n for G1Hx, Ty9i in P6bq.items():\n if isinstance(Ty9i...
[ "0.7809028", "0.77099216", "0.76146114", "0.7499814", "0.73944306", "0.7347618", "0.7344537", "0.7301977", "0.7290749", "0.7262432", "0.7257536", "0.7237691", "0.71764857", "0.7129517", "0.7080167", "0.7074355", "0.6926407", "0.6895068", "0.68857336", "0.68673444", "0.6847498...
0.74372715
4
r"""Return list of target model update ops. These are soft target updates. Meaning that the target values are slowly adjusted, rather than directly copied over from the source model.
def Li32(pNZh, oSTn, t8An, jmzt): IPme = [] pDvj = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=t8An) IRmN = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=oSTn) for YRbF in range(len(pDvj)): WXpE = pDvj[YRbF] dEV_ = IRmN[YRbF] J1oj = (1 - jmzt) * ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Li32(pan_, JZXy, jmzt):\n pass", "def Q0cq(pan_, JZXy):\n pass", "def Q0cq(pNZh, oSTn, t8An):\n IPme = []\n pDvj = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=t8An)\n IRmN = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=oSTn)\n for YRbF in range(len(pDvj)...
[ "0.7853561", "0.76177377", "0.7265277", "0.7094671", "0.6978527", "0.68048364", "0.66969377", "0.6581759", "0.65471846", "0.6435959", "0.6267033", "0.6216861", "0.620495", "0.6119439", "0.5949419", "0.59247684", "0.5892662", "0.5809645", "0.5784377", "0.57799864", "0.577917",...
0.7436652
2
Return list of target model update ops. These are hard target updates. The source weights are copied directly to the target network.
def Q0cq(pNZh, oSTn, t8An): IPme = [] pDvj = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=t8An) IRmN = pNZh.get_collection(ZylS.GraphKeys.TRAINABLE_VARIABLES, scope=oSTn) for YRbF in range(len(pDvj)): WXpE = pDvj[YRbF] dEV_ = IRmN[YRbF] khtY = ZylS.assign(dEV_, W...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q0cq(pan_, JZXy):\n pass", "def Igrp(YKHO):\n with ZylS.variable_scope('update_target_network'):\n YKHO.tf_tau = ZylS.placeholder(ZylS.float32, shape=(), name='tau')\n _Zyu = []\n for SLbt, pan_ in zip(YKHO.online.params, YKHO.target.params):\n bc5D, Eg2g = (SLbt.name.sp...
[ "0.7738987", "0.7530045", "0.7371511", "0.7268509", "0.7108853", "0.6990225", "0.66928196", "0.6606744", "0.64696985", "0.6436048", "0.635045", "0.63391304", "0.6242522", "0.623416", "0.6219195", "0.6002185", "0.6002185", "0.60010326", "0.5998336", "0.5931155", "0.593106", ...
0.7453983
2
Get the circumference of a ring at a given latitude
def UAxo(QnmL): return 2.0 * oyIN.pi * oyIN.cos(QnmL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Stx3(r1VO):\n return 2 * XTiz.pi * r1VO", "def UKLo(YKHO):\n return YKHO._R", "def Stx3(Mkmy):\n return 2 * mM0K * Mkmy", "def ZALC(YKHO, r1VO):\n return 2 * epAf.pi * r1VO", "def UKLo(YKHO):\n return YKHO._circumradius", "def GiOJ(YKHO):\n return 2.0 * epAf.pi * YKHO.__radius", "...
[ "0.7412069", "0.737527", "0.7339697", "0.7319519", "0.72705305", "0.72660434", "0.7163822", "0.711271", "0.7103875", "0.7092008", "0.70869964", "0.7063597", "0.70127195", "0.7002535", "0.69491273", "0.6933469", "0.6931537", "0.68647885", "0.6833367", "0.6824575", "0.67810017"...
0.79922813
0
Get the maximum circumference for each set of latitudes
def H3Fv(VlB3): m2Qg = oyIN.vstack([VlB3]) jdVU = UAxo(m2Qg) return jdVU.max(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SHWa(j5tF):\n M_DK = oyIN.transpose(j5tF.exterior.coords.xy)\n r1VO = oyIN.max(yfx6(M_DK, [[0, 0]]))\n return r1VO", "def bQwz(pQZM) -> float:\n TaUL = oyIN.zeros(3, dtype=float)\n for YRbF in range(3):\n BZ88 = WHx2(pQZM[YRbF - 2], pQZM[YRbF - 1])\n SfE9 = pQZM[YRbF]\n Ta...
[ "0.6525106", "0.6518128", "0.6363771", "0.63611686", "0.6323861", "0.6260096", "0.62276405", "0.62013423", "0.6181384", "0.61149883", "0.60340255", "0.6029835", "0.6021868", "0.6002221", "0.5994742", "0.5894943", "0.5871994", "0.58148265", "0.57849175", "0.5783963", "0.577266...
0.74890774
0
Write the dictionary of dictionaries into a yaml file
def kHBd(YKHO, VqRE): J7Cn = open(VqRE, 'w') eJb6.dump(YKHO.__roi_dict, J7Cn) J7Cn.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kHBd(YKHO, Ux0P):\n nPrm = YKHO.as_dict()\n eHNT = open(Ux0P, 'w')\n eJb6.dump(nPrm, eHNT)\n eHNT.close()", "def x2EX(*fgcx: dict, SQP_: pyrado.PathLike, gIsw: str='hyperparams'):\n with open(BKva.join(SQP_, gIsw + '.yaml'), 'w') as SGPW:\n for Csk6 in fgcx:\n Csk6 = yZkZ(Csk...
[ "0.77135754", "0.760414", "0.74801004", "0.7451337", "0.7304622", "0.72529155", "0.722698", "0.7196009", "0.71859056", "0.7123331", "0.7070832", "0.7010003", "0.6994795", "0.6990942", "0.69672614", "0.6926107", "0.69215477", "0.6911616", "0.6849899", "0.68414956", "0.6786629"...
0.68753296
18
The size of each roi, in degrees The ROIs are square, and this gives the length of a side
def AL9Z(YKHO): return YKHO.__roisize_deg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R8e4(YKHO, Zmw9):\n return [Zmw9.size()[0], Zmw9.size()[1]]", "def szAg(YKHO):\n return YKHO.h // YKHO.size * (YKHO.w // YKHO.size)", "def LyOL(YKHO):\n if YKHO._side_length == None:\n YKHO._side_length = 2 * YKHO._r * epAf.sin(epAf.pi / YKHO._n)\n return YKHO._side_length", "def cDmO(...
[ "0.7737564", "0.6919536", "0.6911458", "0.6870664", "0.6845011", "0.68432707", "0.6840891", "0.68403023", "0.6824446", "0.6790897", "0.6783075", "0.6781141", "0.6780277", "0.6764664", "0.6761011", "0.6751843", "0.66774887", "0.66686124", "0.66404724", "0.6632326", "0.6627904"...
0.0
-1
Finds a symbol based on its identifier
def neBz(YKHO, mLGw): return YKHO.symbols[mLGw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IJiZ(YKHO, mWFP: str=None) -> KGVD:\n Ts4o: KGVD = None\n if mWFP:\n Ts4o = YKHO.table.find_symbol(mWFP)\n elif YKHO.token.tok_id == 'id':\n Ts4o = YKHO.table.find_symbol(YKHO.token.lit)\n YKHO.__next_token()\n else:\n YKHO.__raise_error('Identifier expected')\n retur...
[ "0.7685869", "0.76019627", "0.73307407", "0.72842973", "0.71643394", "0.71542764", "0.70776916", "0.70433956", "0.70323575", "0.7031147", "0.7005197", "0.6911185", "0.6879797", "0.6838563", "0.6787884", "0.6786709", "0.678011", "0.6660356", "0.66313", "0.6630699", "0.6567903"...
0.71033126
6
Ensure we can register a new user.
def ITzg(YKHO): bD7m = gxEw('register_user') nPrm = {'company_name': 'My Company S.L.', 'email': 'email2@example.com', 'phone': '+34666555777', 'user_lang': 'es'} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(geh0.da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bGCN(YKHO):\n if YKHO.valid_password() is True and YKHO.valid_username() is True:\n with mnO2.open(bqED) as NCls:\n if NCls.get(YKHO._username) is None:\n NCls[YKHO._username] = {'password': YKHO._password, 'is_admin': YKHO._is_super, 'date': qcWV.today().strftime('%Y-%m-%d'...
[ "0.73163927", "0.73154473", "0.72942007", "0.7283954", "0.7281088", "0.726889", "0.72573924", "0.7222243", "0.7218616", "0.72085917", "0.71793175", "0.7156212", "0.7132344", "0.7127445", "0.71222353", "0.71200705", "0.7117131", "0.7116167", "0.7114967", "0.70875", "0.7058284"...
0.0
-1
Test reauth flow triggered by setup entry.
async def test_reauth_setup_entry(ajET: HomeAssistant, x0hE, Ehsq) -> None: Ehsq.setattr(x0hE, 'is_connected', FM6F(return_value=False)) Ehsq.setattr(x0hE, 'connect', FM6F(side_effect=o5sP)) bTKY = await H6wf(ajET) assert bTKY.state == gpxd.SETUP_ERROR SKxV = ajET.config_entries.flow.async_progress(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_step_reauth(ajET, GPtr, PhL6, RCrp):\n Aofo = await ajET.config_entries.flow.async_init(Sugg, context={'source': kXTa}, data=GPtr)\n assert Aofo['step_id'] == 'reauth_confirm'\n Aofo = await ajET.config_entries.flow.async_configure(Aofo['flow_id'])\n assert Aofo['type'] == hLjp.FlowResul...
[ "0.791364", "0.78696287", "0.7699503", "0.7573953", "0.751287", "0.73384327", "0.7288565", "0.7182961", "0.71092856", "0.7097924", "0.70799756", "0.70410883", "0.7020126", "0.70190454", "0.6892342", "0.6856992", "0.68387955", "0.6786339", "0.67822397", "0.6725474", "0.6697086...
0.7657293
3
Creates a Django superuser for the project
def HvMu(): with tD_h(): iXC1('python manage.py createsuperuser')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, NtEF, D3lj, jTXt, **wdCM):\n print('vao')\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(NtEF, D3lj, jTXt)\n CBIr.is_superuser = True\n CBIr.is_staff = True\n CBIr.save()\n return CBIr", "def Zp54(YKHO, D3lj, jTXt, **B...
[ "0.7821682", "0.77823496", "0.77604175", "0.7754046", "0.772231", "0.77181375", "0.76834244", "0.76807564", "0.7659972", "0.7648397", "0.7636168", "0.763222", "0.76319224", "0.76209396", "0.75991315", "0.75988674", "0.7597618", "0.75691473", "0.75676453", "0.7564867", "0.7524...
0.7928041
0
Get the tick locations and labels for an axis of a Lambert Conformal projection.
def JJEZ(aNZO, q_E9, lDr_, q27P, Ekwa): wNXl = kkjf.LineString(aNZO.outline_patch.get_path().vertices.tolist()) jDK_ = B581(wNXl, lDr_) d3gB = 30 xx9t = aNZO.get_extent(gDdM.PlateCarree()) sMA2 = [] for a1PO in q_E9: M_DK = q27P(a1PO, d3gB, xx9t) okAz = aNZO.projection.transform_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JJEZ(aNZO, q_E9, lDr_, q27P, Ekwa):\n wNXl = kkjf.LineString(aNZO.outline_patch.get_path().vertices.tolist())\n jDK_ = B581(wNXl, lDr_)\n d3gB = 30\n xx9t = aNZO.get_extent(gDdM.PlateCarree())\n sMA2 = []\n for a1PO in q_E9:\n M_DK = q27P(a1PO, d3gB, xx9t)\n okAz = aNZO.projecti...
[ "0.5976424", "0.5976424", "0.59609234", "0.5939656", "0.5884868", "0.579635", "0.57558095", "0.57357395", "0.5642855", "0.5607155", "0.5589842", "0.55605835", "0.55572593", "0.553014", "0.55182314", "0.55067784", "0.5412663", "0.5407162", "0.540495", "0.5393104", "0.538552", ...
0.60379237
0
Test read date for SZF formats.
def jn4S(YKHO): JRYC = qcWV(2018, 6, 11, 4, 18, 0) jvzS, yIVm = YKHO.eps_szf.read(JRYC) mGeg, yIVm = YKHO.hdf5_szf.read(JRYC) for GXkX in ['lf-vv', 'lm-vv', 'la-vv', 'rf-vv', 'rm-vv', 'ra-vv']: for BHsk in ['lon', 'lat']: YM9p.assert_allclose(jvzS[GXkX][BHsk], mGeg[GXkX][BHsk], atol=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYQc(YKHO):\n for zFiD in gV5T().list('input.txt').splitlines():\n M_xU = MBBL().hdfsDate(zFiD)\n if MBBL().hdfsDate(zFiD):\n YKHO.assertTrue(ZbWC.match('[0-9]{4}(-[0-9]{2}){2}', M_xU))", "def vvby(_c1T, x8us):\n try:\n JRYC.strptime(_c1T, x8us)\n return True\n ...
[ "0.7456253", "0.7113093", "0.6721778", "0.66563207", "0.6614838", "0.6606548", "0.65978056", "0.6594957", "0.6583984", "0.6557095", "0.650279", "0.6500266", "0.64729476", "0.64729476", "0.6467996", "0.6438146", "0.64379454", "0.6436476", "0.6418525", "0.64148974", "0.64089125...
0.760428
0
A view displays the Home Page
def vja_(QePW): Ghho = qZuN.objects.all() xGVm = msfn.objects.raw('select * from products_product where instock<=1 order by instock limit 10') aE28 = msfn.objects.raw('select * from products_product where views>=1 order by views desc limit 3') QpfX = {'top_3_product': aE28, 'category': Ghho, 'best_selle...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(YKHO, tTee: View, QePW: Request):\n return tTee.render('welcome')", "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def kZiy():\n nPrm = UPcG().get_home()\n RKD7.info(nPrm)\n tTee = CWuy().get_home(nPrm)\n RKD7.inf...
[ "0.8438271", "0.8408654", "0.8388629", "0.83855754", "0.8339773", "0.8339773", "0.82808936", "0.8272574", "0.82650834", "0.82647896", "0.824819", "0.8221597", "0.8201143", "0.81751305", "0.8174886", "0.81670123", "0.8166361", "0.8136447", "0.813221", "0.813221", "0.813221", ...
0.0
-1
Split string text by space unless it is wrapped inside double quotes, returning a list of the elements. For example if text = 'Should give "3 elements only"'
def tEXt(l5Ny): V22M = [] GIN8 = '' Sqdy = False for Z9rn in l5Ny: if Z9rn == '"': Sqdy = not Sqdy continue if Z9rn == ' ' and (not Sqdy): V22M.append(GIN8) GIN8 = '' continue GIN8 += Z9rn V22M.append(GIN8) retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEXt(l5Ny):\n Aofo = list()\n mXDZ = ZbWC.findall('\\\\w+\\\\s*|\\\\\".+?\\\\\"', l5Ny)\n for hcXw in mXDZ:\n Aofo.append(hcXw.strip().replace('\"', ''))\n return Aofo", "def tEXt(l5Ny):\n KCHu = ZbWC.split(pattern='(\".+?\")', string=l5Ny)\n vC9B = list()\n for YRbF in KCHu:\n ...
[ "0.7964823", "0.78867555", "0.7778175", "0.7528772", "0.7507532", "0.7247395", "0.7129757", "0.70465684", "0.7011224", "0.69830644", "0.6951625", "0.6946999", "0.6888802", "0.6846371", "0.6825879", "0.6810143", "0.6755368", "0.66950864", "0.66931444", "0.6679996", "0.66775495...
0.7781877
2
Split string by comma into a list of stripped strings
def qLeZ(YRbF): Mkmy = [] if type(YRbF) == list: Mkmy = YRbF else: P2GO = YRbF.split(',') for vexM in P2GO: vexM = vexM.strip() if vexM != '': Mkmy.append(vexM) return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tFpc(KCHu):\n return [jzdc.replace('\\\\,', ',') for jzdc in ZbWC.split('(?<!\\\\\\\\),', KCHu) if jzdc]", "def R0TS(C5N_: str) -> x1iM[str]:\n return [KCHu.strip() for KCHu in C5N_.split(',') if KCHu.strip()]", "def RfT6(OvGC: str):\n if not isinstance(OvGC, str):\n return None\n return...
[ "0.8221205", "0.79701304", "0.78841996", "0.77496207", "0.77411926", "0.77285403", "0.7640033", "0.76296824", "0.7488382", "0.7422824", "0.7391628", "0.7379353", "0.7341703", "0.7306466", "0.726132", "0.7230739", "0.7213363", "0.7213363", "0.71477795", "0.7146533", "0.701702"...
0.6610096
39
Save dict to a json file
def m_rt(YRbF): import ck.files return L310.files.save_json_to_file(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U1ai(fGC9, FYKK):\n with open(FYKK, 'w') as eHNT:\n eHNT.write(qQXR.dumps(fGC9))", "def ghRP(NWa8, tGFt):\n qQXR.dump(NWa8, open(tGFt, 'w'))", "def U1ai(nPrm: dict, pmON: str):\n with open(pmON, 'w') as eHNT:\n qQXR.dump(nPrm, eHNT)", "def xkzz(YKHO):\n YGFP = YKHO.to_dict()\n ...
[ "0.88461643", "0.8396077", "0.831433", "0.8263313", "0.8258548", "0.8235542", "0.82293993", "0.82285213", "0.81688243", "0.8132069", "0.81136525", "0.80529624", "0.80343044", "0.80187684", "0.80134207", "0.8004029", "0.8004029", "0.7992756", "0.7987189", "0.79768836", "0.7971...
0.0
-1
Save dict to a YAML file
def gDAf(YRbF): import ck.files return L310.files.save_yaml_to_file(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MZB0(qaEx: str, fGC9: Dict):\n with open(qaEx, 'w') as SGPW:\n eJb6.dump(fGC9, SGPW, default_flow_style=False)", "def POvz(nPrm: dict, pmON: str):\n with open(pmON, 'w') as eHNT:\n eJb6.dump(nPrm, eHNT, default_flow_style=False)", "def POvz(pmON: str, nPrm: Dict):\n with open(pmON, '...
[ "0.82477975", "0.7989913", "0.7868191", "0.782419", "0.76782376", "0.76236504", "0.75400895", "0.7447247", "0.74410933", "0.74147105", "0.7409911", "0.7403404", "0.73220474", "0.7305447", "0.7296027", "0.72731495", "0.72590804", "0.7249132", "0.7199266", "0.71634346", "0.7161...
0.6956644
31
Merge intelligently dict1 with dict2 key by key in contrast with dict1.update(dict2)
def roQF(YRbF): jzdc = YRbF['dict1'] Fg_i = YRbF['dict2'] seH6 = YRbF.get('append_lists', '') for G1Hx in Fg_i: Ty9i = Fg_i[G1Hx] if type(Ty9i) is dict: if G1Hx not in jzdc: jzdc.update({G1Hx: Fg_i[G1Hx]}) elif type(jzdc[G1Hx]) == dict: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cyBQ(AjzU, _sQW):\n for G1Hx, jlSq in _sQW.items():\n hQHm = AjzU.get(G1Hx)\n if isinstance(hQHm, g760.Mapping) and isinstance(jlSq, g760.Mapping):\n cyBQ(hQHm, jlSq)\n else:\n AjzU[G1Hx] = jlSq\n if isinstance(hQHm, set):\n AjzU[G1Hx].upd...
[ "0.8519047", "0.8465081", "0.8431308", "0.84186083", "0.82914615", "0.8241735", "0.81946486", "0.81882584", "0.81647253", "0.8148952", "0.81330824", "0.80993813", "0.8086958", "0.8086958", "0.80759376", "0.8071064", "0.8058645", "0.8014117", "0.79829216", "0.7970806", "0.7944...
0.0
-1
Compare two dictionaries recursively
def nHpu(YRbF): AjzU = YRbF.get('dict1', {}) _sQW = YRbF.get('dict2', {}) InF8 = 'yes' dOOm = False aVmR = YRbF.get('ignore_case', '') if aVmR == 'yes': dOOm = True for BzON in _sQW: jlSq = _sQW[BzON] if type(jlSq) == dict: if BzON not in AjzU: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SEf3(WbPA, S69B, pmON='', PPJC='dict1', l5dA='dict2'):\n sjXb = set(WbPA.keys() + S69B.keys())\n Ylbp = {}\n for H5ew in sjXb:\n hU8D = '{}.{}'.format(pmON, H5ew)\n if WbPA.get(H5ew) and S69B.get(H5ew) and (type(WbPA[H5ew]) == dict) and (type(S69B[H5ew]) == dict):\n Ylbp.updat...
[ "0.7620952", "0.75039196", "0.71494275", "0.71209985", "0.7090931", "0.7080428", "0.69940215", "0.6937019", "0.6896304", "0.6881529", "0.68568176", "0.68071675", "0.6798011", "0.6792515", "0.6766225", "0.67378736", "0.6730704", "0.67164135", "0.67010605", "0.6693724", "0.6681...
0.71258146
3
Gets the consideration_type of this TransferRequestConsideration.
def w1ys(YKHO) -> str: return YKHO._consideration_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tMfV(YKHO) -> hphg:\n return YKHO._consideration", "def w1ys(YKHO, w1ys: str):\n BbPm = ['transfer_for_value', 'transfer_not_for_value', 'other_receipt']\n if w1ys not in BbPm:\n raise ValueError('Invalid value for `consideration_type` ({0}), must be one of {1}'.format(w1ys, BbPm))\n YKHO....
[ "0.69062674", "0.66427946", "0.6224297", "0.6120271", "0.6078739", "0.6056487", "0.60115594", "0.594048", "0.59302163", "0.5919385", "0.591882", "0.59103024", "0.59103024", "0.59103024", "0.59103024", "0.59103024", "0.59103024", "0.59103024", "0.5900178", "0.5885542", "0.5871...
0.7572879
0
Gets the currency of this TransferRequestConsideration.
def VIXL(YKHO) -> str: return YKHO._currency
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fvdh(YKHO):\n return YKHO.__currency", "def ExyB(YKHO):\n return YKHO.__currency__", "def VIXL(YKHO) -> qe4Y.Input[uLKX[str, 'Currency']]:\n return qe4Y.get(YKHO, 'currency')", "def VIXL(YKHO):\n return YKHO._currency", "def VIXL(YKHO):\n return YKHO._currency", "def VIXL(YKHO):\n r...
[ "0.7783467", "0.7639243", "0.76064223", "0.7542639", "0.7542639", "0.7542639", "0.7542639", "0.7542639", "0.7542639", "0.7542639", "0.75221586", "0.74390614", "0.74128956", "0.72161764", "0.7076144", "0.67400026", "0.6679839", "0.658739", "0.6579952", "0.6488423", "0.637096",...
0.71554005
14
Sets the currency of this TransferRequestConsideration.
def VIXL(YKHO, VIXL: str): BbPm = ['gbp', 'eur'] if VIXL not in BbPm: raise ValueError('Invalid value for `currency` ({0}), must be one of {1}'.format(VIXL, BbPm)) YKHO._currency = VIXL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8TV(YKHO, VIXL: str):\n YKHO.__currency = VIXL\n return YKHO", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\...
[ "0.76608574", "0.73683906", "0.7324384", "0.7324384", "0.7324384", "0.7324384", "0.7324384", "0.7324384", "0.7324384", "0.7324384", "0.73223835", "0.73223835", "0.73072106", "0.7165623", "0.701785", "0.69928145", "0.69754577", "0.6971765", "0.6962779", "0.6811344", "0.6762035...
0.7034989
14
Gets the amount of this TransferRequestConsideration.
def Z5kt(YKHO) -> int: return YKHO._amount
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZXl_(YKHO) -> float:\n return YKHO.amount", "def P2WC(YKHO):\n return YKHO.amount", "def ZXl_(YKHO):\n return YKHO.__amount", "def MgdY(YKHO):\n return YKHO.our_state.transferred_amount", "def Z5kt(YKHO) -> float:\n return YKHO._amount", "def Z5kt(YKHO) -> float:\n return YKHO._amou...
[ "0.74297523", "0.74191564", "0.74148625", "0.7334404", "0.7321808", "0.7321808", "0.7321808", "0.7321808", "0.7321808", "0.7305877", "0.7298961", "0.7291545", "0.7290981", "0.7290981", "0.7290981", "0.7290981", "0.72462", "0.7230789", "0.7086429", "0.70456904", "0.70067257", ...
0.7394055
3
Gets the other_receipt of this TransferRequestConsideration.
def PWLL(YKHO) -> str: return YKHO._other_receipt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nave(YKHO) -> y3OP:\n SlLe(YKHO.is_set('transaction_receipt'), \"'transaction_receipt' content is not set.\")\n return YWvJ(y3OP, YKHO.get('transaction_receipt'))", "def PWLL(YKHO, PWLL: str):\n YKHO._other_receipt = PWLL", "def p4Qc(YKHO):\n return YKHO._receipt", "def Elif(YKHO):\n if YK...
[ "0.6623648", "0.6588251", "0.644214", "0.6244966", "0.57604206", "0.56609845", "0.56277764", "0.55717313", "0.546843", "0.5372783", "0.5360513", "0.532868", "0.52834755", "0.52601165", "0.51894075", "0.5098769", "0.5036616", "0.50303924", "0.49782878", "0.49776423", "0.497182...
0.8039409
0
Sets the other_receipt of this TransferRequestConsideration.
def PWLL(YKHO, PWLL: str): YKHO._other_receipt = PWLL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWLL(YKHO) -> str:\n return YKHO._other_receipt", "def Vv8j(YKHO, Vv8j: str):\n YKHO._other_telephone_number = Vv8j", "def Elif(YKHO, Elif):\n YKHO._other = Elif", "def p4Qc(YKHO, p4Qc):\n YKHO._receipt = p4Qc", "def Nics(YKHO, Nics):\n YKHO._other_language = Nics", "def TirB(YKHO, Tir...
[ "0.6501702", "0.6257685", "0.623559", "0.58203644", "0.55597025", "0.5500946", "0.54974836", "0.544489", "0.53938615", "0.53235286", "0.5305164", "0.5303152", "0.5283031", "0.5258914", "0.5218145", "0.5171412", "0.51163673", "0.5114204", "0.5072843", "0.50565827", "0.50345355...
0.83863693
0
Sync the processing of all the frame types based on the input ProcessImagesPar parameters. The parameters are merged in sequence starting from the parameter defaults, then including global adjustments provided by ``process``, and ending with the parameters that may have already been changed for each frame. This functio...
def hwjM(YKHO, noQV): if not isinstance(noQV, w33E): raise TypeError('Must provide an instance of ProcessImagesPar') WmM4 = w33E() pMKi = [G1Hx for G1Hx in noQV.keys() if WmM4[G1Hx] != noQV[G1Hx]] VIPT = [eHNT for eHNT in YKHO['calibrations'].keys() if 'frame' in eHNT] for eHNT in VIPT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBEs(YKHO, **B2fa):\n for ibDM in YKHO['calibrations'].keys():\n if isinstance(YKHO['calibrations'][ibDM], DgpM) and 'process' in YKHO['calibrations'][ibDM].keys():\n for H5ew, BWXx in B2fa.items():\n YKHO['calibrations'][ibDM]['process'][H5ew] = BWXx\n for ibDM in YKHO.k...
[ "0.7390407", "0.5811129", "0.542884", "0.53160954", "0.5187972", "0.515764", "0.5117015", "0.5078914", "0.50677097", "0.5063773", "0.5053155", "0.50413275", "0.5023225", "0.49820402", "0.4966438", "0.49655452", "0.4963808", "0.4942604", "0.49195087", "0.4889572", "0.48840383"...
0.7424175
0
Plot a box as lines on a given axes_handle.
def kj9G(YKHO, aNZO, ZylS, *d7pR, **LwG6): Nqlg = YKHO.get_empty_plot_lines(aNZO, *d7pR, **LwG6) Nqlg = YKHO.update_plot_lines(Nqlg, ZylS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def do6P(U4QX, iXlf, MPlV=[0, 1, 2], qfpW='black'):\n iXlf = iXlf[MPlV, :]\n siZ_ = [[0, 1], [1, 2], [2, 3], [3, 0], [4, 5], [5, 6], [6, 7], [7, 4], [0, 4], [1, 5], [2, 6], [3, 7]]\n for UzPC in siZ_:\n U4QX.plot(*iXlf[:, UzPC], c=qfpW, lw=1.5)", "def RvHf(YKHO):\n if YKHO.lines:\n k0lF...
[ "0.6170047", "0.6150026", "0.60642934", "0.5915993", "0.58522654", "0.5782355", "0.5777828", "0.57573944", "0.56717", "0.5649184", "0.5629089", "0.5590357", "0.556623", "0.55423254", "0.5527069", "0.5519033", "0.55168545", "0.5516226", "0.5509872", "0.54846764", "0.5477318", ...
0.52894336
43
Shape represented as inequality Ax <= b This is usefull when modelling the "no collision" constraints as a separating hyperplane problem.
def AvcH(YKHO, ZylS): k0lF = YKHO.get_normals(ZylS) Fg_i = 0.5 * oyIN.array([YKHO.dx, YKHO.dx, YKHO.dy, YKHO.dy, YKHO.dz, YKHO.dz]) Fg_i = Fg_i + oyIN.dot(k0lF, ZylS[:3, 3]) return cfPO(k0lF, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I4hs(H5F9: BBox, D8Q3: BBox) -> bool:\n return H5F9.min_x <= D8Q3.min_x and H5F9.min_y <= D8Q3.min_y and (H5F9.max_x >= D8Q3.max_x) and (H5F9.max_y >= D8Q3.max_y)", "def AkY5(YKHO):\n pass", "def ac68(YKHO, Fg_i, MKfs):\n return not YKHO.empty() and MKfs.lowpt[YKHO.high] > MKfs.lowpt[Fg_i]", "de...
[ "0.59434456", "0.5862313", "0.58011067", "0.5774399", "0.57357144", "0.57071596", "0.5674452", "0.5668849", "0.56650865", "0.565045", "0.565045", "0.5634672", "0.56329834", "0.55682284", "0.5563269", "0.5551329", "0.55389863", "0.5519053", "0.5515677", "0.5515677", "0.55066",...
0.0
-1
Shape represented as inequality Ax <= b This is usefull when modelling the "no collision" constraints as a separating hyperplane problem.
def AvcH(YKHO, ZylS): k0lF = YKHO.get_normals(ZylS) Fg_i = YKHO.r * oyIN.ones(len(k0lF)) Fg_i[-2] = YKHO.l / 2 Fg_i[-1] = -YKHO.l / 2 Fg_i = Fg_i + k0lF @ ZylS[:3, 3] return cfPO(k0lF, Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I4hs(H5F9: BBox, D8Q3: BBox) -> bool:\n return H5F9.min_x <= D8Q3.min_x and H5F9.min_y <= D8Q3.min_y and (H5F9.max_x >= D8Q3.max_x) and (H5F9.max_y >= D8Q3.max_y)", "def AkY5(YKHO):\n pass", "def ac68(YKHO, Fg_i, MKfs):\n return not YKHO.empty() and MKfs.lowpt[YKHO.high] > MKfs.lowpt[Fg_i]", "de...
[ "0.5942989", "0.5863613", "0.5801246", "0.5775271", "0.5734478", "0.57075906", "0.5674701", "0.5668692", "0.5664718", "0.56502783", "0.56502783", "0.5634683", "0.563273", "0.55694777", "0.55631506", "0.55496687", "0.55402887", "0.5519347", "0.5516405", "0.5516405", "0.5507226...
0.0
-1