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
Plot spectrogram of the signal.
def AOFb(YKHO, **B2fa): NArs = {'xlim': None, 'ylim': None, 'clim': None, 'NFFT': 4096, 'noverlap': 128, 'title': 'Spectrogram', 'xlabel': '$t$ in s', 'ylabel': '$f$ in Hz', 'clabel': 'SPL in dB', 'colorbar': True} NArs.update(B2fa) if YKHO.channels > 1: raise ValueError('Cannot plot spectrogram of ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AOFb(YKHO, _ao8, pmON='', nUHY=False, xkzz=False):\n LZpg = QrM1.figure(frameon=False)\n aNZO = QrM1.Axes(LZpg, [0.0, 0.0, 1.0, 1.0])\n aNZO.set_axis_off()\n LZpg.add_axes(aNZO)\n Xf84 = gLif.display.specshow(gLif.amplitude_to_db(_ao8, ref=oyIN.max), y_axis='log', x_axis='time')\n if nUHY:\n ...
[ "0.788542", "0.7529082", "0.7463782", "0.7350965", "0.72970307", "0.7271104", "0.72179", "0.71738636", "0.7147753", "0.7147753", "0.71345264", "0.7114383", "0.70964265", "0.70901823", "0.70282686", "0.691008", "0.685368", "0.6818367", "0.67900455", "0.6786742", "0.6768095", ...
0.7846685
1
Apply 1/Noctaves bandpass filters.
def eNYD(YKHO, f8a3=None, wA3x=1, T4Wy=8, blK_=True, xYKZ=False): if f8a3 is None: f8a3 = CHUI.signal.OctaveBand(fstart=LBzx[0], fstop=YKHO.fs / 2.0, fraction=wA3x) f8a3, eEui = CHUI.signal.bandpass_fractional_octaves(YKHO, YKHO.fs, f8a3, wA3x, T4Wy, blK_, zero_phase=xYKZ) return (f8a3, type(YKHO)(e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dbOb(YKHO, d6pt, *qIxc, zZcM, zr3f=None, tjyO=None, AskH=None, Vb5F=1, T4Wy=5):\n bGrB = qIxc\n YRbF = YKHO.index.get_pos(d6pt)\n gXuE = getattr(YKHO, zZcM)[YRbF]\n bq_o = 0.5 * Vb5F\n if tjyO is None:\n Fg_i, jzdc = Gaon.butter(T4Wy, AskH / bq_o, btype='high')\n elif AskH is None:\n ...
[ "0.7056772", "0.68991005", "0.6764517", "0.674547", "0.6734394", "0.6700682", "0.66480476", "0.6552044", "0.65476143", "0.6499123", "0.64710927", "0.6452523", "0.6438506", "0.6428667", "0.63938254", "0.63870835", "0.6379548", "0.63501936", "0.6324516", "0.6315859", "0.6256860...
0.0
-1
Returns the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.82884127", "0.81790197", "0.81133276", "0.80771667", "0.8034278", "0.8033554", "0.80308247", "0.80084264", "0.80069965", "0.8006537", "0.8001786", "0.7995223", "0.79910976", "0.797958", "0.7979288", "0.79615504", "0.79525757", "0.79456323", "0.79456323", "0.79430073", "0.7...
0.7771406
51
Check if the cookie is valid.
def vpb6(YKHO): if not Hy7s.path.isfile(YKHO.COOKIE_FILE): return False with open(YKHO.COOKIE_FILE, 'r') as zd_u: ku7L = qQXR.load(zd_u) YKHO.__session.cookies.update(ku7L) YKHO.__session.headers.update(YKHO.HEADERS) sWfS = YKHO.__session.get(YKHO.BASE_URL + '/api/problems/algorithms...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLDt(YKHO, zatQ):\n dsE5.virtual('SB_ServiceState.valid_cookie')", "def SGVO(YKHO, zatQ):\n zrIJ = YKHO.domain\n SEPN = zatQ['domain']\n d6pt = SEPN.rfind(zrIJ)\n if d6pt == 0:\n NLDt = True\n elif d6pt == 1:\n NLDt = SEPN[d6pt - 1] == '.'\n else:\n NLDt = False\n ...
[ "0.84671843", "0.77054393", "0.7460507", "0.7185922", "0.7042492", "0.7001178", "0.69942236", "0.69363266", "0.6872954", "0.6792106", "0.6735261", "0.67287445", "0.6653774", "0.65587556", "0.6516379", "0.65050817", "0.6497084", "0.64705664", "0.64705664", "0.64619315", "0.642...
0.0
-1
Returns I(r) = ive(1, r) / ive(0, r) Notes I(r) ~ 1 for r >> 1
def Z7qz(Mkmy): tAX0 = 1000000000.0 pdhd = oyIN.ones_like(Mkmy) QyVM = Mkmy < tAX0 pdhd[QyVM] = WLb7(1, Mkmy[QyVM]) / WLb7(0, Mkmy[QyVM]) return pdhd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ABP(H0q3, XdG6):\n return (H0q3 ** 2 + XdG6 ** 2) ** 2 / (2 * H0q3 * XdG6 ** 2)", "def XJwA(YKHO, OnWS=10):\n ZbWC = 1\n Xn71 = YKHO.div(2 ** OnWS)\n ZbWC -= Xn71.square()\n Xn71 *= 2\n for bGrB in range(OnWS - 1):\n pHXX = ZbWC.square()\n ftz7 = Xn71.square()\n Xn71 =...
[ "0.6926789", "0.6366525", "0.6338073", "0.63028044", "0.62360716", "0.62082475", "0.6180876", "0.6177207", "0.60950637", "0.6072387", "0.60639536", "0.60395247", "0.60171324", "0.5995509", "0.59742117", "0.5954137", "0.59479153", "0.58836836", "0.5868547", "0.585712", "0.5841...
0.7752226
0
Initializes a Root instance
def FIMM(YKHO, **B2fa): super(oGqc, YKHO).__init__() YKHO.enterprises = sCdx.fetcher_with_object(parent_object=YKHO, relationship='child') YKHO._compute_args(**B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DgQj(YKHO, tk5Y):\n raise NotImplementedError", "def FIMM(YKHO, tk5Y=None):\n YKHO.root = tk5Y", "def FIMM(YKHO, tk5Y=None):\n YKHO.root = tk5Y", "def FIMM(YKHO, tk5Y):\n YKHO.root = tk5Y", "def FIMM(YKHO, ImXt=None):\n YKHO.root = o7DN(ImXt)", "def FIMM(YKHO, tk5Y=None):\n YKHO.roo...
[ "0.800456", "0.78371984", "0.78371984", "0.78177273", "0.7782129", "0.7759839", "0.76974285", "0.75629187", "0.7544637", "0.7488417", "0.7469752", "0.7423965", "0.742111", "0.7399981", "0.7399981", "0.73899007", "0.73827887", "0.73582", "0.7355422", "0.7355422", "0.7355422", ...
0.0
-1
Determine if a feature is enabled. For experiments, this induces a bucketing event by calling self._is_experiment_enabled.
def n30Z(YKHO, CBIr=None, f8vc=None, UhTt=None, BZlZ=None): _Fei = YKHO.config YSA3 = dict(user=CBIr, subverbify=f8vc, subdomain=UhTt, oauth_client=BZlZ) if YKHO._is_config_enabled(_Fei, **YSA3): return True if YKHO._is_percent_enabled(_Fei, user=CBIr): return True ftWC = YKHO.config...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L6LG(YKHO, mWFP: str) -> bool:\n w2B8 = YKHO._sonic_db.get_running_db_connector()\n if w2B8 is None:\n return False\n _Fei = w2B8.get_entry(g5bZ, mWFP)\n return n30Z(_Fei)", "def L6LG(BZ2A):\n return vanp(BZ2A)", "def n30Z(YKHO):\n return YKHO.is_available(support=YKHO)[0] and YKHO...
[ "0.73413026", "0.7237952", "0.7108039", "0.7031432", "0.6990551", "0.6979026", "0.69643086", "0.6960977", "0.6913704", "0.68809265", "0.68753433", "0.68753433", "0.6837831", "0.6837831", "0.6837831", "0.6837831", "0.6837831", "0.6837831", "0.6831846", "0.67977387", "0.6797738...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.1 ** (qtWj // 30) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.79914284", "0.79403204", "0.78895485", "0.7827818", "0.78224415", "0.78168905", "0.78105193", "0.780234", "0.7790918", "0.7788021", "0.7781609", "0.7765116", "0.7764394", "0.77607834", "0.7748697", "0.77389574", "0.77307045", "0.77242804", "0.77119035", "0.7708429", "0.770...
0.75790894
68
Computes the precision 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 rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
test getting user with wrong or expired token
def d3_T(YKHO): YKHO.client.credentials(HTTP_AUTHORIZATION='Token ' + 'wrongtokenhere') geh0 = YKHO.client.get(YKHO.user_url, YKHO.login_data, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN) assert geh0.data['detail'] == 'Invalid token'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rejI(x0hE: TestClient) -> None:\n geh0 = x0hE.get('/users/teached/', headers={'Authorization': 'Bearer wrong token'})\n assert geh0.status_code == 401", "def XXqA(YKHO):\n nPrm = {'username': YKHO.username, 'password': YKHO.password}\n geh0 = YKHO.client.post(YKHO.get_token_url, nPrm, format='jso...
[ "0.7726426", "0.7637711", "0.7555416", "0.7534346", "0.74736863", "0.7386234", "0.7348647", "0.73037195", "0.7298901", "0.7288561", "0.7273807", "0.7256511", "0.722354", "0.7216722", "0.7188307", "0.71754986", "0.7171973", "0.7163849", "0.7153024", "0.7148675", "0.7142727", ...
0.85034335
0
Test that coefficients in lp satisfy orthogonality condition
def N8qk(YKHO): from daubfilt import daubfilt, number_of_filters for XP5J in range(number_of_filters): lWPh = 2 * (XP5J + 1) V6IE = lWPh / 2 ywwl = V6IE - 1 hl9z, A90d = daubfilt(lWPh) for G1Hx in range(1, ywwl + 1): z1Rg = HJVe(G1Hx, hl9z) if G1Hx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ssoP(YKHO):\n for Z9rn in YKHO.constraints:\n if not (isinstance(Z9rn, (NBTx, TxWX)) or Z9rn.args[0].is_pwl()):\n return False\n for SRYB in YKHO.variables():\n if SRYB.is_psd() or SRYB.is_nsd():\n return False\n return YKHO.is_dcp() and YKHO.objective.args[0].is_pw...
[ "0.6677765", "0.61494505", "0.60364306", "0.6034915", "0.5999916", "0.5983598", "0.5977756", "0.59314924", "0.585547", "0.5689265", "0.5668124", "0.564089", "0.56038636", "0.55797327", "0.5553725", "0.548767", "0.5465841", "0.5454122", "0.54422784", "0.5440291", "0.5426392", ...
0.6072681
2
Returns primary FWHM in arcsec
def Isy5(ocYX, NrEI): return 1.13 * yvY1.c.value / (ocYX * 1000000000.0) / NrEI / oyIN.pi * 180.0 * 3600.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XXgC(kTwQ):\n EhIg = aevO.c / (kTwQ * 10 ** 9)\n rXfu = 1.22 * EhIg / aevO.D\n return rXfu", "def rXfu(QTg7=QTg7['H2O'][0] * 1000000000.0, RjsR=3.5, PXGI='arcsec'):\n rXfu = 1.2 * uwaB.c / QTg7 / RjsR\n if PXGI == 'arcsec':\n rXfu *= 180 / epAf.pi * 3600\n return rXfu", "def i2d7(Y...
[ "0.6851496", "0.6403933", "0.5875188", "0.58325404", "0.5832223", "0.58221", "0.58201265", "0.58163047", "0.5785397", "0.57808864", "0.5775231", "0.5762647", "0.57583374", "0.572092", "0.5697088", "0.56783766", "0.5651194", "0.5644376", "0.560136", "0.5596695", "0.5535969", ...
0.52203023
89
Compute the continuum sensitivity for a single pointing For spectral scans, the sensitivity is computed for one tuning, not the full spectral scan.
def y937(nPrm, cIIR): SVK5 = nPrm[K32v][cIIR] opqL = nPrm[LxpE][cIIR] ZkeB = nPrm[NND4][cIIR] hHs8 = nPrm[q4HO][cIIR] kKYv = zVSG(nPrm, cIIR) if ZkeB <= 0 or kKYv <= 0: PVOF = oyIN.nan raise Exception('Error computing continuum sensitivity') else: CMyk = SVK5 * oyIN.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYBV(YKHO):\n return YKHO.TP / (YKHO.TP + YKHO.FN)", "def BYBV(YKHO):\n return YKHO._sensitivity", "def BYBV(YKHO) -> int:\n return YKHO._sensitivity", "def ROku(YKHO, Z9rn):\n M4N3 = YKHO.selectedDevice(Z9rn)\n yv8o = (yield M4N3.query('SCAL?'))\n yv8o = sYTU(int(yv8o) - 1)\n yv8o =...
[ "0.6448586", "0.6368547", "0.62367487", "0.62095404", "0.62033784", "0.61256003", "0.6123149", "0.6014376", "0.6011519", "0.60047156", "0.58268464", "0.5786319", "0.5771499", "0.5761736", "0.5676636", "0.5660012", "0.56379724", "0.56316334", "0.56241447", "0.56217045", "0.562...
0.6235239
3
Gets the force_redirect_config of this UpdateDomainMultiCertificatesRequestBodyContent.
def OYvz(YKHO): return YKHO._force_redirect_config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OYvz(YKHO, OYvz):\n YKHO._force_redirect_config = OYvz", "def Di79(YKHO) -> h8nf[qe4Y.Input['DomainNewCertificateConfigArgs']]:\n return qe4Y.get(YKHO, 'certificate_config')", "def Di79(YKHO) -> h8nf[qe4Y.Input['DomainNewCertificateConfigArgs']]:\n return qe4Y.get(YKHO, 'certificate_config')", "...
[ "0.59476936", "0.55768484", "0.55768484", "0.5447485", "0.54456097", "0.5157821", "0.51550823", "0.50722927", "0.5053411", "0.494892", "0.4941839", "0.49157852", "0.48832437", "0.48772264", "0.47796154", "0.47691777", "0.4767185", "0.47544876", "0.47322083", "0.47313574", "0....
0.6797337
0
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Factory for getting a list of TensorFlow hooks for training by name.
def o9q9(NArs, **B2fa): if not vPBo.hooks: return [] pu8V = vPBo.hooks.split(',') U5yT = [] for mWFP in pu8V: IMmf = YLVB.get(mWFP.strip().lower()) if IMmf is None: raise ValueError('Unrecognized training hook requested: {}'.format(mWFP)) else: Ylb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f8x_():\n mMqn = {'loss': N77f}\n Qm3f = ZylS.train.LoggingTensorHook(tensors=mMqn, every_n_iter=2)\n return [Qm3f]", "def f8x_(YKHO, mWFP):\n if not mWFP in YKHO._manager.resources.keys():\n raise ValueError('{0} is not a valid command.'.format(mWFP))\n return getattr(YKHO._manager.res...
[ "0.66220045", "0.63254946", "0.62325054", "0.61522096", "0.6096975", "0.59883493", "0.58856195", "0.5810598", "0.5787957", "0.5696865", "0.5695999", "0.56869423", "0.5670808", "0.5670808", "0.5595768", "0.551663", "0.55061823", "0.54900134", "0.54876786", "0.5481635", "0.5433...
0.76960325
0
Function to get LoggingTensorHook.
def GYtd(NArs, **B2fa): if vPBo.log_loss_every_n_iters > 0: return D0yK.LoggingTensorHook(tensors=NArs['tensors_to_log'], samples_per_step=NArs['samples_per_step'], every_n_iters=vPBo.log_loss_every_n_iters) else: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GYtd(NArs, **B2fa):\n if vPBo.log_loss_every_n_iters > 0:\n return nZSz(tensors=NArs['tensors_to_log'], samples_per_step=NArs['samples_per_step'], every_n_iters=vPBo.log_loss_every_n_iters)\n else:\n pass", "def f8x_():\n mMqn = {'loss': N77f}\n Qm3f = ZylS.train.LoggingTensorHook(t...
[ "0.78299654", "0.75822914", "0.663134", "0.6469976", "0.64600605", "0.6396091", "0.61349297", "0.6010953", "0.5966385", "0.5940513", "0.593679", "0.5910968", "0.5889507", "0.5800275", "0.57959694", "0.57825965", "0.5759605", "0.5734279", "0.5730143", "0.5727171", "0.5689495",...
0.78057665
1
Close all resources & write any images remaining in image_q.
def MvZX(YKHO): YKHO.keep_writing = False N5MO(1) while len(YKHO.image_q) > 0: YKHO.write_one_image() pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DDI8(YKHO) -> None:\n try:\n if not YKHO._truncate:\n YKHO._write_remaining_pages()\n YKHO._write_image_description()\n finally:\n try:\n YKHO._fh.close()\n except Exception:\n pass", "def GKyj(YKHO):\n YKHO.image.close()", "def Os4s(YKH...
[ "0.6011464", "0.59918857", "0.59309655", "0.58761215", "0.5855973", "0.58230776", "0.5817102", "0.5777663", "0.5756946", "0.57377887", "0.57138", "0.56804216", "0.5671005", "0.56672853", "0.56556207", "0.5638152", "0.5637934", "0.56374425", "0.561415", "0.56115305", "0.559562...
0.82690436
0
Chooses an activity at random from the given folder.
def YWj5(n1tH=yGXA): xAU6 = [] for nUeQ in Hy7s.scandir(n1tH): if nUeQ.name[-5:] == '.json': with open(nUeQ.path, 'r') as eHNT: xAU6.extend(qQXR.loads(eHNT.read())) MTKo = tuKI.choice(xAU6) eT6f = Xp6k(MTKo['type']) return ZOrr.Activity(type=eT6f, name=MTKo['value...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iScq(YKHO, FGW3: int) -> list:\n if YKHO.activities is None:\n print('No activities')\n return None\n elif len(YKHO.activities) >= FGW3:\n return YKHO.activities.sample(FGW3, replace=False)\n else:\n print('The number of activities is lower ', 'than the size of the desired ...
[ "0.6340082", "0.6153209", "0.6085218", "0.6078574", "0.60095555", "0.59846365", "0.5942148", "0.5930174", "0.59224546", "0.58137786", "0.57943416", "0.5791169", "0.57679373", "0.57567", "0.5740304", "0.5740197", "0.57228583", "0.56848305", "0.56807137", "0.5662559", "0.565205...
0.74969214
0
Initialize with x and ydata. Both must be samelength (i.e. parallel) numpy arrays.
def FIMM(YKHO, bK54, ELWn): YKHO.xdata = bK54 YKHO.ydata = ELWn YKHO._rasters = ZUBR.WeakValueDictionary() return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO, LVAh):\n YKHO.x = WKvO\n YKHO.y = LVAh", "def RiKd(YKHO, WKvO, LVAh):\n YKHO.train_x = ior9(WKvO)\n YKHO.train_y = LVAh\n YKHO._set_gp_data_to_dataset()\n return YKHO", "def FIMM(YKHO, WKvO, LVAh):\n YKHO.x = oyIN.asarray(WKvO)\n YKHO.y = oyIN.asarray(LVAh)\n YKH...
[ "0.7752593", "0.7256039", "0.70772594", "0.7027622", "0.69797754", "0.69398975", "0.68195105", "0.68001175", "0.6728639", "0.6726877", "0.6654431", "0.6634446", "0.6634446", "0.65989584", "0.6578196", "0.65338236", "0.64978486", "0.64888906", "0.648503", "0.64524835", "0.6407...
0.6366073
25
Plot as matplotlib contour. Arguments
def kj9G(YKHO, uNuP, MPlV=None, KJF0=False, **opsd): qXPL = [YKHO.levelfinder(WKvO) for WKvO in uNuP] if MPlV is None: MPlV = qjJM if KJF0: HCmI = 'contourf' else: HCmI = 'contour' iLki = MPlV.__getattribute__(HCmI)(YKHO._xdat, YKHO._ydat, YKHO._zdat, levels=qXPL, origin='low...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iLki(YKHO, **B2fa):\n YKHO.window.contour(**B2fa)", "def ufw9(YKHO, QpfX):\n import matplotlib.pyplot as QrM1\n y2qY = QpfX.model.data_container.X_test[:, 0]\n mSn1 = QpfX.model.data_container.X_test[:, 1]\n CAzz, Jd40 = YKHO.make_meshgrid(y2qY, mSn1)\n LVAh = QpfX.model.data_container.y_te...
[ "0.77545255", "0.77396905", "0.7635829", "0.7633108", "0.75605005", "0.7559153", "0.7559153", "0.7546163", "0.75332713", "0.751042", "0.75046694", "0.7501713", "0.7499614", "0.7486287", "0.7486287", "0.7486287", "0.7486287", "0.7486287", "0.7486287", "0.7486287", "0.7486287",...
0.7131243
40
View function for home page of site.
def KTn4(QePW): LDeZ = UeuK.objects.all().count() QpfX = {'emplacement_number': LDeZ} return _1tc(QePW, 'tarif.html', context=QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521128", "0.8379754", "0.8353459", "0.83415544", "0.83415544", "0.83171177", "0.830583", "0.8298624", "0.8296122", "0.8263442", "0.8224959", "0.8217078", "0.8206788", "0.81901366", "0.81901366", "0.8182092", "0.8176577", "0.81756383", "0.8147583", "0.81347877", "0.8134787...
0.0
-1
List all cloud settings. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def BB7W(YKHO, **B2fa): HhGF = [] HhGF.append('callback') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method get_cloud_settings" % H5ew) NArs[H5ew] = wEf2 del NArs['kwargs'] J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X0vC(YKHO):\n raise", "def pbko(YKHO) -> qe4Y.Output[bdIy['outputs.EnvironmentAllSetting']]:\n return qe4Y.get(YKHO, 'all_settings')", "def qiF1():\n PdJD = {'response_type': 'settings', 'response_state': 'full_response', 'success': True, 'settings_type': 'all', 'settings': [{'settings_type': 'com...
[ "0.6326964", "0.6213067", "0.60630655", "0.5993263", "0.5969355", "0.5909852", "0.58919543", "0.58806396", "0.58514535", "0.583785", "0.58334404", "0.5829832", "0.5781788", "0.5718981", "0.57085866", "0.5670397", "0.56257963", "0.5576247", "0.556449", "0.5538979", "0.54888266...
0.6864714
0
List all accessible cluster identifiers. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def QitC(YKHO, **B2fa): HhGF = ['sort', 'limit', 'dir'] HhGF.append('callback') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method list_cloud_access" % H5ew) NArs[H5ew] = wEf2 del...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lG_k(OaeV):\n x0hE = E9mX(OaeV.config)\n for Z9rn in x0hE.clusters.get_all():\n CgYo.pprint(Z9rn.to_dict())", "def I7LB(YKHO):\n return YKHO._get('/api/clusters')", "def uQCR():\n return Z3ic(Oa1e.user)", "def eUF2(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'cluster_ids')", "def ...
[ "0.7340206", "0.69959515", "0.69866365", "0.6984464", "0.6885149", "0.6871024", "0.68175024", "0.6786207", "0.67207706", "0.6632284", "0.6613266", "0.659385", "0.6488878", "0.647594", "0.64502996", "0.64426243", "0.640777", "0.6337645", "0.63294095", "0.6310145", "0.6301013",...
0.0
-1
List all cloudpools jobs. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def qmCs(YKHO, **B2fa): HhGF = ['sort', 'limit', 'dir'] HhGF.append('callback') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method list_cloud_jobs" % H5ew) NArs[H5ew] = wEf2 del N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Uvi_(YKHO):\n return YKHO.DO_INFO('-t root')['gJOBS_LIST']", "def QKgU():\n return (pz3A({'jobs': glCm()}), 200)", "def eEld(YKHO, _AKB=None, ZFzw=yszQ.api_core.gapic_v1.method.DEFAULT, vYBr=yszQ.api_core.gapic_v1.method.DEFAULT, yIVm=None):\n if 'list_worker_pools' not in YKHO._inner_api_calls:\n...
[ "0.64412093", "0.64209986", "0.6363078", "0.63348645", "0.6326102", "0.63068736", "0.6273699", "0.625447", "0.62455523", "0.61854535", "0.6174424", "0.6164052", "0.6140215", "0.61337686", "0.61286205", "0.6107904", "0.6099312", "0.6053056", "0.60423243", "0.6025607", "0.60162...
0.6596141
0
Modify a cloud job or operation. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response.
def ZatD(YKHO, XcLO, sdQq, **B2fa): HhGF = ['cloud_job', 'cloud_job_id'] HhGF.append('callback') NArs = locals() for H5ew, wEf2 in BVGD(NArs['kwargs']): if H5ew not in HhGF: raise TypeError("Got an unexpected keyword argument '%s' to method update_cloud_job" % H5ew) NArs[H5ew...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q_Jr(YKHO, QpfX, oCfW, hkxX):\n return YKHO.db.job_update(QpfX, oCfW, hkxX)", "def q_Jr(YKHO, QpfX, oCfW, hkxX):\n return YKHO._manager.job_update(QpfX, vDgp(oCfW), hkxX)", "def NpNj(YKHO):\n try:\n nPrm = GYid(Ocrw(YKHO.request.body))\n G9jH.info('[UWEB] Modify corp request: %s, cid...
[ "0.564466", "0.55600727", "0.5515626", "0.5482778", "0.5400061", "0.5309691", "0.5275302", "0.519081", "0.5187762", "0.517088", "0.51623654", "0.513687", "0.51190245", "0.5117524", "0.5112801", "0.51104754", "0.5093368", "0.5035113", "0.5030943", "0.50218993", "0.4995606", ...
0.6687951
0
Generate a bcrypt based password hash.
def bl3F(YKHO, zN5h, op60=None): if not op60: op60 = B8ni.gensalt().decode('utf-8') return B8ni.hashpw(zN5h.encode('utf-8'), op60.encode('utf-8')).decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B8ni(jTXt: str):\n return gLHo.hash(jTXt)", "def B8ni(jTXt: str):\n return psWq.hash(jTXt)", "def B8ni(jTXt: str) -> str:\n return psWq.hash(jTXt)", "def xPb7(jTXt, NTfD):\n lpha = len(NTfD) / 2\n jTXt = NTfD[:lpha] + jTXt + NTfD[lpha:]\n jTXt = fY9n(xORj(jTXt).digest()).strip()\n re...
[ "0.82781976", "0.8242407", "0.8186615", "0.77729386", "0.7710126", "0.770713", "0.7691239", "0.7622097", "0.7614844", "0.75780296", "0.7571534", "0.7559723", "0.755769", "0.75219107", "0.75210303", "0.74551195", "0.7435774", "0.740194", "0.740194", "0.73924035", "0.73902386",...
0.72429585
34
test DASCore with IP service
def VeNn(YKHO): xDcj = 'ip=137.138.141.145' UNAV = E6Wr(xDcj, mongoparser=YKHO.mongoparser) Aofo = YKHO.das.call(UNAV) Zqvr = 'ok' YKHO.assertEqual(Zqvr, Aofo) xDcj = 'ip=137.138.141.145 | grep ip.address' UNAV = E6Wr(xDcj, mongoparser=YKHO.mongoparser) Aofo = YKHO.das.get_from_cache(UNA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NYve(yFmp, qFWV):\n assert yFmp.ips.primary == qFWV.attrs['HostConfig']['Dns'][0]", "def XHrp(YKHO):\n with gtGs('host', dind=False, calico_node_autodetect_ip=True) as KcEq:\n KcEq.calicoctl('status')\n KcEq.calicoctl('profile add TEST_GROUP')\n wT5o = KcEq.create_workload('workloa...
[ "0.6464695", "0.62493867", "0.6154928", "0.613247", "0.6106067", "0.6086578", "0.60676455", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0.60544395", "0...
0.7631919
0
Converts factors to indices in range(num_data)
def Vn7Z(Llmz): _0VL = 0 P8oC = 1 for aM8h, mWFP in reversed(list(enumerate(JXIr))): _0VL += Llmz[aM8h] * P8oC P8oC *= Q8ym[mWFP] return _0VL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PaaH(nPrm, p1Vv):\n if p1Vv == 0:\n p1Vv = nPrm.num_of_folds\n _0VL = oyIN.array([WKvO for WKvO in range(0, nPrm.num_of_folds)])\n _0VL = oyIN.random.permutation(_0VL)\n _0VL = oyIN.array_split(_0VL, p1Vv)\n return _0VL", "def eBed(YKHO):\n return [(fHeP - aevO) // aevO for VAJu, fHe...
[ "0.6105679", "0.5904698", "0.58128244", "0.57980084", "0.5685572", "0.56789774", "0.5600301", "0.5564497", "0.5535181", "0.55344665", "0.55214155", "0.5519876", "0.54892415", "0.5484916", "0.5477571", "0.54031825", "0.5393335", "0.5389863", "0.5387478", "0.53870565", "0.53841...
0.68890935
0
Samples a random batch of images.
def rhma(Ep8u, Yw_3): cDK5 = 10 * 10 * 10 * 8 * 4 * 15 _0VL = oyIN.random.choice(cDK5, Ep8u) vJ4g = [] for QyVM in _0VL: Xn71 = Yw_3[QyVM] Xn71 = oyIN.asarray(Xn71) vJ4g.append(Xn71) vJ4g = oyIN.stack(vJ4g, axis=0) vJ4g = vJ4g / 255.0 vJ4g = vJ4g.astype(oyIN.float32) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, Ep8u=100):\n return tuKI.sample(YKHO._buffer, Ep8u)", "def TGS1(YKHO):\n Gv0a = list(map(lambda bGrB: tuKI.randint(0, YKHO.config.dataset.drama_dataset.n_frame - 1), range(YKHO.config.train_settings.batch_size)))\n afdN = ht2j.LongTensor(Gv0a).view(-1, 1, 1).expand(YKHO.config.train_setti...
[ "0.75821847", "0.7268992", "0.72281057", "0.71206754", "0.7043838", "0.7043838", "0.70098937", "0.69841594", "0.6982017", "0.69558614", "0.6948403", "0.69362795", "0.6934077", "0.6913304", "0.6905405", "0.6898909", "0.68754745", "0.68754745", "0.68754745", "0.68754745", "0.68...
0.7977163
0
Queries the demographics/party/query endpoint to retrieve party information based on the data
def goQG(nPrm, dsE5=True): NKcE = 'GET' Hxoy = uRlK.parse.urlencode(nPrm) MOPg = {'Content-Type': 'application/json'} bD7m = oU1u + 'demographics/party/query/?' + Hxoy if dsE5: print('Retrieving ', bD7m) geh0 = OiWE(bD7m, NKcE, False, MOPg) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V77o(fi6S, dsE5=False):\n bD7m = oU1u + 'demographics/ehr/' + fi6S + '/party'\n if dsE5:\n print('Retrieving ', bD7m)\n geh0 = OiWE(bD7m)\n return geh0", "def xx6M(sj66, dsE5=True):\n NKcE = 'POST'\n bD7m = oU1u + 'demographics/party'\n MOPg = {'Content-Type': 'application/json;ch...
[ "0.7662693", "0.716462", "0.6663114", "0.64028865", "0.61164874", "0.6054495", "0.60156345", "0.59726155", "0.5949332", "0.5860455", "0.5853946", "0.5847551", "0.5845913", "0.58262867", "0.5813819", "0.58081645", "0.58020145", "0.57626927", "0.57040954", "0.57006353", "0.5688...
0.7748036
0
Initializes the domain with elements living in zero sets.
def FIMM(YKHO, Xaaw): YKHO.Domain = [int(d0fd.NOSET)] * Xaaw YKHO.NumSets = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.set = [0] * 1000001", "def FIMM(YKHO):\n YKHO._forward = dIJh()\n YKHO._backward = dIJh()\n YKHO._set = set()\n YKHO._rset = set()", "def Nfah(YKHO):\n Ty9i = YKHO.grids[YKHO.nlevels - 1].getVarPtr('v')\n Ty9i[:] = 0.0\n YKHO.initializedSolution = 1", "def aVgw(...
[ "0.69205064", "0.6529329", "0.6510687", "0.6508222", "0.6489579", "0.6434469", "0.64155453", "0.6413931", "0.63755846", "0.6353619", "0.63170606", "0.62002116", "0.61906755", "0.61856943", "0.6145982", "0.61374646", "0.61230844", "0.61199516", "0.6081946", "0.6070571", "0.606...
0.75474083
0
Function used to load all test sample filepaths with labels into a list
def K6f6(mC1D): KndY = [AeXe for AeXe in sorted(Hy7s.listdir(mC1D)) if Hy7s.path.isdir(Hy7s.path.join(mC1D, AeXe))] OX2H = OX2H = {'N': '0', 'L': '1', 'C': '2', 'R': '3'} jTqs = len(OX2H) assert jTqs == len(KndY), 'The number of classes provided by label_dict {} does not match the number of subdirectori...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zfh8(YKHO):\n YKHO.testNames = []\n YKHO.testLabels = []\n for aPd6 in Hy7s.listdir(YKHO.imgTestPath):\n YKHO.testNames.append(aPd6)\n B6lx = ''.join([YRbF for YRbF in aPd6.split('.')[0] if not YRbF.isdigit()])\n YKHO.testLabels.append(B6lx)", "def QGE7():\n XWsk = '/Users/ti...
[ "0.74982053", "0.71504164", "0.70542216", "0.6928755", "0.68674564", "0.6843998", "0.6839245", "0.6835782", "0.68310875", "0.68258166", "0.6813327", "0.6793961", "0.6793961", "0.6793961", "0.6793961", "0.6793961", "0.67701626", "0.6759003", "0.6756989", "0.6756859", "0.675476...
0.7223186
1
Does filename have the right extension?
def XT0o(Ux0P): return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in UWr8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ajuy(Ux0P, YBcr):\n return Ux0P.split('.')[-1].lower() in YBcr", "def wkuR(Ux0P):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in ('png', 'jpg', 'jpeg', 'gif', 'bmp')", "def XT0o(Ux0P, JZxJ):\n return '.' in Ux0P and Ux0P.rsplit('.', 1)[1] in JZxJ", "def KwnL(Ux0P):\n return Hy7s.path.spli...
[ "0.83680844", "0.8238844", "0.8145365", "0.8102031", "0.80962956", "0.80838114", "0.80263793", "0.7961584", "0.79574215", "0.79571176", "0.79571176", "0.79337907", "0.79327846", "0.7927919", "0.7927919", "0.792697", "0.7926654", "0.79258615", "0.7919877", "0.79075366", "0.790...
0.7875863
39
Initializes a Planet class with the following parameters
def FIMM(YKHO, mWFP='none', Ayfi=1, MKl4=0.1): YKHO.name = mWFP YKHO.distance = Ayfi YKHO.orbitalPeriod = MKl4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc):\n VQ6Z = SLY6.new_Planet(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except:\n YKHO.this = VQ6Z", "def m9Kr(nPrm):\n AQrS = bcd8(nPrm['url'], nPrm['name'], nPrm['region'], nPrm['sector'], nPrm['suns'], nPrm['moons'], nPrm['orbital_period_days'], nPrm['diameter_km'], ...
[ "0.69901747", "0.6969527", "0.6919121", "0.68927974", "0.6869438", "0.67006624", "0.6664232", "0.6634564", "0.6469248", "0.6398813", "0.6379627", "0.6378547", "0.6378248", "0.6374752", "0.63646525", "0.6364234", "0.63382834", "0.6326106", "0.63181025", "0.63020647", "0.629418...
0.0
-1
Calculates the positions of the centroids based on the average of all data points belonging to the cluster. As potentially no data points can belong to a centroid due to initialisation, a centroid could be removed and so only `kz` centroids would be in use, this alerts the user who may be expecting `k` centroids.
def cs5c(YKHO, EcVT, gOe1): _TZL = oyIN.unique(gOe1) ftFN = len(_TZL) if ftFN != YKHO.K: YKHO.centroids = oyIN.empty(ftFN) print(f'Centroid removed, proceeding with {ftFN} centroids') for YRbF, G1Hx in enumerate(_TZL): pA0o = EcVT[gOe1 == G1Hx] YxH_ = pA0o.mean(axis=0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GVna(YKHO):\n for YRbF in range(YKHO.Nk):\n OGl8 = YKHO.cluster_list[YRbF]\n assert OGl8.numel() > 0, 'no cluser should be empty'\n YKHO.centroids[YRbF] = YKHO.vectors[OGl8][:, :5].mean(dim=0)", "def YCDA(YKHO):\n YKHO.old_centroids = oyIN.copy(YKHO.centroids)\n YKHO.centroids =...
[ "0.7436069", "0.7118001", "0.7102177", "0.7087796", "0.7039335", "0.69945824", "0.69866407", "0.6964577", "0.6963183", "0.68872917", "0.68872917", "0.68166006", "0.68127084", "0.6803322", "0.679819", "0.6792023", "0.67843425", "0.67824876", "0.67743325", "0.67315704", "0.6726...
0.6502561
44
Following the fitting / determination of the clusters using the `fit` method, this allows users to input new data points of shape `m` by `n` and predict which clusters they belong to
def YEmv(YKHO, EcVT): YhG9 = Ri4V.cluster_assignment(YKHO, EcVT) return YhG9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bukK(YKHO, nPrm, o_ia, **B2fa):\n q5XV = CQwJ.KMeans(n_clusters=o_ia, **B2fa)\n q5XV.fit(nPrm)\n return q5XV", "def iXC1(YKHO, o_ia=5):\n YKHO.n_clusters = o_ia\n YKHO.build_features()\n YKHO.raw_features = YKHO.features\n YKHO.fit('kmeans', o_ia)\n YKHO.predict()\n YKHO.score()", ...
[ "0.72322404", "0.72054684", "0.6995711", "0.6903974", "0.68575174", "0.6673518", "0.6630428", "0.6607351", "0.66066986", "0.6575568", "0.6545736", "0.6501066", "0.6470823", "0.64594436", "0.6458171", "0.6435743", "0.6433381", "0.64103776", "0.64045894", "0.63841987", "0.63798...
0.5927887
88
Test f API can create a new book(POST request)
def tJH_(YKHO): NT__ = YKHO.get_access_token(YKHO.user_data) aWFP = YKHO.client.post('/api/books', data=qQXR.dumps(YKHO.book), headers={'content-type': 'application/json', 'Authorization': 'Bearer {}'.format(NT__)}) YKHO.assertEqual(aWFP.status_code, 201) YKHO.assertIn('The Da Vinci Code', str(aWFP.data...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWOz(YKHO):\n YKHO.login_client('test_user', 'testing')\n geh0 = YKHO.make_a_request(kind='post', data=YKHO.valid_data)\n YKHO.assertEqual(geh0.data, YKHO.valid_data)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED)\n geh0 = YKHO.make_a_request(kind='post', data=YKHO.invalid_data)\n ...
[ "0.86247015", "0.85844237", "0.85317475", "0.8223593", "0.796276", "0.7905815", "0.785143", "0.7790109", "0.7774748", "0.77633864", "0.7756086", "0.7725015", "0.77008814", "0.7627634", "0.7594005", "0.7528219", "0.7498419", "0.7429662", "0.741894", "0.7402271", "0.739085", ...
0.85349506
2
Test if API can delete an existing book.(DELETE request)
def WEpk(YKHO): NT__ = YKHO.get_access_token(YKHO.user_data) aWFP = YKHO.client.post('/api/books', data=qQXR.dumps(YKHO.book), headers={'content-type': 'application/json', 'Authorization': 'Bearer {}'.format(NT__)}) YKHO.assertEqual(aWFP.status_code, 201) rXjI = YKHO.client.delete('/api/books/1', header...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yzo5(YKHO):\n YKHO.login_client('test_user', 'testing')\n geh0 = YKHO.delete_a_Book(1)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_204_NO_CONTENT)\n geh0 = YKHO.delete_a_Book(100)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)", "def _4cr(x0hE, TeYO):\n Ylbp = x0hE.delete(...
[ "0.79206705", "0.76583904", "0.7437129", "0.73588365", "0.71583456", "0.6948518", "0.6911187", "0.68804264", "0.6808473", "0.67006606", "0.6685182", "0.6677167", "0.66495967", "0.66368043", "0.6612097", "0.65929896", "0.65841365", "0.6576661", "0.65595883", "0.6557208", "0.65...
0.79046375
1
Test when only HTTPS access is live on the www prefixed domain name.
def j6uR(YKHO): YKHO.domain.httpswww.live = True YKHO.assertTrue(UVGt(YKHO.domain))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W7B2(YKHO):\n YKHO.domain.httpwww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def xzH4(YKHO):\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def e29N(YKHO):\n YKHO.domain.http.live = True\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.domai...
[ "0.76312363", "0.7591899", "0.7524483", "0.7470194", "0.7449437", "0.7015307", "0.66897106", "0.6660062", "0.664711", "0.66228986", "0.6610483", "0.66075236", "0.65713537", "0.65568626", "0.6529637", "0.64900386", "0.6489892", "0.64329267", "0.6387186", "0.6381277", "0.634772...
0.8270035
0
Test when only HTTPS access is live on both domain names.
def xjwi(YKHO): YKHO.domain.https.live = True YKHO.domain.httpswww.live = True YKHO.assertTrue(UVGt(YKHO.domain))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzH4(YKHO):\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def j6uR(YKHO):\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def e29N(YKHO):\n YKHO.domain.http.live = True\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.doma...
[ "0.7761829", "0.7616087", "0.749303", "0.74505854", "0.7124088", "0.709869", "0.703251", "0.6795011", "0.6781668", "0.6770424", "0.67355895", "0.66860634", "0.6632292", "0.66236526", "0.66069216", "0.65777284", "0.65263295", "0.65055496", "0.65055496", "0.6491396", "0.6481069...
0.81217104
0
Test when both HTTP and HTTPS are live on only the base domain.
def e29N(YKHO): YKHO.domain.http.live = True YKHO.domain.https.live = True YKHO.assertTrue(UVGt(YKHO.domain))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xzH4(YKHO):\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def j6uR(YKHO):\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def xjwi(YKHO):\n YKHO.domain.https.live = True\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO....
[ "0.77494574", "0.7681357", "0.7657398", "0.7410374", "0.73811597", "0.7350282", "0.72380483", "0.689746", "0.6716791", "0.67002964", "0.6668484", "0.6608708", "0.6570842", "0.6544218", "0.65219927", "0.6503213", "0.64914626", "0.647194", "0.6435854", "0.63803154", "0.638026",...
0.7532189
3
Test when both HTTP and HTTPS are live on the www prefixed domain name.
def bb0T(YKHO): YKHO.domain.httpwww.live = True YKHO.domain.httpswww.live = True YKHO.assertTrue(UVGt(YKHO.domain))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j6uR(YKHO):\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def W7B2(YKHO):\n YKHO.domain.httpwww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def e29N(YKHO):\n YKHO.domain.http.live = True\n YKHO.domain.https.live = True\n YKHO.assertTrue(UVGt(YKHO.do...
[ "0.7924999", "0.77958876", "0.7682698", "0.7134147", "0.68396425", "0.6788204", "0.6687053", "0.6582997", "0.65178776", "0.6372201", "0.6369658", "0.6306153", "0.6299405", "0.6255695", "0.6245352", "0.62381077", "0.6224132", "0.6216497", "0.61948425", "0.6175885", "0.6168381"...
0.7798395
1
Test when both HTTP and HTTPS are live on both domain names.
def Fh0m(YKHO): YKHO.domain.http.live = True YKHO.domain.https.live = True YKHO.domain.httpwww.live = True YKHO.domain.httpswww.live = True YKHO.assertTrue(UVGt(YKHO.domain))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xjwi(YKHO):\n YKHO.domain.https.live = True\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def bb0T(YKHO):\n YKHO.domain.httpwww.live = True\n YKHO.domain.httpswww.live = True\n YKHO.assertTrue(UVGt(YKHO.domain))", "def e29N(YKHO):\n YKHO.domain.http.live = ...
[ "0.80935574", "0.7889217", "0.783781", "0.7728738", "0.76266253", "0.761292", "0.7350264", "0.71048677", "0.68694", "0.6812101", "0.68102455", "0.68061376", "0.6786256", "0.6767876", "0.6605975", "0.6563801", "0.6563801", "0.6513637", "0.64962333", "0.6486782", "0.64519626", ...
0.6812991
9
Gets and sets the displayName
def qQNS(YKHO): if 'displayName' in YKHO._prop_dict: return YKHO._prop_dict['displayName'] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)", "def qQNS(YKHO):\n return YKHO.properties.get('displayName', None)", "def Y6CV(YKHO):\n return YKHO.__userdata('displayName')", "def qQNS(YKHO):\n qQNS = ''\n try:\n geh0 = YKHO.client.user_profile_get()\n except Exc...
[ "0.8028276", "0.8016327", "0.7970253", "0.75376153", "0.7524688", "0.7412238", "0.73715174", "0.7315457", "0.7293963", "0.7293963", "0.7293963", "0.7293963", "0.714691", "0.7134747", "0.7124856", "0.70334256", "0.69945246", "0.69912523", "0.69696236", "0.6947579", "0.6936022"...
0.8032448
0
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() sve5 = jQ3Z['month'].mode()[0] print('The most common month is:', sve5) StUT = jQ3Z['day_of_week'].mode()[0] print('The most common day is:', StUT) jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.7501424
69
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() thzg = jQ3Z['Start Station'].value_counts().idxmax() print('The most commonly used start station is:', thzg) JHHI = jQ3Z['End Station'].value_counts().idxmax() print('\nThe most commonly used end st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.76664937", "0.76271904", "0.76108116", "0.75858396", "0.75767946", "0.7567278", "0.7558413", "0.7538156", "0.75297517", "0.7503056", "0.7499961", "0.74967057", "0.7487728", "0.7484119", "0.7475753", "0.7473595", "0.74375546", "0.7436976", "0.7433463", "0.7428539", "0.74269...
0.7172749
85
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() T62R = sum(jQ3Z['Trip Duration']) print('The total travel time in minutes is:', T62R / 60, ' Minutes') Zwp9 = jQ3Z['Trip Duration'].mean() print('The mean travel time in minutes is:', Zwp9 / 60, ' Minutes') print('\...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.78307325
74
(Maze, int, int) > bool Return True if and only if there is a wall at the given row and column of the maze.
def OC7g(YKHO, rdlD, fvDH): return YKHO.maze[rdlD][fvDH] == GNtq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq", "def OC7g(YKHO, rdlD, fvDH):\n return YKHO.maze[rdlD][fvDH] == GNtq", "def OC7g(YKHO, rdlD, iVRZ):\n return YKHO.maze[rdlD][iVRZ] == GNtq", "def E3Xh(YRbF, r845):\n global width, height, wall_coords\n return abs(YRbF) == TVTK...
[ "0.84838074", "0.83072007", "0.82796425", "0.7821952", "0.77533776", "0.76307255", "0.76182574", "0.75384104", "0.73333395", "0.72753954", "0.7254631", "0.72460115", "0.72357714", "0.7229814", "0.72253823", "0.72077775", "0.7176739", "0.7165798", "0.71657115", "0.71657115", "...
0.8382717
1
(Maze, Rat, int, int) > NoneType Move the rat in the given direction, unless there is a wall in the way. Return True if and only if there wasn't a wall in the way.
def BZN_(YKHO, VVTb, zdyi, tteV): xVUk = VVTb.row jZ7g = VVTb.col gAQa = xVUk + zdyi crjj = jZ7g + tteV pan_ = YKHO.get_character(gAQa, crjj) if pan_ == GNtq: return False if pan_ == RaK3: VVTb.set_location(gAQa, crjj) elif pan_ == ecbQ: VVTb.set_location(gAQa, cr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LS2R(YKHO):\n r8hN = pHXX.Maze([['#', '#', '#', '#', '#', '#', '#'], ['#', '.', '.', '.', '.', '.', '#'], ['#', '.', '#', '#', '#', '.', '#'], ['#', '.', '.', '@', '#', '.', '#'], ['#', '@', '#', '.', '@', '.', '#'], ['#', '#', '#', '#', '#', '#', '#']], pHXX.Rat('J', 1, 1), pHXX.Rat('P', 1, 4))\n YKHO.a...
[ "0.6821602", "0.6777013", "0.67639685", "0.6666912", "0.6654543", "0.66138583", "0.65666544", "0.6542512", "0.653289", "0.6517072", "0.6508227", "0.64608216", "0.64382625", "0.6413607", "0.63752484", "0.6372304", "0.6362185", "0.6352208", "0.63375485", "0.6277144", "0.6221913...
0.0
-1
Save the model in it current state to file such that training can be resumed from the saved state.
def xkzz(YKHO, nUeQ): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzz(YKHO):\n YKHO.model.train()\n oyIN.save(YKHO.file_state, YKHO.state_dict())\n ht2j.save(YKHO.model.state_dict(), YKHO.file_weights)", "def lac1(YKHO) -> None:\n ht2j.save({'model_state_dict': YKHO.model.state_dict(), 'optimizer_state_dict': YKHO.optimizer.state_dict()}, Hy7s.path.join(YKHO.m...
[ "0.8262289", "0.8216574", "0.8171528", "0.81371784", "0.81327957", "0.808574", "0.8080047", "0.80694723", "0.80492187", "0.80439967", "0.8037416", "0.7975802", "0.7933243", "0.7929838", "0.79164743", "0.79034024", "0.78946584", "0.7871233", "0.7851758", "0.7833457", "0.782721...
0.0
-1
Return the bounds currently visible.
def zpIh(YKHO): XP5J, epBp = (oyIN.asarray(YKHO.pan), oyIN.asarray(YKHO.zoom)) nJ9F, nxyw = -1.0 / epBp - XP5J o4D3, si3g = +1.0 / epBp - XP5J return (nJ9F, nxyw, o4D3, si3g)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n return YKHO._bounds", "def X7zS(YKHO):\n return YKHO._bounds", "def sSBl(YKHO):\n return YKHO._eval('(lambda x: [x.x, x.y, x.width, x.height])(Sikuli.SCREEN.getBounds())')", "def X7zS(YKHO):\n return YKHO.__bounds", "def X7zS(YKHO):\n if YKHO._bounds is None:\n YKHO....
[ "0.7533431", "0.7533431", "0.74790263", "0.7456073", "0.745214", "0.74281055", "0.737678", "0.7356275", "0.7265152", "0.72407156", "0.7239328", "0.7239328", "0.7239328", "0.7211249", "0.7176382", "0.71522284", "0.7140211", "0.7114684", "0.7094298", "0.70813334", "0.7071911", ...
0.0
-1
Parse a string formatted X[.Y.Z] version number into a tuple >>> parse_version('10.2.3') (10, 2, 3) >>> parse_version('12') (12, 0, 0)
def BvuR(DpZH: str) -> tuple: SQ3m = DpZH.split('.') v3uw = 3 - len(SQ3m) return tuple(map(int, SQ3m + ['0'] * v3uw))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def czvs(IexU):\n try:\n return tuple([int(YRbF) for YRbF in IexU.split('.')])\n except ValueError as e:\n raise ValueError('Could not parse version string %s: %s' % (IexU, tTpl))", "def BvuR(IexU: str) -> AzJI[str, str, str]:\n Tl0b, IJ4N, cbKy = IexU.split('.', 2)\n return (Tl0b, IJ4N...
[ "0.8497344", "0.8397234", "0.8146567", "0.8132029", "0.80735576", "0.7845346", "0.77889943", "0.7775503", "0.7743847", "0.77416897", "0.77347505", "0.7705111", "0.7693545", "0.7647365", "0.76425356", "0.7624681", "0.7620949", "0.75033957", "0.74044377", "0.74026185", "0.73881...
0.8312689
2
'Thank you' message view
def nyyK(QePW): return _1tc(QePW, 'success.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GkOu(QePW):\n return _1tc(QePW, 'thank_you.html')", "def W1Or():\n return TvZl('thank-you.html')", "def W1Or():\n return TvZl('thankyou.html')", "def W1Or():\n return TvZl('thank-you.html', responses=h2IT)", "def W1Or(QePW):\n return SGJU('jobboard/thank_you.html', {}, context_instance=K...
[ "0.7865314", "0.7758118", "0.7757042", "0.7598375", "0.75713617", "0.7332613", "0.7149083", "0.7065409", "0.7061449", "0.69782436", "0.6964089", "0.69532", "0.6914535", "0.69079095", "0.68880814", "0.6874805", "0.67982775", "0.6772487", "0.6768649", "0.67623496", "0.67623496"...
0.0
-1
Add zeros at the start and end of a signal until it reached the desired lenght. The same number of zeros is added on each side, except when desired_lengthsignal.shape[0] is odd, in which case, there is one more zero at the beginning.
def vNgl(Gaon: np.ndarray, Drai: int) -> oyIN.ndarray: if Gaon.ndim == 1: cDK5, = Gaon.shape Lm6x = 1 else: cDK5, Lm6x = Gaon.shape assert Drai >= cDK5 od6o = Drai - cDK5 TD7F = _Mhs = od6o // 2 TD7F += od6o - _Mhs - TD7F return oyIN.pad(Gaon.reshape(cDK5, Lm6x).astyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q6fL(Gaon: np.ndarray, Drai: int) -> oyIN.ndarray:\n if Gaon.ndim == 1:\n cDK5, = Gaon.shape\n Lm6x = 1\n else:\n cDK5, Lm6x = Gaon.shape\n assert Drai >= cDK5\n _Mhs = Drai - cDK5\n return oyIN.pad(Gaon.reshape(cDK5, Lm6x).astype(float), pad_width=((0, _Mhs), (0, 0)), mode=...
[ "0.7425368", "0.62721306", "0.6170017", "0.6072179", "0.5986475", "0.59525144", "0.59109336", "0.59109336", "0.58274186", "0.58123887", "0.57936573", "0.5774986", "0.57379025", "0.568246", "0.5675991", "0.5651899", "0.562048", "0.5613157", "0.55720454", "0.55717915", "0.54916...
0.77958846
0
Checks that the score of identical arrays will be 1 for the R_squared
def BqE9(YKHO): exwG = 50000 WKvO = oyIN.linspace(0, 1, exwG) CjQX = oyIN.linspace(0, 1, exwG) fy0J = oyIN.linspace(0, 1, exwG) YEnM = N0pH(WKvO, fy0J, CjQX) YKHO.assertEqual(YEnM.R2(y_data=CjQX, y_model=fy0J), 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eTng(YKHO):\n return", "def rEtt(cCrA: List[int]):\n return True if len(oyIN.unique(cCrA)) == len(cCrA) else False", "def p0Pp(YKHO, nxyw, si3g):\n nxyw = nxyw.astype(int)\n si3g = si3g.astype(int)\n return oyIN.sum(nxyw) == oyIN.sum(si3g) and oyIN.sum(nxyw) == 1 and (oyIN.where(nxyw == 1) =...
[ "0.66521126", "0.6617011", "0.62834656", "0.62567693", "0.6095849", "0.60872453", "0.6081446", "0.60799134", "0.6071827", "0.60406876", "0.59641707", "0.59314144", "0.59314144", "0.59173197", "0.5917185", "0.5914506", "0.5913103", "0.59117883", "0.58961725", "0.589489", "0.58...
0.0
-1
Compute soft nearest mean class loss, which has been proven to have the longest name in all loss functions history. This is probably the only goal we'll achieve with that.
def NrF3(YKHO, Yw_3, Crrw, VN0u, Kt_s=1): YKHO.net.eval() EcVT = YKHO.net.feature_extractor(Yw_3) uP4_ = [] for YRbF, WKvO in enumerate(EcVT): qu14 = ht2j.sum(EcVT != WKvO, dim=1).type(ht2j.bool) ZMuy = EcVT[qu14] geMv = (WKvO - ZMuy).pow(2).sum(dim=1) UUZ1 = ht2j.exp(-ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xt2q(N6Z1, mWFP):\n return ZylS.reduce_mean(-xDw1(N6Z1), name=mWFP)", "def i3ep(YKHO):\n N77f = ZylS.reduce_mean((YKHO.prediction - YKHO.target) ** 2)\n ZylS.summary.scalar('loss', N77f)\n return N77f", "def YbcW(Wc9F, aTLP):\n x6A0 = Wc9F['y']\n Ji9D = Wbxz.unreduced_cross_entropy_loss(x...
[ "0.6536324", "0.65122104", "0.63695973", "0.6297286", "0.62959474", "0.6265823", "0.62404543", "0.6232599", "0.623002", "0.6214124", "0.6186221", "0.61508214", "0.6120904", "0.6111376", "0.60983205", "0.6090772", "0.60645115", "0.60550916", "0.6029861", "0.60254025", "0.60244...
0.7212825
0
Checks whether `url` is a valid URL.
def SGVO(bD7m: str): U5Jc = KVWQ(bD7m) return bool(U5Jc.netloc) and bool(U5Jc.scheme)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(bD7m):\n return True if f8eG.match(bD7m) else False", "def SGVO(bD7m):\n aBkf = _FIc.URLValidator()\n try:\n aBkf(bD7m)\n except _FIc.ValidationError:\n return False\n else:\n return True", "def Sxk4(bD7m):\n if not ZbWC.search('^(http|https|ftp)' + '\\\\://[a-z0...
[ "0.8939179", "0.8780518", "0.87553483", "0.86886775", "0.86520433", "0.86460173", "0.8619089", "0.85934895", "0.8589099", "0.8505128", "0.8439438", "0.8439245", "0.8436709", "0.8436638", "0.8415732", "0.8406938", "0.83978635", "0.83957845", "0.8382483", "0.83688885", "0.83548...
0.835946
20
Create a named PDF as requested by arg e.g. pass 'MMHT2014lo68cl.LHpdf' for MMHT2014 LO, 'MRSTMCal.LHgrid' to get MRST LO, 'cteq6ll.LHpdf' to get the MC08 LO PDF, ...
def RBfe(S55X, q_w6): ccKF = '' ccKF += '## Create PDF set\n' ccKF += 'create ThePEG::LHAPDF /Herwig/Partons/%s ThePEGLHAPDF.so\n' % q_w6 ccKF += 'set /Herwig/Partons/%s:PDFName %s\n' % (q_w6, S55X) ccKF += 'set /Herwig/Partons/%s:RemnantHandler /Herwig/Partons/HadronRemnants\n' % q_w6 return cc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tloa(sgFk, d7pR, g_NO):\n vnE3 = qcWV.now()\n Ux0P = vnE3.strftime('TriggerPlots/' + sgFk.outputName + '%V_%y/Era' + sgFk.inputLFN + '.pdf')\n if not Hy7s.path.exists(Hy7s.path.dirname(Ux0P)):\n try:\n Hy7s.makedirs(Hy7s.path.dirname(Ux0P))\n except OSError as exc:\n ...
[ "0.7433758", "0.6844054", "0.66735405", "0.657682", "0.64809436", "0.6444191", "0.6360066", "0.6324865", "0.62976414", "0.6289323", "0.6145573", "0.6085795", "0.60845196", "0.6072021", "0.6064755", "0.60166806", "0.5941204", "0.59323335", "0.5925412", "0.59242445", "0.5909207...
0.6466285
5
Compare sphere model with NIST Igor SANS, no resolution smearing.
def tvKM(YKHO): K5WD = Otxm Fb5b = mFG7 nPrm = oyIN.loadtxt(Fb5b.split('\n')).T vexM, bGrB, ANfV, bGrB = nPrm B1Wx = sHeh(vexM) hlel = YKHO._eval_sphere(K5WD, B1Wx) YKHO._compare(vexM, hlel, ANfV, 1e-06)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lTBo(tgCD: 'Dataset') -> oyIN.ndarray:\n zUbX = NBAp.get('orbit', rundate=tgCD.analysis['rundate'], station=tgCD.vars['station'], system=tuple(tgCD.unique('system')))\n e4E_ = oyIN.zeros(tgCD.num_obs)\n hVIq = tgCD.analysis['rundate'].strftime('%Y-%m-%d')\n if 'iono_para' not in zUbX.dset_raw.meta[...
[ "0.67858183", "0.632335", "0.607635", "0.60528284", "0.60094845", "0.5977755", "0.5939613", "0.58970886", "0.5783539", "0.5774004", "0.5763307", "0.5716161", "0.5684877", "0.5675974", "0.56753606", "0.5670111", "0.5653726", "0.5639847", "0.5635958", "0.56244004", "0.5622326",...
0.54246885
39
Compare romberg integration for ellipsoid model.
def hg0Z(YKHO): from .core import load_model K5WD = {'scale': 0.05, 'radius_polar': 500, 'radius_equatorial': 15000, 'sld': 6, 'sld_solvent': 1} L03z = load_model('ellipsoid', dtype='double') vexM = oyIN.logspace(PCK9(4e-05), PCK9(0.025), 68) TVTK, u54L = (0.0, 0.117) B1Wx = SFzX(vexM, q_length=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hg0Z(YKHO):\n for ifkm in JHow:\n z5hA = ifkm['ellipsoid']\n eRdl = ifkm['eprec']\n IWsN = YKHO.SpatialRefSys.objects.get(srid=ifkm['srid'])\n LP1H = IWsN.ellipsoid\n for YRbF in range(3):\n YKHO.assertAlmostEqual(z5hA[YRbF], LP1H[YRbF], eRdl[YRbF])", "def JPq...
[ "0.6729705", "0.64966345", "0.59152806", "0.58062875", "0.5776515", "0.571573", "0.56470937", "0.5641459", "0.56172925", "0.55955553", "0.5553618", "0.5502974", "0.5486425", "0.54764915", "0.54473037", "0.54031205", "0.5401986", "0.5353556", "0.5345567", "0.5278213", "0.52598...
0.7386196
0
get area of square
def f0tD(YKHO): return YKHO.__size ** 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FmDM(HEZd):\n return HEZd ** 2", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def FmDM(HEZd):\n return HEZd * HEZd", "def FmDM(jzdc):\n return UEQj(jzdc, jzdc)", "def f0tD(YKHO):\n return YKHO._Square__size ** 2", "def f0tD(FlUN):\n WKvO, LVAh, yzQ0, MKlR = FlUN\n return ...
[ "0.84289503", "0.83892995", "0.8378942", "0.8296151", "0.8207046", "0.82036614", "0.8181282", "0.8041918", "0.80083644", "0.8007851", "0.80062157", "0.79987234", "0.79895836", "0.79895836", "0.7941258", "0.79233754", "0.7920444", "0.7898058", "0.78891706", "0.78891706", "0.78...
0.7728141
74
Generate the next array of batches from the data. The array consists of the last batch of the previous array, followed by num_unrollings new ones.
def next(YKHO): """ self._last_batch is initialized to be the first batch in the beginning but each time the function next() gets called, it called self._next_batch() and self._cursor gets undated with a new array of 64 numbers and if the numbers start to get larger than self._text_size, they ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO):\n nJ0e = [YKHO._last_batch]\n for YPaw in range(YKHO._n_unrollings):\n nJ0e.append(YKHO._next_batch())\n YKHO._last_batch = nJ0e[-1]\n return nJ0e", "def next(YKHO):\n nJ0e = [YKHO._last_batch]\n for YPaw in range(YKHO._num_unrollings):\n nJ0e.append(YKHO._next_bat...
[ "0.7664011", "0.7642615", "0.75838363", "0.743132", "0.725245", "0.70198965", "0.6945172", "0.6619142", "0.65616417", "0.65371263", "0.64161193", "0.6361324", "0.63473165", "0.6295377", "0.62218904", "0.6198987", "0.61866415", "0.61362356", "0.6094846", "0.6088899", "0.607097...
0.70561147
5
Create a random image.
def qg82(pmON, ROpF): nbGP = oyIN.random.random(ROpF) hnIv.fromarray(oyIN.uint8(nbGP * 255)).save(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zR8Q(YKHO, zNig, Tuqy='RGB'):\n return hnIv.frombytes(Tuqy, zNig, Hy7s.urandom(zNig[0] * zNig[1] * len(Tuqy)))", "def W5_v():\n WFRJ = SC2F.glob(X8Rg.model.paths.images + '/*.jpg')\n tuKI.shuffle(WFRJ)\n LNo8 = hnIv.open(WFRJ[0])\n return LNo8", "def W5_v(YKHO):\n qmWM = YKHO.get_random_w...
[ "0.7505435", "0.74938965", "0.7114767", "0.7078563", "0.7075851", "0.6990311", "0.6878014", "0.687489", "0.68587035", "0.6690928", "0.6637148", "0.6573238", "0.6557186", "0.6546729", "0.6522251", "0.6515861", "0.6476935", "0.6463074", "0.6459943", "0.642196", "0.6413765", "...
0.7875508
0
The example generator that yields the essential keys. This example generator iterates through the dataset saved in `root_path` and yields examples of `dict` with 'image_fobj' representing an `fobj` of the image and 'label' representing the name of the class.
def jejo(YKHO, Tuqy): i0XC = YKHO.root_path _PsU = Hy7s.path.join(i0XC, Tuqy) for _2sc in Hy7s.listdir(_PsU): VsIP = Hy7s.path.join(_PsU, _2sc) for p4m8 in Hy7s.listdir(VsIP): Yb80 = Hy7s.path.abspath(Hy7s.path.join(VsIP, p4m8)) yield {'image_fobj': ZylS.io.gfile.GFil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zDiL(YKHO, gj2Y=None, XQNv=None):\n r3TL = ZylS.io.gfile.listdir(gj2Y)\n TDnD = {}\n with ZylS.io.gfile.GFile(XQNv) as eHNT:\n C7_O = ''\n WlEx = []\n rRTz = []\n MoCb = {}\n for zFiD in eHNT:\n vIwR = zFiD[:-2]\n try:\n WKvO = iJ...
[ "0.7148778", "0.6992518", "0.68574727", "0.68547916", "0.664865", "0.66196716", "0.65728563", "0.6525484", "0.64087707", "0.6216062", "0.61276776", "0.59779966", "0.5941173", "0.5917371", "0.5889854", "0.58839864", "0.58324784", "0.5812955", "0.579042", "0.5778121", "0.577152...
0.7360056
0
Computes the internal energy of the system based upon the integral functional for the 1D wave equation. Additionally we add an L2 norm regularizer
def VYvU(YKHO): uLpm = (YKHO.height - YKHO.height_nm1) / YKHO.dt blhB = oyIN.gradient(YKHO.height, YKHO.x_mesh) YFYY = -YKHO.height * oyIN.gradient(blhB, YKHO.x_mesh) gac1 = uLpm ** 2 + YKHO.C ** 2 * blhB ** 2 gac1 += YKHO.height ** 2 return 0.5 * ObCX(gac1, YKHO.x_mesh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KRna(YKHO):\n YKHO.H_demag.vector()[:] = YKHO.compute_field()\n ut5U = -0.5 * YKHO.mu0 * jQ3Z.dot(YKHO.H_demag, YKHO.m.f * YKHO.Ms.f) * jQ3Z.dx\n return jQ3Z.assemble(ut5U) * YKHO.unit_length ** YKHO.m.mesh_dim()", "def VYvU(EcVT, u9Ln):\n return -1 / 2 * oyIN.dot(oyIN.dot(oyIN.transpose(EcVT), u...
[ "0.6351735", "0.63181657", "0.6235241", "0.6219539", "0.6109311", "0.6103638", "0.6094298", "0.60781753", "0.6033726", "0.6015527", "0.60120445", "0.5994579", "0.59524", "0.59453607", "0.5930621", "0.5930563", "0.592258", "0.59218585", "0.5905633", "0.5904981", "0.59045005", ...
0.597744
12
Get the earliest visit time of the stop.
def gCJ8(YKHO): if not YKHO.visit_events: return float('inf') else: return min(YKHO.visit_events, key=lambda tvqc: tvqc.arr_time_ut).arr_time_ut
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWox(YKHO):\n return YKHO.time_list[0]", "def SWox(YKHO):\n return YKHO.time_range()[0]", "def yKcO(YKHO):\n return min(YKHO.timestamps) if YKHO.timestamps else None", "def I14q(YKHO):\n if len(YKHO):\n I14q = YKHO[0].starttime()\n for ufJO in YKHO[1:]:\n if ufJO.star...
[ "0.7167528", "0.7045616", "0.7021928", "0.68978417", "0.6857217", "0.6835463", "0.6808045", "0.67955315", "0.6695694", "0.6686637", "0.6682362", "0.66683346", "0.6622749", "0.66074365", "0.65655684", "0.65582013", "0.65582013", "0.65358347", "0.6524734", "0.6524734", "0.65119...
0.7343133
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.8317406", "0.8285652", "0.82828414", "0.8281149", "0.82362676", "0.82337403", "0.822514", "0.82245225", "0.82118344", "0.81912935", "0.81870127", "0.818126", "0.8180909", "0.8179992", "0.81788236", "0.81788236", "0.8178704", "0.81778836", "0.8177197", "0.81756", "0.8173057...
0.0
-1
Verify that calling cancel multiple times on a deferred with a canceller that does not errback results in a L{defer.CancelledError} and that subsequent calls to cancel do not cause an error and that after all that, the canceller was only called once.
def hffp(YKHO): def A0m2(Csk6): YKHO.cancellerCallCount += 1 Csk6 = ntd0.Deferred(canceller=A0m2) Csk6.addCallbacks(YKHO._callback, YKHO._errback) Csk6.cancel() YKHO.assertEquals(YKHO.errbackResults.type, ntd0.CancelledError) QrFp = YKHO.errbackResults Csk6.cancel() YKHO.assertI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYph(YKHO):\n Csk6 = ntd0.Deferred()\n Csk6.addCallbacks(YKHO._callback, YKHO._errback)\n Csk6.cancel()\n YKHO.assertEquals(YKHO.errbackResults.type, ntd0.CancelledError)\n QrFp = YKHO.errbackResults\n Csk6.cancel()\n YKHO.assertIdentical(QrFp, YKHO.errbackResults)", "def ck2N(YKHO):\n\n...
[ "0.77512", "0.77243984", "0.7652545", "0.74111694", "0.736643", "0.7334083", "0.7266094", "0.71364516", "0.700259", "0.6981284", "0.6920252", "0.6902469", "0.68707764", "0.6866701", "0.6481284", "0.634004", "0.6139428", "0.6126857", "0.6126489", "0.59425414", "0.59338075", ...
0.796368
0
Test that cancelling a deferred after it has been callbacked does not cause an error.
def EyUD(YKHO): def A0m2(Csk6): YKHO.cancellerCallCount += 1 Csk6.errback(_nGm()) Csk6 = ntd0.Deferred(canceller=A0m2) Csk6.addCallbacks(YKHO._callback, YKHO._errback) Csk6.callback('biff!') Csk6.cancel() YKHO.assertEquals(YKHO.cancellerCallCount, 0) YKHO.assertEquals(YKHO.e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m3y0(uUiN):\n eR7g.cancel()\n uUiN.callback(True)", "def ZgCp(YKHO):\n\n def A0m2(Csk6):\n YKHO.cancellerCallCount += 1\n Csk6.errback(_nGm())\n Csk6 = ntd0.Deferred(canceller=A0m2)\n Csk6.addCallbacks(YKHO._callback, YKHO._errback)\n Csk6.errback(_nGm())\n Csk6.cancel()\n ...
[ "0.8014728", "0.7989878", "0.7932264", "0.79199684", "0.7908966", "0.79075986", "0.7864576", "0.7751101", "0.77185297", "0.7614228", "0.7582861", "0.75514996", "0.74713993", "0.7416654", "0.73974234", "0.7394041", "0.7239211", "0.7040061", "0.6874151", "0.6860966", "0.669018"...
0.8213759
0
Test that cancelling a L{Deferred} after it has been errbacked does not result in a L{defer.CancelledError}.
def ZgCp(YKHO): def A0m2(Csk6): YKHO.cancellerCallCount += 1 Csk6.errback(_nGm()) Csk6 = ntd0.Deferred(canceller=A0m2) Csk6.addCallbacks(YKHO._callback, YKHO._errback) Csk6.errback(_nGm()) Csk6.cancel() YKHO.assertEquals(YKHO.cancellerCallCount, 0) YKHO.assertEquals(YKHO.err...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ck2N(YKHO):\n\n def A0m2(Csk6):\n YKHO.cancellerCallCount += 1\n Csk6 = ntd0.Deferred(canceller=A0m2)\n Csk6.addCallbacks(YKHO._callback, YKHO._errback)\n Csk6.cancel()\n YKHO.assertEquals(YKHO.cancellerCallCount, 1)\n YKHO.assertEquals(YKHO.errbackResults.type, ntd0.CancelledError)\n ...
[ "0.7589575", "0.75795835", "0.7550283", "0.7468114", "0.7393229", "0.73573583", "0.7329008", "0.72945416", "0.7287537", "0.72789365", "0.7245661", "0.7240608", "0.71870416", "0.7166537", "0.7071749", "0.70085937", "0.700154", "0.6924131", "0.6910661", "0.6833272", "0.6797519"...
0.75887686
1
Test a canceller which calls its deferred.
def Fv03(YKHO): def A0m2(Csk6): YKHO.cancellerCallCount += 1 Csk6.callback('hello!') Csk6 = ntd0.Deferred(canceller=A0m2) Csk6.addCallbacks(YKHO._callback, YKHO._errback) Csk6.cancel() YKHO.assertEquals(YKHO.cancellerCallCount, 1) YKHO.assertEquals(YKHO.callbackResults, 'hello!'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bi6a(YKHO):\n\n def A0m2(AjzU):\n YKHO.assertIdentical(AjzU, Csk6)\n Csk6 = ntd0.Deferred(canceller=A0m2)\n Csk6.addCallbacks(YKHO._callback, YKHO._errback)\n Csk6.cancel()", "def ck2N(YKHO):\n\n def A0m2(Csk6):\n YKHO.cancellerCallCount += 1\n Csk6 = ntd0.Deferred(canceller=A...
[ "0.8249685", "0.80412096", "0.79602295", "0.75075424", "0.7334814", "0.7252591", "0.72408766", "0.7227819", "0.7085286", "0.6961986", "0.6799494", "0.67681813", "0.6741891", "0.66214305", "0.6590042", "0.6554481", "0.64176565", "0.6411159", "0.6368333", "0.633986", "0.6337138...
0.76023066
3
Verify that a Deferred, a, which is waiting on another Deferred, b, returned from one of its callbacks, will propagate L{defer.CancelledError} when a is cancelled.
def nDHb(YKHO): def dYUC(Csk6): YKHO.cancellerCallCount += 1 def A0m2(Csk6): YKHO.assert_(False) Fg_i = ntd0.Deferred(canceller=dYUC) jzdc = ntd0.Deferred(canceller=A0m2) jzdc.callback(None) jzdc.addCallback(lambda nPrm: Fg_i) jzdc.cancel() jzdc.addCallbacks(YKHO._callb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hYph(YKHO):\n Csk6 = ntd0.Deferred()\n Csk6.addCallbacks(YKHO._callback, YKHO._errback)\n Csk6.cancel()\n YKHO.assertEquals(YKHO.errbackResults.type, ntd0.CancelledError)\n QrFp = YKHO.errbackResults\n Csk6.cancel()\n YKHO.assertIdentical(QrFp, YKHO.errbackResults)", "def GjTH(YKHO):\n ...
[ "0.72016805", "0.7037366", "0.6886163", "0.6857165", "0.6828776", "0.6775573", "0.67477155", "0.67320025", "0.6677829", "0.66358036", "0.6606463", "0.65724015", "0.6461184", "0.63848585", "0.63656306", "0.6350418", "0.63212335", "0.6276166", "0.62546134", "0.6204458", "0.6091...
0.7447546
0
If the token count passed to L{DeferredSemaphore} is less than one then L{ValueError} is raised.
def nlMg(YKHO): YKHO.assertRaises(ValueError, ntd0.DeferredSemaphore, 0) YKHO.assertRaises(ValueError, ntd0.DeferredSemaphore, -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sBY3(YKHO) -> None:\n assert YKHO.semaphore._value == YKHO.limit - YKHO.open - YKHO._n_connecting", "def qA7o():\n nNXP.abort(aazL.HTTP_409, 'Message tokens can only be changed once every {0} hours'.format(TKYJ))", "def JG6i(YKHO):\n h9Wc = ntd0.DeferredSemaphore(1)\n h9Wc.acquire()\n Csk6 =...
[ "0.6173514", "0.5847105", "0.58249307", "0.57081467", "0.5572099", "0.554132", "0.54995817", "0.533849", "0.5306243", "0.52660245", "0.5260633", "0.5249059", "0.5209448", "0.5202816", "0.5178473", "0.5154906", "0.51384336", "0.51379657", "0.51115364", "0.51013595", "0.5089569...
0.7845885
0
Returns a string with the network in CIDR notation
def gwER(YKHO): return str(YKHO.network)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(D8Ke: 'ip::ip', yf3m: 'string') -> 'string':\n Zxma = xOIh.IPNetwork(f'{D8Ke}/{yf3m}')\n return str(Zxma.network)", "def yf3m(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('cidr'))", "def okGD(yf3m: 'string') -> 'string':\n Zxma = xOIh.IPNetwork(yf3m)\n return str(Zxma.netw...
[ "0.79126805", "0.7424668", "0.7376194", "0.7158268", "0.70992494", "0.7079737", "0.7027382", "0.7025426", "0.7025426", "0.68571174", "0.68571174", "0.6845511", "0.6834113", "0.68252945", "0.67738664", "0.67688614", "0.67631406", "0.6742785", "0.6742785", "0.67259926", "0.6694...
0.8273699
1
Returns a string with the network in CIDR notation
def gwER(YKHO): return str(YKHO.network)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eVVj(D8Ke: 'ip::ip', yf3m: 'string') -> 'string':\n Zxma = xOIh.IPNetwork(f'{D8Ke}/{yf3m}')\n return str(Zxma.network)", "def yf3m(YKHO) -> str:\n return laHg.cast(str, YKHO._properties.get('cidr'))", "def okGD(yf3m: 'string') -> 'string':\n Zxma = xOIh.IPNetwork(yf3m)\n return str(Zxma.netw...
[ "0.79126805", "0.7424668", "0.7376194", "0.7158268", "0.70992494", "0.7079737", "0.7027382", "0.7025426", "0.7025426", "0.68571174", "0.68571174", "0.6845511", "0.6834113", "0.68252945", "0.67738664", "0.67688614", "0.67631406", "0.6742785", "0.6742785", "0.67259926", "0.6694...
0.8273699
0
Specialized version of functools.wraps for wrapping numpy functions. This produces a wrapped function with a modified docstring. In particular, if `update_doc` is True, parameters listed in the wrapped function that are not supported by the decorated function will be removed from the docstring. For this reason, it is i...
def vgjZ(MCGS: Callable, n6mX: bool=True, ihND: str='', UOrz: Sequence[str]=('Parameters', 'Returns', 'References'), obve: Sequence[str]=()): def GDMi(khtY): hP9Q = getattr(MCGS, '__doc__', None) if hP9Q: try: U5Jc = eEK0(hP9Q) if n6mX and hasattr(khtY, '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BtQx(hP9Q, MCGS, khtY):\n if not hasattr(khtY, '__code__'):\n return hP9Q\n if hP9Q[:4] == ' ':\n Nqlg = hP9Q.split('\\n')\n for or8S, zFiD in enumerate(Nqlg):\n Nqlg[or8S] = zFiD.replace(' ', '', 1)\n hP9Q = '\\n'.join(Nqlg)\n gvhs = hP9Q.find('Parameters'...
[ "0.7310941", "0.70455444", "0.69246167", "0.6869967", "0.66237444", "0.6496604", "0.6493124", "0.6483515", "0.6482811", "0.6465119", "0.6365314", "0.6316548", "0.63132304", "0.6306672", "0.6279553", "0.6278384", "0.6261022", "0.62346065", "0.6187442", "0.6183916", "0.61749506...
0.81775475
0
Returns the OMX_PORT_PARAM_TYPE structure for a given type
def h5w0(YKHO, a1PO): Fb8A = nVRC() Fb8A.nSize = 4 * 4 Fb8A.nVersion = asDK EKWw = gk2W.pointer(Fb8A) tTpl = YKHO.handle[0].GetParameter(YKHO.handle, a1PO, gk2W.cast(EKWw, gk2W.c_void_p)) GfdN(tTpl) assert Fb8A.nSize == 4 * 4 return Fb8A
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CbyE(AZQs: Optional[Union[Type, str, dict]]) -> Pqc_.ParameterType:\n if type(AZQs) == type:\n l87X = AZQs.__name__\n elif isinstance(AZQs, dict):\n l87X = list(AZQs.keys())[0]\n else:\n l87X = ZTkY.get_short_type_name(str(AZQs))\n return OBXQ.get(l87X.lower())", "def SJf8(AZ...
[ "0.6826187", "0.65164936", "0.6412169", "0.6412169", "0.6038112", "0.5988338", "0.59612924", "0.59225774", "0.59225774", "0.59225774", "0.5819704", "0.57764167", "0.57764167", "0.57402796", "0.5727273", "0.571607", "0.570755", "0.5646701", "0.56149215", "0.56063294", "0.55871...
0.582838
10
check if obj has inherited from a_class
def b_gB(YEnM, J9Xy): jzdc = issubclass(type(YEnM), J9Xy) Fg_i = not type(YEnM) == J9Xy return jzdc and Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b_gB(YEnM, J9Xy):\n if type(YEnM) is J9Xy or not isinstance(YEnM, J9Xy):\n return False\n else:\n return True", "def b_gB(YEnM, J9Xy):\n return issubclass(type(YEnM), J9Xy)", "def b_gB(YEnM, J9Xy):\n if type(YEnM) is J9Xy:\n return False\n elif isinstance(YEnM, J9Xy):\n ...
[ "0.874759", "0.8736583", "0.8663906", "0.8654706", "0.86201954", "0.86201954", "0.86104614", "0.86070436", "0.8595891", "0.8560393", "0.855781", "0.8553947", "0.85075116", "0.8489208", "0.8479813", "0.8477738", "0.8467207", "0.84642005", "0.8461525", "0.8461525", "0.8445581",...
0.834615
33
Returns the value of attribute "attr_index" that occurs the most often in the examples.
def tfkL(_73Q, b5ld): gav9 = [aTqo[b5ld] for aTqo in _73Q] return max(set(gav9), key=gav9.count)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hnFw(DumB, hkS8):\n if hkS8 == 'definition':\n azoT = [len(' '.join(ZfUD.definition)) for ZfUD in DumB]\n else:\n azoT = [len(getattr(ZfUD, hkS8)) for ZfUD in DumB]\n PtQX = max(azoT)\n return azoT.index(PtQX)", "def IYm4(_73Q, A1sI, ujHY):\n global attr\n x4vb = []\n for Y...
[ "0.72166437", "0.67624295", "0.65126985", "0.6445689", "0.64453435", "0.6434623", "0.6325091", "0.6302494", "0.62314993", "0.6231032", "0.6194555", "0.61881983", "0.61774224", "0.617427", "0.6168828", "0.6133878", "0.6133864", "0.61164707", "0.60820764", "0.6079564", "0.60696...
0.7478018
0
Init an Enforcer class for placement policy. This method uses a different list of policies than other parts of Nova. This is done to facilitate a split out of the placement service later.
def xZRc(): global _ENFORCER_PLACEMENT if not PDM0: c_NS = Qabx.Rules.load_json(S3sg.dumps({'placement': 'role:admin'})) PDM0 = Qabx.Enforcer(SAs9, rules=c_NS, use_conf=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, som_=None, Uy8j=None):\n YKHO.policies = som_\n YKHO.policy_groups = Uy8j\n YKHO.policies_dedupped = None", "def k_DX(HRrD=None, c_NS=None, R5JM=None, NTFq=True):\n global _ENFORCER\n if jGB9:\n return\n jGB9 = Qabx.Enforcer(SAs9, policy_file=HRrD, rules=c_NS, default_rule...
[ "0.64716727", "0.6100893", "0.60969305", "0.60945255", "0.58882", "0.58415484", "0.5840937", "0.5839018", "0.5741309", "0.5699571", "0.56919813", "0.56763893", "0.56760603", "0.5621819", "0.5581482", "0.5554549", "0.5533434", "0.55282974", "0.5466297", "0.54646975", "0.546325...
0.7750948
0
Creates a new Generation. Creates and sets a individual ID for all individuals in this generation.
def FIMM(YKHO, mLGw, xRqF): YKHO.num = mLGw s27k = 1 for DM04 in xRqF: DM04.id = '{}-{}'.format(mLGw, s27k) s27k += 1 YKHO.individuals = xRqF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gc2R(YKHO):\n YKHO.create_new_population()\n YKHO.calculate_population_fitness()\n YKHO.rank_population()", "def gc2R(YKHO):\n YKHO.create_new_population()\n YKHO.calculate_population_fitness()\n YKHO.rank_population()", "def FIMM(YKHO, id=1):\n YKHO.id = id\n YKHO.individuals = []\...
[ "0.6457543", "0.6407729", "0.63957375", "0.6280767", "0.6280767", "0.6237903", "0.61883414", "0.6173355", "0.61522263", "0.6150138", "0.6150138", "0.6150138", "0.61033", "0.6091585", "0.60283506", "0.6013574", "0.59665513", "0.59638685", "0.5935756", "0.5891732", "0.58520234"...
0.6097699
13
Add a new scalar value produced at certain iteration. If the length of the buffer exceeds self._max_length, the oldest element will be removed from the buffer.
def QdZT(YKHO, BWXx: float, dfHy: Optional[float]=None) -> None: if dfHy is None: dfHy = YKHO._count if len(YKHO._data) == YKHO._max_length: YKHO._data.pop(0) YKHO._data.append((BWXx, dfHy)) YKHO._count += 1 YKHO._global_avg += (BWXx - YKHO._global_avg) / YKHO._count
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SStx(YKHO, ZfUD):\n YKHO.buffer[YKHO.current_index] = ZfUD\n YKHO.current_index = (YKHO.current_index + 1) % YKHO.max_buffer_size\n if YKHO.stored_elements <= YKHO.max_buffer_size:\n YKHO.stored_elements += 1", "def VLRQ(YKHO, kLQb):\n YKHO._storage.append(kLQb)\n if len(YKHO._storage) ...
[ "0.6646491", "0.6622712", "0.6562756", "0.65618986", "0.6535604", "0.65339786", "0.65339786", "0.64158386", "0.63798827", "0.6373388", "0.6347985", "0.6323702", "0.6286305", "0.6175478", "0.6155717", "0.6145672", "0.610084", "0.60795295", "0.60791194", "0.6022186", "0.6012791...
0.59419936
26
Return the mean of all the elements in the buffer. Note that this includes those getting removed due to limited buffer storage.
def Ofpc(YKHO) -> float: return YKHO._global_avg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(YKHO):\n YAq3 = 0\n for YRbF in range(min(YKHO.stored_elements, 100)):\n YAq3 += YKHO.buffer[YRbF]\n return YAq3 / YKHO.stored_elements", "def JBMS(YKHO):\n if YKHO._n_items == 0:\n return oyIN.nan\n return oyIN.mean(YKHO.array[:YKHO._n_items])", "def JBMS(YKHO):\n KCHu...
[ "0.86438304", "0.78761375", "0.77204645", "0.7594698", "0.7594698", "0.75649655", "0.7540703", "0.7464677", "0.7464677", "0.7460144", "0.74491465", "0.74104655", "0.73796904", "0.73652524", "0.73589385", "0.7346749", "0.7335848", "0.73107404", "0.7303165", "0.7265476", "0.726...
0.0
-1
Should return a list of the Search_Nodes that are reachable from this node.
def RbaF(YKHO): raise NotImplementedError('subclasses should implement this')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDNe(YKHO):\n return YKHO.NodeSystem.getNodesList()", "def qmh8(YKHO):\n return YKHO.nodes", "def EbVT(YKHO, Sn9t: str, FJhP: str, LmAn: str=None) -> x1iM[str]:\n pass", "def B2qr(YKHO):\n YKHO.logger.info('Getting all relevant nodes')\n Ziit = o7DN.get_by_states([o7DN.State.LAUNCHED, o7DN...
[ "0.69583374", "0.6808155", "0.67962104", "0.6795328", "0.67882323", "0.67879665", "0.6738328", "0.66801876", "0.6655958", "0.6654481", "0.6644365", "0.6641973", "0.6639306", "0.66226", "0.6601932", "0.6583753", "0.6555652", "0.6554759", "0.6550436", "0.6550436", "0.6550436", ...
0.0
-1
Loads the contents of filename as a JSON file.
def UlWi(Ux0P): with open(Ux0P) as wM3v: nPrm = qQXR.load(wM3v) return nPrm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J2u4(Ux0P):\n with open(Ux0P, 'rt') as eHNT:\n return qQXR.load(eHNT)", "def KrsJ(Ux0P, MZgZ=None):\n if MZgZ:\n pmON = Hy7s.path.dirname(Hy7s.path.abspath(MZgZ))\n Ux0P = Hy7s.path.join(pmON, Ux0P)\n with open(Ux0P, 'r', encoding='utf-8') as eHNT:\n return qQXR.load(eHNT...
[ "0.8158537", "0.8027947", "0.8021983", "0.7998612", "0.79828274", "0.7962324", "0.79538196", "0.79103863", "0.79061866", "0.78783596", "0.7843632", "0.782117", "0.77919066", "0.7789519", "0.77690166", "0.7767983", "0.7761706", "0.7761706", "0.77497745", "0.7746679", "0.773688...
0.7288501
92
Check if zipwith is a closure.
def ldbw(YKHO): qlq6 = _7Z7(lambda WKvO: WKvO) YKHO.assertTrue(hasattr(qlq6, '__call__'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def etS5(LE47: dis.Instruction, ErfX: inspect.ClosureVars) -> bool:\n SIKT = ErfX.nonlocals.get(LE47.argval, ErfX.globals.get(LE47.argval, ErfX.builtins.get(LE47.argval, None)))\n return hasattr(SIKT, '__call__')", "def rVKq(WKvO):\n return isinstance(WKvO, tuple) and len(WKvO) > 0 and callable(WKvO[0])...
[ "0.5866497", "0.5862033", "0.5749444", "0.5685926", "0.5597214", "0.55766153", "0.5575254", "0.55710053", "0.5546908", "0.55331004", "0.54941547", "0.54793096", "0.5451647", "0.5427842", "0.5421949", "0.5408032", "0.5388455", "0.536945", "0.53480035", "0.53018296", "0.5275276...
0.5378959
17
__init__ Constructor Contructor MagicClass
def FIMM(YKHO, r1VO=0): YKHO._MagicClass__radius = 0 if type(r1VO) is not int and type(r1VO) is not float: raise TypeError('radius must be a number') YKHO._MagicClass__radius = r1VO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n raise NotImplementedError('Cannot instantiate this class directly!')", "def pk0k(YKHO):\n return type(YKHO)", "def FIMM(YKHO, *qIxc, **B2fa):\n raise NotImplementedError", "def FIMM(YKHO, *qIxc, **B2fa):\n raise NotImplementedError", "def FIMM(YKHO, *qIxc, **B2fa) -> None:\n ...
[ "0.7464103", "0.7410578", "0.7408194", "0.7408194", "0.73866844", "0.73866844", "0.73866844", "0.73866844", "0.73866844", "0.73866844", "0.7335379", "0.7335379", "0.727594", "0.7247329", "0.7226967", "0.7221876", "0.7221876", "0.7221876", "0.7221876", "0.7221876", "0.72201335...
0.0
-1
circumference Method return circumference
def GiOJ(YKHO): return 2 * epAf.pi * YKHO._MagicClass__radius
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GiOJ(YKHO):\n YKHO.circumference = 2 * YKHO.radius * mM0K", "def qh5m(YKHO):\n NrEI = YKHO.get_height()\n GiOJ = NrEI * epAf.pi\n return GiOJ", "def ZALC(YKHO, r1VO):\n return 2 * epAf.pi * r1VO", "def GiOJ(YKHO):\n return 2.0 * epAf.pi * YKHO.__radius", "def Stx3(Mkmy):\n return 2...
[ "0.8660328", "0.8203905", "0.8018553", "0.7916591", "0.7826242", "0.7811068", "0.7747691", "0.7607251", "0.75955266", "0.7578415", "0.75754386", "0.7532883", "0.74683124", "0.7454284", "0.7438376", "0.7196807", "0.70369697", "0.6869686", "0.68237895", "0.6654433", "0.6654253"...
0.73891956
15
load mpc model and infer
def DI_U(Blhr, LmAn, pETf, Pp2K, BpbI, T9AI): bo34.info('Load model from {}'.format(BpbI)) i3FL, t4q7, VPUy = K54E.load_mpc_model(exe=pETf, mpc_model_dir=BpbI, mpc_model_filename=T9AI, inference=True) bo34.info('******************************************') bo34.info('Start Inferring...') cU5S = './m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XvA9(qIxc):\n LmAn = int(qIxc.role)\n T8FN.init(ehD7, LmAn, 'localhost', qIxc.server, int(qIxc.port))\n C6id = UtL5.CPUPlace()\n pETf = UtL5.Executor(C6id)\n Pp2K = qIxc.batch_size\n I3qN = qIxc.num_field\n qLko = qIxc.sparse_feature_number + 1\n yMQe = T8FN.data(name='feat_idx', shape=...
[ "0.73153895", "0.70431215", "0.70431215", "0.69804317", "0.67257077", "0.67214066", "0.6649082", "0.664734", "0.6635248", "0.6635248", "0.6632133", "0.66139024", "0.6506963", "0.6506963", "0.6506963", "0.6506963", "0.64450413", "0.6444305", "0.6430774", "0.6417236", "0.639266...
0.607927
74
This function accept base64 text formatted image and returns the binary version.
def lGZA(GQzu, UXEK=None): ThLH = WR89.b64decode(ZbWC.sub('^data:image/.+;base64,', '', GQzu)) if UXEK: with open(UXEK, 'wb') as nUeQ: nUeQ.write(ThLH) return ThLH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eS05(zDAW):\n LuWX = zDAW.encode('utf-8')\n _jGW = WR89.b64decode(LuWX)\n LNo8 = XC5k.imdecode(oyIN.frombuffer(_jGW, oyIN.uint8), XC5k.IMREAD_COLOR)\n return LNo8", "def cMAz(Ppe4):\n LaVg = aKaX()\n LaVg.write(WR89.b64decode(Ppe4))\n fR21 = hnIv.open(LaVg)\n return XC5k.cvtColor(oyIN...
[ "0.68456984", "0.68368894", "0.6830602", "0.6728931", "0.67198443", "0.65933883", "0.6521004", "0.6471376", "0.64489245", "0.6348298", "0.63340646", "0.629549", "0.6269686", "0.6255828", "0.624206", "0.62374306", "0.6227773", "0.6198277", "0.6193204", "0.6192298", "0.6185002"...
0.63338304
11
Return a float value of estimated total SBD reward.
def vOGg(YKHO): return PED3(YKHO.get('total_payout_value', '0 SBD')) + PED3(YKHO.get('pending_payout_value', '0 SBD'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L9Zb(YKHO, QTBn: any) -> float:\n return YKHO.REWARD_FKN(YKHO.getRewards(QTBn))", "def wOT8(YKHO) -> float:\n raise NotImplementedError", "def x84G(YKHO) -> float:\n return sum([vOGg for vOGg, qcmx in YKHO.rewards])", "def Xaq_(YKHO):\n return 0.0", "def Xaq_(YKHO):\n return 0.99 ** YKHO...
[ "0.76869875", "0.74880826", "0.7242609", "0.7113401", "0.69244653", "0.69087696", "0.69007134", "0.68916935", "0.6886722", "0.6733694", "0.67089784", "0.6700865", "0.6615955", "0.6610932", "0.65825313", "0.6579948", "0.65643376", "0.6548498", "0.6547499", "0.6541422", "0.6534...
0.74986273
1
Return a timedelta on how old the post is.
def U2Xk(YKHO): return qcWV.utcnow() - YKHO['created']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RA_F(YKHO):\n return YKHO.until - YKHO.since", "def ZJe_(YKHO):\n RA_F = qcWV.now() - YKHO.created\n return RA_F.days", "def Os8H(YKHO):\n return YKHO.before(wzkt())", "def _eoL(YKHO):\n Dw0H = qcWV.datetime.now()\n JRmW = Dw0H - YKHO.previous\n YKHO.previous = Dw0H\n return JRmW....
[ "0.70969427", "0.6882833", "0.68646604", "0.68548775", "0.6715283", "0.6662123", "0.6661304", "0.664804", "0.65696126", "0.6462655", "0.642632", "0.63729775", "0.6368674", "0.63594157", "0.6359175", "0.63549334", "0.6327577", "0.6321886", "0.6321268", "0.6321268", "0.63166624...
0.6400457
11
Retuns True if main post, and False if this is a comment (reply).
def solM(YKHO): return YKHO['depth'] == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DqdY(YKHO, pQGt, f4SS):\n V8Z6 = f4SS.comment(id=pQGt)\n if V8Z6.parent_id.split('_')[0] == 't3':\n return True\n else:\n return False", "def BzBu(m8z6: praw.models.Submission) -> bool:\n if m8z6.title == 'Discussion Thread':\n return False\n return True", "def Frqk(YKHO...
[ "0.6843248", "0.6823227", "0.67155284", "0.66842616", "0.661842", "0.6514611", "0.65141904", "0.64269066", "0.6366095", "0.6345457", "0.63418984", "0.6280505", "0.6265739", "0.6262469", "0.6253447", "0.6104546", "0.6084418", "0.5994558", "0.59878415", "0.59878415", "0.5985286...
0.6607918
5
Returns a formatted amount value for a settlement.
def Ypvy(Vu7S): if Vu7S.IsKindOf(CmGq.FSettlement): SrG_ = Vu7S ZbOB = SrG_.Currency().Name() Z5kt = str(abs(round(SrG_.Amount(), 2))) if ZbOB in ['UGX', 'JPY']: Z5kt = str(abs(round(SrG_.Amount(), 0))) if len(Z5kt.split('.')) > 1: if ZjSO(Z5kt.split('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LYu6(YKHO):\n return PwGh(YKHO.amount)", "def _r3T(YKHO) -> str:\n return YKHO.amount.replace('-', '')", "def Z5kt(YKHO) -> str:\n return qe4Y.get(YKHO, 'amount')", "def Z5kt(YKHO) -> str:\n return qe4Y.get(YKHO, 'amount')", "def BjTX(Emd4):\n return Vs6y.validation_amount_transaction('\...
[ "0.75218356", "0.7297187", "0.7217769", "0.7217769", "0.6786309", "0.67541707", "0.67306066", "0.6627677", "0.6624873", "0.65718925", "0.6569807", "0.65661275", "0.65612584", "0.6548649", "0.64907795", "0.6482923", "0.6481217", "0.6467181", "0.64623636", "0.6429338", "0.64270...
0.75969857
0
Return cp code for debit account base trade settle category.
def u6XZ(Vu7S): if Vu7S.IsKindOf(CmGq.FSettlement): ZrNc = dlUk(Vu7S, 'Cash') if Vu7S.Trade().SettleCategoryChlItem().Name() == 'Euroclear': YKiD = Vu7S.Trade().Instrument() VIXL = YKiD.Currency().Name() if YKiD.InsType() == 'Repo/Reverse' and VIXL == 'ZAR': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kmgX(Vu7S):\n if Vu7S.IsKindOf(CmGq.FSettlement):\n if Vu7S.Trade() and Vu7S.Trade().SettleCategoryChlItem():\n if Vu7S.Trade().SettleCategoryChlItem().Name() == 'Euroclear':\n GFKR = wT_L(Vu7S.Trade())\n if GFKR:\n return GFKR.Account()\n ...
[ "0.6639704", "0.636973", "0.61484915", "0.61484915", "0.60719687", "0.5662241", "0.56043476", "0.55266446", "0.5482342", "0.534706", "0.52849984", "0.52830845", "0.526733", "0.526733", "0.52652246", "0.5244757", "0.5208836", "0.5180601", "0.5176743", "0.51701343", "0.51603067...
0.64027333
1
Get the SETR (Type of Settlement Transaction) indicator pair for a settlement.
def Zv6t(SrG_): CzRG = bH4y(SrG_) q2Xo = CmGq.FPair() q2Xo.First(CmGq.FSymbol('SETR')) q2Xo.Second(CmGq.FSymbol(CzRG)) return q2Xo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bH4y(SrG_):\n FEGq = vpju(SrG_)\n KoqP = NymE(SrG_)\n if FEGq == 'SA_CUSTODIAN':\n if KoqP in ['Internal Transfer', 'SARB Transfer']:\n return 'OWNI'\n elif KoqP == 'External Transfer':\n return 'OWNE'\n elif FEGq == 'Euroclear':\n uXYJ = SrG_.Trade().Type...
[ "0.79960775", "0.6462525", "0.6141971", "0.5854065", "0.57542026", "0.5597716", "0.5536759", "0.55262285", "0.5235853", "0.51884973", "0.51725733", "0.51308", "0.51216626", "0.51190436", "0.5113179", "0.5102554", "0.5089652", "0.5089652", "0.5089652", "0.50750697", "0.5072527...
0.825968
0
(width, height) tuple of the standard patches comprising an image. All patches except edge patches will have the same size. Edge patches may be smaller if the full image size is not an even multiple of the patch size.
def FTrt(YKHO): return (256, 256)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s1DZ(LNo8: np.ndarray, Md0A=256) -> AzJI[oyIN.ndarray, tuple]:\n uy17, wyQG = LNo8.shape\n n1at = uy17 - Md0A - 1\n mEpl = wyQG - Md0A - 1\n YRbF = 0\n r845 = 0\n while r845 <= n1at:\n r845 += Md0A\n while YRbF <= mEpl:\n YRbF += Md0A\n nrWH = r845 + Md0A - uy17\n OsSt ...
[ "0.6640289", "0.6614788", "0.6606985", "0.65992993", "0.65765804", "0.6565747", "0.6557744", "0.65051347", "0.64491653", "0.64200234", "0.6354002", "0.6303977", "0.6290075", "0.6273478", "0.62444115", "0.6226122", "0.6214346", "0.61646366", "0.61165553", "0.60803", "0.6070391...
0.5717752
46
A starting point (calculates pg) from saved p_g.
def rhtY(YKHO): if YKHO.run_weekend_pgs: YKHO.pg = rLdf.read_csv(YKHO.data.folder + 'pg_we.csv') else: YKHO.pg = rLdf.read_csv(YKHO.data.folder + 'pg.csv')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CmUK(YKHO):\n return (YKHO.p, YKHO.g)", "def g74T():\n XP5J = ESjr.genererUnNombrePremier(2)\n Oa1e = 0\n G6lm = XP5J - 1\n print(G6lm)\n hwzW = list(spv0(G6lm))\n print(hwzW)\n kv4J = True\n for r8hN in hwzW:\n for YRbF in hwzW:\n if pow(r8hN, int(G6lm / YRbF), X...
[ "0.65738565", "0.63095623", "0.6255896", "0.60191566", "0.59697807", "0.59483844", "0.59132195", "0.58889", "0.58815056", "0.5876005", "0.58731496", "0.5844864", "0.5771128", "0.5768745", "0.5748527", "0.574574", "0.57362455", "0.56977934", "0.5694284", "0.56683785", "0.56405...
0.5816439
12