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
forms a homogeneous transformation matrix T from a displacement and rotation matrix
def BXsN(UqpO, A3Vt): UqpO = H4yH.Matrix([UqpO[0], UqpO[1], UqpO[2]]) Kt_s = H4yH.Matrix(A3Vt).row_join(UqpO).col_join(H4yH.Matrix([[0, 0, 0, 1]])) return Kt_s
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFTJ(YKHO):\n a1PO = oyIN.array([[0.0], [0.0], [0.0]])\n h4Tb = oyIN.hstack([YKHO.rotation_matrix, a1PO])\n return oyIN.vstack([h4Tb, oyIN.array([0.0, 0.0, 0.0, 1.0])])", "def GBH6(A3Vt):\n A3Vt = aLMY(A3Vt)\n Kt_s = A3Vt.col_insert(3, aLMY([0.0, 0.0, 0.0]))\n Kt_s = Kt_s.row_insert(3, aLMY...
[ "0.7319099", "0.71811473", "0.70296973", "0.6958759", "0.6917301", "0.6900195", "0.6900195", "0.68931794", "0.6870407", "0.68359077", "0.68193424", "0.67923737", "0.67744255", "0.6760395", "0.6760395", "0.6748414", "0.6739706", "0.6674545", "0.66485125", "0.6583638", "0.65280...
0.6449778
27
Seperates a homogeneous transformation matrix T into its rotation matrix R and translational xyz components
def zzwn(Kt_s): A3Vt = Kt_s[:3, :3] UqpO = Kt_s[:3, 3] return (A3Vt, UqpO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f30r(A3Vt, a1PO):\n A3Vt = A3Vt.reshape(3, 3)\n a1PO = a1PO.reshape(3, 1)\n return oyIN.hstack([A3Vt, a1PO])", "def f30r(A3Vt, a1PO):\n A3Vt = A3Vt.reshape(3, 3)\n a1PO = a1PO.reshape(3, 1)\n return oyIN.vstack((oyIN.hstack([A3Vt, a1PO]), [0, 0, 0, 1]))", "def f30r(A3Vt, a1PO):\n A3Vt ...
[ "0.75455093", "0.74925435", "0.74925435", "0.7439962", "0.72949016", "0.7097317", "0.703932", "0.6944894", "0.68973315", "0.6775246", "0.6670417", "0.66351736", "0.66133493", "0.6577561", "0.6577561", "0.65703404", "0.65616655", "0.6556143", "0.6554086", "0.655131", "0.655131...
0.6571008
15
Converts a [roll,pitch,yaw] array into a quaternion
def tnWI(eiHf): f2zj = oyIN.cos(eiHf[0] * 0.5) Prnl = oyIN.sin(eiHf[0] * 0.5) Od8t = oyIN.cos(eiHf[1] * 0.5) l2nC = oyIN.sin(eiHf[1] * 0.5) Rl9b = oyIN.cos(eiHf[2] * 0.5) g9jM = oyIN.sin(eiHf[2] * 0.5) yzQ0 = Rl9b * Od8t * f2zj + g9jM * l2nC * Prnl WKvO = Rl9b * Od8t * Prnl - g9jM * l2nC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omrx(rKSe=0.0, H2HG=0.0, xTkQ=0.0):\n lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5))\n n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5))\n SpII = epAf.cos(epAf.radians(rKSe * 0.5))\n WotO = epAf.sin(epAf.radians(rKSe * 0.5))\n RtYL = epAf.cos(epAf.radians(H2HG * 0.5))\n WfMD = epAf.sin(epAf.radians(H2HG *...
[ "0.797938", "0.7977931", "0.7977931", "0.79496217", "0.7901976", "0.76958114", "0.7646835", "0.74208754", "0.73583305", "0.7281046", "0.72075653", "0.69544077", "0.68551344", "0.68171227", "0.6809837", "0.6802918", "0.67941284", "0.66225517", "0.6616821", "0.66159487", "0.660...
0.781466
5
Conjugates a 4 element array quaternion
def CSoE(BV7b): return oyIN.array([BV7b[0], -BV7b[1], -BV7b[2], -BV7b[3]])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjkM():\n vexM = oyIN.array([0.58183503, -0.75119889, -0.24622332, 0.19116072])\n gkE3 = zTi3.q_conj(vexM)\n CxpL = zTi3.concatenate_quaternions(vexM, gkE3)\n t_0o(zTi3.q_id, CxpL)", "def wKDg(vexM):\n return [vexM[0], -vexM[1], -vexM[2], -vexM[3]]", "def rkUe(vexM):\n WKvO, LVAh, epBp, y...
[ "0.6969201", "0.6924322", "0.684257", "0.67741805", "0.6753368", "0.65372896", "0.6536622", "0.6417103", "0.63652927", "0.62697023", "0.6257381", "0.62403965", "0.62026644", "0.6202659", "0.6183924", "0.61827147", "0.6132615", "0.61132616", "0.6084177", "0.6084177", "0.605431...
0.60628814
20
Returns the magnitude of a 4 element array quaternion
def YBpi(BV7b): return oyIN.sqrt(oyIN.sum(oyIN.square(BV7b)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOSW(vexM):\n YXbZ = oyIN.sqrt(vexM[0, 0] ** 2 + vexM[0, 1] ** 2 + vexM[0, 2] ** 2 + vexM[0, 3] ** 2)\n return YXbZ", "def YXbZ(Ty9i):\n if len(Ty9i.arr) != 4 or Ty9i[3] != 0.0:\n raise ValueError('Only use this function with vectors.')\n return oyIN.sqrt(oyIN.sum(oyIN.square(Ty9i.arr)))",...
[ "0.7105162", "0.6847898", "0.6671371", "0.6315317", "0.6303935", "0.6267857", "0.6245538", "0.6231791", "0.62047255", "0.6130598", "0.612997", "0.61050993", "0.60453784", "0.60320747", "0.6004972", "0.60031796", "0.5985464", "0.5969238", "0.59627527", "0.5942201", "0.58837044...
0.67758495
2
Sums the rotational transformations from a kinematic chain's base joint to the specified joint
def o8Ns(YKHO, fP61): if YKHO.joint_syms[fP61].get('W') is None: i4fo = YKHO.global_syms['Jname2parentJname'].get(fP61) if i4fo is None: YKHO.joint_syms[fP61]['W'] = YKHO.joint_syms[fP61]['q_rpy'] else: YKHO.joint_syms[fP61]['W'] = YKHO.W_joint_chain(i4fo) + YKHO.join...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AIis(YKHO):\n P1dF = YKHO.target_pos - YKHO.robot_arm_pos\n return YKHO._pd_control(P1dF) + YKHO.torque", "def SkEz(YKHO, fP61):\n if YKHO.joint_syms[fP61].get('T_joint') is None:\n i4fo = YKHO.global_syms['Jname2parentJname'].get(fP61)\n if i4fo is None:\n YKHO.joint_syms[f...
[ "0.59704846", "0.585645", "0.5632928", "0.56261355", "0.54665786", "0.5412059", "0.5375454", "0.5372441", "0.53531575", "0.53518873", "0.5349758", "0.5322505", "0.53024715", "0.5209359", "0.51984733", "0.5166083", "0.5146646", "0.5120463", "0.50912195", "0.50893116", "0.50766...
0.5302185
13
for a random walk, calculate the 3/4 occurrence probability for negative sampling
def Gjtu(mhJ5): gObJ = {} for ZAda in mhJ5: for ZfUD in ZAda: try: gObJ[ZfUD] += 1 except: gObJ[ZfUD] = 1 for H5ew, BWXx in gObJ.items(): gObJ[H5ew] = BWXx ** 0.75 return gObJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N3NA(exwG):\n if exwG == 0:\n raise ValueError('Sampling 0 points is not defined.')\n wjRY = 0\n for YRbF in Ni9Y(exwG):\n if oyIN.random.normal() > 3:\n wjRY += 1\n return float(wjRY) / exwG", "def kR8j():\n ywwl = 500000\n HJ8u = oyIN.random.multivariate_normal(me...
[ "0.6929794", "0.68902445", "0.68043786", "0.6697435", "0.6626235", "0.65411836", "0.645649", "0.6452058", "0.6406078", "0.6372602", "0.63093907", "0.62959766", "0.6171657", "0.6153702", "0.61108536", "0.6087997", "0.6085982", "0.6028521", "0.6016851", "0.59720534", "0.5958252...
0.0
-1
This function prints and plots the confusion matrix.
def LwSz(Y8eF, aMgO, Crrw=None, NkkI=False, leAC=None, iMGt='YlGn'): import pandas as rLdf from sklearn.metrics import confusion_matrix from sklearn.utils.multiclass import unique_labels if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Conf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(YKHO):\n pTn1 = beib.from_learner(YKHO.learn)\n pTn1.plot_confusion_matrix()", "def zd4X(YKHO):\n gAeH.heatmap(YKHO.conf_matrix, annot=True)\n QrM1.plot(label='Accuracy')\n QrM1.plot(label='Error')\n QrM1.figtext(0, 0, 'Accuracy: {}\\nError: {}\\nRecall: {}\\nPrecision: {}'.format(YKHO...
[ "0.80894613", "0.80770946", "0.79976976", "0.7946727", "0.7921785", "0.78448296", "0.7833224", "0.7781221", "0.7775631", "0.77574563", "0.77061635", "0.77016985", "0.7692213", "0.76785815", "0.76588994", "0.7641414", "0.7622791", "0.7611233", "0.7610989", "0.7598244", "0.7587...
0.0
-1
Sets the promotional_price of this AdResult.
def hoCn(YKHO, hoCn): YKHO._promotional_price = hoCn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wb4o(YKHO, I_t4):\n YKHO.price = I_t4\n return YKHO.price", "def Wb4o(YKHO, hI0L):\n assert isinstance(hI0L, float), 'Price must be a float'\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L: float):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):\n YKHO._price = hI0L", "def hI0L(YKHO, hI0L):...
[ "0.57552093", "0.56229794", "0.5583131", "0.5542211", "0.5542211", "0.5542211", "0.5542211", "0.55160224", "0.5413412", "0.5350816", "0.53497815", "0.53002095", "0.52420515", "0.52304184", "0.5227471", "0.5099097", "0.507691", "0.50145364", "0.48905024", "0.48905024", "0.4889...
0.85411763
0
Sets the categories of this AdResult.
def LeZt(YKHO, LeZt): YKHO._categories = LeZt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO, LeZt):\n YKHO._categories = LeZt", "def LeZt(YKHO, LeZt: List[str]):\n YKHO._categories = LeZt", "def mBI6(YKHO, LeZt):\n ED_H = dict(YKHO.getCategoryVocabulary())\n YKHO.categories = U8Lr()\n for WDPJ in LeZt:\n mWFP = ED_H.get(WDPJ, None)\n if mWFP is not None:\n ...
[ "0.72091866", "0.6943635", "0.6635459", "0.66053724", "0.62296677", "0.60006255", "0.5814384", "0.5802793", "0.57435435", "0.5625827", "0.56140864", "0.558028", "0.5417082", "0.5403294", "0.5403294", "0.5403294", "0.5403294", "0.5403294", "0.53753597", "0.5339538", "0.5318521...
0.71471965
4
Sets the currency of this AdResult.
def VIXL(YKHO, VIXL): YKHO._currency = VIXL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIXL(YKHO, VIXL: str):\n YKHO._currency = VIXL", "def VIXL(YKHO, VIXL):\n if VIXL is None:\n raise ValueError('Invalid value for `currency`, must not be `None`')\n YKHO._currency = VIXL", "def SEoG(YKHO, SEoG):\n YKHO._card_currency = SEoG", "def VIXL(YKHO, VIXL):\n if YKHO.local_va...
[ "0.7406318", "0.72238207", "0.71002454", "0.70705146", "0.6791242", "0.6727964", "0.6722", "0.66269183", "0.65915567", "0.65545934", "0.6534683", "0.6534683", "0.6534683", "0.6534683", "0.6534683", "0.6517695", "0.64423347", "0.6171665", "0.6171665", "0.6171665", "0.6162198",...
0.75517786
2
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, ls8y): return False return YKHO.to_dict() == Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, ls8y): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", "0.8042487", ...
0.0
-1
The maximum number of replicas for each service.
def jxE4(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'max_replicas')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mYBv(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'max_replica_count')", "def mYBv(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'max_replica_count')", "def X4Tl(YKHO) -> int:\n return qe4Y.get(YKHO, 'replicas')", "def X4Tl(YKHO) -> int:\n return qe4Y.get(YKHO, 'replicas')", "def X4Tl(YKHO) ->...
[ "0.7824905", "0.7824905", "0.72362834", "0.72362834", "0.72362834", "0.72362834", "0.72362834", "0.7197382", "0.7152217", "0.7085084", "0.6909602", "0.6799525", "0.6799525", "0.679206", "0.679206", "0.679206", "0.679206", "0.679206", "0.67850333", "0.6732971", "0.67241156", ...
0.79526204
1
If autoscale is enabled for all services. Each service can turn it off individually.
def jGRS(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'Status']]]: return qe4Y.get(YKHO, 'status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rolY(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'autoscale_scale_down_non_service_tasks')", "def Gquj(YKHO, Gquj):\n YKHO.container['auto_scaling'] = Gquj", "def Fdjq(YKHO) -> h8nf[qe4Y.Input['OceanAutoscalerAutoscaleDownArgs']]:\n return qe4Y.get(YKHO, 'autoscale_down')", "def DWP...
[ "0.6944232", "0.6363221", "0.6202136", "0.6192388", "0.60941654", "0.5971811", "0.594023", "0.594023", "0.594023", "0.594023", "0.594023", "0.5883424", "0.5831784", "0.57171434", "0.5648819", "0.5640058", "0.5516951", "0.54307204", "0.53440803", "0.5317507", "0.52822995", "...
0.0
-1
return the posts for logged in user's feed
def Aide(): uJjO = cuiw.get('user_id') zvy7 = T97t.query.join(xx7x, NCls.and_(T97t.user_id == xx7x.user_2, xx7x.active == True)).outerjoin(jY1u, NCls.and_(jY1u.post_id == T97t.post_id, jY1u.active == True)).filter(xx7x.user_1 == uJjO, T97t.active == True).order_by(T97t.post_id.desc()).all() _i1P = [] fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUSx(QePW):\n yKDG = QePW.user.profile.followers.values_list('pk', flat=True)\n FvVY = T97t.objects.filter(author_id__in=yKDG)\n return _1tc(QePW, 'posts/feed.html', {'posts': FvVY})", "def IL11(YKHO):\n return T97t.select().where(T97t.user == YKHO)", "def nqMM(YKHO, QTiD: int) -> x1iM[int]:\n ...
[ "0.7385219", "0.7289485", "0.71484286", "0.7128945", "0.7029606", "0.6970014", "0.6950573", "0.69401973", "0.6868837", "0.67536765", "0.67504925", "0.6743279", "0.6740741", "0.6723564", "0.67098254", "0.66598666", "0.66451174", "0.6602219", "0.6547143", "0.6545913", "0.652870...
0.75590307
0
r""" Computes pairwise dot product between two tensors
def c95l(n2Q1: Tensor, SpII: Tensor) -> llWB: tO9_ = f'Please ensure each batch member has the same feature dimension. First input has {ht2j.numel(n2Q1) / n2Q1.shape[0]} features, and second input has {ht2j.numel(SpII) / SpII.shape[0]} features.' assert ht2j.numel(n2Q1) / n2Q1.shape[0] == ht2j.numel(SpII) / SpI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uYbU(jzdc, Fg_i):\n return sum(PN7I(jzdc, Fg_i))", "def yKrh(n2Q1: torch.Tensor, SpII: torch.Tensor, PJWX: bool=False):\n assert n2Q1.size() == SpII.size(), 'Sizes for dot-product must match'\n return ohcp.dot_prod(n2Q1, SpII, PJWX)", "def BJ1H(jzdc, Fg_i):\n jzdc, Fg_i = (uM5J(jzdc), uM5J(Fg_i...
[ "0.817763", "0.8165704", "0.8088921", "0.8057248", "0.79711044", "0.7941176", "0.79144746", "0.7875005", "0.7860335", "0.7837402", "0.78154695", "0.78144675", "0.7808872", "0.77830124", "0.77555823", "0.77292967", "0.7714447", "0.7695957", "0.76839423", "0.76728415", "0.76693...
0.72626925
42
r""" Helper function that computes the quantities returned by `TracInCPBase._get_k_most_influential`, using a specific implementation that is constant memory.
def bzaq(bKDo: DataLoader, jONR: Callable, g4y1: Tuple[Any, ...], G1Hx: int=5, q4sR: bool=True, OyNt: bool=False, QoB4: Optional[str]=None) -> AzJI[llWB, llWB]: Ep2d = ht2j.Tensor().long() _ELk = ht2j.Tensor() pSDG = 1.0 if q4sR else -1.0 yp0I = 0 wjRY: h8nf[int] = None if OyNt: try: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eGi5(q49w=12000, Rwf5=2):\n Kuzi = float('inf')\n vb8L = [Kuzi] * (q49w - Rwf5 + 1)\n for YRbF in UHFx(1):\n if Kuzi not in vb8L:\n break\n qsLB = tCo3(YRbF, multiple=True)\n for wSLM in range(2, len(qsLB) + 1):\n for YOEZ in hnPc(qsLB, wSLM, 0):\n ...
[ "0.57673687", "0.56553537", "0.56553537", "0.5558618", "0.55297816", "0.5522898", "0.5512659", "0.5436768", "0.54313684", "0.54234993", "0.5417373", "0.53984433", "0.5365512", "0.53544426", "0.5303304", "0.5298846", "0.52909005", "0.52882737", "0.5275242", "0.5272284", "0.524...
0.5556548
4
Get the linear velocity of pupper's base.
def ZOmf(YKHO): raise NotImplementedError('Not yet implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pwlT(YKHO):\n return oyIN.linalg.norm(YKHO.velocity) / PtXs.speed_of_light", "def Uk5V(YKHO):\n return YKHO.v", "def uxsC(YKHO):\n return YKHO.momentum / YKHO.mass", "def uxsC(YKHO):\n return YKHO._I85_msg_from_device(YKHO.node.sdo[24684].phys) / 10", "def gFsk(YKHO):\n return YKHO.base_...
[ "0.6445023", "0.6366614", "0.6331171", "0.62954646", "0.62856305", "0.6254967", "0.60327375", "0.6020356", "0.5979641", "0.59622234", "0.59293413", "0.59293413", "0.5916608", "0.5859421", "0.58393586", "0.58130085", "0.576803", "0.5707092", "0.56817096", "0.56566566", "0.5656...
0.657468
0
Get the orientation of pupper's base, represented as quaternion.
def tG6o(YKHO): raise NotImplementedError('Not yet implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nygg(xTkQ, S9A3=None):\n aQlv = [xTkQ, 0, 0]\n iGeA = A3Vt.from_euler('zyx', aQlv)\n if S9A3 is not None:\n sCoH = A3Vt.from_quat([S9A3])\n iGeA = sCoH.reduce(left=iGeA)\n return iGeA.as_quat()", "def vB5z(YKHO, _Jov):\n XyWv = IFgk.Rotation.Quaternion(_Jov.x, _Jov.y, _Jov.z, _Jo...
[ "0.613074", "0.61193657", "0.6108384", "0.61015373", "0.6096911", "0.60465294", "0.59647256", "0.59328246", "0.5929303", "0.5879437", "0.586819", "0.58274", "0.5822361", "0.5807857", "0.5791859", "0.5736837", "0.570609", "0.57030845", "0.56986046", "0.5686744", "0.5666632", ...
0.7008239
0
Convert a date_string to date type
def mh4x(NmBo): O3lX = '%m/%d/%y' return qcWV.strptime(NmBo, O3lX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BOAD(JvEs):\n return _c1T(int(JvEs[:4]), int(JvEs[5:7]), int(JvEs[8:10]))", "def FLL4(YKHO, _c1T):\n return SKtv.date_parser(_c1T)", "def BOAD(vIwR):\n NArs = vIwR.strip().split('-')\n lO87 = int(NArs[0])\n x0eS = int(NArs[1])\n CjKC = int(NArs[2])\n Csk6 = _c1T(lO87, x0eS, CjKC)\n ...
[ "0.8198883", "0.8110629", "0.80763143", "0.80613905", "0.80155694", "0.7849299", "0.7770957", "0.7708735", "0.7706321", "0.7680073", "0.7679947", "0.7672945", "0.76615816", "0.7649975", "0.7607937", "0.7597452", "0.7558693", "0.75560814", "0.7554643", "0.75494134", "0.7546085...
0.77120113
7
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, IALK): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8457179", "0.8393067", "0.81457263", "0.8140635", "0.8133462", "0.8094992", "0.8093376", "0.8093376", "0.8093376", "0.80863357", "0.80863357", "0.8077303", "0.8077303", "0.8066831" ]
0.0
-1
Pretend it is a vector, return magnitude
def YXbZ(YKHO): return epAf.sqrt(YKHO.x ** 2 + YKHO.y ** 2 + YKHO.z ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(Lzxs(Ty9i))", "def YXbZ(Ty9i):\n if len(Ty9i.arr) != 4 or Ty9i[3] != 0.0:\n raise ValueError('Only use this function with vectors.')\n return oyIN.sqrt(oyIN.sum(oyIN.square(Ty9i.arr)))", "def YXbZ(Ty9i: Vector) -> float:\n return epAf.sqrt(...
[ "0.83212495", "0.82795614", "0.82095546", "0.8184698", "0.8156178", "0.7991793", "0.79893816", "0.7858376", "0.7829627", "0.77027106", "0.76909196", "0.76669794", "0.7621764", "0.75843215", "0.75431645", "0.74838066", "0.73868483", "0.73465514", "0.733537", "0.73240113", "0.7...
0.7111796
29
Return copy of our point, shifted by other.
def FOdN(YKHO, Elif): Emd4 = YKHO.__class__ return Emd4(YKHO.x + Elif.x, YKHO.y + Elif.y, YKHO.z + Elif.z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OQEa(YKHO, Elif):\n return PvyL((WKvO * Elif for WKvO in YKHO.data))", "def qjfR(YKHO, Elif):\n return PvyL(YKHO.x - Elif[0], YKHO.y - Elif[1])", "def FOdN(YKHO, Elif):\n return PvyL(YKHO.x + Elif.x, YKHO.y + Elif.y)", "def m5re(YKHO, Elif):\n Elif.set_upstream(YKHO)\n return Elif", "def...
[ "0.69401866", "0.6871399", "0.6828172", "0.6774653", "0.66611445", "0.66412777", "0.65821534", "0.65691817", "0.6567369", "0.64887", "0.6451639", "0.6419063", "0.63904065", "0.63462067", "0.63462067", "0.62460613", "0.6237011", "0.62252444", "0.6213744", "0.61964566", "0.6190...
0.57748973
53
Initializes an instance of class Node. Ensures data is an integer and raises a TypeError if it's not.
def FIMM(YKHO, nPrm, zAcD=None): if type(nPrm) is not int: raise TypeError('data must be an integer') else: YKHO.data = nPrm if isinstance(zAcD, o7DN) or zAcD is None: YKHO.next_node = zAcD else: raise TypeError('next_node must be a Node object')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, nPrm, Q6kx):\n YKHO.data = nPrm\n YKHO.node = Q6kx", "def FIMM(YKHO, BWXx: int):\n YKHO._data = BWXx\n YKHO._next = None", "def FIMM(YKHO, nPrm=None):\n if nPrm is not None:\n YKHO._size = 1\n YKHO.head = o7DN(nPrm)\n YKHO.tail = YKHO.head\n else:\n ...
[ "0.7103087", "0.6888529", "0.6782137", "0.67696524", "0.6692282", "0.6681539", "0.6640865", "0.6596899", "0.64916956", "0.6468642", "0.6424842", "0.6418991", "0.64061683", "0.63961744", "0.63961744", "0.63309205", "0.6329963", "0.63056785", "0.62727034", "0.6257369", "0.62478...
0.82900274
0
Initializes an instance of class SinglyLinkedList
def FIMM(YKHO): YKHO.__head = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO._head = YKHO._Node(None, None, None)\n YKHO._tail = YKHO._Node(None, None, None)\n YKHO._head._next = YKHO._tail\n YKHO._tail._prev = YKHO._head\n YKHO._size = 0", "def FIMM(YKHO):\n Q6kx = Msxl(0)\n YKHO.head = Q6kx\n YKHO.tail = Q6kx\n YKHO.len = 0", "def FIM...
[ "0.74831873", "0.74680954", "0.74317276", "0.733495", "0.7324408", "0.7301711", "0.72934777", "0.7279951", "0.72563905", "0.72551745", "0.72551745", "0.7224028", "0.7224028", "0.7224028", "0.7208595", "0.7206092", "0.72034454", "0.7195974", "0.71766365", "0.7174176", "0.71618...
0.7186778
18
Inserts a new Node into the correct sorted position (increasing)
def No4q(YKHO, BWXx): BdN0 = o7DN(BWXx) if YKHO.__head is None: YKHO.__head = BdN0 elif YKHO.__head.data > BWXx: BdN0.next_node = YKHO.__head YKHO.__head = BdN0 else: ycBG = YKHO.__head while ycBG.next_node is not None and ycBG.next_node.data < BWXx: y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def No4q(YKHO, BWXx):\n BdN0 = o7DN(BWXx)\n if YKHO.__head is None:\n YKHO.__head = BdN0\n return\n DpUl = YKHO.__head\n if BdN0.data < DpUl.data:\n BdN0.next_node = YKHO.__head\n YKHO.__head = BdN0\n return\n while DpUl.next_node is not None and BdN0.data > DpUl.n...
[ "0.7960838", "0.7916846", "0.7894647", "0.7048809", "0.703373", "0.69106734", "0.6901034", "0.6886095", "0.68436915", "0.6839785", "0.67785627", "0.67767525", "0.6742976", "0.67267144", "0.6697202", "0.66967976", "0.668254", "0.6681316", "0.667863", "0.6677952", "0.6676317", ...
0.76554143
3
Get the details of a words by its `id`. If successful, returns a Collection resource in the response body specified in `GetSearchWordsDetailResponseSchema`
async def getSearchKeywords(YKHO, id=None): pB3N = {} if id: pB3N['id'] = id uPxI = QBFA.getSearchKeywords() uPxI.dump(uPxI.load(pB3N)) K1M9 = await tpOk(YKHO._conf.domain, f'/service/platform/catalog/v1.0/company/{YKHO._conf.companyId}/application/{YKHO.applicationId}/search/keyword/{id}/',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def omC3(id):\n MzZt = MSyN(id)\n Rci7 = MzZt['location']['city']\n print(f'getting similar doctors in {Rci7}')\n Ghho = MzZt['categories'][0]['alias']\n ipek = MzZt['categories'][0]['title']\n yeNH = VdiD('doctors', location=Rci7, category=Ghho)\n return TvZl('about.html', doctor=MzZt, catego...
[ "0.57461864", "0.5740392", "0.56850916", "0.56753105", "0.55729306", "0.5269994", "0.5254381", "0.5237878", "0.52344656", "0.52329636", "0.5055821", "0.5016651", "0.5013943", "0.49679527", "0.49645448", "0.49605826", "0.49319285", "0.49295816", "0.4927264", "0.49039948", "0.4...
0.51061565
10
Products are the core resource of an application. If successful, returns a Company Application Product resource in the response body depending upon filter sent.
async def getAppProduct(YKHO, ht7m=None): pB3N = {} if ht7m: pB3N['item_id'] = ht7m uPxI = QBFA.getAppProduct() uPxI.dump(uPxI.load(pB3N)) K1M9 = await tpOk(YKHO._conf.domain, f'/service/platform/catalog/v1.0/company/{YKHO._conf.companyId}/application/{YKHO.applicationId}/product/{ht7m}/', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldyl(YKHO):\n geh0 = G4JS.get(YKHO._url(YKHO._PRODUCTS_PATH), headers=YKHO._headers)\n return geh0.json()", "def q5FE(YKHO):\n return YKHO.render_simple_page('Products')", "def CnKV(YKHO):\n try:\n nPrm = [vxUp.self_json(Lx3t) for Lx3t in YKHO.productModel.query.all()]\n return oG...
[ "0.6907818", "0.6736245", "0.66459817", "0.6556905", "0.6483247", "0.64386344", "0.643064", "0.63484496", "0.6338219", "0.6272332", "0.62246424", "0.6180877", "0.61707425", "0.6146661", "0.61121774", "0.60756373", "0.60710835", "0.6065253", "0.60551447", "0.6051591", "0.60420...
0.6075654
15
Update configuration for listing.
async def updateListingConfiguration(YKHO, Xf8z=None, S8MR=None, TBsA=''): pB3N = {} if Xf8z: pB3N['config_type'] = Xf8z if S8MR: pB3N['config_id'] = S8MR uPxI = QBFA.updateListingConfiguration() uPxI.dump(uPxI.load(pB3N)) from .models import AppConfigurationsSort uPxI = AppC...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H3IP(YKHO):\n pass", "def _sHY(YKHO):\n f1nk = YKHO.load_config()\n uBeC = f1nk.json\n if str(YKHO.ITEM_PUBLIC_ID) in uBeC[f'{YKHO.ITEM_TYPE}s']:\n uBeC[f'{YKHO.ITEM_TYPE}s'].remove(str(YKHO.ITEM_PUBLIC_ID))\n uBeC[f'{YKHO.ITEM_TYPE}s'].append(f'{YKHO.ITEM_PUBLIC_ID.author}/{YKHO.ITEM_P...
[ "0.6858528", "0.682887", "0.6549667", "0.64303935", "0.63750416", "0.63509357", "0.6195411", "0.6179669", "0.61264443", "0.60464954", "0.6041735", "0.5977474", "0.59732676", "0.5960031", "0.59428537", "0.59428537", "0.5931172", "0.5930059", "0.59036076", "0.5858026", "0.58517...
0.6471731
3
Get the details of a collection by its `slug`. If successful, returns a Collection resource in the response body specified in `CollectionDetailResponse`
async def getCollectionDetail(YKHO, s5ru=None): pB3N = {} if s5ru: pB3N['slug'] = s5ru uPxI = QBFA.getCollectionDetail() uPxI.dump(uPxI.load(pB3N)) K1M9 = await tpOk(YKHO._conf.domain, f'/service/platform/catalog/v1.0/company/{YKHO._conf.companyId}/application/{YKHO.applicationId}/collection...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c2sL(Emd4, xUwc, PObu):\n Aofo = xUwc.find_one({'_id': Emd4.object_id(PObu)})\n if Aofo is None:\n raise yiLL(\"No object matching _id '{}' in collection '{}'\".format(PObu, xUwc.name), status=404)\n return Aofo", "def dVja(QkFK):\n assert isinstance(QkFK, S7kj)\n try:\n nPrm = w...
[ "0.7059914", "0.6674633", "0.66093224", "0.6592739", "0.6438432", "0.6386326", "0.62654966", "0.6244412", "0.5886946", "0.5876481", "0.58235365", "0.58094215", "0.57920927", "0.57679325", "0.56869364", "0.56781524", "0.56612426", "0.56535053", "0.56337017", "0.563233", "0.562...
0.8644603
0
Products are the core resource of an application. Products can be associated by categories, collections, brands and more. If successful, returns a Product resource in the response body specified in `ApplicationProductListingResponseDatabasePowered`
async def getAppProducts(YKHO, _eW6=None, V9Rs=None, F36Z=None, dJ1p=None, bEVn=None, Tq3Z=None, bNfU=None, vexM=None): pB3N = {} if _eW6: pB3N['brand_ids'] = _eW6 if V9Rs: pB3N['category_ids'] = V9Rs if F36Z: pB3N['department_ids'] = F36Z if dJ1p: pB3N['tags'] = dJ1p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ldyl(YKHO):\n geh0 = G4JS.get(YKHO._url(YKHO._PRODUCTS_PATH), headers=YKHO._headers)\n return geh0.json()", "def uQsB(YKHO):\n return YKHO._make_get_request(YKHO._urls['products'])", "def Ldyl(YKHO):\n from hubspot3.products import ProductsClient\n return ProductsClient(**YKHO.auth, **YKHO.o...
[ "0.7194822", "0.7147236", "0.6985063", "0.6957534", "0.6896469", "0.68158233", "0.66960317", "0.66780835", "0.66502905", "0.6633502", "0.66330755", "0.66122544", "0.6567421", "0.65539426", "0.6551176", "0.6540888", "0.65162116", "0.64719766", "0.6470924", "0.6427235", "0.6424...
0.62485427
25
Take an array and return whether the array is strictly increasing or not.
def U4Ag(nPrm): return (oyIN.diff(nPrm) > 0).all() == True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mg38(jzdc):\n return oyIN.all(oyIN.diff(jzdc) > 0)", "def ynxl(ezWE, U4Ag=True):\n if len(ezWE) == 0:\n return True\n if U4Ag:\n return oyIN.all(oyIN.diff(ezWE) >= 0)\n else:\n return oyIN.all(oyIN.diff(ezWE) <= 0)", "def mwCj(qw7D, gqRb, ODP9):\n gqRb = max(0, gqRb)\n ...
[ "0.8435516", "0.7985802", "0.76749957", "0.75439185", "0.7527223", "0.74065775", "0.74063396", "0.7221936", "0.70638204", "0.70570487", "0.69742227", "0.6968388", "0.6944009", "0.6850256", "0.6788427", "0.6775441", "0.6770309", "0.67677075", "0.6764303", "0.6753061", "0.66902...
0.77329713
2
Returns true if this is a valid url
def deVW(bD7m): return 0 < len(KVWQ(bD7m)[1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vK9q(YKHO):\n if YKHO.resolver:\n return True\n return False", "def MgiZ(YKHO) -> bool:\n xzCw = QnFP()\n try:\n xzCw(YKHO.args.url)\n return False\n except sUXu:\n return True", "def vf2Y(YKHO, bD7m):\n if bD7m is None:\n return False\n elif bD7m.sta...
[ "0.8459905", "0.8365042", "0.8349497", "0.82956135", "0.8192476", "0.8111698", "0.80761296", "0.8068111", "0.80660886", "0.80393326", "0.79730046", "0.7956076", "0.7956076", "0.79418004", "0.79344326", "0.7923651", "0.7890589", "0.7876599", "0.7787461", "0.7785099", "0.777344...
0.8056837
9
Creates and returns a pandas data frame from a Weka arff file.
def fIqG(Ug0O, wgPg=False): azoT = [] yfnB = False nPrm = {} KLQu = -1 QEL1 = -1 for d6pt, zFiD in enumerate(Ug0O.readlines()): if yfnB: eHxA = zFiD.rstrip().rstrip(',').split(',') rdlD = xO6b(eHxA) if KLQu == -1: KLQu = C70D(rdlD) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UlWi(mC1D: str):\n nPrm = Bilk.loadarff(mC1D)\n Kiac = rLdf.DataFrame(nPrm[0])\n return Kiac", "def aj96(FYKK, **B2fa):\n return rLdf.read_feather(FYKK, **B2fa)", "def D6Kr(jQ3Z, Ux0P, zcys='pandasdata', fn23=True, IbZO=True):\n import re\n\n def nAv5(KCHu):\n if KCHu != '?':\n ...
[ "0.6896652", "0.63749504", "0.6300467", "0.6258507", "0.60809386", "0.6067322", "0.6040736", "0.60003114", "0.5970567", "0.57890475", "0.57825744", "0.5768192", "0.5706115", "0.56877947", "0.5684231", "0.5677587", "0.56683767", "0.56581473", "0.56405205", "0.5622583", "0.5596...
0.0
-1
Reset global statistics dictionary.
def BJld() -> None: ifvj['cleaned'] = 0 ifvj['null'] = 0 ifvj['unknown'] = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.stats = {}", "def mzqt(YKHO):\n YKHO.__stats_table = {}", "def mzqt(YKHO):\n YKHO.__stats_table = {}", "def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(float)", "def SiRx(YKHO) -> None:\n YKHO.statistics = oRi_(int)", "def Tf3z(YKHO):\n YKHO.stats.reset()", "de...
[ "0.8293292", "0.82081735", "0.8191345", "0.8086345", "0.80615574", "0.79317147", "0.79317147", "0.75796163", "0.7497475", "0.7360163", "0.7360163", "0.7360163", "0.7313594", "0.7254072", "0.7058761", "0.68124324", "0.6777969", "0.67372173", "0.67168313", "0.67164683", "0.6643...
0.7731842
7
Given the lowest edge in the search tree, backup its value along all edges to the root
def JKMw(gRN6, vOGg): ow5R = gRN6 while ow5R is not None and ow5R.parent is not None: ow5R.total_reward += vOGg ow5R.visit_count += 1 ow5R.avg_reward = ow5R.total_reward / ow5R.visit_count ow5R = ow5R.parent.parent_edge
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LtxH(YKHO, BWXx: float, D9oV=None):\n jvSB = YKHO.current\n _AKB = jvSB.parent\n hfDe = BWXx\n while _AKB is not D9oV:\n D70y = _AKB.edges[jvSB.index]\n D70y.visits += 1\n hfDe += jvSB.score - _AKB.score\n D70y.value += (hfDe - D70y.value) / D70y.visits\n jvSB, _A...
[ "0.64578086", "0.64005613", "0.63505846", "0.6306446", "0.6258873", "0.6237712", "0.6219051", "0.6129095", "0.6128473", "0.60948586", "0.60475034", "0.5989608", "0.59821326", "0.5923738", "0.5912156", "0.58807766", "0.58460575", "0.58214927", "0.5821385", "0.58108705", "0.580...
0.5733141
27
Render the root index page.
def tk5Y(): return WsL5.render_template('index.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tk5Y():\n return TvZl('index.html')", "def tk5Y():\n return TvZl('index.html')", "def tk5Y():\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt(YKHO):\n return TvZl('index.html')", "def d6pt():\n return TvZl('index.html')", "def d6pt(YKHO):\n re...
[ "0.8183606", "0.8183606", "0.8183606", "0.8112007", "0.81083304", "0.8101133", "0.80989635", "0.8085401", "0.8085401", "0.7937648", "0.79349715", "0.79349715", "0.7921631", "0.7881508", "0.78801703", "0.78779125", "0.78541213", "0.78510344", "0.78273135", "0.78209394", "0.780...
0.74934137
82
Render the browser page.
def SYsl(): return WsL5.render_template('browser.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OsD3():\n return TvZl('index.html')", "def NMoC(YKHO):\n YKHO.render('index.html')", "def NMoC(YKHO):\n YKHO.render('index.html')", "def NMoC(YKHO):\n YKHO.render('index.html')\n return", "def iXC1(YKHO) -> None:\n YKHO._render()\n print(YKHO.sio.getvalue())", "def Oknt(YKHO, leA...
[ "0.75061005", "0.7244879", "0.71513355", "0.71417814", "0.7089995", "0.7023496", "0.6992184", "0.6893141", "0.68442404", "0.68321484", "0.68089557", "0.67964613", "0.679536", "0.6790774", "0.6790539", "0.67665976", "0.66990024", "0.66513026", "0.66270864", "0.6623908", "0.659...
0.69714457
7
Given a datetime object, return the nearest time in the database (in string format), or None if empty.
def GsKu(EcWc): u4ze = k0zx.time2string(EcWc) try: holR = NCls.session.query(J8oL.Image.time).filter(J8oL.Image.time <= u4ze).order_by(J8oL.Image.time.desc()).limit(1) holR = holR[0].time xng_ = abs(k0zx.string2time(holR) - EcWc) except: holR = None xng_ = JRYC.timede...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kbs2(YKHO, a1PO):\n if YKHO.verbose:\n HwRy.stderr.write('SQL Time %s' % a1PO)\n YKHO.cursor.execute('SELECT * FROM tracklog WHERE dt <= ? ORDER BY dt DESC LIMIT 1', (a1PO,))\n Csk6 = YKHO.cursor.fetchone()\n if Csk6 != None:\n lGE9 = [qcWV.strptime(Csk6[0], '%Y-%m-%d %H:%M:%S')]\n ...
[ "0.68339187", "0.6200543", "0.61982375", "0.6133891", "0.6118181", "0.5926496", "0.5697461", "0.56276345", "0.5610388", "0.5587665", "0.5519962", "0.5509945", "0.54903024", "0.5426412", "0.5422848", "0.5421275", "0.5323081", "0.53056514", "0.5294015", "0.52822715", "0.5249685...
0.6193283
3
Builds a Sukharevgrid hypercube design dataframe from a dictionary of factor/level ranges. Number of samples raised to the power of (1/dimension), where dimension is the number of variables, must be an integer. Only min and max values of the range are required.
def FapA(Csk6, eAYh=None): return FapA(Csk6, num_samples=eAYh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mMM9(Mjw9: Dict[str, Union[int, float, np.ndarray]]) -> rLdf.DataFrame:\n usx6 = WhY1.product(*Mjw9.values())\n return rLdf.DataFrame.from_records(usx6, columns=Mjw9.keys())", "def FIMM(YKHO, nPrm: pd.DataFrame, ZEeO: int, ap0E: int, MynD: int, n4wC: int, AKPz: int, pSaj: tuple):\n YKHO.data = nPrm\...
[ "0.6052764", "0.59037673", "0.5789137", "0.5610777", "0.5575302", "0.5435865", "0.5409098", "0.5386549", "0.5361984", "0.53291714", "0.529285", "0.5273553", "0.52391833", "0.5218937", "0.5197006", "0.5178087", "0.51730216", "0.5172327", "0.5155161", "0.51338536", "0.5105367",...
0.0
-1
Builds a design dataframe with samples drawn from uniform random distribution based on a dictionary of factor/level ranges. Only min and max values of the range are required.
def ZNVI(Csk6, eAYh=None): return kNNo(Csk6, num_samples=eAYh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xetE(dsE5, __n6, CKiJ, m6Me, d4r9):\n ZW29, KJdK, D1uT = VWrm(dsE5, __n6)\n F6gY, xkjI, bOBl = yLtf(KJdK, __n6, dsE5, ZW29, CKiJ, raw=m6Me, analysis=d4r9)\n F6gY['age_int'] = F6gY['age'].astype('int32', copy=False)\n Q_5R = oyIN.arange(F6gY['age'].min(), F6gY['age'].max())\n m7Yz = 14\n A43s ...
[ "0.6120273", "0.57362914", "0.56356394", "0.5590903", "0.5580051", "0.554625", "0.544098", "0.54278064", "0.54259616", "0.5405972", "0.540069", "0.53572416", "0.535494", "0.5325751", "0.52944916", "0.5289679", "0.5276429", "0.5261791", "0.520247", "0.5180726", "0.51744366", ...
0.0
-1
The L_2 optimized attack. This attack is the most efficient and should be used as the primary attack to evaluate potential defenses. Returns adversarial examples for the supplied model.
def FIMM(YKHO, C3ST, Ep8u=1, la9G=dvlM, zUiX=ycAe, b0Ix=RYHy, xlkI=M97H, CoQy=c8HN, UcfW=100, jA2X=0, a4DS=qZcV, d8Fu=FS7m, eVjP=True, dn2R=True, uLqs=False, u9YD=0.9, Iepo=0.999, Qh1K=False, ykvB='adam', jW2_='', Nh79='', XS5B=0, WkIM=32, Tk5S=False, begE='cuda'): if ykvB != 'fake_zero': ht2j.set_grad_enab...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sqNn(C3ST):\n MyHC = 10\n woWF = uJcq.counterfitted_GLOVE_embedding()\n nGID = HFhb(max_candidates=10, embedding=woWF, learning_rate=0.5, discretize_by_cosine=False)\n gkIT = KQN7\n CeKV = vZUL(C3ST, use_cache=True)\n J9Mn = N7YB(candidates=MyHC, neighborhood_multiplier=5, max_changes_per_wor...
[ "0.57577574", "0.56006753", "0.54432786", "0.54042715", "0.5355783", "0.52470887", "0.52401364", "0.5080776", "0.5078789", "0.50548965", "0.50382966", "0.5012398", "0.50013757", "0.49923596", "0.4991546", "0.49646848", "0.49643445", "0.4963997", "0.4945777", "0.49454907", "0....
0.0
-1
Returns a list of those inputs which should be considered when attempting to merge two different protocols of the same type. Returns set of ProtocolPath References to those inputs which should be considered.
def pGB3(YKHO): xhXW = set() for O38l in YKHO.required_inputs: if O38l.start_protocol is not None and O38l.start_protocol != YKHO.id: continue if not (O38l.start_protocol is None or (O38l.start_protocol == O38l.last_protocol and O38l.start_protocol == YKHO.id)): continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PdBI(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'protocols')", "def E0r8(g4y1):\n pzVU = set()\n for YRbF in g4y1:\n try:\n pzVU = pzVU.union(YRbF.urls())\n except:\n raise\n return pzVU", "def Df9F(YKHO, yCnv):\n mgFW = []\n...
[ "0.606534", "0.5921542", "0.56391585", "0.5582945", "0.5582945", "0.5499798", "0.5394667", "0.5348988", "0.5148564", "0.514139", "0.5138376", "0.51202196", "0.5107636", "0.5075969", "0.50506335", "0.5040749", "0.49956554", "0.49919233", "0.4980945", "0.49595803", "0.49321705"...
0.7201167
0
Returns one of this protocols, or any of its children's, attributes directly (rather than its value).
def g7Wb(YKHO, schV): if schV.start_protocol is not None and schV.start_protocol != YKHO.id: raise ValueError('The reference path {} does not point to this protocol'.format(schV)) if schV.property_name.count(UW2v.property_separator) >= 1 or schV.property_name.find('[') > 0: raise ValueError('The...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tqKV(YKHO) -> ImMB:\n return YKHO.attributes", "def GTRl(YKHO, r7Tv: str) -> laHg.Union[OVEI.Attributes]:\n return YKHO._parent_node.get_attribute(r7Tv)", "def G7Ug(YKHO):\n hkS8 = YKHO._bld.FindOrCreateAttribute(YKHO._sobj, YKHO.sname)\n return hkS8._narrow(YKHO.stype)", "def i5iS(YKHO):\n ...
[ "0.66290337", "0.61623335", "0.61337537", "0.60472715", "0.60307115", "0.6029202", "0.60283405", "0.59579617", "0.59337056", "0.59335685", "0.5925819", "0.592047", "0.592047", "0.58975416", "0.58941126", "0.58849657", "0.58722186", "0.5866904", "0.5859108", "0.58565736", "0.5...
0.0
-1
Returns the value of one of this protocols inputs / outputs.
def Zmkp(YKHO, schV): if schV.start_protocol is not None and schV.start_protocol != YKHO.id: raise ValueError('The reference path does not target this protocol.') if schV.property_name is None or schV.property_name == '': raise ValueError('The reference path does specify a property to return.') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWXx(YKHO):\n return YKHO['input'].value()", "def lXUc(YKHO, mLim):\n mLim = PdBI.protocol_with_any(mLim)\n for gX_x, BWXx in YKHO.items():\n if gX_x is mLim or gX_x == mLim:\n return BWXx\n raise Bx6I.ProtocolLookupError(mLim, str(YKHO))", "def Ax2O(YKHO):\n return YKHO.va...
[ "0.6471683", "0.64303595", "0.6367092", "0.6327082", "0.63108855", "0.61634654", "0.6133807", "0.6123385", "0.60559344", "0.6052717", "0.6052717", "0.59725505", "0.5952316", "0.5924429", "0.5918395", "0.5918395", "0.5918395", "0.5918395", "0.5918395", "0.5918395", "0.5918395"...
0.0
-1
Applies a `ProtocolReplicator` to this protocol. This method should clone any protocols whose id contains the id of the replicator (in the format `$(replicator.id)`).
def CzQR(YKHO, PNow, gZXu, Qafy=-1, YDKI=None, HQf3=False): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, XqC_=''):\n YKHO.replicator_id = XqC_", "def SJqB(YKHO, TgTN, BZDx):\n for O38l in YKHO.required_inputs:\n O38l.replace_protocol(TgTN, BZDx)\n if O38l.start_protocol is not None or (O38l.start_protocol != O38l.last_protocol and O38l.start_protocol != YKHO.id):\n cont...
[ "0.5212206", "0.5155001", "0.5092272", "0.482206", "0.45493725", "0.45493725", "0.45485687", "0.45385852", "0.4492771", "0.44367614", "0.44129315", "0.4407569", "0.44025335", "0.43890157", "0.43871552", "0.43437824", "0.43313554", "0.43102112", "0.42590275", "0.4256028", "0.4...
0.43847278
15
The string name of this object.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def mWFP(YKHO) -> str:\n return YKHO.__name", "def...
[ "0.8641713", "0.8641713", "0.8641713", "0.8641713", "0.8641713", "0.8641713", "0.8641713", "0.86382765", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.86366504", "0.854574", "0.854574", "0.8545...
0.0
-1
Returns True if `self` is subtype of `other`.
def hAd9(YKHO, Elif): if type(YKHO) is not type(Elif): return False if not YKHO._transform_is_composite and YKHO.transform_or_spec != Elif.transform_or_spec: return False try: ZylS.nest.assert_same_structure((YKHO._specs, YKHO._unique_id_params), (Elif._specs, Elif._unique_id_params)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk0I(Emd4, Elif):\n return isinstance(Elif, Emd4)", "def hHld(YKHO, Elif):\n if isinstance(Elif, type):\n return isinstance(YKHO, Elif)\n return YKHO == Elif", "def xa14(YKHO, Elif):\n return isinstance(Elif, YKHO.__class__)", "def hdkC(YKHO, Elif):\n if Elif is YKHO:\n retur...
[ "0.78547263", "0.76336676", "0.73961675", "0.7058479", "0.692733", "0.69169086", "0.6738126", "0.67178416", "0.6691528", "0.66556174", "0.66554534", "0.66383874", "0.66254455", "0.6550018", "0.6540524", "0.65269595", "0.65269476", "0.64918786", "0.64704806", "0.64704806", "0....
0.70454806
4
Returns True if `spec_or_value` is compatible with this TypeSpec.
def BBeS(YKHO, v1fe): if not isinstance(v1fe, ZylS.TypeSpec): v1fe = XkQz.type_spec_from_value(v1fe) if type(YKHO) is not type(v1fe): return False if not YKHO._transform_is_composite: if YKHO.transform_or_spec != v1fe.transform_or_spec: return False return YKHO._TypeS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JikO(YKHO, BWXx):\n if BWXx is not None and YKHO.value_type is not None:\n deVW = isinstance(BWXx, YKHO.value_type)\n if not deVW:\n return False\n return True", "def ch65(YKHO, BWXx: Any) -> bool:\n return YKHO.type_registry.is_valid_nested(BWXx)", "def GzvA(XkQz: computa...
[ "0.6090885", "0.60800487", "0.59740835", "0.5972587", "0.5841784", "0.58039266", "0.57995975", "0.57938844", "0.5790969", "0.57170725", "0.569705", "0.5694284", "0.5682722", "0.5666257", "0.561704", "0.5566469", "0.55634415", "0.5527648", "0.55116", "0.55059814", "0.5490449",...
0.8151051
0
Returns the `input_spec` with leading batch dimension removed.
def WZ1O(YKHO): if isinstance(YKHO._input_spec, XkQz.BatchableTypeSpec): return YKHO._input_spec._unbatch() if isinstance(YKHO._input_spec, TbMQ.VariableSpec): return TbMQ.VariableSpec(shape=None if YKHO._input_spec.shape is None else YKHO._input_spec.shape[1:], dtype=YKHO._input_spec.dtype, tra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SSQ2(YKHO):\n gC4l = YKHO._specs.get('transform_or_spec', YKHO.transform_or_spec)\n if hasattr(gC4l, '_unbatch'):\n gC4l = gC4l._unbatch()\n return MtD8(YKHO._get_unbatched_input_spec(), transform_or_spec=gC4l, dtype=YKHO.dtype, shape=None if YKHO.shape is None else YKHO.shape[1:], name=YKHO.na...
[ "0.65780014", "0.60339016", "0.5858282", "0.5787339", "0.5759501", "0.56426686", "0.56240726", "0.55431986", "0.55280155", "0.54403126", "0.54354197", "0.5397142", "0.5383978", "0.5363839", "0.5327748", "0.53150475", "0.5271061", "0.51590055", "0.5136601", "0.51251155", "0.51...
0.6334988
1
Initializes a new `_TransformedVariableSpec`.
def FIMM(YKHO, XNCD, gC4l, yDqo, mWFP): YKHO._input_spec = XNCD YKHO._transform_or_spec = gC4l YKHO._dtype = yDqo YKHO._name = mWFP YKHO._unique_id_params = {'dtype': yDqo} YKHO._transform_is_composite = isinstance(gC4l, ZylS.TypeSpec) YKHO._specs = {'input_spec': XNCD} if YKHO._transfor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pClX(YKHO, AdfU):\n xzud = AdfU.pop('bijector', YKHO.transform_or_spec)\n return ybgq(**AdfU, initial_value=None, bijector=xzud, dtype=YKHO.dtype, name=YKHO.name)", "def FIMM(YKHO, lJf5, xzud, yDqo=None, mWFP=None, **B2fa):\n for hkS8 in {'forward', 'forward_event_shape', 'inverse', 'inverse_event_s...
[ "0.6138193", "0.61043125", "0.59204894", "0.58342403", "0.5778291", "0.5722805", "0.5702514", "0.55525905", "0.5540655", "0.54837817", "0.54630786", "0.54498744", "0.54365695", "0.5427383", "0.5425426", "0.54199487", "0.5410114", "0.5403379", "0.53761965", "0.53729236", "0.53...
0.580823
4
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(_a8C, qtWj): if qtWj < 10: tspZ = qIxc.lr * (qtWj + 1) / 10 elif 10 <= qtWj < 20: tspZ = qIxc.lr elif 20 <= qtWj < 50: tspZ = qIxc.lr * 0.1 elif qtWj >= 50: tspZ = qIxc.lr * 0.01 _a8C.param_groups[0]['lr'] = 0.1 * tspZ for YRbF in range(len(_a8C.param_gro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW", "def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L...
[ "0.7913536", "0.7906521", "0.7849834", "0.777524", "0.77338326", "0.77306354", "0.7722718", "0.77224237", "0.771982", "0.77092624", "0.7693604", "0.76742035", "0.7665748", "0.7665748", "0.7665748", "0.7655329", "0.76419765", "0.76399755", "0.7637868", "0.7626077", "0.76247585...
0.0
-1
Validate a given set of query parameters and confirm they are applicable for this endpoint
def nrOS(YKHO, QTBn=None, **KUnM) -> 'Client': fvDH = 'fips' if YKHO.path == 'covid' else 'location' if QTBn is not None and YKHO.has_filter(fvDH): if fvDH in KUnM: tO9_ = f'Both state {QTBn} and {fvDH} {KUnM[fvDH]} were passed.' tO9_ += ' Only one may be applied at a time' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nxbo(YKHO):\n fLle(YKHO._years)\n uw1x(YKHO.for_geo, YKHO.in_geo)\n Bf0w(YKHO.estimate, YKHO.for_geo)\n return True", "def rUrJ(eHpk: SqRestEngine, NArs: Dict):\n\n def t05q(xqoZ: str, kLQb: str, nLhi: str) -> str:\n return f'Wrong request {xqoZ}: expected {kLQb} - got {nLhi}'\n try:...
[ "0.75395805", "0.70680356", "0.6989793", "0.6597404", "0.64976615", "0.6454052", "0.6426118", "0.64165086", "0.64060557", "0.6398697", "0.6392284", "0.6381563", "0.63649553", "0.63162225", "0.6289131", "0.6286899", "0.6280915", "0.6251446", "0.6247898", "0.6243303", "0.622107...
0.0
-1
Asserts that the version of dockercomposenoplacementconstraints is the latest
def nswp(): with open('docker_config/docker-compose-no-placement-constraints.yaml', 'r') as Di9a: with open('docker_config/docker-compose.yaml', 'r') as wOb_: dict = eJb6.safe_load(wOb_) dict = SFJI(dict) R8cc = eJb6.dump(dict, default_flow_style=False, allow_unicode=True...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yNuK() -> None:\n n5Lw = ZZdp()\n if n5Lw < DpZH.parse(AX2u):\n raise AI6u(f'Docker-compose {n5Lw} is not supported. You need to have at least {AX2u}')\n ZVYI = J1rU()\n if ZVYI < DpZH.parse(SdM1):\n raise AI6u(f'Docker {ZVYI} is not supported. You need to have at least {SdM1}')", "...
[ "0.6654591", "0.6281692", "0.6153739", "0.60202277", "0.60174435", "0.6002098", "0.5993986", "0.5977341", "0.58967453", "0.58948433", "0.58862793", "0.57865256", "0.5786191", "0.57769173", "0.5757584", "0.57115114", "0.56823", "0.56812084", "0.56684655", "0.5653574", "0.56468...
0.5633351
22
Return a random rotation matrix
def hAAS(): P6bq = oyIN.random.uniform(size=3) vexM = oyIN.array([oyIN.sqrt(1 - P6bq[0]) * oyIN.sin(2 * oyIN.pi * P6bq[1]), oyIN.sqrt(1 - P6bq[0]) * oyIN.cos(2 * oyIN.pi * P6bq[1]), oyIN.sqrt(P6bq[0]) * oyIN.sin(2 * oyIN.pi * P6bq[2]), oyIN.sqrt(P6bq[0]) * oyIN.cos(2 * oyIN.pi * P6bq[2])]) GKGy = oyIN.array...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cvR5():\n WKvO = oyIN.random.uniform(size=3)\n q7In = WKvO[0] * 2 * epAf.pi\n rVnq = WKvO[1] * 2 * epAf.pi\n epBp = WKvO[2] * 2\n Mkmy = epAf.sqrt(epBp)\n zTvC = epAf.sin(rVnq) * Mkmy\n YtJp = epAf.cos(rVnq) * Mkmy\n tYeL = epAf.sqrt(2.0 - epBp)\n aevO = epAf.sin(q7In)\n lY0q = ep...
[ "0.85812455", "0.7744618", "0.75840765", "0.7518206", "0.73470306", "0.7260589", "0.7238953", "0.7024455", "0.68993294", "0.68715715", "0.6864829", "0.6864829", "0.6864829", "0.68593216", "0.6765641", "0.67651105", "0.67651105", "0.67403316", "0.6725854", "0.67216176", "0.662...
0.7425117
4
Computes the crossentropy cost
def UM2M(mLTO, fuBA): r8hN = mLTO.shape[1] sSN_ = -1 / r8hN * (oyIN.dot(fuBA, oyIN.log(mLTO).T) + oyIN.dot(1 - fuBA, oyIN.log(1 - mLTO).T)) return sSN_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _qpT(YKHO, rkoI):\n CqbS = Kt_s.mean(Kt_s.sum(YKHO.input * Kt_s.log(rkoI) + (1 - YKHO.input) * Kt_s.log(1 - rkoI), axis=1))\n return CqbS", "def _qpT(YKHO, Vhxs, PHIz):\n CqbS = Kt_s.mean(Kt_s.sum(YKHO.input * Kt_s.log(Kt_s.nnet.sigmoid(PHIz)) + (1 - YKHO.input) * Kt_s.log(1 - Kt_s.nnet.sigmoid(PHIz...
[ "0.7532285", "0.7491906", "0.7471267", "0.7415311", "0.73066145", "0.728905", "0.72790325", "0.72023773", "0.7167079", "0.7149328", "0.7140391", "0.71380997", "0.7070278", "0.70476264", "0.7047075", "0.6991439", "0.69882655", "0.6970435", "0.695001", "0.69297063", "0.69114333...
0.0
-1
Sets the href of this CustomerServiceMetricTaskCollection.
def qvey(YKHO, qvey): YKHO._href = qvey
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wXJp(YKHO, wXJp):\n YKHO._item_href = wXJp", "def nyZF(YKHO, nyZF):\n YKHO._item_group_href = nyZF", "def qvey(YKHO):\n return YKHO._href", "def qvey(YKHO):\n return YKHO._href", "def _wkY(YKHO, pFW3, XeOP, E36L):\n super(k0lF, YKHO).async_action(pFW3, XeOP, E36L)\n YKHO.set('href', '...
[ "0.57693386", "0.5111322", "0.50520396", "0.50520396", "0.50450623", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5005647", "0.5003668", "0.49553016", "0.49553016", "0.49553016", "0.495530...
0.6521095
1
Sets the limit of this CustomerServiceMetricTaskCollection.
def qoqK(YKHO, qoqK): YKHO._limit = qoqK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qoqK(YKHO, qoqK):\n YKHO._evaluated = False\n YKHO._limit = qoqK\n return YKHO", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK", "def DPmE(YKHO, BWXx):\n super(wy2T, YKHO)._set_input('Limit', BWXx)", "def qoqK(YKHO, qoqK):\n YKHO._limit = qoqK\n return YKHO", "def qoqK(YKHO, qoqK):\n...
[ "0.6743655", "0.6693186", "0.66077745", "0.65790546", "0.6555484", "0.6550848", "0.64116675", "0.6389649", "0.6255083", "0.6239727", "0.6140176", "0.6119365", "0.6108381", "0.60264796", "0.58797807", "0.5830482", "0.57486165", "0.57144994", "0.56906", "0.5682152", "0.56467175...
0.66888
2
Sets the prev of this CustomerServiceMetricTaskCollection.
def THkp(YKHO, THkp): YKHO._prev = THkp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GQKu(YKHO, THkp):\n YKHO.prev = THkp", "def orlX(YKHO, FD1P):\n YKHO.previous = FD1P", "def OxtZ(YKHO, XP5J) -> None:\n YKHO.prev = XP5J", "def THkp(YKHO):\n return YKHO.__prev", "def THkp(YKHO, XP5J):\n assert type(XP5J) is type(YKHO)\n YKHO.__prev = XP5J", "def AOBR(YKHO):\n pa...
[ "0.6650694", "0.6334318", "0.6213", "0.61976296", "0.61835843", "0.6072512", "0.5917777", "0.58412755", "0.57648003", "0.5644707", "0.5642294", "0.5610288", "0.5544255", "0.55235255", "0.5514401", "0.5485441", "0.54735726", "0.5449381", "0.54301924", "0.54298246", "0.54269516...
0.6791883
0
Sets the total of this CustomerServiceMetricTaskCollection.
def wjRY(YKHO, wjRY): YKHO._total = wjRY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wjRY(YKHO, wjRY: float):\n if wjRY is None:\n raise ValueError('Invalid value for `total`, must not be `None`')\n YKHO._total = wjRY", "def wjRY(YKHO, wjRY):\n if YKHO.local_vars_configuration.client_side_validation and wjRY is None:\n raise ValueError('Invalid value for `total`, must ...
[ "0.6683123", "0.66456103", "0.6316005", "0.62762046", "0.6240422", "0.61213803", "0.61170787", "0.6033454", "0.59787023", "0.5963401", "0.592862", "0.5855848", "0.58510476", "0.58291984", "0.58032006", "0.57362837", "0.5710675", "0.56916434", "0.56700474", "0.5602156", "0.557...
0.68796426
4
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, cusw): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8089204", "0.8089204", "0.8055265", "0.7983358", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "0.7967577", "...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Given a the user_rating dict compute average user ratings
def ooAw(e4x7): Mxe4 = {} for CBIr, BWXx in e4x7.items(): sum = 0 MUAM = 0 for NSCJ, RrWF in BWXx.items(): sum += float(RrWF) MUAM += 1 S8vG = sum / MUAM Mxe4[CBIr] = S8vG return Mxe4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e4Sn(resj):\n d0Qf = resj[0]\n GNPv = 0.0\n CIk0 = len(resj[1])\n if CIk0 == 0:\n return (d0Qf, 0.0)\n for ZfUD in resj[1]:\n GNPv += ZfUD[1]\n return (d0Qf, 1.0 * GNPv / CIk0)", "def OXhY(YKHO, uJjO):\n return YKHO.mean_user_rating[YKHO.mean_user_rating['user_id'] == uJjO]...
[ "0.7645329", "0.7486663", "0.7363803", "0.71609515", "0.71256304", "0.71016675", "0.6949304", "0.6906164", "0.6871054", "0.6858859", "0.66771", "0.66672695", "0.66564226", "0.6606957", "0.65784776", "0.6528221", "0.6519632", "0.64716643", "0.64383996", "0.64283603", "0.640452...
0.8639182
0
Return difference of two ints.
def wncN(jzdc, Fg_i): return jzdc - Fg_i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wncN(WKvO: int, LVAh: int):\n return WKvO - LVAh", "def cFLm(WKvO, LVAh):\n return WKvO - LVAh", "def wncN(_1qI, zDMu):\n by6d = _1qI - zDMu\n return by6d", "def wncN(_1qI, zDMu):\n by6d = zDMu - _1qI\n return by6d", "def ruoQ(_1qI, zDMu):\n by6d = _1qI - zDMu\n return by6d", ...
[ "0.72578734", "0.69304067", "0.69127005", "0.685296", "0.6830722", "0.67837423", "0.67591757", "0.6753341", "0.6726393", "0.6726393", "0.6695918", "0.6544012", "0.65060765", "0.6447873", "0.64163566", "0.64163566", "0.64163566", "0.6412628", "0.6400336", "0.63495356", "0.6348...
0.645472
14
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`.
def LwSz(Y8eF, aMgO, KndY, NkkI=False, leAC=None, iMGt=QrM1.cm.Blues): if not leAC: if NkkI: leAC = 'Normalized confusion matrix' else: leAC = 'Confusion matrix, without normalization' Bcwd = YsYU(Y8eF, aMgO) if NkkI: Bcwd = Bcwd.astype('float') / Bcwd.sum(axi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Bcwd, KndY=[0, 1], NkkI=False, leAC='Confusion matrix', RMso=False):\n if NkkI:\n Bcwd = Bcwd.astype('float') / Bcwd.sum(axis=1)[:, oyIN.newaxis]\n print('Normalized confusion matrix')\n else:\n print('Confusion matrix, without normalization')\n if RMso:\n print(Bcwd)"...
[ "0.8194862", "0.80949175", "0.8029915", "0.8019153", "0.79941195", "0.7991258", "0.7980955", "0.7976606", "0.79610753", "0.79590565", "0.79378676", "0.7934962", "0.7934504", "0.79313844", "0.7926313", "0.7924577", "0.79241234", "0.7923211", "0.7923023", "0.7921931", "0.791787...
0.0
-1
Sets the learning rate to the initial LR decayed by 0.98 each epoch
def e_63(YKHO, K0do, qtWj, ma4o, WJI9=None): tspZ = ma4o * 0.98 ** qtWj for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ if WJI9: WJI9.add_scalar('lr_G', tspZ, qtWj + 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIgb(YKHO):\n if YKHO.FLAGS.learning_rate_decay is 'exponential':\n YKHO.learning_rate = ZylS.train.exponential_decay(YKHO.FLAGS.learning_rate, YKHO.global_step, YKHO.FLAGS.decay_steps, YKHO.FLAGS.decay_rate)\n else:\n YKHO.learning_rate = YKHO.FLAGS.learning_rate", "def b0Ix(qtWj):\n ...
[ "0.7826302", "0.7777572", "0.7766485", "0.776375", "0.7760067", "0.775624", "0.775624", "0.77274007", "0.7696412", "0.7661156", "0.76403975", "0.76403415", "0.763854", "0.76367867", "0.76232225", "0.76171553", "0.7599348", "0.75963974", "0.7591719", "0.75831807", "0.75807536"...
0.7543214
23
Finds the first peak point in the signal.
def CUdD(DAMg, Ruu7): G9jH.debug('running first_peak_detect function') for YRbF in range(Ruu7, len(DAMg)): G9jH.debug('current value of i is %d', YRbF) if DAMg[YRbF - 1] < DAMg[YRbF] > DAMg[YRbF + 1]: G9jH.debug('value determined to be the center of the values %d, %d, %d', DAMg[YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfRT(YKHO):\n return YKHO._data[0]", "def hfRT(YKHO) -> PvyL:\n return YKHO.most_intense_point()", "def hfRT(YKHO):\n pass", "def hfRT(YKHO):\n return YKHO.peak", "def hfRT(nPrm, QXf3=None):\n return oyIN.max(oyIN.abs(nPrm))", "def ohxS(nPrm):\n nonlocal last, ascent_dist, ascent_st...
[ "0.75364155", "0.7515242", "0.7205967", "0.7067757", "0.7063192", "0.7011398", "0.69656426", "0.6899543", "0.68681777", "0.674646", "0.66507727", "0.66276026", "0.65652406", "0.65066725", "0.64852947", "0.64128417", "0.63915634", "0.6386856", "0.6376283", "0.637301", "0.63552...
0.7387292
2
Forward pass for training; returns the loss and hidden state to be passed to the next stage
def KVH6(YKHO, SA7x, d8wB, ZHfW, jAPf=None): Ep8u = SA7x.shape[0] WWbX = YKHO.encoder(SA7x) Ykva = WWbX.unsqueeze(1) Ykva = Ykva.expand(-1, YKHO.C, -1, -1).contiguous() if YKHO.args.similarity_loss_weight > 0.0 or YKHO.args.dissimilarity_loss_weight > 0.0: aU4X = YKHO.encoder(d8wB.view(YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8jS(YKHO):\n return (YKHO.layers, YKHO.best_loss)", "def ored(YKHO, WKvO):\n YKHO.train()\n q4zS, _x49, LVAh = YKHO.forward(WKvO)\n VvTf = ht2j.mean(q4zS)\n N77f = VvTf\n YKHO.zero_grad()\n N77f.backward()\n YKHO.optimizer.step()\n YKHO.eval()\n print('Rec Loss: {}'.format(VvTf...
[ "0.6842813", "0.67254674", "0.66808844", "0.6661478", "0.66317296", "0.6518796", "0.6501482", "0.6441055", "0.640115", "0.63945925", "0.6378223", "0.63754857", "0.63608974", "0.6318288", "0.62991476", "0.62950486", "0.62885267", "0.62850523", "0.62636465", "0.625404", "0.6252...
0.0
-1
Forward pass for inference; returns the separated signal and hidden state to be passed to the next stage
def aOQR(YKHO, WKvO, jAPf=None): WKvO = YKHO.encoder(WKvO) WKvO = WKvO.expand(YKHO.C, -1, -1).unsqueeze_(0) if jAPf is not None: mGVM = ht2j.cat([WKvO, jAPf], 2) else: mGVM = WKvO del jAPf L4Dn = ht2j.arange(0, YKHO.C, device=WKvO.device) if YKHO.instrument_embedding is not N...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO, Zode):\n Ep8u = WKvO.shape[0]\n WKvO = YKHO.embed(WKvO)\n WKvO, Zode = YKHO.lstm(WKvO, Zode)\n WKvO = WKvO.reshape(-1, YKHO.hidden_dim)\n WKvO = YKHO.drp(WKvO)\n WKvO = YKHO.fc(WKvO)\n GbB_ = YKHO.sigmoid(WKvO)\n GbB_ = GbB_.reshape(Ep8u, -1)\n GbB_ = GbB_[:, -1]\n ...
[ "0.634465", "0.6198443", "0.61823845", "0.61330324", "0.6131121", "0.61177427", "0.60765475", "0.6072029", "0.60652095", "0.59722996", "0.594419", "0.5937271", "0.5928774", "0.59094137", "0.5895278", "0.5882043", "0.58692193", "0.585079", "0.58409804", "0.58311045", "0.582869...
0.0
-1
Forward pass for inference; returns the separated signal
def aOQR(YKHO, vwqm, P0cK=4): assert len(vwqm) == YKHO.stages_num eHxA = [int(vwqm[0].shape[-1] / P0cK * Z9rn + 0.5) for Z9rn in range(P0cK)] eHxA.append(vwqm[0].shape[-1]) qLX5 = [(max(0, eHxA[exwG] - YKHO.base_sr * 8), min(eHxA[exwG + 1] + YKHO.base_sr * 8, vwqm[0].shape[-1])) for exwG in range(P0cK)]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n WKvO = WKvO + YKHO.pe[:WKvO.size(0), :]\n return YKHO.dropout(WKvO)", "def KVH6(YKHO, WKvO):\n rPrw, yRej = YKHO.model(WKvO)\n return (rPrw, yRej)", "def KVH6(YKHO, WKvO):\n WKvO = WKvO + YKHO.pe[:WKvO.size(0), :]\n return YKHO.dropout(WKvO)", "def KVH6(YKHO, rNYq: T...
[ "0.67058116", "0.669237", "0.65974075", "0.6561029", "0.6397809", "0.63973707", "0.63973707", "0.63973707", "0.63973707", "0.63736236", "0.6353369", "0.63480484", "0.63420767", "0.634186", "0.6331248", "0.6305852", "0.63045794", "0.626796", "0.6263219", "0.6236724", "0.623359...
0.0
-1
Test that user with no role cannot be created
def o_jY(mGiP): x0hE = mGiP pB3N = {'email': 'test@gmail.com', 'password': 'password', 'name': 'Test name'} Ylbp = x0hE.post(CKgv, pB3N) assert Ylbp.status_code == jGRS.HTTP_400_BAD_REQUEST V7zm = egNl().objects.filter(email=pB3N['email']).exists() assert not V7zm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nyNy(YKHO):\n YKHO.assertFalse(mv1M.objects.exists())", "def rwbk(YKHO):\n bGrB, CBIr = YKHO.get_random_item(FYrf.User)\n BfDw.create_user(CBIr, session=YKHO.session)\n nyyK, P1dF = BfDw.create_user(CBIr, session=YKHO.session)\n YKHO.assertFalse(nyyK)\n YKHO.assertTrue(P1dF)", "def q7vc(Y...
[ "0.7774761", "0.7420876", "0.7157188", "0.7140013", "0.70629483", "0.701963", "0.6951725", "0.69096833", "0.690207", "0.68526024", "0.6847458", "0.6828952", "0.682121", "0.6818705", "0.6812512", "0.6800999", "0.67619777", "0.6755123", "0.67497134", "0.67273474", "0.6719412", ...
0.76015866
1
Test that a user token is successfully created
def Ss3i(mGiP): x0hE = mGiP pB3N = {'email': 'test@gmail.com', 'password': 'testpass'} lYUQ(**pB3N, **{'role': 'Supplier'}) Ylbp = x0hE.post(pEkX, pB3N) assert 'token' in Ylbp.data assert Ylbp.status_code == jGRS.HTTP_200_OK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ss3i(YKHO):\n pB3N = {'email': 'test@test.com', 'password': 'testpass'}\n lYUQ(**pB3N)\n Ylbp = YKHO.client.post(pEkX, pB3N)\n YKHO.assertIn('token', Ylbp.data)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)", "def Ss3i(YKHO):\n pB3N = {'email': 'test@max.net', 'password': 'Testpass...
[ "0.87322414", "0.87006867", "0.8689321", "0.86811435", "0.86803985", "0.8531873", "0.84982514", "0.84742093", "0.83392423", "0.79925317", "0.7961978", "0.78766966", "0.7868033", "0.7835669", "0.7804045", "0.77614194", "0.7748596", "0.77454436", "0.77368826", "0.77176225", "0....
0.82065636
9
Test that a user when supplies invalid credentials token is not created
def yj75(mGiP): x0hE = mGiP pB3N = {'email': 'test@gmail.com', 'password': 'testpass'} lYUQ(**pB3N, **{'role': 'Supplier'}) pB3N['password'] = 'Something else' Ylbp = x0hE.post(pEkX, pB3N) assert 'token' not in Ylbp.data assert Ylbp.status_code == jGRS.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Icv8(YKHO):\n lYUQ(email='test@test1.com', password='testpass')\n pB3N = {'email': 'test@test2.com', 'password': 'wrong'}\n Ylbp = YKHO.client.post(pEkX, pB3N)\n YKHO.assertNotIn('token', Ylbp.data)\n YKHO.assertEquals(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def yj75(YKHO):\n lYUQ(e...
[ "0.8257808", "0.8195655", "0.80803543", "0.8038532", "0.80152225", "0.80055183", "0.7945737", "0.7921069", "0.7912662", "0.7853528", "0.7809791", "0.7639763", "0.7607157", "0.7589302", "0.7584726", "0.7570403", "0.7570219", "0.7569818", "0.7544183", "0.7530165", "0.7471799", ...
0.7662122
11
Test that token is not created when there is no user
def Fmt1(mGiP): x0hE = mGiP pB3N = {'email': 'test@gmail.com', 'password': 'testpass'} Ylbp = x0hE.post(pEkX, pB3N) assert 'token' not in Ylbp.data assert Ylbp.status_code == jGRS.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i_2a(YKHO):\n Ylbp = YKHO.client.post(pEkX, YKHO.mock_user)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)\n YKHO.assertNotIn('token', Ylbp.data)", "def i_2a(YKHO):\n pB3N = {'email': 'test1@test.com', 'password': 'password'}\n Ylbp = YKHO.client.post(pEkX, pB3N)\n YKHO.ass...
[ "0.8515701", "0.83989817", "0.8380544", "0.83048964", "0.82594067", "0.8241376", "0.8202359", "0.79099673", "0.7798587", "0.77823734", "0.77569425", "0.7684717", "0.76623714", "0.76574594", "0.7617291", "0.75941426", "0.7568244", "0.75575113", "0.75458264", "0.7466553", "0.74...
0.78720003
8
Test token is not created when the password is missing
def aAJY(mGiP): x0hE = mGiP Ylbp = x0hE.post(pEkX, {'email': 'test@gmail.com'}) assert 'token' not in Ylbp.data assert Ylbp.status_code == jGRS.HTTP_400_BAD_REQUEST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmSc(YKHO):\n pB3N = {'email': 'test123@mail.com', 'password': ''}\n lYUQ(**pB3N)\n eOtH = YKHO.client.post(pEkX, pB3N)\n YKHO.assertEqual(eOtH.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def yj75(YKHO):\n z5Y8(email='test@test.com', password='hellohello')\n nPrm = {'email': 'test@test.com',...
[ "0.7682041", "0.7571809", "0.7536491", "0.7499466", "0.7485443", "0.74748117", "0.74565387", "0.745399", "0.7434687", "0.7429031", "0.7417534", "0.7410483", "0.7402607", "0.7375788", "0.7374388", "0.73612297", "0.73594105", "0.7359254", "0.7353193", "0.7350076", "0.7328687", ...
0.68093663
55
Test retrieving profile for logged in user
def DOw2(mGiP, Ucvb): x0hE = mGiP CBIr = Ucvb Ylbp = x0hE.get(XiK1) assert Ylbp.status_code == jGRS.HTTP_200_OK assert Ylbp.data == {'name': CBIr.name, 'email': CBIr.email, 'role': 'Supplier'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuRs(YKHO):\n geh0 = YKHO.client.get(MQNu)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(geh0.data, {'name': YKHO.user.name, 'email': YKHO.user.email})", "def PFTI(YKHO):\n Aofo = YKHO.client.get('/profile/1')\n YKHO.assertIn(b'In house:', Aofo.data)", "def Tjjd(Y...
[ "0.8208589", "0.807811", "0.8027141", "0.8024252", "0.80075693", "0.7999291", "0.7981915", "0.79818964", "0.7970111", "0.795909", "0.7951995", "0.79075676", "0.79026365", "0.78413916", "0.7801892", "0.77627635", "0.77301943", "0.77071506", "0.76768214", "0.7648913", "0.758592...
0.7817132
14
Reshape groups to correspond to preds and target.
def rA_A(moMn: torch.Tensor) -> ht2j.Tensor: return moMn.reshape(moMn.shape[0], -1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PLHb(Crrw):\n ON2u = Crrw.copy()\n for YRbF, UXqs in enumerate(Crrw):\n if UXqs in [0, 15, 19]:\n ON2u[YRbF] = 0\n if UXqs in [1, 2, 3, 4, 5]:\n ON2u[YRbF] = 1\n if UXqs in [6]:\n ON2u[YRbF] = 2\n if UXqs in [7, 8, 9, 10]:\n ON2u[YRb...
[ "0.6214245", "0.6038991", "0.58977145", "0.56156784", "0.5595342", "0.5534742", "0.5532647", "0.5400082", "0.53650177", "0.5322542", "0.52945703", "0.52931136", "0.52823704", "0.5266065", "0.5263557", "0.5222995", "0.5206752", "0.5202234", "0.5151183", "0.5144041", "0.5139873...
0.5281119
13
Compute demographic parity based on the binary stats.
def wYqQ(HRJ_: torch.Tensor, ytgA: torch.Tensor, pWm4: torch.Tensor, FYKK: torch.Tensor) -> cuzp[str, ht2j.Tensor]: HVnq = pega(HRJ_ + ytgA, HRJ_ + ytgA + pWm4 + FYKK) Sfib = ht2j.argmin(HVnq) uNgi = ht2j.argmax(HVnq) return {f'DP_{Sfib}_{uNgi}': pega(HVnq[Sfib], HVnq[uNgi])}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tUub(exwG):\n return sum((int(WKvO) for WKvO in bin(exwG)[2:])) % 2", "def tUub(WhY1):\n return sum(WhY1) % 2", "def tUub(exwG):\n if exwG % 2 == 0:\n XP5J = 1\n else:\n XP5J = -1\n return XP5J", "def tUub(XP5J):\n eHNT = dict(zip(sorted(XP5J), XP5J))\n PwWw, T0dk = (se...
[ "0.7187931", "0.69241786", "0.6648208", "0.6545556", "0.64169145", "0.6374655", "0.6301056", "0.6256405", "0.62306535", "0.6174822", "0.6148865", "0.6128668", "0.58308756", "0.5809784", "0.58013695", "0.5790299", "0.56048834", "0.5584757", "0.5532079", "0.5458318", "0.544604"...
0.6273525
7
r"""`Demographic parity`_ compares the positivity rates between all groups. If more than two groups are present, the disparity between the lowest and highest group is reported. The lowest positivity rate is divided by the highest, so a lower value means more discrimination against the numerator. In the results this is ...
def gG3V(aTLP: torch.Tensor, moMn: torch.Tensor, gwAu: float=0.5, Ngtq: Optional[int]=None, rUrJ: bool=True) -> cuzp[str, ht2j.Tensor]: FmZA = ht2j.unique(moMn).shape[0] pan_ = ht2j.zeros(aTLP.shape) r_lD = fOYL(aTLP, pan_, moMn, FmZA, gwAu, Ngtq, rUrJ) zbJc = jxck(r_lD) return wYqQ(**zbJc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KeZg(Wxnj, G1Hx, yzQ0=1):\n U_V8, iTlw, BWXx, DVjA, _5Am, Zo4u = rdke(Wxnj, G1Hx, yzQ0)\n exRY = N5Pj.get_current_price(Wxnj)\n try:\n famn = exRY / U_V8 * 100\n except:\n famn = None\n return (famn, exRY, U_V8, iTlw, BWXx, DVjA, _5Am, Zo4u)", "def KeZg(YKHO, Zr75, i164):\n yM...
[ "0.554045", "0.52919245", "0.5226246", "0.50096136", "0.4976829", "0.49624375", "0.48357052", "0.4765742", "0.47568828", "0.47441325", "0.47412166", "0.46955025", "0.4657417", "0.45577863", "0.45471704", "0.45434585", "0.45323294", "0.45277312", "0.4504757", "0.44954553", "0....
0.55969113
0
Make a zappos dataset class
def PK3w(XEri, tk5Y, XSj5, jOFR): NkkI = Ymkf.Normalize(mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225]) __n6 = t_Fz(tk5Y, XSj5, jOFR, XEri, transform=Ymkf.Compose([Ymkf.Scale(112), Ymkf.CenterCrop(112), Ymkf.ToTensor(), NkkI])) return __n6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6", "def FIMM(YKHO, __n6: Dataset):\n YKHO.dataset = __n6", "def oUGu(y7GR):\n zQKy = rYeY(y7GR)\n __n6 = zQKy.load_data()\n return __n6", "def FIMM(YKHO, __n6):\n YKHO._dataset = __n6", "def OUJ5():\n MJH2...
[ "0.71085876", "0.7048227", "0.70216566", "0.67754894", "0.67157274", "0.66751313", "0.6652703", "0.66443014", "0.6606609", "0.6605893", "0.6545907", "0.65374416", "0.65353817", "0.6522868", "0.6437898", "0.64139396", "0.64111483", "0.63846666", "0.6376421", "0.63296235", "0.6...
0.69864786
3
The address this socket is connected to. For TCP streams, this is a tuple of (IP address, port). For UNIX socket streams, this is the path to the socket.
def rqBh(YKHO) -> PirK: from anyio._core._sockets import convert_ipv6_sockaddr return convert_ipv6_sockaddr(YKHO.raw_socket.getpeername())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAkW(YKHO):\n if YKHO._addr == None:\n return YKHO._socket.getpeername()\n return YKHO._addr", "def vAkW(YKHO):\n return tuple('localhost', YKHO._port)", "def vAkW(YKHO):\n return tuple('localhost', YKHO._port)", "def UTX6(YKHO):\n return '%s:%s' % (YKHO.ip, YKHO.port)", "def GGmw...
[ "0.7438824", "0.73247105", "0.73247105", "0.70936626", "0.7054064", "0.7049155", "0.7041599", "0.69537586", "0.68976885", "0.68746656", "0.68202794", "0.67735016", "0.6748753", "0.6745112", "0.67268467", "0.67204195", "0.66942865", "0.6680643", "0.6656147", "0.6627671", "0.65...
0.67137545
16
The address this socket is connected to.
def rqBh(YKHO) -> W8s0: from anyio._core._sockets import convert_ipv6_sockaddr return convert_ipv6_sockaddr(YKHO.raw_socket.getpeername())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vAkW(YKHO):\n if YKHO._addr == None:\n return YKHO._socket.getpeername()\n return YKHO._addr", "def rRzo(YKHO):\n return YKHO._addr", "def UTX6(YKHO):\n return YKHO.__ip", "def vAkW(YKHO):\n return YKHO._addr", "def vAkW(YKHO):\n return YKHO._addr", "def Kz4A(YKHO):\n retu...
[ "0.85109526", "0.80972004", "0.79191345", "0.7725311", "0.7725311", "0.7706213", "0.7631237", "0.7600099", "0.7514334", "0.74700177", "0.74627995", "0.74423015", "0.7425132", "0.73893356", "0.73893356", "0.7376573", "0.73659176", "0.73336077", "0.72922766", "0.7274585", "0.72...
0.7070197
35
overwrites forward function from "utils.py" specific for an rnn model, as hidden and output values must be tracked. Simply calling model.forward(X) will fail with dropout and linear layers added to recurrent layers
def pftB(YKHO, EcVT): uQAW = True for gEmA, vm1a in YKHO.model.named_children(): if 'recurrent' in gEmA: if uQAW: fuBA, Zode = vm1a(EcVT) else: fuBA, Zode = vm1a(fuBA) elif 'dropout' in gEmA: fuBA = vm1a(fuBA) elif 'line...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, ypOY: Tensor, Zode: Optional[HiddenDict]=None, **q8Qv: Dict) -> o8Du:\n ...", "def KVH6(YKHO, dqxq):\n for gEmA in YKHO.layers:\n BF4L = gEmA.forward(dqxq)\n dqxq = BF4L\n YKHO.temp = dqxq\n return BF4L", "def KVH6(YKHO, WKvO):\n WKvO, YKHO.hidden = YKHO.gru(WKvO, YK...
[ "0.7339656", "0.70745814", "0.7058552", "0.7038954", "0.6973463", "0.6951654", "0.6931969", "0.6902181", "0.6879351", "0.6875522", "0.6860826", "0.68586874", "0.68329686", "0.67970353", "0.67915267", "0.6788944", "0.67716974", "0.6756703", "0.6735382", "0.67349607", "0.672955...
0.758289
0
numerically stable log_softmax implementation that prevents overflow
def asmm(WKvO): jDK_ = len(WKvO.shape) - 1 r8hN = WKvO.max(dim=jDK_, keepdim=True)[0] return WKvO - r8hN - ht2j.log(ht2j.exp(WKvO - r8hN).sum(dim=jDK_, keepdim=True))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YH__(WKvO):\n OuhA = WKvO - oyIN.max(WKvO)\n nwEM = oyIN.exp(OuhA)\n return nwEM / oyIN.sum(nwEM)", "def h_oU(input, tpio, LpaZ=False):\n return o8DQ.apply('LogSoftmax', input.device, [input], outputs=[input if LpaZ else None], axis=tpio)", "def h_oU(WKvO: jnp.DeviceArray, *, jDK_: int=0) -> oL...
[ "0.77298", "0.77168965", "0.77082556", "0.76411545", "0.76040596", "0.7375868", "0.7343657", "0.7335469", "0.7334381", "0.7319122", "0.7316114", "0.7291785", "0.72785354", "0.72421026", "0.7237872", "0.7236452", "0.7203207", "0.7203207", "0.7200916", "0.719867", "0.7190057", ...
0.69582486
96
weight_variable generates a weight variable of a given shape.
def E9N2(ROpF): RqgG = ZylS.truncated_normal(ROpF, stddev=0.1) return ZylS.Variable(RqgG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev=0.1)\n return ZylS.get_variable('weight', initializer=RqgG, regularizer=ZylS.nn.l2_loss)", "def E9N2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF)\n return ZylS.Variable(RqgG)", "def JJi2(ROpF):\n RqgG = ZylS.truncated_normal(ROpF, stddev...
[ "0.82682097", "0.8235508", "0.8158841", "0.8156995", "0.81399417", "0.81399417", "0.81399417", "0.8137802", "0.812119", "0.80655366", "0.7983301", "0.79793143", "0.79584336", "0.79206425", "0.777795", "0.7553387", "0.7533732", "0.75042933", "0.73055935", "0.7289978", "0.72055...
0.81348443
12
Construct an empty occupancy grid.
def FIMM(YKHO, WCTB=0.0, bcFp=0.0, B1Wx=M2T1, TVTK=30, H2v2=30): YKHO.origin_x = WCTB YKHO.origin_y = bcFp YKHO.resolution = B1Wx YKHO.width = TVTK / B1Wx YKHO.height = H2v2 / B1Wx YKHO.grid = 0.5 * oyIN.ones((H2v2 / B1Wx, TVTK / B1Wx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XO9u(TVTK, H2v2):\n return [[None] * TVTK for bGrB in range(H2v2)]", "def FIMM(YKHO, IDGo, v5wB):\n YKHO._grid_height = IDGo\n YKHO._grid_width = v5wB\n YKHO._cells = [[KAvf for L9B9 in range(YKHO._grid_width)] for Uabx in range(YKHO._grid_height)]", "def TSjW(YKHO):\n Cs6h = []\n for YRb...
[ "0.7382614", "0.72059935", "0.6904236", "0.68017924", "0.67940444", "0.678721", "0.6727695", "0.66969347", "0.6674715", "0.66708755", "0.6658825", "0.6632146", "0.66313326", "0.661717", "0.6565707", "0.65415424", "0.6514893", "0.65148395", "0.6480044", "0.64799976", "0.647310...
0.0
-1
Gets the id of this BundleVersionMetadata. The id of this version of the extension bundle
def id(YKHO): return YKHO._id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJhm(YKHO):\n return YKHO._bundle_id", "def yJhm(YKHO) -> str:\n return qe4Y.get(YKHO, 'bundle_id')", "def yJhm(YKHO) -> str:\n return qe4Y.get(YKHO, 'bundle_id')", "def mljj(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'version_id')", "def sPKN(YKHO):\n return YKHO._app_vers...
[ "0.7120391", "0.70424384", "0.70424384", "0.7007643", "0.6944954", "0.6914494", "0.687606", "0.66998047", "0.6617725", "0.6589261", "0.6538833", "0.65280694", "0.648461", "0.6457281", "0.6457281", "0.6457281", "0.64207727", "0.64197046", "0.64197046", "0.64118147", "0.6407731...
0.0
-1
Sets the id of this BundleVersionMetadata. The id of this version of the extension bundle
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.data['id'] = id", "def V_9M(YKHO, id):\n YKHO.__id = id", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def id(YKHO, _eu6):\n YKHO.metadata['id'] = _eu6", "def V_9M(YKHO, id):\n if id is not None and (not isinstance(id,...
[ "0.6576982", "0.65335536", "0.6415786", "0.6357636", "0.63565326", "0.6258344", "0.6257857", "0.61367863", "0.6131152", "0.6109296", "0.61040723", "0.61040723", "0.61040723", "0.61040723", "0.61040723", "0.61040723", "0.60897905", "0.60897905", "0.60897905", "0.60897905", "0....
0.0
-1
Gets the bucket_id of this BundleVersionMetadata. The id of the bucket the extension bundle belongs to
def cMrz(YKHO): return YKHO._bucket_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7rj(YKHO) -> str:\n return YKHO._values.get('bucket_name')", "def WE7e(YKHO) -> 'IBucket':\n return YKHO._values.get('bucket')", "def l7rj(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketName')", "def l7rj(YKHO) -> str:\n return HEOD.get(YKHO, 'bucketName')", "def WE7e(YKHO):\n return YKHO...
[ "0.6582187", "0.65716374", "0.6492747", "0.6492747", "0.649047", "0.64158034", "0.64158034", "0.63025737", "0.63025737", "0.6295716", "0.62550527", "0.62049043", "0.61671174", "0.6165583", "0.6150865", "0.6150865", "0.61453617", "0.61453617", "0.6145263", "0.61047006", "0.606...
0.82620203
0
Gets the group_id of this BundleVersionMetadata.
def hE03(YKHO): return YKHO._group_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yvPJ(YKHO):\n return YKHO._get_attribute('groupId')", "def hE03(YKHO):\n return YKHO._id", "def sv_3(YKHO):\n return YKHO._group_identifier", "def hE03(YKHO) -> int:\n return YKHO._group_id", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(YKHO) -> str:\n ret...
[ "0.7758553", "0.7723982", "0.7666234", "0.7615398", "0.7591658", "0.7591658", "0.7533234", "0.74919957", "0.741769", "0.7393036", "0.7111249", "0.7107687", "0.6964118", "0.6964118", "0.6964118", "0.69534075", "0.69534075", "0.69534075", "0.6921472", "0.686988", "0.68666196", ...
0.7808255
1
Sets the group_id of this BundleVersionMetadata.
def hE03(YKHO, hE03): YKHO._group_id = hE03
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def scR9(YKHO, uOe2: str) -> None:\n YKHO.group = uOe2", "def scR9(YKHO, uOe2):\n YKHO._group = uOe2", "def e_JJ(YKHO, e7pw):\n r6CV.blpapi_ServiceRegistrationOptions_setGroupId(YKHO.__handle, e7pw.encode('utf-8'))", "def bEpz(YKHO, bEpz):\n YKHO._signing_group_id = bEpz", "def scR9(YKHO, uOe2)...
[ "0.73525274", "0.7327102", "0.7205855", "0.7085071", "0.69900453", "0.68731725", "0.68365735", "0.68082154", "0.67935544", "0.67935544", "0.67935544", "0.6793312", "0.67711645", "0.66883427", "0.65522546", "0.6487466", "0.6384826", "0.6360513", "0.627717", "0.62399834", "0.61...
0.76808155
2
Gets the version of this BundleVersionMetadata. The version of the extension bundle
def DpZH(YKHO): return YKHO._version
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO):\n return YKHO.version", "def kaPv(YKHO):\n return YKHO._version", "def kaPv(YKHO):\n return YKHO._version", "def kaPv(YKHO):\n nPrm = YKHO._get('app_version')\n return nPrm['version']", "def DpZH(YKHO):\n return YKHO.manifest['version']", "def xhfZ(YKHO, *qIxc):\n ret...
[ "0.76621723", "0.7620496", "0.7620496", "0.76146567", "0.7613883", "0.7581909", "0.75546396", "0.7546733", "0.74946123", "0.74946123", "0.74896586", "0.7465462", "0.74538153", "0.7422597", "0.7409233", "0.740479", "0.7383701", "0.7377193", "0.7346784", "0.73283184", "0.731828...
0.7108574
45
Gets the timestamp of this BundleVersionMetadata. The timestamp of the create date of this version
def E3oo(YKHO): return YKHO._timestamp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhEq(YKHO):\n return YKHO.get_signingTime()", "def OhEq(YKHO):\n return YKHO.getThisUpdate()", "def _LRs(YKHO):\n return YKHO._create_ts", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "def OhEq(YKHO) -> str:\n return qe4Y.get(YKHO, 'creation_timestamp')", "de...
[ "0.7803785", "0.77930236", "0.76959574", "0.7683748", "0.7683748", "0.7683748", "0.7445849", "0.73648757", "0.73022527", "0.72013736", "0.712413", "0.70924157", "0.70520025", "0.7033243", "0.7030247", "0.70198166", "0.7016662", "0.70090926", "0.69851446", "0.69499886", "0.691...
0.6926132
25
Gets the author of this BundleVersionMetadata. The identity that created this version
def taDc(YKHO): return YKHO._author
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def taDc(YKHO):\n return YKHO._changeset.get('author', None)", "def DmH2(YKHO):\n return YKHO.author", "def DmH2(YKHO):\n return YKHO.author", "def taDc(YKHO):\n return YKHO._data.get('author', None)", "def taDc(YKHO) -> str:\n return qe4Y.get(YKHO, 'author')", "def taDc(YKHO) -> str:\n ...
[ "0.7716698", "0.756853", "0.756853", "0.75560224", "0.7537357", "0.7504783", "0.7504783", "0.7493765", "0.74896353", "0.74642426", "0.7373546", "0.7357944", "0.70853734", "0.6927217", "0.6898083", "0.68740076", "0.68216866", "0.6815465", "0.6724321", "0.6642525", "0.65869826"...
0.7598273
2
Gets the description of this BundleVersionMetadata. The description for this version
def JBZA(YKHO): return YKHO._description
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _DcP(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'version_description')", "def _DcP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'version_description')", "def jED6(Emd4):\n return BtDU + '\\n'", "def t5do(YKHO):\n return YKHO._java_ref.getDescription()", "def KUG7(YK...
[ "0.7872758", "0.73547363", "0.69375986", "0.69135505", "0.6883567", "0.684535", "0.68289703", "0.680829", "0.6791155", "0.6784457", "0.67523265", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.67376363", "0.6...
0.66209525
94
Sets the description of this BundleVersionMetadata. The description for this version
def JBZA(YKHO, JBZA): YKHO._description = JBZA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.__description = JBZA", "def AqxA(YKHO, QoB4: str) -> None:\n YKHO.metadata.data['description'] = QoB4", "def AqxA(YKHO, JBZA):\n YKHO._description = JBZA", "def AqxA(YKHO, JBZA):\n YKHO.description = JBZA", "...
[ "0.72506404", "0.7244477", "0.7214894", "0.7175276", "0.7162924", "0.6990073", "0.6990073", "0.6990073", "0.6990073", "0.6976215", "0.689171", "0.689171", "0.689171", "0.689171", "0.68130755", "0.67479634", "0.67006844", "0.66990304", "0.66787666", "0.66744757", "0.6602969", ...
0.697067
31
Gets the content_size of this BundleVersionMetadata. The size of the binary content for this version in bytes
def fUCU(YKHO): return YKHO._content_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a81G(YKHO):\n return YKHO._content_length", "def NElW(YKHO):\n return DEza(200, 200)", "def sf7A(YKHO) -> int:\n return qe4Y.get(YKHO, 'size_bytes')", "def jiw9(YKHO):\n if YKHO.file_meta[:2] == b'bp':\n ffFw = uYJI.load(aKaX(YKHO.file_meta))\n zNig = ffFw['$objects'][1]['Size']...
[ "0.66650385", "0.6627916", "0.6482155", "0.6435267", "0.6376775", "0.63500005", "0.6260639", "0.6243745", "0.6243745", "0.6228458", "0.6228458", "0.6228458", "0.62130034", "0.62130034", "0.6202926", "0.6195624", "0.61741686", "0.6172316", "0.61631334", "0.6145135", "0.6123876...
0.76230836
0
Sets the content_size of this BundleVersionMetadata. The size of the binary content for this version in bytes
def fUCU(YKHO, fUCU): if fUCU is None: raise ValueError('Invalid value for `content_size`, must not be `None`') if fUCU is not None and fUCU < 0: raise ValueError('Invalid value for `content_size`, must be a value greater than or equal to `0`') YKHO._content_size = fUCU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a81G(YKHO, a81G):\n YKHO._content_length = a81G", "def fUCU(YKHO):\n return YKHO._content_size", "def gyWJ(YKHO, zNig):\n YKHO.__size = zNig", "def zNig(YKHO, zNig):\n YKHO._size = zNig", "def zNig(YKHO, zNig):\n YKHO._size = zNig", "def zNig(YKHO, zNig):\n YKHO._size = zNig", "de...
[ "0.602021", "0.580481", "0.5607178", "0.5441315", "0.5438872", "0.5438872", "0.5438872", "0.5438872", "0.53287935", "0.5216796", "0.5211139", "0.5209023", "0.51987535", "0.5167334", "0.5074894", "0.5074894", "0.50654227", "0.50654227", "0.5060574", "0.50214547", "0.5014738", ...
0.72237986
0