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
Get station latitude in 4326 srid
def MTfP(zW8g): try: gnAD = njvh.objects.get(id=zW8g) except: return None EBgd = YsBu(init='epsg:2100') HpuQ = YsBu(init='epsg:4326') if gnAD.abscissa == gnAD.ordinate == None: return None _UuI, fopC = SZFh(EBgd, HpuQ, gnAD.abscissa, gnAD.ordinate) return _UuI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MtLk(YKHO):\n return YKHO.latf", "def ZeKI(YKHO):\n return YKHO.station_geo_point", "def UYOP() -> float:\n pass", "def TujQ(YKHO):\n return YKHO.STEM_lat", "def QnmL(JRYC):\n Csk6 = QTwm(JRYC['GPSInfo']['GPSLatitude'][0])\n r8hN = QTwm(JRYC['GPSInfo']['GPSLatitude'][1])\n KCHu = Q...
[ "0.68667054", "0.67726105", "0.6683032", "0.66186935", "0.65823007", "0.64307636", "0.64218795", "0.6387733", "0.63615066", "0.63517326", "0.6324605", "0.62463766", "0.6213074", "0.6182393", "0.6161299", "0.61417675", "0.6130001", "0.6129861", "0.6124257", "0.61210245", "0.61...
0.7296536
0
Calculate squared distance between point c and trajectory of incoming ray given by (theta,phi,p).
def P7GU(Z9rn, q7In, rVnq, XP5J): Jw7X = Z9rn - XP5J P6bq = XTiz.array([epAf.sin(q7In) * epAf.cos(rVnq), epAf.sin(q7In) * epAf.sin(rVnq), epAf.cos(q7In)]) Mkmy = XTiz.dot(Jw7X, P6bq) Csk6 = Jw7X - Mkmy * P6bq return XTiz.dot(Csk6, Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VZkA(XP5J, q7In):\n return pow(Ei_R(XP5J, q7In), 2.0)", "def Ayfi(YKHO, XP5J):\n UET8 = yTNq(YKHO)\n return abs(float(UET8.a * XP5J.x + UET8.b * XP5J.y + UET8.c)) / epAf.sqrt(float(UET8.a * UET8.a + UET8.b * UET8.b))", "def IzHd(g0Hx, dlau, XP5J):\n return oyIN.sqrt((XP5J[:, 0] - g0Hx) ** 2 + (...
[ "0.65942186", "0.6403395", "0.63213164", "0.62046295", "0.60599697", "0.60503274", "0.60108906", "0.60032946", "0.5923966", "0.589722", "0.5886214", "0.58721656", "0.58545357", "0.5836365", "0.58206886", "0.58106005", "0.580461", "0.58034146", "0.5787755", "0.57871294", "0.57...
0.5860979
12
Find the minimum distance squared along a perimeter of radius d.
def FiGu(Csk6): Z9rn = XTiz.array([YKHO.d_x * Csk6, YKHO.d_y * Csk6, 0], XTiz.float64) CL9V = P7GU(Z9rn, q7In, rVnq, XP5J) gtI8 = [Z9rn] for CG54 in Ni9Y(-Csk6, Csk6): gtI8.append(XTiz.array([YKHO.d_x * CG54, YKHO.d_y * Csk6, 0], XTiz.float64)) gtI8.append(XTiz.array([YKHO.d_x * Csk6, YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BahS(WKvO, LVAh, tcaS):\n LLEA = 100\n o4D3 = int(max(0, oyIN.floor(WKvO) - LLEA))\n ajwV = int(min(tcaS.shape[0], oyIN.ceil(WKvO) + LLEA))\n si3g = int(max(0, oyIN.floor(LVAh) - LLEA))\n skBL = int(min(tcaS.shape[1], oyIN.ceil(LVAh) + LLEA))\n uzZT = LLEA\n for Y7fn in range(o4D3, ajwV):\...
[ "0.62555015", "0.62335587", "0.6229481", "0.6224972", "0.6195278", "0.6183672", "0.61354417", "0.6105185", "0.6036705", "0.60103124", "0.600378", "0.59949476", "0.59931034", "0.5983777", "0.5980004", "0.5972253", "0.5941248", "0.5914644", "0.59119177", "0.5902867", "0.5897833...
0.7548084
0
The class initialise function that sets up the view and handles test conditions if requested
def FIMM(YKHO, STnF=False): global CAMPAIGN_DATA_DIRECTORY global CAMPAIGN_LOG_SELECTED, CAMPAIGN_ASSETS_SELECTED, CAMPAIGN_NOTES_SELECTED TURQ = '/Data/Campaigns/' try: ergb = 'Campaign Management' YKHO.vwInterface = GD_A.load_view(ergb) YKHO.vwInterface.name = ergb YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO):\n if YKHO.__class__.view:\n YKHO.view.handler = YKHO\n YKHO.view.request = YKHO.request\n return\n with qVy8.imports():\n from views.index import View\n YKHO.__class__.view = View(company=L0CQ, request=YKHO.request, handler=YKHO)", "def as4H(YKHO, RCd1):\n ...
[ "0.74115837", "0.70673823", "0.70660836", "0.70405036", "0.69151175", "0.67898905", "0.67605364", "0.6710322", "0.66529554", "0.66389316", "0.6602327", "0.6602327", "0.6602327", "0.6602327", "0.6602327", "0.65898997", "0.657313", "0.6549585", "0.6527125", "0.6523179", "0.6512...
0.0
-1
Given an Iterable of allowed appcli commands, generates the dict of disallowed commands.
def MvXz(zAXQ: Iterable[AppcliCommand], rhwM: str) -> dict: mubH = dict(oRi_.fromkeys(list(xJ3l), rhwM)) for oUZx in zAXQ: mubH.pop(oUZx, None) return mubH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWuf(YKHO, Z9rn: Cmdr) -> list[str]:\n Csk6 = Z9rn.commandsDict if Z9rn else {}\n IMwm = []\n for Asoz in sorted(Csk6):\n if Asoz.startswith(':'):\n IMwm.append(Asoz)\n Kna1 = ['restart-leo', 'demangle-recent-files', 'clean-main-spell-dict', 'clean-persistence', 'clean-recent-file...
[ "0.6461363", "0.62680185", "0.62663066", "0.6235234", "0.61680615", "0.61663145", "0.60673153", "0.5927055", "0.59148586", "0.5756204", "0.5703102", "0.5657071", "0.5593493", "0.55814964", "0.55444354", "0.5538865", "0.5535677", "0.5535155", "0.5525847", "0.55208164", "0.5503...
0.78788966
0
Iterate over the 2D neighbors of the provided coordinate. Use the `include_diagonal` flag to include diagonal neighbors.
def TCCF(yKcO: COORD, hbfj: bool=False) -> ftIh.Generator[HYT8, None, None]: for BZN_ in flL6: if not hbfj and BZN_ in RaHX: continue yield BZN_.shift(yKcO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(BHsk):\n WKvO, LVAh = BHsk\n ta05 = [(0, 1), (1, 0), (0, -1), (-1, 0)]\n return [(WKvO + Jw7X, LVAh + eUWA) for Jw7X, eUWA in ta05]", "def TCCF(WKvO, LVAh):\n for YRbF, r845 in GWza:\n AAbN = (WKvO + YRbF, LVAh + r845)\n if AAbN in Ziit:\n yield AAbN\n if (WKvO, L...
[ "0.7333516", "0.71358836", "0.70990616", "0.6945847", "0.6945019", "0.6941777", "0.6893324", "0.6882739", "0.68657124", "0.6781913", "0.66433567", "0.6629641", "0.65984714", "0.65846175", "0.6577257", "0.65730757", "0.65716803", "0.6533492", "0.65165126", "0.6482727", "0.6462...
0.663623
11
Build foreign keys for each resource. A resource's `foreign_key_rules` (if present) determines which other resources will
def Bn9L(JKCy: dict[str, dict], X4io: bool=True) -> dict[str, list[dict]]: J_Es = FxUh(JKCy) sjXb = {} for mWFP in J_Es: qMKQ = [] vl2M = [] for V_D6 in J_Es[mWFP]: pmON = Cks5(J_Es, mWFP, V_D6) qMKQ.append(pmON[0]) vl2M.extend(pmON[1:]) sj...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FxUh(JKCy: dict[str, dict]) -> dict[str, dict[tuple[str, ...], dict]]:\n c_NS = []\n for mWFP, e5kH in JKCy.items():\n if 'foreign_key_rules' in e5kH['schema']:\n eD8c = e5kH['schema']['foreign_key_rules']\n c_NS.extend(Ju6y(eD8c, name=mWFP, key=e5kH['schema']['primary_key'])...
[ "0.6971975", "0.69031733", "0.61183846", "0.60120267", "0.59602374", "0.58936334", "0.58231485", "0.5754931", "0.57133555", "0.5596897", "0.5595418", "0.5565085", "0.5545277", "0.5534076", "0.5496023", "0.54953676", "0.5440762", "0.5436082", "0.5416476", "0.540978", "0.540023...
0.6790547
2
Presents all audit logs in page.
def w3T8(QePW): XP2R = s58T(m7wK.objects.all()) return _1tc(QePW, 'primerdb/audit_trail.html', {'trails': XP2R})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WRxb():\n return TvZl('logs.html')", "def wYmD(YKHO):\n nfqd = vjcZ.get_log_info_by_id(YKHO.id)\n or8S = 0\n for YRbF in range(int(len(nfqd) / 2)):\n YKHO.public_chat_ui.textBrowser.append(f'({nfqd[or8S + 1]}) - {nfqd[or8S]}')\n or8S += 2", "def x3rf():\n if QePW.args.get('file...
[ "0.66285163", "0.6325884", "0.6296882", "0.62798613", "0.6239076", "0.6238988", "0.6174731", "0.61291224", "0.6057547", "0.59848607", "0.5933098", "0.5918407", "0.58972186", "0.58856124", "0.5876625", "0.5857847", "0.5845877", "0.5843093", "0.5826041", "0.57597476", "0.574798...
0.6581538
1
Returns server side config that the client needs
def NMoC(YKHO): qIxc = YKHO.get_args.parse_args() nPrm = {} def nEYa(bD7m): hGN5 = Oa1e.redis.get(bD7m) if hGN5: return qQXR.loads(hGN5) with Oa1e.redis.lock('lock' + bD7m): hGN5 = Oa1e.redis.get(bD7m) if hGN5: return qQXR.loads(hG...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return YKHO.get('/api/config')", "def tgzD(YKHO):\n QoTp = YKHO.compile_url([Yx9I])\n Aofo = YKHO.request(QoTp)\n return Aofo", "def Yyrl(YKHO):\n return YKHO._client_config", "def PEDL(YKHO):\n UzPC = MAqI(YKHO.host_name(), None)\n j8eK = 'http://{0}:8001/admin/v1/serv...
[ "0.77206004", "0.7674695", "0.7606599", "0.75844145", "0.747446", "0.74190646", "0.7415222", "0.74125934", "0.7347948", "0.73239875", "0.7296198", "0.72733015", "0.727053", "0.72594815", "0.72531796", "0.72531796", "0.72531796", "0.72531796", "0.72531796", "0.72531796", "0.72...
0.0
-1
Returns the number of rows, given a query.
def k0BV(YKHO, tyNF, **B2fa): UHFx = YKHO.read_table(table=tyNF, count=True, **B2fa) return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DdgG(YKHO, xDcj):\n eHpk = YKHO.get_export_engine()\n dixj = eHpk.execute(YKHO.SELECT_COUNT_CMD.format(query=xDcj))\n AbqG = dixj.fetchall()[0][0]\n dixj.close()\n bo34.info('Query row count: {count}.'.format(count=AbqG))\n return AbqG", "def k0BV(idot: str, w2B8: mysql.connection):\n HC...
[ "0.8517858", "0.8069858", "0.79242957", "0.7872622", "0.7733295", "0.7704542", "0.76406586", "0.7610921", "0.75849044", "0.75681204", "0.7423087", "0.7376476", "0.73658764", "0.7340358", "0.73391813", "0.73349434", "0.73098135", "0.7292188", "0.7269751", "0.72596526", "0.7259...
0.661283
42
Parses a single tf.train.Example.
def UU8X(xKOQ: bytes, wFVV: dict) -> dict: return ZylS.io.parse_single_example(xKOQ, wFVV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wvEv(AIu6):\n jrdP = {'inputs': ZylS.VarLenFeature(ZylS.int64), 'type_id': ZylS.FixedLenFeature([1], ZylS.int64)}\n if DWGe:\n jrdP['pos_seq'] = ZylS.VarLenFeature(ZylS.int64)\n PU1l = ZylS.parse_single_example(serialized=AIu6, features=jrdP)\n g4y1 = PU1l['inputs']\n Ufvr = ZylS.shape(g4...
[ "0.7726462", "0.7665586", "0.7589035", "0.7563089", "0.7517487", "0.7490718", "0.7453671", "0.7431656", "0.738867", "0.73240066", "0.73218", "0.7267809", "0.7243974", "0.7175144", "0.71639854", "0.7161612", "0.71230805", "0.7120117", "0.7041211", "0.70233315", "0.69839483", ...
0.69054663
23
Gaussian RBF kernel for use in an MMD
def vW3o(WKvO, LVAh): Yjog = WKvO.size(0) nnyg = LVAh.size(0) tpio = WKvO.size(1) WKvO = WKvO.unsqueeze(1) LVAh = LVAh.unsqueeze(0) TwdE = WKvO.expand(Yjog, nnyg, tpio) klUU = LVAh.expand(Yjog, nnyg, tpio) CESK = (TwdE - klUU).pow(2).mean(2) / float(tpio) return ht2j.exp(-CESK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCes(WTkW=0.5):\n KMvS = -1 / (2 * WTkW ** 2)\n AQRV = lambda EcVT, LVAh: oyIN.exp(KMvS * oyIN.square(EcVT[:, oyIN.newaxis] - LVAh).sum(axis=2))\n return AQRV", "def RVOP(o4D3, ajwV, WTkW):\n assert o4D3.shape == ajwV.shape\n return oyIN.exp(-oyIN.linalg.norm(o4D3 - ajwV) ** 2.0 / 2.0 / WTkW *...
[ "0.75282735", "0.7495535", "0.7086288", "0.6934459", "0.68653595", "0.6835219", "0.67866087", "0.67796904", "0.67763096", "0.67631394", "0.6736824", "0.66476715", "0.66221577", "0.6503715", "0.64837", "0.6477913", "0.64415956", "0.64221495", "0.64221495", "0.64153534", "0.640...
0.0
-1
Lists the available REST endpoints for the application.
def d6pt(): iAwL = [] for eD8c in P4t4.url_map.iter_rules(): KAbn = {} KAbn['rule'] = eD8c.rule KAbn['methods'] = ','.join(list(eD8c.methods)) iAwL.append(KAbn) return pz3A(code=200, endPoints=iAwL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(YKHO):\n return YKHO._list('/endpoints', 'endpoints')", "def wnQ_(YKHO):\n return YKHO._get('/endpoints')", "def bW9b():\n return pz3A(xASv.list_endpoints())", "def wnQ_(YKHO):\n return YKHO._request_json('/')", "def bW9b(YKHO, Lp5E=True):\n YKHO.admin_clients('keystone').endpoints....
[ "0.81237453", "0.8095373", "0.8089513", "0.7992632", "0.763518", "0.75484586", "0.7383815", "0.7181459", "0.71464086", "0.71178967", "0.7094921", "0.70754147", "0.6936191", "0.6879891", "0.6876941", "0.680691", "0.67932665", "0.6777221", "0.6773979", "0.6710641", "0.6705653",...
0.0
-1
Return the path of the Apple cookies plist file for the specified user, or for the owner of the current process.
def kW4M(CBIr=None): return Hy7s.path.join(hxxT(CBIr), 'Library', 'Cookies', 'Cookies.plist')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCXE(CBIr=None):\n return Hy7s.path.join(hxxT(CBIr), 'Library', 'Cookies', 'Cookies.binarycookies')", "def JyUm(CBIr=None):\n return Hy7s.path.join(hxxT(CBIr), 'Library', 'Application Support', 'Google', 'Chrome', 'Default', 'Cookies')", "def uLB1():\n return Hy7s.path.join(TGj4._get_home_dir(), E...
[ "0.74694246", "0.6748976", "0.6682422", "0.6637441", "0.6551149", "0.6369464", "0.63655615", "0.6300812", "0.62838525", "0.62535834", "0.6120403", "0.6095635", "0.6046087", "0.6013663", "0.6013663", "0.5981677", "0.5975474", "0.59471035", "0.5916346", "0.58642256", "0.5848236...
0.84051216
0
Return the path of the Google Chrome cookies database for the specified user, or for the owner of the current process.
def JyUm(CBIr=None): return Hy7s.path.join(hxxT(CBIr), 'Library', 'Application Support', 'Google', 'Chrome', 'Default', 'Cookies')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kW4M(CBIr=None):\n return Hy7s.path.join(hxxT(CBIr), 'Library', 'Cookies', 'Cookies.plist')", "def dCXE(CBIr=None):\n return Hy7s.path.join(hxxT(CBIr), 'Library', 'Cookies', 'Cookies.binarycookies')", "def xsz4(YKHO):\n return YKHO.chrome_os.dbpath", "def CbKW():\n return XIuV().getStore().ge...
[ "0.69112474", "0.6873814", "0.6618796", "0.63665307", "0.6261201", "0.6233717", "0.62215024", "0.6027479", "0.598458", "0.5981998", "0.59482014", "0.5896715", "0.58325505", "0.5780391", "0.56739885", "0.56653535", "0.56153387", "0.5594019", "0.5580512", "0.5551924", "0.552257...
0.83138555
0
do a bar plot of number of files per year
def etDU(jQ3Z, hTWD): TVTK = int(hTWD.replace('yr', '')) - 1 QrM1.figure() aNZO = QrM1.axes() jQ3Z.plot.bar(ax=aNZO, width=TVTK, stacked=True, figsize=[10, 10]) aNZO.legend(bbox_to_anchor=(1.8, 1.0)) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLgL():\n S41A = AZt3()\n S41A.sort(key=lambda aoD7: int(aoD7[0]))\n T5sZ = S41A[len(S41A) - 32:len(S41A) - 1]\n print(T5sZ)\n INbZ = [lO87[0] for lO87 in T5sZ]\n wEf2 = [lO87[1] for lO87 in T5sZ]\n QrM1.bar(INbZ, wEf2)\n QrM1.show()", "def L7H0(nPrm):\n B1S0 = nPrm.groupby('year')...
[ "0.7803975", "0.7319706", "0.7078345", "0.6880108", "0.67910534", "0.6699836", "0.64837545", "0.6464414", "0.64239746", "0.64086956", "0.63010657", "0.6174638", "0.60966784", "0.6088851", "0.6066825", "0.6052381", "0.6024405", "0.60106254", "0.59889317", "0.5974549", "0.59666...
0.70906776
2
Gets the ResNet model.
def YrZb(JACg='ResNet18', TVTK=1.0, J9bl=None, GhuM=(256, 256, 3), nZt5=2): Zxma = C3ST.__dict__[JACg](width=TVTK, head_dims=J9bl, input_shape=GhuM, num_class=nZt5) Zxma.summary() return Zxma
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YrZb(YKHO):\n with YKHO._rl:\n return YKHO._e.get_model()", "def YrZb(YKHO):\n FjhY = DO5i(include_top=False, weights='imagenet', input_shape=YKHO.input_shape, pooling='avg')\n q1WI = Zlsf(lambda vhpA: nMvt.l2_normalize(vhpA, axis=1))\n Xdzc = q1WI(FjhY.output)\n return YKHO._get_actual...
[ "0.73766035", "0.7252673", "0.6998176", "0.6970965", "0.69662887", "0.695141", "0.6934087", "0.69273955", "0.69273955", "0.69211185", "0.6896043", "0.68891925", "0.6867915", "0.6861443", "0.6861443", "0.6861443", "0.6861443", "0.6861443", "0.6861443", "0.6765611", "0.6765611"...
0.6438673
72
Gets the file path for saving.
def F28p(YKHO): if YKHO.file_path: YKHO.file_path = Hy7s.path.join(YKHO.ckpt_prefix, YKHO.file_path) else: YKHO.file_path = Hy7s.path.join(YKHO.ckpt_prefix, '{}_seed{}'.format(YKHO.db_name, YKHO.seed), YKHO.model.name, '{}_{}_{}_wd{:g}_{}_epoch{}_nb{}_bs{}'.format(YKHO.__class__.__name__, YKHO.o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXgy(YKHO):\n return YKHO._save_path", "def gXgy(YKHO):\n raise NotImplementedError", "def IjiJ(Emd4):\n return Hy7s.path.join(NSF0.save_config_path(Emd4._get_xdg_subdir()), Emd4._get_config_file())", "def TCuf(YKHO, TCuf=None):\n if TCuf is None:\n return YKHO.savePath\n else:\n ...
[ "0.8620927", "0.82731056", "0.79409117", "0.7844107", "0.7629711", "0.7592521", "0.7537538", "0.75207865", "0.75185025", "0.75128776", "0.75128776", "0.7509791", "0.7505721", "0.75036395", "0.741219", "0.7408405", "0.7403159", "0.73739207", "0.7357028", "0.73510396", "0.73159...
0.70705074
46
Return the tags for a particular activity.
def qzhj(QePW, y9rf): kyfi = Iofl(nmsT, urlname=y9rf) dJ1p = [(TZ9E.text, TZ9E.count()) for TZ9E in kyfi.tags] SEDW = set((TZ9E[0] for TZ9E in dJ1p)) OyFo = [] for TZ9E in OhYN.objects.all().order_by('text'): if TZ9E.text in SEDW: continue OyFo.append((TZ9E.text, TZ9E.cou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHgS(YKHO):\n try:\n DpUl = YKHO.conn.cursor()\n Pe9W = ' SELECT * FROM activities, hash_tags where activities.activity_id = hash_tags.activity_id '\n DpUl.execute(Pe9W)\n usx6 = DpUl.fetchall()\n zGKt = []\n for rdlD in usx6:\n if any((ZfUD.get('activity...
[ "0.6766811", "0.6374771", "0.63451886", "0.62872964", "0.62858534", "0.626872", "0.6253403", "0.6207273", "0.6193972", "0.6140011", "0.6129237", "0.60923", "0.6071008", "0.60385567", "0.60274243", "0.60274243", "0.6027215", "0.6027215", "0.6012516", "0.5999157", "0.5986796", ...
0.67006767
1
Get path from this field to the related model.
def sGzU(YKHO, Ul2s=None): VKhi = YKHO.remote_field.model._meta RgWh = YKHO.model._meta return [Kty6(RgWh, VKhi, YKHO.foreign_related_fields, YKHO, False, True, Ul2s)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n return YKHO.__model['path']", "def XMbN(YKHO):\n if YKHO._to_path_present:\n return YKHO._to_path_value\n else:\n raise AttributeError(\"missing required field 'to_path'\")", "def XMbN(YKHO):\n return YKHO._obj.to_path()", "def pmON(YKHO):\n return YKHO._get_fie...
[ "0.7368213", "0.7066314", "0.70084757", "0.69918203", "0.6938789", "0.69226646", "0.68009573", "0.6775795", "0.6722227", "0.6697495", "0.66872776", "0.6607147", "0.6571468", "0.6571434", "0.6565679", "0.6540061", "0.65387183", "0.65387183", "0.65387183", "0.65387183", "0.6538...
0.6237019
69
Get path from the related model to this field's model.
def gxO_(YKHO, Ul2s): VKhi = YKHO.model._meta RgWh = YKHO.remote_field.model._meta D3oL = [Kty6(RgWh, VKhi, (RgWh.pk,), YKHO.remote_field, not YKHO.unique, False, Ul2s)] return D3oL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmON(YKHO):\n return YKHO.__model['path']", "def OyQC(YKHO):\n return YKHO.object_path", "def QTMT(YKHO, C3ST, pmON):\n UJeT = pmON.split('.')\n Jyyj = None\n try:\n Jyyj = C3ST._meta.get_field(UJeT[0])\n except Q9cx:\n pass\n else:\n if isinstance(Jyyj, FJUR):\n ...
[ "0.74239624", "0.6994684", "0.69398165", "0.687878", "0.68644303", "0.68376386", "0.6835416", "0.6774539", "0.6772454", "0.6707003", "0.66722673", "0.66003454", "0.6595499", "0.65697277", "0.65542847", "0.6443837", "0.64366484", "0.6418861", "0.64105225", "0.637536", "0.63665...
0.0
-1
Images should be a list of numpy arrays of the form (64, 64, 3). This function will turn it into a numpy batch 4tensor of the form (batch_size, 64, 64, 3) or (batch_size, 3, 64, 64) depending on the implementation of the derived class.
def u5z4(YKHO, Yw_3): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5z4(YKHO, Yw_3):\n Yw_3 = oyIN.array(Yw_3)\n return Yw_3", "def u5z4(YKHO, Yw_3):\n Yw_3 = oyIN.array(Yw_3)\n Yw_3 = Yw_3.transpose(0, 3, 1, 2).reshape(Yw_3.shape[0], 3, 64, 64)\n return Yw_3", "def HtrN(YKHO, CL5K):\n zNig = YKHO.get_image_size()\n if len(zNig) == 2 or zNig[2] == 1:\...
[ "0.8520514", "0.8213339", "0.75038046", "0.72209066", "0.7050375", "0.7013152", "0.69253576", "0.67740023", "0.6722507", "0.6683083", "0.6671016", "0.6663046", "0.6639485", "0.66165304", "0.6613277", "0.6603212", "0.6579662", "0.6579662", "0.65050894", "0.6502134", "0.6495318...
0.0
-1
Images should be a list of numpy arrays of the form (64, 64, 3). This function will turn it into a numpy batch 4tensor of the form (batch_size, 3, 64, 64).
def u5z4(YKHO, Yw_3): Yw_3 = oyIN.array(Yw_3) Yw_3 = Yw_3.transpose(0, 3, 1, 2).reshape(Yw_3.shape[0], 3, 64, 64) return Yw_3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5z4(YKHO, Yw_3):\n Yw_3 = oyIN.array(Yw_3)\n return Yw_3", "def HtrN(YKHO, CL5K):\n zNig = YKHO.get_image_size()\n if len(zNig) == 2 or zNig[2] == 1:\n yzQ0, MKlR, Z9rn = (zNig[0], zNig[1], 1)\n EcVT = oyIN.full((len(CL5K), yzQ0, MKlR), 0, dtype=oyIN.int8)\n elif len(zNig) == 3:...
[ "0.85804266", "0.7741945", "0.74931884", "0.71093464", "0.69636506", "0.6923946", "0.6907927", "0.6861094", "0.6835858", "0.6779008", "0.671121", "0.67025936", "0.6668253", "0.6642901", "0.66369206", "0.66052777", "0.6566259", "0.65212053", "0.6521016", "0.6498244", "0.649748...
0.83817065
1
Images should be a list of numpy arrays of the form (64, 64, 3). This function will turn it into a numpy batch 4tensor of the form (batch_size, 64, 64, 3).
def u5z4(YKHO, Yw_3): Yw_3 = oyIN.array(Yw_3) return Yw_3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u5z4(YKHO, Yw_3):\n Yw_3 = oyIN.array(Yw_3)\n Yw_3 = Yw_3.transpose(0, 3, 1, 2).reshape(Yw_3.shape[0], 3, 64, 64)\n return Yw_3", "def HtrN(YKHO, CL5K):\n zNig = YKHO.get_image_size()\n if len(zNig) == 2 or zNig[2] == 1:\n yzQ0, MKlR, Z9rn = (zNig[0], zNig[1], 1)\n EcVT = oyIN.fu...
[ "0.8327152", "0.7713073", "0.7452443", "0.715873", "0.7037456", "0.6890694", "0.68732965", "0.68632585", "0.6790884", "0.6785785", "0.67029244", "0.6691027", "0.6688805", "0.6672154", "0.6650701", "0.6607358", "0.6566908", "0.65534246", "0.6535465", "0.652873", "0.65284926", ...
0.8566796
0
Ver se o ultimo sorteio da megasena esta no banco
def bFxS(YKHO): if YKHO.__count_draws == 0: return True uxMf = YKHO.__last_draw.weekday() PtEJ = YKHO.__current_time - YKHO.__last_draw if PtEJ < fCoM(days=3): return False if PtEJ < fCoM(days=4): if uxMf == 5: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lCt0(YKHO):\n YKHO.case_test_bloquant.mouvement_sortant()\n assert YKHO.case_test_bloquant.valeur == ' '", "def zv6W():\n print('Fin du programme, merci de votre visite')\n return 1", "def RTxC(YKHO) -> bool:\n pass", "def QoE8(YKHO):\n return YKHO._flag_gera_numero_sorte", "def j20D(...
[ "0.65958667", "0.6037478", "0.60069597", "0.594153", "0.58795834", "0.57451123", "0.5721125", "0.56603533", "0.5627558", "0.5627339", "0.55856675", "0.55457306", "0.55445486", "0.5501762", "0.5491617", "0.54736024", "0.54736024", "0.54736024", "0.54736024", "0.54736024", "0.5...
0.0
-1
Constructor for ApplicationWindow. Initializes the QMainWindow base class, loads the app's ConfigurationModel and then invokes init_ui to set up our application's widgets.
def FIMM(YKHO, *qIxc, **B2fa): super().__init__(*qIxc, **B2fa) YKHO.n_graphs = 3 YKHO.model = RVtx() YKHO.model.load() YKHO.init_ui()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n CsJA.QMainWindow.__init__(YKHO, *qIxc)\n YKHO.obj_appconfig = YL7J()\n YKHO.setGeometry(YKHO.obj_appconfig._app_xpos, YKHO.obj_appconfig._app_ypos, YKHO.obj_appconfig._app_width, YKHO.obj_appconfig._app_heigth)\n YKHO.setWindowTitle(YKHO.obj_appconfig._APPLICATION)\n YKHO.ob...
[ "0.75075155", "0.7271108", "0.7157358", "0.6967128", "0.6957723", "0.68437266", "0.6699641", "0.6682492", "0.66784304", "0.6656324", "0.6638918", "0.66375756", "0.6627276", "0.6599483", "0.6576707", "0.65679675", "0.65671206", "0.65638536", "0.6561514", "0.6560426", "0.654368...
0.68899554
5
Perform a check on the DataFrame to detect wrong dtypes or keys. Makes sure that there are no conflicts in key names. If dtypes are found that cannot be dealt with, raises a TypeError with a message indicating which ones caused trouble. Raises ValueError If there already is a column named 'X'. TypeError If a wrong dtyp...
def tWtv(YKHO, jQ3Z): if 'X' in jQ3Z: raise ValueError("DataFrame contains a column named 'X', which clashes with the name chosen for cardinal features; consider renaming that column.") C0oI = [] for fvDH, yDqo in zip(jQ3Z, jQ3Z.dtypes): if isinstance(yDqo, YKHO.pd.api.types.CategoricalDtype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CnhZ(YKHO, jBXM, Tv4Q):\n DHuq = []\n m1c7 = Tv4Q.get('dtype')\n for H5ew, BWXx in m1c7.iteritems():\n if BWXx is jBXM:\n DHuq.append(H5ew)\n Sd0C = Tv4Q['filepath_or_buffer']\n VWe_ = Tv4Q['sep']\n HN6s = Tv4Q.get('nrows')\n jQ3Z = YKHO.parser(Sd0C, sep=VWe_, usecols=DHu...
[ "0.68539053", "0.6701901", "0.6682175", "0.6676457", "0.666189", "0.6635319", "0.66019493", "0.6564779", "0.65551555", "0.65533215", "0.65287054", "0.6518313", "0.6413814", "0.6355531", "0.63268274", "0.63264126", "0.6315757", "0.6293191", "0.62655276", "0.6256439", "0.624208...
0.7682059
0
Return the last part of the MQTT topic name.
def BuFF(rlUa, nPrm, rS2x=None): return dict(name=rlUa.split('/')[-1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_oi(YKHO, zy__):\n return '/'.join(zy__.split('/')[4:])", "def O7Jy(YKHO) -> str:\n return qe4Y.get(YKHO, 'topic_name')", "def dXEO(rlUa, EBg6, ZI14):\n if not rlUa.endswith('/%s' % ZI14):\n raise ValueError(\"This topic does not end with '/%s'\" % ZI14)\n ZtYG = len('%s/%s/' % (EBg6, I...
[ "0.7657081", "0.7337755", "0.7057294", "0.6966528", "0.69445205", "0.685607", "0.6804058", "0.67737377", "0.6770622", "0.67489797", "0.67489797", "0.67489797", "0.67489797", "0.67358613", "0.663864", "0.663864", "0.6626786", "0.6513252", "0.6507085", "0.6507085", "0.6495974",...
0.66579163
14
check whether the tree valuates to constant
def hlYT(YKHO, J_Es): if isinstance(J_Es, int): return True elif aKfa(J_Es, 'hliteral'): return True elif aKfa(J_Es, 'hbinop'): return YKHO.__check_const(J_Es.children[1]) and YKHO.__check_const(J_Es.children[2]) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wVw4(Q6kx):\n if Q6kx.proto is None:\n return False\n Ac9L = True\n for _AKB in Q6kx.parents:\n if _AKB.proto is None or _AKB.proto.op_type != 'Constant':\n Ac9L = False\n break\n return Ac9L", "def dkrR(QyVM):\n ZWCE = [Q6kx.name for Q6kx in QyVM]\n for ...
[ "0.7109696", "0.68751603", "0.6847258", "0.6774608", "0.6670387", "0.66627914", "0.6652267", "0.65738595", "0.65243536", "0.63175285", "0.6310673", "0.6287947", "0.62756526", "0.62754786", "0.61579716", "0.6144867", "0.61021656", "0.6060643", "0.60571", "0.60571", "0.60205", ...
0.74489796
0
Converts voxel `coords` in cartesian space to `affine` space
def J0hZ(rnv5, jNOo): jNOo = CjIS(jNOo) O5OW = oyIN.dot(rnv5, jNOo)[:3].T return O5OW.squeeze().tolist()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q2Ti(jNOo, rnv5):\n assert jNOo is not None and len(jNOo) == 3, 'Must provide a list ofcoordinates: [x, y, z]'\n E3D9 = rnv5[:3, :3]\n ftIh = rnv5[:3, 3]\n return E3D9.dot(jNOo) + ftIh", "def epFc(rnv5, jNOo):\n jNOo = oyIN.array(jNOo)\n if jNOo.shape[0] <= 0 or jNOo.shape[1] < 2:\n ...
[ "0.7046686", "0.6972658", "0.6928951", "0.6909896", "0.67518187", "0.6707242", "0.66580325", "0.6632261", "0.6616894", "0.65907514", "0.6579071", "0.6552418", "0.65251213", "0.6513223", "0.640044", "0.63810986", "0.6308702", "0.63011587", "0.6294941", "0.6290006", "0.62635225...
0.65971446
9
Returns label of `coordinate` from corresponding `atlastype` If `atlastype` is probabilistic, `prob_thresh` determines (in percentage units) the threshold to apply before getting label of `coordinate`
def aaW7(rwbO, ZMlM, qEWm=5): gxm_ = aO1g(rwbO).image nPrm = gxm_.get_data() rnv5 = gxm_.affine WA8y = MIQo(rnv5, ZMlM) if rwbO.lower() in ['juelich', 'harvard_oxford']: BFeB = nPrm[WA8y[0], WA8y[1], WA8y[2]] BFeB[BFeB < qEWm] = 0 or8S = oyIN.where(BFeB)[0] if len(or8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iyKD(Tb66):\n assert Tb66.ndim == 3\n return oyIN.argmax(Tb66, axis=2)", "def ajJX(BHsk, rwbO='all', qEWm=5):\n pYiQ = []\n for VJtU in Aqs6(rwbO):\n hTWD = aaW7(VJtU, BHsk, qEWm)\n pYiQ.append([VJtU, hTWD])\n return pYiQ", "def vbMM(TyAe, sB1G, knl1):\n Irdu = knl1\n if ...
[ "0.566298", "0.5616125", "0.5608639", "0.5596654", "0.5571348", "0.5482266", "0.5452909", "0.54416776", "0.54091954", "0.5321236", "0.53088135", "0.52782124", "0.5252546", "0.52400804", "0.5213406", "0.52121943", "0.51891565", "0.51833946", "0.51581615", "0.5132636", "0.51130...
0.7080695
0
Get GeneTreeGraph of this CodingBlockGraph
def lq_z(YKHO): if YKHO._GENETREE: return YKHO._GENETREE else: return YKHO.set_genetree()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFoJ(YKHO):\n YKHO._GENETREE = ya19.CodingBlockGraph2GeneTreeGraph(YKHO)\n return YKHO._GENETREE", "def pNZh(YKHO):\n if YKHO._graph is None:\n YKHO._gen_graph()\n return YKHO._graph", "def eM0w(YKHO):\n return YKHO.graph", "def eM0w(YKHO):\n return YKHO.graph", "def pNZh(YKHO)...
[ "0.76171714", "0.64839935", "0.64320296", "0.64320296", "0.6431079", "0.6379478", "0.6343163", "0.6343163", "0.6343163", "0.6343163", "0.6343163", "0.6343163", "0.624419", "0.6234698", "0.6222761", "0.61748433", "0.6121906", "0.6110937", "0.6103314", "0.60781544", "0.60707414...
0.0
-1
Get GeneTreeGraph of this CodingBlockGraph
def SGWU(YKHO): if YKHO._GENETREE: return YKHO._GENETREE else: return YKHO.set_genetree()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sFoJ(YKHO):\n YKHO._GENETREE = ya19.CodingBlockGraph2GeneTreeGraph(YKHO)\n return YKHO._GENETREE", "def pNZh(YKHO):\n if YKHO._graph is None:\n YKHO._gen_graph()\n return YKHO._graph", "def eM0w(YKHO):\n return YKHO.graph", "def eM0w(YKHO):\n return YKHO.graph", "def pNZh(YKHO)...
[ "0.76169217", "0.6486398", "0.6433892", "0.6433892", "0.6432781", "0.6380593", "0.63450897", "0.63450897", "0.63450897", "0.63450897", "0.63450897", "0.63450897", "0.62443936", "0.62360483", "0.6224614", "0.6176515", "0.6120291", "0.6112608", "0.6102817", "0.60775995", "0.607...
0.5667551
53
Return the number of edges in the assembly graph. Returns int
def fOCg(YKHO): return len(list(YKHO.graph.edges()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fOCg(YKHO):\n return YKHO.graph.number_of_edges()", "def fOCg(yvY1):\n return yvY1.number_of_edges()", "def hSVo(pNZh):\n return rrLg.numEdges(pNZh)", "def vi4d(YKHO):\n return YKHO._n", "def n8F9():\n return len(mC4V())", "def n8F9(YKHO) -> int:\n return YKHO.__edge_count", "def ...
[ "0.85117966", "0.84244317", "0.8423292", "0.8362958", "0.832989", "0.8233621", "0.8221269", "0.8221269", "0.82206696", "0.81819445", "0.81819445", "0.8172007", "0.8116384", "0.8116384", "0.811023", "0.8102628", "0.80910224", "0.80864537", "0.80721575", "0.8060643", "0.8058314...
0.8174233
11
Retrieve the interface corresponding to a graph edge.
def NAn0(YKHO, D70y): return YKHO.graph.edge_attribute(D70y, 'interfaces') or []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CZKf(YKHO, zZcM, zr3f):\n return YKHO[zZcM][zr3f].get('iface', None)", "def YqR2(rh3n, AwDt, C3ST):\n for wohN in (wohN for wohN in C3ST.interface_objects):\n if wohN.node_object.name == AwDt and wohN.name == rh3n:\n KqHr = wohN\n break\n return KqHr", "def G_Nn(YKHO, ...
[ "0.8038748", "0.7024149", "0.68536013", "0.6663844", "0.6652593", "0.6626038", "0.6587558", "0.64459944", "0.64359015", "0.63764644", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189", "0.6321189",...
0.74001515
1
Place an item into the queue.
def NpNj(YKHO, ZfUD): YKHO.queue.put_nowait(ZfUD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NpNj(YKHO, ZfUD):\n YKHO.dest_queue.put(ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO.__queue.appendleft(ZfUD)", "def NpNj(YKHO, ZfUD):\n if YKHO.full():\n YKHO.get()\n g5js.Queue.put(YKHO, ZfUD)", "def jvNa(YKHO, ZfUD):\n YKHO._queue.append(ZfUD)", "def NpNj(YKHO, ZfUD):\n if YKHO._si...
[ "0.8308915", "0.8147892", "0.81109405", "0.8043227", "0.7997324", "0.7983036", "0.7983036", "0.7983036", "0.7983036", "0.7983036", "0.79684556", "0.79115206", "0.7907645", "0.78972214", "0.7893496", "0.7893496", "0.784426", "0.78354716", "0.7808858", "0.77940065", "0.77920145...
0.8616327
0
Convert the dict derived from aml to tf.train.Example proto. Note that this function normalizes the bounding box coordinates provided by the raw data.
def m_2V(Kp9k, nPrm, jYte, vdTK=False): if not nPrm: return None p4m8 = Hy7s.path.join(Kp9k, nPrm['filename']) if not Hy7s.path.isfile(p4m8): p4m8 = nPrm['filename'] with ZylS.gfile.GFile(p4m8, 'rb') as hOYR: _gs9 = hOYR.read() KlzJ = xDSY.BytesIO(_gs9) LNo8 = hnIv.open(K...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LvEM(UiEM, Crrw, m0A8, c8oy, ROpF, Z5q6, tpM7):\n BQGg = []\n h3cg = []\n bYzl = []\n Z3uP = []\n for Fg_i in c8oy:\n assert len(Fg_i) == 4\n [vC9B.append(AU8u) for vC9B, AU8u in zip([h3cg, BQGg, Z3uP, bYzl], Fg_i)]\n iIhk = b'JPEG'\n PU1l = ZylS.train.Example(features=ZylS.t...
[ "0.66839373", "0.6519264", "0.64582175", "0.6443015", "0.6417125", "0.6370094", "0.6331715", "0.62324095", "0.619127", "0.614671", "0.609494", "0.60814285", "0.60636836", "0.6050439", "0.5997623", "0.5967363", "0.5910186", "0.5875527", "0.58616865", "0.5787501", "0.5744203", ...
0.5780178
20
Converts a tuple of two floats to integers
def kdg6(Xf84: tuple): return (int(Xf84[0]), int(Xf84[1]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vyh9(YKHO, bIl7):\n FeiC = [0, 0]\n if bIl7 is not None:\n for YRbF in range(0, len(bIl7)):\n FeiC[YRbF] = int(bIl7[YRbF])\n else:\n return bIl7\n return FeiC", "def vDXY(xYvp):\n if len(xYvp) == 2:\n return (int(xYvp[0]), int(xYvp[1]))\n elif len(xYvp) == 3:...
[ "0.7104329", "0.6989368", "0.68555325", "0.6602612", "0.65720415", "0.6512701", "0.64384377", "0.64046896", "0.6401211", "0.63962954", "0.6213386", "0.61933887", "0.61223775", "0.6104291", "0.6095058", "0.60834134", "0.6044623", "0.60147536", "0.60147536", "0.60147536", "0.59...
0.7126981
0
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8318814", "0.8287058", "0.82839304", "0.8282698", "0.82380813", "0.82349014", "0.8226962", "0.82261777", "0.8214116", "0.81931776", "0.8188866", "0.8183037", "0.8182653", "0.8181839", "0.8180708", "0.8180708", "0.81806076", "0.8179051", "0.8178295", "0.8177504", "0.8174972...
0.0
-1
Get input tensors from dataset for training or evaluation.
def dtpj(): return nPrm.get_dataset(GPtr, tf_file_reader=yCDU, num_threads=vPBo.num_data_threads, is_training=True, cache_dataset=vPBo.cache_dataset)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WFcq():\n return oecT(irTU)", "def WbAn():\n JxU2 = pGHf.problem(aBcH)\n if nPrm == 'image_cifar100':\n __n6 = JxU2.dataset(Tuqy, preprocess=_b5h)\n if not _b5h:\n __n6 = __n6.map(map_func=biH0)\n else:\n __n6 = JxU2.dataset(Tuqy, preprocess=False)\n __n6 = ...
[ "0.7280086", "0.709004", "0.6859181", "0.6836192", "0.67862386", "0.6777334", "0.66704905", "0.6670365", "0.66611886", "0.66565335", "0.6649567", "0.6612051", "0.6594447", "0.6593615", "0.6580881", "0.6573642", "0.6546995", "0.65399426", "0.6539413", "0.65323776", "0.65315956...
0.0
-1
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393104", "0.8355197", "0.8295551", "0.8133039", "0.811476", "0.8100177", "0.80994433", "0.80982935", "0.80982935", "0.8093244", "0.8093244", "0.8093244", "0.8093244", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80671525", "0.80597436", "0.8057952", "0...
0.8044425
39
Return the center of gravity, within the [xmin,xmax] window.
def gKSi(WKvO, LVAh, BQGg=None, bYzl=None): return zQMB(WKvO, LVAh * WKvO, BQGg, bYzl) / zQMB(WKvO, LVAh, BQGg, bYzl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sOQD(YKHO):\n return YKHO.solid.cog", "def hgjH(YKHO):\n return (YKHO.x + YKHO.w / 2, YKHO.y + YKHO.h / 2)", "def cX4W(YKHO):\n return (YKHO.x + YKHO.rect.width / 2, YKHO.y - YKHO.rect.height / 2)", "def KGUr(YKHO):\n return (YKHO.GetX() + YKHO.GetWidth() // 2, YKHO.GetY() + YKHO.GetHieght() ...
[ "0.80222017", "0.720772", "0.71281165", "0.7103646", "0.7101892", "0.7075345", "0.7032911", "0.70169264", "0.695888", "0.6956302", "0.6925935", "0.69159824", "0.69028425", "0.69023836", "0.69010437", "0.68694633", "0.68611145", "0.6851249", "0.68459266", "0.68419284", "0.6841...
0.0
-1
Return adjusted onsite energies. Due to the discretization approximation of the hybridization function, it is justified to try to compensate for this introduced error by adjusting the onsite energies.
def r6sf(yzQ0, QK1L, soyB, GbrI, I8zM, fHmP, KOdv, X7zS, KGjE, z3Va, Pc6s): MNd1 = oyIN.zeros(KOdv) if fHmP == KOdv: for YRbF in range(KOdv): Ylbp = H0wL(hHTR, bounds=X7zS, args=(GbrI[YRbF], I8zM[YRbF], yzQ0, QK1L, soyB[YRbF], KGjE[YRbF], z3Va[YRbF]), method='bounded') MNd1[YRbF]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnHR(YKHO, VYvU, EhIg, zF0X=1):\n if zF0X:\n return YKHO.sqe(VYvU)\n else:\n MDzo = (VYvU[-1] - VYvU[0]) / (len(VYvU) - 1)\n tTpl = HfiF(-gapP, gapP + 0.01, MDzo)\n return YKHO.sqe(tTpl)", "def qB4F(YKHO):\n return YKHO.orb['BSE_singlet']['eigenvalues'][()].transpose()[0]...
[ "0.6144179", "0.61150765", "0.6024316", "0.59812856", "0.5962323", "0.59203345", "0.5887752", "0.58436424", "0.58290464", "0.5813866", "0.5812849", "0.576325", "0.5730605", "0.5703092", "0.56885517", "0.5684055", "0.56743824", "0.56558233", "0.5654027", "0.56195396", "0.56182...
0.0
-1
Return adjusted onsite energies. Due to the discretization approximation of the hybridization function, it is justified to try to compensate for this introduced error by adjusting the onsite energies.
def Zqx8(yzQ0, QK1L, H8pN, Z0Qi, ZPI8, MNd1, qyzg, Bz_g, Pc6s): ZHfW = oyIN.logical_and(qyzg < yzQ0, yzQ0 < Bz_g) fHmP = oyIN.shape(H8pN)[0] KOdv = len(MNd1) NHHF = oyIN.zeros(fHmP) for YRbF in range(fHmP): NHHF[YRbF] = gKSi(yzQ0[ZHfW], H8pN[YRbF, ZHfW]) Mk7W = oyIN.zeros((fHmP, fHmP, le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnHR(YKHO, VYvU, EhIg, zF0X=1):\n if zF0X:\n return YKHO.sqe(VYvU)\n else:\n MDzo = (VYvU[-1] - VYvU[0]) / (len(VYvU) - 1)\n tTpl = HfiF(-gapP, gapP + 0.01, MDzo)\n return YKHO.sqe(tTpl)", "def qB4F(YKHO):\n return YKHO.orb['BSE_singlet']['eigenvalues'][()].transpose()[0]...
[ "0.61443835", "0.61156154", "0.60258037", "0.5983355", "0.5964587", "0.5920767", "0.58886296", "0.5844133", "0.58316743", "0.58164334", "0.5814154", "0.5764007", "0.57318455", "0.5704728", "0.56909", "0.56852067", "0.5675657", "0.5657166", "0.5655863", "0.56209064", "0.561911...
0.0
-1
Standard Composite Function H, consisting of Batch Normalization, Nonlinearity (e.g. RELU), Convolution with filter size 3x3 or 1x1.
def eYSv(YKHO, vHnr, m1Qc, JfyU='relu'): XcU5 = YKHO._weight_variable(shape=m1Qc[0]) Fg_i = YKHO._bias_variable(shape=m1Qc[1]) N0Hu = YKHO._batch_normalize(vHnr) N0Hu = YKHO._nonlinearity(JfyU)(N0Hu) N0Hu = YKHO._conv2d(N0Hu, XcU5) return N0Hu + Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO, EcVT: Tensor, NgLN: Tensor, K5j2: Tensor) -> (llWB, llWB):\n wjbX = NgLN.shape[1]\n JOp2 = ht2j.mm(EcVT, YKHO.W_x) + ht2j.mm(NgLN, YKHO.W_h) + YKHO.b_x + YKHO.b_h\n YRbF = ht2j.sigmoid(JOp2[:, 0:wjbX])\n eHNT = ht2j.sigmoid(JOp2[:, wjbX:2 * wjbX])\n Oa1e = ht2j.tanh(JOp2[:, 2 * wjbX:3...
[ "0.63564986", "0.6255339", "0.618379", "0.6138053", "0.60837", "0.6068089", "0.6064358", "0.6036464", "0.6031124", "0.60282844", "0.6015606", "0.6015606", "0.59972894", "0.5996713", "0.5995894", "0.59844", "0.59798867", "0.5944973", "0.5944677", "0.5941784", "0.59385055", "...
0.5644496
91
Core element of DensetNet. Dense Block consists of densely connected composite functions with each taking in all previous outputs instead of just the previous layer within the Dense Block. Bottleneck and Compression (i.e.) DenseNetBC structure yields superior results against benchmarks L denotes the total number of com...
def wNmm(YKHO, N0Hu, aPd6): vkQq = [[1, 1, None, YKHO._b * YKHO._k], [YKHO._b * YKHO._k]] l_Kh = [[3, 3, YKHO._b * YKHO._k, YKHO._k], [YKHO._k]] for vC9B in range(aPd6): vkQq[0][2] = int(N0Hu.get_shape()[-1]) Xjiw = YKHO._composite_function(N0Hu, vkQq) xFc3 = YKHO._composite_function...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def boJr(YKHO):\n\n def _5iH(C3ST, gKjl, DbxN, oCQI):\n C3ST.add(r7YS(yHwh(gKjl, (3, 3), padding='same', kernel_initializer=DbxN, kernel_regularizer=LXqM(l=oCQI))))\n C3ST.add(r7YS(GVKG()))\n C3ST.add(r7YS(MroH('relu')))\n C3ST.add(r7YS(yHwh(gKjl, (3, 3), padding='same', kernel_initi...
[ "0.63092613", "0.6295015", "0.62829375", "0.62775433", "0.62537694", "0.6221332", "0.62193227", "0.62119454", "0.614331", "0.61377233", "0.61277837", "0.611855", "0.61021906", "0.6100404", "0.60975426", "0.6097083", "0.60718584", "0.6062277", "0.6056547", "0.60459876", "0.603...
0.6095392
16
Iterate over reocrds in this dataset, optionally filtering by a language, and yield text + metadata pairs.
def J2us(YKHO, *, DuqQ: Optional[str | set[str]]=None, qoqK: Optional[int]=None) -> iu5r[SnBA.Record]: for AIu6 in Hs6x.islice(YKHO._filtered_iter(DuqQ), qoqK): yield SnBA.Record(text=AIu6.pop('text'), meta=AIu6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_aV(YKHO, *, DuqQ: Optional[str | set[str]]=None, qoqK: Optional[int]=None) -> iu5r[str]:\n for AIu6 in Hs6x.islice(YKHO._filtered_iter(DuqQ), qoqK):\n yield AIu6['text']", "def Ueki(YKHO):\n qDyV = oRi_(list)\n with open(YKHO.src_filename) as eHNT:\n N5Pj = m6_J.DictReader(eHNT)\n ...
[ "0.5954847", "0.5691045", "0.5676238", "0.55937237", "0.5472677", "0.524008", "0.5214604", "0.5202856", "0.5199146", "0.5103718", "0.5096739", "0.5026427", "0.50102013", "0.49841017", "0.49817848", "0.4979375", "0.497747", "0.4976896", "0.49543336", "0.49537024", "0.49466804"...
0.56594193
3
Returns RA, Dec of the survey footprint.
def mf5p(): B3B_, Rqtj = Hy7s.path.split(xAKo) ehj4 = Hy7s.path.join(B3B_, 'des-round17-poly.txt') nPrm = oyIN.loadtxt(ehj4) return (nPrm[:, 0], nPrm[:, 1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSjc(YKHO):\n if YKHO._location_units == 'position_RA_Dec':\n return YKHO._dec\n else:\n return []", "def kcTQ(YKHO):\n Xf84 = YKHO.cardinalPoints()\n return repr(YKHO) + '\\nfl: {0:7.5f}'.format(YKHO.backFocalLength()) + '\\nffp: {0:7.5f}\\nbfp: {1:7.5f}\\nfpp: {2:7.5f}\\nbpp: {3:7...
[ "0.6105843", "0.5737125", "0.56472754", "0.5640718", "0.55937916", "0.5592406", "0.5574802", "0.54936963", "0.5485141", "0.5443646", "0.5381096", "0.5362436", "0.53610563", "0.53536475", "0.5335984", "0.5319714", "0.5312494", "0.53113306", "0.52833813", "0.52666265", "0.52641...
0.5481159
9
Get specific AI model.
async def get_model_async(YKHO, id: str) -> TkY7: return await YKHO.process_command_async(YKHO.create_get_command(YKHO.build_uri(L2Je.MODEL, id)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C3ST():\n C3ST = Uv8Z[ZGE9]\n return C3ST", "def YrZb(mWFP):\n return vJaZ(mWFP)[0]", "def YrZb(YKHO, C3ST):\n YKHO.general_dataloader.get_model(C3ST)", "def C3ST(YKHO):\n KCHu = YKHO.run('model')\n KCHu = KCHu.split('\\n')\n return KCHu[1]", "def YrZb(CtWL, qIxc):\n return geta...
[ "0.7272932", "0.7232853", "0.7027267", "0.7010698", "0.69879204", "0.6978326", "0.6921953", "0.6876722", "0.68013704", "0.6795114", "0.67774075", "0.6769984", "0.6763722", "0.6715206", "0.6709448", "0.66902214", "0.66804075", "0.6629282", "0.6628514", "0.65904033", "0.6570746...
0.0
-1
Get last trained or published model.
async def get_last_trained_or_published_model_async(YKHO) -> TkY7: return await YKHO.process_command_async(YKHO.create_get_command(L2Je.LAST_TRAINED_OR_PUBLISH_MODEL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W7rQ(YKHO, bNKA: Text) -> h8nf[wOed]:\n return YKHO.query(wOed).filter(wOed.project_id == bNKA).order_by(wOed.trained_at.desc()).first()", "def YrZb(YKHO):\n return YKHO.call_async(0, '_async_get_model').gen()", "def AdDk(JyK9: Text):\n return Fm8B.get_latest_file(Hy7s.path.join(Ptkf, JyK9))", "...
[ "0.74207824", "0.73163074", "0.72978085", "0.72193265", "0.7146159", "0.7062136", "0.70582336", "0.7041033", "0.69887525", "0.69075197", "0.6872103", "0.676048", "0.6756927", "0.6751077", "0.67150897", "0.6696416", "0.64742064", "0.6472509", "0.6460505", "0.64070296", "0.6401...
0.77574164
0
Returns a dictionary representation of this model.
def cmPJ(YKHO): return {'name': YKHO.name, 'agency': YKHO.agency, 'mission': YKHO.type_of_mission, 'year_launched': YKHO.year_launched}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return FZ5p(YKHO)", "def Napc(YKHO):\n return YKHO.model.to_dict", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n re...
[ "0.9055924", "0.8893606", "0.8568152", "0.8568152", "0.83995783", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.8249563", "0.8249563", "0.8249563", "0.8219049", "0.8208382", "0.82...
0.0
-1
Returns a dictionary representation of this model.
def cmPJ(YKHO): return {'name': YKHO.name, 'image': YKHO.image, 'temperature': YKHO.temperature, 'right_ascension': YKHO.right_ascension, 'declination': YKHO.declination, 'mass': YKHO.mass, 'planetoid_bodies': YKHO.planetoid_bodies, 'satellites': YKHO.satellites}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return FZ5p(YKHO)", "def Napc(YKHO):\n return YKHO.model.to_dict", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n re...
[ "0.90560025", "0.88936824", "0.856902", "0.856902", "0.84010404", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.8250566", "0.8250566", "0.8250566", "0.8219071", "0.820951", "0.820...
0.0
-1
Returns a dictionary representation of this model.
def cmPJ(YKHO): return {'name': YKHO.name, 'image': YKHO.image, 'right_ascension': YKHO.right_ascension, 'declination': YKHO.declination, 'galaxy_type': YKHO.galaxy_type, 'redshift': YKHO.redshift, 'angular_size': YKHO.angular_size, 'stars': YKHO.stars, 'planetoid_bodies': YKHO.planetoid_bodies, 'satellites': YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return FZ5p(YKHO)", "def Napc(YKHO):\n return YKHO.model.to_dict", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n re...
[ "0.9055924", "0.8893606", "0.8568152", "0.8568152", "0.83995783", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.83025026", "0.8249563", "0.8249563", "0.8249563", "0.8219049", "0.8208382", "0.82...
0.0
-1
Returns a dictionary representation of this model.
def cmPJ(YKHO): return {'name': YKHO.name, 'image': YKHO.image, 'diameter': YKHO.diameter, 'temperature': YKHO.surface_temperature, 'right_ascension': YKHO.right_ascension, 'declination': YKHO.declination, 'mass': YKHO.mass, 'gravity': YKHO.gravity, 'orbital_period': YKHO.orbital_period, 'orbiting_bodies': YKHO.orb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _fYl(YKHO):\n return FZ5p(YKHO)", "def Napc(YKHO):\n return YKHO.model.to_dict", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(YKHO):\n return YKHO.to_dict()", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n re...
[ "0.90560025", "0.88936824", "0.856902", "0.856902", "0.84010404", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.83032787", "0.8250566", "0.8250566", "0.8250566", "0.8219071", "0.820951", "0.820...
0.0
-1
Initializes a new empty cluster whose centroid is a copy of
def FIMM(YKHO, tgCD, e6ux): assert isinstance(tgCD, nkHA.Dataset) YKHO._dataset = tgCD assert type(e6ux) == list CV0H = e6ux[:] YKHO._centroid = CV0H assert len(YKHO._centroid) == YKHO._dataset.getDimension() YKHO._indices = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VJNw(YKHO):\n YKHO.centroids = XTiz.zeros((YKHO.cluster_number, YKHO.total_objects))\n rgwR = list(range(YKHO.total_objects))\n for YRbF in range(YKHO.cluster_number):\n BjyP = tuKI.randrange(len(rgwR))\n YKHO.centroids[YRbF, :] = YKHO.similarity_matrix[rgwR[BjyP], :]\n rgwR.remov...
[ "0.78697276", "0.7260204", "0.7219544", "0.7203443", "0.72007835", "0.7189386", "0.71708", "0.7151256", "0.70200276", "0.6983171", "0.6941296", "0.69258416", "0.6923024", "0.6915753", "0.6891769", "0.6835285", "0.6829775", "0.6819055", "0.67727935", "0.67391545", "0.67224807"...
0.6745237
19
Returns the centroid of this cluster. This getter method is to protect access to the centroid.
def G0Yq(YKHO): return YKHO._centroid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(YKHO):\n return YKHO.coords.centroid", "def e6ux(YKHO):\n return YKHO.coords.centroid", "def SZpp(YKHO):\n return YKHO.centroid", "def e6ux(YKHO):\n return LG9n.util.centroid(YKHO)", "def e6ux(YKHO):\n return YKHO.shape.centroid.coords[0]", "def e6ux(YKHO):\n return YKHO.center...
[ "0.87825954", "0.87825954", "0.8756293", "0.86590046", "0.86126256", "0.85730696", "0.852001", "0.8508649", "0.8259191", "0.82444286", "0.81534445", "0.8101052", "0.8062317", "0.79576236", "0.78076875", "0.77909595", "0.77341974", "0.76490426", "0.76455104", "0.7639551", "0.7...
0.8817213
0
Returns the indices of points in this cluster This method returns the attribute _indices directly. Any changes made to this list will modify the cluster.
def BJma(YKHO): return YKHO._indices
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _0VL(YKHO) -> XTiz.ndarray:\n return YKHO.__indices", "def BJma(YKHO):\n hlel = []\n for nqP5 in YKHO._indices:\n hlel.append(nqP5)\n return hlel", "def BJma(YKHO):\n return YKHO._indices.copy()", "def BJma(YKHO):\n return jth9(YKHO._indices)", "def _0VL(YKHO) -> h8nf[x1iM[int]...
[ "0.8279015", "0.8070375", "0.7894018", "0.77960676", "0.7673225", "0.7582258", "0.745551", "0.73871094", "0.7356307", "0.7316923", "0.72453624", "0.72251904", "0.7209275", "0.71470606", "0.7084916", "0.7018345", "0.7000765", "0.6995442", "0.69473356", "0.69381106", "0.6936776...
0.80906665
1
Adds the given dataset index to this cluster. If the index is already in this cluster, this method leaves the cluster unchanged.
def d_Y9(YKHO, d6pt): assert type(d6pt) == int and d6pt >= 0 assert d6pt <= YKHO._dataset.getSize() - 1 if not d6pt in YKHO._indices: YKHO._indices.append(d6pt)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_Y9(YKHO, d6pt):\n assert type(d6pt) == int and d6pt >= 0 and (d6pt <= YKHO._dataset.getSize() - 1), 'index is not valid'\n if (d6pt in YKHO._indices) == False:\n YKHO._indices.append(d6pt)", "def d_Y9(YKHO, d6pt):\n if YKHO.getIndices().count(d6pt) == 0:\n YKHO._indices.append(d6pt)"...
[ "0.7200393", "0.6449332", "0.63634557", "0.6331266", "0.6198274", "0.60926807", "0.60312533", "0.58822024", "0.5852172", "0.58269256", "0.58116275", "0.5791461", "0.57503307", "0.5717963", "0.5647435", "0.55877817", "0.5538897", "0.550777", "0.5507696", "0.5494354", "0.547315...
0.7231968
0
Returns the euclidean distance from point to this cluster's centroid.
def Ayfi(YKHO, AU8u): assert oCrX.is_point(AU8u) == True assert len(AU8u) == len(YKHO._centroid) aVav = 0 moiP = len(AU8u) wjRY = 0 b2s1 = YKHO.getCentroid() for WKvO in range(moiP): aVav = AU8u[WKvO] - b2s1[WKvO] Fyji = aVav ** 2 wjRY = wjRY + Fyji tk5Y = epAf.sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO, AU8u):\n assert oCrX.is_point(AU8u) and len(AU8u) == len(YKHO._centroid)\n return XTiz.sqrt(sum([(Fg_i - jzdc) * (Fg_i - jzdc) for jzdc, Fg_i in zip(AU8u, YKHO._centroid)]))", "def __fe(YKHO):\n return oyIN.divide(oyIN.add(YKHO.points[0], YKHO.points[2]), 2)", "def qHPv(YKHO, EcVT):\n ...
[ "0.80383384", "0.7597461", "0.7572299", "0.7561649", "0.7552062", "0.7552062", "0.7487664", "0.7325415", "0.73193306", "0.73145044", "0.7300114", "0.7273712", "0.7273293", "0.7181505", "0.7166489", "0.7162858", "0.71135646", "0.7088686", "0.70826083", "0.70330065", "0.7033006...
0.7969155
1
Returns the maximum distance from any point in this cluster, to the centroid. This method loops over the contents to find the maximum distance from the centroid. If there are no points in this cluster, it returns 0.
def iwTD(YKHO): Ew3d = 0 eDKD = [] tHcB = len(YKHO._indices) for WKvO in YKHO._indices: AU8u = YKHO._dataset.getContents()[WKvO] OG6K = YKHO.distance(AU8u) if OG6K > Ew3d: Ew3d = OG6K if len(YKHO._indices) == 0: Ew3d = 0 return Ew3d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxOM(YKHO):\n SAh4 = 0\n q5vM = 0\n for VKyG in YKHO.vertices:\n SAh4 += VKyG.getx()\n q5vM += VKyG.gety()\n YKHO.centroid.setx(SAh4 / YKHO.getnumberOfVertices())\n YKHO.centroid.sety(q5vM / YKHO.getnumberOfVertices())\n max = iK2A.distanceCalculationMethod(YKHO.centroid, YKHO.v...
[ "0.67600876", "0.65639216", "0.644974", "0.63826376", "0.6360752", "0.63205194", "0.6298251", "0.62947035", "0.62871045", "0.62798405", "0.6269468", "0.626534", "0.626534", "0.62529093", "0.62464124", "0.62419546", "0.6206746", "0.6172638", "0.6159129", "0.61225504", "0.61171...
0.69277453
0
Returns a String representation of the centroid of this cluster.
def zAg0(YKHO): return str(YKHO._centroid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZpp(YKHO):\n return YKHO.centroid", "def e6ux(YKHO):\n return LG9n.util.centroid(YKHO)", "def G0Yq(YKHO):\n return YKHO._centroid", "def e6ux(YKHO):\n return YKHO.coords.centroid", "def e6ux(YKHO):\n return YKHO.coords.centroid", "def e6ux(YKHO):\n return YKHO.shape.centroid.coords...
[ "0.7829054", "0.77980757", "0.7760437", "0.7714701", "0.7714701", "0.7579417", "0.75469136", "0.75229925", "0.7495615", "0.736486", "0.7321569", "0.73189825", "0.7274702", "0.7265304", "0.7260363", "0.7192823", "0.7122014", "0.7082548", "0.70539504", "0.6973649", "0.6964095",...
0.8365555
1
Returns an unambiguous representation of this cluster.
def wHJl(YKHO): return str(YKHO.__class__) + str(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.cluster.__str__()", "def wHJl(YKHO):\n sWfS = 'alg_cluster.Cluster('\n sWfS += str(YKHO._fips_codes) + ', '\n sWfS += str(YKHO._horiz_center) + ', '\n sWfS += str(YKHO._vert_center) + ', '\n sWfS += str(YKHO._total_population) + ', '\n sWfS += str(YKHO._averaged...
[ "0.7779751", "0.72405034", "0.7115191", "0.70642626", "0.70263565", "0.69806427", "0.69181025", "0.6769635", "0.67258036", "0.67055887", "0.67055887", "0.6704837", "0.6659688", "0.6643524", "0.6643524", "0.6643524", "0.6643524", "0.66400063", "0.66400063", "0.65615207", "0.65...
0.0
-1
Run code This overrides the baseclass method to allow for input validation and error handling.
def SRIv(YKHO, Wxnj, vYBr=-1, qnWX=None, Z9bw=None): Wxnj = YKHO.validate_input(Wxnj) pHmp = Wxnj.splitlines() hlel = [] for zFiD in pHmp: YKHO.send(zFiD) YKHO._force_prompt() RI88 = YKHO.child.before.replace(cQ3p, '\n') YKHO.prompt = YKHO.child.after if YKHO.is_e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wryy(YKHO):\n pass", "def zizW(YKHO):\n raise NotImplementedError", "def sarO(YKHO):\n raise NotImplementedError()", "def zizW(YKHO):\n raise NotImplementedError()", "def iXC1(YKHO):\n raise Exception('You called run on the base class')", "def zizW(YKHO) -> None:\n pass", "def ziz...
[ "0.73244023", "0.683499", "0.6834742", "0.6794968", "0.67693436", "0.67084575", "0.67084575", "0.6687978", "0.665586", "0.6618228", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", "0.6596473", ...
0.0
-1
Create a `layers_stacked_count` amount of GRU cells and stack them on top of each other. They have a `hidden_dim` number of neuron layer size.
def eomH(YPaw: Tensorflow2ModelStep) -> x1iM[WGqo]: JnVq = [] for bGrB in range(YPaw.hyperparams['layers_stacked_count']): JnVq.append(WGqo(YPaw.hyperparams['hidden_dim'])) return JnVq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MWnr(vHnr, Qi3c, _GHR, oIRA=1, hr1G=ZylS.constant(0.0, dtype=ZylS.float32), DbxN=False, LT6S=False, OEry='weight_norm', c731=False, XPx2=False, Ib1a=False, RpKZ=False, G_Si={}, CJGY=False):\n d3XD = len(Qi3c)\n tdB0 = {}\n mWFP = W0tD('stack_dilated_cnn', G_Si)\n with ZylS.variable_scope(mWFP):\n ...
[ "0.64095724", "0.6272095", "0.5777576", "0.5744038", "0.57363254", "0.5695291", "0.56454754", "0.55990416", "0.55641866", "0.55624574", "0.54577214", "0.54432845", "0.542637", "0.541782", "0.5413489", "0.5411711", "0.53690577", "0.53551394", "0.53162646", "0.53056115", "0.530...
0.6811734
0
Builds the prism of base S and vector V. If C is true, S is copied. If Canonize is true then generated surfaces are attempted to be canonized in simple types
def FIMM(YKHO, *qIxc): Bwr8.BRepSweep_Prism_swiginit(YKHO, Bwr8.new_BRepSweep_Prism(*qIxc))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pmuE(YKHO):\n HdeN = YKHO.Cb\n ZjUi = YKHO.Cmidshp\n L3eB = YKHO.Cp\n KCHu = YKHO.states\n HiPz = jth9.copy(KCHu)\n '\\n cb = ia(0.95, 0.95)\\n cmidshp = ia(0.989583333336, 0.989583333337)\\n cp = ia(0.96, 0.96)\\n '\n wspz = YKHO / (HdeN, ZjUi, L3eB)\n wspz ...
[ "0.58907336", "0.5752426", "0.572983", "0.53511614", "0.5261716", "0.5190938", "0.5179852", "0.5179653", "0.5121178", "0.5118028", "0.51155937", "0.5067852", "0.5062462", "0.5052851", "0.5019873", "0.50127834", "0.50021404", "0.4979257", "0.49688777", "0.4959433", "0.4956523"...
0.49118054
23
add labels, inside or outside the rectangles
def PWnI(VXjJ, Crrw, c8oy, ZLXi=True, G3ud=(255, 255, 255), y_EG=(0, 0, 0), tlxW=True): for UXqs, cviu in zip(Crrw, c8oy): VXjJ = ls25(VXjJ, UXqs, cviu, ZLXi, G3ud, y_EG, tlxW) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jm90(YKHO, EKkb, WKvO, LVAh):\n for YRbF, sZqf in enumerate(EKkb):\n sZqf.rect.x = WKvO + (sZqf.rect.width + 3) * YRbF\n sZqf.rect.y = LVAh\n if sZqf.image == YKHO.image_dict['-']:\n sZqf.rect.y += 7\n sZqf.rect.x += 2", "def jm90(YKHO, EKkb, WKvO, LVAh):\n fo...
[ "0.7488633", "0.7488633", "0.7449181", "0.73921907", "0.73921907", "0.73894334", "0.73894334", "0.7376042", "0.7351406", "0.73339015", "0.7298822", "0.7274557", "0.7273599", "0.72717214", "0.72717214", "0.72653276", "0.72595364", "0.72541875", "0.72486603", "0.72446", "0.7228...
0.7302379
10
adds T labels to the rectangles, each originating from the top of the rectangle
def erpP(VXjJ, Crrw, c8oy, ZLXi=True, G3ud=(255, 255, 255), y_EG=(0, 0, 0)): for UXqs, cviu in zip(Crrw, c8oy): NjDj(VXjJ, UXqs, cviu, ZLXi, G3ud, y_EG) return VXjJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siQ4(j8aQ):\n for mawX in j8aQ:\n H2v2 = mawX.get_height()", "def siQ4(yp1p):\n for j8aQ in yp1p:\n for mawX in j8aQ:\n H2v2 = mawX.get_height()\n aNZO.text(mawX.get_x() + mawX.get_width() / 2.0, 1.05 * H2v2, '%d' % int(H2v2), ha='center', va='bottom')", "def fi2Z(...
[ "0.7151656", "0.7049152", "0.7048488", "0.70048094", "0.70048094", "0.699062", "0.69807553", "0.69807553", "0.69679976", "0.6954409", "0.6941258", "0.69331706", "0.69331706", "0.69297266", "0.6924033", "0.69136375", "0.69136375", "0.69035167", "0.6880186", "0.68781364", "0.68...
0.7324132
0
Finds intersection with segment (returns intersection closer to seg.p0)
def iQin(YKHO, pG0V): raise NotImplementedError('Must be implemented in subclass')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXIo(YKHO, hTWD):\n XOOk = YKHO.getStartingPoint()\n pHXX = YKHO.getEndPoint()\n kYGz = hTWD.getStartingPoint()\n ftz7 = hTWD.getEndPoint()\n if min(XOOk.x, pHXX.x) > max(kYGz.x, ftz7.x) or max(XOOk.x, pHXX.x) < min(kYGz.x, ftz7.x) or min(XOOk.y, pHXX.y) > max(kYGz.y, ftz7.y) or (max(XOOk.y, pHX...
[ "0.73799866", "0.72857916", "0.72525185", "0.7143165", "0.71117723", "0.710822", "0.70620877", "0.70283747", "0.70002174", "0.6982601", "0.6924531", "0.6917453", "0.6829509", "0.672835", "0.6661633", "0.6650381", "0.65850407", "0.65637195", "0.6534167", "0.65228426", "0.65015...
0.6918739
11
Converts the image to L mode.
def ODqo(LNo8: PIL.Image.Image) -> uGYG.Image.Image: F6tB = uGYG.Image.new('L', LNo8.size) F6tB.paste(LNo8) return F6tB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRZp(YKHO, VXjJ):\n pg7l = YKHO.sobel_kernel\n oKe8 = YKHO.m_thresh\n B3F5 = YKHO.d_thresh\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)\n yzxJ = qJtC[:, :, 1]\n mS2J = XC5k.Sobel(yzxJ, XC5k.CV_64F, 1, 0, ksize=pg7l)\n YdmJ = XC5k.Sobel(yzxJ, XC5k.CV_64F, 0, 1, ksize=pg7l)\n YXbZ = o...
[ "0.63402265", "0.60810035", "0.6071588", "0.60046786", "0.59000725", "0.58707464", "0.5853273", "0.5853273", "0.58426154", "0.57490593", "0.5745235", "0.57396", "0.57157946", "0.57105523", "0.568526", "0.5681159", "0.56700224", "0.5643496", "0.56095225", "0.5598254", "0.55764...
0.7331962
0
This function fetches all team data 'teams' table and returns data as JSON format.
def _Mur(QePW): xDcj = ' select id, team_name from teams ' print(xDcj) nPrm = qQXR.dumps(V4uu(xDcj), default=dj9M) return igJ6(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NqOS():\n xntM = []\n w2B8 = NCls.connect()\n rJco = w2B8.execute('SELECT * FROM Teams ORDER BY Division;').fetchall()\n w2B8.close()\n xntM = []\n for dZPi in rJco:\n jvSB = {'id': dZPi[0], 'city': dZPi[2], 'name': dZPi[1], 'div': vBIT(dZPi[3])}\n xntM.append(jvSB)\n return ...
[ "0.7556899", "0.74379146", "0.7206109", "0.7169422", "0.7154294", "0.7125479", "0.68915784", "0.6864038", "0.68147403", "0.67951703", "0.6750234", "0.644816", "0.64436", "0.63927114", "0.6384017", "0.6286856", "0.62758386", "0.62400454", "0.6239238", "0.6227042", "0.6217339",...
0.68057746
9
Merge lists whilst removing dups.
def gKI6(jzdc, Fg_i): Aofo = list(set(jzdc + Fg_i)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ihds(Uqbu):\n Ylbp = []\n for vC9B in Uqbu:\n Ylbp += vC9B\n return sorted(Ylbp)", "def A6Ko(vASe, OQAR):\n WZpC = [YRbF for YRbF in OQAR if YRbF not in vASe]\n return vASe + WZpC", "def cXrt(e5Mv):\n bDFL = set(e5Mv)\n SIKZ = list(bDFL)\n return SIKZ", "def qon3(DumB):\n ...
[ "0.7460561", "0.7252944", "0.70289886", "0.6869119", "0.67629266", "0.6762026", "0.6736404", "0.6675883", "0.66386294", "0.66040504", "0.659184", "0.6579403", "0.6512429", "0.64998597", "0.6495016", "0.64888614", "0.64722824", "0.6438684", "0.6432091", "0.6425658", "0.6411579...
0.67854565
4
Compute a singleheaded attention.
def KVH6(YKHO, vexM: torch.Tensor, G1Hx: torch.Tensor, Ty9i: torch.Tensor, ZHfW: Optional[torch.Tensor]=None) -> ht2j.Tensor: WKvO = ht2j.matmul(vexM, G1Hx.transpose(-1, -2)) / G1Hx.size(-1) ** 0.5 if ZHfW is not None: WKvO = WKvO + ZHfW.type_as(WKvO) * WKvO.new_tensor(YKHO.mask_value) WKvO = YKHO.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BZ_2(YKHO, xDcj: torch.Tensor, H5ew: torch.Tensor, BWXx: torch.Tensor, ZHfW: torch.Tensor, fLXe: torch.Tensor, yfx6: torch.Tensor, NqpV: float=0.0, SGf8: float=1e-06, FfMS: float=1000000000000.0) -> AzJI[ht2j.Tensor, ht2j.Tensor]:\n d4TZ = xDcj.size(-1)\n cCrA = ht2j.matmul(xDcj, H5ew.transpose(-2, -1)) ...
[ "0.66443294", "0.6403593", "0.62795925", "0.6079638", "0.6079638", "0.6062916", "0.59885937", "0.59802824", "0.59731627", "0.5942194", "0.59285873", "0.58666456", "0.5834628", "0.5829294", "0.58201283", "0.5809176", "0.5803975", "0.5773699", "0.576066", "0.5752809", "0.575156...
0.0
-1
Return unit of measurement. Tesla API always returns in Celsius.
def xklW(YKHO): return hMVl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xklW(YKHO):\n return YKHO._unit_of_measurement", "def xklW(YKHO):\n return YKHO._unit_of_measurement", "def xklW(YKHO):\n return YKHO._unit_of_measurement", "def xklW(YKHO):\n return YKHO._unit_of_measurement", "def xklW(YKHO):\n return YKHO._device.temperature_unit", "def b82i(YKHO):\...
[ "0.8540631", "0.8498103", "0.8498103", "0.8498103", "0.8369867", "0.8350203", "0.82943493", "0.82943493", "0.82943493", "0.82736313", "0.8250881", "0.8248787", "0.82442605", "0.82442605", "0.82425606", "0.8224692", "0.81629264", "0.81629264", "0.81629264", "0.81629264", "0.81...
0.81125075
28
Takes a cirq gate object and returns corresponding QLM gate
def vG4s(ewpR): try: if nsOz.ControlledGate == type(ewpR): return vG4s(ewpR.sub_gate).ctrl() if ewpR.exponent == 0.0: return 'none' return nTB7[type(ewpR)](ewpR.exponent) except AttributeError: return nTB7[type(ewpR)](1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ClK1():\n return iOgy(qw7D([[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 0.0, 1.0], [0.0, 0.0, 1.0, 0.0]]))", "def nEP3(Z9rn, UXqs):\n DPNn = Rv0t(*Z9rn.qregs)\n Hswb = sum((lQ3t[:] for lQ3t in Z9rn.qregs), [])\n DPNn.append(Z9rn.to_gate(label=UXqs), Hswb)\n return DPNn", "def YANM...
[ "0.65265507", "0.6282721", "0.6238658", "0.619171", "0.59446394", "0.5941128", "0.5928945", "0.59110576", "0.5909502", "0.5866437", "0.5853379", "0.5826569", "0.5818534", "0.58025223", "0.57884896", "0.5779797", "0.5774622", "0.5722691", "0.56859595", "0.5685848", "0.5678002"...
0.0
-1
Converts a google cirq circuit to a qlm circuit
def KlXW(Jdbc, d9RH=False, **B2fa): Hswb = IPme.QubitOrder.as_qubit_order(IPme.QubitOrder.DEFAULT).order_for(Jdbc.all_qubits()) JGyn = {I6h_: YRbF for YRbF, I6h_ in enumerate(Hswb)} ql7k = tuple(IPme.flatten_op_tree(Jdbc.all_operations())) N3HV = Qyor() fccM = N3HV.qalloc(len(Hswb)) lWVp = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YANM(hy7P):\n vaFP = TSLW.Circuit()\n fccM = [TSLW.LineQubit(YRbF + 1) for YRbF in range(hy7P.nbqbits)]\n for khtY in hy7P.ops:\n if khtY.type == 0:\n mWFP, NArs = gdhn(hy7P.gateDic[khtY.gate], hy7P.gateDic)\n TBAH = mWFP.count('C-')\n aUfT = mWFP.count('D-')\n ...
[ "0.68559533", "0.6651593", "0.6630061", "0.6536051", "0.6330638", "0.6278182", "0.617446", "0.6113064", "0.6037546", "0.5992201", "0.59175444", "0.5917511", "0.5881241", "0.5814278", "0.5806809", "0.5804196", "0.5794276", "0.57789665", "0.5727956", "0.5722302", "0.57014954", ...
0.5745399
18
Ensure that we can use NaturalKeyRelatedField to represent foreign key relationships.
def XI4Q(YKHO): ZMzz = IvOT(related_field=bzTD, depth=0) aEqx = [{'owner': (u'joe', u'adams'), 'id': 1, 'name': u'splash gordon'}, {'owner': (u'joe', u'adams'), 'id': 2, 'name': u'frogger'}] YKHO.assertEquals(ZMzz.serialize(Hw0P.objects.all()), aEqx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o6rn(YKHO, vXX7):\n pass", "def mWGL(YKHO):\n Jyyj = PjFV._meta.get_field('related_type')\n YKHO.assertIsInstance(Jyyj, FYrf.ForeignKey)\n YKHO.assertEqual(Jyyj.rel.to, DDS9)\n YKHO.assertFalse(Jyyj.blank)\n YKHO.assertFalse(Jyyj.null)", "def zKPl(BfDw):\n from django.db.models import ...
[ "0.63814527", "0.6236216", "0.6221481", "0.5994488", "0.59678304", "0.5832393", "0.5810718", "0.5785219", "0.5743815", "0.57400155", "0.57331884", "0.572226", "0.56640995", "0.5631273", "0.5628132", "0.5615813", "0.5560713", "0.5539683", "0.55373186", "0.55348384", "0.5505221...
0.5450976
27
Test updating an existing fact
def TQh0(YKHO): y0cW = YKHO.__message_prefix + '_test_middle_placeholder' v_wi = (y0cW, 'updated', 'a', '1') s9kI = (y0cW, 'updated', 'b', '1') YKHO.__client.push(v_wi) YKHO.__client.push(s9kI) mXDZ = (y0cW, 'updated', '*', '1') wyyA = Oxnf(pattern=mXDZ, knowledge_base_name=YKHO.__knowledge_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def coib(YKHO):\n YSCM = VHaa()\n pB3N = {'name': 'Updated recipe name', 'description': 'Updated recipe description'}\n bD7m = iLuo(YSCM.id)\n YKHO.client.put(bD7m, pB3N)\n YSCM.refresh_from_db()\n for H5ew in pB3N.keys():\n YKH...
[ "0.75662047", "0.75662047", "0.74840266", "0.74554235", "0.728135", "0.72437525", "0.72240394", "0.7187946", "0.7178871", "0.71630937", "0.7126219", "0.7114942", "0.7089214", "0.7086159", "0.707827", "0.7064971", "0.70573676", "0.70554703", "0.7037038", "0.70239145", "0.70221...
0.0
-1
Test updating a fact that is already stored.
def V9tH(YKHO): y0cW = YKHO.__message_prefix + '_test_update_existing' L1y7 = (y0cW, 'updated', '1') YKHO.assertTrue(YKHO.__client.push(L1y7)) sQC5.sleep(0.1) wyyA = Oxnf(pattern=(y0cW, '*', '*'), knowledge_base_name=YKHO.__knowledge_base_address) sQC5.sleep(0.1) GrmQ = (y0cW, 'updated', '1'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TylG(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n pass", "def IsIF(YKHO):\n _gUt = S8SU.create(TUKh, {'a': 'cat', 'b': 123})\n Aofo = S8SU.update(TUKh, _gUt, {'a': 'dog'})\n dixj = S8SU.get(TUKh)\n YKHO.assertEquals(len(dixj), 1)\n YKHO.assertEquals(dixj[0], {'_id'...
[ "0.7383334", "0.73819685", "0.73819685", "0.73147935", "0.70501614", "0.7018349", "0.6973628", "0.69690293", "0.6967638", "0.6905622", "0.6880792", "0.68458843", "0.6831093", "0.6826212", "0.68235284", "0.68137777", "0.6768379", "0.67260516", "0.6723089", "0.6722348", "0.6718...
0.7296989
4
Get image source URL
def D8Y_(YKHO, tnbS, iP7Q): QePW = VNUm(YKHO._config) AdjE = QePW.ReqUrl(tnbS[iP7Q], 'utf-8') C70D = AdjE.find('contentUrl') fwUe = AdjE.find('https://', C70D) TtHp = AdjE.find('"', fwUe) return AdjE[fwUe:TtHp]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qwnb(YKHO):\n YKHO.ensure_data()\n return YKHO.data['img']", "def eiuY(YKHO):\n return YKHO.img_url", "def qwnb(YKHO):\n try:\n bD7m = YKHO.image.url\n except:\n bD7m = ''\n return bD7m", "def kskO(YKHO) -> str:\n return YKHO.image_url", "def kskO(YKHO):\n if YKHO....
[ "0.8170878", "0.8170216", "0.8153172", "0.8125286", "0.8036578", "0.8036578", "0.80321217", "0.79507047", "0.79210013", "0.7915644", "0.79040694", "0.79040694", "0.79040694", "0.79040694", "0.79040694", "0.7857106", "0.78284967", "0.768196", "0.762877", "0.7608156", "0.759464...
0.0
-1
Load the model from a path
def tyeH(Emd4, GwO0, qIxc=None): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)", "def O5RJ(YKHO, uqvc: str):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\n return t2lc.load(eHNT)", "def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError...
[ "0.8799929", "0.87208503", "0.86829054", "0.84443605", "0.8360406", "0.8346478", "0.833811", "0.82901937", "0.82830554", "0.8277425", "0.8243188", "0.82402444", "0.81895894", "0.81829095", "0.8174283", "0.81225294", "0.81020933", "0.8052338", "0.8023611", "0.801457", "0.80072...
0.0
-1
Makes an environment and returns it
def SKR8(Emd4, qIxc, uRPr=None, U3hi=None): return dEu2(qIxc, env_kwargs=uRPr, load_path_normalise=U3hi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwQb():\n\n def PPff():\n sEAN = ch3p.make(I6G3).env\n return sEAN\n return PPff", "def I0_M():\n return zGKt.create_environment()", "def I0_M(GikI):\n if GikI in ['aws', 'local']:\n from retro_contest.local import make\n sEAN = make(game='SonicTheHedgehog-Genesis', ...
[ "0.78931475", "0.7772586", "0.7608438", "0.75601375", "0.7487228", "0.7391294", "0.73658025", "0.73298794", "0.72690666", "0.72428095", "0.724021", "0.7167197", "0.713636", "0.7125709", "0.70575386", "0.7055308", "0.7034522", "0.70280045", "0.7022832", "0.7011316", "0.7001198...
0.7127796
13
Load the model from a path
def tyeH(Emd4, GwO0, qIxc=None): with open(GwO0, 'rb') as eHNT: cGnr = t2lc.load(eHNT) Z_lw = Emd4() Z_lw.__dict__ = {**Z_lw.__dict__, **cGnr} Uj08 = Z_lw.name + '.pkl' if Hy7s.path.basename(GwO0) == Uj08: Uj08 = Z_lw.name + '_model.pkl' Z_lw.model = Z_lw.model_class.load(Hy7s.pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)", "def O5RJ(YKHO, uqvc: str):\n pass", "def O5RJ(Emd4, uqvc):\n pass", "def uyMl(YKHO, pmON):\n pmON = oAb3.Path(pmON)\n with pmON.open('rb') as eHNT:\n return t2lc.load(eHNT)", "def uyMl(YKHO, QpfX, pmON):\n raise NotImplementedError...
[ "0.8799929", "0.87208503", "0.86829054", "0.84443605", "0.8360406", "0.8346478", "0.833811", "0.82901937", "0.82830554", "0.8277425", "0.8243188", "0.82402444", "0.81895894", "0.81829095", "0.8174283", "0.81225294", "0.81020933", "0.8052338", "0.8023611", "0.801457", "0.80072...
0.0
-1
Makes an environment and returns it
def SKR8(Emd4, qIxc, uRPr=None, U3hi=None): return dEu2(qIxc, env_kwargs=uRPr, load_path_normalise=U3hi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwQb():\n\n def PPff():\n sEAN = ch3p.make(I6G3).env\n return sEAN\n return PPff", "def I0_M():\n return zGKt.create_environment()", "def I0_M(GikI):\n if GikI in ['aws', 'local']:\n from retro_contest.local import make\n sEAN = make(game='SonicTheHedgehog-Genesis', ...
[ "0.78931475", "0.7772586", "0.7608438", "0.75601375", "0.7487228", "0.7391294", "0.73658025", "0.73298794", "0.72690666", "0.72428095", "0.724021", "0.7167197", "0.713636", "0.7125709", "0.70575386", "0.7055308", "0.7034522", "0.70280045", "0.7022832", "0.7011316", "0.7001198...
0.7127796
14
Determine who will be Player A or Player B
def eCGt(YKHO): YKHO.setPlayers(mVZ4.A, mVZ4.B)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m9f3(YKHO, oyg0):\n if oyg0 == YKHO.get_player_a():\n return YKHO.get_player_b()\n if oyg0 == YKHO.get_player_b():\n return YKHO.get_player_a()", "def wNmq(YKHO):\n if YKHO.cur_player == tjUW:\n return A3Vt\n return tjUW", "def wNmq(Emd4, oyg0):\n return 0 if oyg0 == 1 e...
[ "0.76574266", "0.7644416", "0.75302875", "0.7519134", "0.7405305", "0.7176241", "0.7176241", "0.7093725", "0.7083302", "0.70126724", "0.69981635", "0.68466294", "0.6821164", "0.6738323", "0.66847384", "0.66708285", "0.66077614", "0.660567", "0.660567", "0.660567", "0.660567",...
0.0
-1
Normalizes an input composition to 100%. This is the 'standard' normalization routine.
def NkkI(mvm2): def yTBG(mvm2): BSK2 = mvm2 return {G1Hx: 100.0 * Ty9i / sum(BSK2.values()) for G1Hx, Ty9i in BSK2.items()} def ungV(mvm2): DZ4p = mvm2.copy() DZ4p['Sum'] = sum([DZ4p[bWgT] for bWgT in VW5b]) for iVRZ in DZ4p: if iVRZ in VW5b: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO):\n YKHO.scale(1 / YKHO.sum())", "def NkkI(VQ6Z):\n return VQ6Z / oyIN.sum(VQ6Z)", "def kwsU(YKHO):\n try:\n _5GE = 1.0 / YKHO.getNorm()\n except ZeroDivisionError:\n _5GE = 1.0\n return YKHO.scale(_5GE)", "def dSUc(YKHO):\n YKHO.normalisation[0] = oyIN.sum(YKHO....
[ "0.7295803", "0.71758777", "0.7124839", "0.7042853", "0.701527", "0.69900846", "0.6966051", "0.6958506", "0.69367", "0.68755317", "0.68591493", "0.6838984", "0.67973876", "0.67886204", "0.67745656", "0.6759288", "0.67526686", "0.6750786", "0.6739461", "0.673902", "0.67293656"...
0.0
-1
Normalises major element oxide wt% to 100%, assuming it is volatilefree. If H2O or CO2 are passed to the function, their unnormalized values will be retained in addition to the normalized nonvolatile oxides, summing to >100%.
def UCS_(mvm2): def qpEe(mvm2): HBfW = rLdf.Series({}) for YRSS in list(YLT2.index): if YRSS != 'H2O' and YRSS != 'CO2': HBfW[YRSS] = YLT2[YRSS] HBfW = HBfW / oyIN.sum(HBfW) * 100 if 'H2O' in YLT2.index: HBfW['H2O'] = YLT2['H2O'] if 'C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(YKHO, WKvO: typing.Union[np.ndarray, float]) -> laHg.Union[oyIN.ndarray, float]:\n return WKvO / _UtD.constants.OBJECTIVE_PROB_INTERACT_MAX", "def NkkI(YKHO):\n YKHO.mass = YKHO.rho.sum() / YKHO.weight\n YKHO.rho /= YKHO.mass", "def xh5M(Xe2b, JQBZ, G2qV, f0tD):\n return (Xe2b - JQBZ / G2q...
[ "0.6208089", "0.60933036", "0.60612637", "0.6008627", "0.58974063", "0.5881862", "0.5876413", "0.5869691", "0.58142453", "0.5795092", "0.57942474", "0.57884496", "0.5749321", "0.5741796", "0.5740634", "0.5731439", "0.5730048", "0.5723428", "0.57228607", "0.57003236", "0.56879...
0.0
-1
Returns H2O and CO2 concentrations in wt% or mole fraction in a fluid in equilibrium with the given sample(s) at the given P/T condition.
def NtHH(YKHO, ovGo, CJ2p, CYNA=False, C3ST='MagmaSat', **B2fa): nPrm = YKHO.preprocess_sample(YKHO.data) GZzN = nPrm.copy() if isinstance(ovGo, str): gRLn = True D1P9 = ovGo elif isinstance(ovGo, float) or isinstance(ovGo, int): gRLn = False else: raise DQrD('temp mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NtHH(YKHO, mvm2, ovGo, CJ2p, PJWX=False, **B2fa):\n mvm2 = YKHO.preprocess_sample(mvm2)\n if isinstance(ovGo, float) or isinstance(ovGo, int):\n pass\n else:\n raise DQrD('temp must be type float or int')\n if isinstance(CJ2p, float) or isinstance(CJ2p, int):\n pass\n else:\...
[ "0.6171367", "0.6099936", "0.6099936", "0.597741", "0.5942744", "0.5903188", "0.5723471", "0.55772716", "0.5501431", "0.54359764", "0.5412008", "0.5366015", "0.53583306", "0.5333331", "0.53193223", "0.5310221", "0.53000116", "0.52723396", "0.52723396", "0.5243877", "0.5235538...
0.5632904
7
Calculates the fugacity of CO2 in a mixed CO2H2O fluid. Above 1050C, it assumes H2O and CO2 do not interact, as the equations are not defined beyond this point.
def FkX3(YKHO, CJ2p, ovGo, XRiX, **B2fa): if XRiX == 0: return 0 elif ovGo >= 1050.0: return CJ2p * oyIN.exp(YKHO.lnPhi_mix(CJ2p, ovGo, 1.0)) * XRiX else: return CJ2p * oyIN.exp(YKHO.lnPhi_mix(CJ2p, ovGo, XRiX)) * XRiX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _wc6(xSDI, nlJ7):\n return (xSDI / nlJ7.solCon['a']) ** (1 / nlJ7.solCon['b'])", "def rZQ3(weZN, MVIn):\n return (weZN / MVIn.solCon['a']) ** (1 / MVIn.solCon['b'])", "def O4Xr(weZN, MVIn, dYyg, Kt_s, V6IE, JEpF, mWFP='burguisser2015'):\n if mWFP == 'burguisser2015':\n return rZQ3(weZN, MVI...
[ "0.76444393", "0.76238567", "0.7260531", "0.7132999", "0.7022094", "0.69895256", "0.6931793", "0.66748893", "0.6472296", "0.64242965", "0.64242965", "0.64242965", "0.64242965", "0.6364602", "0.6362757", "0.6330628", "0.6273334", "0.62434596", "0.6239913", "0.6237561", "0.6184...
0.55791533
50
Calculates the fugacity of a pure CO2 fluid, or a mixed fluid assuming ideal mixing. Implements eqn (14) of Zhang and Duan (2009). Paramters pressure float Pressure in bars temperature float Temperature in degC X_fluid float Mole fraction of CO2 in the fluid. Default is 1.0. Returns float Fugacity of CO2, standard stat...
def FkX3(YKHO, CJ2p, ovGo, XRiX=1.0, **B2fa): V6IE = CJ2p / 10 Kt_s = ovGo + 273.15 jzdc = oyIN.array([0.0, 0.029517729893, -6337.56452413, -275265.428882, 0.00129128089283, -145.797416153, 76593.8947237, 2.58661493537e-06, 0.52126532146, -139.839523753, -2.36335007175e-08, 0.00535026383543, -0.27110649951,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FkX3(YKHO, CJ2p, ovGo, XRiX, **B2fa):\n if XRiX == 0:\n return 0\n elif ovGo >= 1050:\n return CJ2p * oyIN.exp(YKHO.lnPhi_mix(CJ2p, ovGo, 1.0)) * XRiX\n else:\n return CJ2p * oyIN.exp(YKHO.lnPhi_mix(CJ2p, ovGo, XRiX)) * XRiX", "def FkX3(YKHO, CJ2p, ovGo, XRiX, **B2fa):\n if X...
[ "0.74162364", "0.74087894", "0.7383369", "0.68994015", "0.68994015", "0.6113843", "0.6043947", "0.6002045", "0.59720534", "0.59720534", "0.59720534", "0.59720534", "0.596377", "0.58076847", "0.58076847", "0.5784973", "0.5784973", "0.57838196", "0.5763349", "0.56937814", "0.56...
0.6960487
3
Calculates the fugacity of CO2 in a pure or mixed H2OCO2 fluid (assuming ideal mixing).
def FkX3(YKHO, CJ2p, ovGo, XRiX=1.0, **B2fa): X9uI = YKHO.MRK(CJ2p, ovGo + 273.15) return X9uI * XRiX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _wc6(xSDI, nlJ7):\n return (xSDI / nlJ7.solCon['a']) ** (1 / nlJ7.solCon['b'])", "def rZQ3(weZN, MVIn):\n return (weZN / MVIn.solCon['a']) ** (1 / MVIn.solCon['b'])", "def RVxU(a_eH, o6bB):\n return (a_eH / o6bB.solCon['a']) ** (1 / o6bB.solCon['b'])", "def O4Xr(weZN, MVIn, dYyg, Kt_s, V6IE, JEp...
[ "0.7593084", "0.75898004", "0.7151757", "0.71218836", "0.7024751", "0.6899967", "0.6799667", "0.67756575", "0.64879316", "0.64879316", "0.64879316", "0.64879316", "0.6315767", "0.6296997", "0.627143", "0.61605597", "0.61500734", "0.6131247", "0.60671896", "0.60671896", "0.601...
0.0
-1
Calculates the fugacity of H2O in a pure or mixed H2OCO2 fluid (assuming ideal mixing).
def FkX3(YKHO, CJ2p, ovGo, XRiX=1.0, **B2fa): X9uI = YKHO.MRK(CJ2p, ovGo + 273.15) return X9uI * XRiX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _wc6(xSDI, nlJ7):\n return (xSDI / nlJ7.solCon['a']) ** (1 / nlJ7.solCon['b'])", "def RVxU(a_eH, o6bB):\n return (a_eH / o6bB.solCon['a']) ** (1 / o6bB.solCon['b'])", "def lcR9(xSDI, nlJ7, mWFP='burguisser2015'):\n if mWFP == 'burguisser2015':\n return _wc6(xSDI, nlJ7)", "def aRUF(a_eH, o...
[ "0.78084815", "0.73443216", "0.7246832", "0.7091154", "0.690127", "0.65943563", "0.6425345", "0.6058552", "0.5895972", "0.5871294", "0.5871294", "0.5871294", "0.5871294", "0.58467776", "0.5779409", "0.57518876", "0.5724675", "0.56684816", "0.5647696", "0.5642679", "0.5614033"...
0.0
-1
Returns 1.0 if a pure CO2 fluid is saturated. Returns 0.0 if a pure CO2 fluid is undersaturated.
def NtHH(YKHO, CJ2p, mvm2, **B2fa): if YKHO.calculate_saturation_pressure(sample=mvm2, **B2fa) < CJ2p: return 0.0 else: return 1.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slIO(KCHu):\n if KCHu.dtype is None:\n return 0.5\n if not KCHu.dtype in ppyF.datatypes.float_dtypes:\n return 0\n else:\n return 1", "def plmM(YKHO):\n return YKHO.outl[0].h.val_SI - el3_(YKHO.outl[0].get_flow(), 0)", "def dU3c(YKHO) -> float:\n raise NotImplementedErro...
[ "0.6085134", "0.5948569", "0.5883991", "0.5827049", "0.57495385", "0.5732901", "0.5702249", "0.56853974", "0.56853974", "0.5670412", "0.5581036", "0.556429", "0.5548071", "0.5540525", "0.553534", "0.55219537", "0.55219537", "0.5520106", "0.5511702", "0.5505864", "0.54923975",...
0.587372
4
Returns sample, renormlized so that the major element oxides (excluding volatiles) sum to 100%. Normalization must be done this way as the compositional dependence of the solubility takes the mole fractions of Na2O and K2O as inputs, presumably assuming no volatiles in the bulk composition. Volatile concentrations are ...
def B8lC(YKHO, mvm2): return UCS_(mvm2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UCS_(mvm2):\n\n def qpEe(mvm2):\n HBfW = rLdf.Series({})\n for YRSS in list(YLT2.index):\n if YRSS != 'H2O' and YRSS != 'CO2':\n HBfW[YRSS] = YLT2[YRSS]\n HBfW = HBfW / oyIN.sum(HBfW) * 100\n if 'H2O' in YLT2.index:\n HBfW['H2O'] = YLT2['H2O']...
[ "0.6530794", "0.6172033", "0.57744044", "0.5772201", "0.5772201", "0.5552549", "0.55031675", "0.5484385", "0.54450524", "0.54450524", "0.540366", "0.538876", "0.5373348", "0.5360511", "0.5353403", "0.53122157", "0.530686", "0.52948755", "0.5292635", "0.5291496", "0.52818424",...
0.5296164
17
Returns sample, normalized, holding volatile concentrations constant.
def B8lC(YKHO, mvm2): return WyDe(mvm2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cYra(YKHO):\n return YKHO.C / (YKHO.count - 1)", "def rmCJ(YKHO):\n Os_7 = 0.6\n YylR = oyIN.pi * 0.7\n PtXs = RIrr(duration=150, amp=Os_7, angle=YylR)\n YKHO.assertEqual(PtXs.get_waveform().samples[0], Os_7 * oyIN.exp(1j * YylR))\n YKHO.assertEqual(len(PtXs.get_waveform().samples), 150)", ...
[ "0.6864985", "0.62126726", "0.59994555", "0.59294903", "0.58686936", "0.58621013", "0.583279", "0.58135563", "0.58135563", "0.5800813", "0.5800813", "0.57903814", "0.5761465", "0.57334733", "0.5730777", "0.5708078", "0.5687616", "0.5658243", "0.56503266", "0.562819", "0.56104...
0.5982362
4
Calculates the pressure at which a pure H2O fluid is saturated, for the given sample composition and H2O concentration. Calls the scipy.root_scalar routine, which makes repeated called to the calculate_dissolved_volatiles method.
def GZ9x(YKHO, mvm2, XRiX=1.0, **B2fa): if 'H2O' not in mvm2: raise DQrD('sample must contain H2O') if mvm2['H2O'] < 0: raise DQrD('H2O concentration must be greater than 0 wt%.') try: kKRg = yKdS(YKHO.root_saturation_pressure, x0=100.0, x1=1000.0, args=(mvm2, B2fa)).root except:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GZ9x(YKHO, mvm2, **B2fa):\n if 'H2O' not in mvm2:\n raise DQrD('sample must contain H2O')\n if mvm2['H2O'] < 0:\n raise DQrD('H2O concentration must be greater than 0 wt%.')\n if mvm2['H2O'] < YKHO.calculate_dissolved_volatiles(sample=mvm2, pressure=0, **B2fa):\n return oyIN.nan\n...
[ "0.65665543", "0.6535731", "0.6497961", "0.64566076", "0.6451008", "0.64460844", "0.63889116", "0.63290066", "0.63062215", "0.6254311", "0.6242146", "0.62394065", "0.6214156", "0.6203236", "0.6203236", "0.617288", "0.61695236", "0.61695236", "0.61455977", "0.6144958", "0.6134...
0.6589142
0
Calculates the mole fraction of molecular H2O dissolved when in equilibrium with a pure H2O fluid at 1200C, using Eqn (2) of Dixon (1997).
def kUgK(YKHO, CJ2p, mvm2, XRiX=1.0, **B2fa): ztMa = 12 MlT5 = 1 A3Vt = 83.15 wGZt = 1473.15 tgvi = YKHO.XH2O_Std(mvm2) FkX3 = YKHO.fugacity_model.fugacity(pressure=CJ2p, X_fluid=XRiX, **B2fa) return tgvi * FkX3 * oyIN.exp(-ztMa * (CJ2p - MlT5) / (A3Vt * wGZt))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xwSJ(YKHO):\n CVOT = {}\n CVOT['H2O'] = -286\n CVOT['H2'] = 0\n CVOT['O2'] = 0\n E3D9 = V1F1['H2']\n MNd1 = -(2 * CVOT['H2O'] - 2 * CVOT['H2'] + CVOT['O2']) / (2 * E3D9)\n return MNd1 * 1000", "def C9lb(x0kE):\n sCqH = x0kE.atom_charges()\n jNOo = x0kE.atom_coords()\n JQck = 0\n...
[ "0.64676905", "0.6443432", "0.63267094", "0.62923616", "0.62143546", "0.6203933", "0.616947", "0.61112976", "0.60581005", "0.5951739", "0.593545", "0.5927982", "0.59193146", "0.59156954", "0.5892255", "0.58768135", "0.5869317", "0.58558184", "0.5851806", "0.5840823", "0.58349...
0.5484969
56
Calculates the mole fraction of molecular H2O dissolved when in equilibrium with pure H2O vapour at 1200C and 1 bar, using Eq (9) of Dixon (1997).
def qTnP(YKHO, mvm2): if mvm2['SiO2'] > 48.9: return 3.28e-05 else: return -3.04e-05 + 1.29e-06 * mvm2['SiO2']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YM5J(N9D1):\n IMgK = jRZH(N9D1)\n XTYg = yTgt(N9D1)\n return round(IMgK / XTYg, 2) if XTYg else oyIN.float('nan')", "def XjFz(YKHO, WpNh):\n return 1 - YKHO.mole_fraction_solute(WpNh)", "def _wc6(xSDI, nlJ7):\n return (xSDI / nlJ7.solCon['a']) ** (1 / nlJ7.solCon['b'])", "def bd0Y(YKHO):\n...
[ "0.6512689", "0.6477999", "0.62744176", "0.62720287", "0.62329566", "0.61823726", "0.61683476", "0.61585206", "0.61280435", "0.6126559", "0.6117702", "0.6095219", "0.6079552", "0.6062988", "0.6051168", "0.60454565", "0.6022903", "0.6022502", "0.5998234", "0.59934247", "0.5965...
0.0
-1
Method called by scipy.root_scalar when finding the saturation pressure using the calculate_saturation_pressure method. Implements Eq (4) of Dixon (1997).
def R8NX(YKHO, XyUg, WXzd): k0lF = 0.403 tjUW = 15.333 Nq1b = 10.894 XyUg = oyIN.exp(XyUg) OXAZ = XyUg ** 2.0 / (WXzd * (1.0 - XyUg - WXzd)) yLHq = -oyIN.log(OXAZ) RKYb = k0lF + tjUW * XyUg + Nq1b * WXzd return RKYb - yLHq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pvov(YKHO, CJ2p, mvm2, B2fa):\n return YKHO.calculate_dissolved_volatiles(pressure=CJ2p, sample=mvm2, **B2fa) - mvm2['H2O']", "def pvov(YKHO, CJ2p, mvm2, B2fa):\n return YKHO.calculate_dissolved_volatiles(pressure=CJ2p, sample=mvm2, **B2fa) - mvm2['CO2']", "def pvov(YKHO, CJ2p, mvm2, B2fa):\n retu...
[ "0.81247795", "0.8121755", "0.81036615", "0.8095506", "0.79327905", "0.79327905", "0.792213", "0.792213", "0.79104424", "0.7897672", "0.7886552", "0.78707445", "0.77784157", "0.7747032", "0.7721157", "0.76941437", "0.7667523", "0.7622634", "0.7607963", "0.7454545", "0.7438494...
0.0
-1
Calculates the pressure at which a pure H2O fluid is saturated, for the given sample composition and H2O concentration. Calls the scipy.root_scalar routine, which makes repeated called to the calculate_dissolved_volatiles method.
def GZ9x(YKHO, ovGo, mvm2, **B2fa): if type(mvm2) != dict and type(mvm2) != rLdf.core.series.Series: raise DQrD('sample must be a dict or a pandas Series.') if 'H2O' not in mvm2: raise DQrD('sample must contain H2O.') if mvm2['H2O'] < 0.0: raise DQrD('Dissolved H2O must be greater th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GZ9x(YKHO, mvm2, XRiX=1.0, **B2fa):\n if 'H2O' not in mvm2:\n raise DQrD('sample must contain H2O')\n if mvm2['H2O'] < 0:\n raise DQrD('H2O concentration must be greater than 0 wt%.')\n try:\n kKRg = yKdS(YKHO.root_saturation_pressure, x0=100.0, x1=1000.0, args=(mvm2, B2fa)).root\...
[ "0.65881544", "0.65658104", "0.6534889", "0.6498551", "0.6455305", "0.645035", "0.64458877", "0.6387837", "0.6327873", "0.6304822", "0.6254133", "0.624146", "0.6238374", "0.6212922", "0.6201847", "0.6201847", "0.616801", "0.616801", "0.6144441", "0.61439556", "0.61329144", ...
0.61721224
16