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
Replace specific layer of model
def KXkn(Xczh, i7WW, KR18=None, SQA2=False): if hasattr(Xczh, 'bias') and Xczh.bias is not None: VLbD = True else: VLbD = False if isinstance(Xczh, AK6V) and SQA2: mk8e = AK6V(i7WW.size(1), i7WW.size(0), kernel_size=Xczh.kernel_size, stride=Xczh.stride, padding=Xczh.padding, bias=VLb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fXiu(YKHO, Sy5a, kFNQ):\n if YKHO._is_functional_model(YKHO.model):\n YKHO._replace_functional(Sy5a, kFNQ)\n else:\n YKHO._replace_sequential(Sy5a, kFNQ)", "def d1eN(U0yq):\n YKHO._config['layers'].append(U0yq.layer)\n lzjZ = U0yq.layer['config']['name']\n if U0yq.weights:\n ...
[ "0.711397", "0.65308017", "0.64022875", "0.6257557", "0.6102601", "0.6083795", "0.60042804", "0.59850025", "0.58890045", "0.5859135", "0.57935053", "0.5748658", "0.57331145", "0.5721178", "0.57164836", "0.57109594", "0.56713575", "0.565625", "0.56204945", "0.561972", "0.56019...
0.63853943
3
The forward pass of the LGN GNN.
def KVH6(YKHO, nPrm: Union[Dict[str, torch.Tensor], torch.Tensor, np.ndarray], EpOC: bool=False) -> uLKX[pgnX, AzJI[pgnX, x1iM[pgnX]]]: UAYE, xG54, jRlZ, IHO_ = YKHO._prepare_input(nPrm) EJ_d, bGrB, bGrB = YKHO.zonal_fns_in(xG54) EJ_d[0, 0] = ht2j.stack([UAYE.unsqueeze(-1), ht2j.zeros_like(UAYE.unsqueeze(-1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO):\n YKHO.img_gen, YKHO.loss_reg, YKHO.parsav = YKHO.net_G(YKHO.input_P1, YKHO.input_P2, YKHO.input_BP1, YKHO.input_BP2, YKHO.input_SPL1, YKHO.input_SPL2)", "def QHBB(EcVT, SGPK):\n pass", "def KVH6(YKHO, WKvO, E3Wn=None):\n wjQX = YKHO.emb(WKvO)\n LVAh, MKlR = YKHO.gru(wjQX, E3Wn)\n ...
[ "0.7021746", "0.6606525", "0.650498", "0.6491817", "0.64837533", "0.64366865", "0.6392006", "0.6380099", "0.6379494", "0.6359318", "0.6337736", "0.63366437", "0.6324792", "0.6317061", "0.6185036", "0.6175763", "0.6145614", "0.61447585", "0.6138968", "0.6118653", "0.6102638", ...
0.0
-1
Aggregate to the latent space.
def Qemi(I4tP: str, sZ3l: Union[GVec, torch.Tensor]) -> pgnX: if I4tP.lower() == 'sum': return pgnX({upAO: ht2j.sum(BWXx, dim=-3, keepdim=True).unsqueeze(dim=-3) for upAO, BWXx in sZ3l.items()}) elif I4tP.lower() in ('mean', 'average'): return pgnX({upAO: ht2j.mean(BWXx, dim=-3, keepdim=True) fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qemi(jMd6, t9w0, qGu1):\n a72M = t9w0.get_ref('values')\n fl5C = qGu1.get_ref('values')\n for YRbF in range(jMd6.dims):\n a72M[YRbF] += fl5C[YRbF]\n return t9w0", "def Qemi(YKHO):\n YnsP = {}\n for VaGE in YKHO.possessions_to_track_aggregate:\n YnsP[VaGE] = YKHO._haves[VaGE]\n...
[ "0.5966278", "0.59019816", "0.58396506", "0.5788319", "0.5744982", "0.5739673", "0.5610623", "0.5600835", "0.5543926", "0.5533339", "0.55264705", "0.54555935", "0.5397923", "0.5355549", "0.5339577", "0.5326833", "0.5324007", "0.530614", "0.530614", "0.530614", "0.530614", "...
0.57190406
6
Returns parameters of a diagonal Gaussian distribution.
def KVH6(YKHO, epBp, ZHfW=None): H3d1 = ht2j.zeros(epBp.shape[0], epBp.shape[1], YKHO.out_dim) JUHt = ht2j.zeros_like(H3d1) for tpio, PO4e in enumerate(epBp.transpose(0, 1)): if ZHfW is not None: or8S = ht2j.where(ZHfW[:, tpio])[0] _lCa = PO4e[or8S].unsqueeze(1) i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HFmk(EcVT):\n yGTL = EcVT.mean(axis=0)\n SRYB = EcVT.std(axis=0) ** 2.0\n return (yGTL, SRYB)", "def d7Aa(MKlR, tpio=-1):\n r8hN, MKlR = ht2j.split(MKlR, MKlR.size(tpio) // 2, dim=tpio)\n Ty9i = vuvg.softplus(MKlR) + 1e-08\n return (r8hN, Ty9i)", "def IYu9(YKHO, WKvO: ndarray, yGTL: float...
[ "0.6621343", "0.6526359", "0.63007694", "0.6299114", "0.6171184", "0.61131835", "0.6096726", "0.60409284", "0.5998236", "0.5990908", "0.5940768", "0.59406936", "0.591469", "0.58912814", "0.5884686", "0.58705956", "0.5857832", "0.5830444", "0.5819672", "0.5807093", "0.579993",...
0.0
-1
Returns parameters of a diagonal Gaussian distribution.
def KVH6(YKHO, epBp, ZHfW=None): yvT9 = ht2j.zeros(epBp.shape[0], epBp.shape[1], YKHO.inter_dim) for tpio, PO4e in enumerate(epBp.transpose(0, 1)): if ZHfW is not None: or8S = ht2j.where(ZHfW[:, tpio])[0] _lCa = PO4e[or8S].unsqueeze(1) if len(_lCa) != 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HFmk(EcVT):\n yGTL = EcVT.mean(axis=0)\n SRYB = EcVT.std(axis=0) ** 2.0\n return (yGTL, SRYB)", "def d7Aa(MKlR, tpio=-1):\n r8hN, MKlR = ht2j.split(MKlR, MKlR.size(tpio) // 2, dim=tpio)\n Ty9i = vuvg.softplus(MKlR) + 1e-08\n return (r8hN, Ty9i)", "def IYu9(YKHO, WKvO: ndarray, yGTL: float...
[ "0.6621343", "0.6526359", "0.63007694", "0.6299114", "0.6171184", "0.61131835", "0.6096726", "0.60409284", "0.5998236", "0.5990908", "0.5940768", "0.59406936", "0.591469", "0.58912814", "0.5884686", "0.58705956", "0.5857832", "0.5830444", "0.5819672", "0.5807093", "0.579993",...
0.0
-1
Returns parameters of a diagonal Gaussian distribution.
def KVH6(YKHO, epBp, ZHfW=None): yvT9 = ht2j.zeros(epBp.shape[0], epBp.shape[1], YKHO.inter_dim) for tpio, PO4e in enumerate(epBp.transpose(0, 1)): if ZHfW is not None: or8S = ht2j.where(ZHfW[:, tpio])[0] _lCa = PO4e[or8S].unsqueeze(1) _lCa = ht2j.cat([_lCa, ht2j.ones...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HFmk(EcVT):\n yGTL = EcVT.mean(axis=0)\n SRYB = EcVT.std(axis=0) ** 2.0\n return (yGTL, SRYB)", "def d7Aa(MKlR, tpio=-1):\n r8hN, MKlR = ht2j.split(MKlR, MKlR.size(tpio) // 2, dim=tpio)\n Ty9i = vuvg.softplus(MKlR) + 1e-08\n return (r8hN, Ty9i)", "def IYu9(YKHO, WKvO: ndarray, yGTL: float...
[ "0.6621343", "0.6526359", "0.63007694", "0.6299114", "0.6171184", "0.61131835", "0.6096726", "0.60409284", "0.5998236", "0.5990908", "0.5940768", "0.59406936", "0.591469", "0.58912814", "0.5884686", "0.58705956", "0.5857832", "0.5830444", "0.5819672", "0.5807093", "0.579993",...
0.0
-1
Computing the sigmoid of z
def m1Hg(epBp): KCHu = 1 / (1 + oyIN.exp(-epBp)) return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1Hg(epBp):\n return mFhB(epBp)", "def m1Hg(epBp):\n return 1 / (1 + oyIN.e ** (-epBp))", "def m1Hg(epBp):\n return 1 / (1 + tTpl ** (-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n return 1.0 / (1.0 + oyIN.exp(-epBp))", "def m1Hg(epBp):\n retu...
[ "0.92135817", "0.9133256", "0.9079438", "0.901815", "0.8965425", "0.896515", "0.8942718", "0.89072293", "0.89060616", "0.89042807", "0.8901639", "0.8889068", "0.88449734", "0.8842557", "0.88396263", "0.88335305", "0.881918", "0.8803741", "0.87993366", "0.878562", "0.8776092",...
0.8830553
16
CrossEntropy Cost function of logisticregression.
def QVjL(r8hN, k0lF, aPd6): sSN_ = -1 / r8hN * oyIN.sum(aPd6 * oyIN.log(k0lF) + (1 - aPd6) * oyIN.ma.log(1 - k0lF)) sSN_ = oyIN.squeeze(sSN_) assert sSN_.shape == () return sSN_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KIho(YKHO):\n assert YKHO.dataset is not None and YKHO.labels is not None, 'Logistic Regression requires a dataset and labels.'\n Iy_q = 0.0\n KeL5 = YKHO.dataset @ YKHO.parameters[:YKHO.dataset.shape[1]]\n Fiau = ht2j.max(ht2j.zeros(KeL5.shape[0]), KeL5)\n Iy_q = -KeL5 @ YKHO.labels.t() + ht2j....
[ "0.7620326", "0.7539808", "0.72711164", "0.7247201", "0.71958846", "0.7160275", "0.7102912", "0.7061106", "0.7030144", "0.7016394", "0.7009053", "0.6960069", "0.69513154", "0.69331586", "0.69112384", "0.6907551", "0.6875128", "0.6865492", "0.68419284", "0.6829443", "0.6815052...
0.74914515
2
Converts a bytes objects containing RGB/BGR data to a `numpy`_ array.
def gCH9(nPrm, B1Wx): TVTK, H2v2 = B1Wx tPSD, BPSJ = hf8K(B1Wx) if len(nPrm) != tPSD * BPSJ * 3: tPSD, BPSJ = hf8K(B1Wx, splitter=True) if len(nPrm) != tPSD * BPSJ * 3: raise ahGF('Incorrect buffer length for resolution %dx%d' % (TVTK, H2v2)) return oyIN.frombuffer(nPrm, dtyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bRDu(VXjJ: bytes) -> oyIN.ndarray:\n Xn71 = hnIv.open(aKaX(VXjJ))\n Xn71 = Xn71.convert('RGB')\n return oyIN.array(Xn71)", "def eCdp(eQJI):\n VXjJ = hnIv.open(aKaX(eQJI))\n qw7D = oyIN.asarray(VXjJ, dtype=oyIN.uint8)\n return qw7D", "def uEOY(UiEM: bytes) -> oyIN.ndarray:\n Xn71 = hnIv...
[ "0.8172505", "0.7486111", "0.71808004", "0.69675016", "0.6933188", "0.6792523", "0.6778288", "0.6738023", "0.6633244", "0.6520258", "0.651501", "0.64373976", "0.63514537", "0.63396627", "0.63338727", "0.63251585", "0.62947226", "0.62290615", "0.6226957", "0.62201655", "0.6193...
0.6526338
9
Computes topk accuracy, from predicted and true labels.
def vjyh(cCrA, x6A0, G1Hx): Ep8u = x6A0.size(0) bGrB, QyVM = cCrA.topk(G1Hx, 1, True, True) gXXc = QyVM.eq(x6A0.view(-1, 1).expand_as(QyVM)) KSYo = gXXc.view(-1).float().sum() return KSYo.item() * (100.0 / Ep8u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(hlel, pan_, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = pan_.size(0)\n bGrB, nvEb = hlel.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(pan_.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.8226467", "0.8210115", "0.8147518", "0.8125917", "0.81230915", "0.8099589", "0.80985445", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8095448", "0.8091758", "0.8091758", ...
0.0
-1
Return this anomaly's effect on a location's pressure in terms of millibars of deviation from norm.
def yMFa(YKHO, Rci7): return YKHO.__pressure_effect_impl(Rci7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mdbu(YKHO):\n fHXl = YKHO.mu + YKHO.absolute_effects\n Lgta = (fHXl * YKHO.test_splits).sum()\n S5kq = (YKHO.test_splits * oyIN.square(fHXl - Lgta)).sum()\n eHNT = oyIN.sqrt(S5kq) / YKHO.sigma\n return eHNT", "def WnAh(YKHO):\n JeC1 = GThi(YKHO.depth, kelly_bushing=YKHO.kelly_bushing, depth...
[ "0.6159483", "0.5705549", "0.5658776", "0.56413823", "0.5622811", "0.56132203", "0.561322", "0.56084454", "0.5599146", "0.5551584", "0.55485165", "0.55442214", "0.55362886", "0.55347073", "0.55325395", "0.5526802", "0.5523249", "0.55143136", "0.54921734", "0.5482909", "0.5480...
0.65173686
0
x_orig is tensor (requires_grad=False)
def nrOS(YKHO, Zxma, d9uJ, UXqs, zUiX=False, _hZ2=0.1, NuLw=0.3, CoQy=1000, MJMf=1, BK4d=True): if MJMf < 1: MJMf = 1 if not BK4d: MJMf = 1 UXqs = UXqs.view(-1, 1) Ep8u = d9uJ.size(0) T8H5, Np5D = (d9uJ.min(), d9uJ.max()) woqx = d9uJ.detach() for YRbF in range(MJMf): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jMXL(YKHO, WKvO):\n pass", "def SZFh(YKHO, EcVT: Tensor) -> llWB:\n pass", "def DpIR(WKvO):\n if isinstance(WKvO, ht2j.Tensor):\n WKvO.requires_grad = True\n elif isinstance(WKvO, list):\n for YRbF in range(len(WKvO)):\n WKvO[YRbF] = DpIR(WKvO[YRbF])\n return WKvO", ...
[ "0.6925579", "0.66803175", "0.6670634", "0.6656589", "0.66133577", "0.653196", "0.64696497", "0.6465423", "0.6389738", "0.63113385", "0.6260618", "0.6214925", "0.6193738", "0.61846596", "0.61753476", "0.61601675", "0.6096982", "0.6094436", "0.60743785", "0.6052605", "0.602723...
0.0
-1
Updates dictionary with environment variables
def ZoC9(Csk6: dict, kc1W: List[str], LpaZ: bool=False): k4hq = {} for SRYB in kc1W: k4hq[SRYB] = Hy7s.environ[SRYB] if LpaZ: Csk6.update(k4hq) return Csk6 for H5ew in Csk6: if H5ew not in k4hq: k4hq[H5ew] = Csk6[H5ew] return k4hq
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O1R3(YKHO, H5ew, ZfUD):\n super(Y_JR, YKHO).__setitem__(H5ew, ZfUD)\n Hy7s.environ[H5ew] = ZfUD", "def xkgw(C4pr, cuiw):\n for H5ew, BWXx in C4pr.items():\n cuiw.env[H5ew] = BWXx", "def _LUP():\n V112 = Hy7s.getcwd()\n wOcm = Hy7s.path.join(V112, 'lib')\n ZGtC = Hy7s.path.join(V112...
[ "0.7314896", "0.72648215", "0.7112216", "0.70797706", "0.7009642", "0.69214106", "0.68997514", "0.6867747", "0.68147206", "0.6757548", "0.66731036", "0.6655416", "0.6598182", "0.659608", "0.6526021", "0.65181667", "0.6470328", "0.64606106", "0.6452754", "0.6435232", "0.642371...
0.75369257
0
It calculates the kl_divergence as a score.
def r0P_(YKHO, AYoh, w_BP, cdQT, jqR_, Fdbb, ndt3): Ht9y = w_BP + jqR_ o8Ek = AYoh + cdQT EJ4a = (Ht9y / ndt3).sum(-1) FtZN = ((Fdbb - o8Ek) ** 2 / ndt3).sum(-1) GWcM = (ht2j.log(ndt3) - ht2j.log(Ht9y)).sum(-1) return EJ4a + FtZN + GWcM - YKHO.hidden_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dzAH(YKHO):\n return YKHO._kl_divergence_func", "def dzAH(YKHO) -> llWB:\n return YKHO.variational_strategy.kl_divergence().sum(dim=1).mean()", "def dzAH(Y8eF, aMgO):\n aMgO = ui9o.convert_to_tensor_v2_with_dispatch(aMgO)\n Y8eF = qkSJ.cast(Y8eF, aMgO.dtype)\n Y8eF = DDLl.clip(Y8eF, DDLl.eps...
[ "0.8053553", "0.80061203", "0.7779511", "0.76303214", "0.74634075", "0.74550104", "0.74369895", "0.74270064", "0.73695624", "0.7272954", "0.72707105", "0.7267948", "0.71323913", "0.7086379", "0.7082419", "0.70802724", "0.7037046", "0.69306886", "0.68392843", "0.68245673", "0....
0.8041528
1
Read contents of the specified file. ARGUMENTS filename (string) the name of the file to be read RETURNS lines (list of strings) the contents of the file, split by line
def Nwr9(Ux0P): apum = open(Ux0P, 'r') Nqlg = apum.readlines() apum.close() return Nqlg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZLVQ(Ux0P):\n with open(Ux0P) as apum:\n Nqlg = apum.readlines()\n return [zFiD.strip() for zFiD in Nqlg]", "def aA6_(Ux0P):\n with open(Ux0P, 'r') as eHNT:\n Nqlg = eHNT.readlines()\n return Nqlg", "def HbNy(Ux0P):\n with open(Ux0P) as eHNT:\n hGN5 = eHNT.readlines()\n ...
[ "0.858824", "0.85054225", "0.8361589", "0.8360774", "0.81262994", "0.81197053", "0.8099488", "0.806281", "0.7953241", "0.7928299", "0.78831995", "0.78567314", "0.78141814", "0.7810065", "0.77770936", "0.77601427", "0.7739125", "0.77176076", "0.7690341", "0.7680881", "0.764715...
0.8505801
1
Function to remove stopwords
def aUcs(eKbg, di0c): CgYd = list() for or8S, l5Ny in enumerate(eKbg): l5Ny = ' '.join([GIN8 for GIN8 in l5Ny.split() if GIN8 not in di0c]) l5Ny = l5Ny.strip() CgYd.append(l5Ny) return CgYd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkDh(YKHO):\n s2mk = str(YKHO.doc).split()\n zLya = [eOtH for eOtH in s2mk if eOtH.lower() not in YKHO.stopword_list]\n YKHO.doc = ' '.join(zLya)", "def aUcs(l5Ny):\n di0c = ['i', 'me', 'my', 'myself', 'we', 'our', 'ours', 'ourselves', 'you', 'your', 'yours', 'yourself', 'yourselves', 'he', 'him'...
[ "0.88531566", "0.8369413", "0.83565724", "0.83411294", "0.8336053", "0.83236694", "0.83236694", "0.83236694", "0.83236694", "0.82478267", "0.82329667", "0.8223114", "0.8221244", "0.8219732", "0.8200693", "0.8179456", "0.81679446", "0.8165128", "0.81632656", "0.81591564", "0.8...
0.7826675
40
Function to normalize accents (removing them)
def dEDD(eKbg): CgYd = list() for or8S, l5Ny in enumerate(eKbg): try: l5Ny = QMSQ(l5Ny, 'utf-8') except (TypeError, NameError): pass l5Ny = zVCt.normalize('NFD', l5Ny) l5Ny = l5Ny.encode('ascii', 'ignore') l5Ny = l5Ny.decode('utf-8') CgYd.a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDJq(l5Ny):\n l5Ny = zVCt.normalize('NFKD', l5Ny).encode('ascii', 'ignore').decode('utf-8', 'ignore')\n return l5Ny", "def QDJq(l5Ny):\n l5Ny = XKrx.unidecode(l5Ny)\n return l5Ny", "def Gcqg(vIwR):\n return zVCt.normalize('NFKD', vIwR)", "def n9yW(n_L_):\n O9_k = zVCt.normalize('NFKD', ...
[ "0.7737781", "0.7663987", "0.7574864", "0.75457937", "0.7367997", "0.7315611", "0.72645396", "0.72284305", "0.7221782", "0.7184099", "0.71731895", "0.7123765", "0.7105772", "0.7094537", "0.7090537", "0.6981628", "0.6979017", "0.69722664", "0.6968377", "0.6952318", "0.6951829"...
0.6391861
75
Assert that an attribute on the video dict is correctly transferred to the underlying model.
def lNdG(YKHO, Lasr, ZOzi=None, Z7tR='testing'): ZOzi = ZOzi if ZOzi is not None else Lasr hQHm, = hTtk([dZe9(**{'media_id': '1234', Lasr: Z7tR})]) YKHO.assertEqual(Z7tR, getattr(efZC.MediaItem.objects.get(jwp__key=hQHm.key), ZOzi))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YTVN(YKHO, f6W2, o8Kj):\n for H5ew, BWXx in o8Kj.items():\n YKHO.assertEquals(getattr(f6W2, H5ew), BWXx)", "def ke_F(YKHO):\n Khyh = tzVL(load_error_modules=True)\n YTxc = '\\n <video display_name=\"Test Video\"\\n youtube=\"1.0:p2Q6BrNhdh8,0.75:izygArpw-Qo,1.25:1...
[ "0.74175906", "0.67295045", "0.6641028", "0.63907754", "0.63814163", "0.6377068", "0.6370724", "0.63302046", "0.62866104", "0.6269615", "0.6154549", "0.6146784", "0.614477", "0.6081221", "0.60801196", "0.60602754", "0.6039293", "0.60016364", "0.6001627", "0.5975568", "0.59705...
0.7205434
1
Provide a friendly representation
def wHJl(YKHO) -> str: QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items())) return '<Twilio.Taskrouter.V1.WorkersRealTimeStatisticsInstance {}>'.format(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items())) return '<Twilio.Taskrouter.V1.WorkersRealTimeStatisticsContext {}>'.format(QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Provide a friendly representation
def wHJl(YKHO) -> str: return '<Twilio.Taskrouter.V1.WorkersRealTimeStatisticsList>'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UpuU(YKHO) -> str:\n raise NotImplementedError()", "def zAg0(YKHO):\n return YKHO.make_flat()", "def zAg0(YKHO):\n return YKHO.format()", "def zAg0(YKHO):\n return '<%s: %s>' % (YKHO.__class__, YKHO.describe())", "def zAg0(YKHO):\n Aofo = '<' + YKHO._name + ', ' + str(YKHO._id) + ', ' + ...
[ "0.76010835", "0.7571921", "0.7230172", "0.7216933", "0.7194604", "0.71428955", "0.714158", "0.71369046", "0.7134454", "0.7134454", "0.7131177", "0.7104331", "0.70761895", "0.70686626", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70685405", "0.70311874", "0.701...
0.0
-1
Compute softmax values for each sets of scores in x, numerically stable way.
def N93T(YKHO, WKvO): """ Meaning: avoid very large exponents by reducing the largest to zero and everything else to less than that""" aTqo = oyIN.exp(WKvO - oyIN.max(WKvO)) return aTqo / oyIN.sum(aTqo, axis=1, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "def M49J(cCrA):\n if not cCrA:\n return []\n jB5X = None\n for p1kx in cCrA:\n if jB5X is None or p1kx > jB5X:\n jB5X = p1kx\n KPVz = []\n mq4h = 0.0\n for p1kx in cCrA:\n WKvO = oyIN...
[ "0.8070468", "0.80433625", "0.80231184", "0.79677385", "0.79677385", "0.79677385", "0.79677385", "0.7876052", "0.7836074", "0.767107", "0.7657951", "0.75998616", "0.75975287", "0.7573749", "0.7555996", "0.7550059", "0.7547298", "0.75378263", "0.7537748", "0.75364673", "0.7527...
0.74474466
53
Compute softmax values for each sets of scores in x, numerically stable way.
def N93T(WKvO): """ Meaning: avoid very large exponents by reducing the largest to zero and everything else to less than that, so they go to zero instead of infinity an Nan""" aTqo = oyIN.exp(WKvO - oyIN.max(WKvO)) return aTqo / aTqo.sum(axis=1, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "def M49J(cCrA):\n if not cCrA:\n return []\n jB5X = None\n for p1kx in cCrA:\n if jB5X is None or p1kx > jB5X:\n jB5X = p1kx\n KPVz = []\n mq4h = 0.0\n for p1kx in cCrA:\n WKvO = oyIN...
[ "0.8070468", "0.80433625", "0.80231184", "0.79677385", "0.79677385", "0.79677385", "0.79677385", "0.7876052", "0.7836074", "0.767107", "0.7657951", "0.75998616", "0.75975287", "0.7573749", "0.7555996", "0.7550059", "0.7547298", "0.75378263", "0.7537748", "0.75364673", "0.7527...
0.0
-1
Return (x1 != x2) elementwise.
def kUu4(o4D3: PolyLike, ajwV: PolyLike, yvT9: Optional[numpy.ndarray]=None, qJWj: numpy.typing.ArrayLike=True, **B2fa: Any) -> XTiz.ndarray: o4D3, ajwV = f3R4.align_exponents(o4D3, ajwV) if not o4D3.flags['OWNDATA']: o4D3 = f3R4.polynomial(o4D3) if not ajwV.flags['OWNDATA']: ajwV = f3R4.pol...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kUu4(o4D3, ajwV):\n return iEmF(o4D3, ajwV, '!=', True)", "def Zu14(jzdc, Fg_i):\n return jzdc != Fg_i", "def Vdqg(YKHO, Elif):\n return YKHO.x != Elif.x or YKHO.y != Elif.y", "def YPdD(YKHO, UXsi, c163):\n aBKI, Mztb = YKHO.get_val_tuple(UXsi)\n ji9B, PuUO = YKHO.get_val_tuple(c163)\n ...
[ "0.77226806", "0.7119816", "0.70943594", "0.7031799", "0.69675016", "0.6948729", "0.6907602", "0.68954045", "0.6892511", "0.6875043", "0.68544334", "0.68489695", "0.6784118", "0.6784118", "0.67814606", "0.67814606", "0.6756815", "0.6754151", "0.67435956", "0.67435956", "0.674...
0.67324036
24
Merge dataframes by index
def vGZu(*vZqz): YRbF = 0 for dhm0 in vZqz: YRbF += 1 if YRbF == 1: v4XL = dhm0 else: v4XL = p64T.merge(v4XL, dhm0, left_index=True, right_index=True) return v4XL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lF2I(YKHO, xU0C: Tuple[Table, ...], d6pt: str):\n ZLJ_ = a4ZY((iVRZ for tyNF in xU0C for iVRZ in tyNF.columns))\n XIcQ = TQJD(columns=ZLJ_)\n PwWw = {}\n\n def aQzf(rdlD):\n \"\"\"Find index for row, if key already exists.\"\"\"\n BWXx = rdlD[d6pt]\n if BWXx in PwWw:\n ...
[ "0.6812233", "0.655756", "0.64117616", "0.64100575", "0.6078502", "0.6052337", "0.60420763", "0.60106623", "0.6002248", "0.60022134", "0.5940136", "0.592078", "0.59182715", "0.59171253", "0.5911129", "0.58682007", "0.5834415", "0.58135813", "0.5799486", "0.57939404", "0.57607...
0.6686684
1
Return the name of a random card with 3 or less defense.
def q3Ye(khoC: list) -> str: khoC = [dxhl for dxhl in khoC if JgWK[dxhl['char_type']] == 'Follower' and dxhl['life'] <= 3] return tuKI.choice(khoC)['card_name']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP():\n return Ih2K.choice([XWsy(), CYhc()])", "def WZwX():\n if r3Cp(3):\n return aUyX()\n elif KIk2():\n return Eyo5()\n else:\n return mXdp()", "def F48w(YKHO):\n dxhl = tuKI.randint(1, 13)\n return dxhl", "def zZyd():\n Akjw = tuKI.randint(1, 20)\n if Ak...
[ "0.6715359", "0.6683583", "0.65180373", "0.64784664", "0.6403936", "0.6373773", "0.63078946", "0.628647", "0.6264274", "0.62553495", "0.62134594", "0.62086356", "0.6189115", "0.61798203", "0.6160609", "0.61584073", "0.61531466", "0.61512375", "0.6133655", "0.61049354", "0.610...
0.72727215
0
Tests that updating with a malformed value fails
def YdEn(ebOZ, rs0C): im04 = rs0C.get('/api/observables/{0:d}/'.format(ebOZ[0].id)) lAhU = qQXR.loads(im04.data) im04 = rs0C.put('/api/observables/{0:d}/'.format(lAhU['id']), data=qQXR.dumps({'value': 'qwe'}), content_type='application/json') assert im04.status_code == 400 geh0 = qQXR.loads(im04.dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DEwC(udfG, Q3zR):\n geh0 = udfG.put(xIrV, data=qQXR.dumps(Q3zR), content_type='application/json')\n nPrm = qQXR.loads(geh0.get_data())\n assert geh0.status_code == 400\n assert nPrm['error'] == P4t4.BAD_REQUEST", "def RzlC(YKHO):\n with YKHO.assertRaises(sUXu):\n rcIZ.objects(partition=...
[ "0.7336618", "0.7207815", "0.71554583", "0.70740587", "0.7045646", "0.697905", "0.6965757", "0.69573295", "0.6954627", "0.6905297", "0.68724275", "0.6771606", "0.67441", "0.67182475", "0.67114776", "0.6710993", "0.6707138", "0.6698792", "0.6677346", "0.6671433", "0.6666845", ...
0.0
-1
Calculated planet Flux from fluxRatio
def NMcK(JqJc): zBUO = 6.958 * 10.0 ** (-35.0) OPnO = JqJc * zBUO return OPnO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mDex(YKHO):\n return YKHO._flux_ratio", "def qsGk(YKHO, shSu, jsiB, Wyfe):\n if shSu == 'mass':\n kq1Q = lambda WKvO: WKvO\n elif shSu == 'momentum':\n kq1Q = lambda WKvO: WKvO ** 2\n elif shSu == 'buoyancy':\n Fg_i = YKHO.read_vars(['b'])['b']\n kq1Q = lambda WKvO: WK...
[ "0.702318", "0.6540288", "0.6403921", "0.61347276", "0.6107439", "0.6063611", "0.6063337", "0.6048169", "0.60073334", "0.5975089", "0.59630424", "0.5957901", "0.5957133", "0.59500575", "0.59119695", "0.59119695", "0.58879894", "0.5767778", "0.5764693", "0.5733011", "0.5722366...
0.79457533
0
For a list of points, return the value and ind of the second smallest
def B5um(qwMH): iZKJ = oyIN.arange(len(qwMH)) dMiR = oyIN.argmin(qwMH) iZKJ = oyIN.delete(iZKJ, dMiR) cNi5 = oyIN.delete(qwMH, dMiR) CZPm = min(cNi5) choZ = oyIN.argmin(oyIN.abs(qwMH - CZPm)) return (CZPm, choZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVdX(LTIa):\n uNwd = 0\n for YRbF in range(1, len(LTIa)):\n if LTIa[YRbF][1] < LTIa[uNwd][1]:\n uNwd = YRbF\n elif LTIa[YRbF][0] > LTIa[uNwd][0] and LTIa[YRbF][1] == LTIa[uNwd][1]:\n uNwd = YRbF\n return uNwd", "def u0HU(LTIa):\n fciZ = None\n for jzdc, BHsk...
[ "0.79402167", "0.7153393", "0.7102703", "0.69617814", "0.6841433", "0.6822349", "0.68184066", "0.6758638", "0.6753647", "0.67330354", "0.67191845", "0.66847414", "0.66691005", "0.66613626", "0.665042", "0.6640727", "0.6623711", "0.66230416", "0.6605486", "0.65277404", "0.6479...
0.7209412
1
For a list of points, return the value and ind of the second smallest
def ElkK(qwMH): N2na = qwMH CZPm, choZ = B5um(qwMH) qwMH = oyIN.delete(qwMH, choZ) iZKJ = oyIN.arange(len(qwMH)) dMiR = oyIN.argmin(qwMH) iZKJ = oyIN.delete(iZKJ, dMiR) cNi5 = oyIN.delete(qwMH, dMiR) H9uw = min(cNi5) ivO_ = oyIN.argmin(oyIN.abs(N2na - H9uw)) return (CZPm, choZ, H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bVdX(LTIa):\n uNwd = 0\n for YRbF in range(1, len(LTIa)):\n if LTIa[YRbF][1] < LTIa[uNwd][1]:\n uNwd = YRbF\n elif LTIa[YRbF][0] > LTIa[uNwd][0] and LTIa[YRbF][1] == LTIa[uNwd][1]:\n uNwd = YRbF\n return uNwd", "def B5um(qwMH):\n iZKJ = oyIN.arange(len(qwMH))\n...
[ "0.79402167", "0.7209412", "0.7153393", "0.7102703", "0.69617814", "0.6841433", "0.6822349", "0.68184066", "0.6758638", "0.6753647", "0.67330354", "0.67191845", "0.66847414", "0.66613626", "0.665042", "0.6640727", "0.6623711", "0.66230416", "0.6605486", "0.65277404", "0.64795...
0.66691005
13
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(JwGr, YKHO).__init__(*qIxc, **c_sp) if YKHO.header is None: YKHO.header = kKAJ.msg.Header() if YKHO.cmd is None: YKHO.cmd = '' if YKHO.cat is None: YKHO.cat = '' else: YKHO.header = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None) -> None:\n super().__init__(Ol8d)", "def FIMM(YKHO, Ol8d: str=None, **B2fa):\n YKHO.message = Ol8d\n YKHO.kwargs = B2fa\n YKHO.args = {}\n YKHO.args['message'...
[ "0.77207875", "0.77207875", "0.7687243", "0.7625947", "0.7564293", "0.7440383", "0.74175525", "0.7352349", "0.7308313", "0.72808266", "0.72378874", "0.722805", "0.7225032", "0.7225032", "0.7219433", "0.72120637", "0.72120637", "0.72120637", "0.72120637", "0.72120637", "0.7212...
0.7794795
0
Prints the string representation of an instance
def IJmj(YKHO, qIxc): ycBG = qIxc.split() if len(ycBG) == 0: print('** class name missing **') return elif ycBG[0] not in YKHO.myclasses: print("** class doesn't exist **") return elif len(ycBG) < 2: print('** instance id missing **') return else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W8mS(YKHO):\n print(str(YKHO))", "def zAg0(YKHO):\n return repr(YKHO)", "def wHJl(YKHO):\n str(YKHO)", "def wHJl(YKHO):\n return YKHO.pretty_print(YKHO.__dict__)", "def zAg0(YKHO):\n return repr(YKHO)", "def W8mS(YKHO):\n print(YKHO)", "def print(YKHO):\n print(YKHO)", "def z...
[ "0.78180873", "0.7659494", "0.76525486", "0.7631973", "0.7624355", "0.75274724", "0.75187683", "0.7486338", "0.74702305", "0.7459381", "0.74542874", "0.74296963", "0.74252236", "0.73999614", "0.7346746", "0.7341109", "0.7331948", "0.73284656", "0.7324425", "0.7309293", "0.729...
0.0
-1
Returns list of nodes with just one neighbor node.
def Putm(pNZh): Qubi = [YRbF for YRbF in pNZh.nodes_iter() if len(pNZh.neighbors(YRbF)) == 1] return Qubi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdGm(YKHO):\n return [WKvO.node for WKvO in YKHO.edges]", "def avhY(YKHO, Q6kx):\n MQ9g = []\n for YRbF in range(YKHO.nodenum):\n if YKHO.Adjmatrix[Q6kx, YRbF] == 1:\n MQ9g.append(YRbF)\n return MQ9g", "def qIRx(YKHO):\n return []", "def A_IW(YKHO, Q6kx):\n return list...
[ "0.74010164", "0.737462", "0.72532517", "0.7129969", "0.70706856", "0.7011543", "0.69622153", "0.69497406", "0.69088656", "0.68546456", "0.68523836", "0.6778627", "0.67689604", "0.67326325", "0.6719073", "0.6684964", "0.6674869", "0.6668576", "0.6661993", "0.6661993", "0.6661...
0.62598306
53
Creates a networkx graph out of all Voronoi ridge vertices which are inside the original geometry.
def Xhok(yMZv, Fw8z): pNZh = jHsn.Graph() for YRbF in yMZv.ridge_vertices: if YRbF[0] > -1 and YRbF[1] > -1: lCHq = PvyL(yMZv.vertices[YRbF][0]) ANJu = PvyL(yMZv.vertices[YRbF][1]) if lCHq.within(Fw8z) and ANJu.within(Fw8z): pImw = lCHq.distance(ANJu) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OkNX(Fw8z, eVVj, Av8B, **NArs):\n print('voronoi: nothing yet')", "def kdOg(YKHO, _hZ2=0.00025, cjUO=0, Uu5J=10):\n eEIH = wEWl(YKHO._structure.get_extended_positions(Uu5J) + _hZ2)\n CAzz = eEIH.vertices\n if cjUO > 0:\n hKn5 = iI2p(linkage='single', distance_threshold=cjUO, n_clusters=Non...
[ "0.70450276", "0.6434969", "0.63071525", "0.62754816", "0.6202212", "0.6193984", "0.6181318", "0.61705446", "0.61538225", "0.61533594", "0.6105733", "0.60412776", "0.59484005", "0.58958876", "0.5893371", "0.5882006", "0.58768106", "0.58678263", "0.58341247", "0.5813684", "0.5...
0.83008176
0
Model function to construct a tf.estimator.EstimatorSpec. It creates a network given input features (e.g. from a dltk.io.abstract_reader) and training targets (labels). Further, loss, optimiser, evaluation ops and custom tensorboard summary ops can be added. For additional information,
def JnVv(bySB, Crrw, Tuqy, NArs): print('Estimator constructing model function.....') svW5 = Q_ZW(inputs=bySB, num_res_units=2, num_classes=Fu4v, filters=(16, 32, 64, 128, 256), strides=((1, 1, 1), (2, 2, 2), (2, 2, 2), (2, 2, 2), (2, 2, 2)), mode=Tuqy, kernel_regularizer=ZylS.contrib.layers.l2_regularizer(0.00...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mt7z(bySB, Crrw, Tuqy):\n if Tuqy not in {'train', 'infer', 'eval'}:\n raise ValueError('mode should be in {\"train\", \"infer\", \"eval\"}')\n KeL5 = zg3U(bySB)\n aTLP = ZylS.argmax(KeL5, axis=-1)\n BFeB = ZylS.nn.softmax(KeL5, axis=-1)\n N6Z1 = dict(preds=aTLP, probs=BFeB, image=bySB)\n...
[ "0.7326729", "0.7191808", "0.71243787", "0.71142024", "0.7031326", "0.69994724", "0.69602257", "0.6863793", "0.6835929", "0.6834096", "0.67945176", "0.6793571", "0.6780604", "0.6773075", "0.6762669", "0.6758128", "0.673286", "0.6720593", "0.67154515", "0.6710283", "0.66890466...
0.6561989
34
Initialise the iterator after the session has been created.
def q52D(YKHO, cuiw, BHsk): print('interator session after created..........', GPtr._task_type) YKHO.iterator_initializer_func(cuiw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q52D(YKHO, cuiw, BHsk):\n YKHO.iterator_initializer_func(cuiw)", "def q52D(YKHO, cuiw, BHsk):\n YKHO.iterator_initializer_func(cuiw)", "def P7xb(YKHO):\n pass", "def P7xb(YKHO):\n pass", "def q52D(YKHO, cuiw, BHsk):\n del BHsk\n YKHO.iterator_initializer_fn(cuiw)", "def q52D(YKHO, c...
[ "0.7544628", "0.7544628", "0.7154914", "0.7154914", "0.6747339", "0.6677135", "0.6412246", "0.6376045", "0.6362696", "0.6277933", "0.6266516", "0.6255239", "0.6247051", "0.62424946", "0.6233093", "0.62212116", "0.6186286", "0.6172497", "0.6155909", "0.610087", "0.60536087", ...
0.6880919
4
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(hFLg, YKHO).__init__(*qIxc, **c_sp) if YKHO.name is None: YKHO.name = '' if YKHO.compatibility is None: YKHO.compatibility = '' if YKHO.display_name is None: YKHO.display_name = '' if YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77940345", "0.77196896", "0.77196896", "0.7685901", "0.76253456", "0.75629234", "0.7438996", "0.74165684", "0.73517054", "0.73081905", "0.7280219", "0.7237793", "0.7226802", "0.7223405", "0.7223405", "0.7218974", "0.72109884", "0.72109884", "0.72109884", "0.72109884", "0.7...
0.0
-1
Return saved session expiration seconds if any. Is retuned in the form of a timedelta data type. None is returned if there's no value stored or it's malformed.
def ZdM6(YKHO): if YKHO.extra_data: mWFP = getattr(gCuF, 'AUTHENTICATOR_EXPIRATION', 'expires') try: return fCoM(seconds=int(YKHO.extra_data.get(mWFP))) except (ValueError, TypeError): pass return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N850(YKHO) -> laHg.Optional[lTJ4.core.Duration]:\n return YKHO._values.get('expiration')", "def OBx7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'expiration_time')", "def MmDG(YKHO, p_Tc):\n E3oo = ITS7.time()\n if YKHO.nbf:\n E3oo = YKHO.nbf\n return E3oo + p_Tc", "def ...
[ "0.7113243", "0.67239463", "0.6675779", "0.66589063", "0.66589063", "0.65820515", "0.65542966", "0.6550881", "0.6526911", "0.6467386", "0.6467224", "0.6449834", "0.6429491", "0.6411405", "0.64054066", "0.63921326", "0.63505644", "0.6322792", "0.6313116", "0.6313116", "0.62894...
0.77770007
0
The primary link URL for this activity item.
def gmFE(YKHO): if YKHO._data.get('details_url'): pmON = YKHO._data.get('details_url') try: pmON, qM3Q = pmON.split('#') qM3Q = '#' + qM3Q except ValueError: qM3Q = '' return '{}?from_activity={}{}'.format(pmON, YKHO._data.get('id'), qM3Q)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wAaC(YKHO):\n return YKHO.urlLink()", "def vJxk(YKHO):\n try:\n return YKHO.content_object.get_absolute_url()\n except AttributeError:\n return YKHO.external_url", "def vJxk(YKHO, ZfUD):\n return YKHO.get_absolute_url(ZfUD, 'detail')", "def QZnA(YKHO):\n return YKHO._get_fiel...
[ "0.73726964", "0.7309584", "0.72686356", "0.70228505", "0.70104975", "0.70104975", "0.69942373", "0.6989369", "0.6947148", "0.69264704", "0.6911357", "0.6911357", "0.6885276", "0.6864332", "0.68346316", "0.68308234", "0.68308234", "0.6750072", "0.6750072", "0.6750072", "0.675...
0.0
-1
return a color based on the value given the information on the colormap and its normalization is used for that purpose
def Y045(YKHO, Ty9i): if oyIN.isscalar(Ty9i): Mkmy = YKHO.cmap(YKHO.norm(oyIN.asarray([Ty9i]))) else: Mkmy = YKHO.cmap(YKHO.norm(Ty9i)) return Mkmy.flatten()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n_rA(fvDH):\n sHpf = [WKvO / 255.0 for WKvO in fvDH]\n return sHpf", "def CkYf(YKHO):\n return YKHO._color_mapper", "def qRc6(M_DK, CkYf=False):\n qfpW = AEoZ(M_DK)(M_DK)\n if CkYf:\n Yd35 = oyIN.min(qfpW)\n ZfiU = oyIN.max(qfpW)\n qfpW = (qfpW - Yd35) / (ZfiU - Yd35)\n ...
[ "0.6880266", "0.6859639", "0.6822679", "0.6686454", "0.6606535", "0.66033316", "0.65864146", "0.6570994", "0.6555635", "0.6551877", "0.6515759", "0.6489695", "0.6444691", "0.64401853", "0.6409031", "0.6366957", "0.6344691", "0.6274081", "0.62629175", "0.62438357", "0.6235757"...
0.76134557
0
1. max heapify the array (start at n/2) 2. repeatedly "remove" the first element and move to end
def BA9O(YKHO, ezWE): YKHO.heapify(ezWE) for YRbF in range(len(ezWE) - 1, 0, -1): ezWE[YRbF], ezWE[0] = (ezWE[0], ezWE[YRbF]) YKHO.bubbleDown(ezWE, 0, YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Npt8(ezWE):\n for YRbF in range(len(ezWE) - 1, -1, -1):\n O9C_(ezWE, len(ezWE), YRbF)", "def M16d(k0lF):\n X6SM(k0lF)\n Ylbp = []\n for YRbF in range(len(k0lF) - 1, 1, -1):\n Ylbp.insert(0, k0lF[1])\n k0lF[1], k0lF[YRbF] = (k0lF[YRbF], k0lF[1])\n del k0lF[YRbF]\n ...
[ "0.7332355", "0.72560877", "0.72517484", "0.71246964", "0.70521635", "0.7043834", "0.7041317", "0.70364994", "0.70221657", "0.70093197", "0.70074666", "0.6999831", "0.69765586", "0.6943542", "0.6897989", "0.68533564", "0.68164957", "0.6767977", "0.67209536", "0.670007", "0.66...
0.0
-1
Retrieves the learning rate with the given state.
def caku(YKHO, KiNK, Ef5P, B0Bd): if B0Bd is None: return (YKHO._decayed_lr_t[Ef5P], {}) B0Bd = B0Bd or {} FN88 = B0Bd.get((KiNK, Ef5P)) if FN88 is None: FN88 = YKHO._fallback_apply_state(KiNK, Ef5P) B0Bd[KiNK, Ef5P] = FN88 return (FN88['lr_t'], dict(apply_state=B0Bd))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0Ix(YKHO, a1PO):\n return YKHO.init_learning_rate / (1 + a1PO)", "def b0Ix(qtWj):\n YKHO.lr = YKHO.lr / 1.00000001\n return YKHO.lr", "def NkTt():\n return 1e-05", "def NkTt(YKHO):\n GPtr = YKHO.config\n JQpF = LXsA.adjust_learning_rate(YKHO.optimizer, YKHO.epoch, GPtr['training']['lea...
[ "0.69861066", "0.6899162", "0.6853552", "0.67728704", "0.66987705", "0.6642295", "0.6564562", "0.65318996", "0.6474359", "0.64466333", "0.6422898", "0.6398414", "0.6398414", "0.63893676", "0.63480973", "0.62532663", "0.62220645", "0.6197645", "0.6156201", "0.6155164", "0.6096...
0.5417424
69
Whether to use L2 weight decay for `param_name`.
def yKA8(YKHO, _N6A): if YKHO._exclude_from_weight_decay: for Mkmy in YKHO._exclude_from_weight_decay: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if not YKHO.weight_decay_rate:\n return False\n if YKHO.exclude_from_weight_decay:\n for Mkmy in YKHO.exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKH...
[ "0.70576096", "0.70576096", "0.70576096", "0.70576096", "0.70576096", "0.70372206", "0.6972458", "0.6972458", "0.6972458", "0.6972458", "0.61478865", "0.61143965", "0.60728186", "0.5874968", "0.57316977", "0.5686603", "0.5607701", "0.5540735", "0.5532297", "0.5527218", "0.549...
0.70423925
5
Builds multihead dotproduct attention computations. This function builds attributes necessary for `_compute_attention` to costomize attention computation to replace the default dotproduct attention.
def LMjz(YKHO, S0vU): if YKHO._attention_axes is None: YKHO._attention_axes = tuple(range(1, S0vU - 2)) else: YKHO._attention_axes = tuple(YKHO._attention_axes) YKHO._dot_product_equation, YKHO._combine_equation, wnYc = mHOx(S0vU, attn_axes=YKHO._attention_axes) _uv6 = tuple(range(wnYc -...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TTPo(YKHO, g4y1):\n c3Oi = nMvt.batch_dot(x=g4y1, y=nMvt.permute_dimensions(g4y1, pattern=(0, 2, 1)))\n return nMvt.permute_dimensions(c3Oi, (0, 2, 1))", "def chsV(n2Q1, SpII):\n tpio = n2Q1.shape.as_list()[2]\n DbxN = ZylS.constant_initializer(1.0 / tpio)\n r0JK = IPme.last_dim_weighted_sum(n...
[ "0.638531", "0.62716824", "0.6053262", "0.59797245", "0.5960362", "0.5960104", "0.59157217", "0.58548576", "0.5838938", "0.57846445", "0.57538456", "0.5741836", "0.5666804", "0.56033784", "0.5596749", "0.5576758", "0.5559035", "0.5538889", "0.5529286", "0.55249345", "0.545297...
0.5855358
7
Strips accents from a piece of text.
def JbMz(YKHO, l5Ny): l5Ny = zVCt.normalize('NFD', l5Ny) hlel = [] for hcXw in l5Ny: ACia = zVCt.category(hcXw) if ACia == 'Mn': continue hlel.append(hcXw) return ''.join(hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QDJq(l5Ny):\n l5Ny = XKrx.unidecode(l5Ny)\n return l5Ny", "def QDJq(l5Ny):\n l5Ny = zVCt.normalize('NFKD', l5Ny).encode('ascii', 'ignore').decode('utf-8', 'ignore')\n return l5Ny", "def JbMz(YKHO, l5Ny):\n l5Ny = zVCt.normalize('NFD', l5Ny)\n hlel = []\n for hcXw in l5Ny:\n ACia...
[ "0.8073748", "0.7942181", "0.7824997", "0.7815759", "0.77855134", "0.7652594", "0.75760865", "0.7575228", "0.755694", "0.7513403", "0.70939153", "0.700332", "0.700332", "0.6948511", "0.6939078", "0.6920245", "0.6917249", "0.68867254", "0.6855788", "0.68418425", "0.6819216", ...
0.78255457
2
Tokenizes a piece of text into its word pieces. This uses a greedy longestmatchfirst algorithm to perform tokenization using the given vocabulary.
def wr3U(YKHO, l5Ny): l5Ny = eIAz(l5Ny) pRF9 = [] for eOtH in R_0c(l5Ny): gLiZ = list(eOtH) if len(gLiZ) > YKHO.max_input_chars_per_word: pRF9.append(YKHO.unk_token) continue fyuJ = False yKcO = 0 _XgW = [] while yKcO < len(gLiZ): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dFss(l5Ny):\n for HlGW, m1Oc in Nb9k:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n l5Ny = ' ' + l5Ny + ' '\n for HlGW, m1Oc in KIq4:\n l5Ny = finE(HlGW, m1Oc, l5Ny)\n for HlGW in zKP0:\n l5Ny = finE(HlGW, '\\\\1 \\\\2 ', l5Ny)\n return l5Ny.split()", "def wr3U(YKHO, DJGF: List[str]) ...
[ "0.6765058", "0.65785444", "0.6558721", "0.65466934", "0.6538157", "0.652818", "0.65059775", "0.650288", "0.6488385", "0.64681923", "0.6442634", "0.6410379", "0.6393091", "0.6368067", "0.6365707", "0.63618565", "0.6360565", "0.63564456", "0.63431764", "0.6338991", "0.6333006"...
0.6225257
39
Checks whether `chars` is a control character.
def wHfz(hcXw): if hcXw == '\t' or hcXw == '\n' or hcXw == '\r': return False ACia = zVCt.category(hcXw) if ACia in ('Cc', 'Cf'): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHfz(hcXw):\n if hcXw == '\\t' or hcXw == '\\n' or hcXw == '\\r':\n return False\n ACia = zVCt.category(hcXw)\n if ACia.startswith('C'):\n return True\n return False", "def wHfz(hcXw):\n if hcXw == '\\t' or hcXw == '\\n' or hcXw == '\\r':\n return False\n ACia = zVCt.ca...
[ "0.81981814", "0.81981814", "0.8177336", "0.80915713", "0.6468453", "0.58763784", "0.582512", "0.5796899", "0.5719301", "0.57148904", "0.57065594", "0.56959367", "0.5653251", "0.5603813", "0.5585948", "0.55843735", "0.55716395", "0.55498976", "0.55498976", "0.55404437", "0.55...
0.8169858
3
Checks whether `chars` is a whitespace character.
def VwKB(hcXw): if hcXw == ' ' or hcXw == '\t' or hcXw == '\n' or (hcXw == '\r'): return True ACia = zVCt.category(hcXw) if ACia == 'Zs': return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VwKB(hcXw):\n if hcXw == ' ' or hcXw == '\\t' or hcXw == '\\n' or (hcXw == '\\r'):\n return True\n ACia = zVCt.category(hcXw)\n if ACia == 'Zs':\n return True\n return False", "def VwKB(hcXw):\n if hcXw == ' ' or hcXw == '\\t' or hcXw == '\\n' or (hcXw == '\\r'):\n return ...
[ "0.78012747", "0.7680234", "0.7633813", "0.7108098", "0.6929217", "0.6814356", "0.67606235", "0.65372074", "0.64895546", "0.64892155", "0.6466964", "0.64537275", "0.64364225", "0.6071991", "0.5989213", "0.59863365", "0.59160656", "0.5889098", "0.5882985", "0.58735234", "0.580...
0.76118195
3
Runs basic whitespace cleaning and splitting on a piece of text.
def R_0c(l5Ny): l5Ny = l5Ny.strip() if not l5Ny: return [] s2mk = l5Ny.split() return s2mk
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(l5Ny):\n return l5Ny.split(' ')", "def R_0c(l5Ny):\n l5Ny = l5Ny.strip()\n if not l5Ny:\n return []\n s2mk = l5Ny.split()\n return s2mk", "def bPnd(l5Ny):\n return l5Ny", "def tFpc(YKHO):\n YKHO._words = []\n l5Ny = YKHO._text.replace(\"'m \", ' am ')\n l5Ny = l5Ny....
[ "0.6439049", "0.6300005", "0.6284847", "0.62824225", "0.62147355", "0.6206382", "0.6165981", "0.61554945", "0.61485386", "0.61298126", "0.6112172", "0.61113316", "0.6097497", "0.60766", "0.6067344", "0.6060772", "0.60185647", "0.6017855", "0.59917736", "0.59917736", "0.598616...
0.6255953
6
Test if a ValueError is raised when the wires and estimation_wires share a common wire
def CR0F(YKHO): _67D = range(2) ZsW_ = range(1, 3) with trZe.raises(ValueError, match='No wires can be shared between the wires'): dZyE(lambda: None, wires=_67D, target_wire=0, estimation_wires=ZsW_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SJJH(YKHO, DPNn):\n with trZe.raises(ValueError, match='Wire ID 0 is specified more than once.'):\n DPNn._validate_wire_ids(wire_ids=[0, 0])", "def ByVm(YKHO, _67D):\n for yzQ0 in _67D:\n if not isinstance(yzQ0, mSrU.Integral):\n raise TypeError('{}: Wires must be integers, or ...
[ "0.68065894", "0.64262474", "0.6414444", "0.6394105", "0.63860834", "0.62661153", "0.60675037", "0.59802395", "0.5968405", "0.58011216", "0.5683497", "0.56751174", "0.56156397", "0.56084615", "0.55811405", "0.55757123", "0.5575299", "0.5575011", "0.5567577", "0.5564831", "0.5...
0.71431446
0
Returns a JSONserializable dictionary representation of the model. This can and should be overridden on individual model classes, defining how to respond to different verbosities and/or fields that should never be returned to the frontend (e.g password).
def Fzma(YKHO, wp5n='all'): return dict([(Z9rn.name, str(getattr(YKHO, Z9rn.name if Z9rn.name != 'id' else 'id_'))) for Z9rn in YKHO.__table__.columns]) if wp5n == 'all' else {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return {'id': YKHO.id, 'username': YKHO.username, 'email': YKHO.email}", "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'email': YKHO.email}", "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'phone': YKHO.phone, 'email': YKHO.email, 'address': YKHO.address,...
[ "0.76372707", "0.7567897", "0.7443316", "0.7402637", "0.7387442", "0.7387168", "0.7363538", "0.73442256", "0.7330595", "0.73022056", "0.7282856", "0.72817403", "0.72600263", "0.72157305", "0.72102416", "0.7188342", "0.7185816", "0.71589166", "0.71589166", "0.713486", "0.71275...
0.0
-1
Creates and saves a superuser with the given email, username and password.
def Zp54(YKHO, D3lj, NtEF, EE3v, c9ua, zp3f, jTXt): CBIr = YKHO.create_user(email=YKHO.normalize_email(D3lj), username=NtEF, password=jTXt, gender=EE3v, first_name=c9ua, last_name=zp3f) CBIr.is_admin = True CBIr.is_superuser = True CBIr.is_staff = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sX7Z(NtEF, D3lj, jTXt):\n if NtEF and D3lj and jTXt:\n CBIr, _EYN = mv1M.objects.get_or_create(pk=muwo.USERWARE_SUPERUSER_ID)\n if CBIr:\n CBIr.username = NtEF\n CBIr.email = D3lj\n CBIr.set_password(jTXt)\n CBIr.is_staff = True\n CBIr.is_...
[ "0.8327063", "0.82684207", "0.8239756", "0.8201451", "0.8126284", "0.8121195", "0.8117709", "0.8103684", "0.80794984", "0.8067033", "0.80594385", "0.80552614", "0.8051731", "0.80415666", "0.80360025", "0.80214", "0.8019713", "0.8017799", "0.8015289", "0.8013824", "0.8009226",...
0.77343285
75
Serialize the model instance into a dictionary. If backrefs, include that data in the dictionary.
def eXVo(C3ST, dwWV=None): dwWV = [] if not dwWV else dwWV U5bT = {Z9rn.name: getattr(C3ST, Z9rn.name) for Z9rn in C3ST.__table__.columns} for Rzz_ in dwWV: U5bT[Rzz_] = N5zM(getattr(C3ST, Rzz_)) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return YKHO.ref", "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name, 'url': YKHO.url, 'created': YKHO.created, 'update': YKHO.update, 'active': YKHO.active}", "def Napc(YKHO):\n return {'id': YKHO.id, 'name': YKHO.name}", "def Napc(YKHO):\n return {'id': YKHO.id, 'name...
[ "0.70947915", "0.7008315", "0.6774467", "0.6774467", "0.67580295", "0.67198455", "0.67198455", "0.67198455", "0.67198455", "0.67198455", "0.67198455", "0.67198455", "0.6716714", "0.6716714", "0.6716714", "0.6702301", "0.6701337", "0.6701337", "0.6701337", "0.6701337", "0.6680...
0.6491994
44
ID of the billing account to set a budget on.
def GLga(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'billing_account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7s3():\n pwBQ = iVGz.client('organizations')\n geh0 = pwBQ.describe_organization()\n return geh0['Organization']['MasterAccountId']", "def Z31E(YKHO):\n return YKHO._account_id", "def Z31E(YKHO) -> str:\n return qe4Y.get(YKHO, 'account_id')", "def Z31E(YKHO) -> str:\n return qe4Y.get(Y...
[ "0.708502", "0.6489374", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.63689065", "0.6368068", "0.6344874", "0.6307345", "0.6282439", "0.6272353", "0.61288166", "0.610314", "0.610314", "0.6043427", "0.6043427", "0...
0.6405801
3
ID of the billing account to set a budget on.
def GLga(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'billing_account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7s3():\n pwBQ = iVGz.client('organizations')\n geh0 = pwBQ.describe_organization()\n return geh0['Organization']['MasterAccountId']", "def Z31E(YKHO):\n return YKHO._account_id", "def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')", "def GLga(YKHO) -> qe4Y.Input...
[ "0.708502", "0.6489374", "0.6405801", "0.6405801", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.63689065", "0.6368068", "0.6344874", "0.6307345", "0.6282439", "0.6272353", "0.61288166", "0.610314", "0.610314", "0...
0.6043427
22
Budget configuration for a billing account.
def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, ukEf: Optional[pulumi.Input[pulumi.InputType['BudgetAllUpdatesRuleArgs']]]=None, Z5kt: Optional[pulumi.Input[pulumi.InputType['BudgetAmountArgs']]]=None, GLga: Optional[pulumi.Input[str]]=None, _0ay: Optional[pulumi.Input[pulumi.InputType['BudgetBud...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, Jtpl):\n raise NotImplementedError('This function needs to be overwritten in %s.' % YKHO.__class__.__name__)", "async def __getBBL_async(YKHO, ZrNc, YGvv) -> dict:\n vzeF.info('Getting budget billing data')\n nPrm = {}\n try:\n async with Q5jH.timeout(D2fq):\n geh0 = ...
[ "0.65199035", "0.61683655", "0.58218235", "0.58218235", "0.56769747", "0.56369734", "0.56016386", "0.5583894", "0.55695295", "0.55638516", "0.55638516", "0.55513984", "0.5501267", "0.5501267", "0.5501267", "0.548243", "0.54692054", "0.53957015", "0.53661966", "0.5364296", "0....
0.48221228
78
Budget configuration for a billing account.
def FIMM(Ro_8, kFeU: str, qIxc: BudgetArgs, VKhi: Optional[pulumi.ResourceOptions]=None): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO, Jtpl):\n raise NotImplementedError('This function needs to be overwritten in %s.' % YKHO.__class__.__name__)", "async def __getBBL_async(YKHO, ZrNc, YGvv) -> dict:\n vzeF.info('Getting budget billing data')\n nPrm = {}\n try:\n async with Q5jH.timeout(D2fq):\n geh0 = ...
[ "0.6522192", "0.61680603", "0.58205515", "0.58205515", "0.5675533", "0.563814", "0.5600954", "0.5585118", "0.55699074", "0.5562507", "0.5562507", "0.55531263", "0.5499314", "0.5499314", "0.5499314", "0.54829043", "0.5468307", "0.5397864", "0.53652316", "0.53650486", "0.532660...
0.0
-1
Get an existing Budget resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, ukEf: Optional[pulumi.Input[pulumi.InputType['BudgetAllUpdatesRuleArgs']]]=None, Z5kt: Optional[pulumi.Input[pulumi.InputType['BudgetAmountArgs']]]=None, GLga: Optional[pulumi.Input[str]]=None, _0ay: Optional[pulumi.Input[pulumi.Inp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q_BA(ZuB6):\n QTBn = S8SU.get(wHLO, ZuB6)\n if not QTBn:\n eTsH(404)\n return (pz3A(QTBn.to_dict()), 200)", "def Q_BA(ZuB6):\n for H5ew, BWXx in S8SU.all('State').items():\n if ZuB6 == BWXx.id:\n return pz3A(BWXx.to_dict())\n eTsH(404)", "def Q_BA(ZuB6):\n BQtU = ...
[ "0.6262431", "0.6234552", "0.622097", "0.61422807", "0.60420555", "0.60233253", "0.6003036", "0.5935654", "0.59261733", "0.5897349", "0.586654", "0.5797569", "0.57443506", "0.5740599", "0.5601058", "0.55432564", "0.5519228", "0.5507455", "0.5493679", "0.54431945", "0.54207486...
0.61533576
3
ID of the billing account to set a budget on.
def GLga(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'billing_account')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e7s3():\n pwBQ = iVGz.client('organizations')\n geh0 = pwBQ.describe_organization()\n return geh0['Organization']['MasterAccountId']", "def Z31E(YKHO):\n return YKHO._account_id", "def GLga(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'billing_account')", "def GLga(YKHO) -> qe4Y.Input...
[ "0.708502", "0.6489374", "0.6405801", "0.6405801", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.6375092", "0.63689065", "0.6368068", "0.6344874", "0.6307345", "0.6282439", "0.6272353", "0.61288166", "0.610314", "0.610314", "0...
0.60315883
25
Gets the is_anonymous_access_allowed of this AuthenticationPolicy. Whether an unauthenticated user may access the API. Must be \"true\" to enable ANONYMOUS route authorization.
def _JeQ(YKHO): return YKHO._is_anonymous_access_allowed
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _JeQ(YKHO, _JeQ):\n YKHO._is_anonymous_access_allowed = _JeQ", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn(YKHO):\n return False", "def wDqn...
[ "0.708901", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0.6142753", "0...
0.8045708
0
Sets the type of this AuthenticationPolicy. Type of the authentication policy to use.
def type(YKHO, type): BbPm = ['CUSTOM_AUTHENTICATION'] if not MKjz(type, BbPm): type = 'UNKNOWN_ENUM_VALUE' YKHO._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DyBY(YKHO, zkAN):\n pass", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO.type = type", "def TG_K(YKHO, type):\n YKHO._type = type", "def b2sU(YKHO, b2sU):\n BbPm = ['patch', 'custom', 'required_software']\n if b2sU not in BbPm:\n raise ValueError('In...
[ "0.7034677", "0.6720151", "0.6720151", "0.66803694", "0.6468778", "0.6277851", "0.6233267", "0.6233267", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", "0.621259", ...
0.5964965
46
Reduced mass as calculated via Eq. 6 in Bartel et al. (2018)
def mCNE(g8x2) -> float: B_rG = g8x2.composition.reduced_composition _oEk = len(B_rG.elements) znnC = B_rG.get_el_amt_dict() UUZ1 = (_oEk - 1) * B_rG.num_atoms MyOv = E6VQ(znnC.items(), 2) KzpB = 0 for q2Xo in MyOv: kqeo = C52j(q2Xo[0][0]).weight v0te = C52j(q2Xo[1][0]).weigh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ij8U():\n return 28.9647", "def bMbF(YKHO):\n return YKHO.volume * YKHO.density", "def yVnD(YKHO):\n YFMp = YKHO.star\n nMvt, ywwl = YFMp.mesh_size\n yGTL = YFMp.mu_coords\n Mkmy = YFMp.r_coords\n\n def _kx1(r845):\n return oyIN.sum((yGTL[2::2] - yGTL[:-2:2]) * (YFMp.rho[:-2:2, ...
[ "0.7130783", "0.6914461", "0.6703815", "0.67022073", "0.6620656", "0.65342885", "0.649345", "0.6477738", "0.6461547", "0.6452561", "0.6407926", "0.64046454", "0.6374643", "0.63651633", "0.6311055", "0.6302636", "0.62981766", "0.6280396", "0.62456787", "0.62456787", "0.6239235...
0.75347704
0
Constructor method for initializing GibbsComputedStructureEntry objects from T = 0 K ComputedStructureEntry objects, as acquired from a thermochemical database e.g. The Materials Project.
def noGY(Emd4, VECZ, ycBG=300, aaZN='SISSO') -> x1iM['GibbsComputedStructureEntry']: from pymatgen.analysis.phase_diagram import PhaseDiagram rLdf = PhaseDiagram(VECZ) return Emd4.from_pd(rLdf, ycBG, aaZN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, uq0o=None, Kt_s=None):\n if uq0o is not None:\n uq0o = uq0o\n elif Kt_s is not None:\n uq0o = P6bq.boltzmann * Kt_s\n else:\n raise Exception('kT or k must be passed to BlackBody')\n gac1 = EfzU.compute_energy_density(uq0o)\n super(EfzU, YKHO).__init__(energy_dens...
[ "0.6100014", "0.5945892", "0.5932906", "0.58661455", "0.5715771", "0.5551368", "0.55083233", "0.54757524", "0.5468362", "0.546769", "0.5460204", "0.54149", "0.535257", "0.5349873", "0.53221256", "0.5294084", "0.5267462", "0.52574295", "0.5252764", "0.5240393", "0.5236929", ...
0.5453731
11
Return the name of the thermostat.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return f'{YKHO._tc_object.name} {lc9R[YKHO.type][0]}'", "def heKV(YKHO) -> dict[str, ImMB]:\n return YKHO.data.ecobee.get_thermostat(YKHO.thermostat_index)", "def mWFP(YKHO) -> str:\n return f'{sC2z(YKHO._name)} temperature'", "def mWFP(YKHO) -> str:\n VXJd = YKHO._get_station_n...
[ "0.68962795", "0.6839454", "0.67705506", "0.6765792", "0.6695404", "0.667108", "0.6555283", "0.6515466", "0.6505295", "0.6478986", "0.64298517", "0.64298517", "0.64298517", "0.64109445", "0.6402691", "0.63823766", "0.6380735", "0.6307367", "0.6297553", "0.62935513", "0.627699...
0.0
-1
Return the current running hvac operation if supported.
def Wc11(YKHO) -> h8nf[str]: if YKHO._module_type == lihU: return Y4iy[YKHO._data.boilerstatus] if YKHO._room_id in YKHO._data.room_status: if YKHO._data.room_status[YKHO._room_id].get('heating_power_request', 0) > 0: return U1ye return qkNX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wc11(YKHO):\n if YKHO._hvac_mode == QM09:\n return h7b9\n elif YKHO._hvac_mode == gDI4:\n return U1ye\n elif YKHO._hvac_mode == OHWN:\n return T6_q\n elif YKHO._hvac_mode == ecjY:\n return V0Lv\n elif YKHO._hvac_mode == YTJd:\n return SdV4", "def Wc11(YKHO):\...
[ "0.67991453", "0.6570889", "0.6501783", "0.6492559", "0.6478242", "0.64674306", "0.6346102", "0.63246834", "0.62782544", "0.6266564", "0.62638766", "0.60962176", "0.60799146", "0.6050013", "0.6030969", "0.6017185", "0.5996483", "0.5996483", "0.59854007", "0.5945989", "0.59053...
0.6395503
6
Set new preset mode.
def aEM4(YKHO, wewR: str) -> None: if YKHO.target_temperature == 0: YKHO._data.homestatus.setroomThermpoint(YKHO._data.home_id, YKHO._room_id, JZoY) if wewR in [LaEl, Aqx_] and YKHO._module_type == yEaf: YKHO._data.homestatus.setroomThermpoint(YKHO._data.home_id, YKHO._room_id, wOkg, dGrq) e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aEM4(YKHO, wewR: str | None) -> None:\n YKHO.svc_set_system_mode(AWIJ.get(wewR, ZTa3.AUTO))", "def aEM4(YKHO, wewR: str | None) -> None:\n YKHO.svc_set_zone_mode(mode=SjOq.get(wewR), setpoint=YKHO.target_temperature if wewR == 'permanent' else None)", "def aEM4(YKHO, wewR):\n zeOf = Zb5V[wewR]\n ...
[ "0.7811572", "0.74921536", "0.7414985", "0.72874016", "0.722293", "0.72137654", "0.71587706", "0.7121615", "0.71170485", "0.709526", "0.7089373", "0.67866254", "0.6745228", "0.6735515", "0.67020357", "0.6690951", "0.66362596", "0.662614", "0.65985346", "0.6585491", "0.6556873...
0.75192153
1
Return the state attributes of the thermostat.
def R1i3(YKHO): hkS8 = {} if YKHO._battery_level is not None: hkS8[QFtB] = YKHO._battery_level return hkS8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgy(YKHO) -> cuzp[str, ImMB]:\n return {**super(Wggc, YKHO).state_attributes, **YKHO.attributes}", "def upgy(YKHO):\n return YKHO._wan", "def R1i3(YKHO):\n return {'current_humidity': YKHO._current_humidity, 'status': YKHO._current_state, 'program': YKHO._current_program, 'away_mode': YKHO._away}...
[ "0.8418585", "0.80888754", "0.79596484", "0.7928174", "0.77769744", "0.7770484", "0.7748039", "0.7748039", "0.77043676", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051", "0.7701051",...
0.73462206
46
Auxiliary function to join same elements of a list of dictionaries if the elements are not None.
def LIzS(yv6U, H5ew, VWe_=';'): return VWe_.join([Csk6[H5ew] for Csk6 in yv6U if Csk6[H5ew]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tYsI(GBaN, AFgB):\n return ''.join([ZfUD[AFgB] for ZfUD in GBaN])", "def cNIG(fgcx):\n if fgcx is None:\n return\n OJ81 = {G1Hx: Ty9i for lWPh in fgcx for G1Hx, Ty9i in lWPh.items()}\n return OJ81", "def sZ_H(YKHO, GBaN):\n oWB5 = [{}]\n for ZfUD in GBaN:\n EmMj = False\n ...
[ "0.6752827", "0.65902615", "0.657744", "0.65073544", "0.5951905", "0.59319854", "0.58993757", "0.5854717", "0.5824596", "0.5747121", "0.574537", "0.57205224", "0.5719377", "0.5690327", "0.5657774", "0.5656398", "0.56356674", "0.562333", "0.56164575", "0.55979055", "0.55917406...
0.63428897
4
Test errors when loading output writer.
def AElL(): with trZe.raises(TypeError): YHQF('not_a_dictionary') with trZe.raises(UAju.MapcheteDriverError): YHQF({'format': 'invalid_driver'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TlRU():\n with trZe.raises(TypeError):\n X6tX('not_a_dictionary')\n with trZe.raises(UAju.MapcheteDriverError):\n X6tX({'format': 'invalid_driver'})", "def LIzr(YKHO):\n iuG2 = [Hy7s.path.join(LZpY, 'invalid_writer_output_format.yaml')]\n gCuF = asJJ(PANDOC_DEFAULT_FILES=iuG2)\n ...
[ "0.68782914", "0.65955675", "0.65878344", "0.64211863", "0.6330506", "0.62519413", "0.62303394", "0.6192315", "0.61917186", "0.61762226", "0.6170766", "0.6150937", "0.61222345", "0.6103166", "0.60609335", "0.605934", "0.60482365", "0.603483", "0.60322934", "0.60283756", "0.60...
0.7453423
0
Test errors when loading output writer.
def TlRU(): with trZe.raises(TypeError): X6tX('not_a_dictionary') with trZe.raises(UAju.MapcheteDriverError): X6tX({'format': 'invalid_driver'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AElL():\n with trZe.raises(TypeError):\n YHQF('not_a_dictionary')\n with trZe.raises(UAju.MapcheteDriverError):\n YHQF({'format': 'invalid_driver'})", "def LIzr(YKHO):\n iuG2 = [Hy7s.path.join(LZpY, 'invalid_writer_output_format.yaml')]\n gCuF = asJJ(PANDOC_DEFAULT_FILES=iuG2)\n ...
[ "0.7453423", "0.65955675", "0.65878344", "0.64211863", "0.6330506", "0.62519413", "0.62303394", "0.6192315", "0.61917186", "0.61762226", "0.6170766", "0.6150937", "0.61222345", "0.6103166", "0.60609335", "0.605934", "0.60482365", "0.603483", "0.60322934", "0.60283756", "0.602...
0.68782914
1
Returns a list of relative paths to all files in a given directory.
def Ic7Y(pGQh): Aofo = [] for tk5Y, bGrB, RRlC in Hy7s.walk(pGQh): for eHNT in RRlC: Aofo.append(Hy7s.path.relpath(Hy7s.path.join(tk5Y, eHNT), pGQh)) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fv66(YKHO, AGPF):\n VoQp = [Hy7s.path.join(AGPF, xtX7) for xtX7 in Hy7s.listdir(AGPF) if not xtX7.startswith('.')]\n CNwg = [[Hy7s.path.join(rNxu, X2qJ) for X2qJ in Hy7s.listdir(rNxu)] for rNxu in VoQp]\n return CNwg", "def ZQnd(AGPF):\n xXFf = []\n for tk5Y, uRGD, RRlC in Hy7s.walk(AGPF):\n ...
[ "0.8055599", "0.79886746", "0.79731804", "0.794857", "0.7937602", "0.78996915", "0.7894679", "0.7894679", "0.7894679", "0.78331876", "0.77627844", "0.7741969", "0.77416927", "0.7725269", "0.76547843", "0.7590531", "0.75630206", "0.7539824", "0.745997", "0.74569285", "0.745020...
0.7440919
21
Asserts that a given lcov file looks correct.
def QGeU(YKHO, VqRE): with open(VqRE) as eHNT: nPrm = eHNT.read() YKHO.assertGreater(nPrm.count('SF:'), 100) YKHO.assertGreater(nPrm.count('crypto'), 100) YKHO.assertGreater(nPrm.count('libpng'), 10)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s83i(YKHO):\n YKHO.assertEqual(Hy7s.path.abspath('../testcdl.cc'), YKHO.cc.file_in)", "def qvw3(YKHO, _Cnz):\n Aofo = sB0u('path/to/file', '{s} /path/to/file\\n{m}\\n{m} See /LICENCE.md for Copyright information{e}\\n\\n', _Cnz, whitelist=['headerblock/copyright'])\n YKHO.assertTrue(Aofo)", "def f...
[ "0.62462837", "0.60858697", "0.59298176", "0.58539486", "0.5833971", "0.5815549", "0.57958853", "0.57904416", "0.57902086", "0.57738185", "0.57738185", "0.57678044", "0.57413566", "0.57206935", "0.56823903", "0.5668264", "0.5667233", "0.5666068", "0.56513697", "0.5649028", "0...
0.8207256
0
Returns a string representation of a QMargins value QMargin
def XWt4(BWXx): if BWXx.isNull(): return '(Null)' return '({}, {}, {}, {})'.format(BWXx.left(), BWXx.top(), BWXx.right(), BWXx.bottom())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MVIL(YKHO):\n return YKHO._generate_spacing_info(YKHO.config['margin'])", "def xdRP(YKHO):\n return QMSQ(YKHO._visual_indent * 20)", "def Pf__(YKHO):\n KCHu = YKHO.margin\n assert KCHu in range(1, 6), 'Margin score out of bounds.'\n if KCHu == 1:\n return 'Poor'\n elif KCHu == 2:\n...
[ "0.63377017", "0.62946135", "0.59487504", "0.5801097", "0.5608227", "0.5561273", "0.55491626", "0.5530275", "0.5444173", "0.5404274", "0.53964984", "0.53795576", "0.5343619", "0.53428197", "0.5291503", "0.528745", "0.5276566", "0.5254994", "0.52293867", "0.5224911", "0.511155...
0.64198756
0
Returns a string representation of a QSize or QSizeF. This method does a check that the object contains valid values. value QSize or QSizeF
def zNig(BWXx): if not BWXx.isValid(): return '0.0 x 0.0' if isinstance(BWXx, icFd) else '0 x 0' return '{} x {}'.format(BWXx.width(), BWXx.height())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return '[Rectangle] {:d}/{:d}'.format(YKHO.__size, YKHO.__size)", "def zAg0(YKHO):\n vIwR = '[' + str(YKHO.__class__.__name__) + '] '\n vIwR += str(YKHO.__width) + '/' + str(YKHO.__height)\n return vIwR", "def _G4g(BWXx):\n if BWXx.isNull():\n return '[]'\n RI88 = '['...
[ "0.5679681", "0.5601566", "0.55886585", "0.5533588", "0.55160904", "0.5509368", "0.5477414", "0.54466695", "0.54235065", "0.5405775", "0.53907436", "0.53874195", "0.53401846", "0.5338173", "0.5338173", "0.5291414", "0.52656025", "0.52499866", "0.51680547", "0.5125621", "0.512...
0.74496454
0
Plot the recovered, denoised image against the original noisy image.
def kj9G(YKHO, GERS: Matrix) -> None: mNgJ.plot_matrices('Total Variation Denoising', YKHO.M, GERS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DM2M(LNo8):\n QrM1.imshow(LNo8, cmap='gray', interpolation='nearest')\n QrM1.axis('off')", "def kj9G(YKHO):\n YKHO.fig = QrM1.figure('black hole')\n YKHO.fig.clf()\n YKHO.ax = QrM1.subplot()\n if YKHO.img2 is not None:\n YKHO.ax.imshow(YKHO.img2)\n else:\n print('No black h...
[ "0.660839", "0.63400066", "0.62194234", "0.617116", "0.61477906", "0.6144434", "0.6137176", "0.6114389", "0.60935974", "0.60610205", "0.6015203", "0.59666353", "0.59666353", "0.59666353", "0.5940771", "0.59283465", "0.5927446", "0.59108126", "0.5905365", "0.58989346", "0.5886...
0.61898726
3
Convert value to a unicode string. Useful in case lxml _ElementUnicodeResult are passed from parser.
def NBjn(YKHO, BWXx): return jKi7.text_type(BWXx) if BWXx is not None else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KHvY(YKHO, BWXx, tZ2K='utf8'):\n if isinstance(BWXx, str):\n return BWXx\n return str(BWXx, tZ2K)", "def brQJ(BWXx):\n if isinstance(BWXx, iHh1):\n return BWXx\n if not isinstance(BWXx, vWp3):\n raise TypeError('Expected bytes, unicode, or None; got %r' % type(BWXx))\n ret...
[ "0.7821383", "0.727739", "0.72302073", "0.7228143", "0.70030206", "0.69981647", "0.69933206", "0.6982127", "0.69078726", "0.69078344", "0.6877367", "0.679782", "0.6778012", "0.6735071", "0.67033744", "0.6667322", "0.6653696", "0.66503304", "0.6636011", "0.66216564", "0.661525...
0.0
-1
Convert value to a float.
def NBjn(YKHO, BWXx): return float(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YKt2(BWXx):\n if isinstance(BWXx, bytes):\n BWXx = BWXx.decode('utf-8')\n return float(BWXx)", "def z6w8(BWXx):\n return float(BWXx[0])", "def jhGN(YKHO) -> float:\n return 1.0 * YKHO.as_int / sWEU", "def auK0(wEf2):\n try:\n return float(wEf2)\n except ValueError:\n ...
[ "0.78976417", "0.75630367", "0.7364891", "0.7253369", "0.7198622", "0.71746206", "0.7126937", "0.7025372", "0.7022159", "0.7009298", "0.6938404", "0.69061303", "0.69003206", "0.6897675", "0.6850696", "0.6832981", "0.6822565", "0.68208617", "0.6818528", "0.6795948", "0.6778537...
0.74487424
2
Transform a system tensor (e.g. momenta, positions) from the bead representation to normal mode representation.
def U9Gh(YKHO, M2At): return ht2j.mm(YKHO.c_transform, M2At.view(YKHO.n_beads, -1)).view(M2At.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ck0E(IkqW, YWzc):\n YWzc = oyIN.array(YWzc)\n JNn7 = IkqW.shape\n mhAC = IkqW.reshape(-1, 3).T\n TU_d = YWzc.dot(mhAC)\n GRD1 = TU_d.T.reshape(JNn7)\n return GRD1", "def icXb(YKHO, vhpA):\n vhpA = vhpA.unsqueeze(1)\n vhpA = YKHO.unwhiten_back(vhpA)\n return vhpA.squeeze()", "def ...
[ "0.5709367", "0.56751055", "0.55866325", "0.5580938", "0.5559423", "0.5529208", "0.5527101", "0.5506568", "0.5494658", "0.5489031", "0.54667944", "0.54554945", "0.5433022", "0.5432339", "0.5417427", "0.54168886", "0.54163045", "0.54127645", "0.53733605", "0.5351195", "0.53410...
0.5960305
0
Transform a system tensor (e.g. momenta, positions) in normal mode representation back to bead representation.
def Gy4q(YKHO, WSFk): return ht2j.mm(YKHO.c_transform.transpose(0, 1), WSFk.view(YKHO.n_beads, -1)).view(WSFk.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icXb(YKHO, vhpA):\n vhpA = vhpA.unsqueeze(1)\n vhpA = YKHO.unwhiten_back(vhpA)\n return vhpA.squeeze()", "def Ck0E(IkqW, YWzc):\n YWzc = oyIN.array(YWzc)\n JNn7 = IkqW.shape\n mhAC = IkqW.reshape(-1, 3).T\n TU_d = YWzc.dot(mhAC)\n GRD1 = TU_d.T.reshape(JNn7)\n return GRD1", "def ...
[ "0.61418706", "0.60468835", "0.579758", "0.57889146", "0.5649253", "0.56146234", "0.5614125", "0.55837077", "0.5575418", "0.55576724", "0.55475426", "0.5457938", "0.54524076", "0.54435235", "0.5440697", "0.5430992", "0.54261565", "0.54013205", "0.53961426", "0.5360042", "0.53...
0.5053089
68
Test if the shapes of array are controlled correctly
def YgOu(YKHO, tS2B): moMn, _j99 = tS2B.shape PU1l = kC_U(moMn, _j99) ezWE = oyIN.ones(_j99) PU1l.jobs_j = ezWE ezWE = oyIN.ones(moMn) Ol8d = '\nArrays are not equal\njobs_j: shape target: [3], actual: (2,)\n(mismatch 100.0%)\n x: array([2])\n y: array([3])\n ' with trZe.raises(Assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fuw0(gOGe, KDwe):\n return True", "def FpGg(XoB7):\n Vfdq = [YRbF.shape for YRbF in XoB7]\n cIT_ = oyIN.all(oyIN.array([Vfdq[0] == YRbF for YRbF in Vfdq[1:]]))\n XObx = 'Arrays arr not of the same shape...'\n if not cIT_:\n raise ValueError('{}\\n{}'.format(XObx, Vfdq))", "def XF7S(eS...
[ "0.7237129", "0.70915836", "0.68639266", "0.6769724", "0.6748328", "0.66852474", "0.6679506", "0.6670008", "0.6651786", "0.6621895", "0.6611125", "0.65656805", "0.6538437", "0.65175635", "0.64801854", "0.647985", "0.6470205", "0.6439113", "0.6433918", "0.6429732", "0.64163154...
0.58736426
95
Initializes main dialog frame.
def uIcm(YKHO, f4IJ): YKHO.grid_size = 5 seYU(f4IJ, text='Grid Size:').grid(row=0) YKHO.e1 = bi20(f4IJ, from_=YKHO.grid_size, to=25, orient=k9Ct) YKHO.e1.grid(row=0, column=1) return YKHO.e1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PhKb(YKHO):\n YKHO.grid(row=0, column=0, sticky='nsew')\n YKHO.entryFrame = LQRw(YKHO, relief=YZF3, borderwidth=1)\n YKHO.entryFrame.pack(fill=_Z54, expand=False)\n if YKHO.message:\n bLSL = seYU(YKHO.entryFrame, text=YKHO.message, font=('Bradley', 10))\n bLSL.pack(anchor=XcU5, padx=0...
[ "0.7207368", "0.7144111", "0.697066", "0.6905309", "0.68904036", "0.6870412", "0.68672746", "0.68440104", "0.67923754", "0.6756218", "0.6755066", "0.67265075", "0.669984", "0.66945815", "0.66767776", "0.6669715", "0.66659874", "0.6647658", "0.65984374", "0.65926766", "0.65688...
0.0
-1
Gives the sign of an integer value.
def Zihr(jzdc): return (jzdc > 0) - (jzdc < 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(mLGw: float):\n return 1 if mLGw >= 0 else -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n else:\n return -1", "def Zihr(WKvO):\n if WKvO >= 0:\n return 1\n return -1", "def Zihr(exwG: float) -> int:\n return 1 if exwG > 0 else -1", "def Zihr(YKHO):\n r...
[ "0.78953445", "0.7849158", "0.7765364", "0.7635893", "0.7574197", "0.7398475", "0.73113626", "0.72201025", "0.72113454", "0.7205951", "0.70523185", "0.6735592", "0.6697158", "0.66668814", "0.6531586", "0.6527021", "0.6483014", "0.6330007", "0.6320855", "0.62975794", "0.627424...
0.73552984
6
Reset error gradient for each parameter to zero.
def IIva(YKHO): YKHO.dLdu = oyIN.zeros(YKHO.u.shape) YKHO.dLdw = oyIN.zeros(YKHO.w.shape) YKHO.dLdv = oyIN.zeros(YKHO.v.shape) YKHO.dLdb = oyIN.zeros(YKHO.b.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def frhb(YKHO):\n for xqoZ in YKHO.params:\n xqoZ.grad = None", "def frhb(YKHO):\n for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO.params:\n Ro40.zero_()", "def frhb(YKHO):\n for XP5J, Ro40, Ty9i, EbwU, KOtB in YKHO.params:\n Ro40.zero_()", "def frhb(YKHO):\n for k78t in YKHO.param(...
[ "0.7839233", "0.77851003", "0.77851003", "0.7762884", "0.76592577", "0.7301362", "0.7244817", "0.71104336", "0.709133", "0.70351666", "0.70351666", "0.70351666", "0.7024648", "0.70245177", "0.7004316", "0.69648176", "0.6938334", "0.69196504", "0.6908809", "0.68880373", "0.684...
0.70254785
12
Asks user to specify a city, month, and day to analyze.
def RxGd(): print("Hello! Let's explore some US bikeshare data!") while True: j5sA = input('Please select one of the following cities: Chicago, New York City or Washington.\n').lower() if j5sA not in IbM2: print('Invalid entry, please enter one of the three cities above.') el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NoUH(j5sA, x0eS, CjKC):\n print('The city you have entered is: ', j5sA)\n print('The month you have entered is: ', x0eS)\n print('The day you have entered is: ', CjKC)", "def RxGd():\n j5sA = None\n x0eS = None\n CjKC = None\n while CjKC == None:\n j5sA = input('Please enter a cit...
[ "0.66714007", "0.65354675", "0.64593667", "0.6374057", "0.6348314", "0.63097656", "0.62868035", "0.6259136", "0.62316", "0.62130964", "0.62050414", "0.6181105", "0.6171822", "0.61686903", "0.6158568", "0.61582303", "0.61532456", "0.61444426", "0.6131269", "0.610484", "0.61025...
0.0
-1
Loads data for the specified city and filters by month and day if applicable.
def UlWi(j5sA, x0eS, CjKC): jQ3Z = rLdf.read_csv(OerS[j5sA]) jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month_names'] = jQ3Z['Start Time'].dt.month jQ3Z['day_names'] = jQ3Z['Start Time'].dt.weekday jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour if x0eS != 'all': X_bn = ['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(j5sA, x0eS, CjKC):\n jQ3Z = rLdf.read_csv(OerS[j5sA])\n jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time'])\n jQ3Z['month'] = jQ3Z['Start Time'].dt.month\n jQ3Z['hour'] = jQ3Z['Start Time'].dt.hour\n jQ3Z['day_of_week'] = jQ3Z['Start Time'].dt.weekday_name\n if x0eS == 0 and CjKC =...
[ "0.81320685", "0.8108889", "0.8045821", "0.8042514", "0.80090284", "0.80071104", "0.79991937", "0.7998333", "0.7988789", "0.797905", "0.79737365", "0.79610896", "0.7956163", "0.7947432", "0.79463065", "0.7908287", "0.7908229", "0.7904569", "0.7900715", "0.78930074", "0.788921...
0.77409494
52
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month XYie = jQ3Z['month_names'].mode()[0] print('Most common month:', XYie) SOOw = jQ3Z['day_names...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nDisplaying the statistics on the most frequent times of travel...\\n')\n SWox = ITS7.time()\n hFPs = jQ3Z['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' + str(X_bn[hFPs - 1]).title() + '.')\n DSEJ = jQ3Z['Weekday'].mode()[0]\n ...
[ "0.80247396", "0.80233026", "0.7915788", "0.78266186", "0.7822246", "0.78143597", "0.77659196", "0.7740343", "0.773628", "0.77344066", "0.76867086", "0.7668633", "0.7651731", "0.7644636", "0.76399267", "0.76367253", "0.7625196", "0.7623158", "0.7612803", "0.76002145", "0.7583...
0.7407186
44
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() CuPk = jQ3Z['Start Station'].mode().values[0] print('Most commonly used start station is:', CuPk) nG3J = jQ3Z['End Station'].mode().values[0] print('Most commonly used end station is:', nG3J) jQ...
{ "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 print(_8rG(jQ3Z))\n print(oFx8(jQ3Z))\n print(_Ek3(jQ3Z))\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(nPrm):\n print('\\nCalculating The M...
[ "0.78160876", "0.76626086", "0.75538874", "0.7491789", "0.7475186", "0.7446511", "0.74301356", "0.7424136", "0.7417956", "0.7400676", "0.738748", "0.7385726", "0.73651963", "0.7359407", "0.73569685", "0.73552465", "0.73522156", "0.7351514", "0.7350588", "0.73423624", "0.73401...
0.7012856
74
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() CbtX = jQ3Z['Trip Duration'].sum() CbtX = float(CbtX) CjKC = CbtX // (24 * 3600) CbtX = CbtX % (24 * 3600) ROt1 = CbtX // 3600 CbtX %= 3600 O66n = CbtX // 60 CbtX %= 60 C6wh = CbtX print('Total t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(nPrm):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n DbBi = nPrm['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'.format(DbBi / 3600))\n IEfE = nPrm['Trip Duration'].mean()\n print('The Average Travel Time is {} Minutes'.format(IEfE / 60))\n pr...
[ "0.814274", "0.8025143", "0.80041367", "0.79496753", "0.7937415", "0.79312176", "0.7926815", "0.7915187", "0.79142886", "0.7908032", "0.79055744", "0.7900715", "0.7891682", "0.78894734", "0.7886722", "0.78851086", "0.7884266", "0.7882474", "0.78738385", "0.78686154", "0.78664...
0.7592443
90
set naive time but return tz_aware
def NOSb(MZf5): from osxmetadata import OSXMetaData from osxmetadata.datetime_utils import datetime_naive_to_local import datetime e5kH = OSXMetaData(MZf5, tz_aware=True) JRYC = datetime.datetime.now() e5kH.set_attribute('downloadeddate', JRYC) ekQh = datetime_naive_to_local(JRYC) assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lTV9(YKHO, BWXx):\n try:\n yl4j = rIAI._active.value\n if YKHO.default_timezone is not None and (not rIAI.is_aware(BWXx)):\n return rIAI.make_aware(BWXx, yl4j)\n return BWXx\n except AttributeError:\n return super().enforce_timezone(BWXx)", "def cKEZ(JRYC: datetim...
[ "0.72881097", "0.7276686", "0.7219671", "0.7164358", "0.70574176", "0.7050138", "0.68129563", "0.6715712", "0.66850775", "0.66716754", "0.6650505", "0.66403687", "0.66263413", "0.66108817", "0.66103673", "0.6566376", "0.651921", "0.6417913", "0.6392966", "0.63769513", "0.6327...
0.0
-1
set naive time but return tz_aware
def qu37(MZf5): from osxmetadata import OSXMetaData from osxmetadata.datetime_utils import datetime_naive_to_local import datetime e5kH = OSXMetaData(MZf5, tz_aware=True) JRYC = datetime.datetime.now() e5kH.downloadeddate = JRYC ekQh = datetime_naive_to_local(JRYC) assert e5kH.downloaded...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lTV9(YKHO, BWXx):\n try:\n yl4j = rIAI._active.value\n if YKHO.default_timezone is not None and (not rIAI.is_aware(BWXx)):\n return rIAI.make_aware(BWXx, yl4j)\n return BWXx\n except AttributeError:\n return super().enforce_timezone(BWXx)", "def cKEZ(JRYC: datetim...
[ "0.72872037", "0.7276051", "0.7218538", "0.7164761", "0.7056801", "0.704845", "0.681425", "0.6716103", "0.668416", "0.66723514", "0.6650535", "0.66406727", "0.6624614", "0.6610256", "0.66092974", "0.65665007", "0.65189904", "0.6418135", "0.63959616", "0.63767225", "0.63279647...
0.0
-1
set tz_aware and return tz_aware
def SfCU(MZf5): from osxmetadata import OSXMetaData from osxmetadata.datetime_utils import datetime_naive_to_local import datetime e5kH = OSXMetaData(MZf5, tz_aware=True) JRYC = datetime.datetime.now() ekQh = datetime_naive_to_local(JRYC) e5kH.downloadeddate = ekQh assert e5kH.downloaded...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOQo(shus):\n mKOi = rIAI('US/Eastern').localize(shus)\n return mKOi", "def Uex5(BWXx: datetime, rIAI=None, LaHl=None) -> qcWV:\n if rIAI is None:\n rIAI = oMMP()\n if hasattr(rIAI, 'localize'):\n return rIAI.localize(BWXx, is_dst=LaHl)\n else:\n if Aybl(BWXx):\n ...
[ "0.77902937", "0.7407251", "0.7317652", "0.72423315", "0.7150354", "0.6956492", "0.6789247", "0.67872435", "0.6649201", "0.6567073", "0.6562394", "0.6562091", "0.64981014", "0.64677525", "0.63072425", "0.6023535", "0.595172", "0.5918615", "0.58226705", "0.58154744", "0.57995"...
0.0
-1
set tz_aware and return naive
def ZfvE(MZf5): from osxmetadata import OSXMetaData from osxmetadata.datetime_utils import datetime_naive_to_local import datetime e5kH = OSXMetaData(MZf5, tz_aware=False) JRYC = datetime.datetime.now() ekQh = datetime_naive_to_local(JRYC) e5kH.downloadeddate = ekQh assert e5kH.downloade...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QOQo(shus):\n mKOi = rIAI('US/Eastern').localize(shus)\n return mKOi", "def Aybl(BWXx):\n return BWXx.tzinfo is not None and BWXx.tzinfo.utcoffset(BWXx) is not None", "def lTV9(YKHO, BWXx):\n try:\n yl4j = rIAI._active.value\n if YKHO.default_timezone is not None and (not rIAI.is_...
[ "0.7650652", "0.7420323", "0.7361271", "0.7259289", "0.72245604", "0.7082538", "0.6987106", "0.69194007", "0.69067246", "0.682611", "0.66928273", "0.6543727", "0.64618766", "0.6443703", "0.64219415", "0.64032936", "0.63677996", "0.62989587", "0.62486553", "0.6245093", "0.6217...
0.0
-1
Pytest fixture. Returns a helper function that sends API data via the provided `api_client`, to the provided `url`, with the given `req_body`, via the given HTTP `method`. An API user is created and used for authentication. You may optionally supply a `content_type` string; if not supplied, then JSON is assumed by defa...
def wS5z(eUvq, fLxS): TImW = {'put': 'application/json', 'patch': 'application/json-patch+json', 'post': 'application/json'} def iq9a(d4y1, bD7m, Yudc, NKcE, m5r4=None): BfzO = eUvq() GJVw = BfzO.objects.create_user('test', 'sec', password='pw', email='test@test.com', first_name='F', last_name=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ux2f(CBIr=None, NKcE='GET', nPrm=None, bD7m='/', m5r4='text/html; charset=utf-8'):\n i_PC = b9AL()\n NKcE = getattr(i_PC, NKcE.lower())\n if m5r4 == 'application/json':\n if isinstance(nPrm, dict):\n nPrm = HjBM.dumps(nPrm)\n elif isinstance(nPrm, exCv):\n nPrm = HjBM.loads...
[ "0.61155903", "0.5794737", "0.5753015", "0.57197547", "0.56969064", "0.557769", "0.5564543", "0.5538658", "0.5472358", "0.54568255", "0.54416364", "0.5437556", "0.54182875", "0.53952324", "0.5387781", "0.5371268", "0.5369466", "0.53601396", "0.53528917", "0.5327641", "0.53228...
0.6728471
0
get_quantiles function DESCRIPTION This function returns, in the default case, the parameter median and the error% credibility around it. This assumes you give a nonordered distribution of parameters. OUTPUTS Median of the parameter,upper credibility bound, lower credibility bound
def Tr1t(pImw, Cwt5=0.68, NKcE='median'): jwWi = pImw[oyIN.argsort(pImw)] xqoZ = 0.0 pUuX = len(pImw) KX9J = int(pUuX * (Cwt5 / 2.0) + 1) if NKcE == 'median': w3m1 = 0 if pUuX % 2 == 0.0: RPzF = int(pUuX / 2.0) + 1 _ZH3 = RPzF - 1 xqoZ = (jwWi[RPzF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tr1t(pImw, Cwt5=0.68, NKcE='median'):\n jwWi = pImw[oyIN.argsort(pImw)]\n xqoZ = 0.0\n pUuX = len(pImw)\n KX9J = int(pUuX * (Cwt5 / 2.0) + 1)\n if NKcE == 'median':\n w3m1 = 0\n if pUuX % 2 == 0.0:\n RPzF = int(pUuX / 2.0) + 1\n _ZH3 = RPzF - 1\n xq...
[ "0.6858628", "0.67476875", "0.6725998", "0.6548512", "0.653098", "0.6496208", "0.64916563", "0.648396", "0.6447812", "0.6438925", "0.6411301", "0.6411301", "0.6364302", "0.6335008", "0.631982", "0.6302163", "0.6255526", "0.62076485", "0.61966246", "0.6191901", "0.61763775", ...
0.67731297
2
Creates a reference for a nonexistent WAV file, tests for the existence of a nonexistent file and throws an exception.
def Eo4T(): hY5k = '/usr/local/share/testfile.wav' with trZe.raises(pu6a.RDJResourceErr): N04f = mDJb(dpath=hY5k, dexist=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AGkc(YKHO):\n Ux0P = '/%s' % qxeD.uuid4()\n while Hy7s.path.exists(Ux0P):\n Ux0P = '/%s' % qxeD.uuid4()\n with YKHO.assertRaises(Exception):\n A6b2 = SXEm.from_filename(Ux0P)", "def uNy7():\n try:\n with open('NEIN.mp3') as eHNT:\n print('well')\n except FileNot...
[ "0.668015", "0.6432405", "0.63682777", "0.60861546", "0.6024312", "0.5937979", "0.57162154", "0.5714317", "0.5679928", "0.5677926", "0.56735337", "0.56684846", "0.56417286", "0.5636146", "0.5632148", "0.5628496", "0.5618027", "0.5602688", "0.5599429", "0.5599429", "0.5597285"...
0.65980446
1
Displays current server time
def ITS7(YKHO, p9K5, qIxc): return str(qcWV.datetime.now())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CLAi(YKHO):\n return CLAi.Servertime(YKHO)", "def Kb27():\n return ITS7.asctime()", "def wzkt():\n print(F803('%Y-%m-%d %H:%M:%S', WPt4()))", "def b8dk():\n return F803('%H:%M:%S', ITS7.localtime())", "async def server_time(YKHO):\n j8eK = '/fapi/v1/time'\n nyyK, P1dF = await YKHO.req...
[ "0.76804984", "0.7634974", "0.744474", "0.73868763", "0.7247567", "0.7243079", "0.7138182", "0.7100776", "0.70977163", "0.7066082", "0.70605445", "0.703727", "0.69715315", "0.6967022", "0.6944744", "0.69272226", "0.6922758", "0.691844", "0.68838453", "0.68630517", "0.68524677...
0.6470981
67
Function to return a array of zeroes with default value of reduced sample dimension.
def Eqyv(fWxz=MyUj): return oyIN.zeros((fWxz, fWxz))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bzSx(tpio):\n return (oyIN.zeros((tpio, 1)), 0.0)", "def _4R2():\n return oyIN.array([N93T(oyIN.random.rand(5)), N93T(oyIN.random.rand(5))])", "def A2Q7(WKvO):\n return oyIN.zeros(WKvO.shape[0])", "def JjWg(YKHO, ROpF):\n return oyIN.zeros((ROpF[0], ROpF[1]))", "def VNqG(tpio):\n return ...
[ "0.6959772", "0.6695267", "0.6606711", "0.6514023", "0.6512686", "0.65034324", "0.642425", "0.64052325", "0.6393395", "0.6381696", "0.6352487", "0.6315115", "0.62364453", "0.6201444", "0.6170654", "0.614417", "0.6143871", "0.6099281", "0.6094501", "0.60891706", "0.60891706", ...
0.76832634
0
Function to convert json containing the energy deposition at the calorimeter cells in eta or phi in a numpy array.
def a8Pe(Ux0P, Gaon=Eqyv(), NB3_=VXOk, v4Jy=Zak7): KpjM = 0 OMad = [] with open(Ux0P, 'r') as eHNT: hGN5 = eHNT.readlines() KpjM = len(hGN5) for YRbF in range(0, KpjM): if YRbF % 1000 == 0: print(YRbF) DKTa = hGN5[YRbF] try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyZS():\n tyZS = oyIN.load(osTH)\n return tyZS", "def eFn9(YKHO, epBp, d2Eg):\n if oyIN.isscalar(d2Eg):\n d2Eg = oyIN.array([d2Eg])\n elif type(d2Eg) == list or type(d2Eg) == tuple:\n d2Eg = oyIN.array(d2Eg)\n if oyIN.isscalar(epBp):\n epBp = oyIN.array([epBp])\n elif t...
[ "0.5965343", "0.5602189", "0.5384499", "0.5193185", "0.5180364", "0.5068045", "0.50662905", "0.50615436", "0.5045386", "0.5033097", "0.5033097", "0.5033097", "0.50214005", "0.49990612", "0.4998855", "0.49786782", "0.4965441", "0.49606353", "0.49399415", "0.4915139", "0.491298...
0.0
-1
Adds nuclei name to the decay scheme.
def e47c(YKHO, y2rC='$^{63}$Ni'): QrM1.text(0.48, 0.05, y2rC, fontsize=48, transform=QrM1.gcf().transFigure)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JGxW(YKHO, Q6kx):\n if 'name' in YKHO.options:\n mWFP = Ziit.fully_normalize_name(YKHO.options.pop('name'))\n if 'name' in Q6kx:\n del Q6kx['name']\n Q6kx['names'].append(mWFP)\n YKHO.state.document.note_explicit_target(Q6kx, Q6kx)", "def Hb6L(YKHO):\n YKHO._name ...
[ "0.55771524", "0.53778124", "0.5270179", "0.50406164", "0.5015267", "0.49791", "0.49690175", "0.49417266", "0.49317145", "0.49250448", "0.49205774", "0.48887715", "0.48887378", "0.4882484", "0.48623207", "0.4856066", "0.48457834", "0.4805393", "0.4805393", "0.4805393", "0.480...
0.6775695
0
Converts json item into it's str form.
def AnVf(ZfUD: Any) -> x1iM[str]: if isinstance(ZfUD, list): for r845 in ZfUD: return [str(G1Hx) for G1Hx in r845.values()] elif ZfUD is True: return ['true'] elif ZfUD is False: return ['false'] return [str(ZfUD)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nMY2(ZfUD):\n if isinstance(ZfUD, dict):\n return dict(((nMY2(H5ew), nMY2(BWXx)) for H5ew, BWXx in ZfUD.iteritems()))\n elif isinstance(ZfUD, list):\n return [nMY2(U6D_) for U6D_ in ZfUD]\n elif isinstance(ZfUD, QMSQ):\n return ZfUD.encode('utf-8')\n else:\n return ZfUD"...
[ "0.79153395", "0.7643881", "0.7293917", "0.69882804", "0.6945032", "0.6924018", "0.67677647", "0.66152084", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552", "0.6613552",...
0.66272205
7