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 |
|---|---|---|---|---|---|---|
Determines whether the descriptor is the same as another descriptor. | def g_Z3(YKHO, qL8E) -> bool:
return YKHO.app.isEqual(qL8E) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n if isinstance(Elif, v3Yp):\n return YKHO.match(Elif)\n return False",
"def xa14(YKHO, Elif) -> bool:\n return hasattr(Elif, '_ptr') and YKHO._ptr == Elif._ptr",
"def kJ0s(YKHO, Elif):\n return YKHO is Elif",
"def xa14(YKHO, Elif):\n return YKHO.dtype == Elif.dtyp... | [
"0.76555467",
"0.71421814",
"0.71238387",
"0.71082747",
"0.69865435",
"0.6972217",
"0.69409317",
"0.6891682",
"0.687628",
"0.6855472",
"0.6855282",
"0.6850597",
"0.6842998",
"0.6823322",
"0.68197906",
"0.68171555",
"0.68171555",
"0.681527",
"0.68147004",
"0.68147004",
"0.6814... | 0.0 | -1 |
Gets the output of this GenerationResponse. | def hlel(YKHO):
return YKHO._output | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LI2u(YKHO):\n return YKHO.output",
"def NIfD(YKHO):\n return YKHO.output",
"def LI2u(YKHO):\n return YKHO._output",
"def LI2u(YKHO):\n return YKHO._output",
"def LI2u(YKHO):\n YKHO._update_output()\n return YKHO.output",
"def hlel(YKHO):\n return YKHO.client._output(YKHO)",
"de... | [
"0.8151543",
"0.8075133",
"0.80465066",
"0.80465066",
"0.8031639",
"0.7968747",
"0.79476964",
"0.7940268",
"0.7896527",
"0.7854474",
"0.7844828",
"0.7844828",
"0.7824741",
"0.7708137",
"0.7633284",
"0.76326185",
"0.76326185",
"0.7451313",
"0.7451313",
"0.7451313",
"0.7451313"... | 0.7946404 | 7 |
Sets the output of this GenerationResponse. | def hlel(YKHO, hlel):
if hlel is None:
raise ValueError('Invalid value for `output`, must not be `None`')
YKHO._output = hlel | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hlel(YKHO, hlel):\n YKHO._output = hlel",
"def hlel(YKHO, hlel):\n YKHO._output = hlel",
"def hlel(YKHO, hlel):\n YKHO._output = hlel",
"def hlel(YKHO, hlel):\n YKHO._output = hlel",
"def _lLL(YKHO, hlel: Output) -> None:\n YKHO.is_complete = True\n YKHO.output = hlel\n YKHO.save()... | [
"0.7913493",
"0.7913493",
"0.7913493",
"0.7913493",
"0.7516744",
"0.7182202",
"0.6981559",
"0.6902245",
"0.6859959",
"0.6831273",
"0.68198735",
"0.6815462",
"0.66549915",
"0.66477966",
"0.660226",
"0.6599169",
"0.6583172",
"0.6583172",
"0.6583172",
"0.6580871",
"0.6580871",
... | 0.7625334 | 4 |
Gets the unique_id of this GenerationResponse. The specific base file name for all outputs generated with the statics ID and account ID. | def ShR8(YKHO):
return YKHO._unique_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def CpvB(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_identifier')",
"def ShR8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_id')",
"def ShR8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_id')",
"def ShR8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, '... | [
"0.7446152",
"0.7320644",
"0.7320644",
"0.7320644",
"0.7161416",
"0.70694405",
"0.6848352",
"0.67307514",
"0.6712969",
"0.6662016",
"0.665582",
"0.6618532",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
"0.6599984",
... | 0.0 | -1 |
Gets the request_id of this GenerationResponse. ID of this specific request. Helps Idomoo support find the call if issues happen. | def gTi_(YKHO):
return YKHO._request_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gTi_(YKHO) -> int:\n return YKHO._request_id",
"def gTi_(YKHO) -> int:\n return YKHO.__request_id",
"def gTi_(YKHO) -> int:\n return YKHO.__request_id",
"def gTi_(YKHO) -> str:\n return YKHO['requestContext']['requestId']",
"def gTi_(YKHO) -> str:\n return YKHO['requestContext']['request... | [
"0.8375428",
"0.8367304",
"0.8367304",
"0.81889474",
"0.81889474",
"0.8024784",
"0.8024784",
"0.8024784",
"0.8024784",
"0.8024784",
"0.78843987",
"0.78494024",
"0.77679205",
"0.77604455",
"0.7729986",
"0.76953274",
"0.7689736",
"0.7682409",
"0.7682409",
"0.7682409",
"0.768240... | 0.8348969 | 3 |
Gets the total_cost of this GenerationResponse. How many credits were used up in this call for all the outputs generated. A credit is up to 30 seconds of rendered video. | def ye9d(YKHO):
return YKHO._total_cost | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yecq(YKHO):\n wjRY = 0.0\n for BWXx in YKHO.apiCosts.values():\n wjRY += BWXx\n return wjRY",
"def sSN_(YKHO):\n return YKHO.calculateCost()",
"def kXRY(YKHO):\n return YKHO.cost",
"def ozc7(YKHO):\n return YKHO.cost",
"def UPS8(YKHO):\n return YKHO.cost + YKHO.heuristic",
... | [
"0.70342094",
"0.6832762",
"0.6775398",
"0.6676288",
"0.66164184",
"0.65866804",
"0.6567665",
"0.64781946",
"0.64445436",
"0.6439733",
"0.6353446",
"0.6345601",
"0.63282096",
"0.6257002",
"0.6249492",
"0.6235125",
"0.6211289",
"0.62092066",
"0.62087536",
"0.62062263",
"0.6188... | 0.7107083 | 0 |
Sets the total_cost of this GenerationResponse. How many credits were used up in this call for all the outputs generated. A credit is up to 30 seconds of rendered video. | def ye9d(YKHO, ye9d):
if ye9d is None:
raise ValueError('Invalid value for `total_cost`, must not be `None`')
YKHO._total_cost = ye9d | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ENsw(YKHO, ENsw):\n YKHO._total_cost_pool = ENsw",
"def yrW7(YKHO):\n bbTD = mNLn(YKHO.location, YKHO.goal)\n YKHO.estimatedTotalCost = YKHO.costSoFar + bbTD",
"def ye9d(YKHO):\n return YKHO._total_cost",
"def sSN_(YKHO, sSN_):\n YKHO._cost = sSN_",
"def sSN_(YKHO, sSN_):\n YKHO._cost... | [
"0.6458001",
"0.6420802",
"0.63299274",
"0.6230009",
"0.6230009",
"0.6230009",
"0.6230009",
"0.6230009",
"0.62079704",
"0.6037932",
"0.6005132",
"0.59902537",
"0.59617186",
"0.5862159",
"0.5840066",
"0.5840066",
"0.5840066",
"0.5840066",
"0.5840066",
"0.5840066",
"0.5840066",... | 0.6563146 | 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):
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.83920443",
"0.83544874",
"0.8294375",
"0.8131804",
"0.8114275",
"0.8099284",
"0.8098424",
"0.8097017",
"0.8097017",
"0.80916125",
"0.80916125",
"0.80916125",
"0.80916125",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.80659354",
"0.805918",
"0.8056744... | 0.80430144 | 93 |
Gets the default request headers. Returns requests.structures.CaseInsensitiveDict The request headers containing the default user agent. | def AT1E():
return QVHy({'User-Agent': RnTY()}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def snxE():\n return {hX1t: Sqj9, IuCo: HZN0(), Jyml: Sqj9}",
"def _kcx():\n MOPg = {'Content-Type': 'application/json', 'User-Agent': 'test-agent'}\n return MOPg",
"def y8bD(YKHO):\n return {'User-Agent': GoZD.REDDIT_USER_AGENT}",
"def FbAL(Lb1u=None, e1n7=None, jcC6=None):\n if Lb1u is None:... | [
"0.82687455",
"0.8009999",
"0.76770544",
"0.7478099",
"0.74037933",
"0.73073024",
"0.71413624",
"0.7037389",
"0.7024411",
"0.690555",
"0.6890398",
"0.6886126",
"0.6862095",
"0.6859792",
"0.6837326",
"0.68205416",
"0.6791044",
"0.6757399",
"0.6757399",
"0.6757399",
"0.6757399"... | 0.89728975 | 0 |
Test __init__ raises a ValueError for invalid operation | def Y0H1(YKHO):
tO9_ = 'Unknown operation '
with YKHO.assertRaisesRegex(ValueError, tO9_):
NOzy('%') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def axCM(YKHO):\n with YKHO.assertRaises(mFlu):\n YKHO.instance.configuration = ''\n with YKHO.assertRaises(mFlu):\n YKHO.instance.configuration = 'X'\n with YKHO.assertRaises(mFlu):\n YKHO.instance.power_on = 'frobozz'",
"def w_ae(YKHO):\n raise ValueError",
"def wf0m(YKHO):\n... | [
"0.75124",
"0.74916404",
"0.74824584",
"0.74118125",
"0.7381431",
"0.73557526",
"0.7332258",
"0.7284302",
"0.7283233",
"0.7278156",
"0.7228674",
"0.7187116",
"0.716079",
"0.7122528",
"0.71097463",
"0.7089175",
"0.70877105",
"0.7086252",
"0.7077502",
"0.7059492",
"0.70559204",... | 0.6598775 | 89 |
Test that the __repr__ returns the expected string. | def fcai(YKHO):
Aofo = str(NOzy('+'))
tO9_ = '<CubeCombiner: operation=+, warnings_on = False>'
YKHO.assertEqual(Aofo, tO9_) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def H4zp(YKHO):\n YKHO.assertTrue(isinstance(YKHO._gra_test.__repr__(), str))",
"def H4zp(YKHO):\n YKHO.assertEqual(repr(YKHO.card), 'A of Hearts')",
"def rLnD():\n KCHu = c34g(10.0)\n assert repr(KCHu) == 'Sphere (10.0)'",
"def H4zp():\n Z9rn = Lr0q(4)\n assert repr(Z9rn) == 'Circle(4)'\n ... | [
"0.88254696",
"0.82345647",
"0.81990534",
"0.8181903",
"0.81802326",
"0.8173409",
"0.81688327",
"0.8153618",
"0.813508",
"0.8098183",
"0.8090146",
"0.8064536",
"0.80514485",
"0.8028793",
"0.80281454",
"0.80029786",
"0.7989404",
"0.79688334",
"0.7940122",
"0.7889126",
"0.78841... | 0.0 | -1 |
Log Errors caused by Updates. | def SqSR(JyK9, QdZT, P1dF):
bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)",
"def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')",
"def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err... | [
"0.7895395",
"0.788395",
"0.78750193",
"0.7873498",
"0.78300834",
"0.7790406",
"0.7785151",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.77837753",
"0.7781314",
"0.77660847",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.7746185",
"0.774618... | 0.0 | -1 |
Find all files beneath path with file name suffix. Note that a path may contain further subdirectories and those subdirectories may also contain further subdirectories. There are no limit to the depth of the subdirectories can be. | def A99F(ZI14, pmON):
hlel = []
if ZI14 == '' or pmON == '':
return 'Invalid suffix or path: Input was empty string'
if not isinstance(ZI14, str) or not isinstance(pmON, str):
return 'Invalid suffix or path: Input was not of type str'
if Hy7s.path.isfile(pmON):
if pmON.endswith(Z... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def A99F(ZI14, pmON):\n Zg0d = gzes(Odyn, pmON)\n if vtfo(Zg0d) == False:\n return []\n MXwC = []\n\n def uaUC(acAb):\n if EFYe(acAb) == True:\n if acAb.endswith(ZI14) == True:\n MXwC.append(PsRC(acAb, Odyn))\n else:\n for S3Wb in U9eF(acAb):\n ... | [
"0.8309852",
"0.82068276",
"0.81935936",
"0.8182121",
"0.8149165",
"0.8129069",
"0.8128902",
"0.81283796",
"0.8086383",
"0.80590767",
"0.8047813",
"0.80323577",
"0.8027667",
"0.7992705",
"0.7990543",
"0.7988221",
"0.7976073",
"0.79247904",
"0.7900125",
"0.78234136",
"0.778640... | 0.8134682 | 5 |
r""" Plots the required curve. The filenames will be appended a `_PR.pdf` or `_Roc.pdf`. | def kj9G(YKHO, AdZ9='all', Ux0P=None):
if AdZ9 == 'all' or AdZ9 == 'pr':
rhd_, AOzf, bGrB = wzRA(YKHO.y_true, YKHO.y_pred)
YKHO._plot(rhd_, AOzf, 'Precision', 'Recall', 'PR', Ux0P)
if AdZ9 == 'all' or AdZ9 == 'roc':
qmLP.warn('ROC curves are not recommended in the case of class imbalance... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLsF(YKHO, WKvO, LVAh, dCji, cHAw, AdZ9, Ux0P):\n QrM1.plot(WKvO, LVAh)\n QrM1.xlabel(dCji)\n QrM1.ylabel(cHAw)\n QrM1.ylim([0.0, 1.0])\n QrM1.xlim([0.0, 1.0])\n if YKHO.test_results:\n QrM1.title('{} test set {} curve'.format(YKHO.method, AdZ9))\n else:\n QrM1.title('{} trai... | [
"0.7283072",
"0.7126668",
"0.66699666",
"0.66287243",
"0.66274625",
"0.65479636",
"0.6429014",
"0.6406135",
"0.6377196",
"0.6377124",
"0.6364798",
"0.6356198",
"0.6349711",
"0.63396776",
"0.6316754",
"0.62788004",
"0.627556",
"0.6266094",
"0.625919",
"0.62589395",
"0.6253802"... | 0.64979655 | 6 |
r""" Plots the required curve. The filenames will be appended a `_PR.pdf` or `_Roc.pdf`. | def kj9G(YKHO, dixj='test', AdZ9='all', Ux0P=None):
if dixj == 'test':
cCrA = YKHO.test_scores
else:
cCrA = YKHO.train_scores
if AdZ9 == 'all' or AdZ9 == 'pr':
rhd_, AOzf, bGrB = wzRA(cCrA.y_true, cCrA.y_pred)
YKHO._plot(dixj, rhd_, AOzf, 'Precision', 'Recall', 'PR', Ux0P)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KLsF(YKHO, WKvO, LVAh, dCji, cHAw, AdZ9, Ux0P):\n QrM1.plot(WKvO, LVAh)\n QrM1.xlabel(dCji)\n QrM1.ylabel(cHAw)\n QrM1.ylim([0.0, 1.0])\n QrM1.xlim([0.0, 1.0])\n if YKHO.test_results:\n QrM1.title('{} test set {} curve'.format(YKHO.method, AdZ9))\n else:\n QrM1.title('{} trai... | [
"0.7284215",
"0.7127603",
"0.667049",
"0.6629994",
"0.66279984",
"0.6546564",
"0.6499734",
"0.6428651",
"0.6407031",
"0.6378386",
"0.6378073",
"0.6365685",
"0.63559425",
"0.6350081",
"0.6340503",
"0.6317505",
"0.6279604",
"0.6276782",
"0.62669724",
"0.6258955",
"0.6258342",
... | 0.60141784 | 35 |
Get kdist data that can be plotted to determine EPS param for DBScan algorithm. | def g8mw(nPrm: List[List], Op9q) -> x1iM[x1iM]:
TaUL = RHah(nPrm)
ylr1 = STrd(k=Op9q, distances=TaUL)
return baBy(ylr1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMet(YKHO):\n return YKHO.psf_kreal.scale",
"def rfPG(jQ3Z):\n print('predict Eps DBSCAN parameter...')\n myQS = HFk3(n_neighbors=4, algorithm='ball_tree', metric='euclidean')\n dtyc = myQS.fit(jQ3Z)\n Ayfi, QyVM = myQS.kneighbors(jQ3Z)\n TaUL = [Ayfi[YRbF][3] for YRbF in range(len(Ayfi))]\... | [
"0.6167506",
"0.5939726",
"0.5899968",
"0.5745531",
"0.5684738",
"0.5642918",
"0.5632513",
"0.5611318",
"0.5589803",
"0.5499843",
"0.54895943",
"0.5460705",
"0.5425932",
"0.5424157",
"0.54135704",
"0.53558517",
"0.5354283",
"0.53464353",
"0.53451955",
"0.5342791",
"0.5335777"... | 0.5799893 | 3 |
Gets a sorted list of each data points kth nearest neighbor's distance. | def STrd(G1Hx: int, TaUL: defaultdict(list)) -> x1iM[float]:
ylr1 = []
for AU8u, TaUL in TaUL.items():
S5PV = TaUL[G1Hx]
ylr1.append(S5PV)
return sorted(ylr1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPYD(AU8u, nPrm, G1Hx, BMaT):\n z_gd = []\n for V52X in nPrm:\n z_gd.append((V52X, BMaT(AU8u, V52X)))\n z_gd = sorted(z_gd, key=lambda ZfUD: (ZfUD[1], ZfUD[0].coords))[:G1Hx]\n return [V52X for V52X, Ayfi in z_gd]",
"def nPYD(AU8u, nPrm, G1Hx, BMaT):\n nPrm = sorted(nPrm, key=lambda V52... | [
"0.782214",
"0.7702379",
"0.7655795",
"0.7591512",
"0.7553623",
"0.75311553",
"0.7449419",
"0.74439216",
"0.7392395",
"0.7364698",
"0.73578125",
"0.73099506",
"0.72936654",
"0.7203241",
"0.7194094",
"0.7184546",
"0.7184096",
"0.71408755",
"0.7133313",
"0.71060634",
"0.7096086... | 0.83502513 | 0 |
Get kdist data that can be plotted to determine EPS param for DBScan algorithm. | def baBy(ylr1: List[float]):
nPrm = []
for YRbF, Ayfi in enumerate(ylr1):
AU8u = (YRbF, Ayfi)
nPrm.append(AU8u)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fMet(YKHO):\n return YKHO.psf_kreal.scale",
"def rfPG(jQ3Z):\n print('predict Eps DBSCAN parameter...')\n myQS = HFk3(n_neighbors=4, algorithm='ball_tree', metric='euclidean')\n dtyc = myQS.fit(jQ3Z)\n Ayfi, QyVM = myQS.kneighbors(jQ3Z)\n TaUL = [Ayfi[YRbF][3] for YRbF in range(len(Ayfi))]\... | [
"0.61683583",
"0.5937",
"0.58012825",
"0.5746048",
"0.56846887",
"0.5644104",
"0.5630987",
"0.5611123",
"0.5589731",
"0.55001074",
"0.54903823",
"0.5462225",
"0.5426722",
"0.5424563",
"0.54156363",
"0.5356544",
"0.53551924",
"0.5349067",
"0.5346205",
"0.5344086",
"0.53369296"... | 0.590187 | 2 |
Given the current stat of the board, return the scalar value that represents the evaluation function for the current player | def Ujka(YKHO, iBIi):
IkDx = 0
if YKHO.game_completed(iBIi) == YKHO.player_number:
IkDx += 1000
elif YKHO.game_completed(iBIi) == YKHO.findOtherPlayerNumber():
IkDx -= 1000
else:
IkDx += YKHO.checkWinScore(iBIi)
return IkDx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ujka(YKHO, iBIi):\n BWXx = YKHO.count(iBIi, 4, YKHO.player_number) * 9000 + YKHO.count(iBIi, 3, YKHO.player_number) * 400 + YKHO.count(iBIi, 2, YKHO.player_number) * 50\n Elif = YKHO.count(iBIi, 4, YKHO.other_player_number) * 9000 + YKHO.count(iBIi, 3, YKHO.other_player_number) * 400 + YKHO.count(iBIi, 2... | [
"0.7680957",
"0.7670615",
"0.74412185",
"0.7403702",
"0.74008256",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
"0.7384816",
... | 0.69844335 | 87 |
Given the current board state select a random column from the available valid moves. | def j5YA(YKHO, iBIi):
RHwJ = []
for fvDH in range(iBIi.shape[1]):
if 0 in iBIi[:, fvDH]:
RHwJ.append(fvDH)
return oyIN.random.choice(RHwJ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MBtz(YKHO, iBIi):\n SJF9 = []\n for fvDH in range(iBIi.width):\n if iBIi.can_add_to(fvDH) == True:\n SJF9 += [fvDH]\n qZFl = tuKI.choice(SJF9)\n YKHO.num_moves += 1\n return qZFl",
"def qZFl(iBIi):\n return ajWY(0, len(iBIi[0]) - 1)",
"def qZFl(iBIi):\n return ajWY(1,... | [
"0.76100844",
"0.72200316",
"0.7119921",
"0.7009315",
"0.69737136",
"0.692714",
"0.69005674",
"0.6886467",
"0.68447226",
"0.68194467",
"0.6737424",
"0.6737424",
"0.6737424",
"0.67257565",
"0.6688286",
"0.6687488",
"0.6683121",
"0.66676974",
"0.66283584",
"0.66177183",
"0.6606... | 0.7595156 | 1 |
List all files ending with a suffix at a given root | def uTAc(tk5Y, ZI14, y0cW=False):
tk5Y = Hy7s.path.expanduser(tk5Y)
RRlC = list(filter(lambda XP5J: Hy7s.path.isfile(Hy7s.path.join(tk5Y, XP5J)) and XP5J.endswith(ZI14), Hy7s.listdir(tk5Y)))
if y0cW is True:
RRlC = [Hy7s.path.join(tk5Y, Csk6) for Csk6 in RRlC]
return RRlC | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uTAc(tk5Y, ZI14, y0cW=False):\n tk5Y = Hy7s.path.expanduser(tk5Y)\n RRlC = list(filter(lambda XP5J: Hy7s.path.isfile(Hy7s.path.join(tk5Y, XP5J)) and XP5J.endswith(ZI14), Hy7s.listdir(tk5Y)))\n if y0cW is True:\n RRlC = [Hy7s.path.join(tk5Y, Csk6) for Csk6 in RRlC]\n return RRlC",
"def uTAc... | [
"0.8042535",
"0.7962801",
"0.7910677",
"0.7846067",
"0.77953595",
"0.77931696",
"0.773879",
"0.7700874",
"0.76306254",
"0.7612251",
"0.7607242",
"0.7566362",
"0.7539518",
"0.7530963",
"0.75153",
"0.75138295",
"0.7498819",
"0.74822456",
"0.74747294",
"0.74747294",
"0.7459403",... | 0.80661774 | 0 |
Get Logger with given name | def fZx2(mWFP, FMLJ='%(asctime)s:%(levelname)s:%(name)s:%(message)s', U2pb=G9jH.DEBUG, B0a8=G9jH.DEBUG, R5Jy='', Tuqy='w'):
bo34 = G9jH.getLogger(mWFP)
bo34.setLevel(B0a8)
uaPq = G9jH.Formatter(FMLJ)
if R5Jy:
L8wK = G9jH.FileHandler(R5Jy, mode=Tuqy)
L8wK.setLevel(B0a8)
L8wK.setFo... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fZx2(mWFP):\n return G9jH.getLogger(mWFP)",
"def ypdq(mWFP: str) -> G9jH.Logger:\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP=None):\n if not mWFP:\n mWFP = __name__\n return G9jH.getLogger(mWFP)",
"def fZx2(mWFP):\n try:\n return S0MI[mWFP]\n except KeyError:\n G... | [
"0.85993665",
"0.85324836",
"0.82584786",
"0.81790537",
"0.810592",
"0.8041783",
"0.80016977",
"0.79932344",
"0.79665494",
"0.7938721",
"0.79171675",
"0.7897931",
"0.78551203",
"0.7848878",
"0.7831751",
"0.77599025",
"0.7744823",
"0.7730973",
"0.7723292",
"0.7698186",
"0.7690... | 0.0 | -1 |
Function to detect blue, green and red dots in the provided image, and connects with a simple line. This implementation assumes square or spherical shapes of the colored dots, a black background, and a single dot per color. | def XHhE(jr0q, V6eb=None, qfpW=(255, 255, 255), dGrG=1, xpKn=False):
assert EFYe(jr0q), 'Input file does not exist'
Xn71 = XC5k.imread(jr0q, 1)
s_Ev = []
for YRbF in range(3):
V844 = Xn71[:, :, YRbF].copy()
lEHr = oyIN.argwhere(V844 > 0)
assert len(lEHr) > 0, 'Input image contain... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tqxw(LNo8):\n ZZTP = kS7z(LNo8, channel=2, thresh=(160, 255))\n N4uf = Sk6z(LNo8, orient='x', thresh=(30, 200))\n TTm1 = oyIN.zeros_like(ZZTP)\n TTm1[(N4uf == 1) | (ZZTP == 1)] = 1\n return TTm1",
"def st22(VXjJ, X3qZ, ZYCo, qfpW, dGrG=1, _Cnz='dotted', vIPU=20):\n pImw = ((X3qZ[0] - ZYCo[0... | [
"0.63015205",
"0.62280744",
"0.62092286",
"0.6175341",
"0.61175203",
"0.5984433",
"0.5921172",
"0.5888962",
"0.5877589",
"0.58746606",
"0.5863901",
"0.5857287",
"0.57820326",
"0.5764307",
"0.57358277",
"0.5708815",
"0.56889135",
"0.5685697",
"0.56589425",
"0.56435174",
"0.563... | 0.7221031 | 0 |
Merge config into global config or another_cfg. | def j03A(GPtr, Kg1C=None):
global global_config
fK8P = Kg1C or ePNl
return RSKQ(fK8P, GPtr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j03A(GPtr):\n for H5ew, BWXx in GPtr.items():\n if '.' not in H5ew:\n if isinstance(BWXx, dict) and H5ew in ePNl:\n ePNl[H5ew].update(BWXx)\n else:\n ePNl[H5ew] = BWXx\n else:\n zrAV = H5ew.split('.')\n assert zrAV[0] in... | [
"0.7668532",
"0.74981064",
"0.74780977",
"0.7452655",
"0.7452655",
"0.73977876",
"0.7334492",
"0.7291298",
"0.7218312",
"0.71713096",
"0.7160145",
"0.7036048",
"0.6934471",
"0.692744",
"0.69157785",
"0.6900376",
"0.6858752",
"0.6775758",
"0.6770091",
"0.6769936",
"0.6664904",... | 0.866189 | 0 |
Test user registration via the API | def iBFl(YKHO):
geh0 = YKHO.client.post('/api/v2/accounts/registration/', {'username': 'robley', 'password1': '0@qwer687', 'password2': '0@qwer687', 'email': 'random@guy.com'}, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPFs(YKHO):\n Aofo = YKHO.app.post('/', data=dict(username='test', email='test@test.com', password='12345'))\n YKHO.assertEqual('200 OK', Aofo.status)",
"def OPFs(YKHO):\n nPrm = {'username': 'usertest', 'email': 'usertest@gmail.com', 'password': 'Ra741258'}\n geh0 = YKHO.client.post(YKHO.url, nP... | [
"0.86832786",
"0.85559595",
"0.85486996",
"0.8436925",
"0.84325004",
"0.84315217",
"0.84188086",
"0.8373192",
"0.8372959",
"0.8347924",
"0.83342385",
"0.8328962",
"0.83075017",
"0.8296897",
"0.82939255",
"0.82834446",
"0.82722956",
"0.82554144",
"0.82446295",
"0.82431257",
"0... | 0.819756 | 23 |
Test that we can update an entry | def n9Qh(YKHO):
bTKY = RAUw.objects.get()
bD7m = '/api/v2/entries/{}/'.format(bTKY.id)
geh0 = YKHO.client.put(bD7m, {'content': 'I am going to be updated'}, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n pass",
"def IsIF(YKHO):\n _yOu = YKHO.model.update(1, {'key': 'updated value'})\n YKHO.assertIsNotNone(_yOu)\n YKHO.assertEqual(YKHO.model.get(1)['key'], 'updated value')",
"def mToV(YKHO):\n Jx9f = YKHO.client.post(B5RP, {})\n id = Jx9f.data['... | [
"0.8197953",
"0.8197953",
"0.80226517",
"0.79967165",
"0.7946029",
"0.79076964",
"0.7715137",
"0.7672679",
"0.7637278",
"0.76019603",
"0.75864124",
"0.74790114",
"0.7430435",
"0.7429421",
"0.7424065",
"0.7408997",
"0.7378542",
"0.73699147",
"0.73672587",
"0.73632896",
"0.7347... | 0.8507328 | 0 |
Test that auth is needed to update an entry | def av2w(YKHO):
x0hE = iJSR()
bTKY = RAUw.objects.get()
bD7m = '/api/v2/entries/{}/'.format(bTKY.id)
geh0 = x0hE.put(bD7m, {'content': 'I am going to be updated'}, format='json')
YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def F4Ls(YKHO):\n x0hE = iJSR()\n Q5YQ = mv1M.objects.create(username='another_nerd')\n YKHO.client.force_authenticate(user=Q5YQ)\n jYyn = qQXR.loads(YKHO.response.content.decode('utf-8'))\n geh0 = x0hE.put('/api/v2/entries/{}/'.format(jYyn['id']), {'content': 'I will not be updated'}, format='json'... | [
"0.77699745",
"0.763536",
"0.763536",
"0.763536",
"0.76069564",
"0.7596375",
"0.7588639",
"0.75559527",
"0.7522671",
"0.74999523",
"0.74755543",
"0.7466429",
"0.7451031",
"0.74474233",
"0.74256796",
"0.7397907",
"0.7395258",
"0.7376049",
"0.733789",
"0.73231184",
"0.73164827"... | 0.7930145 | 0 |
Test that no other user can update a user's entry | def F4Ls(YKHO):
x0hE = iJSR()
Q5YQ = mv1M.objects.create(username='another_nerd')
YKHO.client.force_authenticate(user=Q5YQ)
jYyn = qQXR.loads(YKHO.response.content.decode('utf-8'))
geh0 = x0hE.put('/api/v2/entries/{}/'.format(jYyn['id']), {'content': 'I will not be updated'}, format='json')
YKHO... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lDhF(YKHO):\n pass",
"def lDhF(YKHO):\n pass",
"def lDhF(YKHO):\n pass",
"def xkzX(YKHO):\n hkxX = [(u'username', vk2a.UPDATE_USER)]\n dnVu = f8D4(YKHO.user, hkxX)\n YKHO.assertEqual([], dnVu)",
"def rLAz(YKHO):\n nPrm = {'phone': '1234567890'}\n YKHO.client.force_authenticate(u... | [
"0.75981224",
"0.75981224",
"0.75981224",
"0.75891197",
"0.75846195",
"0.75808716",
"0.7528602",
"0.7507832",
"0.74691695",
"0.7364698",
"0.7356479",
"0.73521787",
"0.72952014",
"0.72652084",
"0.7247038",
"0.71766245",
"0.71754885",
"0.71749794",
"0.7124873",
"0.71203446",
"0... | 0.78617096 | 0 |
returns one row of zeros of width "width"... You should use this in your createBoard(width, height) function | def wPqH(TVTK):
rdlD = []
for fvDH in range(TVTK):
rdlD += [0]
return rdlD | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GUba(TVTK, H2v2):\n iBIi = []\n for begg in range(H2v2):\n rdlD = ['*'] * TVTK\n iBIi.append(rdlD)\n return iBIi",
"def fbIl(TVTK, H2v2):\n k0lF = []\n for rdlD in range(H2v2):\n k0lF += [wPqH(TVTK)]\n return k0lF",
"def efGj(TVTK, H2v2):\n iBIi = []\n for rdlD ... | [
"0.77251667",
"0.7597246",
"0.7580718",
"0.75751275",
"0.75697213",
"0.7476747",
"0.7476123",
"0.7466452",
"0.7423505",
"0.7380153",
"0.7293465",
"0.7281928",
"0.7171983",
"0.70949924",
"0.7054078",
"0.7050069",
"0.703608",
"0.7034219",
"0.6993594",
"0.69813347",
"0.6975235",... | 0.72409284 | 14 |
Sets the api_version of this Information. | def clva(YKHO, clva):
if YKHO.local_vars_configuration.client_side_validation and clva is None:
raise ValueError('Invalid value for `api_version`, must not be `None`')
YKHO._api_version = clva | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def clva(YKHO, clva):\n YKHO._api_version = clva",
"def clva(YKHO, BWXx: str):\n YKHO._properties['apiVersion'] = BWXx",
"def clva(YKHO, clva: str):\n if clva is None:\n raise ValueError('Invalid value for `api_version`, must not be `None`')\n YKHO._api_version = clva",
"def clva(YKHO, clv... | [
"0.85358316",
"0.79724896",
"0.77584785",
"0.77584785",
"0.75463",
"0.74781775",
"0.7205589",
"0.716303",
"0.7122401",
"0.71119153",
"0.70409983",
"0.70274854",
"0.70023155",
"0.6978961",
"0.694986",
"0.685936",
"0.6846423",
"0.6824343",
"0.6824343",
"0.67631197",
"0.6762145"... | 0.7646072 | 4 |
Sets the storage_classes of this Information. | def WEeV(YKHO, WEeV):
YKHO._storage_classes = WEeV | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZGVf(YKHO, wohN):\n if wohN == uwaB.CEPHBLOCKPOOL:\n XJGw = uwaB.DEFAULT_STORAGECLASS_RBD\n else:\n XJGw = uwaB.DEFAULT_STORAGECLASS_CEPHFS\n RKD7.info(f'Using [{XJGw}] Storageclass')\n YKHO.crd_data['spec']['workload']['args']['storageclass'] = XJGw",
"def ZGVf(YKHO, wohN):\n if... | [
"0.68462026",
"0.68462026",
"0.61410797",
"0.592396",
"0.5886382",
"0.5855024",
"0.584425",
"0.58419067",
"0.5806223",
"0.5767034",
"0.5743025",
"0.57364357",
"0.5712415",
"0.5712415",
"0.5712415",
"0.5599552",
"0.5559031",
"0.5543551",
"0.5532164",
"0.5455537",
"0.54345685",... | 0.8554832 | 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, y1KW):
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.83920443",
"0.83544874",
"0.8294375",
"0.8131804",
"0.8114275",
"0.8099284",
"0.8098424",
"0.8097017",
"0.8097017",
"0.80916125",
"0.80916125",
"0.80916125",
"0.80916125",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.80659354",
"0.805918",
"0.8056744... | 0.0 | -1 |
Calculates SMA (Simple Moving Average). | def dBGK(f4IJ: pd.DataFrame, z0q4: str='Adj Close', KnxT: int=14, unYO: bool='True') -> rLdf.Series:
jQ3Z = f4IJ.copy()
PXll = jQ3Z[z0q4].rolling(KnxT).mean()
if unYO:
Mab9 = 'SMA_' + str(KnxT)
f4IJ[Mab9] = PXll
else:
return PXll | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vii8(hkxX, exwG):\n return rLdf.Series(hkxX).rolling(exwG).mean()",
"def o4Ai(YKHO, P8oC, ywwl, P2GO=-1):\n if len(P8oC) < ywwl:\n return oyIN.mean(P8oC)\n else:\n return oyIN.mean(P8oC[-ywwl:])",
"def Vii8(nPrm: xr.DataArray, wV6l: int=14) -> zuVY.DataArray:\n return KbXN(wf7J.SM... | [
"0.74593985",
"0.7439682",
"0.74349266",
"0.7384222",
"0.72406",
"0.7041046",
"0.6984528",
"0.69726855",
"0.6956461",
"0.6949436",
"0.6863462",
"0.6839166",
"0.6826342",
"0.6790458",
"0.6786774",
"0.67574155",
"0.6723734",
"0.67005724",
"0.66619354",
"0.66264176",
"0.6623494"... | 0.6167809 | 53 |
Returns a queryset of all job clusters | def k66M(YKHO):
NArs = hfK9(YKHO.request)
return Niyk.objects.filter(pk=NArs['id']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HY00(YKHO):\n return YKHO.c_manager.get_all_clusters()",
"def qC6E(YKHO):\n return YKHO.request(YKHO._clusterURL)",
"def I7LB(YKHO):\n return YKHO._get('/api/clusters')",
"def I7LB(YKHO, Gcw0=None):\n return YKHO._get_managed_objects(s5xf.ClusterComputeResource, Gcw0)",
"def list(YKHO):\n ... | [
"0.73014456",
"0.7222245",
"0.72007805",
"0.7109312",
"0.7108374",
"0.7061697",
"0.7040613",
"0.7014264",
"0.6984786",
"0.69792485",
"0.69444835",
"0.6889529",
"0.6879261",
"0.68710774",
"0.68630266",
"0.6848837",
"0.68319404",
"0.6818259",
"0.68117034",
"0.680385",
"0.678606... | 0.8200089 | 0 |
Return a float representing the number of errors in the minibatch over the total number of examples of the minibatch ; zero one loss over the size of the minibatch | def UAju(YKHO, LVAh, aMgO):
if LVAh.ndim != aMgO.ndim:
raise TypeError('y should have the same shape as self.y_pred', ('y', LVAh.type, 'y_pred', aMgO.type))
if LVAh.dtype.startswith('int'):
return Kt_s.mean(Kt_s.neq(aMgO, LVAh))
else:
raise NotImplementedError() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D_X7(YKHO, HC_i, N77f=None):\n S4QH = 0\n for ajbO, Ei_1 in HC_i:\n DBcx = YKHO.fprop(ajbO)\n if N77f == None:\n S4QH += YKHO.layers[-1].error(Ei_1)\n else:\n S4QH += N77f(DBcx, Ei_1)\n return S4QH",
"def vaCT(hlel, UXqs):\n bGrB, PjQx = hlel[0].max(1)\n... | [
"0.6792418",
"0.6599858",
"0.6586549",
"0.6478026",
"0.64157426",
"0.6402744",
"0.6348602",
"0.6339587",
"0.62999326",
"0.62355524",
"0.61735135",
"0.6159656",
"0.614283",
"0.6137734",
"0.6106725",
"0.6095424",
"0.60929483",
"0.6088585",
"0.6078027",
"0.6076294",
"0.6075385",... | 0.0 | -1 |
It is method for GET /categories/{id} | def UHK4(YKHO, id, MOPg=None, o2VW=None, m5r4='application/json'):
if o2VW is None:
o2VW = {}
j8eK = YKHO.client.base_url + '/categories/' + id
return YKHO.client.get(j8eK, None, MOPg, o2VW, m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ojta(YKHO, id):\n bD7m = f'{YKHO.categories}{id}'\n G9jH.info(f'Get Category {id}: GET {bD7m}')\n geh0 = G4JS.request('Get', bD7m, headers=YKHO.headers)\n return geh0",
"def YnWR(id):\n try:\n Ghho = qZuN.objects.get(id=aA6B(id))\n except Exception as e:\n return Xeta.build_js... | [
"0.82559764",
"0.7505396",
"0.7446239",
"0.73588914",
"0.73559535",
"0.72376996",
"0.71262807",
"0.7080619",
"0.7067367",
"0.70659596",
"0.7049151",
"0.70165575",
"0.6970232",
"0.69480294",
"0.6907482",
"0.6907231",
"0.68966156",
"0.6892448",
"0.6887667",
"0.688766",
"0.68405... | 0.79467267 | 1 |
It is method for PATCH /categories/{id} | def SUIJ(YKHO, nPrm, id, MOPg=None, o2VW=None, m5r4='application/json'):
if o2VW is None:
o2VW = {}
j8eK = YKHO.client.base_url + '/categories/' + id
return YKHO.client.patch(j8eK, nPrm, MOPg, o2VW, m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, id):\n nPrm = QePW.json\n vjht(id, nPrm)\n return (None, 204)",
"def vjht(YKHO, id, mWFP=None):\n bD7m = f'{YKHO.categories}{id}'\n nPrm = {'id': id, 'name': mWFP}\n zgjV = YKHO._json_data(**nPrm)\n G9jH.info(f'Update Category {id}: PUT {bD7m}')\n geh0 = G4JS.request('Put',... | [
"0.7759264",
"0.7520043",
"0.7053376",
"0.7014192",
"0.6961157",
"0.6898011",
"0.6827226",
"0.68157315",
"0.678987",
"0.671495",
"0.66867",
"0.66458726",
"0.6597521",
"0.6583488",
"0.6571884",
"0.65107083",
"0.64590985",
"0.6441889",
"0.6379647",
"0.63746476",
"0.6311001",
... | 0.8204477 | 0 |
It is method for PUT /categories/{id} | def Kc5q(YKHO, nPrm, id, MOPg=None, o2VW=None, m5r4='application/json'):
if o2VW is None:
o2VW = {}
j8eK = YKHO.client.base_url + '/categories/' + id
return YKHO.client.put(j8eK, nPrm, MOPg, o2VW, m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, id):\n nPrm = QePW.json\n vjht(id, nPrm)\n return (None, 204)",
"def vjht(YKHO, id, mWFP=None):\n bD7m = f'{YKHO.categories}{id}'\n nPrm = {'id': id, 'name': mWFP}\n zgjV = YKHO._json_data(**nPrm)\n G9jH.info(f'Update Category {id}: PUT {bD7m}')\n geh0 = G4JS.request('Put',... | [
"0.8304797",
"0.79503787",
"0.7636361",
"0.76355547",
"0.75479376",
"0.7477546",
"0.738369",
"0.71643406",
"0.71091884",
"0.708304",
"0.70352006",
"0.7019659",
"0.6982395",
"0.6826585",
"0.67550087",
"0.6704843",
"0.66856354",
"0.6666031",
"0.6640861",
"0.6455938",
"0.6441818... | 0.7867651 | 2 |
It is method for GET /categories | def m3OA(YKHO, MOPg=None, o2VW=None, m5r4='application/json'):
if o2VW is None:
o2VW = {}
j8eK = YKHO.client.base_url + '/categories'
return YKHO.client.get(j8eK, None, MOPg, o2VW, m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LQuW(YKHO):\n G9jH.info(f'Get Categories: GET {YKHO.categories}')\n geh0 = G4JS.request('Get', YKHO.categories, headers=YKHO.headers)\n return geh0",
"def LQuW(YKHO):\n pass",
"def LQuW(YKHO):\n bD7m = TDhU(YKHO.url, 'categories')\n return i9zE._get(YKHO, url=bD7m)",
"def NMoC(YKHO, QeP... | [
"0.8068858",
"0.7720765",
"0.75689626",
"0.755635",
"0.7519879",
"0.7515343",
"0.74913085",
"0.7489231",
"0.7449138",
"0.7445014",
"0.74229115",
"0.73523533",
"0.7343226",
"0.7321202",
"0.73209363",
"0.7303757",
"0.72839636",
"0.7261573",
"0.72326493",
"0.7221458",
"0.7212767... | 0.721286 | 20 |
It is method for POST /categories | def rq49(YKHO, nPrm, MOPg=None, o2VW=None, m5r4='application/json'):
if o2VW is None:
o2VW = {}
j8eK = YKHO.client.base_url + '/categories'
return YKHO.client.post(j8eK, nPrm, MOPg, o2VW, m5r4) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m8z6(YKHO):\n nPrm = QePW.json\n vIHM(nPrm)\n return (None, 201)",
"def m8z6(YKHO):\n gf_J = QePW.json\n return Z9rn.create_new_category(gf_J)",
"def m8z6(YKHO):\n BWXx = nNXP.payload\n LeZt.append(BWXx)\n return (BWXx, 201)",
"def vKyQ(YKHO):\n geh0 = YKHO.client().post('/cate... | [
"0.7851841",
"0.7834148",
"0.7829077",
"0.761719",
"0.7502378",
"0.7274631",
"0.7262941",
"0.7234798",
"0.7186575",
"0.70879173",
"0.7080812",
"0.70230216",
"0.70063627",
"0.69974136",
"0.69740385",
"0.69558156",
"0.6910354",
"0.6834366",
"0.6824295",
"0.6823282",
"0.6814918"... | 0.72840565 | 5 |
Make sure we can prune values from domains. (We want to pay for this only if we use it.) | def tk9j(YKHO):
if YKHO.curr_domains is None:
YKHO.curr_domains = {Ty9i: list(YKHO.domains[Ty9i]) for Ty9i in YKHO.variables} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EjNp(YKHO):\n for Ty9i in YKHO.domains.keys():\n lV4j = set()\n for WKvO in YKHO.domains[Ty9i]:\n if len(WKvO) != Ty9i.length:\n lV4j.add(WKvO)\n for ZfUD in lV4j:\n YKHO.domains[Ty9i].remove(ZfUD)",
"def X4io(YKHO):\n pass",
"def X4io(YKHO):\... | [
"0.6537015",
"0.6460581",
"0.6460581",
"0.63186926",
"0.63101035",
"0.6232473",
"0.60692066",
"0.587575",
"0.5836165",
"0.5820482",
"0.5815466",
"0.57983005",
"0.5787309",
"0.57640314",
"0.57428384",
"0.5711549",
"0.5692849",
"0.5679323",
"0.5646956",
"0.5616801",
"0.5616801"... | 0.5552919 | 33 |
Method to get proper column name from dataframe This method is to make the feature names case insensitive. If the Open feature were specified as OpEn, this method would match the correct column name from the dataframe and return it. As long as the spelling is the same, capitalization doesn't matter. | def R24j(YKHO, nPrm, RDhP):
for iVRZ in nPrm.columns:
if iVRZ.lower() == RDhP.lower():
return iVRZ
raise Exception('{} feature is not available'.format(RDhP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NObe(YKHO):\n YKHO.df.rename(columns=str.lower, inplace=True)\n return",
"def x1Ad(YKHO, L5mN):\n if L5mN in YKHO.config.remap:\n return YKHO.config.remap[L5mN]\n return K0Bo(L5mN)",
"def jNyF(YKHO):\n YKHO.df.rename(columns=str.upper, inplace=True)\n return",
"def YHzd(YKHO):\n ... | [
"0.67577034",
"0.6622269",
"0.65902686",
"0.6374635",
"0.63384706",
"0.6279836",
"0.6276581",
"0.6194892",
"0.6186019",
"0.61519754",
"0.61343706",
"0.6130572",
"0.6127617",
"0.61229205",
"0.6058695",
"0.60510045",
"0.5992303",
"0.5992303",
"0.5992303",
"0.5984978",
"0.596365... | 0.7584913 | 0 |
Calculates the mean squared error between the test_set and the prediction | def SDab(o3Uj, t4zr, PJWX=True):
P1dF = 0
for YRbF in t4zr.keys():
tcQR = (o3Uj[YRbF] - t4zr[YRbF]) ** 2
P1dF += tcQR
P1dF = P1dF / len(t4zr.keys())
if PJWX:
print('MSE: ' + str(P1dF))
return P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jpEG(Z5wO, N6Z1):\n Z5wO = Z5wO.reshape((Z5wO.shape[0], Z5wO.shape[2]))\n N6Z1 = N6Z1.reshape((N6Z1.shape[0], N6Z1.shape[2]))\n return oyIN.mean((Z5wO - N6Z1) ** 2, axis=1)",
"def OWWD(o3Uj, t4zr, PJWX=True):\n P1dF = 0\n for YRbF in t4zr.keys():\n tcQR = abs(o3Uj[YRbF] - t4zr[YRbF])\n ... | [
"0.77778906",
"0.7657168",
"0.7634474",
"0.7540145",
"0.74116725",
"0.7384185",
"0.7358316",
"0.7350117",
"0.7338805",
"0.73380536",
"0.7260328",
"0.7258733",
"0.7249428",
"0.7247641",
"0.7247641",
"0.7241795",
"0.721408",
"0.7204277",
"0.7196832",
"0.7195592",
"0.7195592",
... | 0.8464068 | 0 |
Calculates the absolute mean error between the test_set and the prediction | def OWWD(o3Uj, t4zr, PJWX=True):
P1dF = 0
for YRbF in t4zr.keys():
tcQR = abs(o3Uj[YRbF] - t4zr[YRbF])
P1dF += tcQR
P1dF = P1dF / len(t4zr.keys())
if PJWX:
print('AME: ' + str(P1dF))
return P1dF | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W4jA(N6Z1, _r9X):\n return oyIN.abs(N6Z1 - oyIN.array(_r9X.rating)).mean()",
"def W4jA(N6Z1, _r9X):\n return oyIN.abs(N6Z1 - oyIN.array(_r9X.rating)).mean()",
"def W4jA(N6Z1, _r9X):\n return oyIN.abs(N6Z1 - oyIN.array(_r9X.rating)).mean()",
"def W4jA(N6Z1, _r9X):\n return oyIN.abs(N6Z1 - oyIN... | [
"0.79474616",
"0.79474616",
"0.79474616",
"0.79474616",
"0.79411834",
"0.77969545",
"0.77929616",
"0.76841354",
"0.7568954",
"0.7550244",
"0.75268567",
"0.7509063",
"0.75006604",
"0.74365914",
"0.7428927",
"0.74046874",
"0.7385956",
"0.7371797",
"0.7360482",
"0.7359567",
"0.7... | 0.8599747 | 0 |
Checking for temperature values | def uiXI(YKHO):
kk0v = YKHO.__temp.read_data()
G9jH.info('Temperature Value: ' + str(kk0v))
if kk0v > znoN:
G9jH.info('ROOM TOO HOT - TURNING ON')
YKHO.__fan.hot_status(True)
if kk0v <= znoN:
G9jH.info('ROOM TOO COLD - TURNING OFF')
YKHO.__fan.cold_status(True)
return... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NqRg(YKHO):\n pass",
"def OAIL(YKHO):\n H6SK = XTiz.array([200, 400, 600, 800, 1000, 1200, 1400, 1600, 1800, 2000])\n wRCy = XTiz.array([False, True, True, True, True, True, True, True, True, True], XTiz.bool)\n for Kt_s, deVW in zip(H6SK, wRCy):\n SH3v = YKHO.kinetics.isTemperatureValid(K... | [
"0.8730988",
"0.77135795",
"0.77135795",
"0.76982516",
"0.76982516",
"0.7690994",
"0.7680103",
"0.7680103",
"0.7670687",
"0.757917",
"0.7520314",
"0.750389",
"0.7449062",
"0.7334468",
"0.7263464",
"0.7255252",
"0.7189109",
"0.7129393",
"0.70894897",
"0.70803744",
"0.70484513"... | 0.0 | -1 |
Returning a temperature value | def pggF(YKHO):
kk0v = YKHO.__temp.read_data()
return kk0v | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b3Jg(YKHO):\n if YKHO.temperature == -1:\n YKHO.temperature = 24\n elif YKHO.heating == True:\n YKHO.temperature = YKHO.temperature + 1\n elif YKHO.cooling == True:\n YKHO.temperature = YKHO.temperature - 1\n elif YKHO.temperature > 24:\n YKHO.temperature = YKHO.temperat... | [
"0.84939116",
"0.84906983",
"0.8485358",
"0.84664816",
"0.8340536",
"0.83007556",
"0.8284811",
"0.82795006",
"0.82713616",
"0.8256651",
"0.8222289",
"0.82116824",
"0.82072365",
"0.8190209",
"0.8160815",
"0.81581247",
"0.8157312",
"0.8149158",
"0.8134315",
"0.81298697",
"0.812... | 0.0 | -1 |
Given user_id, return the associated User object. | def GYAu(uJjO):
return Pbfu.query.filter_by(email=uJjO).first() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVwN(uJjO):\n return mv1M.query.filter_by(id=uJjO).first()",
"def bt8D(Emd4, uJjO):\n CBIr = mv1M.query.get(uJjO)\n return CBIr",
"def bt8D(YKHO, uJjO):\n return YKHO.db.find_first_object_by(mv1M, id=uJjO)",
"def bt8D(uJjO):\n return mv1M.query.get(uJjO)",
"def TKWP(YKHO, uJjO):\n try... | [
"0.8585699",
"0.85069925",
"0.8452774",
"0.8357681",
"0.8315596",
"0.831367",
"0.8308909",
"0.8284561",
"0.8284561",
"0.8284561",
"0.8258631",
"0.8258631",
"0.8258631",
"0.82567245",
"0.8246523",
"0.8243659",
"0.8230082",
"0.822893",
"0.82055056",
"0.8202689",
"0.81950456",
... | 0.0 | -1 |
Send all of the message types for this user now. The messages will be delivered in the order they are given, with just enough time between them to guarantee sort order. | def lw91(OaeV, CBIr, tj12):
Gj2I = CBIr.epoch_now - BfDw.in_seconds(seconds=len(tj12))
for pHcG in tj12:
FyKM(OaeV, CBIr, pHcG, _sent_at=Gj2I)
Gj2I += BfDw.in_seconds(seconds=1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f5Vu(yEHD, tJdJ):\n print('\\nSending all messages')\n while yEHD:\n wOTQ = yEHD.pop()\n print(wOTQ)\n tJdJ.append(wOTQ)",
"def y86K():\n return Yf1k",
"def d2r8(YKHO, tO9_):\n for nVxg in YKHO.clients_queues.values():\n nVxg.put(tO9_)\n for WhOK in YKHO.spectator... | [
"0.5913387",
"0.58870184",
"0.5879999",
"0.5872576",
"0.5828445",
"0.58098495",
"0.57874423",
"0.57283545",
"0.5672595",
"0.56567943",
"0.56545633",
"0.56395453",
"0.5604285",
"0.5601454",
"0.55754495",
"0.55655783",
"0.5545004",
"0.5534267",
"0.55295056",
"0.5515836",
"0.549... | 0.7868582 | 0 |
Return True if the given msg_type has been queued for delivery for this user in the future, False otherwise. | def rp6o(OaeV, CBIr, Dfxc):
return uUiN.is_queued_to_run_later_for_user(OaeV, uUiN.types.MESSAGE, Dfxc, CBIr) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RbS_(YKHO, VuzP=None):\n G2qe = getattr(YKHO, 'task_was_delivered', None)\n if VuzP is not None and type(G2qe) is Jw7o:\n ZoPy = G2qe[0] == VuzP and 1 or 0\n else:\n ZoPy = G2qe and 1 or 0\n return ZoPy",
"def yaAC(YKHO, CBIr):\n return CBIr in YKHO._received",
"def BzYG(YKHO):... | [
"0.6515096",
"0.6232663",
"0.6083879",
"0.6078417",
"0.6075018",
"0.6032883",
"0.5989256",
"0.59241307",
"0.58381546",
"0.58381546",
"0.5817749",
"0.5808381",
"0.57874",
"0.57753456",
"0.5726317",
"0.5699806",
"0.5694996",
"0.5658017",
"0.5656135",
"0.565434",
"0.56512195",
... | 0.7901379 | 0 |
assemble a poisson equation 'stiffness' matrix | def lOXz(YKHO):
jzdc = jQ3Z.dot(jQ3Z.grad(YKHO.u), jQ3Z.grad(YKHO.v)) * jQ3Z.dx
return jQ3Z.assemble(jzdc) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wqqb(Bcwd):\n Z9rn = Zxt2.zeros((3, 3, 3, 3))\n for YRbF in range(3):\n for r845 in range(3):\n if YRbF == 0 and r845 == 0:\n jzdc = 0\n elif YRbF == 1 and r845 == 1:\n jzdc = 1\n elif YRbF == 2 and r845 == 2:\n jzdc = 2... | [
"0.6789625",
"0.673378",
"0.6610764",
"0.62397355",
"0.6186193",
"0.61837935",
"0.6160894",
"0.61450976",
"0.6130966",
"0.61224437",
"0.610263",
"0.6100721",
"0.6095434",
"0.6087566",
"0.6086251",
"0.60840434",
"0.6059982",
"0.6050187",
"0.60349023",
"0.60315496",
"0.60203624... | 0.6498815 | 3 |
test filtering tags by those assigned to recipes | def lZfu(YKHO):
R9U6 = OhYN.objects.create(creator=YKHO.user, name='some tag')
GTT9 = OhYN.objects.create(creator=YKHO.user, name='added tag')
YSCM = LC16.objects.create(creator=YKHO.user, title='hello world', time_minutes=5, price=10.0)
YSCM.tags.add(R9U6)
geh0 = YKHO.client.get(k2aN, data={'assign... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Els2(YKHO):\n GTTc = VHaa(user=YKHO.user, title='Thai vegetable curry')\n eowF = VHaa(user=YKHO.user, title='Aubergine with tahini')\n R9U6 = eo18(user=YKHO.user, name='Vegan Curry')\n GTT9 = eo18(user=YKHO.user, name='Vegetarian')\n GTTc.tags.add(R9U6)\n eowF.tags.add(GTT9)\n gGwe = VHaa(... | [
"0.8158022",
"0.8146719",
"0.81018597",
"0.7953116",
"0.7938952",
"0.7910813",
"0.78633046",
"0.7829849",
"0.78152704",
"0.7792097",
"0.77867055",
"0.77839226",
"0.7712671",
"0.7637323",
"0.76244766",
"0.7166906",
"0.71057945",
"0.70912343",
"0.6959136",
"0.68868446",
"0.6884... | 0.65853024 | 51 |
Updates and redraws the graphs. | def yxfd(YKHO, tvqc):
YKHO.__update_graphs_lock.acquire()
if YKHO.__selected_item is not None:
if YKHO.__draw_graphs or YKHO.__first_update_pending:
d4ZB = YKHO.__plotable_items[min(YKHO.__current_selected_combo_box_index * YKHO.__items_per_group, len(YKHO.__plotable_items)):min((YKHO.__curr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wuis(YKHO):\n YKHO.update_plot['graph'] = True\n YKHO.updateUI()",
"def uUrB(YKHO):\n YKHO._update_data_plot()\n YKHO._update_subset_plots()\n YKHO._update_axis_labels()\n YKHO._redraw()",
"def xoyg(YKHO):\n YKHO._draw_graph()\n YKHO._draw_dot_plots()\n qjJM.draw()",
"def t1jx(... | [
"0.811893",
"0.8003604",
"0.78400075",
"0.7632839",
"0.7616397",
"0.7515784",
"0.7515784",
"0.7515784",
"0.72388494",
"0.7176195",
"0.7169513",
"0.7132625",
"0.70695007",
"0.70424974",
"0.6979531",
"0.69768095",
"0.69768095",
"0.69684845",
"0.6962783",
"0.69224215",
"0.688660... | 0.6378898 | 74 |
Find the threshold pixel intensity of `im_1` where the Pearson correlation between the images goes below `thresh_r`. | def BPar(w1jV, NN2q, jzdc, Fg_i, Y4vV=0.0):
if w1jV.dtype not in [oyIN.uint16, oyIN.uint8]:
EI5i = (w1jV.max() - w1jV.min()) / 256.0
else:
EI5i = 1
cdWX = w1jV.max()
oVn9 = w1jV.min()
knl1 = cdWX
Mkmy = VMYn(knl1, w1jV, NN2q, jzdc, Fg_i)
bFGn = Mkmy
PiW9 = knl1
while ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VMYn(knl1, w1jV, NN2q, jzdc, Fg_i):\n noZV = (w1jV <= knl1) | (NN2q <= jzdc * knl1 + Fg_i)\n Mkmy = BfDw._pearson_r(w1jV[noZV], NN2q[noZV])\n return Mkmy",
"def JfRw(Xn71):\n RTm6 = oyIN.where(Xn71 > oyIN.mean(Xn71), 0.0, 1.0)\n return RTm6",
"def fpVX(Erro, knl1=190, Ugmh=3):\n pIQF = _e... | [
"0.7560643",
"0.6221853",
"0.6127953",
"0.60437894",
"0.601665",
"0.5896232",
"0.5883149",
"0.58443236",
"0.57191664",
"0.5711846",
"0.5705039",
"0.5704946",
"0.5697372",
"0.56955636",
"0.56945336",
"0.5643962",
"0.56335574",
"0.56263804",
"0.5606616",
"0.5588674",
"0.5578938... | 0.78120697 | 0 |
Converts image to list of square subimages called "blocks." | def zqEV(Xn71, TVTK, Zmw9=None, A48m='all'):
if Zmw9 is None:
Zmw9 = oyIN.ones_like(Xn71)
if A48m == 'all':
Z8aa = oyIN.all
else:
Z8aa = oyIN.any
return oyIN.array([Xn71[YRbF:YRbF + TVTK, r845:r845 + TVTK] for YRbF in range(0, Xn71.shape[0], TVTK) for r845 in range(0, Xn71.shape[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XSLc(LNo8):\n Nqlg = LNo8.splitlines()\n u54L = len(Nqlg[0])\n if u54L % 2 == 0:\n Z1S6 = 2\n else:\n Z1S6 = 3\n YIPF = u54L / Z1S6\n FHlE = []\n for LVAh in range(YIPF):\n for WKvO in range(YIPF):\n if Z1S6 == 2:\n XkN1 = [[Nqlg[LVAh * Z1S6][... | [
"0.76272655",
"0.72158325",
"0.7205539",
"0.71619475",
"0.71573365",
"0.7110098",
"0.7101959",
"0.699851",
"0.69975436",
"0.6961031",
"0.6906355",
"0.6839084",
"0.67574",
"0.67405605",
"0.6582682",
"0.6558477",
"0.64049995",
"0.63642585",
"0.6351286",
"0.63351864",
"0.6297253... | 0.7195373 | 3 |
Gets a PDF estimator, using gaussian kernel method. | def b08I(KCHu, Lpgt=None):
k4pG = oyIN.min(KCHu)
ixmf = oyIN.max(KCHu)
Mkmy = oyIN.linspace(k4pG, ixmf, 100)
SdIb = Zxt2.stats.gaussian_kde(KCHu, bw_method=Lpgt)
return (Mkmy, SdIb(Mkmy)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qhzd(WKvO, JBMS, WTkW):\n return oyIN.exp(-0.5 * ((WKvO - JBMS) / WTkW) ** 2) / (WTkW * oyIN.sqrt(2.0 * oyIN.pi))",
"def qeoL(Emd4, WKvO, NArs):\n yGTL, WTkW, vexM, n_jk, ebcy = NArs\n return vexM * eQSh.norm.pdf(WKvO, loc=yGTL, scale=WTkW)",
"def IAWS(YKHO, WKvO, yGTL, WTkW):\n hAEg = oyIN.lin... | [
"0.7352492",
"0.7309375",
"0.723475",
"0.71631545",
"0.7121117",
"0.7109239",
"0.7102329",
"0.7051288",
"0.69083506",
"0.6862481",
"0.68428904",
"0.68060595",
"0.6778717",
"0.67737544",
"0.67225933",
"0.6711418",
"0.66969824",
"0.66910833",
"0.6683404",
"0.66625994",
"0.66553... | 0.0 | -1 |
Returns copy of registration_requests with merged conditional datas. | def T4c0(huEQ, QR6B):
LgZp = {str(Q3Ge['fccId']) + str(Q3Ge['cbsdSerialNumber']): Q3Ge for Q3Ge in QR6B}
cifA = jth9.deepcopy(huEQ)
for U5QT in cifA:
ShR8 = str(U5QT['fccId']) + str(U5QT['cbsdSerialNumber'])
if ShR8 in LgZp:
U5QT.update(LgZp[ShR8])
return cifA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zgjf(YKHO):\n return jUfB.objects.filter(identity=YKHO.registrant_id)",
"def xGqu(YKHO, vGZu=True):\n return YKHO._request_data",
"def JUgj():\n for nPrm in n8lK.append_data():\n yield nPrm",
"def xPzT(YKHO):\n nPrm = YKHO.tagging_template_input()\n nPrm['responses'] = [{'answer': M... | [
"0.5552467",
"0.5256516",
"0.52437955",
"0.52034676",
"0.5196026",
"0.51953614",
"0.51614594",
"0.515835",
"0.51192796",
"0.50772476",
"0.5052807",
"0.49901167",
"0.48935378",
"0.48496452",
"0.48320886",
"0.48138586",
"0.4772964",
"0.47718897",
"0.4766355",
"0.47581053",
"0.4... | 0.73147106 | 0 |
Parse a raw string into a dict. This will produce a key value mappign where the key is everything before the first split and values is everything after. The mapping values will be lists. This will correct RNACentral to RNAcentral. | def TMdi(m6Me, lpha) -> Yrvv.Dict[str, Yrvv.List[str]]:
U5Jc = ukQo.defaultdict(set)
for bTKY in m6Me:
if lpha not in bTKY:
continue
H5ew, BWXx = bTKY.split(lpha, 1)
if H5ew == 'RNACentral':
H5ew = 'RNAcentral'
U5Jc[H5ew].add(BWXx)
return {G1Hx: sorted... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bPwz(vIwR):\n EFnh = oRi_(list)\n for zFiD in vIwR.split('\\n'):\n _gRY, vU9r = zFiD.split(')')\n EFnh[_gRY].append(vU9r)\n return dict(EFnh)",
"def Ueki(vIwR: str) -> dict:\n nPrm = {}\n for zFiD in vIwR.split('\\n'):\n if zFiD and zFiD[0] not in ('#', ' ', '\\t', '\\r'):... | [
"0.65814096",
"0.65508085",
"0.6535763",
"0.64871424",
"0.64413035",
"0.63995653",
"0.6390014",
"0.63696826",
"0.6363117",
"0.6309917",
"0.6298898",
"0.62625587",
"0.6251013",
"0.62199086",
"0.6218286",
"0.6189452",
"0.6161706",
"0.6159808",
"0.6153568",
"0.61377543",
"0.6110... | 0.5688678 | 83 |
Get the description of this record. | def JBZA(AIu6) -> str:
return AIu6.description | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LBXf(YKHO):\n if not YKHO._lookupRecord():\n return ''\n return YKHO._records.LongDesc",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5do(YKHO):\n return YKHO.description",
"def t5... | [
"0.828923",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.82793736",
"0.8272145",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.8268019",
"0.82680... | 0.83976054 | 0 |
Get the sequence version given the record. If no sequence_version is annotated in the record then None is used. | def ch_R(AIu6):
return str(AIu6.annotations.get('sequence_version', None)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kaPv(YKHO):\n EV1I, ntLm = YKHO._get_field_indices('VERSION')\n return YKHO.lines[EV1I[0]][12:].split()[0]",
"def pNGv(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'version_number')",
"def qw6o(YKHO):\n return YKHO._record_version",
"def ljW6(YKHO) -> h8nf[qe4Y.Input[str]]:\n re... | [
"0.64000535",
"0.63012886",
"0.6242468",
"0.62399423",
"0.6237224",
"0.623047",
"0.6208012",
"0.6192862",
"0.6184898",
"0.6132907",
"0.603991",
"0.59966934",
"0.59911567",
"0.5983414",
"0.5972639",
"0.5972639",
"0.5969087",
"0.593226",
"0.593226",
"0.5915144",
"0.5915144",
... | 0.82041067 | 0 |
Get the locus tag of this feature. If none is present then the empty string is returned. | def d78j(RDhP):
return RDhP.qualifiers.get('locus_tag', [None])[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TZ9E(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'tag')",
"def TZ9E(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'tag')",
"def d78j(Qpv3):\n return Qpv3.get('gene', {}).get('locusTag', None)",
"def OAlW(RDhP):\n return RDhP.qualifiers.get('old_locus_tag', [None])[0]",
"def kuDG(YKHO):\n r... | [
"0.71101296",
"0.71101296",
"0.69280297",
"0.68895394",
"0.67918795",
"0.6610565",
"0.64687186",
"0.6398546",
"0.6398546",
"0.6351371",
"0.6351371",
"0.6351371",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654",
"0.6342654... | 0.826215 | 0 |
Get the old_locus_tag of this feature. | def OAlW(RDhP):
return RDhP.qualifiers.get('old_locus_tag', [None])[0] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def d78j(RDhP):\n return RDhP.qualifiers.get('locus_tag', [None])[0]",
"def XFnB(YKHO) -> RnTg.program.model.lang.LanguageID:\n ...",
"def movK(YKHO) -> RnTg.program.model.lang.Language:\n ...",
"def FU_p(YKHO):\n return YKHO._oldposition",
"def d78j(Qpv3):\n return Qpv3.get('gene', {}).get(... | [
"0.6541768",
"0.6148947",
"0.5908302",
"0.5886307",
"0.5875344",
"0.57827425",
"0.5730622",
"0.5674534",
"0.5661148",
"0.5596596",
"0.5574629",
"0.5574629",
"0.55710244",
"0.5551343",
"0.54875654",
"0.54703724",
"0.5462177",
"0.5425466",
"0.5398851",
"0.53333306",
"0.53333306... | 0.8293992 | 0 |
Get the size of the dataset. | def szAg(YKHO):
return len(YKHO.records) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jiw9(YKHO):\n return YKHO.dataset.get_size()",
"def duBC(__n6):\n return dD7q(__n6).data_size",
"def hU8i(YKHO):\n return YKHO._dataset_size",
"def DDYt(YKHO):\n return YKHO._region_obj.get_dataset_size()",
"def zNig(YKHO):\n return YKHO._ds.size",
"def hU8i(YKHO):\n return YKHO.dat... | [
"0.9112953",
"0.9051593",
"0.8926131",
"0.8767104",
"0.85825765",
"0.846203",
"0.83244187",
"0.83244187",
"0.83244187",
"0.83244187",
"0.83244187",
"0.83120996",
"0.8236553",
"0.82089055",
"0.81845415",
"0.8164703",
"0.8097407",
"0.8097407",
"0.8073065",
"0.80641294",
"0.8060... | 0.0 | -1 |
Plots a precision recall curve to `path`. | def CjO4(dixj, pmON=None, ka1A=False):
Jw9H = 'b g r c m y k'.split()
sjXb = sorted(dixj.keys())
for mWFP, Z9rn in zip(sjXb, Jw9H):
hkxX = dixj[mWFP]
Fo3h = zip(hkxX['precision'], hkxX['recall'])
rhd_, AOzf = zip(*list(sorted(Fo3h, key=TU9R(0), reverse=True)))
AOzf = [0.0] + ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def j2En(rhd_, AOzf):\n QrM1.step(AOzf, rhd_, color='b', alpha=0.2, where='post')\n QrM1.fill_between(AOzf, rhd_, step='post', alpha=0.2, color='b')\n QrM1.xlabel('Recall')\n QrM1.ylabel('Precision')\n QrM1.ylim([0.0, 1.05])\n QrM1.xlim([0.0, 1.0])\n QrM1.show()",
"def ak0D(Aofo, pmON):\n ... | [
"0.74367523",
"0.7291029",
"0.7059249",
"0.69779855",
"0.67604554",
"0.6702599",
"0.65358514",
"0.6521881",
"0.65127873",
"0.6494526",
"0.6491677",
"0.64348125",
"0.64041024",
"0.6390363",
"0.6378603",
"0.6317231",
"0.6302416",
"0.628531",
"0.62349355",
"0.6185506",
"0.616068... | 0.69617236 | 4 |
The danger of this encounter imposed from the relation to other encounters. | def jpyK(YKHO, QLvQ):
QLvQ = filter(lambda WKvO: WKvO != YKHO, QLvQ)
h3Aq = filter(lambda WKvO: WKvO.time < YKHO.time, QLvQ)
DOuq = filter(lambda WKvO: WKvO.time >= YKHO.time, QLvQ)
u3JC = JaxB(YKHO.before_kern, h3Aq)
UnNv = JaxB(YKHO.after_kern, DOuq)
return sum(eNCK(u3JC, UnNv)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M91u(YKHO):\n return YKHO.getParent().getLastDamageCause()",
"def t3Z3(YKHO):\n return YKHO.data.totalDamageDealt",
"def Iqf_(YKHO):\n return YKHO._probable_cause",
"def Iqf_(YKHO):\n return YKHO._probable_cause",
"def TH9A(YKHO):\n return YKHO.neutral()",
"def qNBI(YKHO):\n return ... | [
"0.6554935",
"0.64519745",
"0.643827",
"0.643827",
"0.62202907",
"0.6190923",
"0.6170183",
"0.60525006",
"0.6016386",
"0.60009044",
"0.60009044",
"0.59276205",
"0.5905861",
"0.58945554",
"0.5891388",
"0.5880245",
"0.5877391",
"0.58617604",
"0.58365256",
"0.58236223",
"0.58211... | 0.56565905 | 37 |
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter. | def cfQO(tvqc, QpfX):
print('Full Incoming Event Details: ' + str(tvqc))
print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId'])
"\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])... | [
"0.69180524",
"0.67610073",
"0.6581792",
"0.6488756",
"0.6455712",
"0.63761294",
"0.6284997",
"0.62701905",
"0.62692875",
"0.6244557",
"0.621754",
"0.621414",
"0.61932343",
"0.61782515",
"0.6151149",
"0.6142339",
"0.61317295",
"0.6130666",
"0.6050975",
"0.6009359",
"0.5981891... | 0.58238786 | 25 |
Searches for a specified value in a list. It performs linear search in an iterative way. | def TrX4(yv6U, BWXx):
for U6D_ in yv6U:
if U6D_ == BWXx:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QRvy(yv6U, BWXx):\n for YRbF in range(len(yv6U)):\n if yv6U[YRbF] == BWXx:\n return True\n return False",
"def TrX4(WKvO, M1i2):\n OnWS = 0\n while OnWS < len(M1i2):\n if WKvO == M1i2[OnWS]:\n return OnWS\n OnWS += 1\n return -1",
"def WOUL(yv6U, BW... | [
"0.8102071",
"0.7946042",
"0.79088736",
"0.7908165",
"0.7876955",
"0.77885115",
"0.77869904",
"0.7775957",
"0.7735703",
"0.77355194",
"0.76857924",
"0.7649427",
"0.75962406",
"0.7546704",
"0.75434005",
"0.75226194",
"0.74647886",
"0.7460556",
"0.7396312",
"0.73500544",
"0.730... | 0.81510484 | 0 |
Searches for a specified value in a list. It performs linear search in a recursive way. | def Ngua(yv6U, BWXx):
if len(yv6U) == 0:
return False
if yv6U[0] == BWXx:
return True
return Ngua(yv6U[1:], BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TrX4(yv6U, BWXx):\n for U6D_ in yv6U:\n if U6D_ == BWXx:\n return True\n return False",
"def QRvy(yv6U, BWXx):\n for YRbF in range(len(yv6U)):\n if yv6U[YRbF] == BWXx:\n return True\n return False",
"def TrX4(list, Dpgk):\n for ZfUD in list:\n if Dp... | [
"0.7674359",
"0.76183915",
"0.74508345",
"0.74111694",
"0.7381106",
"0.7334599",
"0.73017293",
"0.7290448",
"0.72810715",
"0.72795194",
"0.7245437",
"0.72366047",
"0.7214567",
"0.7201005",
"0.7200553",
"0.71836776",
"0.7183574",
"0.71708477",
"0.7152024",
"0.71501553",
"0.714... | 0.8378494 | 0 |
Searches for a specified value in a list. | def QRvy(yv6U, BWXx):
for YRbF in range(len(yv6U)):
if yv6U[YRbF] == BWXx:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M1i2(qgK3, BWXx):\n W8rq = False\n u54L = len(qgK3)\n for WKvO in range(u54L):\n if qgK3[WKvO] == BWXx:\n return WKvO\n return -1",
"def TgwQ(BWXx, aqea):\n d6pt = 0\n for YRbF in aqea:\n if YRbF == BWXx:\n return d6pt\n else:\n d6pt += ... | [
"0.76941895",
"0.76878333",
"0.7674992",
"0.76477957",
"0.7537519",
"0.74445987",
"0.7345673",
"0.73355144",
"0.73226076",
"0.73024166",
"0.72135615",
"0.7155449",
"0.7147274",
"0.7122612",
"0.70918876",
"0.7087092",
"0.7078757",
"0.70394325",
"0.6990648",
"0.6931128",
"0.691... | 0.7654068 | 3 |
Clean version name (usually a branch name) so it can be used as a tag name for a Docker image. | def yGQP(DpZH):
return DpZH.replace('/', '_').replace('-', '_') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0vu(YKHO, joZ9):\n D8YH = fupw(YKHO.docker_compose + ['version'])\n moMn = ZbWC.search('[0-9].[0-9]*.[0-9]*', D8YH.output)\n xv1c = moMn.group(0)\n if xv1c < i41d:\n return ZbWC.sub('[^a-z0-9]', '', joZ9)\n else:\n return joZ9",
"def ctPW(DpZH: str) -> str:\n if Sgqb(DpZH):\n... | [
"0.70684946",
"0.6913615",
"0.6894661",
"0.66764474",
"0.65872973",
"0.655208",
"0.6389048",
"0.63832706",
"0.6381667",
"0.63113403",
"0.6306388",
"0.6295958",
"0.6283453",
"0.62581146",
"0.62419385",
"0.62303215",
"0.6167471",
"0.61156493",
"0.6073327",
"0.6054573",
"0.60487... | 0.71112484 | 0 |
Reset internal datadependent state of the scaler, if necessary. __init__ parameters are not touched. | def ka5c(YKHO):
if hasattr(YKHO, 'mapping_'):
YKHO.mapping_ = {}
YKHO.mean_skill_ = 0.0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SiRx(YKHO):\n YKHO.state = YKHO.init_state\n YKHO.meas = YKHO.meas_model(YKHO.state)",
"def kZM1(YKHO):\n YKHO.fit_status_ = T6VL.UNFITTED\n YKHO._alphas = None\n YKHO._x_train = None\n YKHO._n_samples = None\n YKHO._y_train = None\n YKHO._label_map = None\n YKHO._label_pos = None\... | [
"0.7417241",
"0.71613747",
"0.7143483",
"0.7137362",
"0.71368384",
"0.704323",
"0.7016444",
"0.698552",
"0.6969383",
"0.6965732",
"0.6884646",
"0.6883421",
"0.6840743",
"0.6823274",
"0.6802013",
"0.68007416",
"0.67868364",
"0.67705536",
"0.6757411",
"0.67416495",
"0.6738752",... | 0.0 | -1 |
Query user by email | def CYTf(YKHO, D3lj):
if D3lj is None:
return None
cHyp = YKHO.db.find_first_object_by(GE9o, email=D3lj)
if cHyp is None:
return None
return cHyp.user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hwys(YKHO, xDcj):\n return YKHO.get_value('email', xDcj, filter='user', datatype=mv1M)",
"def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n return vexM.get()",
"def rRJn(Emd4, D3lj):\n CBIr = Emd4.query.filter(Emd4.email == D3lj).first()\n return CBIr",
"def Arzv(DW2... | [
"0.84522533",
"0.81191295",
"0.7922974",
"0.7719184",
"0.7595773",
"0.7491798",
"0.7490434",
"0.7490434",
"0.74882615",
"0.742992",
"0.73908",
"0.73874277",
"0.7378714",
"0.73741746",
"0.735411",
"0.73452777",
"0.73452777",
"0.73452777",
"0.73452777",
"0.73452777",
"0.7345277... | 0.0 | -1 |
Helper function to make a sparse distance matrix | def P_Vh(EcVT, knl1):
ywwl = EcVT.shape[0]
lWPh = lAMv(EcVT, metric='euclidean')
[pdhd, Oa10] = oyIN.meshgrid(oyIN.arange(ywwl), oyIN.arange(ywwl))
pdhd = pdhd[lWPh <= knl1]
Oa10 = Oa10[lWPh <= knl1]
cAlv = lWPh[lWPh <= knl1]
return o7sj.coo_matrix((cAlv, (pdhd, Oa10)), shape=(ywwl, ywwl)).t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NRUd(YKHO):\n rdlD = []\n fvDH = []\n nPrm = []\n Enzc = YKHO.id2i\n for YRbF, abTv in list(YKHO.neighbor_offsets.items()):\n dxhl = YKHO.cardinalities[YRbF]\n rdlD.extend([Enzc[YRbF]] * dxhl)\n fvDH.extend(abTv)\n nPrm.extend(YKHO.weights[YRbF])\n rdlD = oyIN.arra... | [
"0.76209146",
"0.7544174",
"0.718084",
"0.70721996",
"0.6914798",
"0.68328714",
"0.6756991",
"0.6735654",
"0.6732651",
"0.66865104",
"0.66369545",
"0.6601523",
"0.65795016",
"0.6555629",
"0.65313464",
"0.65089726",
"0.65000373",
"0.64879555",
"0.6483577",
"0.6469008",
"0.6468... | 0.7542863 | 2 |
Show list of users. | def yVA2():
DW23 = mv1M.query.all()
return TvZl('user_list.html', users=DW23) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _FVT():\n DW23 = mv1M.query.all()\n return TvZl('user_list.html', users=DW23)",
"def zidE():\n DW23 = mv1M.query.all()\n return TvZl('users.html', users=DW23)",
"def zidE():\n ESns = NCls.session.query(mv1M).all()\n return TvZl('users.html', users=ESns)",
"def s0TM():\n ESns = UXsa.g... | [
"0.8930896",
"0.87024087",
"0.8689884",
"0.8633615",
"0.8621271",
"0.86019754",
"0.85985595",
"0.85832936",
"0.85663253",
"0.8563847",
"0.8526153",
"0.85121965",
"0.84972584",
"0.8478851",
"0.8449927",
"0.8444469",
"0.8441582",
"0.83768153",
"0.83492345",
"0.8330329",
"0.8307... | 0.8488131 | 14 |
Show list of movies. | def D3h9():
sV3k = H4Ej.query.order_by(H4Ej.title).all()
return TvZl('movie_list.html', movies=sV3k) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def he3M():\n sV3k = H4Ej.query.order_by('title').all()\n return TvZl('movies.html', movies=sV3k)",
"def cPER():\n sV3k = H4Ej.query.order_by(H4Ej.title).order_by(H4Ej.released_at).all()\n return TvZl('movie_list.html', movies=sV3k)",
"def jPJS():\n xNb3 = NCls.session.query(H4Ej).order_by('titl... | [
"0.84227854",
"0.83353025",
"0.8244553",
"0.8186606",
"0.81107724",
"0.80655557",
"0.79526347",
"0.7871908",
"0.78311294",
"0.7819781",
"0.78137803",
"0.78049237",
"0.78049237",
"0.7804492",
"0.780301",
"0.7790251",
"0.77158874",
"0.7666226",
"0.762252",
"0.7543864",
"0.72358... | 0.77341735 | 16 |
Returns the value of the field name for this instance. If the field is a foreign key, returns the id value, instead of the object. If there's no Field object with this name on the model, the model attribute's value is returned directly. Used to serialize a field's value (in the serializer, or form output, for example).... | def UuWo(YKHO, vXX7):
try:
Jyyj = YKHO._meta.get_field_by_name(vXX7)[0]
except Q9cx:
return getattr(YKHO, vXX7)
return getattr(YKHO, Jyyj.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTMT(YKHO):\n assert isinstance(YKHO.field, str), \"'{name}' should either include attribute of type str, or override the `get_field()` method.\".format(name=YKHO.__class__.__name__)\n return YKHO.field",
"def wNcX(YKHO, KAOR, vXX7):\n Jyyj = KAOR._meta.get_field(vXX7)\n return Jyyj.value_from_ob... | [
"0.7845476",
"0.735984",
"0.7328026",
"0.7328026",
"0.7111561",
"0.7057557",
"0.7012229",
"0.6963829",
"0.6936432",
"0.6928552",
"0.6928552",
"0.6928552",
"0.6928552",
"0.6928552",
"0.6928552",
"0.6928552",
"0.69230956",
"0.6902046",
"0.6902046",
"0.6893632",
"0.6893632",
"... | 0.74156874 | 1 |
convert the number a to a binary string with length N | def Tbd6(YKHO, jzdc, ywwl):
KCHu = bin(int(jzdc))[2:].zfill(ywwl)
YylR = 0
for YRbF in range(0, ywwl):
'if the digit is 1, add the corresponding value to the angle'
if KCHu[ywwl - 1 - YRbF] == '1':
YylR += epAf.pow(2, -(ywwl - YRbF))
YylR *= oyIN.pi
return YylR | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ibI4(mLGw, phQk):\n aPd6 = 1\n for YRbF in range(phQk):\n aPd6 *= 2\n KCHu = '{0:b}'.format(mLGw)\n while len(KCHu) < aPd6:\n KCHu = '0' + KCHu\n return KCHu",
"def F5CU(exwG, u54L):\n if exwG == 0:\n return SIe6(0, u54L)\n V3hn = exwG < 0\n if V3hn:\n exwG... | [
"0.7690028",
"0.7640375",
"0.7594467",
"0.7571065",
"0.7516269",
"0.7513766",
"0.73825294",
"0.73821086",
"0.7380356",
"0.7375317",
"0.73319703",
"0.72854054",
"0.7244337",
"0.722858",
"0.72255194",
"0.7218146",
"0.7159866",
"0.7153106",
"0.7144554",
"0.7129565",
"0.71279013"... | 0.0 | -1 |
The name of the scheduled query. Scheduled query names must be unique within each Region. | def sqjL(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'sq_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OPRw(YKHO, JlaQ) -> str:\n return YKHO._query_store[JlaQ].query",
"def cTOe(vexM):\n mWFP = 'q_%i' % vexM\n return mWFP",
"def mWFP(YKHO) -> str:\n if YKHO.schedule and YKHO.schedule['name']:\n return YKHO.schedule['name']\n else:\n return 'Schedule #{}'.format(YKHO.schedule_id... | [
"0.6467303",
"0.63930756",
"0.63075423",
"0.62298125",
"0.6156516",
"0.6098742",
"0.6042885",
"0.60411847",
"0.5961081",
"0.5927539",
"0.5921517",
"0.5899951",
"0.589724",
"0.57997376",
"0.5792526",
"0.57707876",
"0.57261515",
"0.57244533",
"0.5664874",
"0.5655362",
"0.564091... | 0.6484154 | 0 |
The ARN for the IAM role that Timestream will assume when running the scheduled query. | def RUXV(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'sq_scheduled_query_execution_role_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BDB0() -> str:\n TJZp = iVGz.client('sts')\n Z31E = TJZp.get_caller_identity()['Account']\n return f'arn:aws:iam::{Z31E}:role/{kxTZ()}'",
"def _MOp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'alarm_role_arn')",
"def axXk(YKHO) -> str:\n return qe4Y.get(YKHO, 'role_arn')",
"def... | [
"0.7585612",
"0.7303735",
"0.7303203",
"0.72512406",
"0.72512406",
"0.72512406",
"0.72512406",
"0.72512406",
"0.72512406",
"0.7202257",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206",
"0.7200206... | 0.7612525 | 0 |
Adds an answer to this question. | def Re9J(YKHO, wA3x, l5Ny, odKW=None):
YKHO.answers.append(X4qQ(wA3x, l5Ny, odKW)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Re9J(YKHO, bAls, ANfV):\n qwR4 = YKHO.find_question(bAls)\n if qwR4 == -1:\n return False\n YKHO.content[qwR4][1].append(ANfV)\n return True",
"def wWM5(YKHO, bAls, ANfV):\n K4YQ = Y4Gy(bAls, ANfV)\n YKHO.questions.append(K4YQ)",
"def wWM5(YKHO, bAls, ANfV):\n YKHO.questions.app... | [
"0.8170853",
"0.7792502",
"0.7721729",
"0.7673752",
"0.76128143",
"0.75673115",
"0.7496105",
"0.74333066",
"0.7375275",
"0.73180944",
"0.72105074",
"0.7210345",
"0.71853954",
"0.7179904",
"0.71466964",
"0.710576",
"0.69762546",
"0.6933384",
"0.67877305",
"0.6786713",
"0.67768... | 0.7299719 | 10 |
Computes the average precision at k. This function computes the average precision at k between two lists of items. | def yYKJ(n5sN, PjQx, G1Hx=10):
if len(PjQx) > G1Hx:
PjQx = PjQx[:G1Hx]
p1kx = 0.0
yAQO = 0.0
for YRbF, XP5J in enumerate(PjQx):
if XP5J in n5sN and XP5J not in PjQx[:YRbF]:
yAQO += 1.0
p1kx += yAQO / (YRbF + 1.0)
if not n5sN:
return 1.0
return p1kx... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx",
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('Rel... | [
"0.7749058",
"0.7400523",
"0.73176545",
"0.7099083",
"0.7078973",
"0.6986475",
"0.6974007",
"0.6947168",
"0.69352454",
"0.6907197",
"0.69051164",
"0.68629557",
"0.6769187",
"0.6747613",
"0.67440265",
"0.67272115",
"0.67250943",
"0.6720002",
"0.6717422",
"0.6717422",
"0.671340... | 0.58984846 | 90 |
Computes the mean average precision at k. This function computes the mean average prescision at k between two lists of lists of items. | def QVoc(n5sN, PjQx, G1Hx=10):
return oyIN.mean([yYKJ(jzdc, XP5J, G1Hx) for jzdc, XP5J in zip(n5sN, PjQx)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)",
"def wwsZ(qYox, VLaI):\n uSAa = []\n for YRbF in range(0, len(qYox)):\n zIB9 = set()\n for A97Q in VLaI[YRbF + 1]:\n zIB9.add(A97Q[0])\n eRdl = []\n pi4K = ... | [
"0.7430524",
"0.7189293",
"0.7090153",
"0.70457125",
"0.6972641",
"0.6904766",
"0.6904766",
"0.6902883",
"0.68966556",
"0.68855715",
"0.6855384",
"0.6850439",
"0.6850439",
"0.6850439",
"0.67959005",
"0.6785186",
"0.67851245",
"0.6763677",
"0.6743714",
"0.67211235",
"0.6713427... | 0.6889181 | 9 |
Computes the precision values for all sublists of predicted elements starting from the first element. | def rhd_(n5sN, PjQx):
XP5J = []
for YRbF in range(len(PjQx)):
HRJ_ = [A97Q for A97Q in PjQx[:YRbF + 1] if A97Q in n5sN]
XP5J.append(len(HRJ_) * 1.0 / (YRbF + 1))
return XP5J | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NIfP(Crrw, N6Z1, WJ3Z, ZHfW):\n KPPl = BfDw.sort_by_scores(N6Z1, [Crrw], topn=WJ3Z, mask=ZHfW)[0]\n VLaI = ZylS.cast(ZylS.greater_equal(KPPl, 1.0), dtype=ZylS.float32)\n if WJ3Z is None:\n WJ3Z = ZylS.shape(VLaI)[1]\n y9jC = ZylS.minimum(WJ3Z, ZylS.reduce_sum(ZylS.cast(ZHfW, dtype=ZylS.int32... | [
"0.6880294",
"0.6865319",
"0.667229",
"0.66263455",
"0.6486322",
"0.6436368",
"0.6418654",
"0.64075226",
"0.6402365",
"0.6402365",
"0.63951284",
"0.63933897",
"0.63895077",
"0.63851374",
"0.6379134",
"0.6354857",
"0.6353249",
"0.6350121",
"0.63489527",
"0.6341893",
"0.6322486... | 0.73849905 | 0 |
test if State is subclass of BaseModel | def aqpG(YKHO):
YKHO.assertTrue(issubclass(YKHO.model.__class__, KcDH), True) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aqpG(YKHO):\n YKHO.assertTrue(issubclass(YKHO.state.__class__, KcDH), True)",
"def ogW8(YKHO):\n YKHO.assertTrue(issubclass(type(YKHO.state), KcDH))",
"def c2RT(YKHO):\n YKHO.assertTrue(issubclass(YKHO.state.__class__, KcDH), True)",
"def aqpG(YKHO):\n YKHO.assertTrue(issubclass(YKHO.state.__... | [
"0.8846084",
"0.87382597",
"0.86860615",
"0.8654648",
"0.86010736",
"0.8134354",
"0.75331986",
"0.7429501",
"0.73897237",
"0.73494023",
"0.73018837",
"0.73018837",
"0.7290106",
"0.7243429",
"0.7192785",
"0.7041422",
"0.69783545",
"0.6955887",
"0.6955887",
"0.6955887",
"0.6940... | 0.8980516 | 0 |
Helper method to determine the k value of the Pennant. | def Qp8Y(YKHO):
return epAf.log2(YKHO.count) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G1Hx(YKHO, exwG):\n return exwG * oyIN.pi / YKHO.L",
"def _Q6t(YKHO):\n return YKHO.k",
"def _Q6t(YKHO):\n return YKHO.k",
"def _Q6t(YKHO):\n return YKHO.k",
"def BDox(YKHO):\n return YKHO.K",
"def G1Hx(YKHO):\n raise NotImplementedError",
"def HioH(Ty9i):\n return 0.5 * r8hN *... | [
"0.7623764",
"0.7158132",
"0.7158132",
"0.7158132",
"0.7118616",
"0.70847946",
"0.7037165",
"0.7018058",
"0.69391763",
"0.6932042",
"0.6868354",
"0.68509173",
"0.68480605",
"0.683286",
"0.68046075",
"0.67735374",
"0.67714113",
"0.6764447",
"0.6748862",
"0.674804",
"0.67428714... | 0.68343455 | 13 |
Plot counts of two categoricals. Size is raw count for each grouping. Percentages are for a given value of y. | def uqku(WKvO, LVAh, nPrm, C3nu=True):
aDt7 = rLdf.DataFrame(nPrm.groupby(LVAh)[WKvO].value_counts(normalize=False))
aDt7 = aDt7.rename(columns={WKvO: 'raw_count'})
BWz1 = rLdf.DataFrame(nPrm.groupby(LVAh)[WKvO].value_counts(normalize=True))
BWz1 = BWz1.rename(columns={WKvO: 'normalized_count'}).reset_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uqku(WKvO, LVAh, nPrm, C3nu=True):\n aDt7 = rLdf.DataFrame(nPrm.groupby(LVAh)[WKvO].value_counts(normalize=False))\n aDt7 = aDt7.rename(columns={WKvO: 'raw_count'})\n BWz1 = rLdf.DataFrame(nPrm.groupby(LVAh)[WKvO].value_counts(normalize=True))\n BWz1 = BWz1.rename(columns={WKvO: 'normalized_count'}... | [
"0.6812343",
"0.6540278",
"0.6433769",
"0.60784984",
"0.6043528",
"0.60337925",
"0.59935075",
"0.5866382",
"0.58577704",
"0.5792571",
"0.5771436",
"0.574279",
"0.5742652",
"0.5732269",
"0.5706114",
"0.57019943",
"0.5655838",
"0.564599",
"0.56407875",
"0.5597735",
"0.5572402",... | 0.6773572 | 1 |
Construit les instances des joueurs participant au tournoi. | def YE5y(YKHO):
YKHO.players = [aL7g.get_player_by_id(oFUB) for oFUB in YKHO.indices_players] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO):\n YKHO.__participants = []",
"def FIMM(YKHO, AYOM, IQf9, H3N6):\n sRmj.__init__(YKHO)\n YKHO.objet = AYOM\n YKHO.jeu = IQf9\n YKHO.plateau = H3N6\n YKHO.__joueurs = []\n YKHO.observateurs = []\n YKHO.tour = None\n YKHO.sens = 1\n YKHO.en_cours = False\n YKHO.nb_to... | [
"0.6802072",
"0.60819936",
"0.60259444",
"0.5989208",
"0.59757483",
"0.59292054",
"0.57757384",
"0.57440686",
"0.57319343",
"0.56511277",
"0.5601649",
"0.55951095",
"0.5569205",
"0.5562504",
"0.5514594",
"0.5492223",
"0.5471766",
"0.5461547",
"0.5426153",
"0.5419812",
"0.5402... | 0.0 | -1 |
Add headers to both force latest IE rendering engine or Chrome Frame. | def PYz4(geh0):
geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'
return geh0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=0'\n return geh0",
"def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=0'\n return geh0",
"def PYz4(... | [
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857",
"0.81644857"... | 0.8258043 | 0 |
This function checks if string can be converted to a float | def QpCZ(vIwR):
try:
float(vIwR)
return True
except ValueError:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e5f3(YKHO, vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False",
"def e5f3(vIwR):\n try:\n float(vIwR)\n except ValueError:\n return False\n return True",
"def e5f3(vIwR):\n return A69P(vIwR)",
"def e5f3(vIwR):\n try:\n ... | [
"0.8851464",
"0.87445766",
"0.8740587",
"0.872922",
"0.867679",
"0.8676627",
"0.8647983",
"0.86418045",
"0.861215",
"0.8584402",
"0.85374695",
"0.8521369",
"0.851899",
"0.8477148",
"0.8409994",
"0.8409994",
"0.8409994",
"0.8409994",
"0.83816534",
"0.8346213",
"0.83384746",
... | 0.86692655 | 6 |
Return the state of the detector. | def O3Jo(YKHO):
return YKHO._is_fitted | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QTBn(YKHO):\n return YKHO.proc.driver_get_state(YKHO.number)",
"def ja6o(YKHO):\n return YKHO.state",
"def QTBn(YKHO):\n return YKHO.data.state",
"def QTBn(YKHO):\n return YKHO.data.state",
"def QTBn(YKHO):\n return YKHO._device.state",
"async def get_state(YKHO):\n geh0 = await YKH... | [
"0.7411299",
"0.71175784",
"0.7108333",
"0.7108333",
"0.7092784",
"0.7090263",
"0.7086544",
"0.707571",
"0.7057539",
"0.70508873",
"0.7049236",
"0.7045536",
"0.7037352",
"0.7030884",
"0.70264757",
"0.70264757",
"0.70264757",
"0.70264757",
"0.70264757",
"0.70264757",
"0.702647... | 0.0 | -1 |
Creates and inserts a new user, returns a the user object. As the UI changes and the need for more user info increases, this list will grow | def Bwmx(YKHO, O0L3):
CBIr = YKHO.auth.store.user_model.create_user(O0L3.username, username=O0L3.username, password_raw=O0L3.password, first_name=O0L3.first_name, last_name=O0L3.last_name, email=O0L3.email, cc_number=O0L3.cc_number, name_on_cc=O0L3.name_on_cc, expiry_date_month=O0L3.expiry_date_month, expiry_date_y... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eLpg(YKHO):\n import sys\n print(QePW.get_json(), file=sys.stderr)\n CBIr = UlWi(irO0, yLtf())\n with kUFz({jvnz: MoT2}):\n NCls.session.add(CBIr)\n NCls.session.commit()\n return pz3A(**mXB_, data=ezp7(irO0, CBIr))",
"def lYUQ(YKHO):\n Q5YQ = mv1M(YKHO.count, YKHO.get_random_... | [
"0.7546379",
"0.7502737",
"0.7472316",
"0.74087036",
"0.74029845",
"0.7399682",
"0.73911685",
"0.73651826",
"0.73614776",
"0.7330266",
"0.7324366",
"0.73098",
"0.72595483",
"0.72522765",
"0.7246458",
"0.72434735",
"0.72381586",
"0.7235018",
"0.7234195",
"0.72269666",
"0.72208... | 0.701361 | 62 |
Returns the face_area of the circle | def Sv1x(YKHO) -> float:
return epAf.pi * YKHO.radius ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yX2h(r1VO):\n return Lr0q.pi * r1VO * r1VO",
"def f0tD(YKHO) -> float:\n return YKHO.circle_area(YKHO.radius)",
"def UdRN(r1VO):\n f0tD = epAf.pi * r1VO ** 2\n return f0tD",
"def yX2h(r1VO):\n return mM0K * r1VO * r1VO",
"def OoO_(Mkmy):\n return epAf.pi * Mkmy * Mkmy",
"def yX2h(r1... | [
"0.7601367",
"0.759279",
"0.7542208",
"0.7523388",
"0.7483715",
"0.7468228",
"0.7419598",
"0.74011666",
"0.7400409",
"0.7372305",
"0.73596597",
"0.73460615",
"0.7289776",
"0.72215915",
"0.7140223",
"0.71254945",
"0.71065265",
"0.71039546",
"0.71039546",
"0.71039546",
"0.70901... | 0.76505405 | 0 |
Returns the circumferance of the circle | def Y9i6(YKHO) -> float:
return 2 * epAf.pi * YKHO.radius | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def GiOJ(YKHO):\n YKHO.circumference = 2 * YKHO.radius * mM0K",
"def GiOJ(YKHO):\n return 2.0 * epAf.pi * YKHO.__radius",
"def Stx3(Mkmy):\n return 2 * mM0K * Mkmy",
"def UKLo(YKHO):\n return YKHO._circumradius",
"def Stx3(r1VO):\n return 2 * XTiz.pi * r1VO",
"def qh5m(YKHO):\n NrEI = Y... | [
"0.8653741",
"0.85806555",
"0.84269667",
"0.83979493",
"0.8380915",
"0.8377923",
"0.8368763",
"0.8352982",
"0.8342146",
"0.8311506",
"0.82606065",
"0.8260007",
"0.8171509",
"0.79518735",
"0.792594",
"0.78775",
"0.78436625",
"0.7788701",
"0.7702484",
"0.761034",
"0.74520266",
... | 0.7834729 | 17 |
Check if other is of type Circle | def C8gF(YKHO, Elif) -> bool:
if not isinstance(Elif, Lr0q):
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif: 'Circle') -> bool:\n if not YKHO.validate_circle(Elif):\n return False\n if YKHO.radius != Elif.radius:\n return False\n return True",
"def nRbd(YKHO, FV9o):\n return r9SA(YKHO, (FV9o.plane, FV9o.radius))",
"def Vdqg(YKHO, YEnM):\n if not isinstance(YEnM, hmkd)... | [
"0.75871587",
"0.6913664",
"0.673464",
"0.66035783",
"0.6601647",
"0.65514565",
"0.6529333",
"0.6524274",
"0.6441177",
"0.6358017",
"0.63396585",
"0.6333058",
"0.6332366",
"0.6326724",
"0.63129115",
"0.6303278",
"0.6296379",
"0.629543",
"0.62939435",
"0.62881213",
"0.6260415"... | 0.880127 | 0 |
Returns the face_area of the rectangle | def Sv1x(YKHO) -> float:
return YKHO.side1 * YKHO.side2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WOpi(C1GJ, i0Uw):\n mOlj, ymxS, tEh9, PD75 = C1GJ\n mOlj = mOlj + i0Uw\n tEh9 = tEh9 + i0Uw\n EARX = int(mOlj + (tEh9 - mOlj) / 2)\n yRWF = int(ymxS + (PD75 - ymxS) / 2)\n aM8h = 2\n SqZV = int(max(tEh9 - mOlj, PD75 - ymxS) * aM8h / 2)\n jSVV = EARX - SqZV\n RmUy = yRWF - SqZV\n n... | [
"0.7188325",
"0.7137058",
"0.71333915",
"0.7103124",
"0.710293",
"0.7100422",
"0.70898974",
"0.7089864",
"0.703122",
"0.703122",
"0.70131457",
"0.69748944",
"0.69748944",
"0.69748944",
"0.69748944",
"0.6946157",
"0.6946157",
"0.69459707",
"0.6922166",
"0.6912197",
"0.6905603"... | 0.68999887 | 21 |
Returns the circumferance of the rectangle | def Y9i6(YKHO) -> float:
return YKHO.side1 * 2 + YKHO.side2 * 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UKLo(YKHO):\n return YKHO._R",
"def UKLo(YKHO):\n return YKHO._circumradius",
"def UKLo(YKHO):\n if YKHO._circum_radius == None:\n YKHO._circum_radius = YKHO._r\n return YKHO._circum_radius",
"def GiOJ(YKHO):\n return 2.0 * epAf.pi * YKHO.__radius",
"def qh5m(YKHO):\n NrEI = YK... | [
"0.7755866",
"0.7659125",
"0.76001525",
"0.7595384",
"0.758055",
"0.75447905",
"0.7528986",
"0.7522484",
"0.74986595",
"0.747957",
"0.74094117",
"0.7232126",
"0.7081245",
"0.70534223",
"0.6969435",
"0.6890248",
"0.6884428",
"0.68012536",
"0.6739128",
"0.6734254",
"0.6728533",... | 0.67169285 | 21 |
Returns the surface area of the cube | def XXmn(YKHO) -> float:
return 6 * YKHO.side1 ** 2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def G9OF(YKHO) -> int:\n return 6 * YKHO.edge ** 2",
"def Re0Q(YKHO):\n return oyIN.sum(YKHO._find_triangle_areas())",
"def ivpi(YKHO) -> float:\n return 0",
"def B7Mv(YKHO):\n if YKHO.surface_area_ is None:\n f0tD = 0.0\n for nXnc in YKHO.triangles:\n huCq = YKHO._area_o... | [
"0.80010116",
"0.780846",
"0.7756368",
"0.7753498",
"0.7752744",
"0.7334575",
"0.72638375",
"0.72372466",
"0.71967715",
"0.7147733",
"0.71088076",
"0.7107744",
"0.70931566",
"0.7065598",
"0.70501757",
"0.70039135",
"0.6966572",
"0.6954593",
"0.6954424",
"0.69316614",
"0.69184... | 0.73950166 | 5 |
Validates that the both objects are of the same type, both being 'Cube', or both being 'Cube' Raises error if wrong type, returns false if not the same size | def xa14(YKHO, Elif: 'Cube') -> bool:
if not YKHO.validate_cube(Elif):
return False
if YKHO.side1 != Elif.side1:
return False
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V8R0(YKHO, Elif) -> bool:\n if not isinstance(Elif, I1Al):\n return False\n return True",
"def sf00(tk32):\n if not isinstance(tk32, Ty8a.cube.Cube):\n tO9_ = 'Iris.Cube instance required, got {}'\n raise TypeError(tO9_.format(type(tk32)))\n return True",
"def xa14(YKHO, El... | [
"0.7862637",
"0.6748933",
"0.6636529",
"0.65038943",
"0.63407165",
"0.6338089",
"0.6331673",
"0.63224596",
"0.6310613",
"0.62790835",
"0.62458605",
"0.62276256",
"0.6205705",
"0.61905926",
"0.6182111",
"0.61790913",
"0.6159781",
"0.6125668",
"0.6104305",
"0.6080101",
"0.60554... | 0.6916289 | 1 |
Returns the volume of our 3D sphere | def Racr(YKHO) -> float:
return 4 / 3 * epAf.pi * YKHO.radius ** 3 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NUxm(r1VO):\n return 4 / 3 * XTiz.pi * r1VO ** 3",
"def NUxm(Mkmy):\n pass",
"def FKf0(r1VO):\n return 4.0 / 3 * oyIN.pi * r1VO ** 3",
"def g6ex(r1VO):\n return 4 / 3 * oyIN.pi * r1VO ** 3",
"def akib(YKHO) -> float:\n exwG = YKHO.dim\n return YKHO._alpha(exwG) * YKHO.radius ** exwG",... | [
"0.84548914",
"0.8408147",
"0.83270127",
"0.81164634",
"0.80603063",
"0.802309",
"0.7978651",
"0.7966843",
"0.7947923",
"0.79315287",
"0.79306173",
"0.7831069",
"0.7765403",
"0.7738526",
"0.7708563",
"0.7662656",
"0.764432",
"0.7538749",
"0.7500328",
"0.7462957",
"0.74593556"... | 0.737306 | 21 |