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
Video streaming generator function.
def eK5b(RUQe): while True: f4IJ = RUQe.get_frame() yield (b'--frame\r\nContent-Type: image/jpeg\r\n\r\n' + f4IJ + b'\r\n') kBtA = XC5k.imdecode(oyIN.fromstring(f4IJ, dtype=oyIN.uint8), XC5k.IMREAD_COLOR) Zmw9 = kBtA[120:240, :] VOC_ = Zmw9.reshape(1, 115200).astype(oyIN.floa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LNm5(R72Z):\n e5kH = False\n while True:\n if not e5kH:\n yield b'<meta http-equiv=\"refresh\" content=\"300\">\\n'\n e5kH = True\n else:\n tO9_ = R72Z.poll()\n if tO9_ is not None:\n yield (b'--frame\\r\\n' + b'Content-Type: image/...
[ "0.72318304", "0.72217125", "0.7202193", "0.7199314", "0.71750987", "0.70998365", "0.70878965", "0.7068008", "0.7030866", "0.69874614", "0.69693893", "0.69512975", "0.69257456", "0.6923195", "0.6923195", "0.690304", "0.6903035", "0.6878873", "0.68674815", "0.6864852", "0.6840...
0.0
-1
Converts the component molar amount matrix entries to molar fractions.
def B5Ox(Lorr, AXsc, yJiH=1e-05): EcVT = oyIN.zeros(Lorr.shape) for JT9N in range(AXsc): zX8e = Lorr[JT9N, :].sum() if zX8e > yJiH: m9si = Lorr[JT9N, :] / zX8e EcVT[JT9N, :] = m9si else: EcVT[JT9N, :] = oyIN.zeros(Lorr.shape[1]) return EcVT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hrCQ(wA3x, u1ox):\n return sum(wA3x * u1ox)", "def o1LR(YKHO):\n return oyIN.sum([YKHO.xdb.molar_mass(_pUq) * mLGw for _pUq, mLGw in YKHO.formula_dict.items()])", "def SwgW(Bcwd):\n Jg2u = []\n for FgTH in Bcwd:\n Jg2u.append([])\n cTQb = FgTH.sum()\n for Ty9i in FgTH:\n ...
[ "0.61656666", "0.5999735", "0.5975901", "0.59473294", "0.587284", "0.581012", "0.5791802", "0.5777975", "0.5757967", "0.57539546", "0.5696583", "0.56591177", "0.5652754", "0.5620739", "0.5618318", "0.55969507", "0.5586737", "0.5557372", "0.5508545", "0.55067956", "0.5505255",...
0.54061633
27
Given the number of moles of each component in each phase, calculate the molar phase fractions.
def Qd_D(ywwl, yXdM=1.0): AXsc = ywwl.shape[0] E9DM = oyIN.zeros(AXsc) for JT9N in range(AXsc): E9DM[JT9N] = ywwl[JT9N, :].sum() / yXdM return E9DM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B5Ox(Lorr, AXsc, yJiH=1e-05):\n EcVT = oyIN.zeros(Lorr.shape)\n for JT9N in range(AXsc):\n zX8e = Lorr[JT9N, :].sum()\n if zX8e > yJiH:\n m9si = Lorr[JT9N, :] / zX8e\n EcVT[JT9N, :] = m9si\n else:\n EcVT[JT9N, :] = oyIN.zeros(Lorr.shape[1])\n retur...
[ "0.68560064", "0.63262343", "0.6250264", "0.61250776", "0.61068976", "0.59343356", "0.5932915", "0.58481896", "0.5819892", "0.5814496", "0.5791989", "0.57912743", "0.5788442", "0.5786059", "0.57818484", "0.5737585", "0.57374674", "0.5714657", "0.5712819", "0.5682267", "0.5637...
0.79750645
0
Get query string for parametrized queries.
def FvS5(YKHO) -> str: U5bT = '' for H5ew, BWXx in hkS8.asdict(YKHO).items(): if H5ew == 'since': if BWXx is None: continue if isinstance(BWXx, qcWV): BWXx = JW5R(BWXx) if H5ew in ('assignee', 'creator', 'mentioned') and BWXx is None: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sYT1(YKHO) -> str:\n R7S5 = super().get_query_string()\n if YKHO.auth_qs_param_name:\n R7S5 = f'{YKHO.auth_qs_param_name}={YKHO.query_string}'\n return R7S5", "def FvS5(Emd4: typing.Type, o2VW: typing.Optional[dict]=None) -> str:\n if not o2VW:\n R7S5 = ''\n else:\n R7S5 =...
[ "0.7617058", "0.7433945", "0.74174327", "0.7178668", "0.70368737", "0.69991493", "0.69825006", "0.6900526", "0.6768263", "0.67495835", "0.6744576", "0.67362547", "0.67211396", "0.67211396", "0.670155", "0.6654586", "0.6593249", "0.657977", "0.65714175", "0.6556809", "0.655625...
0.60232586
62
Convert a plt fig to a numpy buffer
def d5ws(YKHO, LZpg): LZpg.canvas.draw() yzQ0, MKlR = LZpg.canvas.get_width_height() LaVg = oyIN.fromstring(LZpg.canvas.tostring_argb(), dtype=oyIN.uint8) LaVg.shape = (MKlR, yzQ0, 4) LaVg = oyIN.roll(LaVg, 3, axis=2) LaVg = LaVg[0::1, 0::1, 0:3] return LaVg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZNgx(LZpg):\n LZpg.canvas.draw()\n yzQ0, MKlR = LZpg.canvas.get_width_height()\n LaVg = oyIN.frombuffer(LZpg.canvas.tostring_argb(), dtype=oyIN.uint8)\n LaVg.shape = (yzQ0, MKlR, 4)\n LaVg = oyIN.roll(LaVg, 3, axis=2)\n return LaVg", "def ZNgx(LZpg):\n LZpg.canvas.draw()\n yzQ0, MKlR ...
[ "0.7698164", "0.76865554", "0.76685244", "0.75797594", "0.7542655", "0.75304323", "0.75304323", "0.7514163", "0.74526364", "0.7409365", "0.72702414", "0.71809936", "0.7041395", "0.69137484", "0.6833545", "0.68275285", "0.66328675", "0.65657085", "0.6538462", "0.6485534", "0.6...
0.7303391
10
Converts text to integer
def JWk0(YKHO, aXJM, Novh, a8Pe=False): d_Go = aXJM aXJM = aXJM.lower() a8o2 = {} a8o2['and'] = (1, 0) for or8S, GIN8 in enumerate(YKHO.units): a8o2[GIN8] = (1, or8S) for or8S, GIN8 in enumerate(YKHO.tens): a8o2[GIN8] = (1, or8S * 10) for or8S, GIN8 in enumerate(YKHO.scales):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3qN(l5Ny):\n if l5Ny is not None:\n return int(l5Ny)", "def BLG7(l5Ny):\n try:\n return int(''.join((WKvO for WKvO in l5Ny if WKvO.isdigit())))\n except ValueError:\n return 0", "def BLG7(l5Ny):\n try:\n return int(''.join((WKvO for WKvO in l5Ny if WKvO.isdigit())))...
[ "0.82168037", "0.8037344", "0.80301243", "0.78891313", "0.7870334", "0.7808353", "0.7754772", "0.7507137", "0.750088", "0.7405981", "0.7345635", "0.7326658", "0.7287911", "0.72494715", "0.71881866", "0.71472883", "0.71472883", "0.71472883", "0.71472883", "0.71472883", "0.7147...
0.6828883
32
Checks if this State may match a goal
def MEOE(YKHO): return YKHO.acceptingFunction is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HjJj(QTBn, xi3E):\n return all((Z9rn in xi3E for Z9rn in QTBn))", "def Fa6j(YKHO, QTBn):\n return QTBn in YKHO.goal_set", "def Fa6j(YKHO, QTBn):\n TMbP = dict(QTBn)\n return len(TMbP) == len(YKHO.variables) and all((YKHO.nconflicts(kc1W, TMbP[kc1W], TMbP) == 0 for kc1W in YKHO.variables))", "...
[ "0.7692328", "0.7650257", "0.76479894", "0.76479894", "0.76479894", "0.76479894", "0.76479894", "0.76479894", "0.76479894", "0.76225466", "0.7607955", "0.7556123", "0.75161517", "0.75161517", "0.75161517", "0.75161517", "0.75161517", "0.74749684", "0.74732006", "0.74732006", ...
0.0
-1
Compute the offdiagonal entry of 2x2 MBAR overlap matrix, and normalize to interval [0,1]
def UbpY(Oq9N: NDArray) -> float: G1Hx, vC9B, exwG = Oq9N.shape assert G1Hx == vC9B == 2 EN07 = Oq9N.reshape(G1Hx, -1) assert EN07.shape == (G1Hx, vC9B * exwG) bx4e = exwG * oyIN.ones(vC9B) return 2 * VRyd.MBAR(EN07, bx4e).computeOverlap()['matrix'][0, 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P2pO(XIcQ, WcFg, yEOf, N5og, MIMK, d9b5=250):\n PdzP, MOuq = ((yEOf - WcFg) / d9b5, (MIMK - N5og) / d9b5)\n vb7U = XTiz.zeros([MOuq, PdzP])\n for YRbF, rdlD in XIcQ.iterrows():\n HMUk = int(XTiz.floor((max(WcFg, rdlD['start_pos_x']) - WcFg) / float(d9b5)))\n TNF5 = int(XTiz.ceil((min(yEO...
[ "0.5745192", "0.5682557", "0.5630313", "0.556758", "0.5460222", "0.5425941", "0.54016984", "0.5376526", "0.52896166", "0.5267272", "0.52613896", "0.5249083", "0.5240127", "0.5235319", "0.5229289", "0.5227913", "0.52235675", "0.5209617", "0.5203996", "0.51911956", "0.5185409",...
0.0
-1
Query for a user matching a given email.
def WnEz(QePW): if 'q' not in QePW.GET: raise Xqgu.Http404() nPrm = {'status': 0, 'message': ''} D3lj = QePW.GET.get('q', '').strip() mHgk = QePW.GET.get('dev', '1') try: mHgk = int(mHgk) except ValueError: mHgk = 1 if not D3lj: nPrm.update(message=bGrB('An em...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()", "def rRJn(Emd4, D3lj):\n CBIr = Emd4.query.filter(Emd4.email == D3lj).first()\n return CBIr", "def hwys(YKHO, xDcj):\n return YKHO.get_value('email', xDcj, filter='user', datatype=mv1M)", "def CYTf(Emd...
[ "0.82827914", "0.8234562", "0.7984905", "0.79814595", "0.79504097", "0.7828712", "0.7828712", "0.7827094", "0.78086865", "0.77865857", "0.77790105", "0.7765069", "0.77575845", "0.7709187", "0.77074236", "0.7699721", "0.7699721", "0.7699721", "0.7699721", "0.7699721", "0.76997...
0.0
-1
Returns 1.0 if x > 0, else returns 0.
def g_7d(YKHO, WKvO): return 1 * (WKvO > 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHNT(Emd4, WKvO):\n return lyYP.float64(WKvO > 0)", "def eHNT(WKvO: float) -> int:\n if WKvO < 0:\n return -1\n elif WKvO < 1:\n return 0\n else:\n return 1", "def h3bk(WKvO):\n return WKvO * (WKvO > 0.0)", "def h3bk(WKvO):\n return WKvO * (WKvO > 0.0)", "def iGPy...
[ "0.7994482", "0.79148346", "0.75551325", "0.75551325", "0.7531921", "0.7506272", "0.7502059", "0.749111", "0.748611", "0.7477058", "0.7474377", "0.74654436", "0.7458205", "0.742026", "0.731485", "0.7287581", "0.7268169", "0.7244061", "0.72360826", "0.7235725", "0.72324413", ...
0.7394143
14
Gets a giant list of waypoints in the world in Lane msg format.
def hypx(YKHO, OD9B): YKHO.base_waypoints = OD9B YKHO.base_waypoints_length = len(YKHO.base_waypoints.waypoints)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OD9B(YKHO) -> x1iM[AzJI[int, int]]:\n return YKHO.__waypoints", "def vE7N():\n rM81 = Rdj6.load_obstacles('../data/world_obstacles.txt')\n xi3E = Rdj6.load_goal('../data/goal.txt')\n yKcO = [0, 0]\n xi3E = tuple(Rdj6.map2img([xi3E])[0])\n yKcO = tuple(Rdj6.map2img([yKcO])[0])\n fQxG = oy...
[ "0.6993608", "0.66737145", "0.61915255", "0.61915255", "0.6177665", "0.6154544", "0.6143481", "0.60957485", "0.5935879", "0.59077406", "0.58889735", "0.5886865", "0.58767927", "0.5825091", "0.58230275", "0.5812126", "0.5810744", "0.58084685", "0.57747704", "0.5734972", "0.572...
0.0
-1
Get number of parallel threads. BY default a value of 1 is used. The default value is returned if the environment variable 'OPENCLEAN_THREADS' is not set or contains an invalid value (i.e., nonnumeric or smaller than one). Returns string
def qwj3() -> int: try: RcgH = int(Hy7s.environ.get(rxHf, 1)) except ValueError: RcgH = 1 return 1 if RcgH < 1 else RcgH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RcgH():\n if HwRy.platform == 'win32':\n return int(Hy7s.environ['NUMBER_OF_PROCESSORS'])\n else:\n return int(Hy7s.popen('grep -c cores /proc/cpuinfo').read())", "def eyQK() -> int:\n if HwRy.platform == 'win32':\n return int(Hy7s.environ['NUMBER_OF_PROCESSORS'])\n else:\n ...
[ "0.8131624", "0.8044272", "0.79444796", "0.7917095", "0.74880254", "0.7486768", "0.7348709", "0.7156371", "0.7156371", "0.7138431", "0.71024805", "0.704128", "0.7007323", "0.70024717", "0.6949259", "0.69383", "0.68911403", "0.6872664", "0.6837459", "0.6810928", "0.6808222", ...
0.7909761
4
Reads a file as UTF8 encoded text.
def LkPQ(YKHO, mWFP, JZXy, Zwka='', d98A=True): YKHO.m.path.assert_absolute(JZXy) PDkk = lambda: YKHO.test_api.read_text(Zwka) Aofo = YKHO._run(mWFP, ['copy', JZXy, YKHO.m.raw_io.output_text()], step_test_data=PDkk) l5Ny = Aofo.raw_io.output_text if d98A: Aofo.presentation.logs[YKHO.m.path.b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKHU(Ux0P):\n with T_Uj.open(Ux0P, encoding='utf-8') as gY90:\n hGN5 = gY90.read()\n return hGN5", "def Nwr9(Ux0P, tZ2K='utf8'):\n with T_Uj.open(Ux0P, encoding=tZ2K) as Gcbu:\n return Gcbu.read()", "def Nwr9(nUeQ):\n eHNT = xDSY.open(nUeQ, 'r', encoding='utf-8')\n l5Ny = eHNT....
[ "0.84442055", "0.78284574", "0.7774184", "0.77699786", "0.77646464", "0.77646464", "0.77217644", "0.7629192", "0.7587315", "0.7563614", "0.75542784", "0.75425905", "0.7441472", "0.7424912", "0.7412924", "0.7392727", "0.73926044", "0.73248273", "0.72368795", "0.7232215", "0.72...
0.0
-1
Reads a file as UTF8 encoded json.
def PSj2(YKHO, mWFP, JZXy, Zwka='', d98A=True): vbEt = YKHO.m.json.dumps(Zwka, indent=2, separators=(',', ': ')) l5Ny = YKHO.read_text(mWFP, JZXy, test_data=vbEt, include_log=d98A) return YKHO.m.json.loads(l5Ny)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D07f(Ux0P):\n nPrm = None\n with open(Ux0P, 'r') as eHNT:\n nPrm = qQXR.load(eHNT, encoding='utf-8')\n return nPrm", "def lc9H(Ux0P):\n with open(Ux0P, mode='rb') as eHNT:\n return qQXR.load(eHNT)", "def dftL(pmON):\n l5Ny = T_Uj.open(pmON, 'r', 'utf-8').read()\n return qQXR...
[ "0.76371384", "0.74829584", "0.73302776", "0.7307808", "0.72635484", "0.7226507", "0.7224536", "0.7172956", "0.7156067", "0.7155379", "0.71104026", "0.7085537", "0.70515835", "0.70328903", "0.70009434", "0.69970924", "0.6981115", "0.6960367", "0.694977", "0.69385606", "0.6914...
0.0
-1
Hyperparameter controlling the halfwidth of the radius distribution in degrees.
def HGCR(YKHO): return YKHO._size._dr * (180.0 / oyIN.pi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLq7(YKHO) -> float:\n return YKHO.phantom_ski_region.major_axis_length / 2.73", "def TLq7(YKHO) -> float:\n return YKHO.phantom_ski_region.major_axis_length / 12.5", "def TLq7(YKHO) -> float:\n return YKHO.phantom_ski_region.major_axis_length / 12", "def TLq7(YKHO) -> float:\n return YKHO.ph...
[ "0.661424", "0.66016805", "0.6595822", "0.65114266", "0.65114266", "0.6426372", "0.62679845", "0.61876434", "0.61464226", "0.6140798", "0.6135762", "0.61309254", "0.6115265", "0.61109614", "0.60972583", "0.60730326", "0.60729814", "0.60607004", "0.6033795", "0.600768", "0.600...
0.0
-1
The spherical harmonic degree of the surface map expansion.
def ThFe(YKHO): return YKHO._ydeg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vkjs(YKHO):\n return '{dd}{hemisphere}'.format(dd=YKHO.decimal_degree, hemisphere=YKHO.get_hemisphere())", "def tjON(YKHO):\n assert YKHO.is_hypersurface\n return YKHO.__d[0]", "def B1Wx(YKHO):\n nYlf = 4 * VEDo.arcsin(1 / (YKHO._coeffs.lmax + 1))\n return nYlf", "def iEPb(YKHO):\n retu...
[ "0.6331124", "0.6105327", "0.6044788", "0.5982494", "0.59399056", "0.59050936", "0.5893676", "0.5880197", "0.584795", "0.5840996", "0.58179754", "0.58092", "0.57838446", "0.5774972", "0.5764433", "0.5760863", "0.57539505", "0.57382715", "0.5733314", "0.5731705", "0.5728536", ...
0.0
-1
Whether or not the process is modeling light curves that have been normalized to the (sample) mean (or median).
def HBfW(YKHO): return YKHO._normalized
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BpYe(YKHO, WKvO):\n pass", "def VlIo(Emd4):\n return 'Norm' in Emd4.__name__", "def _qAI(WRDn):\n return WRDn.mean()", "def liQo(YKHO):\n if YKHO.IS_AOA:\n NT23 = oyIN.zeros(len(YKHO.values), dtype=bool)\n for YRbF in range(len(YKHO.values)):\n P1dF = oyIN.abs(1 - oyI...
[ "0.6752006", "0.66728926", "0.6657714", "0.640848", "0.637347", "0.63432467", "0.63432467", "0.6206737", "0.60962456", "0.60626185", "0.60358095", "0.59731513", "0.5970173", "0.5968849", "0.59474194", "0.5940443", "0.59158605", "0.59130096", "0.5906049", "0.58880067", "0.5885...
0.0
-1
The mean spherical harmonic coefficient vector.
def ginO(YKHO): return YKHO._mean_ylm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n return YKHO.k * YKHO.theta", "def TNoy(YKHO, LVAh: np.ndarray) -> oyIN.ndarray:\n yk4i = LVAh - YKHO.central_value\n Ayfi = oyIN.linalg.norm(yk4i, axis=-1, keepdims=True)\n return 1.0 / oyIN.mean(1.0 / Ayfi, axis=-2, keepdims=True)", "def JBMS(YKHO):\n JBMS = 0\n for G1Hx in...
[ "0.68236166", "0.67535424", "0.66407585", "0.656295", "0.656295", "0.65099514", "0.6502419", "0.6499543", "0.64520985", "0.64168787", "0.64155984", "0.6401648", "0.6364477", "0.6344187", "0.63311887", "0.63255346", "0.6322115", "0.6293764", "0.622218", "0.622218", "0.622218",...
0.0
-1
The spherical harmonic covariance matrix.
def Y0hM(YKHO): return YKHO._cov_ylm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xiz6(YKHO):\n xiz6 = oyIN.linalg.inv(CHRW.sqrtm(oyIN.eye(YKHO.size_ens) + oyIN.dot(YKHO.hmx_mat, oyIN.dot(oyIN.linalg.inv(YKHO.rmatrix), YKHO.hmx_mat.T))))\n return xiz6", "def Zbvl(YKHO):\n return (YKHO.radii ** 2)[:, None, None] * oyIN.eye(2)", "def Zbvl(YKHO):\n return (YKHO.radii ** 2)[:, N...
[ "0.71214265", "0.71191216", "0.71191216", "0.69284254", "0.6892719", "0.6793115", "0.6749187", "0.67086226", "0.6694309", "0.66052336", "0.65572834", "0.65398747", "0.6537205", "0.65029585", "0.6466902", "0.64360994", "0.6376317", "0.635641", "0.63511294", "0.6342483", "0.633...
0.0
-1
The GP flux mean vector. Note that this mean is defined relative to a baseline of zero. If ``normalized`` is ``True``, this method always returns zero. If ``normalized`` is ``False``, this method returns the mean flux deficit. In these units, a star with no spots on it has zero flux. To get light curves measured relati...
def JBMS(YKHO, a1PO, YRbF=muwo['i'], XP5J=muwo['p'], P6bq=muwo['u'][:muwo['udeg']]): if YKHO._normalized: return rxEN.zeros_like(YWvJ(a1PO, vectorize=True)) else: return YKHO._flux.mean(a1PO, YRbF, XP5J, P6bq)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTRM(YKHO):\n return YKHO.__MEAN", "def JBMS(YKHO) -> 'float':\n return hBPC.vnl_matrixF_mean(YKHO)", "def JBMS(YKHO):\n return epAf.exp(YKHO.mu + YKHO.sigma ** 2 / 2)", "def JBMS(YKHO):\n return YKHO.mu", "def JBMS(YKHO) -> float:\n return YKHO.fit_result.values_at_minimum['mean']", "...
[ "0.7366609", "0.7030521", "0.7006392", "0.6976077", "0.6949128", "0.69369376", "0.6867062", "0.68636274", "0.68636274", "0.68636274", "0.68636274", "0.68636274", "0.6826038", "0.6819352", "0.6814682", "0.6782293", "0.6778512", "0.6759783", "0.6759783", "0.6759783", "0.6757585...
0.0
-1
Return the series expansion of the normalized covariance matrix. See Luger (2021) for details.
def jnV4(YKHO, yGTL, FbUq): nMvt = FbUq.shape[0] r845 = rxEN.ones((nMvt, 1)) r8hN = rxEN.mean(FbUq) vexM = rxEN.dot(FbUq, r845) / (nMvt * r8hN) YKHO._z = r8hN / yGTL ** 2 XP5J = r845 - vexM Cwt5, UqYS, bGrB, bGrB = YKHO._get_alpha_beta(YKHO._z) k0qU = rxEN.dot(XP5J, rxEN.transpose(XP5J))...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vbng(YKHO):\n return YKHO.Sinv", "def PK0u(YKHO):\n return YKHO.sigma_f ** 2", "def eHNT(WKvO):\n return WKvO.T @ (GvHN * 10000.0) @ WKvO", "def p4il(YKHO, zNig=-1, tk5Y=False):\n if zNig <= 0:\n zNig = len(YKHO)\n zNig = min(zNig, len(YKHO))\n import array\n SppC = array.arra...
[ "0.59081554", "0.585028", "0.5848499", "0.582464", "0.58138967", "0.5812557", "0.578473", "0.57544833", "0.573917", "0.57346624", "0.5730813", "0.5712518", "0.5693537", "0.56817114", "0.56802976", "0.5669851", "0.5667084", "0.5616444", "0.5593624", "0.55674815", "0.55508", ...
0.0
-1
Return the mean and covariance of the distribution over light curves conditioned on observed flux values.
def YEmv(YKHO, a1PO, shSu, wNMQ, GWmY=None, YRbF=muwo['i'], XP5J=muwo['p'], P6bq=muwo['u'][:muwo['udeg']], dZ2L=muwo['baseline_mean'], pULP=muwo['baseline_var']): if YKHO._normalized: raise NotImplementedError('Method not implemented when the flux is normalized.') a1PO = YWvJ(a1PO) uL_9 = YKHO.cov(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO) -> 'stdcomplexF':\n return hBPC.vnl_matrixCF_mean(YKHO)", "def T7e2(YKHO, shSu):\n NdAO = oyIN.random.normal(shSu, YKHO.sensitivity)\n if NdAO < 0:\n return 0\n else:\n return NdAO", "def Kxcv(YKHO):\n shSu = YKHO._spectral_flux()\n JBMS, M1Jx, fZGC, Fymf = YKHO._...
[ "0.6228952", "0.62174046", "0.6162273", "0.61152506", "0.6107441", "0.6089707", "0.6027285", "0.5978911", "0.5936646", "0.5919124", "0.59162545", "0.58929825", "0.5884165", "0.58724207", "0.5870657", "0.5864179", "0.5828613", "0.5826507", "0.5817269", "0.5740034", "0.5723363"...
0.0
-1
The log of the absolute value of the determinant of the Jacobian matrix. The spot latitude is Betadistributed with shape parameters ``a`` and ``b``, equal to the log of the traditional ``alpha`` and ``beta`` parameters of the Beta distribution, normalized and scaled to the range ``[0, 1]``. From Bayes' theorem, the joi...
def PBNh(YKHO): return YKHO._latitude.log_jac()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sJ1t(jzdc, Fg_i, OYPY, ROaS):\n vC9B = oyIN.sum(p5eh(0.5 * (jzdc - oyIN.arange(-1, ROaS - 1))))\n vC9B += ROaS * oyIN.log(2)\n return vC9B + OYPY", "def mylo(YKHO, WKvO, LVAh):\n return ht2j.zeros(WKvO.size()[:-1], dtype=WKvO.dtype, layout=WKvO.layout, device=WKvO.device)", "def mylo(YKHO, WKvO...
[ "0.6522594", "0.6510846", "0.6328746", "0.6307726", "0.6303715", "0.628449", "0.6137239", "0.6100009", "0.6078182", "0.60636854", "0.6045916", "0.601027", "0.60070163", "0.5976218", "0.5975957", "0.59542316", "0.5936604", "0.59296185", "0.59260213", "0.5920083", "0.59065646",...
0.59534407
16
Return the light curve corresponding to a spherical harmonic representation of a surface `y`.
def shSu(YKHO, LVAh, a1PO, YRbF=muwo['i'], XP5J=muwo['p'], P6bq=muwo['u'][:muwo['udeg']]): LVAh = rxEN.as_tensor_variable(LVAh) k0lF = YKHO._flux.design_matrix(a1PO, YRbF, XP5J, P6bq) vuvg = rxEN.tensordot(k0lF, LVAh, axes=[[1], [LVAh.ndim - 1]]) if YKHO._time_variable: shSu = rxEN.ExtractDiag(a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pM8u(LVAh):\n yY4h, X90y = (1, len(LVAh) / 2)\n G1Hx = oyIN.arange(yY4h, X90y)\n RJ3C = oyIN.fft.fft(LVAh)\n Cwt5 = RJ3C.real[yY4h:X90y]\n UqYS = RJ3C.imag[yY4h:X90y]\n hzSe = 2 * oyIN.pi * nFdY * G1Hx / aPd6 * UqYS * JRYC\n T0XM = -2 * oyIN.pi * nFdY * G1Hx / aPd6 * Cwt5 * JRYC\n hjGX ...
[ "0.60037935", "0.59841657", "0.5950139", "0.5844294", "0.58295846", "0.57226616", "0.5673627", "0.56258494", "0.561874", "0.5599356", "0.55798036", "0.55538654", "0.5524889", "0.55200106", "0.55097735", "0.5495523", "0.54911494", "0.5442685", "0.5428014", "0.5406821", "0.5404...
0.0
-1
returns a User object that matches user_id.
def bt8D(YKHO, uJjO): hHld = Neoe.get_exact_matches_by_attribute(YKHO.users, 'user_id', uJjO, insensitive=False) kUBT = hHld[0] if len(hHld) > 0 else None return kUBT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBIr", "def KVwN(uJjO):\n return mv1M.query.filter_by(id=uJjO).first()", "def bt8D(YKHO, uJjO):\n return YKHO.db.find_first_object_by(mv1M, id=uJjO)", "def bt8D(uJjO):\n return mv1M.query.get(uJjO)", "def bt8D(uJjO) -> mv1M:\n r...
[ "0.91245586", "0.9012431", "0.8921698", "0.8895857", "0.88443947", "0.8803667", "0.87970144", "0.8756392", "0.8693507", "0.8693507", "0.8693507", "0.8693507", "0.8690062", "0.86835426", "0.8665969", "0.86475974", "0.8630965", "0.8620624", "0.8620624", "0.8611693", "0.86115247...
0.0
-1
Take attributes and child class attributes and returns a dictionary representation of self.
def MNRr(YKHO): return {'amount': YKHO.amount, 'currency': YKHO.currency, 'account_id': str(YKHO.account_id), 'users': [CBIr.to_dict() for CBIr in YKHO.users]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q17p(YKHO) -> cuzp:\n SlTG = U8Lr()\n SlTG['Attr'] = []\n ph98 = [hkS8 for hkS8 in dir(YKHO) if not callable(getattr(YKHO, hkS8)) and (not hkS8.startswith('_'))]\n for YNjl, vk8b in enumerate(ph98):\n SlTG['Attr'] += [U8Lr()]\n PpOh = getattr(YKHO, vk8b)\n SlTG['Attr'][YNjl] = ...
[ "0.7584762", "0.7498613", "0.74897516", "0.74206156", "0.7407502", "0.73864275", "0.7336987", "0.7293651", "0.72252434", "0.72248", "0.72240245", "0.721281", "0.7205995", "0.71707284", "0.7166816", "0.7166816", "0.713434", "0.70616215", "0.7060962", "0.7057012", "0.70455056",...
0.0
-1
String representation for the BankAccount object.
def zAg0(YKHO): g8rx = '\n' T8qf = g8rx.join([str(CBIr) for CBIr in YKHO.users]) return f'| Amount: {YKHO.amount}\n| Currency: {YKHO.currency}\n| Account ID: {YKHO.account_id}\n|=================================================\n| [Users: {len(YKHO.users)}]\n{T8qf}\n|++++++++++++++++++++++++++++++++++++++++...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.__name + \"'s BankAccount object\"", "def zAg0(YKHO):\n return YKHO.__name + \"'s BankAccount object\"", "def wHJl(YKHO) -> str:\n return f\"<Account '{YKHO.name}' ({YKHO.type}): {YKHO.balance} {YKHO.currency}>\"", "def zAg0(YKHO):\n Ylbp = '*** Account Info ***\\n'\...
[ "0.82124186", "0.80803823", "0.7886349", "0.75838655", "0.731561", "0.72871256", "0.71075004", "0.7082201", "0.7013092", "0.6832318", "0.68185586", "0.67378443", "0.6686817", "0.666133", "0.6469658", "0.64423656", "0.64028716", "0.63981354", "0.6365617", "0.63604903", "0.6349...
0.0
-1
Removes number from the string dalemma.
def aiA9(PAQD): h4gi = str.maketrans('', '', '01234567890') return PAQD.translate(h4gi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ev3m(GIN8):\n return ZbWC.sub('\\\\d+', '', GIN8)", "def ev3m(YKHO, l5Ny):\n l5Ny = ZbWC.sub('[0-9]', '', l5Ny)\n return l5Ny", "def x0SS(YKHO):\n YKHO.number = ZbWC.sub('\\\\D', '', YKHO.number)", "def CptV(KCHu):\n if '-' in KCHu:\n KCHu = KCHu.replace('-', '')\n return KCHu.st...
[ "0.7986985", "0.7829352", "0.77426076", "0.75393987", "0.7416052", "0.7410546", "0.7377075", "0.7373304", "0.72889173", "0.7235541", "0.7225982", "0.716359", "0.7115798", "0.7087848", "0.69997287", "0.6981542", "0.67839235", "0.6740266", "0.6708908", "0.67042017", "0.66953236...
0.67024547
20
Returns True if X is in matrix A, False otherwise. Expects A's columns and rows to be sorted.
def jY4V(k0lF, EcVT): r8hN = len(k0lF[0]) exwG = len(k0lF) return znfY(k0lF, EcVT, 0, r8hN - 1, 0, exwG - 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def znfY(k0lF, EcVT, XGDG, Jgwa, iSy9, NsEU):\n if Jgwa - XGDG < 0 or NsEU - iSy9 < 0:\n return False\n elif Jgwa - XGDG == 0 and NsEU - iSy9 == 0:\n if k0lF[iSy9][XGDG] == EcVT:\n print('Found, X = {} = A[{}][{}]!'.format(EcVT, k0lF[iSy9][XGDG], iSy9, XGDG))\n return k0lF[iSy...
[ "0.60998166", "0.60997117", "0.606949", "0.5956395", "0.5876259", "0.5847368", "0.5834702", "0.58116287", "0.57982486", "0.57916474", "0.57754487", "0.57609737", "0.5759011", "0.57355654", "0.57301664", "0.57291454", "0.57186556", "0.56991744", "0.56964636", "0.5663736", "0.5...
0.71782154
0
Compute the mean and std
def cbUt(nPrm): JBMS = oyIN.mean(nPrm) M1Jx = oyIN.std(nPrm) return (JBMS, M1Jx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdUi(nPrm):\n JBMS, M1Jx = (oyIN.mean(nPrm), oyIN.std(nPrm))\n return (JBMS, M1Jx)", "def vb6t(input):\n return (input.mean(keepdims=True), input.std(keepdims=True))", "def tIbu(hkxX):\n S8vG = sum(hkxX) / len(hkxX)\n return (S8vG, oyIN.sqrt(sum((hkxX - S8vG) ** 2) / (len(hkxX) - 1)))", "d...
[ "0.84616256", "0.8309915", "0.82309765", "0.7899385", "0.7882941", "0.78396463", "0.77091616", "0.7681122", "0.7618691", "0.75923723", "0.7580624", "0.7571177", "0.75365853", "0.753396", "0.7526208", "0.75225466", "0.74906534", "0.74570185", "0.7441271", "0.74331105", "0.7420...
0.82381934
2
Convert distance matrix to array format.
def uFaA(vb7U): ezWE = vb7U[oyIN.mask_indices(vb7U.shape[0], oyIN.tril, -1)] or8S = oyIN.transpose(oyIN.tril_indices(vb7U.shape[0], -1)) return (ezWE, or8S)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwLm(YKHO):\n return oyIN.array(YKHO.matrix)", "def oWao() -> oyIN.ndarray:\n oWao = oyIN.array([[0, 4, 5, 6], [4, 0, 7, 8], [5, 7, 0, 9], [6, 8, 9, 0]])\n return oWao", "def z2Np(dixj):\n jzdc = []\n for rdlD in dixj['rows']:\n Fg_i = []\n for BWXx in rdlD['elements']:\n ...
[ "0.7190374", "0.67293036", "0.64593416", "0.63896865", "0.63800734", "0.6326759", "0.6305576", "0.6297017", "0.6293891", "0.62888163", "0.621233", "0.61570054", "0.6141205", "0.6104621", "0.60535884", "0.60535884", "0.60143095", "0.5997803", "0.5989167", "0.5984714", "0.59567...
0.5562645
92
Find the maximum distance of any vertex to the origin. This assumes the polygon is centred around the origin.
def SHWa(j5tF): M_DK = oyIN.transpose(j5tF.exterior.coords.xy) r1VO = oyIN.max(yfx6(M_DK, [[0, 0]])) return r1VO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xAnn(YKHO):\n return oyIN.max(YKHO.vertices_, axis=0)", "def fFlK(YKHO):\n jNOo = oyIN.array([0.5 * (oyIN.array(YKHO.G.node[P6bq]['pos']) + oyIN.array(YKHO.G.node[Ty9i]['pos'])) for P6bq, Ty9i in YKHO.G.edges_iter()])\n gKSi = jNOo.mean(axis=0)\n eFr6 = oyIN.linalg.norm(jNOo - gKSi, axis=1)\n ...
[ "0.6828701", "0.63005054", "0.6292749", "0.6147913", "0.6090224", "0.60722494", "0.6055887", "0.6055726", "0.6049312", "0.6044202", "0.60373604", "0.60373604", "0.60319406", "0.6008185", "0.59742385", "0.59742385", "0.59742385", "0.59742385", "0.59742385", "0.59742385", "0.59...
0.68804556
0
Returns an augmented image. Add small angles for left and right images. Perform brighness augmentation, image resizing and crop the top and bottom sections of the image. Also perform flip on random images to account for driving on opposite direction.
def zXzI(rdlD): _ceB = rdlD['steering'] wDPZ = oyIN.random.choice(['left', 'center', 'right']) if wDPZ == 'left': _ceB += 0.25 elif wDPZ == 'right': _ceB -= 0.25 else: _ceB = _ceB aLzX = 'data/' + rdlD[wDPZ].strip() LNo8 = XC5k.imread(aLzX) LNo8 = XC5k.cvtColor(LN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPhu(LNo8, pChn, v__7=128):\n LNo8 = hnIv.fromarray(oyIN.uint8(LNo8))\n if pChn:\n if tuKI.random() < 0.5:\n LNo8 = vuvg.hflip(LNo8)\n if tuKI.random() < 0.5:\n LNo8 = vuvg.vflip(LNo8)\n LNo8 = vuvg.center_crop(LNo8, int(0.8 * LNo8.size[0]))\n aGFF = tuKI...
[ "0.6832153", "0.6768126", "0.67204523", "0.669504", "0.6668009", "0.66569346", "0.66538566", "0.66384506", "0.6633996", "0.6610521", "0.65245914", "0.65102273", "0.6488988", "0.6465217", "0.642971", "0.6411713", "0.63882345", "0.6358486", "0.63413835", "0.6314967", "0.6308310...
0.6232087
22
Initializes the ship object. start_face must be given in a range of 03, 0 being east.
def FIMM(YKHO, erfM): YKHO.face = erfM YKHO.path_dict = {'E': 0, 'S': 0, 'W': 0, 'N': 0}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Vjhr, iBLD, yKcO):\n super().__init__()\n YKHO.screen = Vjhr\n YKHO.image = a9eO.image.load('player/square_sprite.png')\n YKHO.rect = YKHO.image.get_rect()\n YKHO.speed = iBLD\n YKHO.rect.x = yKcO[0]\n YKHO.rect.y = yKcO[1]\n YKHO.x = float(YKHO.rect.x)\n YKHO.y = float(YK...
[ "0.65792567", "0.64166474", "0.63064855", "0.627202", "0.6262034", "0.6252345", "0.6212094", "0.6190302", "0.61864513", "0.61810887", "0.6146529", "0.61452574", "0.6133374", "0.6096625", "0.6072229", "0.60687584", "0.6065961", "0.60632145", "0.6041436", "0.6025215", "0.600959...
0.7203156
0
Forward pass of single residual block.
def KVH6(YKHO, WKvO, pi_1): vJFE = YKHO.dilated_convolution(WKvO) PEda = YKHO.tanh(vJFE) lanb = YKHO.sigmoid(vJFE) LwYh = PEda * lanb pi4E = YKHO.residual_output_convolution(LwYh) mXr4 = WKvO[:, :, -pi4E.size(2):] hlel = pi4E + mXr4 yaZL = YKHO.skip_connection_convolution(LwYh) ad5F ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO: Tensor) -> llWB:\n uuHL = WKvO\n return YKHO.resblock_model(WKvO) + uuHL", "def KVH6(YKHO, WKvO, uuHL=None):\n yvT9 = YKHO.layers(WKvO)\n if not YKHO.add_residual:\n return yvT9\n if uuHL is None:\n uuHL = WKvO\n return uuHL + YKHO.dropout(yvT9)", "def KVH6(...
[ "0.7599621", "0.7026738", "0.6610707", "0.66043323", "0.6576744", "0.6545603", "0.6520791", "0.6477556", "0.64709073", "0.64614767", "0.6457931", "0.63251084", "0.62957263", "0.62832206", "0.6253243", "0.6236041", "0.6234924", "0.61899686", "0.61873174", "0.61541665", "0.6122...
0.0
-1
For the parameter with position I{k}, returns the float I{value} formatted as a string. Adds a '' if value within 5% of the lower bound, or '' if within 5% of the upper bound.
def hfaW(YKHO, G1Hx, BWXx, s2RA=False): myAx = (BWXx - YKHO.mins[G1Hx]) / YKHO.scales[G1Hx] ZI14 = '*' if myAx < 0.05 else '**' if myAx > 0.95 else '' mLim = '{:>10.5g}{:2s}' if s2RA else '{:g}{}' return finE(mLim, float(BWXx), ZI14)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fGXu(tAX0, V4zj=3, _WCV=1):\n WoWX = '%%.%df' % V4zj\n S1bw = '%%.%de' % _WCV\n\n def pOv4(BWXx, *qIxc, **B2fa):\n if abs(BWXx) == 0:\n FUjE = WoWX % BWXx\n elif abs(BWXx) < tAX0:\n FUjE = S1bw % BWXx\n else:\n FUjE = WoWX % BWXx\n return FU...
[ "0.62948734", "0.6258579", "0.62283385", "0.6157218", "0.6073175", "0.605814", "0.6047119", "0.5980983", "0.59541994", "0.5898906", "0.58805895", "0.58591735", "0.58524424", "0.5849687", "0.58465064", "0.57989025", "0.5765668", "0.57635415", "0.57631886", "0.5715443", "0.5708...
0.73365676
0
Returns an easily readable string representation of the supplied I{values} with their parameter names, sorted. Adds a '' if 95% of the way You can provide as an additional argument a prelude string, or a string proto with additional args, and the string will precede the values.
def x0US(YKHO, hkxX, *qIxc): e41o = [] if qIxc: e41o.append(qIxc[0].format(*qIxc[1:])) gcdR = YKHO.toUnity(hkxX) for G1Hx, mWFP, BWXx in YKHO.sortedNamerator(hkxX): Q7me = finE('{}={}', mWFP, YKHO.stringValue(G1Hx, BWXx)) e41o.append(Q7me) l5Ny = ' '.join(e41o) return YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k9An(PEzL: dict) -> str:\n fHzd = ', '.join([G1Hx + '=' + str(PEzL[G1Hx]) for G1Hx in PEzL.keys()])\n return fHzd", "def pKdG(vrYR: 'collection') -> str:\n return ' '.join(sorted(vrYR, key=i9wS.order_param_id))", "def PKf1(hkxX):\n d86W = sorted(set(hkxX))\n if len(d86W) > 1:\n return...
[ "0.6669698", "0.66675866", "0.65691686", "0.6417652", "0.6417652", "0.6417652", "0.6417652", "0.6417652", "0.6410137", "0.6392465", "0.62767386", "0.61020875", "0.60987586", "0.60860926", "0.6060475", "0.60490006", "0.6048283", "0.6038985", "0.6026426", "0.5984259", "0.596794...
0.6660007
2
Checks if I{values} pass all my constraints. Call with a 1D array of parameter I{values} to check them against all of the constraints. Each callable in my I{constraints} list must return C{True} if it found the parameters (supplied to each callable as a dict) to be acceptable. The result will be C{True} if and only if ...
def zoFY(YKHO, hkxX): if not YKHO.constraints: return True NArs = {} for mWFP, BWXx in zip(YKHO.names, hkxX): NArs[mWFP] = BWXx for JfyU in YKHO.constraints: if not JfyU(NArs): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIzR(QpAR, PEzL, DTb0):\n if not oyIN.isfinite(PEzL).any():\n return\n for G4Rc in QpAR:\n cM24 = G4Rc['type']\n vcn7 = PEzL[G4Rc['index']]\n _ye8 = YLnl(S_Qd, G4Rc, DTb0)\n if cM24 == 'covariance':\n PFC2 = zesV(vcn7)\n tTpl, bGrB = oyIN.linalg.ei...
[ "0.71121955", "0.6712394", "0.66996026", "0.6693339", "0.6679208", "0.6599149", "0.6585339", "0.6566224", "0.6460219", "0.6341338", "0.6224252", "0.6186722", "0.6132938", "0.60422826", "0.597419", "0.5965693", "0.59557307", "0.59431064", "0.59121656", "0.58826935", "0.5874243...
0.8086092
0
Returns my best individual, or C{None} if I have no individuals yet.
def P6Dd(YKHO): if YKHO.iList: return YKHO.iList[YKHO.kBest]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P6Dd(YKHO):\n return YKHO.population[0]", "def fH6U(YKHO, CHNM):\n P6Dd = CHNM[0]\n max = P6Dd.get_score()\n for I6RU in CHNM[1:]:\n wkbQ = I6RU.get_score()\n if wkbQ > max:\n P6Dd = I6RU\n max = wkbQ\n return P6Dd", "def P6Dd(YKHO):\n return YKHO and Y...
[ "0.76648206", "0.762965", "0.7499496", "0.74674064", "0.7394127", "0.7394127", "0.7394127", "0.73573124", "0.7021111", "0.7012737", "0.6989687", "0.6977663", "0.695449", "0.69371706", "0.6857349", "0.6855245", "0.6814023", "0.68034816", "0.6794081", "0.677208", "0.676794", ...
0.6651129
27
Switches keys and values in a dictionary. so you can look up by value and get a list of keys.
def tsq2(Csk6): Rn8w = {} for H5ew, wEf2 in Csk6.items(): if not Rn8w.has_key(wEf2): Rn8w[wEf2] = [] Rn8w[wEf2].append(H5ew) return Rn8w
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lM4W():\n Csk6 = {'one': 1, 'two': 2}\n assert {Ty9i: G1Hx for G1Hx, Ty9i in Csk6.items()} == {1: 'one', 2: 'two'}", "def Fsdm(Csk6):\n return dict(((Ty9i, G1Hx) for G1Hx, Ty9i in Csk6.items()))", "def NZfs(dslb):\n return {LVAh: WKvO for WKvO, LVAh in dslb.items()}", "def aqZR(TI8K):\n re...
[ "0.7004507", "0.671112", "0.66955113", "0.66290236", "0.6545518", "0.6491613", "0.6440336", "0.6348455", "0.6321745", "0.6221471", "0.61949325", "0.6184189", "0.61678267", "0.6146125", "0.6090347", "0.6089531", "0.6075773", "0.60623926", "0.6061158", "0.6024472", "0.6020658",...
0.5992472
24
Create dictionary for applied adjustments.
def EV6k(YKHO): return {'product': [], 'value': [], 'operation': [], 'adjusted_amount': [], 'new_price': [], 'number_items': [], 'total_adjusted_value': []}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PMcm(YKHO, oPhP, _Zcs):\n YKHO.applied_adjustments_dict['product'].append(YKHO.product)\n YKHO.applied_adjustments_dict['value'].append(YKHO.value)\n YKHO.applied_adjustments_dict['operation'].append(oPhP)\n YKHO.applied_adjustments_dict['adjusted_amount'].append(_Zcs)\n YKHO.applied_adjustments...
[ "0.70418936", "0.63962376", "0.6217022", "0.6215193", "0.61992323", "0.61373657", "0.6066871", "0.5935907", "0.5934034", "0.59158003", "0.5915154", "0.59056455", "0.5893218", "0.58335465", "0.5832273", "0.57930034", "0.579139", "0.5743547", "0.5709335", "0.57084656", "0.57033...
0.87446654
0
returns kT in Atomic Units for Kelvin given
def ovGo(yizX): return z1KK.kT * yizX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uq0o(YKHO):\n return uwaB.kB * YKHO.temperature", "def Zewh(YKHO) -> float:\n return YKHO.Kt", "def uq0o(YKHO):\n if YKHO._kT is None:\n TK0z, bGrB = YKHO._reporter.read_thermodynamic_states()\n ovGo = TK0z[0].temperature\n YKHO._kT = tKbj * ovGo\n return YKHO._kT", "def ...
[ "0.7662852", "0.744738", "0.7410094", "0.7290848", "0.7119802", "0.6880881", "0.68082666", "0.6716039", "0.6695677", "0.66777503", "0.6647115", "0.6579476", "0.6571794", "0.65708655", "0.65531576", "0.6543654", "0.65379256", "0.65211976", "0.65197855", "0.65194243", "0.651792...
0.745603
1
returns the pressure in atomic units for pressure given
def CJ2p(R8g3): return z1KK.press * R8g3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CJ2p(YKHO) -> P6bq.Pa:\n ...", "def CJ2p(YKHO):\n return YKHO.pressure_and_temperature[1]", "def CJ2p(YKHO):\n return YKHO.number_density * YKHO.temperature * hAVj.k * 10000000.0", "def aMpO(YKHO, CJ2p: int) -> int:\n return int(rYO3(f'{CJ2p:d} hPa').to(YKHO.pressure_level_units).magnitude)",...
[ "0.7610543", "0.750894", "0.7499691", "0.73963505", "0.73032373", "0.7287997", "0.72332615", "0.7212146", "0.71604156", "0.7119241", "0.7104471", "0.7065624", "0.7064043", "0.7064043", "0.7064043", "0.7064043", "0.70358104", "0.69175553", "0.6897164", "0.6874644", "0.6853238"...
0.7240609
6
Generate random colors. To get visually distinct colors, generate them in HSV space then convert to RGB.
def vw9P(ywwl, fBVY=True): asva = 1.0 if fBVY else 0.7 Cd_s = [(YRbF / ywwl, 1, asva) for YRbF in range(ywwl)] Jw9H = list(map(lambda Z9rn: h478.hsv_to_rgb(*Z9rn), Cd_s)) tuKI.shuffle(Jw9H) return Jw9H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hvFE():\n Wr7U = 0.618033988749895\n MKlR = oyIN.random.rand()\n MKlR += Wr7U\n MKlR %= 1.0\n return h478.hsv_to_rgb(MKlR, 0.7, 0.9)", "def gOt5(YKHO):\n return [qukk(0, 255) / 255.0 for bGrB in range(3)]", "def Q5jr():\n Mkmy = tuKI.randint(0, 255)\n Oa1e = tuKI.randint(0, 255)\n ...
[ "0.8007508", "0.78962296", "0.78834957", "0.7784547", "0.77434856", "0.771958", "0.7665195", "0.7601662", "0.7531801", "0.7492063", "0.74707377", "0.74345887", "0.74304885", "0.74290305", "0.74124", "0.7397329", "0.73902905", "0.7381285", "0.7360097", "0.7358726", "0.7344736"...
0.73236907
24
Add a incoming edge. Adds a key value pair to the _incoming_edges list. Where the key i corresponds to the number of the input and the label target is the node object that is incoming.
def rz7z(YKHO, YRbF, pan_): YKHO._incoming_edges[YRbF] = pan_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rz7z(YKHO, JZXy, pan_, UXqs):\n D70y = hLuF(JZXy, pan_, UXqs)\n if D70y not in YKHO.edges:\n YKHO.edges.append(D70y)", "def rz7z(YKHO, IDWK, rdjO, upAO=1):\n YKHO.vertices[IDWK].add_neighbour(YKHO.vertices[rdjO], upAO)", "def rz7z(YKHO, JZXy: Union[str, NODE_TYPE], yFgu: Union[str, NODE_TYP...
[ "0.6076142", "0.60366476", "0.5966138", "0.5894661", "0.5880114", "0.5869785", "0.5848401", "0.584213", "0.5841386", "0.5814922", "0.5804673", "0.57915217", "0.5789838", "0.57701635", "0.5736093", "0.57114995", "0.56918484", "0.568895", "0.56389105", "0.56048757", "0.559058",...
0.67135054
0
corrected standard variation for samples
def mJX1(hkxX): try: return epAf.sqrt(sum(Y63k(hkxX)) / (len(hkxX) - 1)) except ZeroDivisionError: return hkxX[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FG6b(TX60, AKPz, alBp):\n yFro = len(TX60)\n qUVv = oyIN.var(TX60, ddof=1) * (1 / yFro + alBp / AKPz)\n FG6b = oyIN.sqrt(qUVv)\n return FG6b", "def hWT_(YKHO):\n YKHO.standard = (YKHO.rawdata - YKHO.average()) / YKHO.sigma()", "def hWT_(YKHO):\n if YKHO.std is True:\n YKHO.std = oy...
[ "0.75027466", "0.74283063", "0.72333866", "0.6941098", "0.69282013", "0.68983054", "0.6879766", "0.6878274", "0.6863293", "0.68546367", "0.68247694", "0.68055886", "0.6795578", "0.6792851", "0.6792236", "0.67884105", "0.6786968", "0.67712516", "0.67593896", "0.6753387", "0.67...
0.0
-1
Method returns the mean relative distance derivation and its standard error. The standard error of the mean relative deviation estimates how far the sample mean is likely to be from the population mean. Thus the corrected sample standard deviation (n1) is used for calculation.
def VKcO(hkxX, jXNy=None): UAju = [] for jMBf, tiKf, vSAt, L1bW in hkxX: if jXNy is not None: UAju.append((abs(jXNy - jMBf) + abs(jXNy - vSAt)) / 2 / (tiKf + L1bW)) else: UAju.append(abs(jMBf - vSAt) / 2 / (tiKf + L1bW)) JBMS = sum(UAju) / len(UAju) MI3c = epAf.sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AksX(YKHO):\n exwG = len(YKHO.samples) * 1.0\n JBMS = sum(YKHO.samples) / exwG\n ICrl = 0\n for mvm2 in YKHO.samples:\n ICrl += epAf.pow(mvm2 - JBMS, 2)\n KCHu = epAf.sqrt(ICrl / (exwG - 1))\n h7hM = KCHu / epAf.sqrt(exwG)\n return h7hM", "def tgtZ(YKHO):\n ca2h = abs(YKHO.mean...
[ "0.7247187", "0.6955387", "0.667448", "0.6604222", "0.65751594", "0.6570205", "0.64535874", "0.64525014", "0.64519614", "0.64393467", "0.6394771", "0.63909286", "0.63584375", "0.6331168", "0.6325373", "0.63182455", "0.6305892", "0.6293321", "0.6266374", "0.6264833", "0.624631...
0.6738892
2
Check whether a dataset specifies a table or column.
def FYXB(YKHO, ZfUD) -> bool: return bool(YKHO.get(ZfUD))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp26(YKHO):\n YKHO.assertTrue(set(['Date', 'Tanomaly_C']).issubset(set(list(sGpi))))", "def sJnE(nPrm: ge.dataset.PandasDataset):\n ZLJ_ = ['age', 'workclass', 'fnlgt', 'education', 'education_num', 'marital_status', 'occupation', 'relationship', 'race', 'sex', 'capital_gain', 'capital_loss', 'hours_pe...
[ "0.6927541", "0.67993623", "0.6701489", "0.6701489", "0.6701489", "0.6701489", "0.66020334", "0.653732", "0.6528804", "0.6448228", "0.6447765", "0.639407", "0.6364841", "0.6302135", "0.62962687", "0.6276337", "0.6276337", "0.62708724", "0.6262531", "0.6240079", "0.62312436", ...
0.0
-1
Retrieve the reference of a foreign key constraint for the specified column.
def oS7y(YKHO, tyNF: TableType, iVRZ: ColType) -> laHg.Union[laHg.Tuple[wObm.Table, wObm.Column], None]: tyNF = YKHO[tyNF] iVRZ = YKHO[tyNF, iVRZ] for VQaI in tyNF.tableSchema.foreignKeys: if len(VQaI.columnReference) == 1 and VQaI.columnReference[0] == iVRZ.name: return (YKHO[VQaI.refer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cZx0(NCls, _M9w, tyNF, iVRZ):\n Pe9W = \"SELECT `REFERENCED_TABLE_NAME`,`REFERENCED_COLUMN_NAME` FROM information_schema.KEY_COLUMN_USAGE WHERE `TABLE_NAME`='%s' AND `TABLE_SCHEMA`='%s' AND `COLUMN_NAME`='%s' AND `REFERENCED_COLUMN_NAME` IS NOT NUL...
[ "0.7291188", "0.7083701", "0.7083701", "0.6952797", "0.6952797", "0.6884732", "0.68531203", "0.6835681", "0.6686089", "0.65999234", "0.6589585", "0.6396856", "0.6394073", "0.63803524", "0.6315917", "0.62970734", "0.62964493", "0.61641735", "0.6098524", "0.6084415", "0.6068632...
0.7739248
0
Test np>bits and bits>np
def h9JM(T6S7): assert oyIN.all(T6S7 == _w06.bit_array_to_numpy_array(_w06.numpy_array_to_bit_array(T6S7), dtype=T6S7.dtype))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uoRu(YKHO):\n YKHO.assertEqual(Dtpn(0), 0)\n YKHO.assertEqual(Dtpn(10), 10)\n YKHO.assertTrue(Dtpn(10) > 7)\n YKHO.assertFalse(Dtpn(250) > 300)", "def up7G(UOVU):\n return 2 ** (32 - UOVU) - 2", "def Y1Uk(WKvO, uSbu):\n QnUV = list(WKvO.shape)\n WKvO = WKvO.reshape([-1, 1])\n Vxyg =...
[ "0.6313528", "0.63112444", "0.6174917", "0.6171914", "0.61556166", "0.61479497", "0.6140781", "0.61315703", "0.6049247", "0.601784", "0.5982397", "0.59609616", "0.5958408", "0.5892239", "0.588924", "0.5837283", "0.58192307", "0.58170354", "0.57925427", "0.5790913", "0.5790913...
0.6484022
0
In graph G, return the degree of a certain vertex v.
def tjON(YKHO, Ty9i): if Ty9i not in YKHO._Gr.getVertices(): return None return len(YKHO._Gr.getNeighbors(Ty9i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tjON(pNZh, Ty9i):\n assert isinstance(Oa1e, D277)\n return len(pNZh.adjacent_nodes(Ty9i))", "def tjON(pNZh, SLBp):\n return rrLg.degree(pNZh, SLBp)", "def tjON(YKHO, Ty9i):\n YKHO._validate_vertex(Ty9i)\n return len(YKHO._adj[Ty9i])", "def tjON(YKHO, Ty9i):\n tjON = 0\n vtfo = False\...
[ "0.836503", "0.8267601", "0.8136446", "0.8130535", "0.7988922", "0.7946794", "0.78618616", "0.7815257", "0.7733958", "0.7665653", "0.7552304", "0.74095273", "0.734414", "0.7330751", "0.73261255", "0.72701627", "0.7264983", "0.7256916", "0.7125872", "0.7119995", "0.7025508", ...
0.7757129
8
Returns an alphabetized list of the known destination nodes.
def VVGE(YKHO): return sorted([Q6kx for Q6kx in YKHO.mydict])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GHC5(YKHO) -> x1iM[str]:\n Aofo: x1iM[str] = []\n A_IW: x1iM[str] = [D70y.source_name for D70y in XqFw.query.filter_by(target_name=YKHO.name)]\n if A_IW is not None:\n Aofo.extend(A_IW)\n A_IW = [D70y.target_name for D70y in XqFw.query.filter_by(source_name=YKHO.name)]\n if A_IW:\n ...
[ "0.662256", "0.64778787", "0.6288711", "0.62271655", "0.6156425", "0.6126443", "0.611446", "0.6103709", "0.60335445", "0.6005549", "0.59943885", "0.5942156", "0.5935993", "0.5930673", "0.59200805", "0.59195656", "0.59118754", "0.59014225", "0.5900347", "0.5899371", "0.5894217...
0.56026095
64
Returns the hop count from this node to the destination node.
def nQal(YKHO, yFgu): if YKHO.name == 'HARV' and YKHO.localtime > 20: return 0 else: bGrB, WKvO = YKHO.mydict[yFgu] return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kRap(YKHO):\n return YKHO.edge_count + 1", "def XZgE(YKHO, Elif):\n return len(YKHO.get_connections(Elif))", "def M_Qc(YKHO):\n YKHO.raise_error_if_not_open()\n return YKHO._file.attrs['hop-size']", "def UN4A(YKHO, H5ew):\n return len(YKHO.graph[H5ew])", "def GthF(YKHO):\n return len(...
[ "0.6542491", "0.6359941", "0.63595116", "0.6344441", "0.62721455", "0.62721455", "0.6212195", "0.61448795", "0.60678315", "0.6065313", "0.60498506", "0.6034574", "0.602029", "0.6012494", "0.5987927", "0.5975958", "0.5975544", "0.5975544", "0.5975544", "0.5975544", "0.5975544"...
0.73279977
0
The ID of the object.
def id(YKHO): return YKHO.attrs['Descriptor']['digest']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id(YKHO: object) -> int:\n return YKHO.__id", "def OyzV(YKHO):\n return YKHO._objID", "def id(YKHO):\n return YKHO.object_id", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def NBcv(YKHO) -> str:\n return qe4Y.get(YKHO, 'object_id')", "def id(YKHO):\n return YKHO._...
[ "0.9042943", "0.9034453", "0.8996251", "0.87408996", "0.87408996", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8677007", "0.8675278", "0.8675278", "0.8627981", "0.8596898", "0.85782087", "0.8562119", "0.8562119", ...
0.0
-1
Return difference in DM that corresponds to arrival time shift between highest and lowest frequency channels equals to time resolution.
def qqCs(zUN5, QqBd, JRYC): G1Hx = 1.0 / (2.410331 * 10 ** (-4)) return JRYC / (G1Hx * (1.0 / QqBd ** 2.0) - 1.0 / zUN5 ** 2.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xqJe(Csk6, p37X):\n return oyIN.round(0.0042 * p37X * (Csk6['freq'] ** (-2) - Csk6['freq'][len(Csk6['chans']) - 1] ** (-2)) / Csk6['inttime'], 0).astype(int)", "def wohN(YKHO):\n VOJR = YKHO.dataset[YKHO.master_clock_dim]\n return VOJR.diff(YKHO.master_clock_dim).values", "def Mf5R(YKHO, h7D2, Gjt...
[ "0.627571", "0.6139133", "0.5807442", "0.58003855", "0.5730711", "0.57105243", "0.5701212", "0.56678945", "0.5649479", "0.56399196", "0.5618138", "0.55827284", "0.5568131", "0.5547481", "0.5545363", "0.55446994", "0.5516305", "0.5512041", "0.5505057", "0.5501499", "0.5501129"...
0.554517
15
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() if jQ3Z.empty: print('Your Selection Has No Data, Time Stats Unavailable...') else: exwG = 1 jzPO = jQ3Z['month'].value_counts()[:exwG].index.tolist() jzPO = jzPO[0] E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() if jQ3Z.empty: print('Your Selection Has No Data, Station Stats Unavailable...') else: exwG = 1 v4Og = jQ3Z['Start Station'].value_counts()[:exwG].index.tolist() v4Og = v4Og[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() if jQ3Z.empty: print('Your Selection Has No Data, Trip Stats Unavailable...') else: V2wv = jQ3Z['Trip Duration'].sum() V2wv = V2wv / 60 print('Total Trip Duration:') print('{Total_Time} M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Return node with this data. Start here. Return None if not found.
def neBz(YKHO, OwH9): jvSB = YKHO while jvSB: print('checking ', jvSB.data) if jvSB.data == OwH9: return jvSB elif OwH9 < jvSB.data: jvSB = jvSB.left elif OwH9 > jvSB.data: jvSB = jvSB.right
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hDX3(YKHO, nPrm: T) -> h8nf[o7DN]:\n for Q6kx in YKHO.nodes:\n if nPrm == Q6kx.data:\n return Q6kx\n return None", "def Q6kx(YKHO, mWFP):\n for exwG in YKHO.nodes:\n if exwG.node_name == mWFP:\n return exwG\n return None", "def neBz(YKHO, mWFP):\n if YKHO....
[ "0.7766938", "0.7482488", "0.73413575", "0.7335991", "0.7329969", "0.72968656", "0.7286486", "0.7201183", "0.71778435", "0.7160924", "0.7157992", "0.71267563", "0.70447034", "0.7019869", "0.70155567", "0.70110446", "0.70033014", "0.6965367", "0.6942492", "0.6922215", "0.69118...
0.0
-1
Returns array of test reward per epoch for one run
def iXC1(): global q_func z1fD = oyIN.zeros((TEHS, p5i6, KPX9, WUo9)) UEB5 = [] eGC5 = PRqg(range(WP5j), ncols=80) for bGrB in eGC5: UEB5.append(SpYA()) eGC5.set_description('Avg reward: {:0.6f} | Ewma reward: {:0.6f}'.format(oyIN.mean(UEB5), BfDw.ewma(UEB5))) return UEB5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOe9(sEAN, _eoH, TZq6, yokr, kCkV):\n mbGj = []\n for mbwZ in range(TZq6):\n QTBn = sEAN.reset()\n _ins = False\n OtOH = 0\n while not _ins:\n XeOP = _eoH.select_action(QTBn, exploration_noise=0.0)\n rxHc, vOGg, _ins, bGrB = sEAN.step(XeOP)\n Q...
[ "0.71726", "0.715813", "0.6879946", "0.68181133", "0.6789303", "0.67539907", "0.6681481", "0.6657938", "0.6642862", "0.6590902", "0.6584042", "0.64259183", "0.63656694", "0.63317126", "0.62459964", "0.62459314", "0.620282", "0.6199939", "0.61977834", "0.6189517", "0.61494035"...
0.6325464
14
take 1D float array of rewards and compute discounted reward
def AC1_(YKHO, Mkmy): g2lU = oyIN.zeros_like(Mkmy) S8qo = 0 for a1PO in reversed(Ni9Y(0, Mkmy.size)): S8qo = S8qo * YKHO.gamma + Mkmy[a1PO] g2lU[a1PO] = S8qo return g2lU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AC1_(cAvO):\n g2lU = oyIN.zeros_like(cAvO)\n S8qo = 0\n for d6pt in reversed(range(cAvO.size)):\n S8qo = S8qo * BR4e + cAvO[d6pt]\n g2lU[d6pt] = S8qo\n return g2lU", "def AC1_(ezWE):\n bnZy = oyIN.zeros_like(ezWE)\n vOGg = 0\n for YRbF in reversed(range(ezWE.size)):\n ...
[ "0.8228387", "0.8101504", "0.794589", "0.79116005", "0.78897405", "0.78536695", "0.7846898", "0.7795935", "0.77391535", "0.77332956", "0.7728408", "0.7695219", "0.7656278", "0.75764155", "0.75764155", "0.7554488", "0.7541471", "0.75083315", "0.7498441", "0.74695385", "0.74671...
0.7330164
30
Return a string representation of this structure
def zAg0(YKHO): Csk6 = {} Csk6['allocation_id_csv'] = YKHO.allocation_id_csv Csk6['attenuation'] = YKHO.attenuation Csk6['bandwidth'] = YKHO.bandwidth Csk6['center_frequency'] = YKHO.center_frequency Csk6['enabled'] = YKHO.enabled Csk6['group_id'] = YKHO.group_id Csk6['rf_flow_id'] = YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def yLCI(YKHO):\n return ddrW(YKHO, type(YKHO).fields)", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def gTzM(YKHO):\n return CgYo.pformat(YKHO.to_dict())", "def...
[ "0.8272776", "0.8272776", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819036", "0.819...
0.0
-1
Convert file with list of tags to a single line file with tags concatenede, used for computing the GloVe embeddings.
def iXC1(__n6): _oWe = jIXb() LGpB = Hy7s.path.join('../data', __n6) qwXm = Hy7s.path.join(LGpB, 'tracklist.tsv') rgyz = Hy7s.path.join('../data', 'lastfm_tags', 'lastfm_tags.tsv') taWP = Hy7s.path.join(LGpB, 'tracks_tags_token.txt') zKVk = _oWe.import_track_tags(rgyz) VOM7 = 0 ItcC = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gGlr(qaEx, y0cW: str, dJ1p: list, NX0m: int=G9jH.WARNING):\n l5Ny = None\n with open(qaEx, 'r', encoding='utf-8') as J0RQ:\n l5Ny = J0RQ.read()\n kxPJ = Ve1k(dJ1p, NX0m)\n kxPJ.feed(l5Ny)\n kxPJ.close()\n l5Ny = kxPJ.text\n qaEx = y0cW + qaEx\n with open(qaEx, 'w'...
[ "0.66650873", "0.62027675", "0.6159482", "0.601926", "0.5999089", "0.5949858", "0.5802666", "0.5719911", "0.5629582", "0.5585835", "0.5582065", "0.5570989", "0.55549437", "0.5546153", "0.5524213", "0.55032897", "0.550104", "0.55000335", "0.5490606", "0.54897356", "0.5480189",...
0.0
-1
Ensure dilution factor is only ever 1, 5, or 10 (or null)
def tEmL(YKHO, BWXx): if BWXx not in (1, 5, 10, None): Ol8d = 'dilution_factor can only have a value of 1, 5, 10, or null' raise IyFz.ValidationError(R0Pq(Ol8d)) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l0vZ(Csk6):\n if Csk6 < 0.0 or Csk6 > 1.0:\n bo34.error('Disruption value provided ({0}) is not in range 0.0 to 1.0; proceeding with default value of 1.0'.format(Csk6))\n Csk6 = 1.0\n return Csk6", "def pcAi(exwG):\n assert isinstance(exwG, int), 'Number must be an integer'\n assert...
[ "0.6484778", "0.6426422", "0.63079876", "0.61167455", "0.6020292", "0.59931564", "0.5972608", "0.5926044", "0.5858967", "0.5815895", "0.56880134", "0.5671396", "0.56683755", "0.56533676", "0.563273", "0.56180817", "0.56067365", "0.56014794", "0.5550694", "0.55358183", "0.5502...
0.7899518
1
Ensure dilution factor is only ever 1, 5, or 10 (or null)
def tEmL(YKHO, BWXx): if BWXx not in (1, 5, 10, None): Ol8d = 'dilution_factor can only have a value of 1, 5, 10, or null' raise IyFz.ValidationError(R0Pq(Ol8d)) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l0vZ(Csk6):\n if Csk6 < 0.0 or Csk6 > 1.0:\n bo34.error('Disruption value provided ({0}) is not in range 0.0 to 1.0; proceeding with default value of 1.0'.format(Csk6))\n Csk6 = 1.0\n return Csk6", "def pcAi(exwG):\n assert isinstance(exwG, int), 'Number must be an integer'\n assert...
[ "0.648259", "0.64268625", "0.63076216", "0.6116126", "0.6021686", "0.5993619", "0.597306", "0.5926471", "0.5856548", "0.5814118", "0.5686788", "0.5673321", "0.5667115", "0.5653837", "0.56303626", "0.5619263", "0.5604061", "0.5601708", "0.5552055", "0.5534581", "0.55019045", ...
0.7898883
0
Ensure inhibition_positive_control_cq_value and inhibitions are included in request data.
def xzCw(YKHO, nPrm): if 'inh_pos_cq_value' not in nPrm: raise IyFz.ValidationError(R0Pq('inh_pos_cq_value is required')) if 'inhibitions' not in nPrm: raise IyFz.ValidationError(R0Pq('inhibitions is required')) bBVO = nPrm['analysis_batch'] _e0y = nPrm['extraction_number'] wCft = nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uljm(YKHO):\n YKHO.subject_visit_male_T0 = YKHO.baseline_subject_visit\n YKHO.hiv_result(GrQm, YKHO.subject_visit_male_T0)\n YKHO.subject_visit_male = YKHO.annual_subject_visit_y2\n OLx3 = {}\n OLx3.update(entry__app_label='bcpp_subject', entry__model_name='hivcareadherence', appointment=YKHO.su...
[ "0.5529733", "0.52230245", "0.5209858", "0.51908034", "0.51844996", "0.5182717", "0.5142575", "0.51423305", "0.5027615", "0.5013193", "0.49619567", "0.49397334", "0.4881075", "0.4843233", "0.48422602", "0.48273894", "0.48006397", "0.4792123", "0.47835293", "0.47487146", "0.47...
0.62328273
0
Shortcut to access the current logged in user. Unlike user_info, it fetches information from the persistence layer and returns an instance of the underlying model.
def CBIr(YKHO): P6bq = YKHO.user_info return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None", "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.get_by_id(P6bq['user_id']) if P6bq else None", "def CBIr(YKHO):\n P6bq = YKHO.user_info\n return YKHO.user_model.ge...
[ "0.80493677", "0.80493677", "0.7975974", "0.7975974", "0.7975974", "0.78191227", "0.780093", "0.77770764", "0.7765082", "0.7748988", "0.76776487", "0.76654613", "0.7665232", "0.7665232", "0.7665232", "0.7644563", "0.7636921", "0.7636921", "0.7616793", "0.7605212", "0.7550795"...
0.80118454
2
Returns the magnitude of the vector
def wjNy(YKHO) -> float: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5", "def YXbZ(...
[ "0.85446364", "0.8426576", "0.8366436", "0.8309023", "0.828243", "0.81067264", "0.8097087", "0.8027947", "0.80168736", "0.79927593", "0.77942026", "0.77590215", "0.77162606", "0.771396", "0.768702", "0.7658779", "0.7642622", "0.76390153", "0.76276696", "0.76017016", "0.756711...
0.756306
22
Returns the magnitude of the vector
def wjNy(YKHO) -> float: mOlj, ymxS = YKHO.get_start_point().get_position() tEh9, PD75 = YKHO.get_end_point().get_position() return PZyS((tEh9 - mOlj) ** 2 + (PD75 - ymxS) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(iArr):\n return tk5Y(oyIN.sum(oyIN.square(iArr)), 2)", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(iArr):\n return epAf.sqrt(sum([iArr[YRbF] ** 2 for YRbF in range(len(iArr))]))", "def YXbZ(YKHO):\n return (YKHO.u ** 2 + YKHO.v ** 2) ** 0.5", "def YXbZ(...
[ "0.85446364", "0.8426576", "0.8366436", "0.8309023", "0.828243", "0.81067264", "0.8097087", "0.8027947", "0.80168736", "0.79927593", "0.77942026", "0.77590215", "0.77162606", "0.771396", "0.768702", "0.7658779", "0.7642622", "0.76390153", "0.76276696", "0.76017016", "0.756711...
0.72701925
38
Registers all the endpoints used by the frontend to deliver the index.html in all cases.
def ebLW(P4t4): @P4t4.route('/', methods=['GET']) @P4t4.route('/projects/<project_id>', methods=['GET']) @P4t4.route('/projects/<project_id>/images/<image_id>', methods=['GET']) def Vn7Z(ekCf=None, r8m5=None): """ Each call to the API, which doesn't start with `/api` will be covered by ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rOHc(P4t4):\n gYdf = GkAb(xAKo).parent.parent / 'static'\n P4t4.add_routes([jA2G.get('/', Hs2J.Index.get, name='index'), jA2G.get('/get-token', Hs2J.Token.get, name='token-getter'), jA2G.post('/post-token', Hs2J.Token.post, name='image-getter'), jA2G.get('/update', WWWV, name='sse'), jA2G.get('/start-del...
[ "0.6571429", "0.65282536", "0.65093917", "0.6477031", "0.6407042", "0.6397164", "0.63739234", "0.63536245", "0.6340764", "0.63187397", "0.63145196", "0.6302607", "0.6293288", "0.62752867", "0.6263721", "0.6259916", "0.62497497", "0.62391794", "0.62010926", "0.6194759", "0.619...
0.7489058
0
Each call to the API, which doesn't start with `/api` will be covered by this function providing the index.html to the caller. The index.html will load the index.js in the browser, which will render the frontend. The frontend will then decide what view to render. The backend is not responsible for that. IMPORTANT This ...
def Vn7Z(ekCf=None, r8m5=None): return TvZl('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebLW(P4t4):\n\n @P4t4.route('/', methods=['GET'])\n @P4t4.route('/projects/<project_id>', methods=['GET'])\n @P4t4.route('/projects/<project_id>/images/<image_id>', methods=['GET'])\n def Vn7Z(ekCf=None, r8m5=None):\n \"\"\"\n Each call to the API, which doesn't start with `/api` will...
[ "0.71305865", "0.67724764", "0.67684454", "0.6705885", "0.6663443", "0.66377157", "0.66145515", "0.66085684", "0.6600268", "0.6588014", "0.6516282", "0.6516282", "0.65121907", "0.6510834", "0.6510834", "0.6510834", "0.6510834", "0.6510834", "0.6510834", "0.6510834", "0.650174...
0.0
-1
Regex for table headers, which consist of a row of '' characters split up by one or more '|' characters or '+' characters.
def l4T5(YKHO): njyT = UzNA.TABLE_HEADER_REGEX = '^[\\s]{0,3}(\\||\\+)*((-{3,})(\\||\\+))+' r8hN = ZbWC.search(njyT, 'There is no table header markup here') YKHO.assertEqual(r8hN, None) r8hN = ZbWC.search(njyT, '---|---|---') YKHO.assertNotEqual(len(r8hN.groups()), 0) YKHO.assertEqual(r8hN.group...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GCMp(WBPg: str) -> x1iM[str]:\n ZLJ_ = []\n for fvDH in WBPg.split('|')[1:-1]:\n ZLJ_.append(fvDH.strip())\n return ZLJ_", "def lVpS(Emd4, CQ4l, FpYC=';'):\n\n def kjhC(WKvO):\n if len(WKvO) > 0:\n return WKvO.strip()\n else:\n return 'unnamed'\n retu...
[ "0.65289694", "0.62966615", "0.61941516", "0.6084593", "0.6024061", "0.58257574", "0.57901615", "0.5722963", "0.5694286", "0.56586593", "0.5566106", "0.55288965", "0.5458528", "0.54499835", "0.5414631", "0.5410569", "0.5399868", "0.5397975", "0.5389462", "0.53880316", "0.5356...
0.8089355
0
Create a new Scrape book object.
def FIMM(YKHO, eOtH, JKCy=None): YKHO.base = 'https://graph.facebook.com' YKHO.pool = laXl.Pool(processes=35) YKHO.token = eOtH YKHO.resources = JKCy or ['photos', 'friends', 'videos', 'notes']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uSLo():\n jI4j = dl5x('The Booktastical Book', 'Author McAuthorson')\n return jI4j", "def mFaM(YKHO):\n return dl5x.objects.create(author='Benedict Combherwirtb', title='Y is mah name so messed up bruh', ISBN='848925742894', price=42.42, publish_date=rIAI.now())", "def WU8E(Emd4, QZnA, xigm=None, ...
[ "0.7139075", "0.7123824", "0.6859651", "0.64461416", "0.6393126", "0.61877173", "0.6184337", "0.6175689", "0.6175045", "0.61453307", "0.6131486", "0.60922396", "0.60919654", "0.60702634", "0.60500926", "0.6013313", "0.6003228", "0.59836775", "0.5955452", "0.59476405", "0.5931...
0.0
-1
Returns a safe and clean filename for any given string
def Yczo(YKHO, KCHu): return ''.join([WKvO for WKvO in KCHu if WKvO.isalpha() or WKvO.isdigit()])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZ66(KCHu: str) -> str:\n KCHu = str(KCHu).strip().replace(' ', '_')\n return ZbWC.sub('(?u)[^-\\\\w.]', '', KCHu)", "def nlPK(KCHu):\n KCHu = str(KCHu).strip()\n KCHu = ZbWC.sub('(?u)[^-\\\\w. ]', '', KCHu)\n return ' '.join(KCHu.split())", "def XZ66(KCHu):\n KCHu = str(KCHu).strip().rep...
[ "0.8423073", "0.8361849", "0.8351123", "0.83492607", "0.8333138", "0.82627106", "0.82627106", "0.82405335", "0.8184222", "0.8096629", "0.8096629", "0.8094555", "0.80737424", "0.8022651", "0.8019477", "0.79833174", "0.7976528", "0.7916128", "0.78941584", "0.7893466", "0.789094...
0.0
-1
Returns the geoJSON compliant representation of this location
def sBfz(YKHO): if YKHO.lon is None or YKHO.lat is None: return None return TuoA.Point(YKHO.lon, YKHO.lat)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3ht(YKHO):\n return dict(zip=YKHO.zip, state=YKHO.state, city=YKHO.city, lat=float(YKHO.lat), lng=float(YKHO.lng))", "def oD7C(YKHO):\n if YKHO.lon is None and YKHO.lat is None:\n return None\n else:\n return dict(lon=YKHO.lon, lat=YKHO.lat)", "def wFOJ():\n return pz3A(TdeU(cuiw...
[ "0.7634949", "0.7568582", "0.748757", "0.738133", "0.73147935", "0.72946787", "0.724846", "0.7113806", "0.7085035", "0.70812154", "0.70151633", "0.6996356", "0.6977104", "0.69730586", "0.6911339", "0.68883693", "0.6865474", "0.68556046", "0.68338305", "0.68277144", "0.6825064...
0.0
-1
Returns the nearest neighbors of lattice site `pos`.
def BTfj(YKHO, oeNL): tpio = len(oeNL) A_IW = [] for YRbF in range(tpio): A_IW.append(oeNL[:YRbF] + [(oeNL[YRbF] - 1) % YKHO.L] + oeNL[YRbF + 1:]) A_IW.append(oeNL[:YRbF] + [(oeNL[YRbF] + 1) % YKHO.L] + oeNL[YRbF + 1:]) return A_IW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPAV(YKHO, oeNL):\n EZRZ = []\n CFqu = []\n WKvO, LVAh = oeNL\n if WKvO > 0 and WKvO < YKHO.size - 1:\n EZRZ = [WKvO - 1, WKvO, WKvO + 1]\n elif WKvO > 0:\n EZRZ = [WKvO - 1, WKvO]\n else:\n EZRZ = [WKvO, WKvO + 1]\n if LVAh > 0 and LVAh < YKHO.size - 1:\n CFqu ...
[ "0.7595863", "0.6871956", "0.6817157", "0.6693936", "0.6554831", "0.64749825", "0.64468914", "0.6402246", "0.62963796", "0.6276421", "0.62315416", "0.618865", "0.6150469", "0.6119047", "0.5983349", "0.5952091", "0.5951056", "0.59383756", "0.593223", "0.59207886", "0.5915498",...
0.7424385
1
r"""__init__(CartesianInfo self) > CartesianInfo
def FIMM(YKHO): Is4a.CartesianInfo_swiginit(YKHO, Is4a.new_CartesianInfo())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n Is4a.CartesianPosition_swiginit(YKHO, Is4a.new_CartesianPosition())", "def FIMM(YKHO, N08x: 'size_t'):\n Is4a.CartesianInfoArray_swiginit(YKHO, Is4a.new_CartesianInfoArray(N08x))", "def FIMM(YKHO, *qIxc):\n leuP.Geom_CartesianPoint_swiginit(YKHO, leuP.new_Geom_CartesianPoint(*qIxc))"...
[ "0.7499488", "0.7276385", "0.6885394", "0.67892295", "0.6568097", "0.6552018", "0.65236646", "0.6517122", "0.6456811", "0.6449332", "0.63940036", "0.63940036", "0.63940036", "0.638731", "0.6376643", "0.6366096", "0.63645756", "0.63557595", "0.63557595", "0.63309205", "0.63145...
0.811102
0
r"""__init__(Limitation self) > Limitation
def FIMM(YKHO): Is4a.Limitation_swiginit(YKHO, Is4a.new_Limitation())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, c5uu=None):\n YKHO._limiter = CazZ(c5uu or dERJ)", "def FIMM(YKHO, c5uu=None):\n YKHO._limiter = CazZ(c5uu or dERJ)", "def FIMM(YKHO, ppsq: float, AbYn: float):\n YKHO.lower_limit = ppsq\n YKHO.upper_limit = AbYn", "def FIMM(YKHO, ppsq: float, AbYn: float):\n super().__init__(lo...
[ "0.7506399", "0.7506399", "0.7472755", "0.73794365", "0.73286384", "0.7198755", "0.7182623", "0.7160641", "0.7100197", "0.70247376", "0.69974154", "0.6987521", "0.6978945", "0.6905159", "0.6905159", "0.68944794", "0.68944794", "0.6848157", "0.67907476", "0.6751691", "0.670827...
0.7940841
0
r"""__init__(TrajectoryPoint self) > TrajectoryPoint
def FIMM(YKHO): Is4a.TrajectoryPoint_swiginit(YKHO, Is4a.new_TrajectoryPoint())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO=0, LVAh=0, AU8u=None):\n if AU8u != None:\n YKHO.x = AU8u.x\n YKHO.y = AU8u.y\n else:\n YKHO.x = WKvO\n YKHO.y = LVAh", "def FIMM(YKHO, WKvO: int, LVAh: int, AdZ9: TCurve) -> g9ij:\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.curve = AdZ9\n YKHO.on_curv...
[ "0.74660116", "0.7345832", "0.72967565", "0.7207408", "0.71999556", "0.715933", "0.7103866", "0.7098554", "0.7066633", "0.7050126", "0.7040677", "0.70393866", "0.7014536", "0.7009019", "0.6941522", "0.69298196", "0.6890733", "0.68870836", "0.6848947", "0.6805603", "0.6791975"...
0.8269203
0
r"""__init__(ZoneLimitation self) > ZoneLimitation
def FIMM(YKHO): Is4a.ZoneLimitation_swiginit(YKHO, Is4a.new_ZoneLimitation())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(CQw3, YKHO).__init__()", "def FIMM(YKHO, _j99=[]):\n S96Q = len(_j99[0].max_corner)\n BYY2 = {'priority': len(_j99) + 1, 'axis': 0, 'pivot': 0, 'mid_min': 0, 'mid_max': 0, 'less': [], 'mid': list(_j99), 'more': []}\n S7lE = BYY2\n for Z8oy in _j99:\n for jDK_ in rang...
[ "0.6926021", "0.6428338", "0.6427158", "0.63867563", "0.627504", "0.6273089", "0.6273089", "0.62476856", "0.6176857", "0.61629", "0.61571634", "0.6132944", "0.6071715", "0.6054082", "0.60208595", "0.60193104", "0.60193104", "0.60193104", "0.5964234", "0.59529674", "0.5904922"...
0.8288422
0
r"""__init__(Zone self) > Zone
def FIMM(YKHO): Is4a.Zone_swiginit(YKHO, Is4a.new_Zone())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(CQw3, YKHO).__init__()", "def FIMM(YKHO):\n Is4a.ZoneList_swiginit(YKHO, Is4a.new_ZoneList())", "def FIMM(YKHO, gW_6, lhKE):\n YKHO.setpoint = gW_6\n YKHO.neutralZone = lhKE", "def FIMM(YKHO, PSli, _3kF, vIwR, WKvO, LVAh, TVTK, H2v2):\n kpgd.__init__(YKHO, PSli, vIwR, W...
[ "0.7709931", "0.7458643", "0.7345058", "0.72446775", "0.7109989", "0.707359", "0.6982066", "0.67778456", "0.67734355", "0.67027813", "0.6691798", "0.6685531", "0.66690147", "0.65599436", "0.6486599", "0.64749837", "0.6465622", "0.6440335", "0.6425445", "0.6402139", "0.6397098...
0.75448287
1
r"""__init__(AngularAcceleration self) > AngularAcceleration
def FIMM(YKHO): Is4a.AngularAcceleration_swiginit(YKHO, Is4a.new_AngularAcceleration())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ABYF: float=oyIN.pi / 2) -> None:\n super(m7t0, YKHO).__init__()\n YKHO.phase_diff_exp = ZylS.exp(ZylS.constant(1j * ABYF, dtype=etI2))", "def FIMM(YKHO, YAq3, LvV5, UYQE=i5fK.NONE):\n YKHO.instruction = ddQi + 'SetAcceleration'\n YKHO.feedback_level = UYQE\n YKHO.exec_level = H1jh....
[ "0.697307", "0.67927843", "0.6755527", "0.6662023", "0.6640276", "0.66143763", "0.65805316", "0.6569641", "0.65664", "0.65517133", "0.6521978", "0.64234334", "0.63974327", "0.6372083", "0.6363901", "0.63445073", "0.63331395", "0.6333107", "0.632197", "0.6315064", "0.6296462",...
0.82901216
0
r"""__init__(RS485_Message self) > RS485_Message
def FIMM(YKHO): Is4a.RS485_Message_swiginit(YKHO, Is4a.new_RS485_Message())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WBPg, zNig, tO9_):\n YKHO.header = WBPg\n if len(tO9_) < 257:\n YKHO.msg = tO9_\n else:\n YKHO.msg = ''\n YKHO.size = len(YKHO.msg)", "def FIMM(YKHO):\n YKHO.rsid = '00 00 00 00 00 02 00 01'", "def FIMM(YKHO, dfrk, bytes):\n YKHO.flags, YKHO.sequence, YKHO.extra_b...
[ "0.70248306", "0.7005138", "0.692239", "0.6873876", "0.67683834", "0.6764857", "0.66544443", "0.66353005", "0.66340876", "0.6573106", "0.6573106", "0.6561402", "0.65532136", "0.65532136", "0.65532136", "0.65532136", "0.65532136", "0.65532136", "0.65532136", "0.65532136", "0.6...
0.88808143
0
r"""GetProtectionZone(ZoneList Response) > int
def wQfB(oGir: 'ZoneList') -> 'int': return Is4a.GetProtectionZone(oGir)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def esEP(TkY7: 'ZoneList') -> 'int':\n return Is4a.SetProtectionZone(TkY7)", "def NMoC(YKHO):\n return nfAr", "def _j99(YKHO) -> bdIy['outputs.DistributionPolicyZoneConfigurationResponse']:\n return qe4Y.get(YKHO, 'zones')", "def _j99(YKHO):\n return YKHO._list('/os-floating-ip-dns', 'zones')", ...
[ "0.65185326", "0.5693179", "0.5629121", "0.55870247", "0.558142", "0.557912", "0.5538569", "0.5449122", "0.5441358", "0.5423847", "0.5420591", "0.5419768", "0.54188305", "0.5414222", "0.5379198", "0.53618586", "0.5350938", "0.53427136", "0.53427136", "0.5339176", "0.5337187",...
0.917397
0
r"""value(SwigPyIterator self) > PyObject
def BWXx(YKHO) -> 'PyObject *': return Is4a.SwigPyIterator_value(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO) -> 'PyObject *':\n return FZrS.SwigPyIterator_value(YKHO)", "def BWXx(YKHO):\n return H6Cb.SwigPyIterator_value(YKHO)", "def BWXx(YKHO):\n return wUFg.SwigPyIterator_value(YKHO)", "def BWXx(YKHO):\n return Tw7d.SwigPyIterator_value(YKHO)", "def UDAb(YKHO) -> 'PyObject *':\n re...
[ "0.88907504", "0.85094917", "0.8420854", "0.82396954", "0.81692845", "0.81495565", "0.7990983", "0.7962502", "0.79577804", "0.7941856", "0.7937039", "0.78926504", "0.77823114", "0.77396894", "0.77327067", "0.7720253", "0.7716189", "0.76595426", "0.76069325", "0.7510382", "0.7...
0.8843961
1
r"""__iadd__(SwigPyIterator self, ptrdiff_t n) > SwigPyIterator
def CaoY(YKHO, exwG: 'ptrdiff_t') -> 'swig::SwigPyIterator &': return Is4a.SwigPyIterator___iadd__(YKHO, exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CaoY(YKHO, exwG: 'ptrdiff_t') -> 'swig::SwigPyIterator &':\n return FZrS.SwigPyIterator___iadd__(YKHO, exwG)", "def FOdN(YKHO, exwG: 'ptrdiff_t') -> 'swig::SwigPyIterator *':\n return FZrS.SwigPyIterator___add__(YKHO, exwG)", "def FOdN(YKHO, exwG: 'ptrdiff_t') -> 'swig::SwigPyIterator *':\n return...
[ "0.9123298", "0.8781607", "0.8726294", "0.7914426", "0.7855094", "0.77071446", "0.75949544", "0.75029165", "0.7229464", "0.7180312", "0.71102554", "0.71073824", "0.7092816", "0.7075717", "0.69970375", "0.69398105", "0.6893857", "0.68858343", "0.6807843", "0.6807843", "0.68018...
0.9015797
1
r"""swap(IntVector self, IntVector v)
def b3SJ(YKHO, Ty9i: 'IntVector') -> 'void': return Is4a.IntVector_swap(YKHO, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3SJ(YKHO, Ty9i):\n return ZYgz.IntVector_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i):\n return gQS9.IntVector_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i: 'vectorI') -> 'void':\n return FZrS.vectorI_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i: 'vectorvectorI') -> 'void':\n return FZrS.vectorvectorI_swa...
[ "0.8212329", "0.78730893", "0.7832394", "0.78091", "0.7486674", "0.74656016", "0.7462401", "0.74529433", "0.74485105", "0.74192286", "0.7344139", "0.7311227", "0.7290582", "0.7266318", "0.7261109", "0.7242636", "0.7234703", "0.7198303", "0.7188632", "0.71597195", "0.71422136"...
0.87431395
0
r"""iterator(DoubleVector self) > SwigPyIterator
def oHE7(YKHO) -> 'swig::SwigPyIterator *': return Is4a.DoubleVector_iterator(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHE7(YKHO):\n return ZYgz.VectorVectorDouble_iterator(YKHO)", "def oHE7(YKHO):\n return ZYgz.DoubleVector_iterator(YKHO)", "def oHE7(YKHO):\n return gQS9.DoubleVector_iterator(YKHO)", "def oHE7(YKHO) -> 'swig::SwigPyIterator *':\n return FZrS.vectorD_iterator(YKHO)", "def oHE7(YKHO) -> 'swi...
[ "0.8293534", "0.82445765", "0.8082054", "0.798854", "0.7837419", "0.78324074", "0.78045666", "0.7753804", "0.7719727", "0.7661111", "0.76524025", "0.7643713", "0.76048493", "0.7586158", "0.7530344", "0.7522421", "0.7515734", "0.7395232", "0.7377443", "0.73416936", "0.73091", ...
0.86260974
0
r"""__bool__(DoubleVector self) > bool
def eRwN(YKHO) -> 'bool': return Is4a.DoubleVector___bool__(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eRwN(YKHO):\n return ZYgz.VectorVectorDouble___bool__(YKHO)", "def eRwN(YKHO):\n return ZYgz.DoubleVector___bool__(YKHO)", "def eRwN(YKHO) -> 'bool':\n return FZrS.vectorD___bool__(YKHO)", "def eRwN(YKHO):\n return gQS9.DoubleVector___bool__(YKHO)", "def eRwN(YKHO) -> 'bool':\n return FZ...
[ "0.84709185", "0.83723545", "0.83642834", "0.8355681", "0.8314365", "0.82261336", "0.822058", "0.8184025", "0.81635946", "0.81525004", "0.81237566", "0.812177", "0.81089824", "0.8088166", "0.80792433", "0.8072355", "0.8065283", "0.8053297", "0.8051822", "0.7800806", "0.779667...
0.83774185
1
r"""swap(DoubleVector self, DoubleVector v)
def b3SJ(YKHO, Ty9i: 'DoubleVector') -> 'void': return Is4a.DoubleVector_swap(YKHO, Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3SJ(YKHO, Ty9i):\n return ZYgz.VectorVectorDouble_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i):\n return ZYgz.DoubleVector_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i: 'vectorD') -> 'void':\n return FZrS.vectorD_swap(YKHO, Ty9i)", "def b3SJ(YKHO, Ty9i: 'vectorvectorD') -> 'void':\n return FZrS.vecto...
[ "0.8503801", "0.84588814", "0.82003474", "0.8185132", "0.81693304", "0.7776272", "0.775078", "0.7738868", "0.77218544", "0.7721148", "0.7719799", "0.7708093", "0.7703169", "0.7679369", "0.7665148", "0.76222396", "0.7606978", "0.7572511", "0.7564696", "0.7557358", "0.75550175"...
0.8780932
0
r"""__init__(FloatArray self, size_t nelements) > FloatArray
def FIMM(YKHO, N08x: 'size_t'): Is4a.FloatArray_swiginit(YKHO, Is4a.new_FloatArray(N08x))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n oekH.FloatsList_swiginit(YKHO, oekH.new_FloatsList(*qIxc))", "def QYPv(a1PO: 'float *') -> 'FloatArray *':\n return Is4a.FloatArray_frompointer(a1PO)", "def FIMM(YKHO, *qIxc):\n oekH.Floats_swiginit(YKHO, oekH.new_Floats(*qIxc))", "def O1R3(YKHO, d6pt: 'size_t', BWXx: 'float...
[ "0.6585689", "0.65654546", "0.64241844", "0.62590086", "0.60993916", "0.6096497", "0.60333014", "0.598065", "0.59598076", "0.59433174", "0.59270716", "0.59067", "0.5904665", "0.5886538", "0.58389676", "0.58007365", "0.5798905", "0.5774131", "0.57700837", "0.57417375", "0.5741...
0.84466153
0
r"""__init__(ZoneArray self, size_t nelements) > ZoneArray
def FIMM(YKHO, N08x: 'size_t'): Is4a.ZoneArray_swiginit(YKHO, Is4a.new_ZoneArray(N08x))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, N08x: 'size_t'):\n Is4a.CartesianInfoArray_swiginit(YKHO, Is4a.new_CartesianInfoArray(N08x))", "def _fPj(a1PO: 'Zone') -> 'ZoneArray *':\n return Is4a.ZoneArray_frompointer(a1PO)", "def FIMM(YKHO):\n Is4a.ZoneList_swiginit(YKHO, Is4a.new_ZoneList())", "def FIMM(YKHO):\n YKHO._n = 0...
[ "0.6636894", "0.65064853", "0.64988095", "0.6312882", "0.630984", "0.6237633", "0.62283576", "0.61537075", "0.6145391", "0.61399686", "0.613133", "0.60531634", "0.6050955", "0.6038529", "0.5976434", "0.59670115", "0.59408426", "0.59352666", "0.59225255", "0.59184057", "0.5911...
0.8842049
0
This is just a test function to calculate the normal density at x given mean and covariance matrix.
def I6nD(WKvO, JBMS, jLbF): apZK = JBMS.shape[0] Jw7X = WKvO - JBMS hGGi = Zxt2.linalg.inv(jLbF) fOg4 = Zxt2.linalg.det(jLbF) OCOs = oyIN.dot(oyIN.dot(Jw7X.T, hGGi), Jw7X) + apZK * oyIN.log(2 * oyIN.pi) + oyIN.log(fOg4) return -1 / 2 * OCOs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(WKvO, yGTL, PFC2):\n Csk6 = yGTL.shape[0]\n return 1.0 / oyIN.sqrt((2.0 * oyIN.pi) ** Csk6 * nUPH(PFC2)) * oyIN.exp(-0.5 * oyIN.dot(WKvO - yGTL, oyIN.dot(oyIN.linalg.inv(PFC2), WKvO - yGTL)))", "def hkRB(WKvO, JBMS, PFC2):\n zNig = len(WKvO)\n nUPH = oyIN.linalg.det(PFC2)\n iXK0 = 1.0 / (...
[ "0.7145369", "0.71007204", "0.6823705", "0.678697", "0.67580247", "0.6746532", "0.6736724", "0.67349374", "0.66801625", "0.6677901", "0.6670183", "0.6614419", "0.66120994", "0.66028666", "0.6601697", "0.6596082", "0.6594331", "0.65908736", "0.6565994", "0.655621", "0.6518668"...
0.63862073
27
Create a mock adequacy response.
def sKTv(pTEd, lSxO): return {'id': pTEd, 'closest_provider_by_distance': lSxO, 'closest_provider_by_time': lSxO, 'time_to_closest_provider': round(tuKI.uniform(10, 60)), 'distance_to_closest_provider': tuKI.uniform(5, 40)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C9X5() -> lzH7:\n return lzH7", "def cZio(*qIxc, **B2fa):\n if qIxc[0].startswith(PZxb):\n return HiyZ(data={}, status_code=500)\n else:\n return HiyZ(data={'result': 0, 'token': 'token123', 'type': 'e-payment'})", "def ZG9D(hGN5, jGRS):\n geh0 = FM6F()\n geh0.content = hGN5\n\...
[ "0.753407", "0.7136399", "0.70794445", "0.69816595", "0.6920961", "0.68144625", "0.6809627", "0.6777679", "0.67212605", "0.6708404", "0.66895235", "0.6662326", "0.6623576", "0.6561417", "0.6561417", "0.65057844", "0.6504444", "0.6496422", "0.64582115", "0.6419162", "0.6407606...
0.0
-1
Plot 16 images in `arr` with the indices in `indices`. `sensor_name` is one of 'rgb' and 'semseg', describing the type of sensor data.
def zQ6m(ezWE, _0VL, U4Ya, o0Fc=None): MKlR, yzQ0, Qi3c = ezWE.shape[1:] W84I = oyIN.empty(shape=(4 * MKlR, 4 * yzQ0, Qi3c), dtype=ezWE.dtype) for Mkmy in range(4): for Z9rn in range(4): W84I[Mkmy * MKlR:(Mkmy + 1) * MKlR, Z9rn * yzQ0:(Z9rn + 1) * yzQ0] = ezWE[_0VL[Z9rn + 4 * Mkmy]] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p1dx(_0VL, nPrm):\n for YRbF in _0VL:\n aDNp = oyIN.reshape(nPrm[YRbF], [150, 150])\n VXjJ = D0kE.toimage(aDNp)\n VXjJ.show()", "def Q9SP(S3r4):\n import matplotlib.pyplot as QrM1\n LZpg = QrM1.figure(figsize=(12, 8))\n for or8S, slice in enumerate(S3r4):\n QrM1.imshow...
[ "0.6129758", "0.564277", "0.561777", "0.5602068", "0.55821615", "0.55302685", "0.55214405", "0.5499983", "0.5424847", "0.54170215", "0.5401246", "0.5324579", "0.53030723", "0.5299656", "0.52828777", "0.52658445", "0.5265169", "0.52500576", "0.52478975", "0.5245947", "0.523768...
0.85110015
0
Return the latest state by comparing the cursor value in the latest record with the stream's most recent state object and returning an updated state object.
def uf1E(YKHO, WdDz: MutableMapping[str, Any], q5y7: Mapping[str, Any]) -> GySg[str, ImMB]: hsD_ = q5y7[YKHO.cursor_field] if WdDz.get(YKHO.cursor_field): return {YKHO.cursor_field: max(hsD_, WdDz[YKHO.cursor_field])} return {YKHO.cursor_field: hsD_}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uf1E(YKHO, WdDz: MutableMapping[str, Any], q5y7: Mapping[str, Any]):\n ft8x = cXCO = q5y7.get(YKHO.cursor_field)\n hWRL = q5y7['repository']\n if WdDz.get(hWRL, {}).get(YKHO.cursor_field):\n ft8x = max(cXCO, WdDz[hWRL][YKHO.cursor_field])\n WdDz[hWRL] = {YKHO.cursor_field: ft8x}\n return ...
[ "0.82190305", "0.8117142", "0.7977478", "0.77660966", "0.7517646", "0.7387719", "0.7325696", "0.60751593", "0.58867663", "0.5884459", "0.58572364", "0.5796956", "0.5795927", "0.57443255", "0.5742024", "0.56697494", "0.5669744", "0.5637623", "0.56322604", "0.5619034", "0.55265...
0.7728931
4
creates a boolean mask from a list of indices
def mxgj(zNig, ynmG=None): if ynmG is None: ynmG = list(range(zNig)) ZHfW = [] for YRbF in range(zNig): if YRbF in ynmG: ZHfW += [True] else: ZHfW += [False] return oyIN.array(ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eYwl(oMB_, uBsB=None, AjQ2=True):\n if uBsB is None:\n uBsB = oMB_.max()\n ZHfW = oyIN.zeros(uBsB, dtype=oyIN.bool)\n if not AjQ2:\n ZHfW.__setitem__(tuple(oMB_.T), True)\n else:\n ZHfW[oMB_] = True\n return ZHfW", "def ZHfW(YKHO, xDNe):\n aNSd = []\n for rdlD in xDN...
[ "0.77927834", "0.70939964", "0.69548815", "0.6928251", "0.68464327", "0.680332", "0.6690165", "0.6608181", "0.645226", "0.6384606", "0.6362881", "0.63325936", "0.63231426", "0.6262342", "0.6210943", "0.61659944", "0.6125544", "0.61185163", "0.6118204", "0.61181307", "0.610235...
0.76816446
1
Return the absolute path of the directory containing the provided ClearSilver templates.
def kTZQ(YKHO): from pkg_resources import resource_filename return [resource_filename(__name__, 'templates')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXnC(YKHO) -> GkAb:\n return GkAb(xAKo).parent / 'templates'", "def eZd9(YKHO):\n return YKHO._build_path('templates')", "def zi6X():\n for tk5Y, AQSv, RRlC in Hy7s.walk('.'):\n if 'templates' in tk5Y:\n return tk5Y", "def uddY():\n VZuY = Hy7s.path.dirname(Hy7s.path.realpat...
[ "0.7393902", "0.7257624", "0.7166557", "0.7100933", "0.70638186", "0.6958735", "0.6917957", "0.6883516", "0.68643683", "0.6840666", "0.6821589", "0.6804847", "0.679803", "0.67890334", "0.6762954", "0.6736914", "0.67230827", "0.67042536", "0.6650122", "0.664861", "0.65702796",...
0.5837639
63
Make sure created_at type is Datetime
def b3rh(YKHO): YKHO.assertEqual(type(YKHO.base.created_at), qcWV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):\n YKHO.assertIsInstance(YKHO.obj.created_at, qcWV)", "def XS0p(YKHO):...
[ "0.7885161", "0.7885161", "0.7885161", "0.7885161", "0.7885161", "0.7885161", "0.7885161", "0.7885161", "0.7818875", "0.7818875", "0.7818875", "0.7709411", "0.76632494", "0.7517362", "0.7492551", "0.7415919", "0.71934694", "0.71710014", "0.7107806", "0.7080728", "0.6938702", ...
0.7968306
0
Make sure that save update the updated_at
def t3TG(YKHO): iNEN = YKHO.base.updated_at YKHO.base.save() YKHO.assertNotEqual(iNEN, YKHO.base.updated_at)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n YKHO.updated_at = qcWV.now()", "def xkzz(YKHO, *qIxc, **B2fa):\n rwPe = B2fa.pop('update_at', False)\n super().save(*qIxc, **B2fa)\n if rwPe:\n YKHO.update_at()", "def xkzz(YKHO, *qIxc, **B2fa):\n rwPe = B2fa.pop('update_at', False)\n super().save(*qIxc, **B2fa)\n ...
[ "0.8377274", "0.8328353", "0.8328353", "0.7775965", "0.7762829", "0.77583575", "0.7749509", "0.7741255", "0.75708133", "0.7565456", "0.7540694", "0.7504676", "0.74860644", "0.74154824", "0.74040544", "0.7318211", "0.7253922", "0.7247769", "0.7247445", "0.72456545", "0.7243434...
0.78405964
3