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 |
|---|---|---|---|---|---|---|
Functie ce transforma pretul integer in pret string. | def ZFlA(UVXv):
pStJ = ''
if UVXv < 1000:
pStJ = str(UVXv) + ',00'
return pStJ
elif UVXv >= 1000:
DzF6 = int(UVXv / 1000)
fHtO = str(UVXv % 1000)
if len(fHtO) == 1:
fHtO = '000'
pStJ = str(DzF6) + '.' + str(fHtO) + ',00'
return pStJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SZFh(KCHu):\n return 'digit ' + str(KCHu)",
"def AWNB(UHFx: int) -> QMSQ:\n ...",
"def GAFl(UVXv):\n UVXv = UVXv.split('.')\n if len(UVXv) == 1:\n UVXv = int(UVXv[0].split(',')[0]) + 1\n return UVXv\n else:\n bGrB = UVXv[0]\n UVXv = int(UVXv[1].split(',')[0]) + 1\... | [
"0.7133017",
"0.6735297",
"0.66947025",
"0.66836095",
"0.64904743",
"0.6477893",
"0.6441194",
"0.63805705",
"0.6326377",
"0.6296814",
"0.6270069",
"0.6261959",
"0.619551",
"0.6184898",
"0.61634713",
"0.6141895",
"0.6111218",
"0.60978365",
"0.60936576",
"0.6076464",
"0.6059174... | 0.6979973 | 1 |
read_file reads a .csv file filled with words | def Nwr9(YKHO):
with open(YKHO.file_name, newline='') as LtY3:
N5Pj = m6_J.reader(LtY3, delimiter=',')
YKHO.word_bag = {rdlD[1].strip(): (rdlD[0].strip(), rdlD[2].strip()) for rdlD in N5Pj}
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QFyr(YKHO, qaEx):\n with open(qaEx, 'r') as nUeQ:\n for YRbF, zFiD in enumerate(nUeQ):\n zFiD = zFiD.replace('\"', '')\n zFiD = zFiD.replace('Bonaire, Sint Eustatius and Saba', 'Bonaire Sint Eustatius and Saba')\n zFiD = zFiD.replace('Korea, South', 'Korea South')\n ... | [
"0.6980741",
"0.6881393",
"0.6626126",
"0.656101",
"0.65286505",
"0.6502743",
"0.649413",
"0.64843005",
"0.64819235",
"0.64502764",
"0.64430255",
"0.6384314",
"0.6372729",
"0.6364824",
"0.63197887",
"0.6318031",
"0.63164544",
"0.63071096",
"0.6282337",
"0.62819225",
"0.627867... | 0.69530606 | 1 |
Return a dictionary representation of the request, without the body. | def MNRr(YKHO):
Csk6 = vars(YKHO)
Csk6.pop('_body')
Csk6['headers'] = dict(Csk6['headers'])
if YKHO.response is not None:
Csk6['response'] = YKHO.response.to_dict()
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xlXB() -> dict:\n qQXR = {**QePW.args}\n if QePW.json:\n qQXR = {**qQXR, **QePW.json}\n if QePW.form:\n qQXR = {**qQXR, **QePW.form.to_dict()}\n return qQXR",
"def ChdF(YKHO):\n qIxc = dict(YKHO._req.GET)\n qIxc.update(dict(YKHO._req.POST))\n return qIxc",
"def yjms(YKHO)... | [
"0.6942259",
"0.68829364",
"0.67578864",
"0.67455316",
"0.66568774",
"0.6648944",
"0.6556785",
"0.653551",
"0.6527414",
"0.6409152",
"0.636824",
"0.6351302",
"0.63283294",
"0.6323064",
"0.629997",
"0.629351",
"0.6293059",
"0.62761265",
"0.62761265",
"0.62736255",
"0.62581664"... | 0.6531995 | 8 |
Sort data, low to high using quicksort method | def vdyO(qw7D, x9sQ, jPVB):
if len(qw7D) <= 1:
return (qw7D, x9sQ)
csQL = qw7D[jPVB]
qw7D = yVcN(qw7D, csQL, jPVB)
LFOi, LKcK = Qrt_(qw7D)
x9sQ += len(LFOi) - 1
dbgK = lSIe(LFOi)
SEv3, x9sQ = vdyO(LFOi, x9sQ, dbgK)
x9sQ += len(LKcK) - 1
W6JY = lSIe(LKcK)
bJ7n, x9sQ = vdyO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lguw(nPrm):\n u54L = len(nPrm)\n return d7og(nPrm, 0, u54L - 1)",
"def lguw(UrXw):\n pass",
"def lguw(nPrm):\n if len(nPrm) <= 1:\n return nPrm\n else:\n x1fj = nPrm[len(nPrm) // 2]\n LFlW = []\n _tIi = []\n nPrm.remove(x1fj)\n for YRbF in nPrm:\n ... | [
"0.8395314",
"0.83247954",
"0.8066544",
"0.803051",
"0.79529935",
"0.79269314",
"0.7893338",
"0.7857044",
"0.781429",
"0.779607",
"0.7689932",
"0.76843375",
"0.76741713",
"0.7645644",
"0.7605762",
"0.7592936",
"0.75769967",
"0.75685173",
"0.7533343",
"0.74914026",
"0.7450491"... | 0.0 | -1 |
Constructor for the CloneRefreshRequest class | def FIMM(YKHO, mwZO=None, VAAq=None, mWFP=None, avol=None, ei4T=None, wWpg=None, I3rr=None, uZZM=None):
YKHO.clone_task_id = mwZO
YKHO.continue_on_error = VAAq
YKHO.name = mWFP
YKHO.new_parent_id = avol
YKHO.objects = ei4T
YKHO.refresh_time_secs = wWpg
YKHO.source_database_id = I3rr
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uUrB(YKHO):\n return YKHO.__init__(YKHO.url)",
"def uUrB(YKHO):\n YKHO.__init__(YKHO.url, token=YKHO.token)",
"def uUrB(YKHO):\n BdN0 = YKHO._get_self()\n YKHO.__init__(client=BdN0.client, data=BdN0.data, url=BdN0.url, response=BdN0.response)",
"def uUrB(YKHO):\n BdN0 = YKHO._get_self()\n ... | [
"0.6333736",
"0.62540144",
"0.6212944",
"0.6183543",
"0.6079455",
"0.6014252",
"0.5979259",
"0.59659237",
"0.59371644",
"0.58764416",
"0.58180285",
"0.57716334",
"0.57477",
"0.57467693",
"0.57394534",
"0.57380646",
"0.5730457",
"0.5714713",
"0.5714024",
"0.57029337",
"0.56962... | 0.614485 | 4 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
mwZO = cmPJ.get('cloneTaskId')
VAAq = cmPJ.get('continueOnError')
mWFP = cmPJ.get('name')
avol = cmPJ.get('newParentId')
ei4T = None
if cmPJ.get('objects') != None:
ei4T = list()
for g8x2 in cmPJ.get('objects'):
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Normalize the flux of a spectrum The flux will be normalized so that it averages to 1 in a given window. | def lrci(qJa9, shSu, tvs6=5500.0, sQqt=6500.0):
o7uO = (qJa9 > tvs6) & (qJa9 < sQqt)
NXpY = oyIN.mean(shSu[..., o7uO], axis=-1)
return (shSu.T / NXpY).T | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i43u(YKHO):\n YKHO._flux = sg5f.normalize(YKHO._wavelength, YKHO._normWavelength, YKHO._flux)",
"def NkkI(__d3, ighY, shSu):\n hhQW = Ce1H.bisect_right(__d3, ighY)\n if oyIN.isnan(shSu[hhQW]):\n qAKX = __d3[oyIN.where(oyIN.isfinite(YKHO._flux))]\n ighY = (qAKX[-1] + qAKX[0]) / 2\n ... | [
"0.82125956",
"0.754933",
"0.73727995",
"0.7330208",
"0.70466495",
"0.6758674",
"0.6600811",
"0.65567714",
"0.65487933",
"0.64986664",
"0.6492756",
"0.6437642",
"0.64337915",
"0.6414232",
"0.63908905",
"0.6350768",
"0.6350768",
"0.62842745",
"0.627609",
"0.6271857",
"0.623016... | 0.76282364 | 1 |
Randomly make a possible move. No strategy is used. | def tuKI(BH3N):
if type(BH3N) != VlLD.Othello:
raise TypeError('parameter game is not an Othello instance')
bzfn = BH3N.successors()
return bzfn[tuKI.randint(0, len(bzfn) - 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gKSy(YKHO):\n XSoh = oyIN.random.choice(YKHO.game.legal_moves)\n YKHO.game.move_board(XSoh)",
"def Qy5L(YKHO):\n NNsw = YKHO.compute_possible_set()\n if len(NNsw) == 0:\n return None\n BZN_ = tuKI.sample(NNsw, 1)[0]\n for bGrB in range(5):\n print('*')\n print('??-->', BZN_... | [
"0.84046245",
"0.8211947",
"0.80282736",
"0.7851012",
"0.78108376",
"0.77720654",
"0.7771779",
"0.7767006",
"0.77644116",
"0.77260953",
"0.77211064",
"0.7706476",
"0.7680972",
"0.7626768",
"0.7620531",
"0.75830734",
"0.75652605",
"0.7548885",
"0.7508185",
"0.74952006",
"0.749... | 0.0 | -1 |
Calculatate A and B of Eq.(13) of PRB(75)245123 for a given planewave vector q | def I635(YKHO, Oz1B, t4EI):
K7Pg = Oz1B.density_operator(t4EI)
yx7T = Oz1B.kfac * Oz1B.qvecs[t4EI]
URay = epAf.pi / Oz1B.vol
aM8h = (URay / XTiz.dot(yx7T, yx7T)) ** 0.5
XSG_ = 1j * aM8h * (K7Pg + K7Pg.getH())
esJ0 = -aM8h * (K7Pg - K7Pg.getH())
return (XSG_, esJ0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def S3Gt(XP5J, vexM):\n return XP5J * vexM / (0.622 + 0.378 * vexM)",
"def D6YC(KvO8, G1Hx, MKlR, zTi3, OqaB, b60H, ZbWC, ev_Q, KCHu, TRdr):\n KvO8 = oyIN.array(KvO8)\n cEvf = KvO8 > TRdr\n lr28 = KvO8 <= TRdr\n xuM4 = 0.00708 * G1Hx * MKlR * (zTi3 - KvO8[cEvf]) / (OqaB * b60H * (KCHu - 0.75 + epA... | [
"0.6961945",
"0.6690455",
"0.6623702",
"0.65957975",
"0.65608937",
"0.6412622",
"0.63347864",
"0.6333182",
"0.62934375",
"0.6283993",
"0.62615454",
"0.61944455",
"0.6143705",
"0.61244285",
"0.6112798",
"0.6110524",
"0.61065996",
"0.6104949",
"0.61045414",
"0.60897607",
"0.605... | 0.0 | -1 |
Fetch the filename from the parent directory of this file. | def jNha(Ux0P):
return pmON.join(pmON.dirname(xAKo), '..', '..', Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO) -> str:\n return Hy7s.path.dirname(YKHO.filename)",
"def Ux0P(YKHO):\n if hasattr(YKHO, 'parent'):\n return getattr(YKHO.parent, 'filename')\n else:\n return None",
"def SKMP(YKHO):\n XP5J = YKHO.parent()\n if XP5J is None:\n return ''\n else:\n try:... | [
"0.80531037",
"0.7997552",
"0.7922176",
"0.7553057",
"0.75526196",
"0.7331343",
"0.7268818",
"0.72466576",
"0.72388864",
"0.7229558",
"0.7229558",
"0.7199235",
"0.71837384",
"0.7151955",
"0.7059525",
"0.705015",
"0.70468163",
"0.7039506",
"0.703153",
"0.7030972",
"0.6998795",... | 0.0 | -1 |
Gets the global logger after applying commandline options. | def fZx2(YKHO):
return UPez.run_script(YKHO.add_to_script) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2():\n global LOG\n if na1r is not None:\n return na1r\n from dq2.common.DQLog import DQLog\n return DQLog('dq2.common')",
"def fZx2():\n global NAME\n return G9jH.getLogger(d0Dv)",
"def fZx2(YKHO):\n pass",
"def fZx2():\n return aQZJ.GetLogger('UsageCheckCommand')",
"... | [
"0.7459239",
"0.73475486",
"0.73450804",
"0.7337683",
"0.7323597",
"0.73155034",
"0.7258724",
"0.72357655",
"0.7162203",
"0.7127258",
"0.7111483",
"0.7088446",
"0.7055014",
"0.7047657",
"0.7047657",
"0.7043564",
"0.7023813",
"0.6987467",
"0.6910395",
"0.6910395",
"0.6910395",... | 0.7457094 | 1 |
return a (lowercase) string without any punctuation | def yri_(GIN8):
if GIN8 is None:
GIN8 = ''
GIN8 = [hcXw.lower() for hcXw in GIN8 if hcXw.lower() in "abcdefghijklmnopqrstuvwxyz'"]
GIN8 = ''.join(GIN8).lower()
return GIN8 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def la1r(KCHu):\n return Pusg(seET.__add__, [KG9w for KG9w in KCHu if KG9w.isalpha()], '').lower()",
"def JFcv(yzQ0):\n cntZ = 0\n while cntZ < len(yzQ0) and (not yzQ0[cntZ].isalpha()):\n cntZ += 1\n XVAW = len(yzQ0) - 1\n while XVAW > cntZ and (not yzQ0[XVAW].isalpha()):\n XVAW -= 1... | [
"0.77654386",
"0.7636842",
"0.7489914",
"0.74495095",
"0.74281716",
"0.72950876",
"0.72774386",
"0.725396",
"0.7240228",
"0.71961445",
"0.719302",
"0.71636623",
"0.71581876",
"0.7155675",
"0.7150542",
"0.7144133",
"0.7127003",
"0.7122532",
"0.7110048",
"0.71058893",
"0.708979... | 0.70335525 | 23 |
Returns a photo id constructed from component parts. Photos sort from newest to oldest. See "ConstructTimestampAssetId" for details of the encoding. | def O3GZ(Emd4, E3oo, jf3N, xLOT):
return Gctu(L1sj.Photo, E3oo, jf3N, xLOT) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(pmON):\n Ux0P = pmON.parts[-1]\n U4SV = Ux0P.rfind('.jpg')\n return int(Ux0P[:U4SV])",
"def lPZB(YKHO):\n qw5u = \"'{.spec.csi.volumeHandle}'\"\n HCmI = f'oc get pv/{YKHO.backed_pv} -o jsonpath={qw5u}'\n yvT9 = fupw(cmd=HCmI)\n lPZB = '-'.join(yvT9.split('-')[-5:])\n return lPZB"... | [
"0.61123025",
"0.5958072",
"0.5930284",
"0.590847",
"0.58645964",
"0.58622146",
"0.581288",
"0.5804658",
"0.5765755",
"0.5765655",
"0.57547945",
"0.57474834",
"0.5737196",
"0.568913",
"0.5652249",
"0.5609217",
"0.5578149",
"0.55542386",
"0.5438671",
"0.54340136",
"0.5422372",... | 0.72130173 | 0 |
Guess the unit of measure of a shape. | def OqBG(ROpF):
edvT = ROpF.BoundBox
i3IR = [edvT.XLength, edvT.YLength, edvT.ZLength]
if max(i3IR) > 10:
return sWIo.MM
if min(i3IR) < 0.1:
return sWIo.IN
if sum(i3IR) < 10:
return sWIo.IN
return sWIo.MM | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def B73r(xVxt):\n return u34z.get(xVxt, 'dimensionless')",
"def b82i(YKHO):\n return YKHO._sensor_type['unit'] if YKHO._device.valid else None",
"def OPpU(YKHO):\n return YKHO._get_value('SPATIALUNIT')",
"def YbnB(zgAi: algebra_models.Algebra, tLuO: torch.Tensor, ooTa: torch.Tensor) -> None:\n rY... | [
"0.6298942",
"0.629753",
"0.62873906",
"0.6266646",
"0.6256933",
"0.6218718",
"0.61950195",
"0.6149275",
"0.6149275",
"0.6149275",
"0.6149275",
"0.61367244",
"0.6135257",
"0.6134906",
"0.60883486",
"0.60550064",
"0.6052059",
"0.60214466",
"0.60210353",
"0.6010867",
"0.6007213... | 0.7897571 | 0 |
Generate new cars that arrive at the gas station. | def tul2(sg14, gXx0, _jlg):
for YRbF in Hs6x.count():
sg14.sleep(tuKI.randint(*iE8g))
sg14.process(_6NH, 'Car %d' % YRbF, sg14, gXx0, _jlg) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tul2(sEAN, gXx0, vbWt):\n for YRbF in Hs6x.count():\n yield sEAN.timeout(tuKI.randint(*iE8g))\n sEAN.process(_6NH('Car %d' % YRbF, sEAN, gXx0, vbWt))",
"def _6NH(mWFP, sEAN, gXx0, vbWt):\n qGb6 = tuKI.randint(*PStn)\n print('%s arriving at charging station at %.1f' % (mWFP, sEAN.now))\... | [
"0.7089199",
"0.66518164",
"0.6498646",
"0.6452349",
"0.63546157",
"0.63309324",
"0.6186714",
"0.6174116",
"0.61735916",
"0.6134412",
"0.60509723",
"0.6024599",
"0.600116",
"0.5849606",
"0.5842721",
"0.5826613",
"0.58154726",
"0.57790923",
"0.5753911",
"0.572356",
"0.5703085"... | 0.70257676 | 1 |
Takes a "choice"able dataset where each row is expected to be of the same length. Each row must also be indexable and each value in a row is ordered with respect to all other values in the same column. Returns a single (feature_index, threshold, operator) tuple | def We_v(__n6, xlLU):
def msMl():
EZ9_ = xlLU.choice(__n6)
EtrG = xlLU.randrange(len(EZ9_) - 1)
gwAu = EZ9_[EtrG]
seET = tuKI.choice(PYz4.sds_ml.operators)
return q5hO(EtrG, seET, gwAu)
return msMl | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lpha(nPrm, OiKl):\n BKKo = []\n vdfl = []\n for rdlD in nPrm:\n if rdlD[OiKl[0]] >= OiKl[1]:\n BKKo.append(rdlD)\n else:\n vdfl.append(rdlD)\n return (BKKo, vdfl)",
"def j8Xx(YKHO):\n bySB = YKHO.data.keys().tolist()\n bySB = bySB[:-1]\n SxC5 = (float(... | [
"0.6280119",
"0.6086252",
"0.57895434",
"0.5714442",
"0.56824654",
"0.56778014",
"0.56524783",
"0.563171",
"0.55477065",
"0.54666394",
"0.5455957",
"0.543736",
"0.5426891",
"0.54080015",
"0.5396153",
"0.538033",
"0.53757834",
"0.5293669",
"0.5239329",
"0.5222575",
"0.5203575"... | 0.0 | -1 |
Test that no Publisher is created if the form is invalid. | def GxSf(YKHO):
YKHO.assertEqual(N89S.objects.all().count(), 0)
Z9rn = i9zE()
geh0 = Z9rn.post('/publishers/new/', {'name': '', 'website': 'not a url', 'email': 'not an email'})
YKHO.assertEqual(geh0.status_code, 200)
YKHO.assertEqual(N89S.objects.all().count(), 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V7zp(YKHO):\n nPrm = {'author': '', 'title': '', 'ISBN': '', 'price': '', 'publish_date': ''}\n L03z = dP9M(data=nPrm)\n YKHO.assertFalse(L03z.is_valid())",
"def gs6M(YKHO):\n L03z = Va_t(data=KvJz)\n YKHO.assertFalse(L03z.is_valid())",
"def s_2U(YKHO):\n wDTr = Gvn7()\n YKHO.assertFal... | [
"0.72458345",
"0.69665796",
"0.69345385",
"0.6799017",
"0.6767914",
"0.67512417",
"0.6733127",
"0.6715138",
"0.6674889",
"0.6669258",
"0.6624311",
"0.6599451",
"0.65861845",
"0.6583985",
"0.65647686",
"0.65414554",
"0.6538868",
"0.6529063",
"0.65031946",
"0.6497383",
"0.64868... | 0.7520159 | 0 |
Test editing a publisher, the initial GET should have a form with values and then the post should update the Publisher rather than creating a new one. | def Kasu(YKHO):
D5uW = 'Test Edit Publisher'
SgBP = 'http://www.example.com/edit-publisher/'
tF2v = 'edit-publisher@example.com'
nu3W = N89S(name=D5uW, website=SgBP, email=tF2v)
nu3W.save()
YKHO.assertEqual(N89S.objects.all().count(), 1)
Z9rn = i9zE()
geh0 = Z9rn.get('/publishers/{}/'.fo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SREq(YKHO):\n dg7v = U2Av.objects.create(first_name='Dave', last_name='Null', birthday=_c1T(2015, 1, 1))\n ZaoB = gxEw('notebook:update', kwargs={'slug': dg7v.slug})\n geh0 = YKHO.client.get(ZaoB)\n YKHO.assertEqual(geh0.status_code, 200)\n pB3N = {'first_name': 'Dave', 'last_name': 'Random', 'b... | [
"0.6954185",
"0.69265485",
"0.69066614",
"0.6894184",
"0.6853906",
"0.67326546",
"0.6706936",
"0.66759235",
"0.6654557",
"0.66192687",
"0.65006775",
"0.64738417",
"0.6473373",
"0.6472897",
"0.6469471",
"0.64673704",
"0.6436086",
"0.6418035",
"0.64157516",
"0.6415449",
"0.6401... | 0.8472871 | 0 |
test for successful registration | def FQFx(YKHO):
Aofo = YKHO.account_object.Register('john', 'john@gmail.com', 'johnjohn', 'johnjohn')
YKHO.assertEqual(Aofo, 'Successfully signed up. You can now LogIn.') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bIIc(YKHO):\n geh0 = YKHO.common_test.response_register_user(YKHO.test_user2)\n YKHO.assertEqual(geh0.status_code, 201)\n YKHO.assertEqual(qQXR.loads(geh0.data).get('message'), lRJ3)",
"def xrgs(YKHO):\n Ylbp = YKHO.client().post('/auth/register/', data=YKHO.user_details)\n Aofo = qQXR.loads(Y... | [
"0.8468326",
"0.81381613",
"0.8124041",
"0.8122671",
"0.80554223",
"0.795894",
"0.7948416",
"0.79463685",
"0.79419684",
"0.7936517",
"0.79352224",
"0.7922444",
"0.7917563",
"0.7908908",
"0.78805774",
"0.7874512",
"0.7862718",
"0.7827768",
"0.78154016",
"0.78133255",
"0.781289... | 0.8450253 | 1 |
test for already existing username | def deCe(YKHO):
Aofo = YKHO.account_object.Register('grace', 'grayce@gmail.com', 'kimotho', 'kimotho')
YKHO.assertEqual(Aofo, 'Username already exists') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mxq9(YKHO, *qIxc, JfyU):\n if (Aofo := JfyU(*qIxc)) == YKHO.auth_types.SUCCESS:\n NtEF = qIxc[0]\n if NtEF in YKHO._usernames:\n return YKHO.auth_types.USERNAME_ALREADY_EXISTS\n return YKHO.auth_types.SUCCESS\n return Aofo",
"def f7az(YKHO, NtEF: str):\n YKHO.__db_cur... | [
"0.79990506",
"0.77949154",
"0.77343726",
"0.7649354",
"0.7645448",
"0.7628445",
"0.7627018",
"0.76250315",
"0.7621062",
"0.76079094",
"0.759982",
"0.75471866",
"0.7546342",
"0.7534254",
"0.7487577",
"0.7481114",
"0.74803215",
"0.7455111",
"0.7452188",
"0.7440615",
"0.7437575... | 0.7040662 | 75 |
Return string representation suitable for object reconstruction. | def wHJl(YKHO):
return YKHO.name + ' with parameters: ' + YKHO.params | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n Y_sP = YKHO.name + ' | '\n Y_sP += YKHO.mother + ' | '\n Y_sP += YKHO.description + ' | '\n Y_sP += YKHO.make_string(YKHO.pos, YKHO.pos_units) + ' | '\n if YKHO.rot_order != '':\n Y_sP += 'ordered: ' + YKHO.rot_order + ' '\n Y_sP += YKHO.make_string(YKHO.rot, YKHO.rot_uni... | [
"0.7719674",
"0.7671581",
"0.7671581",
"0.7671581",
"0.7671581",
"0.75839573",
"0.75485027",
"0.75485027",
"0.7495133",
"0.74525297",
"0.7426659",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.74138093",
"0.... | 0.0 | -1 |
Shift using numpy broadcasting. | def dRO0(YKHO, jNOo):
tpio = len(jNOo[0])
return jNOo + YKHO.vector[:tpio] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ho74(YKHO, zZcM, DkWr, zr3f=None):\n pass",
"def lUAt(nPrm, DkWr):\n return XTiz.array(nPrm) + DkWr",
"def FnKv(ezWE, jHsn, pvd3, KnxT=False, dvgN='reflect'):\n if jHsn % 1.0 == 0.0 and pvd3 % 1.0 == 0:\n return H4yH.roll(H4yH.roll(ezWE, int(pvd3), axis=0), int(jHsn), axis=1)\n else:\n ... | [
"0.6560551",
"0.6424071",
"0.6325773",
"0.62644833",
"0.6251305",
"0.6228639",
"0.62044823",
"0.61947906",
"0.6179205",
"0.6094755",
"0.6054584",
"0.6031425",
"0.59563386",
"0.59563386",
"0.595578",
"0.595103",
"0.592843",
"0.59275526",
"0.59111714",
"0.5901863",
"0.58898324"... | 0.0 | -1 |
Compute L2 norm to power p. | def FTw9(ezWE, XP5J):
return oyIN.power(oyIN.sum(ezWE ** 2, axis=1), XP5J / 2.0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KtDG(EBgd, HpuQ):\n return oyIN.linalg.norm((oyIN.asarray(EBgd), oyIN.asarray(HpuQ)))",
"def cbY4(XP5J: 'long double const *', exwG: 'unsigned int') -> 'long double':\n return QZnQ.vnl_c_vectorLD_two_norm(XP5J, exwG)",
"def cbY4(XP5J: 'long long const *', exwG: 'unsigned int') -> 'unsigned long long'... | [
"0.777906",
"0.7747852",
"0.7713887",
"0.7683902",
"0.76719004",
"0.7638523",
"0.7614085",
"0.7602346",
"0.7519093",
"0.7491815",
"0.73943394",
"0.73652714",
"0.7310362",
"0.7302576",
"0.72980314",
"0.72821754",
"0.72593224",
"0.72392946",
"0.7224315",
"0.7202603",
"0.7183021... | 0.0 | -1 |
Gets the encoding_id of this SmoothStreamingRepresentation. Id of the encoding (required) | def ShK5(YKHO):
return YKHO._encoding_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def unpH(YKHO):\n return str(YKHO.id).encode('utf-8').decode('utf-8')",
"def tZ2K(YKHO):\n return YKHO._flow[YKHO._index].encoding",
"def ShR8(YKHO):\n return tE_f.sccc_encoder_bi_sptr_unique_id(YKHO)",
"def id(YKHO):\n return YKHO.serialize()",
"def ShR8(YKHO):\n return tE_f.encoder_bi_sptr... | [
"0.63993776",
"0.61199844",
"0.6035165",
"0.59846115",
"0.5979467",
"0.5974273",
"0.59725916",
"0.59557897",
"0.59405595",
"0.5934507",
"0.5918805",
"0.5911303",
"0.59075546",
"0.59075546",
"0.5890676",
"0.5875695",
"0.5875695",
"0.5875695",
"0.5875695",
"0.5875695",
"0.58707... | 0.77862984 | 0 |
Gets the muxing_id of this SmoothStreamingRepresentation. Id of the muxing. (required) | def _dSG(YKHO):
return YKHO._muxing_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _dSG(YKHO, _dSG):\n if _dSG is not None:\n if not isinstance(_dSG, jUrF):\n raise TypeError('Invalid type for `muxing_id`, type has to be `string_types`')\n YKHO._muxing_id = _dSG",
"def MLMj(YKHO):\n return YKHO.stream_id_",
"def V6Rx(YKHO):\n return YKHO._specific_recording_... | [
"0.62107265",
"0.6048137",
"0.56391364",
"0.5605705",
"0.5584302",
"0.55041134",
"0.54866135",
"0.548119",
"0.5461257",
"0.5455359",
"0.5442219",
"0.5440247",
"0.5426299",
"0.5426299",
"0.5424861",
"0.5424861",
"0.5421383",
"0.5421383",
"0.5413825",
"0.54112303",
"0.54112303"... | 0.82871646 | 0 |
Gets the track_name of this SmoothStreamingRepresentation. Track where this MP4 shoudl be added | def bSWA(YKHO):
return YKHO._track_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZjoZ(YKHO):\n return YKHO.artist + ' ' + YKHO.songtitle",
"def ynlQ(YKHO):\n return YKHO._player_dev.current_track",
"def u9z6(YKHO, H5ew: str) -> str:\n for A6b2 in YKHO.__tracks:\n if A6b2.getAttribute('product') == H5ew:\n return A6b2.getElementsByTagName('file')[0].firstChild... | [
"0.7096261",
"0.6626406",
"0.6609778",
"0.65357137",
"0.6531583",
"0.65182835",
"0.6449832",
"0.6429254",
"0.64229065",
"0.63202125",
"0.6270809",
"0.6259001",
"0.62287223",
"0.6212578",
"0.61771345",
"0.61544126",
"0.61322594",
"0.6121279",
"0.61195964",
"0.60941684",
"0.608... | 0.70096874 | 1 |
Gets the priority of this SmoothStreamingRepresentation. Specifies the priority of this representation. In the manifest, representations will appear ordered by descending priority values. | def Ey19(YKHO):
return YKHO._priority | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FN7K(YKHO):\n return YKHO._sendToHubServer(('RPC', 'getPriority'))[2]",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def Ey19(YKHO):\n return YKHO._priority",
"def FN7K(YKHO):\n return YKHO.priority... | [
"0.70683",
"0.69639355",
"0.69639355",
"0.69639355",
"0.69639355",
"0.69571817",
"0.69443536",
"0.693355",
"0.6925304",
"0.6925304",
"0.6925304",
"0.6925304",
"0.6911574",
"0.6911316",
"0.6882426",
"0.6824809",
"0.6820255",
"0.68082273",
"0.67951334",
"0.67951334",
"0.6694128... | 0.6704584 | 20 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
remove fields from obj | def zVL2(YEnM, DNHh):
Csk6 = jth9.deepcopy(YEnM.__dict__)
for geyT in DNHh:
del Csk6[geyT]
return Csk6 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L9pQ(YKHO, YEnM, xOUm):\n for Jyyj in YEnM._meta.fields:\n if not Jyyj.name in xOUm and (not Jyyj.name + '_id' in xOUm):\n YEnM.__dict__.pop(Jyyj.name)",
"def o6yl(nPrm, *V_D6):\n for Jyyj in V_D6:\n if Jyyj in nPrm.keys():\n del nPrm[Jyyj]\n return nPrm",
"def ... | [
"0.7307696",
"0.7228751",
"0.71160424",
"0.71024793",
"0.6834882",
"0.6724017",
"0.66773975",
"0.6673425",
"0.6563372",
"0.6562655",
"0.65013057",
"0.648411",
"0.6436716",
"0.63847286",
"0.63664204",
"0.6335202",
"0.6317457",
"0.62722695",
"0.62665355",
"0.62294424",
"0.62292... | 0.62795615 | 17 |
Render website's home page. | def kZiy():
return TvZl('home.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kZiy():\n return TvZl('homepage.html')",
"def C_QL():\n return TvZl('home.html')",
"def C_QL():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('homepage.html')",
"def kZiy():\n return TvZl('home.html')",
"def C_QL():\n ... | [
"0.8819581",
"0.87503684",
"0.8623934",
"0.8596466",
"0.8596466",
"0.8571988",
"0.8557671",
"0.8557671",
"0.85497755",
"0.85256004",
"0.8489358",
"0.8483156",
"0.8475702",
"0.8474153",
"0.84737927",
"0.84619766",
"0.8438196",
"0.8428517",
"0.8418825",
"0.8418701",
"0.83995277... | 0.8338782 | 46 |
Render the website's about page. | def vsuQ():
return TvZl('about.html') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n bo34.info('User visited the about page.')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n bo34.debug('In about()')\n return TvZl('about.html')",
"def vsuQ():\n return TvZl('about.html', title='about')",
"def vsuQ():\n ... | [
"0.8763036",
"0.8677626",
"0.8666991",
"0.8650025",
"0.8638193",
"0.86223155",
"0.8601017",
"0.8498177",
"0.8474175",
"0.8472615",
"0.8452931",
"0.84330356",
"0.8430345",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.84241337",
"0.8424... | 0.8325535 | 41 |
Randomly jitter points. jittering is per point. | def Lplv(J1hN, Fg_i=None, exwG=None, Z9rn=None, WTkW=0.01, vJPk=0.05):
if Fg_i == None:
Fg_i = J1hN.shape[0]
if exwG == None:
exwG = J1hN.shape[1]
if Z9rn == None:
Z9rn = J1hN.shape[-1]
assert vJPk > 0
WLXc = J1hN
T0tk = oyIN.concatenate((oyIN.clip(WTkW * oyIN.random.rand... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bHg_(YKHO, aM8h=1.0):\n for YFMp in YKHO.stars:\n YFMp.x += tuKI.uniform(-0.1, 0.1) * aM8h\n YFMp.y += tuKI.uniform(-0.1, 0.1) * aM8h",
"def bHg_(WKvO, Mkmy=0.1):\n return WKvO + oyIN.random.rand(*WKvO.shape) * oyIN.std(WKvO)[None, :] * Mkmy",
"def bHg_(VOlW, aM8h):\n return VOlW + V... | [
"0.75472695",
"0.7410611",
"0.7287109",
"0.694834",
"0.6911661",
"0.68838114",
"0.68357635",
"0.6556249",
"0.6437521",
"0.63828707",
"0.63305485",
"0.6319276",
"0.6313966",
"0.6290827",
"0.61949134",
"0.61942804",
"0.619288",
"0.6158329",
"0.6111379",
"0.6110583",
"0.6109834"... | 0.5919891 | 39 |
Caculate inverse matrix by gauss elimination. | def dInq(vb7U):
VCFe, xL7R = vb7U.shape
if VCFe != xL7R:
raise ValueError('n_row and n_col are different.')
nPrm = Sy_O(bjuQ([vb7U, MUmk(VCFe)]))
CEnK = 0
yY5q = qw7D([])
for YZLR in range(VCFe - 1):
YAVh = qJWj(nPrm[YZLR:, YZLR] == 1)[0]
if len(YAVh) > 0:
whk... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def me8S(MEsM):\n Q9wQ = _qLf(MEsM)\n if Q9wQ.n == Q9wQ.m:\n for YPaw in range(0, Q9wQ.n):\n for rdlD in Q9wQ.rows:\n if Q9wQ.rows.index(rdlD) == YPaw:\n rdlD.append(1)\n else:\n rdlD.append(0)\n Q9wQ = HZo_(Q9wQ)\n ... | [
"0.76524657",
"0.6707224",
"0.66810983",
"0.6663601",
"0.66230583",
"0.66090107",
"0.65882826",
"0.6570942",
"0.6535356",
"0.6513492",
"0.6467246",
"0.64589614",
"0.63959664",
"0.6213332",
"0.6182484",
"0.61650264",
"0.6157711",
"0.61218107",
"0.6111857",
"0.60907507",
"0.604... | 0.7443516 | 1 |
Returns a text when / route is requested | def Z1md():
return 'Hello HBNB!' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uthR():\n return f'Available Routes:<br/>/api/value type/zipcode'",
"def uthR():\n return 'Available Routes:<br/> /api/v1.0/precipitation<br/> /api/v1.0/stations<br/> /api/v1.0/tobs<br/> /api/v1.0/start<br/> /api/v1.0/start/end'",
"def daFM(... | [
"0.7087734",
"0.70453346",
"0.70409864",
"0.7016679",
"0.6997287",
"0.6990322",
"0.6983738",
"0.69551",
"0.6953672",
"0.69515234",
"0.6937439",
"0.69231427",
"0.68928534",
"0.6889996",
"0.68843395",
"0.6873741",
"0.6872418",
"0.6871309",
"0.68651026",
"0.68584156",
"0.6857248... | 0.0 | -1 |
Helper function to retrieve assigned value from ``NamedExpr``. If the node is an actual ``NamedExpr``, the assigned value will be returned. For other node type, the original node is returned. This code is only executed on ``python3.8+``, because before ``3.8.0`` release | def caYN(Q6kx: ast.AST) -> jZ4I.AST:
if isinstance(Q6kx, zNKe):
return Q6kx.value
return Q6kx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def caYN(YKHO):\n return YKHO.expression",
"def CbOp(Q6kx, bp_0):\n if isinstance(Q6kx, jZ4I.Name):\n try:\n return bp_0[Q6kx.id]\n except KeyError:\n RKD7.debug(\"'{}' has been assigned to, but with an unknown value\".format(Q6kx.id))\n return Q6kx\n elif ... | [
"0.64697474",
"0.62840384",
"0.623575",
"0.62334824",
"0.62014765",
"0.61742634",
"0.6079335",
"0.6057891",
"0.603523",
"0.599824",
"0.58778495",
"0.5870213",
"0.5844979",
"0.5807357",
"0.5807357",
"0.5803921",
"0.5794514",
"0.5778504",
"0.57111317",
"0.56915534",
"0.56679684... | 0.85072196 | 0 |
This function calculates the area of airfoil, by summing all the discrete triangles | def aPjn(qw7D):
f0tD = 0.0
for YRbF in range(int((len(qw7D) + 1) / 2) - 1):
zhMh = qw7D[YRbF, 1] - qw7D[len(qw7D) - (YRbF + 1), 1]
WL4f = qw7D[YRbF + 1, 1] - qw7D[len(qw7D) - (YRbF + 1), 1]
f0tD += 0.5 * (qw7D[YRbF + 1, 0] - qw7D[YRbF, 0]) * max(zhMh, WL4f)
for YRbF in range(int((len... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GagE(YKHO):\n zOn6 = sum([YKHO.vertex[YRbF][1] * YKHO.vertex[YRbF - 1][0] for YRbF in range(1, YKHO.count)])\n qYa6 = sum([YKHO.vertex[YRbF][0] * YKHO.vertex[YRbF - 1][1] for YRbF in range(1, YKHO.count)])\n return (zOn6 - qYa6) / 2",
"def m8vz(YKHO, nXnc):\n _19w = [YKHO.vertices[YRbF] for YRbF ... | [
"0.7217083",
"0.70512867",
"0.70441127",
"0.69977707",
"0.6987139",
"0.6913779",
"0.6873804",
"0.68611115",
"0.6850781",
"0.6848522",
"0.68303245",
"0.6782719",
"0.6779363",
"0.67704463",
"0.6764371",
"0.67467767",
"0.6710888",
"0.66914517",
"0.66913396",
"0.6683702",
"0.6675... | 0.63325936 | 77 |
Replaces profanities in strings with safe words For instance, "shit" becomes "st" | def LjJt(BWXx):
bGi2 = [yzQ0 for yzQ0 in wbuF.objects.using('megavideo').all() if yzQ0 in BWXx]
if bGi2:
for GIN8 in bGi2:
BWXx = BWXx.replace(GIN8, '%s%s%s' % (GIN8[0], '-' * (len(GIN8) - 2), GIN8[-1]))
return BWXx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def biH0(vIwR):\n\n def qx_G(YEnM):\n return ZbWC.sub('\\\\b(\\\\w\\\\w+)\\\\b', '\\\\1INQUOTES', YEnM.group())\n vIwR = vIwR.lower()\n vIwR = ZbWC.sub('\"([^\"]*)\"', qx_G, vIwR)\n CRP0 = ['npr', 'breitbart', 'guardian', 'fox', 'foxnews', 'facebooksharetweet', 'follow', 'com', 'pic', 'twitter',... | [
"0.71198034",
"0.70770514",
"0.68988943",
"0.68937874",
"0.6879513",
"0.68684155",
"0.68118435",
"0.6780317",
"0.67528856",
"0.67519504",
"0.67440695",
"0.6739028",
"0.6723537",
"0.67214304",
"0.66612905",
"0.6634206",
"0.66207826",
"0.6620372",
"0.65910274",
"0.6589114",
"0.... | 0.679704 | 7 |
Get requirements from a file | def aaDJ(qaEx):
with open(Hy7s.path.join(UctG, qaEx), 'r') as rjPX:
return rjPX.read() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O1OY():\n with open('requirements.txt') as J0RQ:\n return J0RQ.read().splitlines()",
"def O1OY():\n kbO9 = []\n with open('requirements.txt', 'r') as ytgA:\n zFiD = ytgA.readline()\n while zFiD:\n kbO9.append(zFiD.strip())\n zFiD = ytgA.readline()\n retu... | [
"0.8423934",
"0.8238141",
"0.81504524",
"0.8137369",
"0.8079875",
"0.806991",
"0.8057545",
"0.8053663",
"0.8052527",
"0.80362886",
"0.8010552",
"0.800063",
"0.7945088",
"0.7943892",
"0.79400283",
"0.79292935",
"0.79237616",
"0.7912807",
"0.79047877",
"0.7895895",
"0.78918463"... | 0.0 | -1 |
IRAF WCS identifier, checking whether input is FITS and has WCS definition of WCSDIM=2 in specified (default primary) HDU. The difference to wcs1d is that this format supports 2D WCS with nonlinear wavelength solutions. This is used for Astropy I/O Registry. | def Jqbb(hLRM, *qIxc, **B2fa):
FxNH = B2fa.get('hdu', 0)
with ZhJE(*qIxc, **B2fa) as n8OE:
return 'WAT1_001' in n8OE[FxNH].header and 'WAT2_001' in n8OE[FxNH].header and (not n8OE[FxNH].header.get('MSTITLE', 'n').startswith('2dF-SDSS LRG')) and (not (n8OE[FxNH].header.get('TELESCOP', 't') == 'SDSS 2.5-M... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qoEK(hLRM, *qIxc, **B2fa):\n gXUJ = B2fa.get('hdu', 1)\n if hLRM == 'write':\n return qIxc[0].endswith(('wcs.fits', 'wcs1d.fits', 'wcs.fit')) or (qIxc[0].endswith(('.fits', '.fit')) and gXUJ == 0)\n FxNH = B2fa.get('hdu', 0)\n with ZhJE(*qIxc, **B2fa) as n8OE:\n return n8OE[FxNH].head... | [
"0.6825467",
"0.6485469",
"0.6390574",
"0.6202901",
"0.6188153",
"0.61352265",
"0.6133005",
"0.61281914",
"0.61111146",
"0.60691553",
"0.6042169",
"0.60286766",
"0.60114247",
"0.5997263",
"0.5976793",
"0.5973175",
"0.5958367",
"0.59406096",
"0.5918116",
"0.58972317",
"0.58817... | 0.74172306 | 0 |
Returns a chebyshev model of the wavelength solution. Constructs a Chebyshev1D mathematical model | def nIUY(uG2y):
C3ST = FYrf.Chebyshev1D(degree=uG2y['order'] - 1, domain=[uG2y['pmin'], uG2y['pmax']])
rosz = [uG2y['fpar'][YRbF] for YRbF in range(uG2y['order'])]
C3ST.parameters = rosz
return C3ST | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nIUY(YKHO, EcVT):\n if len(list(EcVT.shape)) == 2:\n EcVT = EcVT.unsqueeze(2)\n Htse = list(EcVT.shape)\n Htse = tuple([YKHO.filter_order] + Htse)\n d9C6 = ht2j.empty(Htse, dtype=ht2j.float).to(EcVT.device)\n aPd6 = YKHO.L.to(EcVT.device)\n d9C6[0, ...] = EcVT\n if YKHO.filter_order... | [
"0.64420825",
"0.61338",
"0.60124534",
"0.58479816",
"0.5738603",
"0.56981003",
"0.566477",
"0.56028265",
"0.5580329",
"0.5565149",
"0.5545789",
"0.55050737",
"0.5490033",
"0.5436619",
"0.54148465",
"0.5412594",
"0.5397461",
"0.5389478",
"0.5389065",
"0.53778106",
"0.5366425"... | 0.72790265 | 0 |
Takes in a list of column headers and the Data object and returns the matrix transposed | def l7uB(E9iv, rkwK):
ycBG = rkwK.get_specific_col_data(E9iv)
return ycBG.getT() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l7uB(YKHO):\n Jg2u = []\n for YRbF in range(4):\n Jg2u.append([])\n for r845 in range(4):\n Jg2u[YRbF].append(YKHO.data[r845][YRbF])\n YKHO.data = Jg2u",
"def OvHb(YKHO, nPrm):\n if nPrm is not None:\n nPrm = nPrm.T\n return nPrm",
"def fZuf(nPrm):\n ezWE =... | [
"0.6897366",
"0.6697797",
"0.65704197",
"0.65193117",
"0.65167207",
"0.64970064",
"0.6496589",
"0.6487225",
"0.64707994",
"0.6457141",
"0.64131904",
"0.6316135",
"0.6313966",
"0.62971324",
"0.6274846",
"0.62678015",
"0.62607646",
"0.625765",
"0.6237467",
"0.62236995",
"0.6223... | 0.76113856 | 0 |
Return the MNIST data as a tuple containing the training data, the validation data, and the test data. The ``training_data`` is returned as a tuple with two entries. The first entry contains the actual training images. This is a numpy ndarray with 50,000 entries. Each entry is, in turn, a numpy ndarray with 784 values,... | def UlWi():
eHNT = lGU7.open('../data/mnist.pkl.gz', 'rb')
bPNP, G91x, Zwka = rIin.load(eHNT)
eHNT.close()
return (bPNP, G91x, Zwka) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi():\n BVu8 = oyIN.asarray(CgcG('./MNIST_data/t10k-images.idx3-ubyte'), dtype='float32')\n PdIf = oyIN.asarray(Tuwg('./MNIST_data/t10k-labels.idx1-ubyte'), dtype='int64')\n O8y7 = oyIN.asarray(CgcG('./MNIST_data/train-images.idx3-ubyte'), dtype='float32')\n GUiw = oyIN.asarray(Tuwg('./MNIST_data... | [
"0.7394925",
"0.73826116",
"0.72805053",
"0.71597946",
"0.7084767",
"0.6990694",
"0.690976",
"0.68204165",
"0.68192494",
"0.67893493",
"0.67006224",
"0.6696899",
"0.66809136",
"0.66729015",
"0.6606744",
"0.65765864",
"0.6562627",
"0.65522087",
"0.65222585",
"0.65210915",
"0.6... | 0.6150385 | 50 |
Return a tuple containing ``(training_data, validation_data, test_data)``. Based on ``load_data``, but the format is more convenient for use in our implementation of neural networks. In particular, ``training_data`` is a list containing 50,000 2tuples ``(x, y)``. ``x`` is a 784dimensional numpy.ndarray containing the i... | def algW():
NSsc, NHDr, fNuk = UlWi()
GgE5 = [oyIN.reshape(WKvO, (784, 1)) for WKvO in NSsc[0]]
lYXe = NSsc[1]
bPNP = zip(GgE5, lYXe)
pvEG = [oyIN.reshape(WKvO, (784, 1)) for WKvO in NHDr[0]]
G91x = zip(pvEG, NHDr[1])
PKOo = [oyIN.reshape(WKvO, (784, 1)) for WKvO in fNuk[0]]
Zwka = zip(P... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UlWi():\n BVu8 = oyIN.asarray(CgcG('./MNIST_data/t10k-images.idx3-ubyte'), dtype='float32')\n PdIf = oyIN.asarray(Tuwg('./MNIST_data/t10k-labels.idx1-ubyte'), dtype='int64')\n O8y7 = oyIN.asarray(CgcG('./MNIST_data/train-images.idx3-ubyte'), dtype='float32')\n GUiw = oyIN.asarray(Tuwg('./MNIST_data... | [
"0.71881485",
"0.71235216",
"0.70496583",
"0.6982123",
"0.6952076",
"0.6930577",
"0.6930577",
"0.6930577",
"0.69024515",
"0.68298644",
"0.6817031",
"0.6720196",
"0.66801685",
"0.666892",
"0.66521364",
"0.6629762",
"0.6629677",
"0.66127735",
"0.6583089",
"0.65824246",
"0.65752... | 0.6646074 | 15 |
Schedule a task to run later, after the loop has started. Different from asyncio.ensure_future in that it does not also return a future, and the actual ensure_future call is delayed until before server start. | def eVIp(YKHO, D5gV):
@YKHO.listener('before_server_start')
def iXC1(P4t4, lGbz):
if callable(D5gV):
lGbz.create_task(D5gV())
else:
lGbz.create_task(D5gV) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uHFs(h7D2, db6b, *qIxc, **B2fa):\n lGbz = V7ok.get_event_loop()\n return lGbz.call_later(h7D2, xBlr.partial(db6b, *qIxc, **B2fa))",
"async def _task_loop(YKHO):\n YKHO._task_loop_started = True\n try:\n while True:\n YKHO._task_func()\n await V7ok.sleep(YKHO._delay)\n... | [
"0.66450655",
"0.62666297",
"0.623236",
"0.60600644",
"0.60600644",
"0.59074885",
"0.58739185",
"0.5838329",
"0.58091986",
"0.5808066",
"0.57862896",
"0.57503074",
"0.5736806",
"0.5736806",
"0.5700727",
"0.56957865",
"0.56743795",
"0.56541073",
"0.55948895",
"0.5583108",
"0.5... | 0.5304752 | 51 |
Return a string representation of the scalar quantity. | def zAg0(YKHO):
Aofo = '{0:g}'.format(YKHO.value)
if YKHO.uncertainty != 0.0:
Aofo += ' {0} {1:g}'.format(YKHO.uncertainty_type, YKHO.uncertainty)
if YKHO.units != '':
Aofo += ' {0}'.format(YKHO.units)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def h4B2(SRYB: sc.Variable, rhd_: int=3) -> str:\n return YQT8(SRYB.value, precision=rhd_) + (f' {SRYB.unit}' if SRYB.unit not in (None, '') else '')",
"def zAg0(YKHO):\n return 'Q-vector( ' + ' '.join(map(lambda WKvO, LVAh: WKvO + LVAh, map('{:+}'.format, YKHO.data), ['', 'i', 'j', 'k'])) + ' )'",
"def ... | [
"0.7249331",
"0.69646597",
"0.685065",
"0.6709119",
"0.6708757",
"0.64439213",
"0.643128",
"0.640592",
"0.63439655",
"0.6328091",
"0.6328089",
"0.6326574",
"0.63186824",
"0.63149387",
"0.6276359",
"0.62585014",
"0.625686",
"0.6243465",
"0.62183475",
"0.6212522",
"0.62109154",... | 0.65653425 | 5 |
Return a string representation that can be used to reconstruct the scalar quantity. | def wHJl(YKHO):
if YKHO.units == '' and YKHO.uncertainty == 0.0:
return '{0:g}'.format(YKHO.value)
else:
Aofo = '({0:g},{1!r}'.format(YKHO.value, YKHO.units)
if YKHO.uncertainty != 0.0:
Aofo += ',{0!r},{1:g}'.format(YKHO.uncertainty_type, YKHO.uncertainty)
Aofo += ')'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return 'Q-vector( ' + ' '.join(map(lambda WKvO, LVAh: WKvO + LVAh, map('{:+}'.format, YKHO.data), ['', 'i', 'j', 'k'])) + ' )'",
"def h4B2(SRYB: sc.Variable, rhd_: int=3) -> str:\n return YQT8(SRYB.value, precision=rhd_) + (f' {SRYB.unit}' if SRYB.unit not in (None, '') else '')",
"def ... | [
"0.71843004",
"0.7159112",
"0.68716645",
"0.6620475",
"0.6601172",
"0.6538831",
"0.6522334",
"0.65136737",
"0.6509286",
"0.64529896",
"0.64245856",
"0.6424116",
"0.64178324",
"0.6402403",
"0.6402237",
"0.6362911",
"0.63424146",
"0.63235515",
"0.630678",
"0.6303687",
"0.629746... | 0.62709314 | 24 |
Return ``True`` if the everything in a quantity object matches the parameters in this object. If there are lists of values or uncertainties, each item in the list must be matching and in the same order. Otherwise, return ``False`` (Originally intended to return warning if units capitalization was different, however, Qu... | def aPi6(YKHO, cTRz):
def jEht(WKvO, LVAh, rU28=0.01):
"""
Returns true if two float/double values are approximately equal
within a relative error of 1% or under a user specific absolute tolerance.
"""
return abs(WKvO - LVAh) <= 0.01 * abs(WKvO) or abs(WKvO - LVA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPi6(YKHO, cTRz):\n\n def jEht(WKvO, LVAh, rU28=0.01):\n \"\"\"\n Returns true if two float/double values are approximately equal\n within a relative error of 1% or under a user specific absolute tolerance.\n \"\"\"\n return abs(WKvO - LVAh) <= 0.01 * abs(WKvO)... | [
"0.6849511",
"0.6281607",
"0.619942",
"0.61991256",
"0.610163",
"0.60461074",
"0.60197395",
"0.6002477",
"0.59727365",
"0.5956383",
"0.5932882",
"0.58389294",
"0.58353114",
"0.5800974",
"0.5795963",
"0.57834125",
"0.5782792",
"0.5760363",
"0.5754333",
"0.57494855",
"0.5743456... | 0.65526044 | 1 |
Return a string representation of the array quantity. | def zAg0(YKHO):
if YKHO.value.ndim == 1:
BWXx = '[{0}]'.format(','.join(['{0:g}'.format(float(Ty9i)) for Ty9i in YKHO.value]))
elif YKHO.value.ndim == 2:
BWXx = []
for YRbF in range(YKHO.value.shape[0]):
BWXx.append('[{0}]'.format(','.join(['{0:g}'.format(float(YKHO.value[YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n yvT9 = 'DYN_ARR Size/Cap: '\n yvT9 += str(YKHO.size) + '/' + str(YKHO.capacity) + ' ['\n yvT9 += ', '.join([str(YKHO.data[bGrB]) for bGrB in range(YKHO.size)])\n return yvT9 + ']'",
"def wHJl(YKHO):\n return str(YKHO.as_array)",
"def wHJl(YKHO):\n return str(YKHO.as_a... | [
"0.7305919",
"0.7116885",
"0.7116885",
"0.69798106",
"0.6972599",
"0.6931434",
"0.6919826",
"0.6879802",
"0.6825482",
"0.67502874",
"0.670281",
"0.6664774",
"0.6664204",
"0.65755564",
"0.6510017",
"0.6487273",
"0.6435486",
"0.6393468",
"0.63921785",
"0.63921785",
"0.63762444"... | 0.64300734 | 17 |
Return a string representation that can be used to reconstruct the array quantity. | def wHJl(YKHO):
if YKHO.value.ndim == 1:
BWXx = '[{0}]'.format(','.join(['{0:g}'.format(float(Ty9i)) for Ty9i in YKHO.value]))
elif YKHO.value.ndim == 2:
BWXx = []
for YRbF in range(YKHO.value.shape[0]):
BWXx.append('[{0}]'.format(','.join(['{0:g}'.format(float(YKHO.value[YRb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n yvT9 = 'DYN_ARR Size/Cap: '\n yvT9 += str(YKHO.size) + '/' + str(YKHO.capacity) + ' ['\n yvT9 += ', '.join([str(YKHO.data[bGrB]) for bGrB in range(YKHO.size)])\n return yvT9 + ']'",
"def zAg0(YKHO):\n return 'Q-vector( ' + ' '.join(map(lambda WKvO, LVAh: WKvO + LVAh, map('... | [
"0.7461313",
"0.715982",
"0.71409523",
"0.7051176",
"0.70455605",
"0.70455605",
"0.7041351",
"0.6905292",
"0.6876013",
"0.6864171",
"0.68488526",
"0.68194795",
"0.66936296",
"0.66811913",
"0.6676786",
"0.66596806",
"0.66575456",
"0.65668213",
"0.653247",
"0.653247",
"0.653104... | 0.6432693 | 27 |
Return ``True`` if the everything in a quantity object matches the parameters in this object. If there are lists of values or uncertainties, each item in the list must be matching and in the same order. Otherwise, return ``False`` (Originally intended to return warning if units capitalization was different, however, Qu... | def aPi6(YKHO, cTRz):
def jEht(WKvO, LVAh, rU28=0.01):
"""
Returns true if two float/double values are approximately equal
within a relative error of 1% or under a user specific absolute tolerance.
"""
return abs(WKvO - LVAh) <= 0.01 * abs(WKvO) or abs(WKvO - LVA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aPi6(YKHO, cTRz):\n\n def jEht(WKvO, LVAh, rU28=0.01):\n \"\"\"\n Returns true if two float/double values are approximately equal\n within a relative error of 1% or under a user specific absolute tolerance.\n \"\"\"\n return abs(WKvO - LVAh) <= 0.01 * abs(WKvO)... | [
"0.65526044",
"0.6281607",
"0.619942",
"0.61991256",
"0.610163",
"0.60461074",
"0.60197395",
"0.6002477",
"0.59727365",
"0.5956383",
"0.5932882",
"0.58389294",
"0.58353114",
"0.5800974",
"0.5795963",
"0.57834125",
"0.5782792",
"0.5760363",
"0.5754333",
"0.57494855",
"0.574345... | 0.6849511 | 0 |
Constructor for the TorusInterface class. | def FIMM(YKHO, JzTA, *qIxc, **B2fa):
super(sWxk, YKHO).__init__(JzTA)
YKHO.interface_id = qIxc[0]
YKHO.router_id_a = qIxc[1]
YKHO.router_id_b = qIxc[2]
YKHO.stat = {'bytesSent': 0, 'packetsSent': 0, 'bytesReceived': 0, 'packetsReceived': 0, 'bytesLost': 0, 'packetsLost': 0}
YKHO.stat_1 = {'bytes... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hcdb(*qIxc, **B2fa):\n pass",
"def FIMM(YKHO):\n ht2j.nn.Module.__init__(YKHO)",
"def FIMM(YKHO):\n ht2j.nn.Module.__init__(YKHO)",
"def FIMM(YKHO):\n raise NotImplementedError('Cannot instantiate this class directly!')",
"def FIMM(YKHO):\n raise NotImplementedError('Not implemented in i... | [
"0.65785795",
"0.65483797",
"0.65483797",
"0.65320414",
"0.65079296",
"0.65027314",
"0.65027314",
"0.6470544",
"0.6470544",
"0.64563185",
"0.64555925",
"0.64503974",
"0.6423471",
"0.6423471",
"0.6410024",
"0.63864607",
"0.63708377",
"0.63692254",
"0.63637143",
"0.63608414",
"... | 0.6381522 | 16 |
Django view decorator to check if user has access permission for a survey or not. | def KhjC(o2cw='response'):
def RpqM(JfyU):
def GDMi(QePW, QAIN, YUGN=None, *qIxc, **B2fa):
V2HN = QePW.user.registereduser
if YUGN is None:
YUGN = QePW.GET.get('survey_uid', QePW.POST.get('survey_uid', None))
if YUGN is None:
rais... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qHTF(YKHO, QePW, tTee):\n return True",
"def qHTF(YKHO, QePW, tTee):\n raise NotImplementedError()",
"def qHTF(YKHO, QePW, tTee):\n return True",
"def qHTF(YKHO, QePW, tTee):\n return True",
"def qHTF(YKHO, QePW, tTee):\n return True",
"def qHTF(YKHO, QePW, tTee):\n return True",
... | [
"0.7430767",
"0.73259205",
"0.7294925",
"0.7294925",
"0.7294925",
"0.7294925",
"0.7294925",
"0.723496",
"0.7202985",
"0.7202985",
"0.71811426",
"0.7152023",
"0.7053118",
"0.6992391",
"0.6978293",
"0.69470805",
"0.69237536",
"0.6921168",
"0.69086283",
"0.6904891",
"0.68980086"... | 0.7194866 | 10 |
Takes as input Ui (the ith row of U), a training point Yij, the column vector Vj (jth column of V), reg (the regularization parameter lambda), and eta (the learning rate). Returns the gradient of the regularized loss function with respect to Ui multiplied by eta. | def XHoq(dY7y, i3Ni, nuZM, d_Ba, qYbV, lQ3t, RHJb):
return (1 - lQ3t * RHJb) * dY7y + RHJb * nuZM * (i3Ni - (oyIN.dot(dY7y, nuZM) + d_Ba + qYbV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n KvTy = lQ3t * dY7y\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * nuZM\n ICX2 = KvTy - inty\n return RHJb * ICX2",
"def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n return dY7y * RHJb * lQ3t + nuZM * RHJb * (oyIN.dot(dY7y, nuZM) - i3Ni)",
"def hKYp(nuZM, i3Ni, dY7y, ... | [
"0.80732787",
"0.7733636",
"0.7721291",
"0.7720031",
"0.757637",
"0.73460877",
"0.73338133",
"0.7080719",
"0.70642984",
"0.67886716",
"0.6546874",
"0.632711",
"0.631869",
"0.62976485",
"0.6228016",
"0.62018985",
"0.6179895",
"0.61089104",
"0.6064707",
"0.60643154",
"0.600718"... | 0.73024726 | 7 |
Takes as input the column vector Vj (jth column of V), a training point Yij, Ui (the ith row of U), reg (the regularization parameter lambda), and eta (the learning rate). Returns the gradient of the regularized loss function with respect to Vj multiplied by eta. | def hKYp(nuZM, i3Ni, dY7y, d_Ba, qYbV, lQ3t, RHJb):
return (1 - lQ3t * RHJb) * nuZM + RHJb * dY7y * (i3Ni - (oyIN.dot(dY7y, nuZM) + d_Ba + qYbV)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hKYp(nuZM, i3Ni, dY7y, lQ3t, RHJb):\n KvTy = lQ3t * nuZM\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * dY7y\n ICX2 = KvTy - inty\n return RHJb * ICX2",
"def XHoq(dY7y, i3Ni, nuZM, lQ3t, RHJb):\n KvTy = lQ3t * dY7y\n inty = (i3Ni - oyIN.dot(dY7y, nuZM)) * nuZM\n ICX2 = KvTy - inty\n return ... | [
"0.8110445",
"0.78731185",
"0.77959776",
"0.77801865",
"0.75872576",
"0.7585753",
"0.7467703",
"0.7431157",
"0.7138712",
"0.67096394",
"0.66510653",
"0.63936853",
"0.63457817",
"0.6343142",
"0.6328406",
"0.632101",
"0.620093",
"0.6174453",
"0.61290497",
"0.6057888",
"0.603927... | 0.7509577 | 6 |
Takes as input a matrix Y of triples (i, j, Y_ij) where i is the index of a user, j is the index of a movie, and Y_ij is user i's rating of movie j and user/movie matrices U and V. Returns the mean regularized squarederror of predictions made by estimating Y_{ij} as the dot product of the ith row of U and the jth colum... | def u0qw(KkY2, cAlv, jzdc, Fg_i, fuBA, lQ3t=0.0):
print('estoy acqui!!!!!!!')
quit()
XObx = 0.0
for YRbF, r845, i3Ni in fuBA:
YRbF, r845 = (int(YRbF), int(r845))
XObx += 0.5 * (i3Ni - (oyIN.dot(KkY2[YRbF - 1], cAlv[:, r845 - 1]) + jzdc[YRbF - 1] + Fg_i[r845 - 1])) ** 2
if lQ3t != 0:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Mwhu(LVAh: np.ndarray, aMgO: np.ndarray) -> float:\n return LVAh.mean()",
"def L0Rr(fuBA, A3Vt):\n tuER = fuBA * A3Vt\n xwI_ = tuER.sum(axis=1) / A3Vt.sum(axis=1)\n xwI_ = xwI_.reshape(-1, 1)\n ryZv = (tuER - xwI_) * A3Vt\n return (ryZv, xwI_)",
"def SDab(Y8eF, aMgO):\n return oyIN.mea... | [
"0.6192448",
"0.6174496",
"0.6153538",
"0.613514",
"0.6132908",
"0.6071437",
"0.60677445",
"0.6057965",
"0.60493094",
"0.604042",
"0.6036976",
"0.6033932",
"0.60041904",
"0.5973323",
"0.595633",
"0.59496456",
"0.591476",
"0.5896312",
"0.58868515",
"0.5884621",
"0.5882501",
... | 0.0 | -1 |
Return one of predefined type of the hosting device drivers. | def FRul(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UWUi() -> str:\n pass",
"def E_qD(type):\n for Csk6 in zxMY:\n if Csk6.handles(type):\n return Csk6\n raise _vLr.XenError('SRUnknownType')",
"def S5no(YKHO):\n ey31 = 'showsys'\n yvT9 = YKHO._execute_cli(ey31)\n YKHO._assert_cli_out(ZbWC.search('System Information', yvT9... | [
"0.7429754",
"0.722989",
"0.7103812",
"0.709477",
"0.70462924",
"0.7040715",
"0.7031681",
"0.7031681",
"0.7031681",
"0.6985653",
"0.69517225",
"0.69262004",
"0.6857182",
"0.68175656",
"0.6802491",
"0.680156",
"0.67781585",
"0.6767662",
"0.6721907",
"0.6706422",
"0.66980165",
... | 0.0 | -1 |
Display the main landing page | def d6pt(QePW):
return K8PR.render_to_response('global/index.html', {'page_title': 'Welcome'}, context_instance=rPXJ.RequestContext(QePW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F_xU():\n return TvZl('index.html')",
"def hXw_():\n return TvZl('landing_page.html')",
"def hXw_(QePW):\n return SGJU('landing.html')",
"def lb1t():\n return TvZl('index.html')",
"def F_xU():\n return TvZl('landing.html')",
"def kZiy():\n return TvZl('main.html')",
"def d6pt():\n... | [
"0.7994347",
"0.7818798",
"0.7817849",
"0.77777916",
"0.774976",
"0.76761675",
"0.7645662",
"0.7613808",
"0.75839853",
"0.7543681",
"0.7524178",
"0.73799896",
"0.73665947",
"0.73373693",
"0.73230684",
"0.7274799",
"0.7263008",
"0.7259088",
"0.72494674",
"0.72362703",
"0.72331... | 0.0 | -1 |
Get configured platforms for a controller. | def nOrH(lP7u: ControllerData) -> set[zR2c]:
i3kb: list[zR2c] = []
for a9EH in lP7u.devices:
i3kb.append(a9EH)
if lP7u.scenes:
i3kb.append(zR2c.SCENE)
return set(i3kb) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def i3kb(YKHO) -> fRFd:\n return YKHO.settings.platforms",
"def pHhO(YKHO):\n return YKHO._registry.get_platforms()",
"def i3kb(YKHO):\n return [WKvO.platform for WKvO in YKHO.target]",
"def i3kb(YKHO):\n return YKHO.rpc.call(OMwV.ModulePlatforms)",
"def i3kb(YKHO) -> tuple:\n return YKHO.__... | [
"0.7624855",
"0.7607683",
"0.71724796",
"0.698058",
"0.6944647",
"0.6941076",
"0.68666553",
"0.66063195",
"0.66035783",
"0.65017295",
"0.64458615",
"0.64276993",
"0.639694",
"0.63950133",
"0.63781315",
"0.63675",
"0.62996274",
"0.62723255",
"0.6161926",
"0.61112255",
"0.60966... | 0.7860857 | 0 |
Sanitize the existing msg, use before adding color annotations. | def aSeI(tO9_):
tO9_ = tO9_.replace('@', '@@')
tO9_ = tO9_.replace('{', '{{')
tO9_ = tO9_.replace('}', '}}')
tO9_ = tO9_.replace('@@!', '@{atexclimation}')
tO9_ = tO9_.replace('@@/', '@{atfwdslash}')
tO9_ = tO9_.replace('@@_', '@{atunderscore}')
tO9_ = tO9_.replace('@@|', '@{atbar}')
ret... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aSeI(tO9_):\n return KnkY.sub('\\\\1...', tO9_)",
"def NkkI(tO9_):\n return tO9_['message'].replace(' ', '')",
"def x0SS(YKHO, tO9_):\n TKMu = tO9_.translate(tn0f).strip()\n return ZbWC.sub('\\\\s+', ' ', TKMu)",
"def EpMf(YKHO, Ol8d):\n bo34.debug(Ol8d)\n if not any([YKHO.entity_map[LE... | [
"0.7389987",
"0.7146638",
"0.67822653",
"0.66510576",
"0.6595127",
"0.65269864",
"0.6525458",
"0.6189569",
"0.6165569",
"0.61366856",
"0.6105006",
"0.6074984",
"0.6036087",
"0.59521246",
"0.5928321",
"0.5889975",
"0.5887889",
"0.58381027",
"0.58277047",
"0.5822778",
"0.578331... | 0.71018386 | 2 |
Sets the _date of this OrderTrack. | def dcJF(YKHO, dcJF):
if YKHO._configuration.client_side_validation and dcJF is None:
raise ValueError('Invalid value for `_date`, must not be `None`')
YKHO.__date = dcJF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T",
"def wjGx(YKHO, _c1T):\n YKHO.date = _c1T\n return",
"def gq4h(YKHO, _c1T):\n YKHO.__date = _c1T\n return YKHO",
"def dcJF(YKHO, dcJF: datetime):\n YKHO.__date = dcJF",
"def dcJF(YKHO, dcJF: datetime):\n YKHO.__date = dcJF",
"def _c1T(YKHO... | [
"0.81419945",
"0.8118433",
"0.7983755",
"0.79701966",
"0.79701966",
"0.79639494",
"0.7949086",
"0.7949086",
"0.7949086",
"0.7949086",
"0.7949086",
"0.7921401",
"0.7921401",
"0.7921401",
"0.7921401",
"0.7921401",
"0.7895504",
"0.7821435",
"0.7775924",
"0.7595397",
"0.7558299",... | 0.7361677 | 22 |
Sets the external_track_id of this OrderTrack. | def MqH3(YKHO, MqH3):
YKHO._external_track_id = MqH3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 Tvwn(YKHO, WhG7):\n YKHO.set_condition('StringEquals', {'sts:ExternalId', WhG7})\n return YKHO",
"def WhG7(YKHO, WhG7):\n if WhG7... | [
"0.73669106",
"0.73669106",
"0.73669106",
"0.699534",
"0.6725558",
"0.6725558",
"0.67187756",
"0.6631676",
"0.64872086",
"0.63317126",
"0.6274956",
"0.6274956",
"0.6248325",
"0.6248325",
"0.5808413",
"0.58080906",
"0.56368375",
"0.56368375",
"0.5613714",
"0.5487404",
"0.54816... | 0.86644346 | 0 |
Sets the fee of this OrderTrack. | def woha(YKHO, woha):
YKHO._fee = woha | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def woha(YKHO, woha):\n YKHO._fee = woha",
"def Q7p0(YKHO, Q7p0):\n YKHO._point_fee = Q7p0",
"def TVsX(YKHO, TVsX):\n YKHO._gt_fee = TVsX",
"def z0Sv(YKHO, or8S, woha):\n MBgB = YKHO.accounts[or8S]\n MBgB.relayFee = woha\n YKHO.acctDB[or8S] = MBgB",
"def i777(YKHO, i777):\n YKHO._fee_c... | [
"0.80615586",
"0.70376575",
"0.69597346",
"0.6768351",
"0.6742743",
"0.65599483",
"0.6449586",
"0.62184465",
"0.6210212",
"0.60977143",
"0.6032782",
"0.60261154",
"0.6022891",
"0.577114",
"0.57187057",
"0.55870235",
"0.55192524",
"0.5503686",
"0.5480391",
"0.5461277",
"0.5403... | 0.8079616 | 0 |
Sets the metadata of this OrderTrack. | def yIVm(YKHO, yIVm):
YKHO._metadata = yIVm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIVm(YKHO, yIVm):\n YKHO._metadata = yIVm",
"def HSI9(YKHO, yIVm):\n YKHO.metadata = yIVm\n return YKHO",
"def HSI9(YKHO, yIVm):\n YKHO.metadata = yIVm\n return YKHO",
"def HSI9(YKHO, yIVm):\n YKHO._metadata = yIVm\n return YKHO",
"def yIVm(YKHO, BWXx):\n YKHO._metadata = BWXx",... | [
"0.7167166",
"0.7095561",
"0.7095561",
"0.7069328",
"0.69173676",
"0.69094026",
"0.68903506",
"0.67784387",
"0.672271",
"0.66784513",
"0.66563183",
"0.66350484",
"0.6623075",
"0.66127455",
"0.66127455",
"0.66127455",
"0.66127455",
"0.66127455",
"0.66127455",
"0.66127455",
"0.... | 0.71617234 | 1 |
Sets the update_date of this OrderTrack. | def XXYj(YKHO, XXYj):
YKHO._update_date = XXYj | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def kpkr(YKHO, QdZT):\n ... | [
"0.7251036",
"0.7251036",
"0.7251036",
"0.7251036",
"0.7251036",
"0.6920476",
"0.683262",
"0.683262",
"0.683262",
"0.683262",
"0.6440075",
"0.6288099",
"0.61524075",
"0.5850713",
"0.5845604",
"0.5845604",
"0.5845604",
"0.5845604",
"0.5845604",
"0.5845604",
"0.5845604",
"0.5... | 0.78837246 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
if not isinstance(Elif, bhHa):
return True
return YKHO.to_dict() != Elif.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Returns the error relative to analytical solution using L1 norm. | def EkHl(epBp, JRYC):
ywwl = len(epBp)
a1PO = oyIN.linspace(0.0, Kt_s, ywwl)
EYsV = _qjy * (gz80 / Oa1e) ** 0.5 * oyIN.sin((Oa1e / gz80) ** 0.5 * a1PO) + (cflT - gz80) * oyIN.cos((Oa1e / gz80) ** 0.5 * a1PO) + gz80
P1dF = oyIN.sum(oyIN.abs(epBp - EYsV))
return JRYC * P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rrz_(YKHO):\n return oyIN.linalg.norm(YKHO.Lw_true - YKHO.Lw_est, ord=2) / oyIN.linalg.norm(YKHO.Lw_true, ord=2)",
"def H_DF(YKHO) -> oyIN.float:\n return oyIN.sqrt(1 / (YKHO.n_temporal * YKHO.n_spatial)) * oyIN.linalg.norm(YKHO.u_exact - YKHO.u_numerical)",
"def Gv3L(YKHO):\n Ty9i = (YKHO.u - YKH... | [
"0.73065907",
"0.7193114",
"0.68169725",
"0.67154586",
"0.6648486",
"0.66179943",
"0.65831196",
"0.6413816",
"0.6412978",
"0.6340875",
"0.6328102",
"0.628681",
"0.6282317",
"0.6278328",
"0.6257795",
"0.62457895",
"0.62255275",
"0.62058944",
"0.618398",
"0.618398",
"0.6163415"... | 0.5750644 | 80 |
Create the churn column, which is our target variable y that we are trying to predict A customer is considered churned if they haven't taken trip in last 30 days | def tmFm(YKHO):
YKHO.df['last_trip_date'] = rLdf.to_datetime(YKHO.df['last_trip_date'])
YKHO.df['Churn'] = (YKHO.df.last_trip_date < '2014-06-01').astype(int) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fVAf(jQ3Z):\n jQ3Z['Injured'] = jQ3Z[['TotalFatalInjuries', 'TotalMinorInjuries', 'TotalSeriousInjuries']].sum(axis=1)\n jQ3Z['ReportsNull'] = jQ3Z[['TotalFatalInjuries', 'TotalSeriousInjuries', 'TotalMinorInjuries', 'TotalUninjured']].isnull().all(1)\n jQ3Z['target'] = jQ3Z.apply(lambda WKvO: oyIN.na... | [
"0.6234435",
"0.59920675",
"0.58312356",
"0.5793213",
"0.56846267",
"0.56580204",
"0.56323373",
"0.55573285",
"0.53932357",
"0.53647274",
"0.5341171",
"0.5338205",
"0.5305847",
"0.52804",
"0.5271022",
"0.52576077",
"0.52062136",
"0.5150382",
"0.51457566",
"0.51417434",
"0.513... | 0.7254961 | 0 |
Create dummy columns for categorical variables | def bMto(YKHO, ZLJ_):
ZrDu = rLdf.get_dummies(YKHO.df[ZLJ_], prefix=ZLJ_)
YKHO.df = YKHO.df.drop(ZLJ_, axis=1)
YKHO.df = rLdf.concat([YKHO.df, ZrDu], axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tVT8(YKHO):\n YKHO.df = rLdf.get_dummies(YKHO.df[[WKvO for WKvO in YKHO.df.columns]])",
"def ROuh(jQ3Z, R8Ph, DM6L):\n for fvDH in R8Ph:\n try:\n ewrA = rLdf.get_dummies(jQ3Z[fvDH], prefix=fvDH, prefix_sep='_', drop_first=True, dummy_na=DM6L)\n jQ3Z = rLdf.concat([jQ3Z.drop... | [
"0.80513704",
"0.79333806",
"0.7508924",
"0.7374526",
"0.7343717",
"0.72857416",
"0.7274672",
"0.7233472",
"0.72316056",
"0.721887",
"0.71552885",
"0.7073674",
"0.7068071",
"0.70532644",
"0.7008431",
"0.6993826",
"0.6946459",
"0.693743",
"0.6931986",
"0.69225043",
"0.6917911"... | 0.6880297 | 22 |
Get the names of columns currently in the dataframe | def XUX0(YKHO):
return list(YKHO.df.columns.values) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KaGe(YKHO) -> list:\n return list(YKHO.df.columns)",
"def Txl5(YKHO):\n return YKHO.column_df().fieldName.tolist()",
"def O55l(bOBl: pd.DataFrame) -> x1iM[str]:\n bo34.info('Step 1: Getting dataframe columns...')\n return bOBl.columns.tolist()",
"def Txl5(YKHO):\n return YKHO._data.columns... | [
"0.8306748",
"0.8182623",
"0.81501216",
"0.8103631",
"0.7904861",
"0.7875827",
"0.7840445",
"0.7836575",
"0.78014016",
"0.7771493",
"0.77614385",
"0.7718181",
"0.7707366",
"0.76770276",
"0.7650547",
"0.7624918",
"0.76228815",
"0.7608509",
"0.75996494",
"0.7562469",
"0.7551567... | 0.85155904 | 0 |
Remove numerical data more than 3x outside of a column's std | def EKfe(YKHO, fvDH):
M1Jx = YKHO.df[fvDH].std()
XXcz = YKHO.df[fvDH].mean() - 3 * M1Jx
w3IF = YKHO.df[fvDH].mean() + 3 * M1Jx
YKHO.df = YKHO.df[(YKHO.df[fvDH] >= XXcz) & (YKHO.df[fvDH] <= w3IF)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def poc_(bOBl, fvDH):\n JBMS = oyIN.round(bOBl[fvDH].mean(), 3)\n M1Jx = oyIN.round(bOBl[fvDH].std(), 3)\n AWN4 = bOBl[abs(bOBl[fvDH] - JBMS) > 3 * M1Jx]\n return AWN4",
"def ESGO(WKvO):\n return oyIN.median(oyIN.abs(WKvO - oyIN.median(WKvO))) / 0.6745",
"def D5vN(jQ3Z, mLGw):\n jQ3Z = jQ3Z[j... | [
"0.7364084",
"0.71491086",
"0.708994",
"0.7072936",
"0.6955427",
"0.68929523",
"0.68348724",
"0.68014675",
"0.6715967",
"0.6681023",
"0.6670359",
"0.6665056",
"0.6645174",
"0.6641028",
"0.66290367",
"0.6608098",
"0.65918064",
"0.6583837",
"0.65823275",
"0.657501",
"0.65475786... | 0.6442313 | 32 |
Drop one of the dummy columns for when using a regression model | def riaV(YKHO):
YKHO.df = YKHO.df.drop(['phone_iPhone', 'city_Astapor'], axis=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def oi81(YKHO, HM_W=[]):\n YKHO.data = YKHO.abt_data.iloc[:, :]\n YKHO.target = YKHO.abt_data[YKHO.target_name]\n AxrZ = [YKHO.target_name] + HM_W\n for sTHq in AxrZ:\n if sTHq in YKHO.data:\n del YKHO.data[sTHq]\n if not YKHO.abt_test_data is None:\n YKHO.data_test = YKHO.a... | [
"0.69158006",
"0.6622707",
"0.65595746",
"0.653834",
"0.65272486",
"0.65110815",
"0.6461468",
"0.63641655",
"0.6327708",
"0.6258052",
"0.62428623",
"0.62260026",
"0.6216027",
"0.6201088",
"0.61553526",
"0.61520207",
"0.61404157",
"0.602602",
"0.6022928",
"0.60180944",
"0.6017... | 0.7568016 | 0 |
Create categorical dummy columns based on ratings of driver and then remove original average rating of driver column | def _iTv(YKHO):
YKHO.df['5star_driver'] = YKHO.df.avg_rating_of_driver == 5.0
YKHO.df['missing_dr_rating'] = YKHO.df.avg_rating_of_driver == 'missing'
YKHO.df['non5star_driver'] = (YKHO.df.avg_rating_of_driver != 'missing') & (YKHO.df.avg_rating_of_driver != 5.0)
YKHO.df = YKHO.df.drop('avg_rating_of_dr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yera():\n jQ3Z['class'] = jQ3Z['novelty_avg'].apply(lambda Ty9i: 1 if Ty9i >= 4 else 0)",
"def yera():\n jQ3Z['class'] = jQ3Z['novelty_avg'].apply(lambda Ty9i: 1 if Ty9i >= 4 else 0)",
"def jhux(mwlV):\n YAIq = []\n for RrWF in mwlV:\n if RrWF < -1.0:\n YAIq.append([1, 0, 0])\... | [
"0.5817424",
"0.5817424",
"0.56880033",
"0.5572379",
"0.5572115",
"0.5563671",
"0.5294509",
"0.5244949",
"0.52229977",
"0.52229977",
"0.5210353",
"0.51686454",
"0.51446813",
"0.51322746",
"0.5130415",
"0.50841147",
"0.5081962",
"0.5042455",
"0.50387734",
"0.5013472",
"0.50046... | 0.7782302 | 0 |
generates next batch of input of size `(negative_samples + 1) batch_size 5`. | def Gw1g(YKHO, Ep8u):
__n6 = []
AUxt = False
for d6pt in range(0, Ep8u):
qfFO = YKHO.last_index + d6pt
if qfFO >= YKHO.length:
AUxt = True
break
__n6.append(YKHO.__getitem__(qfFO))
if AUxt:
YKHO.last_index = 0
else:
YKHO.last_index += E... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yEmi(YKHO, Ep8u):\n Ep8u //= 2\n Mg8Q = YKHO._index_in_positive_images\n YKHO._index_in_positive_images += Ep8u\n if YKHO._index_in_positive_images > YKHO._num_positive_images:\n IuXB = oyIN.arange(YKHO._num_positive_images)\n oyIN.random.shuffle(IuXB)\n YKHO._positive_images =... | [
"0.7085776",
"0.6380794",
"0.63016605",
"0.62989604",
"0.6254345",
"0.6063472",
"0.605429",
"0.6018023",
"0.60116756",
"0.60088474",
"0.5984973",
"0.5972084",
"0.5965908",
"0.59634125",
"0.59235114",
"0.59077513",
"0.5902268",
"0.58862936",
"0.5884222",
"0.58736765",
"0.58662... | 0.0 | -1 |
applies `imageTransformer` on a single image | def xhoG(YKHO, LNo8):
VXjJ = YKHO.imageTransformer(LNo8)
return VXjJ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1jn(YKHO, LNo8):\n if YKHO.augmenter is not None:\n LNo8 = YKHO.augmenter(LNo8)\n return LNo8",
"def u5z4(YKHO, Yw_3):\n pass",
"def SZFh(p4m8):\n VXjJ = YKHO.loader(p4m8)\n return YKHO.transform(VXjJ)",
"def nrOS(YKHO, LNo8):\n LNo8 = oyIN.array(LNo8)\n LNo8 = YKHO.transform... | [
"0.72984964",
"0.72901005",
"0.7159728",
"0.7147141",
"0.70256454",
"0.6942554",
"0.6924066",
"0.68249744",
"0.6801799",
"0.6782829",
"0.67653906",
"0.6756457",
"0.6749798",
"0.674404",
"0.66812074",
"0.6656907",
"0.6653145",
"0.66522765",
"0.6634465",
"0.66019857",
"0.659768... | 0.80948466 | 0 |
loads the learned model from a particular `path` | def uyMl(YKHO, pmON):
if Hy7s.path.exists(pmON):
YKHO.model.load_state_dict(ht2j.load(pmON))
YKHO.model.train()
else:
print('[Error]: The path to saved model does not exists') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)",
"def uyMl(YKHO, pmON: str) -> None:\n if YKHO.name == 'MLP':\n YKHO.best_model = uyMl(pmON)\n else:\n YKHO.best_model = t2lc.load(open(pmON, 'rb'))",
"def uyMl(YKHO, pmON):\n YKHO.model = tyeH(pmON)",
"def uyMl(pmON... | [
"0.85551447",
"0.82438165",
"0.822674",
"0.81889635",
"0.8187509",
"0.81734645",
"0.8166078",
"0.81560487",
"0.8121036",
"0.8099672",
"0.8095816",
"0.8079016",
"0.8067708",
"0.8053444",
"0.80066454",
"0.8005151",
"0.7996339",
"0.7968724",
"0.7968305",
"0.7930318",
"0.79175985... | 0.82623327 | 1 |
Persist the chains to disk | def xkzz(YKHO):
try:
bo34.debug('Backing up chains')
if Hy7s.path.exists(YKHO._db):
RDuA.copyfile(YKHO._db, '{}.bak'.format(YKHO._db))
except Exception as e:
bo34.exception('Failed to backup chains')
return
try:
bo34.debug('Saving chains')
with ope... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xkzz(YKHO, pmON='./'):\n eHNT = open(pmON + YKHO.name + '.chain', 'wb')\n rIin.dump(YKHO, eHNT, rIin.HIGHEST_PROTOCOL)\n eHNT.close()",
"def UPdM(YKHO, nUeQ='emcee_chain.pkl', PJWX=True):\n import cPickle as t2lc\n ytgA = open(nUeQ, 'wb')\n t2lc.dump(YKHO.nwalkers, ytgA)\n t2lc.dump(YKHO... | [
"0.73030806",
"0.70681286",
"0.663036",
"0.6627206",
"0.6611927",
"0.6609433",
"0.65879697",
"0.6473613",
"0.6459226",
"0.6440244",
"0.638793",
"0.6350338",
"0.63445336",
"0.63264745",
"0.6308864",
"0.6297932",
"0.6297861",
"0.6286252",
"0.6262513",
"0.6244761",
"0.6227404",
... | 0.73782307 | 0 |
Creates a boolean mask from sequence lengths. | def rWMo(YKHO, Fbjb, wzH_=None):
Ep8u = Fbjb.numel()
wzH_ = wzH_ or Fbjb.max()
return ht2j.arange(0, wzH_).type_as(Fbjb).repeat(Ep8u, 1).lt(Fbjb.unsqueeze(1)).long() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuwY(Fbjb):\n H5Km = x0NN([XTiz.ones((aPd6,), dtype='i') for aPd6 in Fbjb])\n H5Km[H5Km < 0] = 0\n return H5Km.reshape((-1,)) >= 1",
"def rWMo(Fbjb):\n BcCR = Fbjb.max()\n V7sn = ht2j.arange(0, BcCR).unsqueeze(0).type_as(Fbjb)\n Fbjb = Fbjb.unsqueeze(1)\n ZHfW = ht2j.lt(V7sn, Fbjb)\n ... | [
"0.81336474",
"0.7948323",
"0.78921515",
"0.76167566",
"0.7611596",
"0.75231194",
"0.7504955",
"0.74895465",
"0.74890584",
"0.7488764",
"0.7459787",
"0.7456003",
"0.74467397",
"0.7329213",
"0.7309555",
"0.7309555",
"0.7309555",
"0.7298132",
"0.7283294",
"0.72799253",
"0.72799... | 0.7443297 | 13 |
adds a vertex to the blockmesh for blockID in the relevant location. | def fDbj(wRRy, eCL7, znEv, _UaW, YOvZ):
zyTA = wRRy
print('AnvilChunkReader.createBlock:' + ' chunkPos:' + str(eCL7) + ' blockPos:' + str(znEv) + ' blockID:' + str(wRRy) + ' extraBlockData:' + str(_UaW) + ' MTBlockKey:' + str(zyTA) + ' MTblock:' + tzxh[zyTA][0] + ' --> ' + tzxh[zyTA][3]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ohmD(YKHO):\n pass",
"def ohmD(YKHO, oqUi):\n if YKHO.contains_vertex(oqUi):\n return\n YKHO.vertex_dict[oqUi] = []",
"def ohmD(YKHO, oqUi):\n YKHO.vertices[oqUi] = Yegm(oqUi)",
"def ohmD(YKHO, oqUi):\n YKHO.vertices[oqUi] = Yegm(oqUi)",
"def ohmD(YKHO, oqUi):\n YKHO.vertices[o... | [
"0.74357444",
"0.7190558",
"0.717486",
"0.717486",
"0.7088312",
"0.7006542",
"0.6988835",
"0.69612586",
"0.69369715",
"0.6910438",
"0.69058794",
"0.6861279",
"0.6844319",
"0.6804193",
"0.6783233",
"0.67674726",
"0.6743309",
"0.67090845",
"0.67090845",
"0.67090845",
"0.6709084... | 0.0 | -1 |
Return a list of all field names specified on this schema | def zJN_(Emd4) -> x1iM[str]:
return list(Emd4.schema().get('properties', {}).keys()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eM8m(YKHO):\n CqJY = YKHO._meta.get_fields()\n return [eHNT.name for eHNT in CqJY]",
"def Uj1j(YKHO):\n return [eHNT.name for eHNT in YKHO.fields]",
"def tJ1d(YKHO) -> bdIy[str]:\n return qe4Y.get(YKHO, 'schema_fields')",
"def zJN_(YKHO):\n return YKHO.fieldNames()",
"def V_D6(YKHO):\n ... | [
"0.82014155",
"0.81356066",
"0.8126543",
"0.80738974",
"0.8032067",
"0.80012584",
"0.79993975",
"0.78364754",
"0.7828877",
"0.7783463",
"0.7695144",
"0.7676214",
"0.76475966",
"0.76451254",
"0.76412845",
"0.74980485",
"0.74895585",
"0.74787134",
"0.74134284",
"0.7359292",
"0.... | 0.8529216 | 0 |
Draws all enemies, and spawns new enemies as the wave increases | def zeM4(YKHO):
if not YKHO.done_spawning:
if YKHO.wave == 1:
for YRbF in range(3):
YKHO.enemies.append(xqcP(tuKI.randint(557, 563), -10 - YRbF * 15))
for YRbF in range(4):
YKHO.enemies.append(xqcP(tuKI.randint(557, 563), -140 - YRbF * 15))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sahe(YKHO) -> None:\n for JjEH in YKHO.level.enemies.values():\n YKHO.draw_entity(JjEH)",
"def LTd1(YKHO):\n YKHO.enemies_dead = 0\n YKHO.wave += 1\n for JjEH in YKHO.enemy_list:\n if max(JjEH.health) == 0:\n YKHO.enemies_killed.append(JjEH.dif)\n if JjEH.left_righ... | [
"0.7860753",
"0.7593864",
"0.75904",
"0.73359406",
"0.7247417",
"0.7112992",
"0.6944065",
"0.69404435",
"0.68876773",
"0.6811428",
"0.6794808",
"0.6731322",
"0.6659993",
"0.6586249",
"0.6568947",
"0.65004605",
"0.646009",
"0.6449774",
"0.64466566",
"0.64114684",
"0.64096206",... | 0.79957134 | 0 |
Makes GAN specific loss plots during training | def TUws(nivP, G3uO, ayhE, QRq2, IznC):
LZpg = QrM1.figure(figsize=(7, 3))
QrM1.subplot(1, 2, 1)
QrM1.plot(nivP, label='Train loss')
QrM1.plot(G3uO, label='Val loss')
QrM1.legend()
QrM1.title('Generator')
QrM1.subplot(1, 2, 2)
QrM1.plot(ayhE, label='Train loss')
QrM1.plot(QRq2, label... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ysuu(N8L0):\n LZpg, aNZO = QrM1.subplots()\n N8L0 = oyIN.array(N8L0)\n QrM1.plot(N8L0.T[0], label='Discriminator')\n QrM1.plot(N8L0.T[1], label='Generator')\n QrM1.title('Training Losses')\n QrM1.show()",
"def FIMM(YKHO):\n super(E7Y5, YKHO).__init__('Training Loss', 'loss', loss=[], val... | [
"0.72550696",
"0.72453535",
"0.7096953",
"0.7027792",
"0.6984627",
"0.6961183",
"0.6955453",
"0.69487846",
"0.6948527",
"0.6943045",
"0.69119185",
"0.6896695",
"0.6884907",
"0.68605375",
"0.68328774",
"0.68258345",
"0.68143624",
"0.68098265",
"0.6765155",
"0.67550236",
"0.674... | 0.67381936 | 23 |
Constructs a response details object. | def AVzM(Wxnj, jGRS, pB3N=None, Ol8d=None):
iQG7 = {}
iQG7['status'] = jGRS
iQG7['code'] = Wxnj
if pB3N:
iQG7['payload'] = pB3N
if Ol8d:
iQG7['message'] = Ol8d
return iQG7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b4I3(geh0: Dict, kFeU: str, Ioki: DataFields) -> uLKX[Awaj, imJI, Qbo9, hjFV]:\n Ylbp = geh0.copy()\n _EYN = cUyl(geh0.get('created'))\n if _EYN is not None:\n Ylbp['created'] = _EYN\n if kFeU not in ISLb.keys():\n return Awaj(**Ylbp)\n else:\n return ISLb[kFeU](Ylbp, Ioki)"... | [
"0.68269247",
"0.6710625",
"0.6650627",
"0.66021734",
"0.65734106",
"0.6567895",
"0.6539686",
"0.65367365",
"0.65160817",
"0.64655286",
"0.64651716",
"0.6449359",
"0.64475256",
"0.64005905",
"0.63727695",
"0.6363733",
"0.6335435",
"0.63314086",
"0.62717557",
"0.62717557",
"0.... | 0.7606732 | 0 |
Return all instances of a given class, excluding parent class. | def UFaF(Emd4):
bUWH = [YEnM for YEnM in Emd4.all_objects() if type(YEnM) is Emd4]
return bUWH | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yG9s(YKHO, mBOY):\n return [Z9rn for Z9rn in YKHO if isinstance(Z9rn, mBOY)]",
"def oA_b(Emd4):\n return [dm7U for bGrB, dm7U in sorted(Emd4._registry.items()) if issubclass(dm7U, Emd4) and dm7U != Emd4]",
"def QEve(Emd4, znBS=False):\n bUWH = list(Emd4._instances)\n if znBS:\n for Melv ... | [
"0.73849714",
"0.7304675",
"0.7016245",
"0.68496114",
"0.67523247",
"0.67259395",
"0.6715145",
"0.6706225",
"0.67058295",
"0.6671717",
"0.667064",
"0.6641948",
"0.6601327",
"0.65918624",
"0.65853584",
"0.6577977",
"0.65561056",
"0.6549672",
"0.6548755",
"0.6541635",
"0.653077... | 0.73788995 | 1 |
Adds data to the end of buffer | def FJj_(YKHO, nPrm):
YKHO._buf.extend(nPrm) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SStx(YKHO, nPrm):\n YKHO.buffer.append(nPrm)",
"def SStx(YKHO, nPrm):\n yxzR = YKHO._buffer + nPrm\n if len(yxzR) > YKHO.size:\n yxzR = yxzR[-YKHO.size:]\n YKHO._buffer = yxzR",
"def FPe1(YKHO, nPrm):\n YKHO.body.append({'data': nPrm})\n return YKHO.get_last_block['index'] + 1",
... | [
"0.8797431",
"0.8550028",
"0.819246",
"0.8117749",
"0.79576904",
"0.7928477",
"0.77110314",
"0.76631325",
"0.7656903",
"0.75872606",
"0.7562083",
"0.754729",
"0.7529398",
"0.745575",
"0.7455574",
"0.74111897",
"0.7406047",
"0.7399504",
"0.7381412",
"0.73668236",
"0.7354305",
... | 0.79522973 | 5 |
test create coupon form with valid data | def H4xe(YKHO):
L03z = H6V6.CreateCouponForm(data={'name': 'test', 'percent': 5, 'active': True})
YKHO.assertTrue(L03z.is_valid()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FED_(YKHO):\n L03z = H6V6.CreateCouponForm(data={})\n YKHO.assertFalse(L03z.is_valid())\n YKHO.assertEquals(len(L03z.errors), 2)",
"def Fvwh(YKHO):\n geh0 = YKHO.client.get(gxEw('advertiser-registration'))\n YKHO.assertEqual(geh0.status_code, 302)\n YKHO.assertTrue(geh0['location'].endswith... | [
"0.81781095",
"0.7239167",
"0.7164124",
"0.7052752",
"0.6857083",
"0.6848504",
"0.6812469",
"0.6774852",
"0.67699933",
"0.6754902",
"0.6741362",
"0.67157614",
"0.6713802",
"0.6666266",
"0.6659214",
"0.6646857",
"0.6588355",
"0.6585471",
"0.6578568",
"0.6578022",
"0.65720403",... | 0.877615 | 0 |
test create coupon form with no data | def FED_(YKHO):
L03z = H6V6.CreateCouponForm(data={})
YKHO.assertFalse(L03z.is_valid())
YKHO.assertEquals(len(L03z.errors), 2) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4xe(YKHO):\n L03z = H6V6.CreateCouponForm(data={'name': 'test', 'percent': 5, 'active': True})\n YKHO.assertTrue(L03z.is_valid())",
"def zKVQ(QePW):\n qm1k = 'coupons/create.html'\n if QePW.method == 'POST':\n L03z = paoo(QePW.POST)\n if L03z.is_valid():\n L03z.save()\n ... | [
"0.8136331",
"0.73687285",
"0.7237741",
"0.7089801",
"0.7089134",
"0.7005633",
"0.6861787",
"0.6835389",
"0.6697925",
"0.6692158",
"0.66588444",
"0.66268885",
"0.6561182",
"0.6529631",
"0.6520424",
"0.64587504",
"0.64391726",
"0.6431146",
"0.63762724",
"0.63681346",
"0.635930... | 0.832145 | 0 |
Use the isodate library to turn an ISO8601 string into a timedelta. For some nonobvious cases, it will become an isodate.Duration, see ground_from for more. This method throws a ValidationError if the string is not ISO norm. | def vodS(YKHO, BWXx, hkS8, YEnM, **B2fa) -> uLKX[fCoM, VCTG.Duration]:
try:
return VCTG.parse_duration(BWXx)
except g8yQ as iso_err:
raise aaD6(f'Cannot parse {BWXx} as ISO8601 duration: {Y52L}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dOGL(KCHu):\n return FwGg(OZSa(KCHu))",
"def zFXx(kVfc):\n if not kVfc:\n return None\n mZOz = '(?:(?P<weeks>\\\\d+)\\\\W*(?:weeks?|w),?)?\\\\W*(?:(?P<days>\\\\d+)\\\\W*(?:days?|d),?)?\\\\W*(?:(?P<hours>\\\\d+):(?P<minutes>\\\\d+)(?::(?P<seconds>\\\\d+)(?:\\\\.(?P<microseconds>\\\\d+))?)?)?'\... | [
"0.68080336",
"0.68014735",
"0.6796709",
"0.6766691",
"0.6706409",
"0.66247857",
"0.66221505",
"0.6577141",
"0.6552987",
"0.6543542",
"0.65281165",
"0.6519231",
"0.650809",
"0.6502963",
"0.6378684",
"0.6352192",
"0.6285802",
"0.62637055",
"0.6123412",
"0.6117682",
"0.6093429"... | 0.6929583 | 0 |
For some valid duration strings (such as "P1M", a month), converting to a datetime.timedelta is not possible (no obvious number of days). In this case, `_deserialize` returned an `isodate.Duration`. We can derive the timedelta by grounding to an actual time span, for which we require a timezoneaware start datetime. | def kl8N(WbTE: Union[timedelta, isodate.Duration], yKcO: Optional[datetime]) -> fCoM:
if isinstance(WbTE, VCTG.Duration) and yKcO:
ulWt = WbTE.years
X_bn = WbTE.months
Sm0u = WbTE.days
C6wh = WbTE.tdelta.seconds
vgXP = rLdf.DateOffset(years=ulWt, months=X_bn, days=Sm0u, secon... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Bcjf(SWox=qcWV.timedelta()):\n WXkz, THkp = divmod(SWox, qcWV.timedelta(microseconds=QTrf))\n k8iM = WXkz * QTrf\n DPkl = THkp.microseconds + THkp.seconds * 10 ** 6 + THkp.days * 24 * 3600 * 10 ** 6\n\n def Jfcz(nPrm):\n nonlocal us_offset, prev_microseconds\n assert len(nPrm) == 4\n ... | [
"0.70631784",
"0.69605815",
"0.6885896",
"0.68725806",
"0.68576777",
"0.6806138",
"0.67839044",
"0.6761135",
"0.6627101",
"0.65545154",
"0.63871884",
"0.6306238",
"0.63018996",
"0.6223004",
"0.621718",
"0.6192869",
"0.6191951",
"0.6162112",
"0.6148322",
"0.6145998",
"0.614378... | 0.6172942 | 17 |
Can't bind things that don't subclass new_base() | def OH29():
eHpk = _Nqb.Engine()
eHpk.client = FM6F(spec=_Nqb.client.Client)
with trZe.raises(ValueError):
eHpk.bind(base=object()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fwuD(*qIxc, **B2fa):\n pass",
"def P8oC():\n return P8oC",
"def fwuD(SIDH, Pwhd, gitN, dict):\n print(SIDH, Pwhd)\n return type.__new__(SIDH, Pwhd, gitN, dict)",
"def FIMM(YKHO, P8oC):\n YKHO._base = P8oC",
"def fwuD(*qIxc, **B2fa):\n ...",
"def fwuD(*qIxc, **B2fa):\n ...",
"de... | [
"0.6525687",
"0.6522718",
"0.65138066",
"0.6501494",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
"0.6497733",
... | 0.0 | -1 |
Calculate mean squared error | def tNj5(_ger, VXjJ):
qIaP = hkHB(_ger, VXjJ)
return qIaP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SDab(P1dF):\n return oyIN.average(P1dF ** 2)",
"def FSiB(P1dF):\n return oyIN.square(oyIN.average(P1dF))",
"def Z2Se(LVAh, JBMS):\n return (LVAh - JBMS).pow(2).sum()",
"def SDab(YKHO):\n r8hN = YKHO.y_actual.shape[0]\n hkHB = YKHO.sum_of_squares_of_residuals()\n return hkHB / r8hN",
"... | [
"0.80248696",
"0.8003384",
"0.7987835",
"0.7858297",
"0.7827895",
"0.77304184",
"0.7713514",
"0.76689523",
"0.76385176",
"0.76150864",
"0.7593816",
"0.74428606",
"0.7393667",
"0.73279315",
"0.727839",
"0.7267382",
"0.7255247",
"0.72474575",
"0.72463685",
"0.72460693",
"0.7232... | 0.0 | -1 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def NMoC(YKHO, H5ew: int) -> int:
or8S = H5ew % YKHO.size
WE7e = YKHO.buckets[or8S]
for Fg_i in WE7e:
if Fg_i[0] == H5ew:
return Fg_i[1]
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew: int) -> int:\n if H5ew in YKHO.hashmap:\n return YKHO.hashmap[H5ew]\n else:\n return -1",
"def NMoC(YKHO, H5ew: int) -> int:\n return YKHO.hash_map.get(H5ew, -1)",
"def NMoC(YKHO, H5ew: int) -> int:\n or8S = YKHO.hashf(H5ew)\n DpUl = YKHO.map[or8S]\n while D... | [
"0.7848024",
"0.75730664",
"0.75311434",
"0.7467767",
"0.7459674",
"0.7427529",
"0.7400849",
"0.7394425",
"0.73413885",
"0.7307691",
"0.72523814",
"0.7241443",
"0.7225553",
"0.71833247",
"0.71715623",
"0.71402776",
"0.70865685",
"0.70381206",
"0.6959099",
"0.6834812",
"0.6757... | 0.7169278 | 15 |
Configures logging with the specified configuration dictionary. | def EsWC(_fuv=y9Z4):
Ylj8(_fuv) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EsWC(GPtr=None):\n GPtr = xO8o if GPtr is None else GPtr\n G9jH.config.dictConfig(GPtr)",
"def laxI(GPtr):\n Ylj8(GPtr)",
"def lWLw(YKHO):\n YKHO._configure_handler_file_names()\n YKHO._configure_logger_names()\n G9jH.config.dictConfig(YKHO._cfg)",
"def wmdW():\n G9jH.config.dictConf... | [
"0.8100959",
"0.80055183",
"0.766835",
"0.76042557",
"0.7571249",
"0.74818045",
"0.7454974",
"0.74176013",
"0.7360911",
"0.7347995",
"0.7282018",
"0.72474694",
"0.72174364",
"0.71558887",
"0.70785826",
"0.707695",
"0.70629996",
"0.70593274",
"0.70403004",
"0.7039762",
"0.7017... | 0.87978154 | 0 |
The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects are supported. The bucket has to be in the same project as the metric. | def l7rj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'bucket_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SsPQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'logs_bucket')",
"def ibH4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'log_bucket')",
"def ibH4(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_bucket')",
"def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7r... | [
"0.76368195",
"0.7429663",
"0.7246192",
"0.71967936",
"0.71967936",
"0.71967936",
"0.70739776",
"0.6959494",
"0.6959494",
"0.6959494",
"0.6959494",
"0.6959494",
"0.6959494",
"0.6959494",
"0.69258565",
"0.69258565",
"0.69258565",
"0.69258565",
"0.69258565",
"0.69258565",
"0.69... | 0.68228686 | 35 |
A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cq_b(YKHO) -> str:\n return None",
"def yoaG(YKHO):\n return YKHO.description",
"def yoaG(YKHO):\n return YKHO.description",
"def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')",
"def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')",
"def JBZA(YKHO):\n ... | [
"0.7741585",
"0.74971616",
"0.74971616",
"0.73660666",
"0.73660666",
"0.7362587",
"0.73606503",
"0.73289174",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556... | 0.0 | -1 |
The clientassigned metric identifier. Examples "error_count", "nginx/requests". Metric identifiers are limited to 100 characters and can include only the following characters AZ, az, 09, and the special characters _.,+!',()%/. The forwardslash character (/) denotes a hierarchy of name pieces, and it cannot be the first... | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbLf(YKHO) -> str:\n return YKHO._metric_id",
"def pO5v(YKHO) -> str:\n return YKHO.sensor.name.replace('.', '__').replace('-', '_')",
"def pO5v(YKHO):\n return list(YKHO.metrics.keys())[0]",
"def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')",
"def pO5v(YKHO) -> str:\n retur... | [
"0.65361494",
"0.6461915",
"0.6450366",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.6384115",
"0.637684",
"0.62609625",
"0.62609625",
"0.62609625",
"0.62278247",
"0.62278247",
"0.6081389"... | 0.0 | -1 |
The resource name of the Log Bucket that owns the Log Metric. Only Log Buckets in projects are supported. The bucket has to be in the same project as the metric. | def l7rj(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'bucket_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SsPQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'logs_bucket')",
"def ibH4(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'log_bucket')",
"def ibH4(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'log_bucket')",
"def l7rj(YKHO) -> str:\n return qe4Y.get(YKHO, 'bucket_name')",
"def l7r... | [
"0.7636935",
"0.7429254",
"0.7246176",
"0.7196906",
"0.7196906",
"0.7196906",
"0.7074245",
"0.6959561",
"0.6959561",
"0.6959561",
"0.6959561",
"0.6959561",
"0.6959561",
"0.6959561",
"0.6925707",
"0.6925707",
"0.6925707",
"0.6925707",
"0.6925707",
"0.6925707",
"0.6925707",
"... | 0.68231326 | 34 |
A description of this metric, which is used in documentation. The maximum length of the description is 8000 characters. | def JBZA(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'description') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cq_b(YKHO) -> str:\n return None",
"def yoaG(YKHO):\n return YKHO.description",
"def yoaG(YKHO):\n return YKHO.description",
"def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')",
"def Eot7(YKHO) -> str:\n return qe4Y.get(YKHO, 'long_description')",
"def JBZA(YKHO):\n ... | [
"0.7741585",
"0.74971616",
"0.74971616",
"0.73660666",
"0.73660666",
"0.7362587",
"0.73606503",
"0.73289174",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556",
"0.7293556... | 0.0 | -1 |
The clientassigned metric identifier. Examples "error_count", "nginx/requests". Metric identifiers are limited to 100 characters and can include only the following characters AZ, az, 09, and the special characters _.,+!',()%/. The forwardslash character (/) denotes a hierarchy of name pieces, and it cannot be the first... | def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cbLf(YKHO) -> str:\n return YKHO._metric_id",
"def pO5v(YKHO) -> str:\n return YKHO.sensor.name.replace('.', '__').replace('-', '_')",
"def pO5v(YKHO):\n return list(YKHO.metrics.keys())[0]",
"def pO5v(YKHO) -> str:\n return qe4Y.get(YKHO, 'metric_name')",
"def pO5v(YKHO) -> str:\n retur... | [
"0.6536781",
"0.646145",
"0.64511234",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6384366",
"0.6377158",
"0.62613034",
"0.62613034",
"0.62613034",
"0.622927",
"0.622927",
"0.60820556",
... | 0.0 | -1 |