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
Return the state attributes of the sensor.
def TzCU(YKHO) -> dict[str, ImMB]: return {lQ8P: round(YKHO.probability, 2), g3XH: YKHO._probability_threshold, D9QW: list({rNYq.entity_id for rNYq in YKHO.current_observations.values() if rNYq is not None and rNYq.entity_id is not None and (rNYq.observed is not None)}), TVY8: [rNYq.to_dict() for rNYq in YKHO.curre...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO):\n return YKHO.rest.data", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO.data", "def R1i3(YKHO):\n ...
[ "0.84223557", "0.8348435", "0.8348435", "0.8348158", "0.83429486", "0.8255979", "0.8250938", "0.8250938", "0.8250938", "0.8243502", "0.8243502", "0.8243502", "0.8243502", "0.8168779", "0.8168779", "0.8168779", "0.8168779", "0.8168779", "0.8166157", "0.8166157", "0.8145351", ...
0.0
-1
Plot Confusion Matrix given true and predicted labels.
def RO_I(Emd4, Y8eF, aMgO, *, Crrw=None, xF06=None, NkkI=None, t9iL=None, Dpth=True, hxHq='horizontal', Lba0=None, iMGt='viridis', aNZO=None, Ew8X=True, lNOP=None, GQuu=None): QGiq(f'{Emd4.__name__}.from_predictions') if t9iL is None: if Crrw is None: t9iL = OrFa(Y8eF, aMgO) else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LwSz(Crrw, N6Z1, tGDF):\n Bcwd = N3vq.metrics.confusion_matrix(Crrw, N6Z1, labels=range(len(tGDF)))\n jTqs = len(tGDF)\n JI1i = QrM1.figure(figsize=(jTqs, jTqs))\n QrM1.imshow(Bcwd, interpolation='nearest', cmap=QrM1.cm.Blues)\n QrM1.title('Confusion matrix')\n QrM1.colorbar()\n wIWT = oyI...
[ "0.84005016", "0.8308645", "0.82892823", "0.8158242", "0.81526786", "0.8152497", "0.8145321", "0.81224066", "0.81029415", "0.8101684", "0.8073788", "0.80705315", "0.8070283", "0.806919", "0.80651975", "0.80529505", "0.80517095", "0.8050169", "0.8050169", "0.8045278", "0.80434...
0.0
-1
Homogenize the input value for easy and efficient normalization. value can be a scalar or sequence. Returns result, is_scalar, where result is a masked array matching value. Float dtypes are preserved; integer types with two bytes or smaller are converted to np.float32, and larger types are converted to np.float64. Pre...
def ED_u(BWXx): OjXW = not YIAH.iterable(BWXx) if OjXW: BWXx = [BWXx] yDqo = oyIN.min_scalar_type(BWXx) if oyIN.issubdtype(yDqo, oyIN.integer) or yDqo.type is oyIN.bool_: yDqo = oyIN.promote_types(yDqo, oyIN.float32) ZHfW = oyIN.ma.getmask(BWXx) nPrm = oyIN.asarray(oyIN.ma.getdat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I_Hr(BWXx):\n if isinstance(BWXx, oyIN.ndarray):\n for VnMA, VABd in iypb.items():\n if oyIN.issubdtype(BWXx.dtype, VnMA):\n return BWXx.astype(VABd)\n return BWXx", "def SZFh(Emd4, BWXx: ArrayLike) -> uLKX[oyIN.ndarray, float]:\n BWXx = oyIN.atleast_1d(oyIN.asarray(...
[ "0.6519668", "0.6246896", "0.61450773", "0.6143973", "0.5941342", "0.5908216", "0.5907634", "0.58597696", "0.5847975", "0.57815486", "0.5674367", "0.5669554", "0.5634884", "0.5633837", "0.56069744", "0.56050366", "0.56005555", "0.5597361", "0.5585732", "0.5583539", "0.5557384...
0.6801144
0
Normalize value data in the ``[vmin, vmax]`` interval into the ``[0.0, 1.0]`` interval and return it. clip defaults to self.clip (which defaults to False). If not already initialized, vmin and vmax are initialized using autoscale_None(value).
def nrOS(YKHO, BWXx, vJPk=None): if vJPk is None: vJPk = YKHO.clip Aofo, OjXW = YKHO.process_value(BWXx) YKHO.autoscale_None(Aofo) (MynD,), bGrB = YKHO.process_value(YKHO.vmin) (n4wC,), bGrB = YKHO.process_value(YKHO.vmax) if MynD == n4wC: Aofo.fill(0) elif MynD > n4wC: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def yomw(hkxX, MynD=None, n4wC=None):\n if MynD is None:\n MynD = oyIN.min(oyIN.ma.fix_invalid(hkxX))\n if n4wC is None:\n n4wC = oyIN.max(oyIN.ma.fix_invalid(hkxX))\n if MynD == n4wC:...
[ "0.7433807", "0.7294396", "0.71286124", "0.70806885", "0.70562536", "0.70169747", "0.6988515", "0.6982185", "0.69394124", "0.69269", "0.6925332", "0.6924246", "0.6879623", "0.68497896", "0.6789471", "0.67804706", "0.6779927", "0.6771743", "0.6727102", "0.6725695", "0.67200774...
0.77307224
0
Return the world size.
def OZRt(YKHO) -> lJMi: if YKHO._world is None: return (0, 0) return (YKHO._world.get_width(), YKHO._world.get_height())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OZRt() -> int:\n return zaAz().world_size", "def aDYX(YKHO) -> int:\n return YKHO._world_size", "def OZRt():\n if not pImw.is_available() or not pImw.is_initialized():\n return 1\n return pImw.get_world_size()", "def Qham() -> int:\n return zaAz().local_world_size", "def jiw9():\n...
[ "0.91303086", "0.90996516", "0.8587156", "0.8498776", "0.81501085", "0.81022674", "0.7935064", "0.77333814", "0.76924604", "0.7562706", "0.72741383", "0.7155524", "0.70958704", "0.70941585", "0.7040299", "0.6948447", "0.68825954", "0.6876585", "0.68731004", "0.6865403", "0.68...
0.8565983
3
Add a condition to the where clause.
def vnV8(YKHO, UNaz, o88u=()): YKHO._where_clauses.append(UNaz) YKHO._where_params.extend(o88u)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def soTl(YKHO, XEri):\n YKHO.sql += ' WHERE ' + XEri", "def vwsf(YKHO, VN2L):\n YKHO.where = VN2L\n return YKHO", "def sIPV(YKHO, woks):\n YKHO._where = woks\n return YKHO", "def rcfv(YKHO):\n return ' AND '.join([eHNT.cql for eHNT in YKHO._where])", "def qJWj(YKHO, ffjO):\n YKHO.__whe...
[ "0.7655206", "0.73495466", "0.7219276", "0.713256", "0.7117913", "0.709079", "0.70445395", "0.70402145", "0.69467294", "0.6946701", "0.6946701", "0.6926408", "0.68838286", "0.68420196", "0.67866004", "0.67448515", "0.6709304", "0.66015065", "0.6587526", "0.6579009", "0.644218...
0.74521065
1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z, x0eS, CjKC): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() if x0eS == 'all': SD4L = jQ3Z['month'].mode()[0] aWvI = X_bn[SD4L - 1].title() print('The most common month is: {}'.format(aWvI)) if CjKC == 'all': xt_g = jQ3Z['Da...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() bTuL = jQ3Z['Start Station'].mode()[0] print('The most commonly used start station is: {}'.format(bTuL)) Nj0t = jQ3Z['End Station'].mode()[0] print('The most commonly used end station is: {}'.format...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665077", "0.7626045", "0.76101774", "0.75846785", "0.7575866", "0.7566431", "0.755723", "0.7537712", "0.7529112", "0.7501894", "0.74994457", "0.7496024", "0.7486785", "0.7483556", "0.7475163", "0.7472587", "0.7437267", "0.7436243", "0.74326277", "0.74276906", "0.7426641",...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() bJiw = oyIN.sum(jQ3Z['Trip Duration']) print('Total travel time is: {}'.format(bJiw)) RB_u = oyIN.mean(jQ3Z['Trip Duration']) print('Average travel time is: {}'.format(RB_u)) print('\nThis took %s seconds.' % (ITS7....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
If Use Employer as Related Partner is ticked, change Related Partner according to the new Employer.
def LPJq(YKHO): if YKHO.set_default_related_partner: YKHO.partner_id = YKHO.employer_id and YKHO.employer_id.id or False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Szg6(YKHO, sn6f):\n YKHO.partners.append(sn6f)", "def CVcq(YKHO) -> TjLA:\n if YKHO.get_department_leader() is None:\n return YKHO.get_organization_head()\n else:\n QdlN = YKHO.get_department_name()\n MsNh = YKHO.get_department_leader().become_employee()\n moNN = YKHO.bec...
[ "0.64377934", "0.6022894", "0.5887973", "0.5785002", "0.5773066", "0.56898344", "0.5654071", "0.5639493", "0.5632687", "0.55662036", "0.5519014", "0.5507345", "0.5462971", "0.54612184", "0.5434905", "0.54326195", "0.5429264", "0.54282963", "0.5399197", "0.538283", "0.5373859"...
0.7382173
0
The S3 bucket name to store the logs in.
def WE7e(YKHO) -> str: return qe4Y.get(YKHO, 'bucket')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFqg(YKHO) -> str:\n return qe4Y.get(YKHO, 's3_bucket_name')", "def SsPQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'logs_bucket')", "def l7rj(YKHO):\n return YKHO.conf['aws']['bucket_name']", "def PbOt(YKHO):\n return YKHO._s3Bucket.s3_name", "def cFqg(YKHO) -> qe4Y.Input[str]:\n return qe4Y...
[ "0.8259651", "0.8226859", "0.8078385", "0.80645967", "0.7962354", "0.79236704", "0.7887474", "0.7823134", "0.7823134", "0.7823134", "0.7793064", "0.7648084", "0.75893474", "0.7575079", "0.75176644", "0.7481499", "0.7481499", "0.7481499", "0.7481499", "0.7481499", "0.7481499",...
0.72618675
43
The S3 bucket prefix. Logs are stored in the root if not configured.
def S74C(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'bucket_prefix')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VV6r(YKHO):\n return YKHO._s3_prefix", "def SsPQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'logs_bucket')", "def TkSh(WE7e, y0cW):\n return f's3://{WE7e}/{y0cW}'", "def h47C(YKHO):\n return YKHO.path.split('s3://')[-1].split('/')[0]", "def PbOt(YKHO):\n return YKHO._s3Bucket.s3_name", "def...
[ "0.78593415", "0.74284416", "0.7270313", "0.71973276", "0.7118475", "0.7082438", "0.70811015", "0.68969804", "0.6852947", "0.67875594", "0.67875594", "0.67875594", "0.67875594", "0.67566", "0.6696592", "0.6674491", "0.6671236", "0.66299725", "0.6626718", "0.6624492", "0.65897...
0.72930765
2
The protocol to use to the instance. Valid values are `HTTP`, `HTTPS`, `TCP`, or `SSL`
def g8Bv(YKHO) -> str: return qe4Y.get(YKHO, 'instance_protocol')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iquo(YKHO):\n if YKHO.http_protocol == 'http':\n return 'http:/'\n else:\n return 'https:/'", "def YlwY(YKHO):\n return 'https' if YKHO._use_ssl else 'http'", "def F9yi(YKHO):\n return YKHO.options['protocol']", "def iquo(YKHO) -> str:\n return qe4Y.get(YKHO, 'protocol')", ...
[ "0.84052217", "0.8307645", "0.8027811", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7901226", "0.7728028", "0.7683326", "0.7683326", "0.7683326", "0.7683326", "0.7683326", "0.7683326", ...
0.7325769
36
The protocol to listen on. Valid values are `HTTP`, `HTTPS`, `TCP`, or `SSL`
def BqPb(YKHO) -> str: return qe4Y.get(YKHO, 'lb_protocol')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9yi(YKHO):\n return YKHO.options['protocol']", "def YlwY(YKHO):\n return 'https' if YKHO._use_ssl else 'http'", "def iquo(YKHO):\n if YKHO.http_protocol == 'http':\n return 'http:/'\n else:\n return 'https:/'", "def iquo(YKHO) -> int:\n return qe4Y.get(YKHO, 'protocol')", ...
[ "0.73392624", "0.72916037", "0.714579", "0.7038482", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.7011192", "0.6885016", "0.6885016", "0.6885016", "0.6885016", "0.6885016", "0.6885016", ...
0.6808133
22
The ARN of an SSL certificate you have uploaded to AWS IAM. Note ECDSAspecific restrictions below. Only valid when `lb_protocol` is either HTTPS or SSL
def wBpE(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'ssl_certificate_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tZ3A(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'certificate_arn')", "def tZ3A(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'certificate_arn')", "def tZ3A(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'certificate_arn')", "def tZ3A(YKHO) -> h8nf[qe4Y.Input[str]]...
[ "0.6391439", "0.6391439", "0.6391439", "0.6391439", "0.6315882", "0.62274784", "0.6023649", "0.5956284", "0.59360063", "0.5786093", "0.5712068", "0.5712068", "0.55513054", "0.55513054", "0.54731005", "0.52923566", "0.5268636", "0.52232915", "0.52223814", "0.51999193", "0.5199...
0.547071
15
Given a list of criteria names, returns a list of all there criteria (as `Criterion`'s). If a criterion name is unkown, the system will exit the experiment.
def OFJr(f0Zt): ppeA = [] for L631 in f0Zt: if L631 == 'Twoing': ppeA.append(wjLZ.Twoing()) elif L631 == 'GW Squared Gini': ppeA.append(wjLZ.GWSquaredGini()) elif L631 == 'GW Chi Square': ppeA.append(wjLZ.GWChiSquare()) elif L631 == 'LS Squared...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OFJr(f0Zt):\n ppeA = []\n nV02 = False\n for L631 in f0Zt:\n if L631 == 'Gini Gain':\n ppeA.append(wjLZ.GiniGain())\n elif L631 == 'Twoing':\n ppeA.append(wjLZ.Twoing())\n elif L631 == 'Gain Ratio':\n ppeA.append(wjLZ.GainRatio())\n elif L63...
[ "0.78827274", "0.5863261", "0.5717946", "0.5707186", "0.5705162", "0.567276", "0.5581224", "0.5581224", "0.5561049", "0.5547227", "0.55436325", "0.54936284", "0.54753876", "0.54658294", "0.5464469", "0.5416013", "0.5389773", "0.53575057", "0.5352444", "0.53433543", "0.5323353...
0.8238266
0
Calculate ROC AUC score.
def Pfft(YKHO, Y8eF, OU5i): Y8eF = Kt_s.as_tensor_variable(Y8eF) OU5i = Kt_s.as_tensor_variable(OU5i) hlel = [Kt_s.vector(name=YKHO.name, dtype=GPtr.floatX)] return FdIJ.Apply(YKHO, [Y8eF, OU5i], hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
Calculate ROC AUC score.
def JE1Y(YKHO, Q6kx, g4y1, NjJi): if Qq_d is None: raise RuntimeError('Could not import from sklearn.') Y8eF, OU5i = g4y1 try: B4ss = Qq_d(Y8eF, OU5i) except ValueError: B4ss = oyIN.nan NjJi[0][0] = e89i._asarray(B4ss, dtype=GPtr.floatX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
Calculate ROC AUC score.
def Pfft(YKHO, Y8eF, OU5i): Y8eF = Kt_s.as_tensor_variable(Y8eF) OU5i = Kt_s.as_tensor_variable(OU5i) hlel = [Kt_s.vector(name=YKHO.name, dtype=GPtr.floatX)] return FdIJ.Apply(YKHO, [Y8eF, OU5i], hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.8516915", "0.80856156", "0.80856156", "0.800666", "0.78223", "0.7718643", "0.76886284", "0.7619795", "0.7596857", "0.75686544", "0.75279343", "0.751326", "0.7493098", "0.7426017", "0.7408575", "0.7392616", "0.7390666", "0.73112446", "0.7292722", "0.72725683", "0.7238578", ...
0.0
-1
Calculate ROC AUC score.
def JE1Y(YKHO, Q6kx, g4y1, NjJi): if Qq_d is None: raise RuntimeError('Could not import from sklearn.') Y8eF, OU5i = g4y1 print(Y8eF.shape) Y8eF = oyIN.argmax(Y8eF, axis=1) OU5i = oyIN.argmax(OU5i, axis=1) try: t16z = oyIN.sum(Y8eF[OU5i == 1] == 1) * 1.0 r4kf = oyIN.sum(Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
Calculate ROC AUC score.
def Pfft(YKHO, Y8eF, OU5i): Y8eF = Kt_s.as_tensor_variable(Y8eF) OU5i = Kt_s.as_tensor_variable(OU5i) hlel = [Kt_s.vector(name=YKHO.name, dtype=GPtr.floatX)] return FdIJ.Apply(YKHO, [Y8eF, OU5i], hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
Calculate ROC AUC score.
def JE1Y(YKHO, Q6kx, g4y1, NjJi): if Qq_d is None: raise RuntimeError('Could not import from sklearn.') Y8eF, OU5i = g4y1 Y8eF = oyIN.argmax(Y8eF, axis=1) OU5i = oyIN.argmax(OU5i, axis=1) try: t16z = oyIN.sum(Y8eF[OU5i == 1] == 1) * 1.0 XVS3 = oyIN.sum(Y8eF[OU5i == 0] == 1) *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
Calculate ROC AUC score.
def Pfft(YKHO, Y8eF, OU5i): Y8eF = Kt_s.as_tensor_variable(Y8eF) OU5i = Kt_s.as_tensor_variable(OU5i) hlel = [Kt_s.vector(name=YKHO.name, dtype=GPtr.floatX)] return FdIJ.Apply(YKHO, [Y8eF, OU5i], hlel)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.8516915", "0.80856156", "0.80856156", "0.800666", "0.78223", "0.7718643", "0.76886284", "0.7619795", "0.7596857", "0.75686544", "0.75279343", "0.751326", "0.7493098", "0.7426017", "0.7408575", "0.7392616", "0.7390666", "0.73112446", "0.7292722", "0.72725683", "0.7238578", ...
0.0
-1
Calculate ROC AUC score.
def JE1Y(YKHO, Q6kx, g4y1, NjJi): if Qq_d is None: raise RuntimeError('Could not import from sklearn.') Y8eF, OU5i = g4y1 Y8eF = oyIN.argmax(Y8eF, axis=1) OU5i = oyIN.argmax(OU5i, axis=1) try: t16z = oyIN.sum(Y8eF[OU5i == 1] == 1) * 1.0 r4kf = oyIN.sum(Y8eF[OU5i == 1] == 0) *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzm0(YKHO):\n Crrw = oyIN.concatenate(YKHO.total_labels, axis=0)\n KeL5 = oyIN.concatenate(YKHO.total_logits, axis=0)\n nZt5 = KeL5.shape[1]\n if len(Crrw.shape) == 2:\n p1kx = Qq_d(Crrw, KeL5)\n elif KeL5.shape[1] == 2:\n p1kx = Qq_d(Crrw, KeL5[:, 1])\n else:\n p1kx = Qq...
[ "0.85174596", "0.808605", "0.808605", "0.8007104", "0.7823971", "0.7720351", "0.7688699", "0.7620225", "0.7597588", "0.7569506", "0.75295246", "0.7515527", "0.7493577", "0.7427855", "0.7410521", "0.7393565", "0.73912746", "0.7312839", "0.72949904", "0.72738874", "0.7239801", ...
0.0
-1
build k indices for kfold.
def a4rF(LVAh, sSDk, yokr): gqUV = LVAh.shape[0] VOlW = int(gqUV / sSDk) oyIN.random.seed(yokr) _0VL = oyIN.random.permutation(gqUV) a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)] return oyIN.array(a_4G)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4rF(LVAh, sSDk, yokr):\n \"\"\"build k indices for k-fold.\"\"\"\n gqUV = LVAh.shape[0]\n VOlW = int(gqUV / sSDk)\n oyIN.random.seed(yokr)\n _0VL = oyIN.random.permutation(gqUV)\n a_4G = [_0VL[G1Hx * VOlW:(G1Hx + 1) * VOlW] for G1Hx in range(sSDk)]\n return oyIN.array(a_4G)", "def a4rF(...
[ "0.8147923", "0.7920322", "0.78636", "0.78578305", "0.78578305", "0.7852471", "0.7851632", "0.7820169", "0.7806145", "0.73644537", "0.73370546", "0.7038534", "0.69905734", "0.6826553", "0.67935085", "0.6787416", "0.6763014", "0.6755921", "0.67309886", "0.6562994", "0.6526764"...
0.7869487
6
Guesss the project version. Expect an installed version (findable with pkg_resources) or __version__ in `your_project/__init__.py`. If not found
def eBGp(KFVR): try: H80q = RkCj.get_distribution(KFVR['DF_MODULE_NAME']) return H80q.version except RkCj.DistributionNotFound: pass try: return CNDk('%s.__version__' % KFVR['DF_MODULE_NAME']) except ImportError: return '1.0.0'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sozI(bNKA: Optional[str]=None) -> str:\n if not wx3I:\n DpZH = dict()\n try:\n if bNKA is None:\n bNKA = d0Dv.lower().replace('-', '_').replace(' ', '_')\n with open(gzes(WQbV(TLI7(xAKo)), bNKA, '__version__.py')) as eHNT:\n exec(eHNT.read(),...
[ "0.77664477", "0.7332064", "0.7252081", "0.7165316", "0.715133", "0.7063878", "0.69916975", "0.6981275", "0.69586366", "0.68966115", "0.68888146", "0.68877023", "0.68777", "0.6865968", "0.6786308", "0.6781211", "0.67722714", "0.6763129", "0.67578447", "0.6748198", "0.674643",...
0.7663133
1
Accepts a UserCreate model which has role set as admin and returns a User
async def create_admin(CBIr: UserCreate) -> mv1M: SSsP = await CYTf(CBIr.email) if SSsP: raise pgG1(status_code=jGRS.HTTP_400_BAD_REQUEST, detail='User already exists') if CBIr.role != HSUm.admin: raise pgG1(status_code=jGRS.HTTP_400_BAD_REQUEST, detail='Incorrect role, expected student') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(YKHO, **B2fa):\n CBIr = YKHO.e_type.objects.create_user(**B2fa)\n return CBIr", "def lZuQ(YKHO, nPrm):\n nPrm.pop('password_confirmation')\n CBIr = mv1M.objects.create_user(**nPrm, is_admin=True, is_employed=True)\n TjLA.objects.create(user=CBIr)\n return CBIr", "def x1U3(YKHO) -> YJ...
[ "0.7181192", "0.71598285", "0.71003747", "0.6963365", "0.6861918", "0.6852624", "0.6810329", "0.67914754", "0.6754959", "0.67054504", "0.67001665", "0.66834", "0.6670953", "0.66662645", "0.6662693", "0.65945935", "0.6575106", "0.65128034", "0.65098804", "0.65098804", "0.65098...
0.7345492
0
Finds the list of products from the aws.amazon.com/products/ page.
def vZZ0(YKHO): assert YKHO.response.html is not None YKHO.content_items = YKHO._css_find('div.lb-content-item')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uQsB():\n Ldyl = aese.read_products_list()\n return (pz3A(Ldyl), 200)", "def CxaC():\n a1PO = QePW.vars.q.strip()\n if QePW.vars.q:\n vexM = NCls.product.product_name.contains(a1PO) | NCls.product.description.contains(a1PO)\n else:\n vexM = NCls.product.id > 0\n Ldyl = NCls(ve...
[ "0.7437451", "0.72450274", "0.7207051", "0.7198328", "0.71437955", "0.7089159", "0.70522046", "0.7036669", "0.7033815", "0.70252264", "0.69739366", "0.6966832", "0.6940818", "0.69302845", "0.6796773", "0.67768633", "0.6755958", "0.6729076", "0.67278236", "0.67124695", "0.6707...
0.0
-1
check if any alien has touched the bottom of the screen.
def PSQ9(C7MP, SaI9, XHmV, eQSh, Vjhr, gCuF, y1e_): VXOZ = Vjhr.get_rect() for oeTy in SaI9: if oeTy.rect.bottom >= VXOZ.bottom: GR2R(C7MP, SaI9, XHmV, eQSh, gCuF, Vjhr, y1e_) break
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMxK(YKHO):\n VXOZ = YKHO.__screen.get_rect()\n for oeTy in YKHO.__aliens.sprites():\n if oeTy.rect.bottom >= VXOZ.bottom:\n YKHO._ship_hit()\n break", "def wMxK(YKHO):\n VXOZ = YKHO.screen.get_rect()\n for oeTy in YKHO.aliens.sprites():\n if oeTy.rect.bottom >...
[ "0.84824973", "0.8407455", "0.8384877", "0.83811677", "0.83681786", "0.8274023", "0.78208816", "0.7803683", "0.77745825", "0.7643288", "0.76249635", "0.7599513", "0.74748254", "0.7439783", "0.7437371", "0.7428969", "0.74203914", "0.7417722", "0.74162424", "0.7409228", "0.7390...
0.7325748
27
Adds a new vertex into the graph.
def ohmD(YKHO, SLBp): Ty9i = Yegm(SLBp) YKHO._vertices[SLBp] = Ty9i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO, SLBp):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, SLBp=Yegm()):\n YKHO.vertices.append(SLBp)", "def ohmD(YKHO, niHF: n):\n rJkO = Yegm(niHF)\n YKHO._graph[rJkO.name] = rJkO", "def ohmD(YKHO, Ty9i):\n pass", "def ohmD(YKHO, SLBp: Vertex) -> 'Graph':\n if YKHO.__vgraph:\n...
[ "0.86859876", "0.852481", "0.84963924", "0.84816724", "0.84147954", "0.839137", "0.8371263", "0.8290998", "0.82853436", "0.82853436", "0.81912845", "0.81588817", "0.8103733", "0.80981535", "0.80563873", "0.8042109", "0.7986163", "0.7976874", "0.7967219", "0.79670215", "0.7964...
0.85759556
1
Get all the vertices of the directed Graph.
def EBww(YKHO): iXlf = list(YKHO._vertices.keys()) iXlf.sort() return iXlf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EBww(YKHO):\n hlel = []\n for H5ew in YKHO._graph.keys():\n hlel.append(H5ew)\n return hlel", "def iXlf(pNZh):\n return rrLg.vertices(pNZh)", "def EBww(YKHO):\n ts4V = YKHO.graph.vertexCount()\n return (YKHO.graph.vertex(YRbF) for YRbF in Ni9Y(0, ts4V))", "def iXlf(YKHO):\n re...
[ "0.8383468", "0.8218242", "0.81531006", "0.8059535", "0.8059535", "0.8022112", "0.8022112", "0.8022112", "0.8022112", "0.8022112", "0.8000342", "0.79160714", "0.7890072", "0.7808438", "0.7774506", "0.7734034", "0.7703132", "0.7684306", "0.7654948", "0.7646704", "0.7641258", ...
0.7257173
45
The server responds with a 401 if a patch for a pw reset is made and the current pw does not match the pw in the db
def CGvt(YKHO, WBPg, lYUQ, OXsV): jTXt = 'strongestpasswordever' CBIr = lYUQ(pw=jTXt) uGpu = OXsV.password() sVdS = YKHO.client.patch(f'api/user/{CBIr.id}', json={'current_password': 'askdjf', 'new_password': uGpu, 'confirm_password': uGpu}, headers=WBPg(CBIr)) assert sVdS.status_code == 401 '\n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XsI9(YKHO, qv1X, _hkX):\n AgdR = uPlZ(qv1X.media['resetToken'])\n if not AgdR:\n _hkX.media = {'success': False}\n return\n CBIr = mv1M(AgdR['username'])\n if not qv1X.media['newPassword']:\n raise aazL.HTTPBadRequest('400 Bad Request', 'newPassword must not be empty.')\n CB...
[ "0.7210732", "0.7001327", "0.6959089", "0.69212365", "0.68256253", "0.6822436", "0.67552745", "0.6750021", "0.67494565", "0.6654239", "0.6651666", "0.6599813", "0.659794", "0.6594038", "0.657936", "0.6555679", "0.6542442", "0.6537156", "0.65355694", "0.6517883", "0.65037245",...
0.6810599
6
Sets the postal_code of this Filter.
def kAHQ(YKHO, kAHQ): YKHO._postal_code = kAHQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F070(YKHO, nPrm):\n YKHO.postal = nPrm", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def yvWY(YKHO, yvWY):\n YKHO._billing_postal_code = yvWY", "def ZRgj(YKHO, ZRgj):\n YKHO._zip_postal_code = ZRgj", "def xb2b(YKHO, xb2b):\n YKHO._postal_address = xb2b", "def kAHQ(YKHO...
[ "0.8195113", "0.7767951", "0.7767951", "0.7554143", "0.7348553", "0.72167474", "0.7198941", "0.684571", "0.67109185", "0.67109185", "0.67109185", "0.67109185", "0.6710405", "0.6706643", "0.6514002", "0.6482143", "0.64577806", "0.64577806", "0.64577806", "0.64577806", "0.63685...
0.85267925
2
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393104", "0.8355197", "0.8295551", "0.8133039", "0.811476", "0.8100177", "0.80994433", "0.80982935", "0.80982935", "0.8093244", "0.8093244", "0.8093244", "0.8093244", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80671525", "0.80597436", "0.8057952", "0...
0.0
-1
Creates a string of a given length.
def HRRg(u54L): return ''.join((tuKI.choice(vIwR.ascii_lowercase) for WKvO in range(u54L)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MiNk(u54L):\n gLiZ = vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(u54L)))", "def zYAI(u54L):\n return ''.join(tuKI.choices(' ' + vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits, k=u54L))", "def s3r6(u54L=8):\n assert u...
[ "0.766328", "0.7581422", "0.7570391", "0.75683075", "0.7508986", "0.74482197", "0.74381924", "0.74335176", "0.74119306", "0.73738104", "0.7355387", "0.7335029", "0.73346573", "0.73346573", "0.73321384", "0.73113847", "0.7290387", "0.72857237", "0.7275461", "0.725681", "0.7255...
0.7163737
31
Test that the cookie_to_state raises exception if the input is bad
def i_KE(M7Oy, mWFP, ua7p, AJ5d): with trZe.raises(AJ5d): Gz4x(M7Oy, mWFP, ua7p)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fbgT():\n pDO4 = '27614gjkrn'\n y5OE = 'data'\n QTBn = wHLO()\n QTBn.add(pDO4, y5OE)\n HhJ2 = 'state_cookie'\n pmON = '/'\n PQqL = '2781y4hef90'\n zatQ = F0XB(QTBn, HhJ2, pmON, PQqL)\n M7Oy = zatQ.output()\n grwe = Gz4x(M7Oy, HhJ2, PQqL)\n assert grwe.get(pDO4) == y5OE", "def...
[ "0.6930296", "0.64232373", "0.6410473", "0.6352666", "0.63129604", "0.62762934", "0.61964774", "0.6031584", "0.602516", "0.59669393", "0.59296864", "0.5927964", "0.58683264", "0.58654463", "0.58543473", "0.58323187", "0.583075", "0.5824795", "0.581844", "0.58019584", "0.57997...
0.7868978
0
Converts absolute magnitudes into luminosities
def yo1d(ZnHf): return oyIN.power(10, -0.4 * ZnHf)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FAFx(N0xI):\n return -oyIN.log(N0xI) / (0.4 * oyIN.log(10))", "def ghV0(YKHO, FOSW):\n gU2a = 10 * C3eK\n return 10 ** (FOSW / -2.5) * vD0H * 4.0 * oyIN.pi * gU2a ** 2", "def yo1d(ZnHf, k3AV=None):\n if k3AV is None:\n k3AV = 0.0\n elif isinstance(k3AV, str):\n if k3AV not in O...
[ "0.7785324", "0.69087464", "0.6906833", "0.6777167", "0.65996945", "0.6493472", "0.64144146", "0.64144146", "0.64126164", "0.6411838", "0.6363917", "0.6339247", "0.63061833", "0.6291178", "0.6233292", "0.6221661", "0.61825585", "0.61332005", "0.6123105", "0.60998434", "0.6089...
0.81257915
0
Converts luminosities into absolute magnitudes
def FAFx(N0xI): return -oyIN.log(N0xI) / (0.4 * oyIN.log(10))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yo1d(ZnHf):\n return oyIN.power(10, -0.4 * ZnHf)", "def XQVr(r3_c):\n PtXs = 4.0 * epAf.pi * (10.0 * EqBn.pc_cm) ** 2.0\n HRy0 = -2.5 * XTiz.log10(r3_c / PtXs) - yyMP\n return HRy0", "def FAFx(N0xI, k3AV=None):\n if k3AV is None:\n k3AV = 0.0\n elif isinstance(k3AV, str):\n ...
[ "0.77304786", "0.71237993", "0.7087265", "0.6888124", "0.6803173", "0.66211134", "0.66006815", "0.6592171", "0.658391", "0.65817314", "0.65585786", "0.65585786", "0.64768654", "0.64696294", "0.64525974", "0.6393754", "0.6386909", "0.6377157", "0.6333252", "0.6323606", "0.6282...
0.8395451
0
Sets the amount of this DocumentPayment.
def Z5kt(YKHO, Z5kt): if YKHO.local_vars_configuration.client_side_validation and Z5kt is None: raise ValueError('Invalid value for `amount`, must not be `None`') YKHO._amount = Z5kt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def Z5kt(YKHO, Z5kt):\n YKHO._amount = Z5kt", "def...
[ "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7671868", "0.7633607", "0.7592521", "0.75592315", "0.73241913", "0.7149647", "0.70789343", ...
0.6977874
23
Sets the document_id of this DocumentPayment.
def yZn6(YKHO, yZn6): if YKHO.local_vars_configuration.client_side_validation and yZn6 is None: raise ValueError('Invalid value for `document_id`, must not be `None`') YKHO._document_id = yZn6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6: str):\n ...
[ "0.8030311", "0.8030311", "0.8030311", "0.8030311", "0.8030311", "0.75369483", "0.746357", "0.70088226", "0.67096514", "0.66616726", "0.66294825", "0.65704554", "0.64010835", "0.6336079", "0.630741", "0.630741", "0.61666685", "0.61666685", "0.60716534", "0.59964544", "0.59713...
0.74845773
6
Sets the is_overdue_fee of this DocumentPayment.
def bL1d(YKHO, bL1d): YKHO._is_overdue_fee = bL1d
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gHbl(YKHO, gHbl):\n YKHO._is_overdraft_fee = gHbl", "def mh02(YKHO, mh02):\n YKHO._days_overdue = mh02", "def A3Zc(YKHO, A3Zc):\n YKHO._overdue = A3Zc", "def vCMx(YKHO, vCMx):\n YKHO._is_fee = vCMx", "def Gjmh(YKHO, _c1T=None):\n if _c1T == None:\n _c1T = qcWV.date.today()\n mh...
[ "0.7429293", "0.7187121", "0.7143329", "0.608728", "0.5911426", "0.5860193", "0.5853973", "0.5853973", "0.58405626", "0.57438713", "0.5724568", "0.5724568", "0.5724568", "0.56765425", "0.5488714", "0.5488714", "0.5488714", "0.5488714", "0.53968984", "0.53797233", "0.5374497",...
0.87215275
0
Sets the payment_at of this DocumentPayment.
def V5a1(YKHO, V5a1): YKHO._payment_at = V5a1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rpdr(YKHO, rpdr):\n YKHO._payment = rpdr", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def q0JL(YKHO, q0JL):\n YKHO._payment_id = q0JL", "def WC5j(YKHO, WC5j):\n YKHO._payment_profile = WC5j", "def fe6m(YKHO, fe6m):\n YKHO._...
[ "0.69219464", "0.634922", "0.634922", "0.6124601", "0.5838729", "0.5746514", "0.5743301", "0.56576145", "0.56457645", "0.5592374", "0.55901724", "0.55821085", "0.5569871", "0.55293477", "0.55293477", "0.55198556", "0.5490115", "0.5490115", "0.548766", "0.5473866", "0.54326373...
0.86471015
0
Sets the provider of this DocumentPayment.
def kT1P(YKHO, kT1P): if YKHO.local_vars_configuration.client_side_validation and kT1P is not None and (len(kT1P) > 255): raise ValueError('Invalid value for `provider`, length must be less than or equal to `255`') YKHO._provider = kT1P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kT1P(YKHO, kT1P):\n if kT1P is None:\n raise ValueError('Invalid value for `provider`, must not be `None`')\n YKHO._provider = kT1P", "def kT1P(YKHO, kT1P):\n YKHO._provider = kT1P", "def kT1P(YKHO, kT1P):\n YKHO._provider = kT1P", "def kT1P(YKHO, kT1P):\n BbPm = ['amazon', 'azure',...
[ "0.7581422", "0.74662644", "0.74662644", "0.7146801", "0.6675831", "0.6675831", "0.6675831", "0.6644288", "0.65699863", "0.656846", "0.6526913", "0.6483493", "0.6077668", "0.60651106", "0.60334194", "0.6007688", "0.60070264", "0.5994989", "0.59299076", "0.5793456", "0.5786124...
0.6793351
4
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, ZZAr): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Gets the filepath for the importing path. If the `importing_path` is an absolute path, using it directly. Otherwise, use it as a relative path to current parsing file.
def rHmM(YKHO, uUa5: str) -> str: if Hy7s.path.isabs(uUa5): return uUa5 pA9P = YKHO.current_filepath() if pA9P: BdWa = Hy7s.path.dirname(pA9P) else: BdWa = Hy7s.getcwd() return Hy7s.path.join(BdWa, uUa5)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NjQx(mWFP):\n return Hy7s.path.dirname(Hy7s.path.abspath(tF99(mWFP).__file__))", "def E0im(Eub1):\n VlDb = HwRy.modules.get(Eub1)\n if VlDb is not None and hasattr(VlDb, '__file__'):\n return Hy7s.path.dirname(Hy7s.path.abspath(VlDb.__file__))\n DWkG = M7QU.get_loader(Eub1)\n if DWkG is...
[ "0.6802445", "0.63094544", "0.62407506", "0.621495", "0.61967254", "0.6179533", "0.6173873", "0.6141465", "0.6088652", "0.59827703", "0.59753853", "0.59536", "0.59322083", "0.5917553", "0.5912789", "0.58841515", "0.5872223", "0.5823764", "0.5820294", "0.5818137", "0.5814812",...
0.79589325
0
Initializes the Squared modifier with a target value and a coefficient.
def FIMM(YKHO, D_ib: float, zZRI=1.0) -> None: YKHO.target_value = D_ib YKHO.coefficient = zZRI
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zZRI, x6A0):\n YKHO.coefficient = zZRI\n YKHO.targets = x6A0\n YKHO.multinoms = []", "def FIMM(YKHO, RqgG=1.0, zZRI=0.9, BWXx=None):\n YKHO.initial = RqgG\n YKHO.coefficient = zZRI\n if BWXx is None:\n YKHO.reset()\n else:\n YKHO.value = BWXx", "def FIMM(YKHO, ...
[ "0.65329695", "0.63541853", "0.63541853", "0.56247514", "0.557668", "0.54444236", "0.54365945", "0.5432089", "0.5420188", "0.5409595", "0.5404445", "0.54011285", "0.539866", "0.5388997", "0.53744876", "0.53368527", "0.5331366", "0.5320632", "0.53047645", "0.5294522", "0.52853...
0.7159487
0
Initializes the AbsoluteScore modifier with a target value.
def FIMM(YKHO, D_ib: float) -> None: YKHO.target_value = D_ib
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.max_abs = None", "def FIMM(YKHO, JNlp: Union[None, float, Tuple[float, float]]=None):\n super().__init__()\n if isinstance(JNlp, float):\n JNlp = (-JNlp, JNlp)\n YKHO.clamp_score = JNlp", "def abs(YKHO, abs):\n YKHO._abs = abs", "def FIMM(YKHO, M1hk, E2_W):\n s...
[ "0.6414764", "0.63558656", "0.6299568", "0.59558666", "0.585952", "0.5846351", "0.5780953", "0.5760234", "0.57357556", "0.5696223", "0.5694691", "0.56883", "0.5656993", "0.5643663", "0.55730635", "0.5486087", "0.5437342", "0.54301196", "0.54277414", "0.54199886", "0.5411997",...
0.5994277
3
Initializes the ClippedScore modifier with a target value and a coefficient.
def FIMM(YKHO, Z5ot: float, OvQ2=0.0, Cc7P=1.0, c9EJ=0.0) -> None: assert c9EJ < Cc7P YKHO.upper_x = Z5ot YKHO.lower_x = OvQ2 YKHO.high_score = Cc7P YKHO.low_score = c9EJ YKHO.slope = (Cc7P - c9EJ) / (Z5ot - OvQ2) YKHO.intercept = Cc7P - YKHO.slope * Z5ot
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, D_ib: float, zZRI=1.0) -> None:\n YKHO.target_value = D_ib\n YKHO.coefficient = zZRI", "def FIMM(YKHO, JNlp: Union[None, float, Tuple[float, float]]=None):\n super().__init__()\n if isinstance(JNlp, float):\n JNlp = (-JNlp, JNlp)\n YKHO.clamp_score = JNlp", "def FIMM(YKHO, ...
[ "0.6269564", "0.5569518", "0.5491957", "0.5491957", "0.54796124", "0.5363193", "0.5334466", "0.53194916", "0.53194916", "0.52962565", "0.52080154", "0.5207925", "0.516258", "0.5106864", "0.5100923", "0.50898105", "0.50882936", "0.5075468", "0.5072305", "0.50609064", "0.506032...
0.0
-1
Check if app url is valid play store url.
def yaqE(YKHO): if ZbWC.match(YKHO._url_pattern, YKHO.url): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yaqE(YKHO):\n return pzVU.valid_url(YKHO.url)", "def x9y4(YKHO):\n return lJvY(YKHO.platform.url)", "def KSw8(bD7m=None):\n Nnh0 = 'http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\\\(\\\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'\n if f'{P4t4.config['TARGET_URL']}' in bD7m:\n return 'It seems this U...
[ "0.7211341", "0.7075501", "0.69278115", "0.6923266", "0.68941087", "0.6882375", "0.6856928", "0.6839473", "0.6829767", "0.682363", "0.68004465", "0.6767534", "0.6753745", "0.67407095", "0.6708876", "0.6686671", "0.6683295", "0.6675084", "0.66616064", "0.66292137", "0.6623376"...
0.67707366
11
Dictionary containing dditional information of the app.
def sz8k(YKHO): Csk6 = {} for YRbF in YKHO._soup.find_all('div', 'meta-info'): leAC, wEf2 = (YRbF.find('div', 'title').text, YRbF.find('div', 'content')) if leAC and wEf2: if wEf2.a: wPdp = [{QZnA.text.strip(): QZnA.get('href')} for QZnA in wEf2.find_all('a')] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFv9():\n pass", "def U34r(YKHO) -> dict:\n return {}", "def U34r(YKHO):\n return {}", "def iF4_(YKHO):\n return {}", "def NTvc(YKHO):\n return {}", "def c2sL(YKHO) -> dict:\n return {'uptime': YKHO.get_uptime(), 'name': YKHO.get_device_name(), 'description': YKHO.description, 'has_...
[ "0.65869284", "0.6371423", "0.62795097", "0.6175392", "0.61056685", "0.6102876", "0.60710496", "0.6042558", "0.5996729", "0.5951404", "0.5943874", "0.59172785", "0.5877254", "0.58489865", "0.58369046", "0.5830901", "0.58274764", "0.5820688", "0.5818289", "0.5818289", "0.58088...
0.0
-1
Return a sequence of oslo.messaging.Target It is defining the exchange and topics to be connected for this plugin.
def RH8N(Fv2L): return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.heat_control_exchange) for rlUa in Fv2L.notification_topics]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=dQgO) for rlUa in Fv2L.notification_topics for dQgO in Fv2L.http_control_exchanges]", "def RH8N(Fv2L):\n return [G5ma.messaging.Target(topic=rlUa, exchange=Fv2L.glance_control_exchange) for rlUa in Fv2L.notification_topics]", "def RH8N(...
[ "0.7531129", "0.75272727", "0.7458516", "0.74020666", "0.7399053", "0.72203755", "0.63080746", "0.60438776", "0.5960773", "0.59334576", "0.59283036", "0.5924919", "0.5924919", "0.5924919", "0.5924251", "0.591889", "0.58946484", "0.5839949", "0.58368164", "0.58282125", "0.5824...
0.73707163
5
Checks whether the immediate dependents of this task instance have failed. This is meant to be used to wait for cleanup. This is useful when you want to delete references but wait until other tasks finish.
def w1jr(D5gV, GbLL, cuiw=None): from airflow.models.taskinstance import TaskInstance RKD7.info('Checking for failed dependents') if not D5gV._downstream_task_ids: RKD7.debug('not task._downstream_task_ids') return True _EWb = JfyU.cast(GbLL.execution_date, cJ1g) xTkX = cuiw.query(Jf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qzku():\n gRCk = True\n for kbO9 in rS2x['depends_on']:\n if kbO9 != 'None' and (not YKHO._get_service_by_role(kbO9)):\n gRCk = False\n return gRCk", "def AXef(YKHO):\n aY8s = []\n for D5gV in YKHO.all_tasks:\n for kbO9 in D5gV.deps:\n if kbO9.node.depends_o...
[ "0.67386", "0.66091776", "0.6510182", "0.64847165", "0.6341275", "0.62648237", "0.6259737", "0.625268", "0.62112504", "0.61923176", "0.61784637", "0.616257", "0.61481553", "0.61481553", "0.61318433", "0.61242914", "0.608177", "0.6023528", "0.59915763", "0.59911805", "0.597921...
0.703151
0
Returns a 'Useragent' token for the host system platform.
def OL66(hY4z=Hy7s, YC5b=HwRy, a9EH=HwRy.platform): if hasattr(YC5b, 'getwindowsversion'): fKx9 = YC5b.getwindowsversion() bFMd = '.'.join((str(YRbF) for YRbF in fKx9[:4])) return a9EH + '/' + bFMd elif hasattr(hY4z, 'uname'): Wju4 = hY4z.uname() return '%s/%s' % (Wju4[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t36J():\n Oz1B = a9EH.system()\n if Oz1B == 'Darwin':\n return 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36'\n if Oz1B == 'Windows':\n return 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like...
[ "0.7426045", "0.736693", "0.7166083", "0.6995381", "0.686573", "0.68080723", "0.6806465", "0.67906874", "0.6763903", "0.66671044", "0.6657847", "0.6640267", "0.66302395", "0.66302395", "0.66302395", "0.66302395", "0.6546648", "0.65380603", "0.65380603", "0.65380603", "0.65115...
0.66804147
9
Return which columns from the supplied data source are kept as they are needed by the specified agg. Excludes any SpecialColumn.
def y785(ZLJ_, stmq, waEm): Qdrd = dict({fvDH: False for fvDH in ZLJ_}) for fvDH in stmq.required_columns(): Qdrd[fvDH] = True def GQk7(Qdrd, waEm): if hasattr(waEm, 'values'): for UIsJ in waEm.values: GQk7(Qdrd, UIsJ) elif hasattr(waEm, 'columns'): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSBk():\n assert XNgG(usecols=['X1']).X.columns.tolist() == ['X1']\n assert XNgG(usecols=['X1', 'Z']).X.columns.tolist() == ['X1', 'Z']\n assert XNgG(dropcols=['X1']).X.columns.tolist() == ['X2', 'Z']\n assert XNgG(dropcols=['X1', 'Z']).X.columns.tolist() == ['X2']\n assert XNgG(usecols=['X1'], ...
[ "0.55574626", "0.54134744", "0.53740937", "0.53508246", "0.53415304", "0.5289837", "0.5256318", "0.5249988", "0.51940805", "0.51839215", "0.5134347", "0.51279753", "0.5114282", "0.5113013", "0.5093943", "0.50905627", "0.5076125", "0.5068557", "0.50577766", "0.50577766", "0.50...
0.6489741
0
Generate point estimates/forecasts for a given sample set X.
def YEmv(YKHO, EcVT, vfuS=True): EcVT = YKHO._convert_array(EcVT) sk3f = YKHO.initial_estimate.repeat(EcVT.shape[0]) yGTL = ht2j.zeros(EcVT.shape[0], device=EcVT.device, dtype=ht2j.float32) B_0E = TfXp(EcVT, YKHO.bins) if vfuS: yGTL = POpV(B_0E, YKHO.nodes_idx, YKHO.nodes_split_bin, YKHO.nod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LEI_(YKHO, EcVT):\n Aofo = oyIN.zeros(EcVT.shape[0])\n for YRbF in range(len(EcVT)):\n AU8u = EcVT[YRbF]\n I1mm = WNwH(AU8u, YKHO.X)\n if I1mm:\n d6pt = Vn7Z(AU8u, YKHO.X)\n Aofo[YRbF] = YKHO.y[d6pt]\n else:\n _mSQ = 1 / YKHO.distance(AU8u, YKH...
[ "0.62276363", "0.6159124", "0.60435736", "0.60172695", "0.5984688", "0.5949758", "0.58832294", "0.5880388", "0.58669174", "0.5860879", "0.58372897", "0.5815057", "0.5755346", "0.57442844", "0.5743321", "0.57140875", "0.5713136", "0.5706387", "0.5704751", "0.57042265", "0.5698...
0.0
-1
Find the distribution and tree correlation that best fits the data according to lowest CRPS score. The parameters 'distribution' and 'tree_correlation' of a PGBM model will be adjusted to the best values after running this script. This function returns the best found distribution and tree correlation.
def TowN(YKHO, EcVT, LVAh, hOed=None, Clhk=None): EcVT = YKHO._convert_array(EcVT) LVAh = YKHO._convert_array(LVAh) if hOed == None: hOed = ['normal', 'studentt', 'laplace', 'logistic', 'lognormal', 'gamma', 'gumbel', 'weibull', 'negativebinomial', 'poisson'] if Clhk == None: Clhk = ht2j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TowN(YKHO, EcVT, LVAh, hOed=None, Clhk=None):\n EcVT = YKHO._convert_array(EcVT)\n LVAh = YKHO._convert_array(LVAh)\n if hOed == None:\n hOed = ['normal', 'studentt', 'laplace', 'logistic', 'lognormal', 'gamma', 'gumbel', 'weibull', 'negativebinomial', 'poisson']\n if Clhk == None:\n ...
[ "0.67112356", "0.58217233", "0.57585555", "0.5708799", "0.5621189", "0.56157887", "0.54958683", "0.5484453", "0.53207254", "0.53100884", "0.5308856", "0.5307079", "0.53037417", "0.53033906", "0.528306", "0.5259181", "0.5256978", "0.52508736", "0.5221955", "0.52149206", "0.520...
0.6692485
1
inverses the array to weigh earlier samples heavier than more recent ones
def ZGHK(ezWE: np.ndarray) -> float: np77 = len(ezWE) _mSQ = oyIN.arange(np77) + 1 return oyIN.sum(ezWE[::-1] * _mSQ / (np77 * (np77 + 1) / 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def myXy(ezWE, pWj2):\n Os4s = pWj2 * int(len(ezWE) / pWj2)\n return oyIN.mean(ezWE[:Os4s].reshape(-1, pWj2), 1)", "def qfvZ(bQLt, ywwl=10):\n hl9z = bQLt[-1]\n bQLt = _8zZ(bQLt)\n bQLt[-1] = hl9z\n for YRbF in range(ywwl):\n umcG = oyIN.roll(bQLt, 1)\n umcG[0] = umcG[1]\n ...
[ "0.6019396", "0.58939266", "0.5853114", "0.5780951", "0.5767953", "0.57442534", "0.5730827", "0.5706909", "0.56473225", "0.56388634", "0.56021345", "0.5564281", "0.55626553", "0.5550154", "0.5533449", "0.5500287", "0.5445653", "0.5439445", "0.5438475", "0.54319876", "0.542932...
0.5736444
6
gets the weighted mean of a 1d array
def Gq7O(ezWE: np.ndarray) -> float: np77 = len(ezWE) _mSQ = oyIN.arange(np77) + 1 return oyIN.sum(ezWE * _mSQ / (np77 * (np77 + 1) / 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A0xG(_mSQ):\n vqVR = []\n for YRbF in range(_mSQ.shape[1]):\n vqVR.append(oyIN.mean(_mSQ[:, YRbF]))\n XcU5 = oyIN.array(vqVR).reshape(1, -1)\n return XcU5", "def ZGHK(ezWE: np.ndarray) -> float:\n np77 = len(ezWE)\n _mSQ = oyIN.arange(np77) + 1\n return oyIN.sum(ezWE[::-1] * _mSQ ...
[ "0.81224227", "0.7842671", "0.7808563", "0.7782739", "0.7765452", "0.7671839", "0.7589551", "0.75232404", "0.74463683", "0.7441162", "0.7441162", "0.7431225", "0.7425801", "0.74255794", "0.73765427", "0.73614734", "0.7357353", "0.72808903", "0.72538203", "0.72513723", "0.7231...
0.8731127
0
Gets the duty_id of this Duty. Trust identifier of the duty
def oWJb(YKHO): return YKHO._duty_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.person_id", "def unpH(YKHO) -> str:\n return YKHO._id", "def unpH(YKHO) -> str:\n return YKHO._id", "def unpH(YKHO):\n return YKHO.__identifier", "def unpH(YKHO) -> str:\n return YKHO.__id", "def vDgp(YKHO):\n return YKHO._id", "def unpH(YKHO, *qIxc, **B2...
[ "0.6481556", "0.62982476", "0.62982476", "0.62926745", "0.6259186", "0.62505203", "0.62462336", "0.62418723", "0.62278795", "0.62215024", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", "0.62136275", ...
0.8625442
0
Gets the block_id of this Duty. Identifier of block duties if duty is part of the block
def yetk(YKHO): return YKHO._block_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSHN(YKHO):\n return YKHO.identifier", "def XSHN(YKHO):\n return YKHO.identifier", "def yetk(YKHO):\n return YKHO.scope_ids.usage_id", "def jGf5(YKHO):\n return jKi7.text_type(YKHO.course_id)", "def yetk(YKHO):\n return jKi7.text_type(YKHO.scope_ids.usage_id)", "def BqJt(YKHO):\n if...
[ "0.7005922", "0.7005922", "0.68762213", "0.6846438", "0.67825514", "0.6679877", "0.6676529", "0.6643467", "0.6497156", "0.6431863", "0.63355756", "0.6261906", "0.62376535", "0.621323", "0.61732864", "0.6137243", "0.60502815", "0.6043553", "0.59541476", "0.59410125", "0.591164...
0.79043484
0
Gets the client_dept_id of this Duty. BankStaff ward trust identifier
def e9O8(YKHO): return YKHO._client_dept_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTzd(YKHO):\n if YKHO.__use_demo == True and YKHO.__skytrip_conf.get_is_production() == False:\n return YKHO.__demo_client_id\n else:\n return YKHO.__client_id", "def RTzd(YKHO):\n return f'd:{YKHO.organization}:{YKHO.device_type}:{YKHO.device_id}'", "def e9O8(YKHO, e9O8):\n YKHO....
[ "0.7046383", "0.6599674", "0.658837", "0.64856154", "0.64596874", "0.64215964", "0.6406919", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "0.63963187", "...
0.8410941
0
Sets the sub_discipline of this Duty. Staff group trust identifier
def T8JT(YKHO, T8JT): YKHO._sub_discipline = T8JT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V1Lh(YKHO, V1Lh):\n if YKHO.local_vars_configuration.client_side_validation and V1Lh is None:\n raise ValueError('Invalid value for `sub_id`, must not be `None`')\n YKHO._sub_id = V1Lh", "def o0tJ(YKHO, o0tJ):\n YKHO._sub_tenant_id = o0tJ", "def o0tJ(YKHO, o0tJ):\n YKHO._sub_tenant_id = ...
[ "0.6524292", "0.6438289", "0.6438289", "0.63906026", "0.6347386", "0.62456375", "0.61865854", "0.61253256", "0.60515183", "0.6049545", "0.60293084", "0.58360636", "0.57262415", "0.5707581", "0.5693944", "0.5671233", "0.5642949", "0.5557505", "0.55127615", "0.54918665", "0.538...
0.85209703
0
Gets the request_gender of this Duty.
def VVds(YKHO): return YKHO._request_gender
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xVNR(YKHO):\n return YKHO.gender", "def xVNR(YKHO):\n return YKHO.__gender", "def xVNR(YKHO):\n return YKHO.gender", "def xVNR(YKHO):\n if YKHO.get_registration():\n EE3v = YKHO.get_registration().gender\n else:\n EE3v = YKHO.gender\n return EE3v.lower()", "def EE3v(YKHO...
[ "0.7712988", "0.77000874", "0.7661115", "0.7659622", "0.7492598", "0.7492598", "0.73126763", "0.7309564", "0.7266511", "0.723847", "0.7233152", "0.70196205", "0.70080507", "0.6894585", "0.6675418", "0.65873665", "0.63682437", "0.63525665", "0.630478", "0.6168934", "0.6122036"...
0.8401004
0
Gets the vacancy_reason of this Duty.
def xUzD(YKHO): return YKHO._vacancy_reason
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xUzD(YKHO, xUzD):\n YKHO._vacancy_reason = xUzD", "def lo9Y(YKHO):\n if YKHO._reason_present:\n return YKHO._reason_value\n else:\n raise AttributeError(\"missing required field 'reason'\")", "def kLPP(YKHO):\n return YKHO.__reason", "def akbW(YKHO):\n return YKHO.reason", ...
[ "0.681102", "0.6383881", "0.6339067", "0.6212205", "0.61143637", "0.61143637", "0.61143637", "0.61143637", "0.61143637", "0.61143637", "0.61143637", "0.61143637", "0.61128026", "0.6107159", "0.6107159", "0.6081387", "0.598552", "0.5922187", "0.5922187", "0.5922187", "0.592218...
0.861845
0
Gets the date of this Duty. Date of the duty
def _c1T(YKHO): return YKHO._date
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO.date", "def slWZ(YKHO):\n return YKHO._date", "def rNbP(YKHO) -> str:\n return YKHO.discharge_date", "def slWZ(YKHO):\n return YKHO._date"...
[ "0.7701794", "0.76793677", "0.76793677", "0.76793677", "0.76606137", "0.7654565", "0.7621725", "0.75892967", "0.75892967", "0.7539421", "0.7504605", "0.74709195", "0.7447322", "0.7447322", "0.7447322", "0.7447322", "0.74153244", "0.7400509", "0.7378207", "0.7320284", "0.73091...
0.72471493
26
Sets the date of this Duty. Date of the duty
def _c1T(YKHO, _c1T): YKHO._date = _c1T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T", "def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return", "def LzZf(YKHO, _c1T):\n YKHO.date = _c1T", "def wjGx(YKHO, _c1T):\n pass", "def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T\n return YKHO", "def _c1T(YKHO, _c1T):\n YKHO._date = _c1T", ...
[ "0.78167504", "0.781095", "0.7765712", "0.77585053", "0.76526415", "0.74951833", "0.74240905", "0.73472154", "0.73472154", "0.73472154", "0.73472154", "0.73472154", "0.7346723", "0.7346723", "0.7289222", "0.7210627", "0.7187785", "0.7060461", "0.70452094", "0.7019594", "0.694...
0.73345333
14
Gets the start_time of this Duty. Start time of the shift
def SWox(YKHO): return YKHO._start_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return ITS7(YKHO.start_datetime.hour, YKHO.start_datetime.minute, YKHO.start_datetime.second)", "def jSV8(YKHO):\n return YKHO.start_time", "def jSV8(YKHO):\n return YKHO.start_time", "def jSV8(YKHO):\n return YKHO.start", "def SWox(YKHO) -> ITS7:\n return YKHO._starttime",...
[ "0.80794126", "0.8057834", "0.80234814", "0.80215824", "0.8003403", "0.7985007", "0.7969425", "0.7969425", "0.79468316", "0.79468316", "0.78466415", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "0.78377926", "...
0.7695315
44
Gets the end_time of this Duty. End time of the shift
def C7pn(YKHO): return YKHO._end_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wirM(YKHO):\n return YKHO.end_time", "def NgWO(YKHO):\n return YKHO.endtime", "def wirM(YKHO):\n return YKHO.__end_time", "def wirM(YKHO):\n return YKHO.__end_time", "def wirM(YKHO):\n return YKHO.end_time", "def C7pn(YKHO) -> ITS7:\n return YKHO._endtime", "def wirM(YKHO):\n r...
[ "0.8175327", "0.81526166", "0.8147588", "0.8147588", "0.8130198", "0.81121075", "0.80523676", "0.8028363", "0.8020272", "0.8020272", "0.8020272", "0.8020272", "0.8020272", "0.8020272", "0.8020272", "0.8020272", "0.79848665", "0.79848665", "0.79817945", "0.79817945", "0.797039...
0.7862418
25
Gets the break_duration of this Duty. Duration of break in minutes
def hZ8J(YKHO): return YKHO._break_duration
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a1sJ(YKHO):\n return YKHO.break_length * 60 - (YKHO.warntime + YKHO.countdowntime)", "def RDc3(YKHO):\n dsgs = YKHO.children_overall_lead_time()\n if dsgs is None:\n return YKHO.lead_time\n else:\n return YKHO.lead_time - YKHO.children_overall_lead_time()", "def EdTY(YKHO):\n r...
[ "0.7982524", "0.6528456", "0.64345515", "0.6433542", "0.64016664", "0.63950056", "0.6379173", "0.6308895", "0.6299441", "0.6299441", "0.62463397", "0.6242152", "0.62420356", "0.62285906", "0.62189263", "0.62189263", "0.62189263", "0.62189263", "0.62189263", "0.62189263", "0.6...
0.85273147
0
Gets the po_number of this Duty. Need to understand if needed from Trust/Agency
def oB3r(YKHO): return YKHO._po_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oWJb(YKHO):\n return YKHO._duty_id", "def XkxA(YKHO):\n return YKHO._petalcount", "def N_CA(YKHO):\n return YKHO.get('pr_number')", "def jEPb(YKHO) -> int:\n return YKHO._vehicle_data.get('vehicle_state', {}).get('pr')", "def mkJm(YKHO):\n return YKHO._number", "def mkJm(YKHO):\n re...
[ "0.681594", "0.6599695", "0.6535831", "0.64177394", "0.6375541", "0.6375541", "0.6375541", "0.6354553", "0.6354553", "0.6277012", "0.62630945", "0.62491935", "0.6218265", "0.62130785", "0.62130785", "0.61945546", "0.61524963", "0.6132698", "0.6118511", "0.61135834", "0.610901...
0.7498609
0
Gets the unique_number of this Duty. BRN / Unique number
def KN0E(YKHO): return YKHO._unique_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TBMu(YKHO):\n return YKHO._uniqueid", "def ShR8(YKHO):\n print(f'uniq: {YKHO._unique_id}')\n return YKHO._unique_id", "def ShR8(YKHO):\n return YKHO._device.serial", "def ShR8(YKHO):\n return YKHO._device.serial", "def ShR8(YKHO):\n return YKHO._unique_id", "def ShR8(YKHO):\n ret...
[ "0.7268764", "0.72182083", "0.71141654", "0.71141654", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905", "0.70281905",...
0.8249422
0
Gets the status of this Duty. Will need to understand if duty is no longer required and cancel on DE Provider
def jGRS(YKHO): return YKHO._status
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO) -> h8nf['outputs.PodDisruptionBudgetStatus']:\n return qe4Y.get(YKHO, 'status')", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n return YKHO.status", "def VLTN(YKHO):\n tO9_ = 'd'\...
[ "0.69770324", "0.68323326", "0.68323326", "0.68323326", "0.68323326", "0.6823486", "0.6822838", "0.6821351", "0.6821351", "0.6821351", "0.6821018", "0.6790179", "0.67872", "0.67872", "0.67677927", "0.6720709", "0.6708852", "0.6693008", "0.6685376", "0.6684622", "0.6680542", ...
0.0
-1
Gets the time_interval_rates of this Duty. Array of rates and intervals for which the rate is applied
def pQyp(YKHO): return YKHO._time_interval_rates
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xnmO(YKHO):\n if not YKHO._has_data():\n return None\n D7KI = [YKHO._get_reporting_speed(VOlW['sum']['bits_per_second']) for VOlW in YKHO.result['intervals']]\n return D7KI", "def b5Lm(YKHO):\n return YKHO._rates", "def b5Lm(YKHO):\n return 2 ** (YKHO.intervals / 1200)", "def b5Lm(Y...
[ "0.7634187", "0.71754956", "0.70313007", "0.65934986", "0.65084827", "0.63557684", "0.63036954", "0.62889117", "0.62819684", "0.6263697", "0.61963373", "0.60802674", "0.5994954", "0.5978346", "0.5935927", "0.59216416", "0.5898476", "0.5870275", "0.5869592", "0.5856278", "0.58...
0.8503198
0
Gets the person of this Duty.
def a70H(YKHO): return YKHO._person
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hy6m(YKHO, HjSO):\n return YKHO._get_object_data(YKHO._get_single_data('people/{}'.format(HjSO)), nj3W)[0]", "def wSZD(YKHO, _eu6):\n UmwS = None\n bQhf = YKHO.serverRequest('/person/%s' % _eu6)\n if bQhf and bQhf['Status'] == 'OK':\n fZCI = bQhf['Person']\n return fZCI", "def FEiu(YK...
[ "0.6809435", "0.679161", "0.66875887", "0.6611546", "0.6611546", "0.6596407", "0.64654535", "0.6421393", "0.6393168", "0.63923943", "0.63904065", "0.63563967", "0.6355044", "0.62809855", "0.6274198", "0.62629294", "0.6247692", "0.6240576", "0.62346214", "0.6207424", "0.618039...
0.763713
0
Sets the person of this Duty.
def a70H(YKHO, a70H): YKHO._person = a70H
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aujj(YKHO, Aujj):\n YKHO._person_id = Aujj", "def FMCY(YKHO, Aujj):\n YKHO._person_id = Aujj", "def FMCY(YKHO, Aujj):\n YKHO._person_id = Aujj", "def vtrs(YKHO, a70H: Person):\n pass", "def C1od(YKHO, BWXx, **YSA3):\n if YSA3.has_key('schema'):\n uPxI = YSA3['schema']\n else:\n...
[ "0.68567187", "0.6757932", "0.6757932", "0.65806943", "0.6380519", "0.62220997", "0.6166765", "0.60911506", "0.5920953", "0.5907876", "0.5870274", "0.5773363", "0.5768726", "0.57632875", "0.5692322", "0.5690547", "0.5679386", "0.5665945", "0.56459886", "0.5645738", "0.5621513...
0.76129884
0
Test removing from favourites. We should just remove the playlist from user favourites if its present but we get a 401 for deleting it.
def As1Q(Z59X, AZgw): Z59X, DDLl = Z59X cuiw = DDLl.session geh0 = AZgw.Mock(status_code=401) P1dF = VrQA() P1dF.response = geh0 cuiw.request.request.side_effect = P1dF cf3u = AZgw.Mock() cf3u.id = 21 cuiw.user.favorites.playlists.return_value = [cf3u] Z59X.delete('tidal:playlist...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bm9m(Z59X, AZgw):\n Z59X, DDLl = Z59X\n cuiw = DDLl.session\n geh0 = AZgw.Mock(status_code=401)\n P1dF = VrQA()\n P1dF.response = geh0\n cuiw.request.request.side_effect = P1dF\n cf3u = AZgw.Mock()\n cf3u.id = 21\n cuiw.user.favorites.playlists.return_value = [cf3u]\n with trZe.ra...
[ "0.7736259", "0.7476067", "0.73293203", "0.6998095", "0.6918639", "0.6911185", "0.6908261", "0.68820876", "0.68149644", "0.68034995", "0.679566", "0.67673695", "0.6759795", "0.67534304", "0.67405516", "0.67045015", "0.66458255", "0.66387933", "0.66380745", "0.6624379", "0.661...
0.78941256
0
Test removing from favourites. We should just remove the playlist from user favourites if its present but we get a 401 for deleting it.
def bm9m(Z59X, AZgw): Z59X, DDLl = Z59X cuiw = DDLl.session geh0 = AZgw.Mock(status_code=401) P1dF = VrQA() P1dF.response = geh0 cuiw.request.request.side_effect = P1dF cf3u = AZgw.Mock() cf3u.id = 21 cuiw.user.favorites.playlists.return_value = [cf3u] with trZe.raises(VrQA) as t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def As1Q(Z59X, AZgw):\n Z59X, DDLl = Z59X\n cuiw = DDLl.session\n geh0 = AZgw.Mock(status_code=401)\n P1dF = VrQA()\n P1dF.response = geh0\n cuiw.request.request.side_effect = P1dF\n cf3u = AZgw.Mock()\n cf3u.id = 21\n cuiw.user.favorites.playlists.return_value = [cf3u]\n Z59X.delete(...
[ "0.78930193", "0.7475647", "0.7328864", "0.699737", "0.69173276", "0.6910752", "0.69073296", "0.6881191", "0.68129325", "0.68034", "0.67948395", "0.67668056", "0.6758884", "0.67533857", "0.6739643", "0.6703468", "0.6645819", "0.66388327", "0.66357374", "0.6624025", "0.6617380...
0.77353615
1
How a layer takes in a set of inputs and produces a new set of node embeddings. In essence, this operation takes in a tensor of shape [num_nodes, max_degree, 3] and returns a tensor of shape [num_nodes, node_embed_size].
def nrOS(YKHO): raise NotImplementedError('Abstract Method')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdZO(YKHO, Gzv5: int, Norb: int, EDoJ: int, CLda: int) -> U78l.Module:\n Zxma = U78l.Sequential()\n MKlR = [Norb] * (CLda - 1)\n for YRbF, (exwG, G1Hx) in enumerate(zip([Gzv5] + MKlR, MKlR + [EDoJ])):\n Zxma.add_module(f'layer-{YRbF}', U78l.Linear(exwG, G1Hx))\n if YRbF < CLda - 1:\n ...
[ "0.70492035", "0.66540706", "0.6583175", "0.6555116", "0.6544088", "0.6509762", "0.64821285", "0.6472041", "0.6470191", "0.6465309", "0.6438603", "0.64219767", "0.6392865", "0.6358292", "0.63361454", "0.632533", "0.63175464", "0.6282993", "0.62584823", "0.62557167", "0.624660...
0.0
-1
Return a normalization layer
def amAv(J1Nm='instance'): if J1Nm == 'batch': ykhl = xBlr.partial(U78l.BatchNorm2d, affine=True) elif J1Nm == 'instance': ykhl = xBlr.partial(U78l.InstanceNorm2d, affine=False, track_running_stats=True) elif J1Nm == 'none': ykhl = None else: raise NotImplementedError('no...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QYad(VKhi, HhVR: int, J1Nm: Optional[str]=None, FmZA: Optional[int]=None, *qIxc, **B2fa) -> U78l.Module:\n return sfhl(VKhi, HhVR, J1Nm, FmZA)", "def amAv():\n if J1Nm == 'batch':\n ykhl = xBlr.partial(U78l.BatchNorm2d, affine=True, track_running_stats=True)\n return ykhl", "def O9Ow(vhpA, ...
[ "0.7558415", "0.75189286", "0.74955684", "0.7224539", "0.7069579", "0.704178", "0.6973934", "0.6933626", "0.6926538", "0.6905241", "0.6845051", "0.6828518", "0.6828518", "0.6799542", "0.6777142", "0.67452985", "0.67437446", "0.67385143", "0.6724314", "0.6723551", "0.67166364"...
0.6714718
23
Get players from a specific team within the database Returns List[Player]
def v9wb(xKro): MKlR = HBct.md5(xKro.encode()).hexdigest()[:8] if Nq1b.has('obj_' + MKlR): return Nq1b.read_record(MKlR) Ylbp = NtrV.query_by_club('players', xKro) Nq1b.write_record(MKlR, Ylbp) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHbA(dZPi):\n return mVZ4.query.filter_by(team=dZPi).all()", "def Bzzc(b2mu: int):\n return mVZ4.objects.filter(team_id=b2mu)", "def Bwa6(YKHO):\n return mVZ4.objects.filter(membership__team=YKHO)", "def dPXt(YKHO):\n geh0 = G4JS.get(mjrS['players'])\n if geh0.status_code == 200:\n ...
[ "0.8856067", "0.85145265", "0.7559218", "0.73398805", "0.71499324", "0.6993673", "0.6975567", "0.69694287", "0.6875354", "0.6862522", "0.68447363", "0.6795641", "0.6795006", "0.67943555", "0.6737944", "0.6684352", "0.6640737", "0.6610979", "0.6608627", "0.66015744", "0.657543...
0.734612
3
Get players from a specific team and split them into smaller lists based on position. Returns List[Player]
def UqSP(MpuS): return IxYn.get_full_squad_list(MpuS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHbA(dZPi):\n return mVZ4.query.filter_by(team=dZPi).all()", "def Hpcg(YKHO):\n Bwa6 = []\n for lHmx in sorted(YKHO.player_box_scores, key=lambda WKvO: WKvO.player_name):\n Bwa6.append(lHmx.player_team)\n return Bwa6", "def Bzzc(b2mu: int):\n return mVZ4.objects.filter(team_id=b2mu)",...
[ "0.72265905", "0.68795395", "0.67743427", "0.6598589", "0.6506681", "0.64739233", "0.6434018", "0.6415786", "0.63956535", "0.6329903", "0.6328802", "0.6325506", "0.6299324", "0.62477726", "0.6244853", "0.6222569", "0.6210846", "0.6166442", "0.6163656", "0.6135758", "0.6106317...
0.0
-1
Get players from a specific team and split them into smaller lists based on position. Returns List[List[Player]]
def MDN8(b2mu): _FYJ = UqSP(b2mu) if _FYJ == 404: return 404 cJcF = [] yxT1 = [] qXxR = [] SGWY = [] for oyg0 in _FYJ: if oyg0['position'] in U7wo: qXxR.append(oyg0) elif oyg0['position'] in BMTY: cJcF.append(oyg0) elif oyg0['position']...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sHbA(dZPi):\n return mVZ4.query.filter_by(team=dZPi).all()", "def Hpcg(YKHO):\n Bwa6 = []\n for lHmx in sorted(YKHO.player_box_scores, key=lambda WKvO: WKvO.player_name):\n Bwa6.append(lHmx.player_team)\n return Bwa6", "def LDjX(dZPi, FBNX):\n NON8 = open(GtAx + dZPi + Xd5A)\n f6MJ...
[ "0.7030543", "0.68776727", "0.6637077", "0.65386194", "0.63384384", "0.6326532", "0.63039696", "0.62639225", "0.62583464", "0.62553567", "0.6222121", "0.6218065", "0.61802536", "0.61382085", "0.6136662", "0.61354685", "0.611587", "0.6093198", "0.6037299", "0.6034121", "0.5992...
0.64599884
4
Define the global stiffness matrix for a frame element
def vZ0H(YKHO): return YKHO.T.T @ YKHO.k @ YKHO.T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rGMP(YKHO):\n YKHO.system_stiffness_matrix = oyIN.zeros((len(YKHO.coordx) * 3, len(YKHO.coordx) * 3))\n YKHO.transformed_stiffness_dict = {}\n for bjTC in YKHO.element_ID_area_inertia_elasticity_length_cos_sin_dict.keys():\n zhlm = oyIN.empty((6, 6))\n u54L = YKHO.element_ID_area_inertia...
[ "0.67177004", "0.6153807", "0.6053627", "0.60346526", "0.5896464", "0.5861894", "0.5859559", "0.5852829", "0.58370364", "0.5835716", "0.58289284", "0.58206207", "0.5811958", "0.5783399", "0.5763197", "0.57346326", "0.57338864", "0.57241195", "0.5680826", "0.56759244", "0.5674...
0.0
-1
Add node to the structure
def aZVs(YKHO, WKvO, LVAh, sSN_=0, fZKa='free'): exwG = YKHO.nNodes Q6kx = YKHO.__class__.NodeType(WKvO, LVAh, n=exwG, cost=sSN_, fixity=fZKa) YKHO.nodes.append(Q6kx) YKHO.nNodes += 1 YKHO.__cache__reducedK = None YKHO.__cache__K = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Q6kx):\n pass", "def H2v5(YKHO, Q6kx):\n pass", "def g5gD(YKHO, Q6kx):\n raise NotImplementedError", "def H2v5(YKHO, Q6kx):\n raise NotImplementedError()", "def g5gD(YKHO, Q6kx):\n YKHO.nodes.append(Q6kx)", "def g5gD(YKHO, Q6kx):\n YKHO.__nodes[Q6kx.name] = Q6kx", "def ...
[ "0.8477231", "0.8477231", "0.82621974", "0.8175244", "0.80606306", "0.802803", "0.7953297", "0.7934011", "0.790093", "0.790093", "0.7894383", "0.7834965", "0.7824903", "0.7814399", "0.77870405", "0.77753913", "0.7682587", "0.7674059", "0.7629378", "0.76250476", "0.7597592", ...
0.0
-1
Define global boundary condition array
def ik4P(YKHO): return oyIN.array(PWgb([list(Q6kx.BC) for Q6kx in YKHO.nodes]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hifI(YKHO) -> None:\n w5ro, eE5C, wG_v, QMy7 = (1, -1, -2, -3)\n YKHO._bc = {}\n YKHO._bc['n_fix'] = oyIN.count_nonzero(YKHO._bc_table == w5ro) + oyIN.count_nonzero(YKHO._bc_table == eE5C)\n JP0J, UP0u = oyIN.where(YKHO._bc_table == w5ro)\n zSKq, G6lO = oyIN.where(YKHO._bc_table == eE5C)\n aj...
[ "0.6806838", "0.67943984", "0.6305232", "0.62435", "0.6240547", "0.62322336", "0.622468", "0.61445206", "0.60875815", "0.603009", "0.6010139", "0.5955752", "0.593866", "0.5936805", "0.5908802", "0.5904397", "0.589545", "0.5886924", "0.5870275", "0.58081627", "0.5804051", "0...
0.0
-1
Init a new callback instance.
def FIMM(YKHO, Wbxz, Ep8u, UUSD=0, ovBF=False): super().__init__() if isinstance(Wbxz, dict): YKHO.metrics = Wbxz YKHO.train_loss = oyIN.array([]) YKHO.train_acc = oyIN.array([]) YKHO.valid_loss = oyIN.array([]) YKHO.valid_acc = oyIN.array([]) YKHO.pred_loss = oyIN.array([]) YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, db6b):\n YKHO._callback = db6b", "def FIMM(YKHO, db6b):\n YKHO._callback = db6b", "def FIMM(YKHO, db6b=None, i2rN=None, T0QU=None):\n if db6b and (not callable(db6b)):\n raise TypeError('callback:%r is not callable.' % db6b)\n if i2rN and (not callable(i2rN)):\n raise T...
[ "0.811931", "0.811931", "0.76080954", "0.7390619", "0.73372144", "0.727891", "0.71434814", "0.71409774", "0.71395457", "0.7118386", "0.7113182", "0.7027661", "0.69956917", "0.69684714", "0.6945561", "0.6922453", "0.68667483", "0.6781404", "0.67284536", "0.6724571", "0.6707771...
0.0
-1
Returns the list of ordered (by datetime) courses.
def sDlr(YKHO): return sorted(YKHO.courses, key=lambda WKvO: WKvO.datetime_from, reverse=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k8nB(YKHO):\n return", "def GF_L(YKHO):\n if YKHO.course_list_cache:\n return YKHO.course_list_cache\n else:\n return YKHO.get_courses()", "def vyNo(YKHO, **B2fa):\n return YKHO.conn.courseList(**B2fa)", "def ovH4():\n x0hE = SGLh()\n vexM = x0hE.query(kind=oQna)\n vexM...
[ "0.69477075", "0.6900004", "0.6808268", "0.67830026", "0.6653673", "0.66321945", "0.6627499", "0.662707", "0.65890855", "0.65787417", "0.65541047", "0.6538927", "0.6478145", "0.6447862", "0.6438929", "0.6388487", "0.6329052", "0.6297989", "0.62921786", "0.6209326", "0.620898"...
0.86346924
0
Compute the gradient (also called the slope or derivative) of the sigmoid function with respect to its input x. You can store the output of the sigmoid function into variables and then use it to calculate the gradient.
def NZml(WKvO): KCHu = m1Hg(WKvO) oxOY = KCHu * (1 - KCHu) return oxOY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xQSX(WKvO):\n D5po = m1Hg(WKvO)\n return D5po * (1 - D5po)", "def Hcjj(WKvO):\n return xZsq.sigmoid(WKvO) * (1 - xZsq.sigmoid(WKvO))", "def _aH1(WKvO):\n return WKvO * (1.0 - WKvO)", "def NZml(WKvO):\n KCHu = m1Hg(WKvO)\n oxOY = KCHu * (1 - KCHu)\n return oxOY", "def NZml(WKvO):\n ...
[ "0.7971847", "0.7935699", "0.78362334", "0.7781086", "0.7780676", "0.777781", "0.77425134", "0.7732052", "0.7725376", "0.77244925", "0.77142346", "0.7696595", "0.7679694", "0.7674683", "0.7575216", "0.7526512", "0.74916023", "0.7473364", "0.74232113", "0.74145067", "0.7374285...
0.77793777
5
Implement a function that normalizes each row of the matrix x (to have unit length).
def U95B(WKvO): WzsH = oyIN.linalg.norm(WKvO, axis=1, keepdims=True) WKvO = WKvO / WzsH return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U95B(WKvO):\n return WKvO / oyIN.linalg.norm(WKvO, axis=1)[:, None]", "def U95B(WKvO):\n assert WKvO.shape == (WKvO.shape[0], WKvO.shape[1])\n WzsH = oyIN.linalg.norm(WKvO, axis=1, keepdims=True)\n WKvO = WKvO / WzsH\n return WKvO", "def U95B(WKvO):\n ciZM = oyIN.apply_along_axis(lambda W...
[ "0.8664639", "0.86331916", "0.8552978", "0.84396565", "0.8273637", "0.81350064", "0.80856025", "0.7941295", "0.79348385", "0.7869413", "0.7756431", "0.7681542", "0.7613858", "0.74563485", "0.74363315", "0.74209845", "0.7414297", "0.74021643", "0.7394952", "0.7383712", "0.7382...
0.85070366
3
Calculates the softmax for each row of the input x.
def N93T(WKvO): yRgo = oyIN.exp(WKvO) qjcP = oyIN.sum(yRgo, axis=1, keepdims=True) KCHu = yRgo / qjcP return KCHu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n WKvO = oyIN.transpose(WKvO)\n return oyIN.transpose(oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO), axis=0))", "def N93T(YKHO, WKvO):\n e_2d = WKvO.ndim\n if e_2d == 1:\n IA3S = oyIN.max(WKvO)\n WKvO -= IA3S\n Aofo = oyIN.exp(WKvO) / oyIN.sum(oyIN.exp(WKvO))\n elif...
[ "0.85540783", "0.8498079", "0.84769446", "0.8464518", "0.8458421", "0.8448719", "0.83892065", "0.8358939", "0.8358395", "0.8340293", "0.8335534", "0.833177", "0.8322418", "0.8317469", "0.8315194", "0.8310849", "0.8310849", "0.83060807", "0.8299575", "0.8298409", "0.82980597",...
0.0
-1
Update a document. Replace an existing document or add a document with a specified document ID. Starts ingesting a document with optional metadata. Use this method to upload a file to a collection. You cannot use this method to crawl an external data source. If the document is uploaded to a collection that shares its d...
def oCIq(YKHO, ekCf: str, EZ2Z: str, yZn6: str, *, nUeQ: BinaryIO=None, Ux0P: str=None, R8RP: str=None, yIVm: str=None, niiu: bool=None, **B2fa) -> fkWJ: if not ekCf: raise ValueError('project_id must be provided') if not EZ2Z: raise ValueError('collection_id must be provided') if not yZn6: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCIq(YKHO, d6pt, WwT6, C13M, oFUB=None, ih5P=None, BIAu=True, PRKK=False, TIVb={}, **NArs):\n if oFUB == None:\n oFUB = C13M.pop(YKHO.DOC_ID_FIELD_NAME)\n nPrm = {'doc': C13M, 'detect_noop': BIAu, 'doc_as_upsert': PRKK}\n if ih5P != None:\n nPrm['upsert'] = ih5P\n Mkmy = YKHO.request_...
[ "0.7293783", "0.6991493", "0.6707824", "0.67071134", "0.6561143", "0.6465506", "0.6460458", "0.64230925", "0.6377537", "0.63643295", "0.63447684", "0.6327459", "0.63191193", "0.6273359", "0.6271143", "0.62598306", "0.6259127", "0.62114686", "0.61975855", "0.61919576", "0.6168...
0.70350665
1
Get a custom stop words list. Returns the custom stop words list that is used by the collection. For information about the default stop words lists that are applied to queries, see [the product documentation](/docs/discoverydata?topic=discoverydatastopwords).
def O3eL(YKHO, ekCf: str, EZ2Z: str, **B2fa) -> fkWJ: if not ekCf: raise ValueError('project_id must be provided') if not EZ2Z: raise ValueError('collection_id must be provided') MOPg = {} kVod = w64J(service_name=YKHO.DEFAULT_SERVICE_NAME, service_version='V2', operation_id='get_stopwor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tyNe():\n return auPV", "def RzZR(YKHO) -> x1iM:\n return YKHO.stop_word_list", "def tyNe(YKHO) -> x1iM[str]:\n return YKHO.http.get(YKHO.__settings_url_for(YKHO.config.paths.stop_words))", "def sSP5(YKHO) -> list:\n return Rw8l.get_stop_words(YKHO._lang)", "def sSP5(YKHO):\n pass", "d...
[ "0.7799416", "0.7794463", "0.76767313", "0.766852", "0.72942656", "0.7108365", "0.70720226", "0.6958722", "0.689257", "0.6872765", "0.68688536", "0.68636173", "0.6854133", "0.67665225", "0.6715466", "0.6603329", "0.65880096", "0.655483", "0.65359914", "0.6533043", "0.65276206...
0.65801615
17
Create a custom stop words list. Adds a list of custom stop words. Stop words are words that you want the service to ignore when they occur in a query because they're not useful in distinguishing the semantic meaning of the query. The stop words list cannot contain more than 1 million characters. A default stop words l...
def T6M2(YKHO, ekCf: str, EZ2Z: str, *, di0c: List[str]=None, **B2fa) -> fkWJ: if not ekCf: raise ValueError('project_id must be provided') if not EZ2Z: raise ValueError('collection_id must be provided') MOPg = {} kVod = w64J(service_name=YKHO.DEFAULT_SERVICE_NAME, service_version='V2', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JViU(YKHO, mSrU='include', L0lO=[]):\n YKHO.stoplist = set(tyNe(YKHO.operating_language))\n if mSrU == 'include':\n YKHO.stoplist.update(range(100) + [10 ** YRbF for YRbF in range(5)])\n YKHO.stoplist.update(L0lO)", "def BGFs():\n hwHU = di0c.words('english')\n dDGN = ['.', ',', '<', '>...
[ "0.76295835", "0.74474055", "0.71629465", "0.71512747", "0.70897186", "0.7002317", "0.68079126", "0.6728494", "0.67173", "0.66525733", "0.658088", "0.64870703", "0.6480678", "0.6461736", "0.6451979", "0.6440006", "0.63755405", "0.6338512", "0.62756675", "0.6218905", "0.621735...
0.66798437
9
Create training query. Add a query to the training data for this project. The query can contain a filter and natural language query.
def u8ZH(YKHO, ekCf: str, Tuha: str, _73Q: List['TrainingExample'], *, filter: str=None, **B2fa) -> fkWJ: if not ekCf: raise ValueError('project_id must be provided') if Tuha is None: raise ValueError('natural_language_query must be provided') if _73Q is None: raise ValueError('examp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qEOF(YKHO, SB7a, EZ2Z, Tuha, scn9=None, filter=None, _73Q=None):\n sI3h = '/v1/environments/{0}/collections/{1}/training_data'\n pPAA = sI3h.format(SB7a, EZ2Z)\n NArs = {'version': YKHO.version}\n nPrm = {'natural_language_query': Tuha, 'filter': filter, 'examples': _73Q, 'query_id': scn9}\n ret...
[ "0.7348014", "0.6550429", "0.6439191", "0.6364556", "0.63007504", "0.6052234", "0.60516405", "0.6025356", "0.59415466", "0.5904306", "0.58827", "0.5838707", "0.57556564", "0.572892", "0.57250386", "0.5704091", "0.56901693", "0.5659133", "0.5649178", "0.56486225", "0.5628831",...
0.7328722
1
Initialize a AnalyzedDocument object from a json dictionary.
def jG8h(Emd4, tbx9: Dict) -> 'AnalyzedDocument': qIxc = {} if 'notices' in tbx9: qIxc['notices'] = [I9Ld.from_dict(Ty9i) for Ty9i in tbx9.get('notices')] if 'result' in tbx9: qIxc['result'] = AcD_.from_dict(tbx9.get('result')) return Emd4(**qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'documentCount' in tbx9:\n qIxc['document_count'] = tbx9.get('documentCount')\n if 'name' in tbx9:\n qIxc['name'] = tbx9.get('name')\n return Emd4(**qIxc)", "def CCiu(Emd4, tbx9):\n qIxc = {}\n if 'documentSection' in tbx9:\n qIxc['doc...
[ "0.7410362", "0.7388855", "0.73746216", "0.7337211", "0.72643715", "0.71383667", "0.71315056", "0.71170217", "0.70833236", "0.69905066", "0.6973953", "0.6964666", "0.6957885", "0.6955907", "0.6896848", "0.68854237", "0.6801757", "0.679409", "0.6751816", "0.6740699", "0.670462...
0.77919555
0
Initialize a AnalyzedDocument object from a json dictionary.
def CCiu(Emd4, tbx9): return Emd4.from_dict(tbx9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, tbx9: Dict) -> 'AnalyzedDocument':\n qIxc = {}\n if 'notices' in tbx9:\n qIxc['notices'] = [I9Ld.from_dict(Ty9i) for Ty9i in tbx9.get('notices')]\n if 'result' in tbx9:\n qIxc['result'] = AcD_.from_dict(tbx9.get('result'))\n return Emd4(**qIxc)", "def CCiu(Emd4, tbx9):\n ...
[ "0.77919555", "0.7410362", "0.7388855", "0.73746216", "0.7337211", "0.72643715", "0.71383667", "0.71315056", "0.71170217", "0.70833236", "0.69905066", "0.6973953", "0.6964666", "0.6957885", "0.6955907", "0.6896848", "0.68854237", "0.6801757", "0.679409", "0.6751816", "0.67406...
0.64112365
92
Return `true` when self and other are equal, false otherwise.
def xa14(YKHO, Elif: 'AnalyzedDocument') -> bool: if not isinstance(Elif, YKHO.__class__): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)", "def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))", "def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)", "def xa14(YKHO, Elif):\n return all((WKvO == LVAh for WKvO, LVAh in zip(YKHO, Elif)))", "def xa14(YKHO, Elif):\n ret...
[ "0.87371325", "0.8501334", "0.8474355", "0.8459273", "0.8452805", "0.83500654", "0.83371586", "0.8321182", "0.83089197", "0.8307465", "0.8284255", "0.8284255", "0.8277331", "0.8277331", "0.82759523", "0.82759523", "0.82757044", "0.82738006", "0.82664746", "0.82664746", "0.825...
0.0
-1
Return `true` when self and other are not equal, false otherwise.
def Vdqg(YKHO, Elif: 'AnalyzedDocument') -> bool: return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif) -> bool:\n if YKHO == Elif:\n return False\n else:\n return True", "def hTUE(YKHO, Elif):\n return YKHO.__ne__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO != Elif", "def xa14(YKHO, Elif):\n return not YKHO != Elif", "def Vdqg(YKHO, Elif):\n if YKHO ...
[ "0.8650175", "0.86424744", "0.856196", "0.856196", "0.8539785", "0.84545946", "0.84390664", "0.84390664", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0.84032786", "0...
0.0
-1