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 |
|---|---|---|---|---|---|---|
Utility function that returns a MatrixProfile data structure with a calculated annotation vector that has been applied to correct the matrix profile. | def ZVZn(z39Z, EKeu='default', v88l=None):
if not aM69.is_mp_obj(z39Z):
raise ValueError('apply_av expects profile as an MP data structure')
He9f = None
sLkm = None
if EKeu == 'default':
He9f = LPQb(z39Z['data']['ts'], z39Z['w'])
sLkm = EKeu
elif EKeu == 'complexity':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hz2H(YKHO):\n bf9h = oyIN.array([[1.0, 0.0], [0.0, 0.0], [0.0, 1.0]])\n W061 = oyIN.array([[0.0, 0.0], [1.0, 0.0], [0.0, 1.0]])\n tjUW = wu06.attitude_profile_matrix(obs=W061, ref=bf9h)",
"def ZVZn(g2zq, EKeu=None):\n EKeu = [1.0] if EKeu is None else EKeu\n if len(g2zq[0]) != len(EKeu):\n ... | [
"0.58199733",
"0.57918364",
"0.5485197",
"0.54530543",
"0.5451324",
"0.5282798",
"0.5069492",
"0.50570256",
"0.5051597",
"0.50416625",
"0.50102544",
"0.500022",
"0.49900544",
"0.49530387",
"0.495086",
"0.49318773",
"0.4911598",
"0.4892316",
"0.48764974",
"0.48733866",
"0.4855... | 0.47646758 | 26 |
Buy shares up to a purchase price limit defined by buyLimit, starting at an initial date defined by buyDate, and repeated never/daily/monthly/quarterly. Returns nothing, just updates the stock details. | def IU3N(YKHO, LPJw, N3R5, NxpQ, _AOS, wPFE):
WIo6, L4ZC = YKHO.getOpeningPrice()
ugeh = int(NxpQ) / int(L4ZC)
if wPFE == 'never' and ugeh > 0:
YKHO.purchased = ugeh * L4ZC
YKHO.units = ugeh
YKHO.purchasedList.append(ugeh * L4ZC)
YKHO.unitsList.append(ugeh)
YKHO.dateL... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IU3N(YKHO):\n PAjK = YKHO.symbol\n UGPY = YKHO.currency\n hI0L = YKHO.data[0].close\n Z5kt = YKHO.portfolio['buy_sell_amount'][YKHO.currency]\n _c1T = YKHO.date\n if YKHO.slippage:\n OxXA = (YKHO.data[-1].high - YKHO.data[-1].close) * YKHO.slippage\n hI0L += oyIN.abs(OxXA)\n ... | [
"0.6620864",
"0.66012025",
"0.6393654",
"0.6378676",
"0.6198525",
"0.60787106",
"0.6022374",
"0.5965275",
"0.5860537",
"0.5827464",
"0.5821357",
"0.5779313",
"0.5757538",
"0.57499915",
"0.5732122",
"0.5714582",
"0.570333",
"0.57015985",
"0.56838834",
"0.5669411",
"0.56515336"... | 0.734988 | 0 |
Gets the next date, depending on the input, i.e., quartely, monthly, weekly or daily. | def BGUf(YKHO, jxFv, WIo6, wPFE):
if wPFE.lower() == 'quarterly':
F0gT = jxFv + enlf(months=3)
F0gT = YKHO.checkValidDate(F0gT, WIo6)
elif wPFE.lower() == 'monthly':
F0gT = jxFv + enlf(months=1)
F0gT = YKHO.checkValidDate(F0gT, WIo6)
elif wPFE.lower() == 'weekly':
F0g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xJKc(YKHO):\n pass",
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def Scik(_c1T):\n return _c1T + qcWV.timedelta(days=1)",
"def jeHq(_c1T):\n if _c1T[0] == 1 or _c1T[0] == 3 or _c1T[0] == 5 or (_c1T[0] == 7) or (_c1T[0] == 8) or (_c1T[0] == 10):\n if _c1T[1] < 31:\n ... | [
"0.758791",
"0.7128873",
"0.7128873",
"0.7044229",
"0.69297045",
"0.6808675",
"0.6745384",
"0.6705606",
"0.6659262",
"0.66587615",
"0.6629653",
"0.6610862",
"0.6577382",
"0.6566302",
"0.6533175",
"0.649507",
"0.6475922",
"0.64489305",
"0.64093673",
"0.6407312",
"0.63996214",
... | 0.6874753 | 5 |
Returns if the word is in the trie. | def TgwQ(YKHO, GIN8: 'str') -> 'bool':
XP5J = YKHO.root
for Npgh in GIN8:
if Npgh in XP5J:
XP5J = XP5J[Npgh]
else:
return False
if '#' in XP5J:
return True
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DUe0(YKHO, ZOCz, GIN8):\n TXkI = ZOCz\n for sZqf in GIN8:\n if sZqf in TXkI:\n TXkI = TXkI[sZqf]\n else:\n return False\n else:\n if '_end_' in TXkI:\n return TXkI['_end_']\n else:\n return False\n return False",
"def Gtm1(ZO... | [
"0.838632",
"0.8150416",
"0.8123471",
"0.7856802",
"0.7830664",
"0.77935004",
"0.7792806",
"0.77642965",
"0.7753436",
"0.7747724",
"0.7711298",
"0.76816714",
"0.7677101",
"0.7664614",
"0.76506114",
"0.76338875",
"0.7628353",
"0.76114196",
"0.7577657",
"0.75695884",
"0.756079"... | 0.70872915 | 56 |
Abort any ongoing transaction (at the database level). | def eTsH(YKHO) -> None:
YKHO._connector.abort_transaction() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a_xY(YKHO) -> None:\n pass",
"def eTsH(YKHO, Kh6j):\n raise NotImplementedError",
"def eTsH(YKHO):\n if YKHO.transaction:\n eOtH = YKHO.transaction\n YKHO.transaction = None\n YKHO.client.abort(YKHO.creds, eOtH, YKHO.environment)",
"def NJzf(YKHO):\n N1p7 = YKHO._cursor()... | [
"0.86475945",
"0.81431043",
"0.7892522",
"0.768434",
"0.75079095",
"0.74629664",
"0.72372913",
"0.70501405",
"0.70483804",
"0.700633",
"0.69700766",
"0.69644755",
"0.6964316",
"0.6853886",
"0.67994297",
"0.6794079",
"0.6698169",
"0.66607016",
"0.6650938",
"0.66473156",
"0.656... | 0.83558124 | 1 |
Tests if `dims`'s are all in a certain datapoint or event | def Vt7f(G6rA, Htse):
return Htse.items() <= {Csk6.key: Csk6.value for Csk6 in G6rA.dimensions}.items() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z1lS(Budp, Htse):\n for lmlm in Budp.datapoints:\n if Vt7f(lmlm, Htse):\n return True\n return False",
"def Xquo(Ghvf, Htse, eJTR):\n if isinstance(Htse, str):\n Htse = [Htse]\n if not all((tpio in Ghvf.dims for tpio in Htse)):\n raise oTVD(f'Your {eJTR} object mus... | [
"0.8156239",
"0.68704474",
"0.6826349",
"0.65650713",
"0.65379494",
"0.64003754",
"0.63909525",
"0.63733774",
"0.62324965",
"0.6057415",
"0.6051803",
"0.60475516",
"0.59331596",
"0.59127384",
"0.5875175",
"0.5873567",
"0.5860001",
"0.58521855",
"0.58350545",
"0.58019334",
"0.... | 0.81528336 | 1 |
Generate a presigned URL to share an S3 object | def G3tP(l7rj, tB6k, N850=3600):
kZdy = iVGz.client('s3')
try:
geh0 = kZdy.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=N850)
except nheh as e:
G9jH.error(tTpl)
return None
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G3tP(l7rj, tB6k):\n bo34 = G9jH.getLogger('SimpleReplayLogger')\n kZdy = iVGz.client('s3')\n try:\n geh0 = kZdy.generate_presigned_url('get_object', Params={'Bucket': l7rj, 'Key': tB6k}, ExpiresIn=604800)\n except nheh as e:\n bo34.error(f'Unable to generate presigned url for object {... | [
"0.781944",
"0.78191537",
"0.77588147",
"0.76814914",
"0.765886",
"0.7652143",
"0.76489365",
"0.7648256",
"0.76100934",
"0.7571346",
"0.73623234",
"0.73535985",
"0.73304003",
"0.7310247",
"0.7161862",
"0.71146256",
"0.70968693",
"0.7060428",
"0.7051806",
"0.7022448",
"0.70078... | 0.764653 | 8 |
This function prints and plots the confusion matrix. Normalization can be applied by setting `normalize=True`. | def LwSz(Bcwd, KndY, NkkI=False, leAC='Confusion matrix', iMGt=QrM1.cm.Blues):
QrM1.imshow(Bcwd, interpolation='nearest', cmap=iMGt)
QrM1.title(leAC)
QrM1.colorbar()
wIWT = oyIN.arange(len(KndY))
QrM1.xticks(wIWT, KndY, rotation=45)
QrM1.yticks(wIWT, KndY)
print(Bcwd)
knl1 = Bcwd.max() /... | {
"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 first_name of this CustomersCustomerDetails. | def c9ua(YKHO, c9ua):
YKHO._first_name = c9ua | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Lnj8(YKHO, c9ua):\n YKHO.first_name = c9ua",
"def c9ua(YKHO, mWFP):\n YKHO._first_name = mWFP",
"def c9ua(YKHO, c9ua):\n if c9ua is None:\n raise ValueError('Invalid value for `first_name`, must not be `None`')\n YKHO._first_name = c9ua",
"def c9ua(YKHO, c9ua: str):\n if c9ua is Non... | [
"0.8305615",
"0.7958499",
"0.790787",
"0.785923",
"0.7624185",
"0.76192254",
"0.76192254",
"0.70801145",
"0.7042829",
"0.6825898",
"0.6822573",
"0.66803163",
"0.66803163",
"0.658114",
"0.6570034",
"0.65158415",
"0.65158415",
"0.65158415",
"0.64734155",
"0.64638466",
"0.636971... | 0.8084701 | 7 |
Sets the middle_name of this CustomersCustomerDetails. | def w5Au(YKHO, w5Au):
YKHO._middle_name = w5Au | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cE2O(YKHO, cE2O):\n YKHO._payee_middle_name = cE2O",
"def j3RM(YKHO, j3RM):\n YKHO._candidate_middle_name = j3RM",
"def SCTU(YKHO, SCTU):\n YKHO._treasurer_middle_name = SCTU",
"def w5Au(YKHO):\n return YKHO._middle_name",
"def w5Au(YKHO):\n if 'middleName' in YKHO._prop_dict:\n r... | [
"0.7838598",
"0.7674446",
"0.7421287",
"0.66799533",
"0.66398764",
"0.61246294",
"0.58798045",
"0.57855934",
"0.5725253",
"0.56356424",
"0.56013435",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.5597218",
"0.557826... | 0.8255347 | 1 |
Sets the last_name of this CustomersCustomerDetails. | def zp3f(YKHO, zp3f):
YKHO._last_name = zp3f | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zsQz(YKHO, zp3f):\n YKHO.last_name = zp3f",
"def DHa6(YKHO, jBHA):\n YKHO.lastname = jBHA\n return YKHO",
"def jBHA(YKHO, jBHA):\n YKHO._lastname = jBHA",
"def zp3f(YKHO, zp3f: str):\n if zp3f is None:\n raise ValueError('Invalid value for `last_name`, must not be `None`')\n YKHO... | [
"0.79111814",
"0.747516",
"0.74227566",
"0.7416875",
"0.72741055",
"0.7096699",
"0.6786067",
"0.6786067",
"0.677398",
"0.6721251",
"0.6571933",
"0.63721734",
"0.6322141",
"0.6307508",
"0.6277102",
"0.6277102",
"0.6277102",
"0.6277102",
"0.61329526",
"0.60873127",
"0.6084744",... | 0.7684941 | 7 |
Sets the gender of this CustomersCustomerDetails. | def EE3v(YKHO, EE3v):
YKHO._gender = EE3v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EE3v(YKHO, EE3v):\n if EE3v is None:\n raise ValueError('Invalid value for `gender`, must not be `None`')\n YKHO._gender = EE3v",
"def EE3v(YKHO, EE3v: str):\n BbPm = ['male', 'female', 'unknown']\n if EE3v not in BbPm:\n raise ValueError('Invalid value for `gender` ({0}), must be o... | [
"0.74795514",
"0.7230272",
"0.65180004",
"0.62566483",
"0.61059487",
"0.60287803",
"0.59729916",
"0.59523076",
"0.59523076",
"0.5890485",
"0.58326703",
"0.5783696",
"0.5783696",
"0.5763776",
"0.56508315",
"0.5633348",
"0.5559526",
"0.55252856",
"0.53633034",
"0.53289926",
"0.... | 0.7440196 | 3 |
Sets the nationality of this CustomersCustomerDetails. | def oTSd(YKHO, oTSd):
YKHO._nationality = oTSd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dFzo(YKHO, dFzo):\n if dFzo is None:\n raise ValueError('Invalid value for `national_id_number`, must not be `None`')\n YKHO._national_id_number = dFzo",
"def XoqS(YKHO):\n qJWj = YKHO.df['Nationality'] == 'None'\n qJWj &= YKHO.df['Nationality'] == 'white'\n YKHO.df['Nationality'].loc[q... | [
"0.55606663",
"0.5252327",
"0.5056462",
"0.50123334",
"0.50123334",
"0.4835465",
"0.48059845",
"0.4804781",
"0.4784518",
"0.4779932",
"0.47406495",
"0.47338793",
"0.4603641",
"0.45996222",
"0.45830825",
"0.45790747",
"0.45350283",
"0.45350283",
"0.45350283",
"0.45350283",
"0.... | 0.80893993 | 0 |
Sets the email_address of this CustomersCustomerDetails. | def Hxmi(YKHO, Hxmi):
YKHO._email_address = Hxmi | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Hxmi(YKHO, Hxmi: str):\n if Hxmi is None:\n raise ValueError('Invalid value for `email_address`, must not be `None`')\n YKHO._email_address = Hxmi",
"def Hxmi(YKHO, Hxmi: 'str'):\n YKHO._attrs['emailAddress'] = Hxmi",
"def EFZl(YKHO, EFZl):\n YKHO._customer_email = EFZl",
"def D3lj(YKH... | [
"0.77724594",
"0.7656315",
"0.74749684",
"0.7094188",
"0.6948076",
"0.6948076",
"0.68792194",
"0.6862985",
"0.6734624",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.66809696",
"0.65836924",
"0... | 0.74234605 | 3 |
Sets the mobile_phone_number of this CustomersCustomerDetails. | def Fn_2(YKHO, Fn_2):
YKHO._mobile_phone_number = Fn_2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def mWMe(YKHO, mWMe):\n YKHO._sms_phone_number = mWMe",
"def iFjF(YKHO, iFjF):... | [
"0.6851552",
"0.6851552",
"0.6851552",
"0.6851552",
"0.6745689",
"0.64554965",
"0.6227442",
"0.6222927",
"0.61977",
"0.6170905",
"0.6033617",
"0.6027896",
"0.60239834",
"0.60163236",
"0.5977869",
"0.5976034",
"0.5944747",
"0.59215564",
"0.59024084",
"0.5820556",
"0.575636",
... | 0.8076317 | 0 |
Sets the business_phone_number of this CustomersCustomerDetails. | def Yjwf(YKHO, Yjwf):
YKHO._business_phone_number = Yjwf | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OY_H(YKHO, OY_H):\n YKHO._business_phone = OY_H",
"def Fn_2(YKHO, Fn_2):\n YKHO._mobile_phone_number = Fn_2",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, JSoq):\n YKHO._phone_number = JSoq",
"def JSoq(YKHO, J... | [
"0.80043817",
"0.689726",
"0.6703501",
"0.6703501",
"0.6703501",
"0.6703501",
"0.6525445",
"0.6285492",
"0.62703913",
"0.62146056",
"0.6212233",
"0.61882114",
"0.6081038",
"0.60771227",
"0.59615356",
"0.59452933",
"0.5857713",
"0.5794768",
"0.5755674",
"0.5736023",
"0.5700322... | 0.83947057 | 0 |
Sets the country_of_residence of this CustomersCustomerDetails. | def eS6t(YKHO, eS6t):
YKHO._country_of_residence = eS6t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wr1T(YKHO, Wr1T):\n YKHO._country_of_taxation = Wr1T",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._count... | [
"0.62134326",
"0.5904537",
"0.5904537",
"0.5904537",
"0.5904537",
"0.5904537",
"0.578149",
"0.578149",
"0.5609486",
"0.54422235",
"0.5323554",
"0.52635247",
"0.52225703",
"0.52034926",
"0.5157898",
"0.50283104",
"0.49988803",
"0.49264026",
"0.4876317",
"0.4834468",
"0.4757307... | 0.8604215 | 0 |
Sets the country_of_taxation of this CustomersCustomerDetails. | def Wr1T(YKHO, Wr1T):
YKHO._country_of_taxation = Wr1T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n YKHO._country = vxW9",
"def vxW9(YKHO, vxW9):\n if vxW9 is None:\n ... | [
"0.64811593",
"0.64811593",
"0.64811593",
"0.64811593",
"0.64811593",
"0.62914026",
"0.6145983",
"0.59439754",
"0.5926139",
"0.5926139",
"0.57574946",
"0.5606053",
"0.5584508",
"0.5584508",
"0.55298877",
"0.54650354",
"0.54129255",
"0.5390453",
"0.52840394",
"0.5247013",
"0.5... | 0.869901 | 0 |
Sets the accessibility of this CustomersCustomerDetails. | def DA23(YKHO, DA23):
YKHO._accessibility = DA23 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh",
"def m3Nh(YKHO, m3Nh):\n YKHO._customer = m3Nh",
"def yZkw(YKHO, wEf2):\n YKHO.swift_obj.BeneficiaryCustomer_A = wEf2\n YKHO.swift_obj.BeneficiaryCustomer_A.swiftTag = '59A'",
"def kxRn(YKHO, kxRn):\n YKHO._customer_accounts = kxRn",
"def CtKK(... | [
"0.59854394",
"0.59854394",
"0.5873079",
"0.5492937",
"0.5467153",
"0.52366567",
"0.52243924",
"0.5103308",
"0.5044263",
"0.5037117",
"0.5037117",
"0.5037117",
"0.5037117",
"0.49964228",
"0.49942473",
"0.49654508",
"0.49488732",
"0.4945913",
"0.49363002",
"0.4928246",
"0.4891... | 0.65838456 | 0 |
Sets the external_customer_id of this CustomersCustomerDetails. | def HuHV(YKHO, HuHV):
YKHO._external_customer_id = HuHV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def di0Y(YKHO, di0Y: str):\n YKHO._customer_id = di0Y",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def WhG7(YKHO, WhG7):\n YKHO._external_id = WhG7",
"def di0Y(YKHO, di0Y):\n YKHO._customer_id = di0Y",
"def di0Y(YKHO, di0Y):\n ... | [
"0.7305953",
"0.72004163",
"0.72004163",
"0.72004163",
"0.71991354",
"0.71991354",
"0.71991354",
"0.71991354",
"0.6935778",
"0.6787273",
"0.6744312",
"0.6579409",
"0.6579409",
"0.6507669",
"0.64287794",
"0.64287794",
"0.63784736",
"0.627573",
"0.6219224",
"0.61938924",
"0.607... | 0.90074754 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, mn4p):
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.80891633",
"0.80891633",
"0.8055254",
"0.7983334",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
"0.7967544",
... | 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 |
Yield successive nsized chunks from lst. | def eHxA(yv6U, exwG):
for YRbF in range(0, len(yv6U), exwG):
yield yv6U[YRbF:YRbF + exwG] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eHxA(YKHO, yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U: list, exwG: int):\n for YRbF in range(0, len(yv6U), exwG):\n yield yv6U[YRbF:YRbF + exwG]",
"def eHxA(yv6U, exwG):\n for YRbF in range(0, len(yv6U), exwG):\n yield... | [
"0.83071756",
"0.81939614",
"0.81910837",
"0.81910837",
"0.8190213",
"0.81267184",
"0.81218547",
"0.81218547",
"0.80773693",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",
"0.80533457",... | 0.80526286 | 34 |
Creates a new integration application with the given predefined fields. > Since integration applications are not globally cached, this method is only used for testing. | def QBDz(Emd4, dcLs, **nURT):
dcLs = cIej(dcLs)
if nURT:
Mol0 = JNLH(nURT, V2iV)
else:
Mol0 = None
YKHO = Emd4._create_empty(dcLs)
if Mol0 is not None:
for ZfUD in Mol0:
setattr(YKHO, *ZfUD)
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPKU(mWFP=None, JBZA=None):\n pass",
"def aPKU(YKHO, VpPs):\n YKHO.__obj = NEJV({WKvO: None for WKvO in YKHO.swagger_map.values()}, YKHO.swagger_types, YKHO.swagger_map)\n YKHO.application_name = VpPs",
"def LUif(YKHO):\n raise NotImplementedError",
"def LUif(duPr=None, KnXL=None, av29=None, ... | [
"0.68866974",
"0.6697084",
"0.6682052",
"0.6564417",
"0.6527781",
"0.6510537",
"0.63067305",
"0.62577343",
"0.62473416",
"0.6241801",
"0.62334615",
"0.6186646",
"0.6166283",
"0.616213",
"0.6150492",
"0.61045074",
"0.6075559",
"0.6040139",
"0.60330874",
"0.60062313",
"0.597440... | 0.5483432 | 73 |
Creates a new integration application with it's defaults attributes set. | def tjgB(Emd4, dcLs):
YKHO = object.__new__(Emd4)
YKHO.bot = RqMH
YKHO.description = None
YKHO.icon_type = EDw3
YKHO.icon_hash = 0
YKHO.id = dcLs
YKHO.name = ''
return YKHO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPKU(mWFP=None, JBZA=None):\n pass",
"def LUif(YKHO):\n raise NotImplementedError",
"def g8SW(cUQu):\n return LUif()",
"def LUif(YKHO):\n P4t4 = LUif()\n P4t4.config.from_object('project.config.TestingConfig')\n return P4t4",
"def LUif(duPr=None, KnXL=None, av29=None, AHoS=None, x2oj=... | [
"0.7422211",
"0.7268302",
"0.704719",
"0.70204574",
"0.6914714",
"0.6884702",
"0.6862294",
"0.68266577",
"0.6822985",
"0.6797056",
"0.678786",
"0.67686033",
"0.67582315",
"0.67528623",
"0.66682214",
"0.66651165",
"0.66542053",
"0.6631574",
"0.66305363",
"0.6569495",
"0.653342... | 0.0 | -1 |
Returns whether the two integration applications not equal. | def Vdqg(YKHO, Elif):
if type(YKHO) is not type(Elif):
return NotImplemented
return not YKHO._is_equal_same_type(Elif) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, CoB0):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, jW5a):\n return True\n return YKHO.to_dict() != Elif.to_dict()",
"def Vdqg(YKHO, Elif):\n if not isinstance(Elif, zwN1):... | [
"0.66759926",
"0.65329367",
"0.64395505",
"0.6405106",
"0.6316059",
"0.62460166",
"0.6228284",
"0.6162229",
"0.6098838",
"0.6093962",
"0.60642713",
"0.60609746",
"0.6057121",
"0.60545933",
"0.6020248",
"0.59985596",
"0.5993945",
"0.599142",
"0.5974639",
"0.597298",
"0.5972888... | 0.0 | -1 |
Helper method for ``.__eq__`` | def l_QA(YKHO, Elif):
GTHQ = YKHO.id
ouk8 = Elif.id
if (GTHQ and ouk8) and GTHQ != ouk8:
return False
if YKHO.bot != Elif.bot:
return False
if YKHO.description != Elif.description:
return False
if YKHO.icon_hash != Elif.icon_hash:
return False
if YKHO.icon_typ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YKHO, *qIxc):\n pass",
"def xa14(YK... | [
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577",
"0.85704577"... | 0.0 | -1 |
check if the user is an admin or not!!! | def m9nt(UzPC, NtEF):
with UzPC:
Z9rn = UzPC.execute(sRiJ, (NtEF,))
return Z9rn.fetchone() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jo_v(CBIr):\n return CBIr in PDtd",
"def uJBC(CBIr):\n return jDAC(CBIr, zJiV)",
"def _Kb1(CBIr):\n return CBIr.is_authenticated and CBIr.id == P4t4.config.get('ADMIN')",
"def l4un() -> bool:\n return gk2W.windll.shell32.IsUserAnAdmin() == 1",
"def ECYw(YKHO):\n if 'is_admin' in YKHO._pr... | [
"0.8573213",
"0.8475101",
"0.8473043",
"0.84493524",
"0.84264785",
"0.84081405",
"0.83872586",
"0.833915",
"0.83320326",
"0.8329772",
"0.8310006",
"0.8286416",
"0.8284868",
"0.8265757",
"0.82645243",
"0.8262248",
"0.8239181",
"0.8239181",
"0.82000273",
"0.81895196",
"0.808622... | 0.0 | -1 |
Calculate ngram frequencies and produce a dictionary of ngrams and their corresponding number of occurrences | def bpO1(l5Ny, exwG):
import re
fMtn = {}
SGOI = re.findall('[^\\.\\?!"]+', l5Ny)
for yAmx in SGOI:
IChv = yAmx.rsplit()
for YRbF in range(len(IChv) - exwG + 1):
u8Mh = ' '.join(IChv[YRbF:YRbF + exwG])
if not u8Mh in fMtn:
fMtn[u8Mh] = 1
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def q0q_(hIub):\n BWz1 = {}\n for a1PO in hIub:\n H5ew = WKO2(a1PO)\n if H5ew in BWz1:\n BWz1[H5ew] += 1\n else:\n BWz1[H5ew] = 1\n return BWz1",
"def T2JX(pCSA, DuqQ):\n _pNa = {}\n for SMR4 in pCSA:\n try:\n _pNa[SMR4] = _pNa[SMR4] + 1... | [
"0.79891557",
"0.7857336",
"0.7783312",
"0.77044034",
"0.76469004",
"0.7638157",
"0.762675",
"0.7568774",
"0.75609875",
"0.7554546",
"0.7539285",
"0.7391873",
"0.73289806",
"0.73245054",
"0.7268549",
"0.723006",
"0.7177322",
"0.716242",
"0.709203",
"0.7089071",
"0.70752305",
... | 0.8058038 | 0 |
This view function would make relation between two tables {course, student} | def axMg(QePW, NtEF, BLfq):
if QePW.method == 'GET':
try:
CBIr = mv1M.objects.get(username=NtEF)
if kmxW(CBIr) == False:
return jnRN({'login': 'User must login'}, status=403)
except:
return jnRN({'login': 'User must login'}, status=403)
try... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zuCy() -> str:\n try:\n NCls: iHv3.Connection = iHv3.connect(YkUy)\n xDcj: str = \"SELECT s.Name, s.CWID, g.Course, g.Grade, i.Name AS 'Instructor' FROM grades2 g JOIN students2 s ON g.StudentCWID = s.CWID JOIN instructors2 i ON g.InstructorCWID = i.CWID ORDER BY s.Name\"\n except iHv3.Oper... | [
"0.59009725",
"0.5735704",
"0.56924784",
"0.5623209",
"0.5613662",
"0.55026543",
"0.54459375",
"0.5301102",
"0.52688026",
"0.5267228",
"0.52559483",
"0.52368224",
"0.5234847",
"0.5228516",
"0.5210882",
"0.51934314",
"0.5160771",
"0.51443815",
"0.512921",
"0.5109042",
"0.51052... | 0.5107789 | 20 |
Connection name of the Cloud SQL instance used in connection strings. | def o0oP(YKHO) -> str:
return qe4Y.get(YKHO, 'connection_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o0oP(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'connection_name')",
"def o0oP(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'connection_name')",
"def N5CR(YKHO) -> str:\n return qe4Y.get(YKHO, 'database_name')",
"def qZO1(YKHO):\n return YKHO.system",
"def YtR6(YKHO):\n ... | [
"0.7578365",
"0.7495166",
"0.7066039",
"0.7023311",
"0.6915121",
"0.68364185",
"0.67796266",
"0.6760535",
"0.6710732",
"0.66921216",
"0.66772515",
"0.6676848",
"0.66679984",
"0.65840596",
"0.65778583",
"0.653352",
"0.6490825",
"0.6488062",
"0.64445394",
"0.64014375",
"0.63923... | 0.8180838 | 0 |
This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead. | def ajCK(YKHO) -> str:
qmLP.warn('This field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.', DeprecationWarning)
qe4Y.log.warn('etag is deprecated: This field is deprecated and will be removed from a future version of the API. Use the `sett... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vx3s(YKHO) -> str:\n return qe4Y.get(YKHO, 'settings_version')",
"def vS3I(YKHO) -> str:\n qmLP.warn('Deprecated. This field is unused.', DeprecationWarning)\n qe4Y.log.warn('output_version_format is deprecated: Deprecated. This field is unused.')\n return qe4Y.get(YKHO, 'output_version_format')"... | [
"0.71056426",
"0.57814825",
"0.57646996",
"0.57646996",
"0.5756316",
"0.5720282",
"0.56936365",
"0.5636769",
"0.5512045",
"0.5453071",
"0.5451519",
"0.5387966",
"0.5338438",
"0.5281644",
"0.51921695",
"0.5164179",
"0.5159576",
"0.5150706",
"0.51228905",
"0.5107623",
"0.510261... | 0.5757715 | 4 |
The current software version on the instance. | def hhdL(YKHO) -> str:
return qe4Y.get(YKHO, 'maintenance_version') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tJi2(YKHO) -> str:\n return YKHO.data.get(URbA.SOFTWARE_VERSION)",
"def DpZH(YKHO):\n return YKHO.get_current_version()",
"def tJi2(YKHO) -> str:\n return YKHO.camera_info['main_sw_version']",
"def FRiN(YKHO) -> str | None:\n return YKHO.status.get('VERSION')",
"def kaPv():\n k8wH.echo(u... | [
"0.8517211",
"0.8213725",
"0.82053864",
"0.80839765",
"0.80575514",
"0.80145174",
"0.7984864",
"0.7929071",
"0.78002846",
"0.78002846",
"0.78002846",
"0.78002846",
"0.77896225",
"0.77896225",
"0.77896225",
"0.7777845",
"0.77438027",
"0.7736233",
"0.76651967",
"0.7648641",
"0.... | 0.0 | -1 |
The name of the instance which will act as primary in the replication setup. | def nUC3(YKHO) -> str:
return qe4Y.get(YKHO, 'master_instance_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f3L7(YKHO) -> str:\n return qe4Y.get(YKHO, 'primary_name_server')",
"def nUC3(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'master_instance_name')",
"def nUC3(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'master_instance_name')",
"def xuAm(YKHO) -> qe4Y.Output[str]:\n return ... | [
"0.7978969",
"0.79443485",
"0.77534837",
"0.73839325",
"0.7220999",
"0.71795344",
"0.71286964",
"0.70841205",
"0.7050748",
"0.7050748",
"0.70285773",
"0.6989401",
"0.69086534",
"0.6898071",
"0.6873269",
"0.6859762",
"0.68521506",
"0.68521506",
"0.68521506",
"0.68521506",
"0.6... | 0.82035476 | 0 |
The maximum disk size of the instance in bytes. | def W117(YKHO) -> str:
return qe4Y.get(YKHO, 'max_disk_size') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W117(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'max_disk_size')",
"def W117(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'max_disk_size')",
"def M44i(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'max_size_bytes')",
"def y_yk(YKHO):\n return YKHO._maximum_size",
"def O1_... | [
"0.8789356",
"0.84711045",
"0.806168",
"0.80428505",
"0.80195016",
"0.79826194",
"0.79826194",
"0.7939504",
"0.79164445",
"0.77908987",
"0.7760818",
"0.7760818",
"0.7721978",
"0.7719844",
"0.7706931",
"0.76886636",
"0.7660995",
"0.7658464",
"0.7597128",
"0.7510604",
"0.747562... | 0.9081589 | 0 |
Name of the Cloud SQL instance. This does not include the project ID. | def mWFP(YKHO) -> str:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._client.project_name + '/instances/' + YKHO.instance_id",
"def phH8(YKHO):\n return YKHO._cloud_name",
"def mWFP(YKHO):\n vzeF.debug(YKHO._shelly_cloud_device_name + ' >>> ' + YKHO._shelly_cloud_entity_name + ' >>> name() >>> ' + YKHO._shelly_cloud_device_name)\n retur... | [
"0.8241332",
"0.7281119",
"0.7165251",
"0.714144",
"0.70118266",
"0.7008288",
"0.6999755",
"0.69459665",
"0.69459665",
"0.6933721",
"0.69153196",
"0.69146127",
"0.6870695",
"0.6865202",
"0.6862345",
"0.6860159",
"0.6777417",
"0.6777417",
"0.6777417",
"0.6777417",
"0.6752142",... | 0.67018473 | 95 |
The start time of any upcoming scheduled maintenance for this instance. | def dNGF(YKHO) -> 'outputs.SqlScheduledMaintenanceResponse':
return qe4Y.get(YKHO, 'scheduled_maintenance') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gSgQ(YKHO) -> qe4Y.Output['outputs.BrokerMaintenanceWindowStartTime']:\n return qe4Y.get(YKHO, 'maintenance_window_start_time')",
"def SWox(YKHO):\n return YKHO.__start",
"def SWox(YKHO):\n pass",
"def gSgQ(YKHO) -> h8nf[qe4Y.Input['BrokerMaintenanceWindowStartTimeArgs']]:\n return qe4Y.get(Y... | [
"0.74400115",
"0.73701787",
"0.7295396",
"0.72721374",
"0.72721374",
"0.7230234",
"0.72214323",
"0.72214323",
"0.72214323",
"0.72214323",
"0.72214323",
"0.72214323",
"0.72214323",
"0.72214323",
"0.7218906",
"0.7218906",
"0.71962094",
"0.7183786",
"0.71649396",
"0.71412766",
"... | 0.0 | -1 |
The URI of this resource. | def b_Ox(YKHO) -> str:
return qe4Y.get(YKHO, 'self_link') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j8eK(YKHO) -> str:\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def j8eK(YKHO):\n return YKHO._uri",
"def zFc... | [
"0.8812683",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8718146",
"0.8695291",
"0.8589555",
"0.8529888",
"0.83778185",
"0.8267541",
"0.82543814",
"0.81543136",
"0.8079777",
"0.80435663",
"0.8043164",
"0.8011471",
"0.7937294",
"0.786632",
"0.786632",
... | 0.0 | -1 |
The service account email address assigned to the instance.\\This property is readonly. | def s_B7(YKHO) -> str:
return qe4Y.get(YKHO, 'service_account_email_address') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s_B7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'service_account_email_address')",
"def s_B7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service_account_email_address')",
"def Hxmi(YKHO) -> str:\n return YKHO._email_address",
"def UMVm(YKHO) -> str:\n return qe4Y.get(YKHO... | [
"0.83406913",
"0.8234184",
"0.7929402",
"0.780462",
"0.7664471",
"0.7594189",
"0.7594189",
"0.7594189",
"0.7594189",
"0.75925606",
"0.7534449",
"0.7515774",
"0.7507855",
"0.7493686",
"0.7493686",
"0.74833745",
"0.74733686",
"0.7444991",
"0.7444991",
"0.7444991",
"0.74355906",... | 0.8541408 | 0 |
The current serving state of the Cloud SQL instance. | def QTBn(YKHO) -> str:
return qe4Y.get(YKHO, 'state') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jGRS(YKHO):\n return YKHO.microblaze.state",
"def QTBn(YKHO) -> str:\n return str(YKHO.coordinator.server_status)",
"def VLTN(YKHO):\n return YKHO._conn_state",
"def kd8x(YKHO):\n return YKHO._server_status",
"def jGRS(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n nPrm = YKHO.coor... | [
"0.7107327",
"0.66442436",
"0.65739805",
"0.65454876",
"0.6507662",
"0.64906347",
"0.63984823",
"0.63689315",
"0.6310545",
"0.6296189",
"0.62279505",
"0.62262386",
"0.62054956",
"0.6194882",
"0.6148098",
"0.61463165",
"0.6121624",
"0.6107632",
"0.6106236",
"0.6083054",
"0.606... | 0.0 | -1 |
What Operating System (and subsystem like glibc / musl) | def Z5O9():
pLEr = a9EH.system()
if pLEr == 'Linux':
return 'unknown-linux-musl'
elif pLEr == 'Darwin':
return 'apple-darwin'
else:
return 'unknown' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def midy():\n return 'Linux'",
"def V3HY():\n return a9EH.uname()",
"def l_2d() -> str:\n Oz1B = a9EH.system()\n if Oz1B not in ['Linux', 'Darwin']:\n raise ValueError(f'Unsupported system {Oz1B}')\n return Oz1B",
"def uR89():\n muwp = HwRy.platform\n if muwp.startswith('darwin'):... | [
"0.82733005",
"0.80446076",
"0.7926044",
"0.7875094",
"0.7826965",
"0.78214175",
"0.7788717",
"0.7762154",
"0.7761913",
"0.7761913",
"0.7640118",
"0.75874496",
"0.7577642",
"0.75635034",
"0.75508714",
"0.7542637",
"0.74925375",
"0.7449908",
"0.7442454",
"0.73649895",
"0.73423... | 0.8034302 | 2 |
Calculate backward variables, beta | def aw6j(YKHO):
YKHO.beta = VNqG((YKHO.noOfEmmittingStates + 2, YKHO.T + 1))
for r845 in range(YKHO.noOfEmmittingStates + 1):
YKHO.beta[r845, -1] = YKHO.transitionMatrix[r845, -1]
YKHO.beta[-1, -1] = 1.0
for a1PO in range(YKHO.T, 1, -1):
for r845 in range(YKHO.noOfEmmittingStates, 0, -1)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m2hj(YKHO, BNBw, pan_):\n DB_8 = pan_.shape[0]\n jUGl = BNBw.shape[0]\n QjMC = BNBw.shape[1] - 1\n vC9B = RJut(pan_, QjMC)\n DB_8 = vC9B.shape[0]\n UqYS = oyIN.zeros((DB_8, jUGl))\n UqYS[DB_8 - 1, jUGl - 1] = BNBw[jUGl - 1, vC9B[-1]]\n UqYS[DB_8 - 2, jUGl - 1] = BNBw[jUGl - 1, vC9B[-2]]... | [
"0.7600645",
"0.7175207",
"0.6988643",
"0.69643766",
"0.693024",
"0.69014424",
"0.6851599",
"0.6828256",
"0.6827102",
"0.6827102",
"0.67804056",
"0.6713795",
"0.6698114",
"0.6691583",
"0.6668204",
"0.6661083",
"0.66240364",
"0.6602664",
"0.65791625",
"0.6574539",
"0.6564472",... | 0.75941527 | 1 |
Update the estimate of the means by most likely state sequence | def bSSZ(YKHO):
for YRbF in range(YKHO.noOfEmmittingStates):
YKHO.outputProbabilities[YRbF, 0] = YKHO.observationSequence[0, waS5(YKHO.mostLikelyPath == YRbF + 1)[1] - 1].mean() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BmyW(YKHO):\n for YRbF in range(YKHO.noOfEmmittingStates):\n YKHO.outputProbabilities[YRbF, 0] = (YKHO.L[YRbF, :] * YKHO.observationSequence).sum() / YKHO.L[YRbF, :].sum()",
"def QdZT(YKHO, WKvO):\n YKHO.N += 1\n YKHO.estimate_mean = (1.0 - 1.0 / YKHO.N) * YKHO.estimate_mean + 1.0 / YKHO.N * ... | [
"0.702312",
"0.6723062",
"0.66803205",
"0.6574336",
"0.6315462",
"0.62802726",
"0.62591046",
"0.6211821",
"0.61975795",
"0.6075116",
"0.6057215",
"0.6030276",
"0.6020416",
"0.6011865",
"0.59668756",
"0.59221566",
"0.5915007",
"0.59119415",
"0.5909659",
"0.59086126",
"0.590659... | 0.6997723 | 1 |
To check behaviour outside assumptions (only non zero values present in the value array). | def iSsV(AfOn: str, ekHH: int, zIjt: np.ndarray) -> None:
cmAD = c07B(AfOn, zIjt, ekHH)
assert oyIN.isnan(cmAD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mZY8(YKHO):\n kLQb = []\n W061 = YKHO.mc._correct_p_values([])\n Xgmb(W061, kLQb)",
"def XgNX(YKHO):\n yht1 = -1\n if len(YKHO.data.shape) == 3:\n yht1 = 0\n VIPT = YKHO.data.shape[0]\n lEHr = YKHO.data.shape[1]\n Pyrc = YKHO.data.shape[2]\n for YRbF in range... | [
"0.704151",
"0.7010622",
"0.67766255",
"0.66620517",
"0.66324633",
"0.65897065",
"0.6588676",
"0.64770323",
"0.64769727",
"0.6462951",
"0.6459503",
"0.64378023",
"0.6425688",
"0.639491",
"0.6377455",
"0.63636255",
"0.63585263",
"0.634342",
"0.6333039",
"0.63285303",
"0.631572... | 0.0 | -1 |
Set the value of the field named `name` | def set(YKHO, XkN1, mWFP, BWXx):
YKHO._kvs.set(YKHO._key(XkN1, mWFP), BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oSgC(YKHO, mWFP):\n YKHO.name = str(mWFP)",
"def oSgC(YKHO, mWFP):\n YKHO._name = mWFP",
"def oSgC(YKHO, mWFP):\n YKHO._validator.validate_one('name', iyhn['name'], mWFP)\n YKHO._ifAttributes['name'] = str(mWFP)",
"def oSgC(YKHO, mWFP):\n YKHO.name = mWFP",
"def oSgC(YKHO, mWFP):\n YK... | [
"0.83291584",
"0.8215365",
"0.8170925",
"0.8158544",
"0.8158544",
"0.8158544",
"0.8158544",
"0.80777335",
"0.80777335",
"0.79417807",
"0.79240745",
"0.78924996",
"0.7888099",
"0.7888099",
"0.7863152",
"0.78591704",
"0.7853768",
"0.77348673",
"0.7711768",
"0.76391464",
"0.7639... | 0.0 | -1 |
Reset the value of the field named `name` to the default | def PTpj(YKHO, XkN1, mWFP):
YKHO._kvs.delete(YKHO._key(XkN1, mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO, mWFP: str=None):\n if mWFP is None:\n YKHO._settings = dict(**dhAc)\n else:\n if mWFP not in dhAc:\n raise KeyError(\"No setting name '%s'\" % (mWFP,))\n YKHO._settings.pop(mWFP, None)\n if mWFP in dhAc:\n YKHO._settings[mWFP] = dhAc[mWFP]\n ... | [
"0.73151505",
"0.71024376",
"0.69275767",
"0.69275767",
"0.67324024",
"0.64915645",
"0.64795375",
"0.64506096",
"0.64506096",
"0.6422404",
"0.64194",
"0.63846135",
"0.638185",
"0.6352338",
"0.63272524",
"0.63272524",
"0.63272524",
"0.63272524",
"0.63205564",
"0.62738657",
"0.... | 0.0 | -1 |
Retrieve the XBlock `usage_id` associated with this aside usage id. | def oTsc(YKHO, ehB8):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oTsc(YKHO, ehB8):\n return ehB8.usage_id",
"def rr_i(Emd4, IBYC):\n return Emd4._usage_index[IBYC]",
"def a46w(YKHO, IBYC):\n try:\n return YKHO._usages[IBYC]\n except KeyError:\n raise e6r8(repr(IBYC))",
"def a46w(YKHO, IBYC):\n return IBYC.definition_key",
"def rcYA(YKHO,... | [
"0.7758011",
"0.72278583",
"0.64360005",
"0.5950501",
"0.59241974",
"0.5887003",
"0.5800017",
"0.56733704",
"0.56495035",
"0.56250805",
"0.554048",
"0.55207425",
"0.54712385",
"0.5428823",
"0.53993464",
"0.5372639",
"0.5342543",
"0.5338152",
"0.53200084",
"0.5308408",
"0.5287... | 0.70452815 | 2 |
Retrieve the XBlock `definition_id` associated with this aside definition id. | def Mb2G(YKHO, ehB8):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mb2G(YKHO, ehB8):\n return ehB8.definition_id",
"def a46w(YKHO, IBYC):\n return IBYC.definition_key",
"def a46w(YKHO, IBYC):\n raise NotImplementedError()",
"def MvVt(YKHO, VXBI, _aQz):\n g4dY = YKHO._get_bulk_ops_record(VXBI)\n if g4dY.active:\n q_DO = g4dY.definitions.get(_aQz)\n ... | [
"0.79421026",
"0.72368866",
"0.65804136",
"0.6521845",
"0.64925605",
"0.64839524",
"0.6339115",
"0.6278169",
"0.6278169",
"0.6244461",
"0.618396",
"0.6138995",
"0.6039859",
"0.59404963",
"0.588665",
"0.58811927",
"0.5878892",
"0.583891",
"0.5823166",
"0.5808129",
"0.5792293",... | 0.71588004 | 2 |
Retrieve the XBlockAside `aside_type` associated with this aside usage id. | def VeIW(YKHO, ehB8):
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VeIW(YKHO, ehB8):\n return ehB8.aside_type",
"def _nxn(YKHO, ehB8):\n return ehB8.aside_type",
"def C_4v(FpMT, EjAa):\n return FpMT.runtime.get_aside_of_type(FpMT, EjAa)",
"def eKlz(YKHO, XkN1, EjAa):\n if YKHO.id_generator is None:\n raise Exception('Runtimes must be supplied with an ... | [
"0.8583418",
"0.8076896",
"0.78638333",
"0.7550033",
"0.7312473",
"0.70443755",
"0.6547722",
"0.6357063",
"0.6218048",
"0.58316195",
"0.56430614",
"0.5473934",
"0.5430183",
"0.54080695",
"0.5381477",
"0.5381477",
"0.5374741",
"0.537455",
"0.5064285",
"0.49807513",
"0.4925944"... | 0.7842348 | 3 |
Access the FieldData passed in the constructor. Deprecated in favor of a 'fielddata' service. | def tPDH(YKHO):
qmLP.warn('Runtime.field_data is deprecated', aGb9, stacklevel=2)
return YKHO._deprecated_per_instance_field_data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tPDH(YKHO, tPDH):\n qmLP.warn('Runtime.field_data is deprecated', aGb9, stacklevel=2)\n YKHO._deprecated_per_instance_field_data = tPDH",
"def DwqG(YKHO, mWFP):\n if mWFP not in YKHO.__examples:\n raise ValueError('Field does not exist: ' + mWFP)\n return YKHO.__examples[mWFP]",
"def iIb... | [
"0.68837225",
"0.6424844",
"0.6270142",
"0.62539226",
"0.6159358",
"0.6159358",
"0.6159358",
"0.6037586",
"0.603509",
"0.6027825",
"0.6027825",
"0.6027825",
"0.6027825",
"0.600641",
"0.60039747",
"0.5993337",
"0.59855485",
"0.59672326",
"0.5962135",
"0.5962135",
"0.5962135",
... | 0.74714136 | 0 |
Set the current user ID. Deprecated in favor of a 'user' service. | def uJjO(YKHO, uJjO):
qmLP.warn('Runtime.user_id is deprecated', XY4w, stacklevel=2)
YKHO._deprecated_per_instance_user_id = uJjO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zF8s(PObu):\n WY3t.user_id = PObu",
"def suQC(YKHO, QTiD):\n YKHO.authentication.userId = QTiD",
"def r2U1(YKHO, r2U1):\n YKHO._id_user = r2U1",
"def CBIr(YKHO, CBIr):\n YKHO.user_id = CBIr.get_id()",
"def n10L(YKHO, n10L):\n YKHO._userid = n10L",
"def uJjO(YKHO, uJjO):\n YKHO._user... | [
"0.7938785",
"0.7769784",
"0.75011295",
"0.7175245",
"0.7160245",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.71352917",
"0.6780253",
"... | 0.71398705 | 5 |
Create an XBlock instance in this runtime. The `usage_id` is used to find the XBlock class and data. | def gyco(YKHO, IBYC, Kl42=None):
t074 = YKHO.id_reader.get_definition_id(IBYC)
try:
bgCG = YKHO.id_reader.get_block_type(t074)
except A1VK:
raise e6r8(repr(IBYC))
sjXb = Wnge(YKHO.user_id, bgCG, t074, IBYC)
XkN1 = YKHO.construct_xblock(bgCG, sjXb, for_parent=Kl42)
return XkN1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eM1A(e2h5, DCKO=None):\n gupG = kqd0.load_class(e2h5.block_name)\n Qvn0 = rC4x(gupG, DCKO, e2h5)\n C3ST = S4Ce(wjT6, gupG, DCKO, e2h5)\n XkN1 = gupG(Qvn0, C3ST)\n return XkN1",
"def KnQ7(YKHO, IBYC=None):\n Re1i = FM6F()\n if IBYC is None:\n IBYC = '_auto%d' % len(YKHO.all_blocks)... | [
"0.76471823",
"0.7514667",
"0.6623194",
"0.65381235",
"0.64809114",
"0.63301814",
"0.63223976",
"0.62157744",
"0.6134866",
"0.61307055",
"0.606519",
"0.6044189",
"0.5939296",
"0.5902435",
"0.5809827",
"0.5807884",
"0.57990485",
"0.5783026",
"0.5744557",
"0.56991005",
"0.56639... | 0.6345367 | 5 |
Create a new usage id from an XML dom node. | def JnSY(YKHO, Q6kx, H7rZ, wPWn=None):
if wPWn is not None:
qmLP.warn('Passing an id_generator directly is deprecated in favor of constructing the Runtime with the id_generator', DeprecationWarning, stacklevel=3)
wPWn = wPWn or YKHO.id_generator
bgCG = Q6kx.tag
Q6kx.attrib.pop('xblock-family', N... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SWsX(Emd4, S14i):\n MpW0 = w47T(S14i, ZTWe.ID)\n return Emd4(MpW0)",
"def SWsX(Emd4, S14i):\n MpW0 = w47T(S14i, FlmR.Elements.ID)\n Wxnj = rCxB(S14i, FlmR.Elements.CODE)\n mWFP = rCxB(S14i, FlmR.Elements.NAME)\n BrWG = w47T(S14i, FlmR.Elements.INSTANCES_TOTAL)\n return Emd4(MpW0, Wxnj, m... | [
"0.6371269",
"0.6049929",
"0.5878882",
"0.5818626",
"0.58085644",
"0.5799599",
"0.57901216",
"0.5776098",
"0.57418257",
"0.5712618",
"0.5634056",
"0.5417328",
"0.53826225",
"0.53826225",
"0.5323692",
"0.5311761",
"0.53018266",
"0.53018266",
"0.53018266",
"0.52426976",
"0.5200... | 0.67137915 | 0 |
Return instances for all of the asides that will decorate this `block`. | def P2yC(YKHO, XkN1):
Huhq = [YKHO.get_aside_of_type(XkN1, EjAa) for EjAa in YKHO.applicable_aside_types(XkN1)]
return [kb59 for kb59 in Huhq if kb59.should_apply_to_block(XkN1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def all(Emd4):\n for WKvO in Emd4._dbag:\n yield Emd4(**Emd4._dbag[WKvO])",
"def Vs4Q(YKHO):\n return [YKHO]",
"def Vs4Q(YKHO):\n return [YKHO]",
"def Ug9b(Emd4):\n ee8c = set()\n for bf9h in Emd4._instances:\n YEnM = bf9h()\n if YEnM is not None:\n yield YEnM\n... | [
"0.56513435",
"0.55858827",
"0.55858827",
"0.54629815",
"0.54489243",
"0.5424294",
"0.5411907",
"0.54080003",
"0.5395361",
"0.53692824",
"0.5352983",
"0.5323484",
"0.5268873",
"0.52532274",
"0.52332526",
"0.5225097",
"0.52216053",
"0.521371",
"0.51980096",
"0.51901674",
"0.51... | 0.63061476 | 0 |
Return the aside of the given aside_type which might be decorating this `block`. | def eKlz(YKHO, XkN1, EjAa):
if YKHO.id_generator is None:
raise Exception('Runtimes must be supplied with an IdGenerator to load XBlockAsides.')
IBYC = XkN1.scope_ids.usage_id
CwxH = YKHO.load_aside_type(EjAa)
GT9Q = YKHO.id_reader.get_definition_id(IBYC)
O_23, LxJd = YKHO.id_generator.creat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def C_4v(FpMT, EjAa):\n return FpMT.runtime.get_aside_of_type(FpMT, EjAa)",
"def VeIW(YKHO, ehB8):\n return ehB8.aside_type",
"def _nxn(YKHO, ehB8):\n return ehB8.aside_type",
"def VeIW(YKHO, ehB8):\n raise NotImplementedError()",
"def rcYA(YKHO, LxJd):\n EjAa = YKHO.id_reader.get_aside_type... | [
"0.7896758",
"0.71537155",
"0.706774",
"0.68641186",
"0.6752555",
"0.6706851",
"0.6083649",
"0.5765583",
"0.5576364",
"0.55277556",
"0.5527143",
"0.5435288",
"0.5389746",
"0.504856",
"0.48576647",
"0.48488268",
"0.4807231",
"0.4807231",
"0.4662693",
"0.4596836",
"0.4545115",
... | 0.76510596 | 1 |
Handles any calls to the specified `handler_name`. Provides a fallback handler if the specified handler isn't found. | def nVrR(YKHO, XkN1, vpFP, QePW, ZI14=''):
DCgT = getattr(XkN1, vpFP, None)
if DCgT and getattr(DCgT, '_is_xblock_handler', False):
dixj = DCgT(QePW, ZI14)
else:
uvXI = getattr(XkN1, 'fallback_handler', None)
if uvXI and getattr(uvXI, '_is_xblock_handler', False):
dixj = ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wyqm(YKHO, tTpl, mWFP, DCgT):\n tO9_ = '' if DCgT else ' (no handler)'\n S0MI.debug('Monitoring error handling %s %s: %s', mWFP, tO9_, tTpl)\n if DCgT:\n try:\n DCgT(tTpl)\n except Exception as handler_exception:\n S0MI.error('Monitoring exception %s fail: %s', mWFP... | [
"0.6269601",
"0.60956556",
"0.59843504",
"0.59441805",
"0.58619446",
"0.58327657",
"0.58169",
"0.5816621",
"0.5782106",
"0.57263947",
"0.5712578",
"0.5675827",
"0.5673483",
"0.56482244",
"0.56310713",
"0.55748713",
"0.55747414",
"0.5569639",
"0.55649185",
"0.55390835",
"0.551... | 0.6300936 | 0 |
Query for data in the tree, starting from `block`. Returns a Query object with methods for navigating the tree and retrieving information. | def xDcj(YKHO, XkN1):
raise NotImplementedError('Querying is an experimental feature') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _gb0(YKHO, XkN1, pmON):\n\n class BadPath(Exception):\n \"\"\"Bad path exception thrown when path cannot be found.\"\"\"\n dixj = YKHO.query(XkN1)\n YnkN, f6vL, ofzz, _Roc = range(4)\n QTBn = YnkN\n _d3B = XKBn(('dotdot', '\\\\.\\\\.'), ('dot', '\\\\.'), ('slashslash', '//'), ('slash', '/... | [
"0.5971489",
"0.57624656",
"0.5457333",
"0.5435106",
"0.53858924",
"0.525556",
"0.5243837",
"0.5209347",
"0.51643944",
"0.51634365",
"0.5157472",
"0.51526695",
"0.5067893",
"0.49828783",
"0.4978797",
"0.49713552",
"0.49528736",
"0.4936563",
"0.49121588",
"0.48703235",
"0.4845... | 0.6875884 | 0 |
Iterator that tokenizes `text` and yields up tokens as they are found | def hUZ1(YKHO, l5Ny):
for kUBT in YKHO.regex.finditer(l5Ny):
mWFP = kUBT.lastgroup
yield (mWFP, kUBT.group(mWFP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TqNK(YKHO, l5Ny):\n for kUBT in YKHO.word_pattern.finditer(l5Ny):\n GIN8 = kUBT.group(0)\n yield GIN8.lower()",
"def wr3U(l5Ny):\n return JVRB.findall(l5Ny)",
"def yu5g(l5Ny):\n for HKwb in l5Ny.find_all('p'):\n EO3d = True\n for yAmx in HKwb.find_all('s'):\n ... | [
"0.7068761",
"0.69617236",
"0.6926864",
"0.6902314",
"0.6900396",
"0.68888336",
"0.6883105",
"0.68530685",
"0.6820278",
"0.68167007",
"0.67917883",
"0.67813146",
"0.67766625",
"0.67563444",
"0.67188275",
"0.66937095",
"0.6693036",
"0.66860807",
"0.6657734",
"0.6629646",
"0.66... | 0.65617883 | 26 |
Get all Agents for an Account. | def lYNB(YKHO, Z31E, KUnM=None):
return YKHO.rest_request.get('accounts/' + str(Z31E) + '/agents', KUnM) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def DZGO(YKHO, cuiw: 'Session') -> x1iM[tHSi]:\n YKHO.__get_dn(cuiw)\n Aofo = cuiw.soapclient.get_accounts_by_owner(YKHO.dn)\n return [tHSi(cuiw, account=Mkmy) for Mkmy in Aofo]",
"def DZGO(YKHO):\n return YKHO.accounts.all()",
"def zQkS():\n L8Py = tHSi.query.all()\n print(L8Py)\n return ... | [
"0.59961605",
"0.59441656",
"0.5861199",
"0.5848032",
"0.5844847",
"0.58298874",
"0.57276475",
"0.57118624",
"0.5671839",
"0.5639285",
"0.5635771",
"0.5625765",
"0.56173086",
"0.5608358",
"0.55644363",
"0.55444694",
"0.55366045",
"0.5517207",
"0.5495683",
"0.5494268",
"0.5466... | 0.63724303 | 0 |
Constructs a ResNet50 model. | def uwZX(zDcn, earB, mL4f=False, **B2fa):
C3ST = S1Vm(MF6R, [3, 4, 6, 3], zDcn, earB, **B2fa)
if mL4f:
vj_J = ht2j.load('./resnet50.pth')
xHdd(C3ST, vj_J)
else:
vj_J = ht2j.load('./full_precision_records/weights/model_best.pth.tar')['state_dict']
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uwZX(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet50']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST",
"def uwZX(**B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 6, 3], **B2fa)\n return C3ST",
"def uwZX(m... | [
"0.7557751",
"0.75548905",
"0.74759895",
"0.74759895",
"0.74759895",
"0.74759895",
"0.74557495",
"0.7386862",
"0.7386862",
"0.73601955",
"0.7355623",
"0.724254",
"0.724254",
"0.7191571",
"0.7158499",
"0.7101107",
"0.70165247",
"0.69687796",
"0.68687624",
"0.6822836",
"0.68010... | 0.65116143 | 27 |
Test that making a request without credentials returns an error. | def gDN2(YKHO, d4y1):
T4Wy = V2iS()
bD7m = gxEw('api-v3:public-omis:payment:collection', kwargs={'public_token': T4Wy.public_token})
geh0 = d4y1.post(bD7m, data={})
assert geh0.status_code == jGRS.HTTP_401_UNAUTHORIZED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l2KT(YKHO):\n geh0 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def Ceeu(YKHO):\n with i9zE('username', 'password') as x0hE:\n YKHO.setSessionResponse(401)\n with YKHO.assertRaises(yiLL):\n nPrm = x0hE.call(**YKHO.build_parameters)",
"def IQWi(m... | [
"0.76834047",
"0.7580964",
"0.7548029",
"0.7492346",
"0.73547703",
"0.7311838",
"0.72872835",
"0.7266877",
"0.7266877",
"0.72648716",
"0.7245739",
"0.7245739",
"0.7225133",
"0.72181296",
"0.72181296",
"0.7207371",
"0.71722025",
"0.7159647",
"0.7152177",
"0.71133715",
"0.70791... | 0.0 | -1 |
Test that making a request without the whitelisted client IP returns an error. | def jDQ1(YKHO, Fxwn):
T4Wy = V2iS()
bD7m = gxEw('api-v3:public-omis:payment:collection', kwargs={'public_token': T4Wy.public_token})
Fxwn.set_http_x_forwarded_for('1.1.1.1')
geh0 = Fxwn.get(bD7m)
assert geh0.status_code == jGRS.HTTP_401_UNAUTHORIZED | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EIHG(YKHO, d4y1):\n WL52 = p9tP()\n d4y1.ip.side_effect = Ykrc(401, {'error': 'forbidden', 'status': 'error'})\n aEqx = 'API error: forbidden\\n'\n Aofo = WL52.invoke(V0Dt.ip, ['0.0.0.0'])\n assert Aofo.exit_code == -1\n assert Aofo.output == aEqx",
"def xXDU(YKHO, rHiQ, NKcE):\n bD7m = ... | [
"0.71329945",
"0.7048689",
"0.7009928",
"0.6852092",
"0.6828968",
"0.6817714",
"0.67207855",
"0.66665757",
"0.6645594",
"0.66363966",
"0.663225",
"0.6615574",
"0.661419",
"0.651803",
"0.6503831",
"0.6492607",
"0.64659625",
"0.64466906",
"0.64456666",
"0.64052135",
"0.63671494... | 0.7089949 | 1 |
Test that if the order doesn't exist, the endpoint returns 404. | def J5h2(YKHO, Fxwn):
bD7m = gxEw('api-v3:public-omis:payment:collection', kwargs={'public_token': '1234-abcd-' * 5})
geh0 = Fxwn.get(bD7m)
assert geh0.status_code == jGRS.HTTP_404_NOT_FOUND | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quqQ(YKHO):\n with F3LG(order_number=YKHO.ORDER_NUMBER, status=404):\n geh0 = YKHO.client.get(YKHO.path)\n assert geh0.status_code == 404",
"def NOfT(YKHO):\n _hkX = YKHO.app.get('/orders/0')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_404_NOT_FOUND)",
"def NOfT(YKHO):\n _hkX = YKH... | [
"0.8645534",
"0.85581493",
"0.85581493",
"0.8315565",
"0.80223227",
"0.7815422",
"0.7406854",
"0.7243161",
"0.7233888",
"0.72086084",
"0.71683776",
"0.7116842",
"0.70938146",
"0.6939156",
"0.68123424",
"0.6807663",
"0.68064237",
"0.6761023",
"0.6728476",
"0.67253214",
"0.6682... | 0.8285757 | 4 |
Test that if the order is not in an allowed state, the endpoint returns 404. | def ItOn(YKHO, Bdbb, Fxwn):
T4Wy = V2iS(status=Bdbb)
bD7m = gxEw('api-v3:public-omis:payment:collection', kwargs={'public_token': T4Wy.public_token})
geh0 = Fxwn.get(bD7m)
assert geh0.status_code == jGRS.HTTP_404_NOT_FOUND | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def quqQ(YKHO):\n with F3LG(order_number=YKHO.ORDER_NUMBER, status=404):\n geh0 = YKHO.client.get(YKHO.path)\n assert geh0.status_code == 404",
"def J5h2(YKHO, Fxwn):\n bD7m = gxEw('api-v3:public-omis:payment:collection', kwargs={'public_token': '1234-abcd-' * 5})\n geh0 = Fxwn.get(bD7m)\n ... | [
"0.72447544",
"0.7141826",
"0.70186913",
"0.70186913",
"0.70097524",
"0.6926317",
"0.6702969",
"0.66441876",
"0.63968515",
"0.6361119",
"0.6322541",
"0.6246056",
"0.62384236",
"0.623619",
"0.6233009",
"0.62329876",
"0.62031615",
"0.6186357",
"0.6157161",
"0.6086669",
"0.60585... | 0.78816575 | 0 |
Returns two ``(lineno, col_offset)`` tuples for the start and end of the given node. If the positions can't be determined, or the nodes don't correspond to any particular text, returns ``(1, 0)`` for both. ``padded`` corresponds to the ``padded`` argument to ``ast.get_source_segment()``. This means that if ``padded`` i... | def aFSb(YKHO, Q6kx, H5Km):
raise NotImplementedError | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFSb(YKHO, Q6kx, H5Km):\n if not hasattr(Q6kx, 'first_token'):\n return ((1, 0), (1, 0))\n yKcO = Q6kx.first_token.start\n Os4s = Q6kx.last_token.end\n if H5Km and any((QFUb(a1PO, eOtH.NEWLINE) for a1PO in YKHO.get_tokens(Q6kx))):\n yKcO = (yKcO[0], 0)\n return (yKcO, Os4s)",
"de... | [
"0.7613213",
"0.712093",
"0.6876001",
"0.68570465",
"0.5050924",
"0.4976951",
"0.4957857",
"0.49526757",
"0.48910186",
"0.48901916",
"0.48655295",
"0.48281074",
"0.47816372",
"0.47567505",
"0.4664858",
"0.4634707",
"0.46186876",
"0.45755643",
"0.45272633",
"0.44824618",
"0.44... | 0.68340755 | 4 |
The filename that was parsed | def Ux0P(YKHO):
return YKHO._filename | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ae2a(YKHO):\n pass",
"def Ux0P(YKHO):\n Ux0P, YBcr = Hy7s.path.splitext(YKHO.file.name)\n return Ux0P.split('/')[-1]",
"def Ux0P(YKHO):\n return YKHO._filename",
"def yFjF(YKHO):\n return YKHO.filename",
"def Ux0P(YKHO):\n return YKHO._filename",
"def Ux0P(YKHO):\n return YKHO._f... | [
"0.78871846",
"0.77411497",
"0.76536465",
"0.757722",
"0.7566554",
"0.7566554",
"0.7566554",
"0.7566554",
"0.7535803",
"0.75262773",
"0.7520206",
"0.7485077",
"0.74766815",
"0.7417852",
"0.74166214",
"0.7396382",
"0.7389725",
"0.7387223",
"0.73798007",
"0.73798007",
"0.737980... | 0.71176994 | 44 |
Returns two ``(lineno, col_offset)`` tuples for the start and end of the given node. If the positions can't be determined, or the nodes don't correspond to any particular text, returns ``(1, 0)`` for both. ``padded`` corresponds to the ``padded`` argument to ``ast.get_source_segment()``. This means that if ``padded`` i... | def aFSb(YKHO, Q6kx, H5Km):
if not hasattr(Q6kx, 'first_token'):
return ((1, 0), (1, 0))
yKcO = Q6kx.first_token.start
Os4s = Q6kx.last_token.end
if H5Km and any((QFUb(a1PO, eOtH.NEWLINE) for a1PO in YKHO.get_tokens(Q6kx))):
yKcO = (yKcO[0], 0)
return (yKcO, Os4s) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hdCE(YKHO, Q6kx, H5Km=True):\n yKcO, Os4s = YKHO.get_text_positions(Q6kx, H5Km)\n return (YKHO._line_numbers.line_to_offset(*yKcO), YKHO._line_numbers.line_to_offset(*Os4s))",
"def CpBe(YKHO, Q6kx, H5Km):\n if HwRy.version_info[:2] < (3, 8):\n raise AssertionError('This method should only be ... | [
"0.7121393",
"0.68775433",
"0.6858732",
"0.68359655",
"0.5048872",
"0.49797606",
"0.49556705",
"0.4952399",
"0.48919713",
"0.4891382",
"0.4862992",
"0.48273867",
"0.47827742",
"0.47550952",
"0.46643692",
"0.4636216",
"0.46174127",
"0.45772454",
"0.45282903",
"0.44812423",
"0.... | 0.7614878 | 0 |
Returns two ``(lineno, col_offset)`` tuples for the start and end of the given node. If the positions can't be determined, or the nodes don't correspond to any particular text, returns ``(1, 0)`` for both. ``padded`` corresponds to the ``padded`` argument to ``ast.get_source_segment()``. This means that if ``padded`` i... | def aFSb(YKHO, Q6kx, H5Km):
if getattr(Q6kx, '_broken_positions', None):
return ((1, 0), (1, 0))
if CVpM(Q6kx):
return YKHO._get_text_positions_tokenless(Q6kx, H5Km)
return YKHO.asttokens.get_text_positions(Q6kx, H5Km) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aFSb(YKHO, Q6kx, H5Km):\n if not hasattr(Q6kx, 'first_token'):\n return ((1, 0), (1, 0))\n yKcO = Q6kx.first_token.start\n Os4s = Q6kx.last_token.end\n if H5Km and any((QFUb(a1PO, eOtH.NEWLINE) for a1PO in YKHO.get_tokens(Q6kx))):\n yKcO = (yKcO[0], 0)\n return (yKcO, Os4s)",
"de... | [
"0.7613213",
"0.712093",
"0.6876001",
"0.68340755",
"0.5050924",
"0.4976951",
"0.4957857",
"0.49526757",
"0.48910186",
"0.48901916",
"0.48655295",
"0.48281074",
"0.47816372",
"0.47567505",
"0.4664858",
"0.4634707",
"0.46186876",
"0.45755643",
"0.45272633",
"0.44824618",
"0.44... | 0.68570465 | 3 |
Controls the IQ gain trim over a range from 0.5 to 0.5 dB. | def Yyp3(YKHO):
return YKHO._read(17, 2, 252) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t8Oc(YKHO, wEf2):\n YKHO.playbackGain = 10 ** (5.0 * (wEf2 - YKHO.speedDial.maximum() / 2) / YKHO.speedDial.maximum())",
"def mb4J(YKHO, BWXx: int):\n YKHO._gain = BWXx",
"def dLCT(YKHO, BWXx):\n YKHO._logger.debug('setting gain: %7.2f', BWXx)\n YKHO._gaindb = BWXx\n YKHO._update()",
"def ... | [
"0.6397116",
"0.63239473",
"0.59188634",
"0.57702553",
"0.5760457",
"0.5730897",
"0.5646702",
"0.5614922",
"0.557427",
"0.55321383",
"0.5526878",
"0.5516378",
"0.5513648",
"0.54951537",
"0.54736984",
"0.54729307",
"0.54448986",
"0.5441061",
"0.54317546",
"0.54021925",
"0.5395... | 0.6556339 | 0 |
r"""Exports mentor schedule CSV file. Args | def CUlw(YKHO, ESQh, hHld=None, _3tt=True, ttLs=True):
if hHld is None:
hHld = YKHO.get_matches(_3tt)
deEy = YKHO.get_mentor_centered_view(hHld, ttLs)
_dZ1 = []
for kswA in sorted(YKHO.mentor_info['email']):
Qm6b = YKHO.mentor_info['email'].index(kswA)
if deEy[kswA]:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def X2Ye():\n try:\n E3vZ()\n scld()\n print('\\nSchedule generated, check working directory')\n except Exception as e:\n print('Exception found' + str(tTpl))",
"def FEsi(YKHO):\n with open(YKHO.fname, 'w') as eHNT:\n WJI9 = m6_J.writer(eHNT, dialect='excel')\n ... | [
"0.7239752",
"0.6597585",
"0.64198995",
"0.6349476",
"0.6309529",
"0.6306237",
"0.6295962",
"0.62842685",
"0.62080544",
"0.618555",
"0.61667824",
"0.6153778",
"0.6129584",
"0.6103896",
"0.60934186",
"0.6075212",
"0.60714626",
"0.6067669",
"0.60539705",
"0.6053714",
"0.6044705... | 0.0 | -1 |
Transform route to a URL string with the given url and query parameters. | def CwD8(YKHO, SGPK: dict={}, o2VW: dict={}) -> str:
TLhg = YKHO.url.split('/')
yJKw = '/'
for bD7m in TLhg:
if bD7m:
if '@' in bD7m:
bD7m = bD7m.replace('@', '').split(':')[0]
if isinstance(SGPK, dict):
yJKw += str(SGPK[bD7m]) + '/'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qpdj(PsCT, NArs):\n yvT9 = PsCT\n if NArs:\n D_wC = sorted(jKi7.iteritems(NArs))\n yvT9 += '?' + uRlK.urlencode(D_wC)\n return yvT9",
"def CwD8(QePW):\n ht58, RYr6, pmON, xDcj, vBtp = NoPH(hTgi(QePW.url))\n xDcj = _Ibt(xDcj)\n for H5ew, BWXx in QePW.data_and_params.iteritems()... | [
"0.7437549",
"0.6625053",
"0.65596825",
"0.6208792",
"0.6196825",
"0.61550367",
"0.61385447",
"0.5994257",
"0.5937162",
"0.5922733",
"0.58541536",
"0.583377",
"0.58200955",
"0.5802566",
"0.57911074",
"0.5769753",
"0.5756",
"0.5756",
"0.5743795",
"0.5739435",
"0.570777",
"0.... | 0.6291562 | 3 |
Returns True if the stack is empty; False otherwise | def lsmZ(YKHO):
return len(YKHO.stack) == 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return len(YKHO.the_stack) == 0",
"def lsmZ(YKHO) -> bool:\n if len(YKHO.stack) == 0:\n return True\n else:\n return False",
"def FBfn(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return len(YKHO.stack) == 0",
"def lsmZ(YKHO):\n return YKHO.sta... | [
"0.92037237",
"0.9180508",
"0.91406024",
"0.91275316",
"0.9116923",
"0.90550864",
"0.9052511",
"0.8943755",
"0.89294434",
"0.8924256",
"0.8862904",
"0.8841065",
"0.8835616",
"0.8835616",
"0.8822036",
"0.87964004",
"0.8790472",
"0.87837857",
"0.8738746",
"0.86769456",
"0.86769... | 0.90786946 | 6 |
Returns True if the queue is empty; False otherwise | def lsmZ(YKHO):
return YKHO.queue.empty() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FBfn(YKHO):\n return YKHO.queue == []",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.queue) == 0",
"def FBfn(YKHO):\n return len(YKHO.__queue) > 0",
"def FBfn(YKHO):\n return len(YKHO.the_queue) == 0",
"def lsmZ(YKHO) -> bool:\n if YKHO.queue.e... | [
"0.91906184",
"0.9106868",
"0.9106868",
"0.91054034",
"0.90929186",
"0.9089246",
"0.90318966",
"0.90305626",
"0.8976901",
"0.8976538",
"0.8973808",
"0.88919264",
"0.88877845",
"0.8872881",
"0.88220835",
"0.88220835",
"0.8801634",
"0.8798873",
"0.87174255",
"0.86821836",
"0.86... | 0.7996516 | 41 |
Returns the active item | def JZlU(YKHO, kSdD=True):
YKHO.sleeping.reveille()
if not YKHO.stack.empty():
pass
elif not YKHO.backlog.empty():
YKHO.stack.push(YKHO.backlog.get())
else:
raise gGq6.Empty
assert not YKHO.stack.empty(), 'BUG: empty stack'
if kSdD:
return YKHO.stack.pop()
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PmVz(YKHO):\n return YKHO.__active",
"def PmVz(YKHO):\n return YKHO.__active",
"def PmVz(YKHO):\n return YKHO.__active",
"def PmVz(YKHO):\n return YKHO.__active",
"def D6B2(YKHO):\n return YKHO._active",
"def S4Gn(YKHO):\n return YKHO._current",
"def D6B2(YKHO):\n z2aV = YKHO.v... | [
"0.74419355",
"0.74419355",
"0.74419355",
"0.74419355",
"0.7421165",
"0.7326577",
"0.7323334",
"0.7132318",
"0.7132318",
"0.7111639",
"0.69387925",
"0.6937808",
"0.68554187",
"0.68554187",
"0.678091",
"0.6652583",
"0.6652024",
"0.66221154",
"0.6580986",
"0.6566904",
"0.655792... | 0.6017014 | 59 |
Returns the current task without removing it from the stack | def H2Is(YKHO):
try:
return YKHO.active_item(remove=False)
except gGq6.Empty:
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OIQs():\n return H2Is",
"def OIQs():\n return H2Is",
"def WWS5():\n return n2K3[0] if len(n2K3) != 0 else None",
"def fTjn(YKHO):\n return YKHO.get_current_step().get_last_task()",
"def H2Is() -> o2Vr:\n try:\n return Td0_.get()\n except LookupError:\n raise RuntimeError... | [
"0.8184563",
"0.8184563",
"0.7669096",
"0.75990134",
"0.75904626",
"0.7282467",
"0.7191658",
"0.69429064",
"0.69429064",
"0.69429064",
"0.69429064",
"0.69429064",
"0.69291824",
"0.69046277",
"0.6863734",
"0.6845726",
"0.68107516",
"0.67989314",
"0.674292",
"0.6586547",
"0.656... | 0.83684415 | 0 |
Returns a string representation of HEREModel. By default this is the same as as_json_string(). | def zAg0(YKHO):
return YKHO.as_json_string() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oD7C(YKHO) -> str:\n return qQXR.dumps(FZ5p(YKHO))",
"def zAg0(YKHO):\n return YKHO.asJsonString()",
"def yLCI(YKHO):\n return qQXR.dumps(YKHO.to_json(), cls=Y4Gi)",
"def yLCI(YKHO) -> str:\n return qQXR.dumps(YKHO.to_json())",
"def yLCI(YKHO) -> str:\n return qQXR.dumps(YKHO.to_json())"... | [
"0.7772324",
"0.7586851",
"0.75795597",
"0.7560939",
"0.7560939",
"0.75006235",
"0.74918807",
"0.727085",
"0.7259125",
"0.7201628",
"0.7168366",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
"0.7161533",
... | 0.7589163 | 1 |
Create a new instance based on a JSON dict. Any kwargs should be supplied by the inherited, calling class. | def kuMX(Emd4, nPrm, **B2fa):
zgjV = nPrm.copy()
if B2fa:
for H5ew, wEf2 in B2fa.items():
zgjV[H5ew] = wEf2
Z9rn = Emd4(**zgjV)
Z9rn._json = nPrm
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uROc(Emd4, **B2fa):\n return Emd4(**B2fa)",
"def lYpi(qQXR):\n raise NotImplementedError('Returns instance')",
"def pktP(Emd4: Type[T], BWXx: JsonResponse, **B2fa) -> 'BaseModel':\n I0U6 = [jzdc.lstrip('_') for jzdc in pjQn(Emd4)]\n if Emd4.temp_attrs:\n I0U6.extend(Emd4.temp_attrs)\n ... | [
"0.8324179",
"0.72269773",
"0.72127616",
"0.7211281",
"0.7205846",
"0.69819576",
"0.6978607",
"0.6957752",
"0.6957752",
"0.6957752",
"0.6912844",
"0.68905836",
"0.6869268",
"0.6865999",
"0.68384755",
"0.6837064",
"0.6837064",
"0.6837064",
"0.6837064",
"0.6837064",
"0.6837064"... | 0.7854041 | 1 |
Create a new instance based on a JSON dict. Any kwargs should be supplied by the inherited, calling class. | def kuMX(Emd4, nPrm, QhEc, **B2fa):
zgjV = nPrm.copy()
if B2fa:
for H5ew, wEf2 in B2fa.items():
zgjV[H5ew] = wEf2
Z9rn = Emd4(QhEc, **zgjV)
Z9rn._json = nPrm
return Z9rn | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uROc(Emd4, **B2fa):\n return Emd4(**B2fa)",
"def kuMX(Emd4, nPrm, **B2fa):\n zgjV = nPrm.copy()\n if B2fa:\n for H5ew, wEf2 in B2fa.items():\n zgjV[H5ew] = wEf2\n Z9rn = Emd4(**zgjV)\n Z9rn._json = nPrm\n return Z9rn",
"def lYpi(qQXR):\n raise NotImplementedError('Ret... | [
"0.83253974",
"0.7853526",
"0.7226002",
"0.7213214",
"0.7205354",
"0.6980891",
"0.6977916",
"0.69576895",
"0.69576895",
"0.69576895",
"0.69103247",
"0.6891212",
"0.6870051",
"0.68661606",
"0.68384963",
"0.6834707",
"0.6834707",
"0.6834707",
"0.6834707",
"0.6834707",
"0.683470... | 0.72114956 | 4 |
This is a simple use for any driver. The url may encode the scheme to choose the driver, otherwise it will use the default one. | def open(bD7m, *qIxc, **B2fa):
ht58 = r0wv
if '://' in bD7m:
ht58, bD7m = bD7m.split('://')
return IL5G[ht58](bD7m, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sYcB(j8eK: str) -> str:\n SQ3m = j8eK.split('://', 1)\n if '+' in SQ3m[0]:\n return j8eK\n else:\n E_qD = fDO7.get(SQ3m[0], None)\n if E_qD:\n SQ3m[0] += f'+{E_qD}'\n return '://'.join(SQ3m)",
"def aDzh(bD7m='neo4j', Qfop='neo4j/neo4j'):\n from neo4j import Grap... | [
"0.6490953",
"0.6073188",
"0.5887861",
"0.57911825",
"0.5647161",
"0.56092966",
"0.5596016",
"0.5469282",
"0.5338693",
"0.52964175",
"0.5259368",
"0.5253535",
"0.5246862",
"0.52280605",
"0.52275074",
"0.52264553",
"0.5185059",
"0.51845527",
"0.51452476",
"0.5123311",
"0.51232... | 0.64531296 | 1 |
Checks product URL format for this scraper instance is valid. | def lhj1(YKHO):
r8hN = ZbWC.match('^http://www\\.flipkart\\.com/.*/p/.*$', YKHO.product_page_url)
return not not r8hN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lhj1(YKHO):\n r8hN = ZbWC.match('^http://www.tesco.com/direct/[0-9a-zA-Z-]+/[0-9-]+\\\\.prd$', YKHO.product_page_url)\n exwG = ZbWC.match('^http://www.tesco.com/.*$', YKHO.product_page_url)\n return not not r8hN or not not exwG",
"def KSw8(YKHO):\n pass",
"def MgiZ(YKHO) -> bool:\n xzCw = Qn... | [
"0.74237686",
"0.69638944",
"0.6621842",
"0.6447235",
"0.6317951",
"0.6262852",
"0.61665505",
"0.6132594",
"0.6129728",
"0.61058044",
"0.60950494",
"0.60522604",
"0.60082245",
"0.59717137",
"0.596899",
"0.5958545",
"0.5957772",
"0.592074",
"0.5893412",
"0.58432484",
"0.582849... | 0.773419 | 0 |
Given a word, return the first onset and last coda. word wordlength token (as a string) to be parsed. Returns tuple consisting of first onset and last coda. | def hfK9(YKHO, GIN8):
umj5 = YKHO._sonority_map(GIN8)
Jb4B = YKHO._initial_onset(umj5)
QdD3 = YKHO._final_coda(umj5)
Tp_a = YKHO.from_map(Jb4B, GIN8)
J8fz = YKHO.from_reverse_map(QdD3, GIN8)
return (Tp_a, J8fz) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(YKHO, GIN8):\n GIN8 = YKHO.son.segs(GIN8)\n umj5 = YKHO._sonority_map(GIN8)\n umj5 = YKHO._mark_offglides(umj5)\n umj5 = YKHO._adjust_anom_fric_cod(umj5)\n umj5 = YKHO._adjust_anom_fric_ons(umj5)\n Jb4B = YKHO._initial_onset(umj5)\n QdD3 = YKHO._final_coda(umj5)\n Tp_a = YKHO.from_... | [
"0.6705851",
"0.6090394",
"0.60118496",
"0.5939784",
"0.587222",
"0.5806324",
"0.57107127",
"0.56693965",
"0.5668625",
"0.56522405",
"0.56342864",
"0.56331456",
"0.56329733",
"0.5623904",
"0.5599231",
"0.55851895",
"0.54834336",
"0.5472344",
"0.54613686",
"0.54551",
"0.544664... | 0.7014094 | 0 |
Given a word, return the first onset and last coda. word wordlength token (as a string) to be parsed. Returns tuple consisting of first onset and last coda. | def hfK9(YKHO, GIN8):
GIN8 = YKHO.son.segs(GIN8)
umj5 = YKHO._sonority_map(GIN8)
umj5 = YKHO._mark_offglides(umj5)
umj5 = YKHO._adjust_anom_fric_cod(umj5)
umj5 = YKHO._adjust_anom_fric_ons(umj5)
Jb4B = YKHO._initial_onset(umj5)
QdD3 = YKHO._final_coda(umj5)
Tp_a = YKHO.from_map(Jb4B, GIN... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hfK9(YKHO, GIN8):\n umj5 = YKHO._sonority_map(GIN8)\n Jb4B = YKHO._initial_onset(umj5)\n QdD3 = YKHO._final_coda(umj5)\n Tp_a = YKHO.from_map(Jb4B, GIN8)\n J8fz = YKHO.from_reverse_map(QdD3, GIN8)\n return (Tp_a, J8fz)",
"def kB7J(YKHO, GIN8: Word) -> AzJI[int, int]:\n l5Ny: str = YKHO.t... | [
"0.70137626",
"0.60917956",
"0.60117054",
"0.5940242",
"0.58720136",
"0.5807405",
"0.57118523",
"0.56696093",
"0.5667671",
"0.56524855",
"0.56355464",
"0.56328315",
"0.5631227",
"0.5623632",
"0.5598229",
"0.55855936",
"0.54834896",
"0.54721445",
"0.5461418",
"0.545575",
"0.54... | 0.6705349 | 1 |
Creates a transpose convolutional layer, with optional batch normalization. | def RzIw(DYuh, tYiq, Ot1W, _0fC=2, dvgN=1, OEry=True, J1Nm='instance_norm'):
fhcK = []
fhcK.append(U78l.ConvTranspose2d(DYuh, tYiq, Ot1W, _0fC, dvgN, bias=False))
if OEry == True and J1Nm == 'instance_norm':
fhcK.append(U78l.InstanceNorm2d(tYiq))
elif OEry == True and J1Nm == 'batch_norm':
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(Fi_Q, yIp6, Kz5H, *qIxc, **B2fa):\n return nhQi(Fi_Q, yIp6.input_shape[1], yIp6.filter_size, *qIxc, stride=yIp6.stride, crop=yIp6.pad, W=yIp6.W, flip_filters=not yIp6.flip_filters, nonlinearity=Kz5H, **B2fa)",
"def OOwo(YKHO, oLRV, UU6M):\n return YKHO.add_layer(OOwo, oLRV, UU6M)",
"def p5LS(g4y... | [
"0.7461155",
"0.73468494",
"0.708482",
"0.70811796",
"0.70408463",
"0.7025",
"0.69208527",
"0.69168323",
"0.6877133",
"0.6840369",
"0.68396986",
"0.68199533",
"0.6751397",
"0.6663342",
"0.66554505",
"0.6619359",
"0.66144425",
"0.6569245",
"0.65642184",
"0.65393883",
"0.653219... | 0.5611899 | 79 |
Fills the input Tensor with values drawn from a truncated normal distribution. | def tpY1(vhpA, JBMS=0.0, M1Jx=1.0, jzdc=-2.0, Fg_i=2.0):
return CQyn(vhpA, JBMS, M1Jx, jzdc, Fg_i) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nYtd(vhpA, JBMS=0, z2bo=1):\n B2mP = vhpA.numel()\n rr0Y = ht2j.randint(0, 2 ** 32 - 1, (1, 1)).view(-1).item()\n R3yv = nRUW(rr0Y)\n gGnb = pWm4.rvs(a=-2, b=2, loc=JBMS, scale=z2bo, size=B2mP, random_state=R3yv)\n gGnb = gGnb.reshape(tuple(vhpA.size()))\n jupk = ht2j.from_numpy(gGnb).type_as... | [
"0.68335545",
"0.6820871",
"0.6677048",
"0.6677048",
"0.65054333",
"0.6387188",
"0.60703975",
"0.60413134",
"0.5951866",
"0.5925373",
"0.5920319",
"0.59181076",
"0.59148264",
"0.59148264",
"0.5899481",
"0.58042073",
"0.5788339",
"0.5775336",
"0.57611173",
"0.57421774",
"0.573... | 0.6554195 | 4 |
Forward function for RSTBWithInputConv. | def KVH6(YKHO, WKvO):
return YKHO.main(WKvO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO, input):\n WKvO = YKHO.conv(input)\n WKvO = YKHO.bn(WKvO)\n yvT9 = YKHO.act(WKvO)\n return yvT9",
"def KVH6(YKHO, input):\n A3OT, lHmx = input.size()\n if lHmx != YKHO.bs:\n YKHO.bs = lHmx\n YKHO.reset()\n with gnTf(YKHO.training):\n zhTA = YKHO.encoder_wit... | [
"0.7021191",
"0.69806397",
"0.6886363",
"0.6869562",
"0.6855901",
"0.6854136",
"0.68250126",
"0.68167174",
"0.6815",
"0.67716396",
"0.67714065",
"0.6767677",
"0.6755188",
"0.6753085",
"0.6753085",
"0.6752486",
"0.6743255",
"0.6740206",
"0.67159706",
"0.6715583",
"0.6705854",
... | 0.0 | -1 |
Init weights for models. | def vB93(YKHO, mL4f=None, U3Fm=True):
if isinstance(mL4f, str):
bo34 = UKxV()
Nh79(YKHO, mL4f, strict=U3Fm, logger=bo34)
elif mL4f is not None:
raise TypeError(f'"pretrained" must be a str or None. But received {type(mL4f)}.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vB93(C3ST):\n ...",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()",
"def C0Lv(YKHO):\n pass",
"def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)",
"def vJuA(YKHO):\n raise NotImplementedError",
"def sTi3(YKHO):\n dIoi.WeightsInitializer.initialize_layer_or... | [
"0.8984091",
"0.8641805",
"0.86267096",
"0.86172",
"0.85792875",
"0.85725594",
"0.84296715",
"0.8325935",
"0.8232147",
"0.8045925",
"0.8013931",
"0.8010816",
"0.79973304",
"0.7983617",
"0.7977511",
"0.7962253",
"0.7962253",
"0.7962253",
"0.7959221",
"0.79509515",
"0.7947236",... | 0.0 | -1 |
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. | def kLcZ(Dn78, f0BO, ieZh):
SyTj = (Dn78[:, :2] + Dn78[:, 2:]) / 2 - f0BO[:, :2]
SyTj /= ieZh[0] * f0BO[:, 2:]
fmMW = (Dn78[:, 2:] - Dn78[:, :2]) / f0BO[:, 2:]
fmMW = ht2j.log(fmMW) / ieZh[1]
return ht2j.cat([SyTj, fmMW], 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(N6Z1, f0BO, ieZh):\n oUSw = oyIN.concatenate((f0BO[:, :2] + N6Z1[:, :2] * ieZh[0] * f0BO[:, 2:4], f0BO[:, 2:4] * oyIN.exp(N6Z1[:, 2:4] * ieZh[1])), 1)\n oUSw[:, :2] = oUSw[:, :2] - oUSw[:, 2:4] / 2\n oUSw[:, 2:4] = oUSw[:, 2:4] + oUSw[:, :2]\n return oyIN.concatenate([oUSw, N6Z1[:, 4:]], 1)\n ... | [
"0.6235257",
"0.5658466",
"0.5565145",
"0.55338675",
"0.55313486",
"0.5494903",
"0.5465958",
"0.54217523",
"0.53959715",
"0.5362389",
"0.5340697",
"0.53281265",
"0.5271463",
"0.5257666",
"0.52557886",
"0.52517486",
"0.522925",
"0.5208523",
"0.51988745",
"0.5143706",
"0.513749... | 0.48748165 | 56 |
Encode the variances from the priorbox layers into the ground truth boxes we have matched (based on jaccard overlap) with the prior boxes. | def U3sd(Dn78, f0BO, ieZh):
Dn78 = ht2j.reshape(Dn78, (Dn78.size(0), 5, 2))
qB5N = f0BO[:, 0].unsqueeze(1).expand(Dn78.size(0), 5).unsqueeze(2)
WTZx = f0BO[:, 1].unsqueeze(1).expand(Dn78.size(0), 5).unsqueeze(2)
CXe0 = f0BO[:, 2].unsqueeze(1).expand(Dn78.size(0), 5).unsqueeze(2)
Eq9w = f0BO[:, 3].un... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x8I_(N6Z1, f0BO, ieZh):\n oUSw = oyIN.concatenate((f0BO[:, :2] + N6Z1[:, :2] * ieZh[0] * f0BO[:, 2:4], f0BO[:, 2:4] * oyIN.exp(N6Z1[:, 2:4] * ieZh[1])), 1)\n oUSw[:, :2] = oUSw[:, :2] - oUSw[:, 2:4] / 2\n oUSw[:, 2:4] = oUSw[:, 2:4] + oUSw[:, :2]\n return oyIN.concatenate([oUSw, N6Z1[:, 4:]], 1)\n ... | [
"0.6234259",
"0.5660315",
"0.5567395",
"0.5538085",
"0.55339146",
"0.5497187",
"0.5469487",
"0.54250485",
"0.5396358",
"0.5363414",
"0.53424776",
"0.53301036",
"0.5275891",
"0.5260728",
"0.5258463",
"0.52534086",
"0.5230127",
"0.5210229",
"0.5199591",
"0.51451266",
"0.5139138... | 0.47383144 | 84 |
Convert prior_boxes to (xmin, ymin, xmax, ymax) representation for comparison to point form ground truth data. | def taIA(oUSw):
return ht2j.cat((oUSw[:, :2] - oUSw[:, 2:] / 2, oUSw[:, :2] + oUSw[:, 2:] / 2), 1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MrEF(YKHO):\n Qjmf = {'conv4_3': 38, 'conv7': 19, 'conv8_2': 10, 'conv9_2': 5}\n qp5d = {'conv4_3': 0.1, 'conv7': 0.21, 'conv8_2': 0.255, 'conv9_2': 0.3}\n i_sL = {'conv4_3': [0.5], 'conv7': [0.55], 'conv8_2': [0.6], 'conv9_2': [0.66]}\n ACtM = list(Qjmf.keys())\n Z_jY = []\n for G1Hx, jqqY i... | [
"0.6725058",
"0.66532594",
"0.64312464",
"0.63890076",
"0.6330887",
"0.6244093",
"0.6211704",
"0.60598165",
"0.59242463",
"0.5915014",
"0.58319116",
"0.58136916",
"0.58081603",
"0.58081603",
"0.57952434",
"0.57759565",
"0.57605946",
"0.57117975",
"0.5710929",
"0.56834435",
"0... | 0.0 | -1 |
Match each prior box with the ground truth box of the highest jaccard overlap, encode the bounding boxes, then return the matched indices corresponding to both confidence and location preds. | def kUBT(gwAu, ush8, f0BO, ieZh, Crrw, YzyN, A8Y9, PrmM, admR, or8S):
PZIW = OnKj(ush8, taIA(f0BO))
kAsU, tYsh = PZIW.max(1, keepdim=True)
qKYW = kAsU[:, 0] >= 0.2
nDKn = tYsh[qKYW, :]
if nDKn.shape[0] <= 0:
A8Y9[or8S] = 0
PrmM[or8S] = 0
return
fkCZ, a004 = PZIW.max(0, ke... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yG37(v7iA, wDXs, YNWP, TdCN, bIaF, djS6, FpBn, PKpG=0.5, PWAq=0.0):\n v7iA = JViT(v7iA)\n YNWP = YNWP[..., :v7iA.shape[0]]\n TdCN = JViT(TdCN)\n djS6 = djS6[:TdCN.shape[0]]\n _0VL = oyIN.argsort(djS6)[::-1]\n TdCN = TdCN[_0VL]\n bIaF = bIaF[_0VL]\n djS6 = djS6[_0VL]\n FpBn = FpBn[...... | [
"0.64954555",
"0.6426992",
"0.6242716",
"0.620002",
"0.61827576",
"0.6160322",
"0.61498445",
"0.60834885",
"0.596623",
"0.5880973",
"0.58795214",
"0.58585274",
"0.57878023",
"0.57507145",
"0.57475",
"0.57229817",
"0.57144845",
"0.57128614",
"0.56988883",
"0.56869",
"0.5665365... | 0.55013496 | 37 |
Returns shared parameters for all ResNet50 benchmarks. | def uFPs(YKHO):
return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', num_warmup_batches=5, num_batches=50, distortions=False, forward_only=True, device='cpu', data_format='NHWC', num_intra_threads=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch_size=128, distortions=False, optimizer='momentum')",
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', distortions=False, forward_only=True)",
"def uFPs(YKHO):\n return LsRZ._sh... | [
"0.8093189",
"0.7843872",
"0.74811083",
"0.7224232",
"0.70979655",
"0.6943283",
"0.6727507",
"0.6321282",
"0.6168939",
"0.5949951",
"0.5940708",
"0.5933771",
"0.58331233",
"0.5770217",
"0.5692783",
"0.566573",
"0.566573",
"0.5655511",
"0.5622129",
"0.5596944",
"0.5570784",
... | 0.81118906 | 0 |
Returns shared parameters for all ResNet50 benchmarks. | def uFPs(YKHO):
return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', distortions=False, forward_only=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', num_warmup_batches=5, num_batches=50, distortions=False, forward_only=True, device='cpu', data_format='NHWC', num_intra_threads=0)",
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch... | [
"0.81118906",
"0.8093189",
"0.74811083",
"0.7224232",
"0.70979655",
"0.6943283",
"0.6727507",
"0.6321282",
"0.6168939",
"0.5949951",
"0.5940708",
"0.5933771",
"0.58331233",
"0.5770217",
"0.5692783",
"0.566573",
"0.566573",
"0.5655511",
"0.5622129",
"0.5596944",
"0.5570784",
... | 0.7843872 | 2 |
Returns shared parameters for all ResNet50 benchmarks. | def uFPs(YKHO):
return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch_size=128, distortions=False, optimizer='momentum') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', num_warmup_batches=5, num_batches=50, distortions=False, forward_only=True, device='cpu', data_format='NHWC', num_intra_threads=0)",
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resn... | [
"0.81118906",
"0.7843872",
"0.74811083",
"0.7224232",
"0.70979655",
"0.6943283",
"0.6727507",
"0.6321282",
"0.6168939",
"0.5949951",
"0.5940708",
"0.5933771",
"0.58331233",
"0.5770217",
"0.5692783",
"0.566573",
"0.566573",
"0.5655511",
"0.5622129",
"0.5596944",
"0.5570784",
... | 0.8093189 | 1 |
Returns shared parameters for all ResNet50 FP16 benchmarks. | def EwCC(YKHO):
return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch_size=256, distortions=False, use_fp16=True, optimizer='momentum', loss_type_to_report='base_loss', compute_lr_on_cpu=True, single_l2_loss_op=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', num_warmup_batches=5, num_batches=50, distortions=False, forward_only=True, device='cpu', data_format='NHWC', num_intra_threads=0)",
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch... | [
"0.7731678",
"0.7656216",
"0.75924444",
"0.74081016",
"0.7034538",
"0.69508904",
"0.6873029",
"0.6867763",
"0.6575514",
"0.5854035",
"0.584752",
"0.5802204",
"0.5588528",
"0.557693",
"0.5540908",
"0.5514811",
"0.5499431",
"0.5483211",
"0.5476246",
"0.5476246",
"0.5475894",
... | 0.7360173 | 4 |
Tests 1 gpu with synthetic data. | def gKqU(YKHO):
NArs = YKHO._shared_params()._replace(num_gpus=1)
YKHO._run_benchmark(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPMJ():\n jzdc = XTiz.random.rand(10000).astype('float32')\n lDLs.shared_constructor(jzdc)\n assert e89i.sandbox.cuda.use.device_number is not None",
"def jc7l(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='imagenet')\n YKHO._run_benchmark(NA... | [
"0.68693227",
"0.68644226",
"0.6670029",
"0.6670029",
"0.6670029",
"0.6513355",
"0.6339023",
"0.6307369",
"0.6302433",
"0.62930727",
"0.628481",
"0.6263361",
"0.6261016",
"0.6261016",
"0.6261016",
"0.62364423",
"0.6221056",
"0.61878484",
"0.61514795",
"0.6134151",
"0.61246085... | 0.6409363 | 6 |
Tests 8 gpu with synthetic data with parameters replicated. | def FuXc(YKHO):
NArs = YKHO._shared_params()._replace(num_gpus=8, variable_update='replicated', all_reduce_spec='nccl', gradient_repacking=2)
YKHO._run_benchmark(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YRMd(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=8, data_dir=YKHO.fake_data_dir, data_name='imagenet', variable_update='replicated', all_reduce_spec='nccl', gradient_repacking=2)\n YKHO._run_benchmark(NArs)",
"def YRMd(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=8, data_dir=Y... | [
"0.7032033",
"0.69963396",
"0.6776914",
"0.6776914",
"0.6776914",
"0.66615206",
"0.66254723",
"0.66057956",
"0.6542688",
"0.6514595",
"0.64651054",
"0.6460251",
"0.6460251",
"0.6460251",
"0.6424654",
"0.6421601",
"0.6421601",
"0.6421601",
"0.64193594",
"0.640392",
"0.636337",... | 0.65189254 | 9 |
Tests 1 gpu with synthetic data with parameters on the gpu. | def DcHY(YKHO):
NArs = YKHO._shared_params_fp16()._replace(num_gpus=1, variable_update='parameter_server')
YKHO._run_benchmark(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eqyO(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='imagenet', variable_update='parameter_server', xla=True)\n YKHO._run_benchmark(NArs)",
"def eqyO(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='... | [
"0.68138134",
"0.68138134",
"0.68138134",
"0.68003327",
"0.67727077",
"0.65793663",
"0.65793663",
"0.65793663",
"0.6554631",
"0.64648366",
"0.6462202",
"0.6436592",
"0.6396781",
"0.6396781",
"0.6396781",
"0.6394387",
"0.6394387",
"0.6394387",
"0.6322726",
"0.6307132",
"0.6287... | 0.6126789 | 25 |
Tests 1 gpu with synthetic data with parameters on the gpu. | def IPVl(YKHO):
NArs = YKHO._shared_params_fp16()._replace(num_gpus=1, batch_size=128, variable_update='parameter_server')
YKHO._run_benchmark(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eqyO(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='imagenet', variable_update='parameter_server', xla=True)\n YKHO._run_benchmark(NArs)",
"def eqyO(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='... | [
"0.68138134",
"0.68138134",
"0.68138134",
"0.68003327",
"0.67727077",
"0.65793663",
"0.65793663",
"0.65793663",
"0.6554631",
"0.64648366",
"0.6462202",
"0.6436592",
"0.6396781",
"0.6396781",
"0.6396781",
"0.6394387",
"0.6394387",
"0.6394387",
"0.6322726",
"0.6307132",
"0.6287... | 0.5696595 | 76 |
Returns shared parameters for all ResNet50v1.5 FP16 benchmarks. | def EwCC(YKHO):
return LsRZ._shared_params(YKHO)._replace(model='resnet50_v1.5', batch_size=256, distortions=False, use_fp16=True, optimizer='momentum', loss_type_to_report='base_loss', compute_lr_on_cpu=True, single_l2_loss_op=True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(num_gpus=1, model='resnet50', num_warmup_batches=5, num_batches=50, distortions=False, forward_only=True, device='cpu', data_format='NHWC', num_intra_threads=0)",
"def uFPs(YKHO):\n return LsRZ._shared_params(YKHO)._replace(model='resnet50', batch... | [
"0.76316136",
"0.7544761",
"0.74272466",
"0.72657585",
"0.69159615",
"0.67190754",
"0.66939676",
"0.666763",
"0.6411092",
"0.579886",
"0.56886077",
"0.5589944",
"0.5470399",
"0.54562384",
"0.5445404",
"0.5414948",
"0.5396841",
"0.53929985",
"0.53914535",
"0.53910893",
"0.5391... | 0.7368753 | 3 |
Tests 1 gpu with synthetic data. | def DcHY(YKHO):
NArs = YKHO._shared_params_fp16()._replace(num_gpus=1)
YKHO._run_benchmark(NArs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gPMJ():\n jzdc = XTiz.random.rand(10000).astype('float32')\n lDLs.shared_constructor(jzdc)\n assert e89i.sandbox.cuda.use.device_number is not None",
"def jc7l(YKHO):\n NArs = YKHO._shared_params()._replace(num_gpus=1, data_dir=YKHO.fake_data_dir, data_name='imagenet')\n YKHO._run_benchmark(NA... | [
"0.68693227",
"0.68644226",
"0.6670029",
"0.6670029",
"0.6670029",
"0.6513355",
"0.6409363",
"0.6339023",
"0.6307369",
"0.6302433",
"0.62930727",
"0.628481",
"0.6263361",
"0.6261016",
"0.6261016",
"0.6261016",
"0.62364423",
"0.6221056",
"0.61878484",
"0.61514795",
"0.6134151"... | 0.5854345 | 54 |