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
Combine a date and time series into a datetime series
def kYIM(mmfm, X05Z): GYyL = [] for _c1T, ITS7 in zip(mmfm.values, X05Z.values): JRYC = qcWV.datetime.combine(_c1T, ITS7) GYyL.append(JRYC) return GYyL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I70B(i8WE):\n W7Or = i8WE.loc[:, 2:7]\n I6ic = W7Or.values.tolist()\n gT30 = lambda WKvO: qcWV.datetime(WKvO[0], WKvO[1], WKvO[2], WKvO[3], WKvO[4], WKvO[5])\n ZCxW = rLdf.DataFrame(map(gT30, I6ic))\n i8WE['date'] = ZCxW\n return i8WE", "def gb51(KCHu: pd.Series, Aofo: Optional[pd.DataFrame...
[ "0.6690251", "0.64297044", "0.63708097", "0.6199974", "0.6154839", "0.5948333", "0.5878307", "0.58688885", "0.58253103", "0.57180977", "0.57071996", "0.5706575", "0.57005525", "0.5697078", "0.56892425", "0.56753874", "0.5667902", "0.5571444", "0.5561407", "0.55581594", "0.555...
0.7901773
0
Sets the campaign attribute with a TrackedCampaign
def VAa8(YKHO, j4i0): if isinstance(j4i0, str): j4i0 = X_M9.objects.create(name=j4i0) j4i0.save() YKHO.campaign = j4i0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j4i0(YKHO, j4i0):\n YKHO._campaign = j4i0", "def _j1c(YKHO, _j1c):\n YKHO._campaign_id = _j1c", "def ewq6(YKHO, r5Df):\n if isinstance(r5Df, str):\n r5Df = t3aF.objects.create(campaign=YKHO.campaign, name=r5Df)\n r5Df.save()\n YKHO.campaign_email = r5Df", "def U0K8(YKHO, j4i0):\n ...
[ "0.76138467", "0.6983273", "0.6518364", "0.61656684", "0.58719707", "0.56679845", "0.5522959", "0.54619855", "0.54393065", "0.5430588", "0.53633666", "0.5260498", "0.51866364", "0.5150679", "0.49631113", "0.49532366", "0.4945168", "0.49379367", "0.49379367", "0.49362108", "0....
0.82205564
0
Sets the campaign email attribute with a TrackedCampaignEmail
def ewq6(YKHO, r5Df): if isinstance(r5Df, str): r5Df = t3aF.objects.create(campaign=YKHO.campaign, name=r5Df) r5Df.save() YKHO.campaign_email = r5Df
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(YKHO, D3lj):\n YKHO._email = D3lj", "def D3lj(...
[ "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.68453455", "0.67462665", "0.67301506", "0.67204374", "0.67204374", "0.6564566", "0.6497094", "0.64135027", "0.6374813", "0.6343598", "0.63301057", ...
0.82044697
0
construct listnode from list
def jzKv(IqQl): tk5Y = Msxl(0) ZbOB = tk5Y for YRbF in range(len(IqQl)): ZbOB.next = Msxl(IqQl[YRbF]) ZbOB = ZbOB.next return tk5Y.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHs4(aPd6):\n exwG = None\n for YRbF in Ni9Y(len(aPd6) - 1, -1, -1):\n exwG = o7DN(x=aPd6[YRbF], nxt=exwG)\n return exwG", "def FHs4(aPd6):\n exwG = None\n for YRbF in Ni9Y(len(aPd6) - 1, -1, -1):\n exwG = o7DN(x=aPd6[YRbF], nxt=exwG)\n return exwG", "def l_xx(yv6U):\n a1...
[ "0.7085481", "0.7085481", "0.6954116", "0.6855161", "0.6806374", "0.669958", "0.65430635", "0.64513195", "0.64501", "0.637373", "0.6358718", "0.63154924", "0.63041776", "0.625221", "0.6247209", "0.6197867", "0.61962134", "0.616456", "0.6163744", "0.6108713", "0.61009425", "...
0.7184248
0
Return the name of this camera.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n AOAv = YKHO._cam_name.replace('_', ' ')\n return f'{AOAv} {YKHO._obj_name}'.title()", "def mWFP(YKHO) -> str:\n return YKHO.camera_info['device_name']", "def mWFP(YKHO):\n return YKHO._scene_name", "def mWFP(YKHO):\n return YKHO.asset.name", "def Q0HP(YKHO):\n return YKH...
[ "0.86631787", "0.8536238", "0.7493173", "0.7183577", "0.71381986", "0.7096534", "0.70536137", "0.703101", "0.70261574", "0.70229435", "0.70229435", "0.70229435", "0.7022467", "0.7017471", "0.70168525", "0.70163584", "0.7012957", "0.7012957", "0.7012957", "0.7011892", "0.70003...
0.0
-1
Return the camera state attributes.
def TzCU(YKHO): return {'file_path': YKHO._file_path}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return {PlJk: YyUn, TB1d: YKHO._camera_type}", "def R1i3(YKHO):\n return YKHO.attributes", "def upgy(YKHO):\n return YKHO._attributes", "def upgy(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return {PlJk: YyUn, TB1d: YKHO._device_type}", "def R1i3(YKHO):\n ret...
[ "0.79429895", "0.77826995", "0.7642746", "0.7642746", "0.7628107", "0.7626915", "0.75690836", "0.75690836", "0.75635165", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", "0.75365305", ...
0.0
-1
Close the underlying connection.
def DDI8(YKHO): YKHO._conn.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n YKHO._conn.close()", "def DDI8(YKHO) -> None:\n YKHO._connection.close()", "def ngVb(YKHO) -> None:\n YKHO.connection.close()", "def DDI8(YKHO):\n with YKHO.connlock:\n YKHO.conn.do_close()", "def DDI8(YKHO):\n YKHO.__connection.close()", "def ngVb(YKHO) -> None:\n...
[ "0.8285707", "0.8189774", "0.81770855", "0.81583154", "0.8151474", "0.81504655", "0.8141118", "0.8141118", "0.81265265", "0.8102914", "0.80942947", "0.8076253", "0.8051391", "0.8051391", "0.8051391", "0.8051391", "0.8051391", "0.8051391", "0.8051391", "0.80510116", "0.7890429...
0.8033591
20
Return a named logger. Note, this should be called one time per named logger.
def fZx2(mWFP='LazySusan'): ABDL = spvT() pQ1M(ABDL) bo34 = G9jH.getLogger(mWFP) bo34.setLevel(ABDL) return bo34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bo34(YKHO, mWFP):\n bo34, bGrB = FPO2(mWFP, verbosity=YKHO.verbosity)\n return bo34", "def fZx2(mWFP: str) -> G9jH.Logger:\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(YKHO, mWFP):\n if not ...
[ "0.8175648", "0.81264216", "0.81133986", "0.80860823", "0.7990692", "0.79511476", "0.78802633", "0.7810913", "0.7807408", "0.7762477", "0.77155733", "0.7662459", "0.76285887", "0.7627138", "0.7623923", "0.76119804", "0.75923353", "0.7577212", "0.75675213", "0.7560183", "0.752...
0.7826045
7
Write the page json from the object to a file. Default, is "./{id}.json"
def JXlt(YKHO, wM3v: str=None) -> None: if YKHO.json: if not wM3v: wM3v = f'{YKHO.id}.json' with open(wM3v, 'w') as eHNT: eHNT.write(YKHO.json)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def write(YKHO, nPrm, Ux0P):\n bo34.debug('JSON Page %s', Ux0P)\n GSwS = Hy7s.path.join(YKHO.dirname, Ux0P)\n ObT1 = Hy7s.path.dirname(GSwS)\n if not Hy7s.path.exists(ObT1):\n Hy7s.makedirs(ObT1)\n with open(GSwS, 'w') as G6EG:\n G6EG.write(nPrm)", "def PF_N(UxL2, Ux0P):\n w...
[ "0.71592754", "0.6833297", "0.67917055", "0.67768204", "0.67322016", "0.6731662", "0.6730556", "0.67143846", "0.67031", "0.6699947", "0.66907924", "0.6682108", "0.66777307", "0.66752225", "0.66697663", "0.6647426", "0.6646725", "0.66161305", "0.6606894", "0.6582861", "0.65573...
0.6961622
1
Return count of sockets available on server.
def MNmW(YKHO): HRdA = len(YKHO._binding_data) return int(HRdA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n with YKHO.register_lock:\n return len(YKHO.sockets)", "def MNmW(YKHO):\n return int(YKHO.num_cpu_sockets)", "def kL1l(YKHO):\n return YKHO.channel.recv_ready()", "def BFf7():\n nPrm = wQcs.getoutput('netstat -n | grep -c tcp')\n return nPrm", "def hczu():\n return...
[ "0.7883007", "0.7327394", "0.7202165", "0.6952546", "0.693161", "0.6775371", "0.671451", "0.6702394", "0.66273606", "0.6617147", "0.65317357", "0.6472401", "0.63660204", "0.6344401", "0.6336294", "0.63216335", "0.63208437", "0.6297188", "0.62590337", "0.6244281", "0.6228095",...
0.77470624
1
Return count of sockets available on server.
def MNmW(YKHO): return int(YKHO.num_cpu_sockets)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n with YKHO.register_lock:\n return len(YKHO.sockets)", "def MNmW(YKHO):\n HRdA = len(YKHO._binding_data)\n return int(HRdA)", "def kL1l(YKHO):\n return YKHO.channel.recv_ready()", "def BFf7():\n nPrm = wQcs.getoutput('netstat -n | grep -c tcp')\n return nPrm", "def...
[ "0.7883007", "0.77470624", "0.7202165", "0.6952546", "0.693161", "0.6775371", "0.671451", "0.6702394", "0.66273606", "0.6617147", "0.65317357", "0.6472401", "0.63660204", "0.6344401", "0.6336294", "0.63216335", "0.63208437", "0.6297188", "0.62590337", "0.6244281", "0.6228095"...
0.7327394
2
The systemgenerated, unique ID of the data repository association.
def eOeN(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'association_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO) -> str:\n return f'{YKHO.entry_id}_{YKHO.module_id}_{YKHO.data_id}'", "def ShR8(YKHO):\n return YKHO._id", "def ShR8(YKHO):\n return YKHO._id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n return YKHO._unique_id", "def ShR8(YKHO) -> str:\n ...
[ "0.7724802", "0.7620581", "0.7620581", "0.7493994", "0.7493994", "0.7493994", "0.7493994", "0.7493994", "0.7493994", "0.7493994", "0.7493994", "0.7438622", "0.7418471", "0.74085134", "0.74085134", "0.74085134", "0.74085134", "0.74085134", "0.74085134", "0.74085134", "0.740851...
0.0
-1
For files imported from a data repository, this value determines the stripe count and maximum amount of data per file (in MiB) stored on a single physical disk. The maximum number of disks that a single file can be striped across is limited by the total number of disks that make up the file system.
def Mb9A(YKHO) -> h8nf[int]: return qe4Y.get(YKHO, 'imported_file_chunk_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ojmj(YKHO):\n return 10 ** YKHO.int_len(YKHO.cnt_files())", "def W117(YKHO) -> str:\n return qe4Y.get(YKHO, 'max_disk_size')", "def c9hH(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'bytes_limit_per_file')", "def W117(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'max_disk_size')", "d...
[ "0.70459324", "0.7011306", "0.67932034", "0.6741541", "0.65640527", "0.65068614", "0.6503016", "0.65024894", "0.6467011", "0.6451823", "0.634329", "0.6325226", "0.62655145", "0.6264661", "0.6264661", "0.62432986", "0.6232645", "0.620567", "0.62037367", "0.6188706", "0.6188706...
0.0
-1
The Amazon Resource Name (ARN) for a given resource. ARNs uniquely identify Amazon Web Services resources. We require an ARN when you need to specify a resource unambiguously across all of Amazon Web Services. For more information, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
def EszR(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'resource_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EszR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_arn')", "def EszR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_arn')", "def EszR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'resource_arn')", "def EszR(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'res...
[ "0.7686082", "0.7686082", "0.7686082", "0.7686082", "0.7686082", "0.7686082", "0.7686082", "0.7644795", "0.7601367", "0.7198263", "0.7198263", "0.7198263", "0.7198263", "0.7198263", "0.70990056", "0.70990056", "0.70990056", "0.70990056", "0.70990056", "0.70990056", "0.7099005...
0.7413056
9
Add headers to both force latest IE rendering engine or Chrome Frame, and also to cache the rendered page for 10 minutes.
def PYz4(Mkmy): Mkmy.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate' Mkmy.headers['Pragma'] = 'no-cache' Mkmy.headers['Expires'] = '0' Mkmy.headers['Cache-Control'] = 'public, max-age=0' return Mkmy
{ "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=60'\n return geh0", "def PYz4(geh0):\n geh0.headers['X-UA-Compatible'] = 'IE=Edge,chrome=1'\n geh0.headers['Cache-Control'] = 'public, max-age=600'\n return geh0", "def PY...
[ "0.8222435", "0.82216024", "0.82216024", "0.82216024", "0.82216024", "0.81946385", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232", "0.816232",...
0.71272135
67
Get the configuration of the redis section
def kFMq(YKHO, GPtr): tEHu = {'host', 'port', 'db_id'} hJHX(set(GPtr.options('redis')) - tEHu - YKHO.defaults, 'redis section option(s)') NMoC = YLnl(GPtr.get, 'redis') K4Ei = YLnl(GPtr.getint, 'redis') YKHO.redis_host = NMoC('HOST') YKHO.redis_port = K4Ei('PORT') YKHO.redis_db_id = K4Ei('DB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JgJn(YKHO):\n\n def JfyU(N5z6):\n return N5z6.config()\n YKHO.__run_redis_cmd(JfyU)", "def EHme(YKHO):\n try:\n return YKHO.json_data['CONFIG']\n except:\n si3H.get_error(si3H.ERROR_004)", "def eEPS(YKHO, XLMv=None, MTKo=None):\n return YKHO.conf.get(XLMv, MTKo)", "asy...
[ "0.7516124", "0.68976754", "0.67556787", "0.66636854", "0.66512835", "0.66428995", "0.6630258", "0.658256", "0.6566579", "0.65402466", "0.65308243", "0.6468643", "0.6364659", "0.63538796", "0.630654", "0.6296195", "0.6290233", "0.6275894", "0.6275894", "0.6275894", "0.6275894...
0.71769285
1
Get a metric descriptor from metric type. If the metric is not found, try listing all metrics from project and grab the corresponding matches.
def NMoC(YKHO, px3k): mWFP = f'{YKHO.project}/metricDescriptors/{px3k}' try: return YKHO.client.get_metric_descriptor(name=mWFP) except Bx6I.NotFound: px3k = YKHO.get_approx(px3k) mWFP = f'{YKHO.project}/metricDescriptors/{px3k}' return YKHO.client.get_metric_descriptor(name=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkvg(YKHO, px3k):\n return ycJr._fetch(YKHO, px3k)", "def RXgP(AcYW):\n for ZfUD in pPqa:\n if ZfUD['name'] == AcYW:\n return ZfUD['type']\n return ''", "def sFcG(BatK: str) -> d_mb:\n if BatK == YLTq.MRR:\n return L5kD(name='MRR')\n elif BatK == YLTq.ACR:\n r...
[ "0.7450521", "0.63232946", "0.62064254", "0.618154", "0.6181043", "0.6139923", "0.6025394", "0.59385884", "0.5914183", "0.5872485", "0.57211083", "0.5708873", "0.5705698", "0.56462723", "0.56176186", "0.5576296", "0.5568428", "0.55285054", "0.55132914", "0.54455554", "0.54061...
0.7855862
0
Ensure JWT refresh view using JSON POST fails if no orig_iat is present on the payload.
def V43k(YKHO): YKHO.payload.pop('orig_iat') nPrm = {'token': BfDw.jwt_encode_handler(YKHO.payload)} geh0 = YKHO.client.post('/refresh-token/', qQXR.dumps(nPrm), content_type='application/json') YKHO.assertEqual(geh0.status_code, 400)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oF72(YKHO):\n NWaf = qcWV.utcfromtimestamp(YKHO.payload['orig_iat']) - gCuF.JWT_REFRESH_EXPIRATION_DELTA - fCoM(days=1)\n YKHO.payload['orig_iat'] = XbVV(NWaf.utctimetuple())\n nPrm = {'token': BfDw.jwt_encode_handler(YKHO.payload)}\n geh0 = YKHO.client.post('/refresh-token/', qQXR.dumps(nPrm), con...
[ "0.7056336", "0.6595873", "0.64955956", "0.62678105", "0.6222239", "0.610046", "0.6050554", "0.6036501", "0.60080194", "0.59941053", "0.58761543", "0.58587664", "0.5809193", "0.5738857", "0.543565", "0.5434432", "0.53859794", "0.5380962", "0.53533185", "0.5347213", "0.5327276...
0.86965156
0
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wOcu(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins, YKHO.max_priority)\n YKHO.memory.append(tTpl)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n GsKL = XlZM(QTBn, XeOP, vOGg, rxHc, _ins)\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YK...
[ "0.79568833", "0.79042006", "0.78795445", "0.7577913", "0.7570969", "0.74478436", "0.7361023", "0.72697705", "0.721816", "0.71451885", "0.7106998", "0.7101183", "0.69837016", "0.68905056", "0.68842727", "0.6755663", "0.6712557", "0.6677425", "0.64961654", "0.6488678", "0.6486...
0.71984994
16
Get the current list of participating validator nodes.
def vRsl(GLbg: str, yokr: str=fAzp, hjKc: str=cUBh, dLnb: str=w9q8, tAld: str=lwbA, vYBr: str=rw_c) -> x1iM[str]: kmfe = n3WU() qHni = [] xw3i = {} try: obVC(genesis_file=GLbg, seed=yokr, pool_name=hjKc, wallet_name=dLnb, wallet_key=tAld, timeout=vYBr) with open('{}/validator-state'.form...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o5j8(YKHO):\n return list(YKHO.__peer_nodes)", "def o5j8(YKHO):\n return list(YKHO.__peer_nodes)", "def vTxU(YKHO):\n return YKHO.node_list", "def vTxU(YKHO):\n return []", "def vTxU(YKHO):\n return [[Q6kx] for Q6kx in YKHO.graph.nodes]", "def Ziit(YKHO):\n return YKHO._node_reg", ...
[ "0.67082375", "0.67082375", "0.66853976", "0.64211947", "0.6380634", "0.61560124", "0.6059788", "0.60549957", "0.6053366", "0.60452557", "0.6014061", "0.6002553", "0.5987007", "0.59784824", "0.59771466", "0.5971373", "0.5971219", "0.5971219", "0.5971219", "0.596872", "0.59664...
0.7021979
0
Compute the padding to obtain the same output shape when using convolution, considering the case when the stride is unitary
def fdFm(G1Hx, Csk6=1, Htse=2): G1Hx = tuple([G1Hx for r845 in range(Htse)]) if type(G1Hx) == int else G1Hx Csk6 = tuple([Csk6 for r845 in range(Htse)]) if type(Csk6) == int else Csk6 return tuple([int(0.5 * (Csk6[r845] * (G1Hx[r845] - 1))) for r845 in range(Htse)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WtCT(Ot1W, _0fC, ivFb):\n return -((-Ot1W - (Ot1W - 1) * (ivFb - 1)) // _0fC + 1) // 2", "def wK7_(FtXE, WZcn, _0fC, dvgN):\n return (FtXE + 2 * dvgN - WZcn) // _0fC + 1", "def Gmi6(N0ky: list[int], Ot1W: tuple[int, ...], ivFb: tuple[int, ...], _0fC: tuple[int, ...]) -> list[int]:\n P9o9 = len(Ot1...
[ "0.81379676", "0.80382735", "0.78556925", "0.76689255", "0.765149", "0.7561516", "0.748254", "0.7454831", "0.74427456", "0.7438163", "0.7432097", "0.74233544", "0.73600054", "0.7354283", "0.730166", "0.72396237", "0.723874", "0.7215517", "0.71951425", "0.7179034", "0.7148489"...
0.0
-1
Initialize layer from downsampling operation, i.e. convolution or pooling
def ujDc(Emd4, yR_P): Ot1W = eRgZ(yR_P.kernel_size) _0fC = eRgZ(yR_P.stride) return Emd4(Ot1W, _0fC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Oaqb(YKHO, gEmA):\n F1vH = XINX(type=YKHO.config['pooling_type'], num_dims=YKHO.config['num_dims'])\n gEmA = F1vH(pool_size=(2,) * YKHO.config['num_dims'], data_format=YKHO.config['data_format'])(gEmA)\n return gEmA", "def psZd(YKHO, WQeB, _0fC):\n if _0fC != 1:\n myXy = ZylS.keras.Sequent...
[ "0.6913139", "0.67660147", "0.67233723", "0.66071856", "0.6423581", "0.6250583", "0.61859137", "0.61233044", "0.6107255", "0.60512346", "0.6014526", "0.59816", "0.59753937", "0.59701735", "0.5938807", "0.59332174", "0.59331286", "0.59237146", "0.59225905", "0.59090364", "0.59...
0.0
-1
Initialize layer from upsampling operation, i.e. transposed convolution or upsampling
def u8ui(Emd4, yR_P): _0fC = eRgZ(yR_P.stride) return Emd4(1, 1 / _0fC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p2_p(k0lF, tjUW, vP2v, YwkQ, CS3p, _0fC, MuED, OR7m):\n k0lF = xlGu()([k0lF, tjUW])\n k0lF = wJ8e(vP2v)(k0lF)\n tjUW = wJ8e(vP2v)(tjUW)\n k0lF = yHwh(YwkQ, CS3p, _0fC, padding='same', kernel_initializer=MuED)(k0lF)\n k0lF = T0Ce()(k0lF)\n k0lF = OR7m(k0lF)\n return (k0lF, tjUW)", "def XD...
[ "0.6923253", "0.69218874", "0.6818047", "0.6659082", "0.6492162", "0.6487058", "0.6485198", "0.6463172", "0.64596844", "0.63398516", "0.627715", "0.6270097", "0.62611514", "0.6238734", "0.62180984", "0.6186973", "0.6160294", "0.6139081", "0.61371285", "0.60954225", "0.6088185...
0.0
-1
y_i = (x_i max(x)) / sum(x max(x))
def N93T(EcVT): ZnNw = EcVT - oyIN.max(EcVT, axis=1).reshape(-1, 1) cfQG = oyIN.exp(ZnNw) return cfQG / oyIN.sum(cfQG, axis=1).reshape(-1, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(LVAh):\n vhEE = oyIN.amax(LVAh)\n tTpl = oyIN.exp(LVAh - vhEE)\n return tTpl / oyIN.sum(tTpl)", "def N93T(WKvO):\n uw5A = oyIN.exp(WKvO - oyIN.max(WKvO))\n return uw5A / uw5A.sum() * 100", "def PiMu(WKvO, LVAh):\n Ept4 = oyIN.max(WKvO)\n Dg4G = oyIN.max(LVAh)\n return (Ept4, Dg...
[ "0.66231376", "0.6584254", "0.6552811", "0.65326923", "0.65318584", "0.65139127", "0.65036035", "0.6451018", "0.64187455", "0.63277066", "0.63207334", "0.63207334", "0.63207334", "0.63207334", "0.6316125", "0.63119686", "0.63071096", "0.63039446", "0.63035685", "0.63035685", ...
0.0
-1
Turn the display off (quickly)
def tP53(YKHO): YKHO.displaycontrol &= ~YKHO.LCD_DISPLAYON YKHO.write_lcd(YKHO.LCD_DATA_E1, YKHO.LCD_DISPLAYCONTROL | YKHO.displaycontrol) YKHO.write_lcd(YKHO.LCD_DATA_E2, YKHO.LCD_DISPLAYCONTROL | YKHO.displaycontrol)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _sA4(YKHO):\n YKHO._turn_display('OFF')", "def _e8f(Z_rv):\n if Z_rv:\n XtSf(174)\n else:\n XtSf(175)", "def kCzA(YKHO):\n q_79.debug('Blanking display')\n Q1pw.toggle_screen_state('off')\n YKHO.hide_control_buttons()", "def MMqx(YKHO):\n YKHO.off = True\n YKHO.turnO...
[ "0.8856843", "0.8412049", "0.7483442", "0.72966456", "0.7261764", "0.72428066", "0.7166616", "0.7156268", "0.7139055", "0.71075845", "0.70731074", "0.70666957", "0.7063937", "0.7046198", "0.7012098", "0.69468945", "0.69421524", "0.6921769", "0.6918248", "0.6895559", "0.689243...
0.76472205
2
This will 'left justify' text from the cursor
def Wpd5(YKHO): YKHO.displaymode &= ~YKHO.LCD_ENTRYSHIFTINCREMENT YKHO.write_lcd(m451, YKHO.LCD_ENTRYMODESET | YKHO.displaymode) YKHO.write_lcd(pLQe, YKHO.LCD_ENTRYMODESET | YKHO.displaymode)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ukmA(YKHO, BWXx):\n oeNL = 0\n CN9P = BWXx.upper()\n if CN9P == 'L':\n oeNL = 0\n elif CN9P == 'C':\n oeNL = 1\n elif CN9P == 'R':\n oeNL = 2\n YKHO.write(YKHO.ASCII_ESC, 'a', oeNL)", "def foA4(ukmA='left'):\n KUch.txtjus(inVp[ukmA])", "def FcfE(l5Ny):\n eHxA = ...
[ "0.63633335", "0.6269329", "0.616541", "0.6104415", "0.60599357", "0.6014967", "0.5803564", "0.5749061", "0.56000566", "0.5594751", "0.55739135", "0.556712", "0.55283976", "0.54926807", "0.5490422", "0.548964", "0.5482094", "0.5475019", "0.5450602", "0.54383737", "0.5430408",...
0.0
-1
If we're logged in, add user_id to Flask global. Must execute before do_login
def mN2j(): if kNQc in cuiw: Oa1e.user = mv1M.query.get(cuiw[kNQc]) else: Oa1e.user = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cCoD():\n Oa1e.user = None\n if 'user_id' in cuiw:\n Oa1e.user = mv1M.query.get(cuiw['user_id'])", "def Ucvb():\n if 'auth_user' in WsL5.session:\n CBIr = FYrf.User.query.get(WsL5.session['auth_user'])\n if CBIr is None:\n del WsL5.session['auth_user']\n WsL5.g...
[ "0.732737", "0.7215247", "0.72011894", "0.7155324", "0.70082337", "0.68890995", "0.6827153", "0.67601204", "0.6757661", "0.67527354", "0.6681287", "0.66776884", "0.66543275", "0.6649007", "0.6607986", "0.65651846", "0.6546369", "0.6527202", "0.6463552", "0.6463552", "0.640135...
0.570892
78
Determines whether a natural number is a prime number
def Uvlj(exwG): Fl6v = False if WKvO == 2: Fl6v = True elif WKvO % 2 == 0: Fl6v = False else: for YRbF in range(3, WKvO, 2): if WKvO % YRbF == 0: break else: Fl6v = True return Fl6v
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def T1qg(exwG):\n return kU5Q(exwG)", "def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n re...
[ "0.8353696", "0.8339246", "0.82764", "0.82354355", "0.80573803", "0.8038324", "0.80336785", "0.8012925", "0.7995696", "0.79837555", "0.7971778", "0.7966673", "0.79583603", "0.7953041", "0.79518825", "0.79514825", "0.7948169", "0.7933214", "0.7895023", "0.7887138", "0.78808403...
0.0
-1
Get diseases from data.
def bp8g(YKHO): YKHO.diseases = YKHO.data.groupby('topic')['topic'].count()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LVOn(YKHO):\n return ILMi.DiseasesByPatient(YKHO.id, YKHO.host)", "def UTr8():\n for jb_B in ILMi.diseases_data:\n ILMi.add_disease(jb_B['name'], jb_B['symptoms'], jb_B['is_bacterial'], jb_B['is_viral'], jb_B['is_fungal'])", "def Ueki(qmgP=None):\n if qmgP is None:\n nPrm = FYrf.Data...
[ "0.7602041", "0.70704067", "0.6278454", "0.61278915", "0.61105394", "0.6056795", "0.5896745", "0.57967997", "0.56891006", "0.5655829", "0.5583274", "0.5517157", "0.55137116", "0.55046386", "0.5489524", "0.548908", "0.5456091", "0.5446277", "0.5432133", "0.5417041", "0.5406351...
0.65060306
2
Plots heatmaps for interacting parameter simulations.
def s6SO(nPrm, jpdd, SSy6, RHNH=False, nUHY=False, eXCI=False, qaEx=ytgA.sims_interacting, gIsw='InteractingSims'): Dwvl = RZsE(nPrm) if RHNH: Dwvl = oyIN.log10(Dwvl) MynD, n4wC = (0, 1.6) else: MynD, n4wC = (None, None) LZpg, aNZO = QrM1.subplots() uuEx.heatmap(Dwvl, MynD, n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTkE(YKHO):\n nPrm = []\n for r845 in range(len(YKHO.generations[0])):\n rdlD = []\n for YRbF in range(len(YKHO.generations)):\n rdlD.append(YKHO.generations[YRbF][r845].fitness)\n nPrm.append(rdlD)\n nPrm = oyIN.array(nPrm)\n v_e_ = range(epAf.floor(epAf.log10(nPrm....
[ "0.6893149", "0.68267107", "0.65392464", "0.6511935", "0.6436356", "0.64247864", "0.6419553", "0.6417323", "0.64020175", "0.63990474", "0.6364756", "0.62776893", "0.624668", "0.6227586", "0.62059456", "0.61971486", "0.6195211", "0.6191534", "0.6186919", "0.6176175", "0.617365...
0.69784695
0
Plot correlations between BandRatio measures and spectral features.
def w_1k(nPrm, gz_g=b_YY, k5Zv=vsYD, hZqT=45, nUHY=True, eXCI=False, qaEx=ytgA.eeg_corrs, gIsw='corrplot'): if not oyIN.all(nPrm): raise RuntimeError('No data - cannot proceed.') LZpg, fTVC = QrM1.subplots() fTVC = uuEx.heatmap(nPrm, cmap='bwr', yticklabels=k5Zv, xticklabels=gz_g, annot=True, fmt='1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RSLE():\n LZpg = QrM1.figure(figsize=(12, 12))\n aNZO = LZpg.add_subplot", "def UBFE(nPrm):\n from matplotlib import cm\n WfCS = nPrm.columns.tolist()\n LZpg = QrM1.figure(figsize=(12, 12))\n aNZO = LZpg.add_subplot(111)\n k13D = aNZO.matshow(nPrm.corr().abs(), cmap=cm.YlOrRd)\n LZpg....
[ "0.68772805", "0.6604266", "0.6560752", "0.6556923", "0.64814806", "0.6425908", "0.6351134", "0.63001156", "0.6282062", "0.62816", "0.6200966", "0.61904573", "0.61819565", "0.61695856", "0.6167202", "0.61330146", "0.6131847", "0.6074394", "0.60681933", "0.6067012", "0.6012357...
0.6477444
5
Same as `plot_param_ratio_corr`, but for the exponent.
def iqKw(kLQb, US3l=False, nUHY=False, eXCI=False, qaEx=ytgA.eeg_corrs, gIsw='exp_corrplot'): LZpg, hh7H = QrM1.subplots(figsize=(2.5, 1.75)) hh7H = uuEx.heatmap(kLQb[0].reshape((1, 1)), cmap='bwr', annot=True, fmt='1.2f', cbar=US3l, vmin=-1, vmax=1, annot_kws={'size': 30}, ax=hh7H) QrM1.tick_params(axis='b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w_1k(nPrm, gz_g=b_YY, k5Zv=vsYD, hZqT=45, nUHY=True, eXCI=False, qaEx=ytgA.eeg_corrs, gIsw='corrplot'):\n if not oyIN.all(nPrm):\n raise RuntimeError('No data - cannot proceed.')\n LZpg, fTVC = QrM1.subplots()\n fTVC = uuEx.heatmap(nPrm, cmap='bwr', yticklabels=k5Zv, xticklabels=gz_g, annot=Tru...
[ "0.5915757", "0.56985974", "0.54354197", "0.5414556", "0.52763444", "0.5252095", "0.5211293", "0.51424766", "0.51359105", "0.50648236", "0.506257", "0.5061359", "0.50328195", "0.50101334", "0.49962807", "0.49611908", "0.49496818", "0.49281394", "0.48951095", "0.4867644", "0.4...
0.67388546
0
Add a collection of line segments (2D or 3D) to an axes instance.
def Nqlg(MPlV, IBqe, gwqK, pcLW=None, Jw9H='k', _Eke='solid', iMGt=None, CkYf=None, ybfX=0, **B2fa): if not IBqe.shape == gwqK.shape: raise ValueError('Incompatible lengths of coordinate arrays.') tpio = IBqe.shape[1] assert tpio == 2 or tpio == 3 if tpio == 2: LRdN = Ajws else: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0a6(fUYa, bEXe, Z9rn, aNZO=None, **B2fa):\n aNZO = QrM1.gca() if aNZO is None else aNZO\n PXIy = [oyIN.column_stack([WKvO, LVAh]) for WKvO, LVAh in zip(fUYa, bEXe)]\n z5la = Ajws(PXIy, **B2fa)\n z5la.set_array(oyIN.asarray(Z9rn))\n aNZO.add_collection(z5la)\n aNZO.autoscale()\n return z5l...
[ "0.6578541", "0.65345615", "0.6211205", "0.6159715", "0.6066546", "0.5941651", "0.5806025", "0.5766726", "0.5751014", "0.5727431", "0.56496495", "0.5639578", "0.56311834", "0.5630371", "0.56019443", "0.55558044", "0.555042", "0.55379856", "0.55355805", "0.55008256", "0.544900...
0.66703176
0
Return all the hoppings of the system and of the leads as an iterator.
def ZP2f(HwRy, RRwg=2): bhab = HwRy j412 = [] LqZB = [] if isinstance(bhab, mBtZ.Builder): j412.extend(((jbYB, None, 0) for jbYB in bhab.hoppings())) def AP72(fC6h): aDi_ = fC6h.symmetry for TcIs, dMQV in fC6h.hoppings(): upwH = aDi_.which(dMQV)[0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for YRbF in range(len(YKHO.ks)):\n yield (YKHO.get_neighs([YRbF]), YKHO.get_sp_rel_pos([YRbF]), [YKHO.ks[YRbF]], YKHO.iss)", "def Vs4Q(YKHO):\n for WKvO in YKHO.innings:\n yield WKvO", "def sWum(YKHO):\n for C7Ls in YKHO.Hrepresentation():\n yield C7Ls", "def V...
[ "0.59931445", "0.59457046", "0.5934279", "0.58962834", "0.5853671", "0.5853671", "0.5843535", "0.5737299", "0.57090455", "0.56713057", "0.5670644", "0.5648436", "0.563323", "0.56134367", "0.56121486", "0.56035", "0.5574987", "0.5542815", "0.5530956", "0.55275536", "0.5494585"...
0.6272989
0
Return a Tensor for a batch of image input
def crfW(lNai): return ZylS.placeholder(ZylS.float32, shape=[None] + list(lNai), name='x')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j15L():\n return oyIN.zeros((2, 1, 4, 4))", "def knuZ(YKHO, Cptt):\n FpdP = ZylS.transpose(Cptt, perm=[2, 0, 1])\n WKvO = ZylS.transpose(FpdP)\n return WKvO", "def aTLP(YKHO, j9VG):\n L39K = YKHO._create_network(ZylS.cast(j9VG, ZylS.float32), dropout=YKHO.dropout, is_training=YKHO.is_trainin...
[ "0.6982396", "0.697684", "0.69677955", "0.69143456", "0.67242986", "0.67011863", "0.6678814", "0.6667556", "0.66644204", "0.66474915", "0.65924495", "0.65809345", "0.65522945", "0.6539906", "0.64710915", "0.647023", "0.64531785", "0.6436162", "0.64322406", "0.64031476", "0.63...
0.6586891
11
Flatten x_tensor to (Batch Size, Flattened Image Size)
def PWgb(k3l6): with ZylS.name_scope('input_reshape'): WKvO = k3l6.get_shape().as_list()[1] LVAh = k3l6.get_shape().as_list()[2] epBp = k3l6.get_shape().as_list()[3] T8Zx = ZylS.reshape(k3l6, [-1, WKvO * LVAh * epBp]) return T8Zx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(k3l6):\n Fg_i, yzQ0, MKlR, Csk6 = k3l6.get_shape().as_list()\n Ylkb = yzQ0 * MKlR * Csk6\n return ZylS.reshape(k3l6, [-1, Ylkb])", "def PWgb(YKHO, k3l6):\n ROpF = k3l6.get_shape().as_list()\n assert len(ROpF) >= 4, 'shape of image is not correct'\n A9qY = ROpF[1] * ROpF[2] * ROpF[3]\n ...
[ "0.8305385", "0.8138931", "0.7952496", "0.78986716", "0.76843333", "0.76617396", "0.76617396", "0.76214653", "0.7620596", "0.7620596", "0.7609458", "0.7570018", "0.71380526", "0.69518363", "0.6933166", "0.6928874", "0.69268334", "0.69091326", "0.687546", "0.6792262", "0.66869...
0.7993852
2
Apply a output layer to x_tensor using weight and bias
def hlel(k3l6, I07O, mWFP='output'): with ZylS.name_scope(mWFP): return ZylS.layers.dense(k3l6, I07O)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kmxe(WKvO):\n return WKvO", "def hlel(k3l6, I07O):\n ROpF = k3l6.get_shape().as_list()\n upAO = ZylS.Variable(ZylS.truncated_normal([ROpF[-1], I07O], stddev=0.1))\n oug5 = ZylS.Variable(ZylS.zeros(I07O))\n return ZylS.add(ZylS.matmul(k3l6, upAO), oug5)", "def TORX(k3l6, I07O):\n _mSQ = Zy...
[ "0.73880553", "0.7379001", "0.73780525", "0.6867772", "0.6791421", "0.67592424", "0.6727423", "0.67101616", "0.6686149", "0.66421616", "0.66083896", "0.66023237", "0.65648735", "0.6524778", "0.6484271", "0.6477665", "0.64373136", "0.64364195", "0.6411001", "0.6399274", "0.637...
0.6698643
8
Create a convolutional neural network model
def Hf6V(WKvO, sMyr): ZylS.summary.image('input', WKvO) WKvO = tCUu(WKvO, 64, (5, 5), (1, 1), (3, 3), (2, 2), 'conv1') WKvO = ZylS.nn.lrn(WKvO) WKvO = tCUu(WKvO, 64, (5, 5), (1, 1), (3, 3), (2, 2), 'conv2') WKvO = ZylS.nn.lrn(WKvO) WKvO = ZylS.nn.dropout(WKvO, sMyr, name='dropout1') WKvO = P...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dRuS():\n C3ST = ileL()\n C3ST.add(fhcK.Conv2D(1, (2, 2), strides=(1, 1), activation='sigmoid', padding='same', input_shape=(256, 256, 3)))\n C3ST.compile(optimizer='adam', loss='mse', metrics=['accuracy'])\n C3ST.summary()\n return C3ST", "def biJ_() -> ZylS.keras.Sequential:\n C3ST = ileL...
[ "0.75759804", "0.75662863", "0.75616914", "0.7515004", "0.7484576", "0.73029715", "0.72210497", "0.7213281", "0.7211336", "0.70952636", "0.70872176", "0.70740753", "0.70739937", "0.7005373", "0.69838446", "0.6977015", "0.6968334", "0.696391", "0.69364005", "0.6928159", "0.692...
0.0
-1
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n1pK(YKHO):\n for G1Hx, Ty9i in YKHO.metrics.items():\n ZylS.summary.scalar(G1Hx, Ty9i)\n YKHO.summary_op = ZylS.summary.merge_all()", "def RlbR(YKHO):\n ZylS.summary.scalar('loss', YKHO.loss)\n XIcQ = ZylS.summary.merge_all()\n YKHO.summary_op = XIcQ\n ZylS.logging.info('summary op ...
[ "0.707166", "0.69701505", "0.69701505", "0.68012226", "0.67878616", "0.6741309", "0.6666931", "0.6656891", "0.6621081", "0.66090554", "0.6596744", "0.65847844", "0.6579689", "0.6551655", "0.6501369", "0.6459547", "0.6415795", "0.6295147", "0.62726593", "0.6272205", "0.6264144...
0.5549624
87
Tests removing projects from a team user group
def xZ5p(x0hE): uOe2 = x0hE.remove_projects_from_group(ckRq, j5dQ, ['638597985c913f818559f3.17106287', '404021655ce68d0f36ad23.02802891']) assert uOe2.team_id == ckRq assert uOe2.group_id == j5dQ assert '638597985c913f818559f3.17106287' not in uOe2.projects assert '404021655ce68d0f36ad23.02802891' n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l2eV(YKHO):\n pass", "def Jj68(YKHO):\n pass", "def T2lZ(YKHO):\n pass", "def T2lZ(YKHO):\n pass", "def rm4a(YKHO):\n pass", "def xenn(YKHO):\n pass", "def CI6P(YKHO):\n pass", "def BcnH(YKHO):\n pass", "def BcnH(YKHO):\n pass", "def Zclm(YKHO):\n pass", "def Z...
[ "0.79891574", "0.7781788", "0.740629", "0.740629", "0.72829795", "0.7204606", "0.716091", "0.7146413", "0.7146413", "0.7133802", "0.7133802", "0.71277714", "0.71050334", "0.70733446", "0.7046719", "0.7040827", "0.70291287", "0.6986133", "0.6974486", "0.69699675", "0.6936761",...
0.82599634
0
Tests removing a member from a team user group
def XRd2(x0hE): uOe2 = x0hE.remove_members_from_group(ckRq, j5dQ, 35555) assert uOe2.team_id == ckRq assert uOe2.group_id == j5dQ assert 35555 not in uOe2.members
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L8ju(x0hE):\n uOe2 = x0hE.remove_members_from_group(ckRq, j5dQ, [52911, 35555])\n assert uOe2.team_id == ckRq\n assert uOe2.group_id == j5dQ\n assert 52911 not in uOe2.members\n assert 35555 not in uOe2.members", "def oup5(YKHO):\n pass", "def xxCF(YKHO):\n YKHO.run_function('group.add...
[ "0.83057624", "0.8243199", "0.80481976", "0.8006758", "0.7955663", "0.7873631", "0.78012747", "0.7648809", "0.76298857", "0.7577432", "0.7575087", "0.7575087", "0.7544642", "0.7544642", "0.75342923", "0.75144684", "0.74594504", "0.7458361", "0.7418204", "0.73729044", "0.73328...
0.8584106
0
Tests removing members from a team user group
def L8ju(x0hE): uOe2 = x0hE.remove_members_from_group(ckRq, j5dQ, [52911, 35555]) assert uOe2.team_id == ckRq assert uOe2.group_id == j5dQ assert 52911 not in uOe2.members assert 35555 not in uOe2.members
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XRd2(x0hE):\n uOe2 = x0hE.remove_members_from_group(ckRq, j5dQ, 35555)\n assert uOe2.team_id == ckRq\n assert uOe2.group_id == j5dQ\n assert 35555 not in uOe2.members", "def rm4a(YKHO):\n pass", "def xxCF(YKHO):\n YKHO.run_function('group.add', [YKHO._group], gid=YKHO._gid)\n YKHO.run_...
[ "0.85436517", "0.79600537", "0.79434794", "0.7927054", "0.7829721", "0.7829721", "0.78111917", "0.77350307", "0.76964575", "0.76964575", "0.7617453", "0.7507476", "0.74874574", "0.7481964", "0.7426865", "0.7424679", "0.7388678", "0.7380556", "0.73545545", "0.73545545", "0.734...
0.86245066
0
Tests for failure when posting to the jobs view with authentication.
def DIIu(YKHO, ISxl, c65D): bD7m = '/%s/jobs/' % YKHO.api geh0 = YKHO.client.post(bD7m, data=YKHO.json_data, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN, geh0.content)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gYSg(YKHO):\n Ylbp = YKHO.client.post(hKoz, YKHO.payload, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_403_FORBIDDEN)", "def A_KI(YKHO):\n Ylbp = YKHO.client.post(hKoz, YKHO.payload, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def _oVR(YKH...
[ "0.7062535", "0.68907195", "0.6885851", "0.682816", "0.6743592", "0.66056603", "0.65919375", "0.6590777", "0.6530976", "0.65104836", "0.6506073", "0.6481868", "0.64651704", "0.6434691", "0.64219385", "0.6344984", "0.6342694", "0.63135535", "0.630707", "0.6306685", "0.6301699"...
0.7399698
0
Tests successfully calling POST jobs view to queue a new job with a job type configuration
def DVWV(YKHO, ISxl, c65D): zgjV = {'input': {'version': '6', 'files': {'input_a': [YKHO.source_file.id]}, 'json': {}}, 'job_type_id': YKHO.job_type1.pk, 'configuration': YKHO.configuration} bD7m = '/%s/jobs/' % YKHO.api geh0 = YKHO.client.generic('POST', bD7m, qQXR.dumps(zgjV), 'application/json') YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nW96(YKHO):\n TBsA = EfaT()\n geh0 = YKHO.client.open('/v1/job', method='POST', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def xZLm(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ....
[ "0.7874177", "0.72237116", "0.7020212", "0.6854706", "0.6828025", "0.6814109", "0.6792814", "0.6765872", "0.6723848", "0.6714926", "0.66690063", "0.6652907", "0.6630368", "0.66243637", "0.6591203", "0.65337723", "0.65024704", "0.6496728", "0.6493483", "0.6492324", "0.6486785"...
0.6418603
30
Tests successfully calling POST jobs view to queue a new job with a job type configuration
def pqxy(YKHO): GPtr = jth9.deepcopy(YKHO.configuration) GPtr['version'] = 'BAD' zgjV = {'input': {'version': '6', 'files': {'input_a': [YKHO.source_file.id]}, 'json': {}}, 'job_type_id': YKHO.job_type1.pk, 'configuration': GPtr} bD7m = '/%s/jobs/' % YKHO.api geh0 = YKHO.client.generic('POST', bD7m,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nW96(YKHO):\n TBsA = EfaT()\n geh0 = YKHO.client.open('/v1/job', method='POST', data=qQXR.dumps(TBsA), content_type='application/json')\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def xZLm(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ....
[ "0.78750724", "0.72232294", "0.7020715", "0.6856077", "0.68294907", "0.68141365", "0.6792085", "0.67661196", "0.67233115", "0.671573", "0.6669526", "0.665389", "0.663036", "0.6624836", "0.65925753", "0.65349627", "0.6503242", "0.6497989", "0.64939517", "0.6492833", "0.6487515...
0.0
-1
Tests creating a new seed job type with a mount referenced in configuration but not interface.
def GmV0(YKHO): bD7m = '/%s/job-types/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) Kz8N['job']['name'] = 'my-job-no-mount' Kz8N['job']['interface']['mounts'] = [] GPtr = jth9.deepcopy(YKHO.configuration) GPtr['mounts'] = {} zgjV = {'icon_code': 'BEEF', 'is_published': True, 'max...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZLm(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-new-job'\n zgjV = {'icon_code': 'BEEF', 'is_published': True, 'docker_image': 'my-new-job-1.0.0-seed:1.0.0', 'manifest': Kz8N, 'configuration': YKHO.configuration}\n dWUT =...
[ "0.76392204", "0.7331149", "0.71244127", "0.7043642", "0.7030162", "0.6976633", "0.68316984", "0.65601784", "0.6413352", "0.62300986", "0.6183064", "0.6148942", "0.6084777", "0.60613924", "0.6031164", "0.59884447", "0.5979086", "0.59624445", "0.59482163", "0.57588047", "0.575...
0.8275159
0
Tests creating a job type with partial GPU resource.
def UlpX(YKHO): bD7m = '/%s/job-types/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) Kz8N['job']['resources']['scalar'].append({'name': 'gpus', 'value': 1.1}) zgjV = {'icon_code': 'BEEF', 'is_published': True, 'max_scheduled': '1', 'docker_image': '', 'manifest': Kz8N, 'configuration': YKHO.c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmV0(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-job-no-mount'\n Kz8N['job']['interface']['mounts'] = []\n GPtr = jth9.deepcopy(YKHO.configuration)\n GPtr['mounts'] = {}\n zgjV = {'icon_code': 'BEEF', 'is_published'...
[ "0.60723585", "0.6057607", "0.5913958", "0.5913958", "0.5898015", "0.5852572", "0.5801169", "0.5785675", "0.57483697", "0.5725066", "0.57226443", "0.5686164", "0.56551105", "0.5651964", "0.55958486", "0.5556871", "0.5555656", "0.5477532", "0.5448404", "0.5340549", "0.53265566...
0.7960225
0
Tests editing an existing seed job type and automatically updating recipes.
def YV1C(YKHO, ISxl, c65D): bD7m = '/%s/job-types/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.MINIMUM_MANIFEST) Kz8N['job']['packageVersion'] = '1.0.1' zgjV = {'icon_code': 'BEEF', 'is_published': True, 'max_scheduled': 1, 'is_active': False, 'docker_image': 'my-job-1.0.0-seed:1.0.1', 'manifest': Kz8N, 'conf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MaDN(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n bGrB = PBzZ.create_seed_job_type(manifest=Kz8N, max_scheduled=2, configuration=YKHO.configuration)\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['packageVersion'] = '1.0.1'\n zgjV ...
[ "0.81842685", "0.73413455", "0.7107221", "0.6583987", "0.64824474", "0.6461304", "0.6325567", "0.6158022", "0.60970724", "0.6055784", "0.59063226", "0.58675337", "0.58617043", "0.58579785", "0.58347833", "0.5818397", "0.57932633", "0.5780653", "0.57779866", "0.5764836", "0.57...
0.7694319
1
Tests validating a new job type.
def rOLZ(YKHO): Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) zgjV = {'manifest': Kz8N, 'configuration': YKHO.configuration} bD7m = '/%s/job-types/validation/' % YKHO.api geh0 = YKHO.client.generic('POST', bD7m, qQXR.dumps(zgjV), 'application/json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZLm(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-new-job'\n zgjV = {'icon_code': 'BEEF', 'is_published': True, 'docker_image': 'my-new-job-1.0.0-seed:1.0.0', 'manifest': Kz8N, 'configuration': YKHO.configuration}\n dWUT =...
[ "0.723856", "0.71158105", "0.68406963", "0.6807165", "0.67090386", "0.6649865", "0.65892065", "0.65102017", "0.64844936", "0.6396589", "0.633824", "0.62192804", "0.6214928", "0.6173756", "0.61065197", "0.6082194", "0.6057175", "0.6057098", "0.602485", "0.6021146", "0.5960048"...
0.6421493
9
Tests validating a new job type with a valid configuration.
def DVWV(YKHO): bD7m = '/%s/job-types/validation/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) zgjV = {'manifest': Kz8N, 'configuration': YKHO.configuration} geh0 = YKHO.client.generic('POST', bD7m, qQXR.dumps(zgjV), 'application/json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZLm(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-new-job'\n zgjV = {'icon_code': 'BEEF', 'is_published': True, 'docker_image': 'my-new-job-1.0.0-seed:1.0.0', 'manifest': Kz8N, 'configuration': YKHO.configuration}\n dWUT =...
[ "0.7134642", "0.6953501", "0.6948372", "0.66355145", "0.64982677", "0.6495057", "0.64632875", "0.6430286", "0.64149153", "0.6376788", "0.6334916", "0.630562", "0.62463266", "0.6100859", "0.6098912", "0.6096698", "0.60396206", "0.6036438", "0.6035248", "0.5982708", "0.59761775...
0.6990869
1
Tests validating a new job type with a mount referenced in manifest but not configuration.
def V429(YKHO): bD7m = '/%s/job-types/validation/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) GPtr = jth9.deepcopy(YKHO.configuration) GPtr['mounts'] = {} zgjV = {'manifest': Kz8N, 'configuration': GPtr} geh0 = YKHO.client.generic('POST', bD7m, qQXR.dumps(zgjV), 'application/json') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmV0(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-job-no-mount'\n Kz8N['job']['interface']['mounts'] = []\n GPtr = jth9.deepcopy(YKHO.configuration)\n GPtr['mounts'] = {}\n zgjV = {'icon_code': 'BEEF', 'is_published'...
[ "0.77034205", "0.75372714", "0.68291485", "0.65946376", "0.6209426", "0.61843187", "0.61725724", "0.60452473", "0.60439664", "0.586217", "0.5859187", "0.5821242", "0.58150715", "0.575811", "0.570125", "0.56663406", "0.5549309", "0.5495656", "0.5489298", "0.5470538", "0.544415...
0.7535911
2
Tests validating a new job type with a setting referenced in manifest but not configuration.
def FAEN(YKHO): bD7m = '/%s/job-types/validation/' % YKHO.api Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) GPtr = jth9.deepcopy(YKHO.configuration) GPtr['settings'] = {} zgjV = {'manifest': Kz8N, 'configuration': GPtr} geh0 = YKHO.client.generic('POST', bD7m, qQXR.dumps(zgjV), 'application/json'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nzjj(YKHO):\n bD7m = '/%s/job-types/' % YKHO.api\n Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST)\n Kz8N['job']['name'] = 'my-job-no-setting'\n Kz8N['job']['interface']['settings'] = []\n GPtr = jth9.deepcopy(YKHO.configuration)\n GPtr['settings'] = {}\n zgjV = {'icon_code': 'BEEF', 'is_publ...
[ "0.7316615", "0.6921988", "0.6893932", "0.67550915", "0.6594161", "0.65127385", "0.6435525", "0.6276296", "0.62110454", "0.61712074", "0.61238915", "0.61195177", "0.6020272", "0.60135084", "0.597919", "0.59704816", "0.58727884", "0.5815547", "0.57999295", "0.57591754", "0.573...
0.72118706
1
Tests validating a new job type with media types not specified
def Ehay(YKHO): Kz8N = jth9.deepcopy(PBzZ.COMPLETE_MANIFEST) Kz8N['job']['interface']['inputs']['files'][0]['mediaTypes'] = [] GPtr = jth9.deepcopy(YKHO.configuration) zgjV = {'manifest': Kz8N, 'configuration': GPtr} bD7m = '/%s/job-types/validation/' % YKHO.api geh0 = YKHO.client.generic('POST'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mKe9(YKHO):\n Jyyj = ZuoV(required=False, type_whitelist=YKHO.good_types, use_magic=False)\n for a1PO in YKHO.good_types:\n mWFP = 'somefooname'\n nUeQ = qUH8(name=mWFP, size=1, content_type=a1PO)\n assert Jyyj.clean(nUeQ) is nUeQ\n for a1PO in YKHO.bad_types:\n mWFP = 'som...
[ "0.6556515", "0.6492207", "0.6403893", "0.634156", "0.63308465", "0.63289565", "0.6316567", "0.6293613", "0.61929864", "0.61182165", "0.60781485", "0.6050145", "0.60117364", "0.59424496", "0.594226", "0.5934616", "0.59020036", "0.58884007", "0.5885912", "0.5880606", "0.586640...
0.7604199
0
Return the last updated at.
def w3br(YKHO): return YKHO.last_updated
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mn17(YKHO):\n return YKHO._last_updated", "def cV9T(YKHO):\n return YKHO._last_update", "def cV9T(YKHO):\n return YKHO._last_update", "def zB0d(YKHO) -> str:\n return qe4Y.get(YKHO, 'updated_at')", "def P1L_(YKHO) -> str:\n return qe4Y.get(YKHO, 'last_updated_time')", "def SDfl(YKHO):\...
[ "0.832315", "0.8285082", "0.8285082", "0.82616824", "0.82501084", "0.8236918", "0.8228391", "0.8228391", "0.8228391", "0.82221276", "0.8216972", "0.81940615", "0.8193912", "0.8180323", "0.8177852", "0.8177852", "0.7975151", "0.7972462", "0.7955524", "0.7902072", "0.7902072", ...
0.8872946
0
Return if update is due
def j3y5(YKHO): if YKHO.last_updated is None: return True wzkt = GhSD.utcnow() t7hR = YKHO.last_updated.replace(tzinfo=FXGE.UTC) + qcWV.timedelta(minutes=2) return wzkt > t7hR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eWZe(YKHO):\n wzkt = ITS7.time() / 60\n return YKHO.last_update_time_in_minutes + YKHO.timeout < wzkt", "def eWZe(YKHO) -> bool:\n return False", "def j3y5(YKHO) -> bool:\n if _jwh.objects.all().count() == 0:\n return True\n mn17 = _jwh.objects.latest('date_received').date_received\n ...
[ "0.7477646", "0.72940886", "0.726589", "0.72572637", "0.71963775", "0.70316005", "0.7030253", "0.70166487", "0.7000936", "0.6986575", "0.6942744", "0.6942744", "0.6942744", "0.6942744", "0.6942744", "0.6942744", "0.6942744", "0.6930518", "0.691262", "0.6848018", "0.6802799", ...
0.80324763
0
True if the customer is on the mailing list.
def fdQE(YKHO): return YKHO.__mail
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LjLm(YKHO):\n return YKHO.customer is not None", "def tvI9(YKHO, YEnM):\n CBIr = YKHO.context['request'].user\n if not CBIr.is_authenticated:\n return False\n z39Z = BFpK.objects.get(user=CBIr)\n return z39Z in YEnM.contacts.all()", "def CVrT(YKHO):\n return YKHO.user_type == 'C'",...
[ "0.625032", "0.6242539", "0.6146902", "0.6045338", "0.5888994", "0.58639693", "0.57913667", "0.57574534", "0.57183003", "0.57161397", "0.56964856", "0.56706697", "0.56545794", "0.56545126", "0.5594598", "0.5589392", "0.55694026", "0.5555309", "0.5545143", "0.55422497", "0.552...
0.0
-1
Set the customer to receive mail.
def iJCx(YKHO): YKHO.__mail = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EFZl(YKHO, EFZl):\n YKHO._customer_email = EFZl", "def Qlod(YKHO):\n YKHO.__mail = False", "def s_GD(YKHO, D3lj):\n x0hE = YKHO.clients[D3lj.addressee]\n x0hE.receive(D3lj)", "def wK_M(YKHO, wEf2: EmailAddress):\n YKHO._reply_to = wEf2", "def Mkyc(YKHO, TDjx):\n YKHO.__email_flag__ = ...
[ "0.68477094", "0.6692235", "0.6144909", "0.6067829", "0.59754276", "0.5912679", "0.5891554", "0.5886647", "0.5854606", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5824143", "0.5798914", "0.5788865", ...
0.7814865
0
function that sanitizes the word; the new one is made out of lowercase letters, with no special characters
def uFl1(GIN8): FNgC = [sZqf.lower() for sZqf in GIN8 if sZqf.isalpha()] return ''.join(FNgC)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MoCe(GIN8):\n return GIN8.lower()", "def stf5(YKHO, GIN8):\n return GIN8.strip().lower()", "def wm2H(YKHO, GIN8):\n return YKHO.filter_pattern.sub(u'', GIN8.lower())", "def rNLf(GIN8: str) -> str:\n return ZbWC.compile('[\\\\W_]+').sub('', GIN8.lower())", "def uD9m(GIN8):\n return GIN8.s...
[ "0.8072788", "0.801075", "0.78258234", "0.775214", "0.7739441", "0.7684654", "0.7583506", "0.75010467", "0.74785316", "0.7453251", "0.74348897", "0.7426722", "0.7387961", "0.73865765", "0.7382011", "0.73748505", "0.7346464", "0.7281933", "0.72702575", "0.7255493", "0.72537535...
0.8149033
0
UNIT_MAC_ADDRESS Register Decoder [register[0]lsb=octet 0 [register[0]]msb=octet 1 [register[1]]lsb=octet 2 [register[1]]msb=octet 3 [register[2]]lsb=octet 4 [register[2]]msb=octet 5
def kF1T(YKHO): wY7T = 255 rovi = 254 idXL = 251 wOIp = 250 jujQ = 247 MNTb = 246 x8I_ = HiFA.UNIT_MAC_ADDRESS['decode'] hBsG = [] hBsG.append(rovi << 8 | wY7T) hBsG.append(wOIp << 8 | idXL) hBsG.append(MNTb << 8 | jujQ) aEqx = {'mac_address': [hex(MNTb), hex(jujQ), hex(w...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W_Mm(jzdc):\n if isinstance(jzdc, bytes):\n jzdc = jzdc.decode('latin')\n vIwR = '%.2x:%.2x:%.2x:%.2x:%.2x:%.2x'\n Pp4r = vIwR % (ord(jzdc[0]), ord(jzdc[1]), ord(jzdc[2]), ord(jzdc[3]), ord(jzdc[4]), ord(jzdc[5]))\n return Pp4r", "def wMkj(UTX6):\n return ':'.join(('%02x' % ord(Fg_i) fo...
[ "0.6269726", "0.61748576", "0.6128788", "0.60488796", "0.59923536", "0.5981707", "0.59033936", "0.58985364", "0.58804274", "0.5858329", "0.57723445", "0.57420295", "0.57420295", "0.57420295", "0.57420295", "0.57008517", "0.569561", "0.56954783", "0.56885636", "0.568357", "0.5...
0.75703514
0
Returns whether t is the mirror image of s.
def yzGF(a1PO, KCHu): if a1PO is None and KCHu is None: return True if a1PO is None or KCHu is None: return False if a1PO.value != KCHu.value: return False return yzGF(a1PO.left, KCHu.right) and yzGF(a1PO.right, KCHu.left)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FioC(a1PO):\n return a1PO is None or yzGF(a1PO.left, a1PO.right)", "def jp58():\n g7zY = oyIN.array([[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, -1, 0], [0, 0, 0, -1]])\n return g7zY", "def cvwt(YKHO):\n YKHO.__mirror = not YKHO.__mirror", "def PL_w(bD7m):\n return L9mN(bD7m) or GtHQ(bD7m)", "def...
[ "0.6540976", "0.6229064", "0.60574174", "0.6020641", "0.5898828", "0.58954555", "0.5646771", "0.5583662", "0.55832696", "0.554391", "0.5518999", "0.54967046", "0.54027903", "0.5395745", "0.53739166", "0.53451914", "0.53015715", "0.5296708", "0.5271289", "0.526143", "0.5253863...
0.6785623
0
Returns True if user_obj has any permissions in the given app_label.
def spO2(YKHO, XnWo, tKz9): if not XnWo.is_active: return False for IuXB in YKHO.get_all_permissions(XnWo): if IuXB.partition(':')[0] == tKz9: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spO2(YKHO, XnWo, tKz9):\n if not XnWo.is_active:\n return False\n for IuXB in YKHO.get_all_permissions(XnWo):\n if IuXB[:IuXB.index('.')] == tKz9:\n return True\n return False", "def spO2(YKHO, XnWo, tKz9):\n for IuXB in YKHO.get_all_permissions(XnWo):\n if IuXB[:I...
[ "0.8334002", "0.83035064", "0.8126325", "0.76737654", "0.76737654", "0.76737654", "0.7240652", "0.7240652", "0.7219812", "0.7219812", "0.7219812", "0.7185739", "0.7185739", "0.7147702", "0.71442753", "0.7129628", "0.7125414", "0.69528574", "0.67746526", "0.6771788", "0.671836...
0.8357148
0
Create a new K_i 1form which is a subclass of sp.Expr.
def fwuD(Emd4, d6pt: int) -> EWKA: return EWKA.__new__(Emd4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ow8N(kCrj, jzdc, rZK2):\n return kCrj.from_sympy(jzdc.ex)", "def qgwX(kCrj, jzdc, rZK2):\n return None", "def Oa1e(n2Q1):\n if isinstance(n2Q1, lt7q) and YKHO.st.has_key(n2Q1.name):\n K0a4 = YKHO.st[n2Q1.name]\n if K0a4['srcty'] == 'vector':\n if YKHO.existMats and n2Q1.na...
[ "0.60819924", "0.56950134", "0.5455957", "0.5454403", "0.53961927", "0.5385411", "0.53205115", "0.5313881", "0.5301945", "0.5283174", "0.52755", "0.5263905", "0.5225127", "0.5212662", "0.5202932", "0.51696295", "0.51377547", "0.5116334", "0.5107391", "0.51052475", "0.5054672"...
0.5798519
1
A K 1form is considered < another ONLY if the first has a lower index.
def JWbp(YKHO, Elif: object) -> bool: if not isinstance(Elif, nMvt): return NotImplemented return YKHO.index < Elif.index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JWbp(YKHO, Elif):\n return YKHO.index < Elif.index", "def JWbp(YKHO, Elif):\n return YKHO.weight() < Elif.weight()", "def JWbp(YKHO, Elif):\n try:\n return YKHO.val < Elif.val\n except:\n return YKHO.val < Elif", "def Zcf_(YKHO, Elif):\n return YKHO._key >= Elif._key", "def...
[ "0.767236", "0.726257", "0.7154725", "0.7119674", "0.71133405", "0.7093407", "0.70493263", "0.7045782", "0.7036397", "0.69932616", "0.69872814", "0.698478", "0.6964432", "0.694746", "0.6933484", "0.68929505", "0.68795276", "0.68761593", "0.68419296", "0.6841636", "0.6841636",...
0.73524624
1
A K 1form is considered > another ONLY if the first has a larger index.
def jmxi(YKHO, Elif: object) -> bool: if not isinstance(Elif, nMvt): return NotImplemented return YKHO.index > Elif.index
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmxi(YKHO, Elif):\n return YKHO._key > Elif._key", "def jmxi(YKHO, Elif):\n return YKHO.element() > Elif.element()", "def jmxi(YKHO, Elif):\n return YKHO.weight() > Elif.weight()", "def Zcf_(YKHO, Elif):\n return YKHO._key >= Elif._key", "def jmxi(YKHO, Elif):\n if YKHO.count == Elif.cou...
[ "0.67352456", "0.6663886", "0.6582782", "0.6521015", "0.6498984", "0.6478044", "0.6442183", "0.6432497", "0.6388376", "0.6383662", "0.6377195", "0.63403666", "0.6332116", "0.6307671", "0.62987167", "0.62496984", "0.62478805", "0.6238999", "0.62358934", "0.62301874", "0.621768...
0.72446746
0
Sympy method used when stringtype printing an expression.
def PyCM(YKHO, Qj_h: StrPrinter, *qIxc: Any) -> str: return YKHO.__str__()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return YKHO.symptoms", "def aRbh(YKHO):\n cp89 = ''\n if str(YKHO.t) != 't':\n cp89 = ' with t=%s' % YKHO.t\n return '%s-Bounded Quotient of Symmetric Functions over %s' % (YKHO.k, YKHO.base_ring()) + cp89", "def aRbh(YKHO):\n if YKHO.parent()._chart.manifold().options.t...
[ "0.63241726", "0.6306856", "0.62558675", "0.6226104", "0.61919534", "0.61719775", "0.6159256", "0.6106977", "0.61055726", "0.6094441", "0.6040651", "0.6003904", "0.5997042", "0.59798014", "0.5957182", "0.5933474", "0.59155375", "0.59113604", "0.59102625", "0.59102625", "0.590...
0.7750228
0
calc market buy price basically the price will be the bottom edge of the order book if there is enough volume on the board. if there is not enough volume, the price will be slip two tick.
def SHpz(YKHO, ITS7, nNuQ): ETu_ = YKHO.select_order_book_price_with_retry(ITS7) if ETu_ is None: return None AY7S, uxMe, woya, HQbl = ETu_ if nNuQ * 1.5 < HQbl: return woya else: return woya - rajG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZRcN(YKHO, ITS7, nNuQ):\n ETu_ = YKHO.select_order_book_price_with_retry(ITS7)\n if ETu_ is None:\n return None\n AY7S, uxMe, woya, HQbl = ETu_\n if nNuQ * 1.5 < uxMe:\n return AY7S\n else:\n return AY7S + rajG", "def z53N(hI0L: float):\n return round(hI0L / (1 + SAs9.t...
[ "0.7644379", "0.73252493", "0.71064645", "0.6861299", "0.6836203", "0.6740187", "0.6721955", "0.6717904", "0.67110115", "0.6676819", "0.6629624", "0.65691185", "0.6565536", "0.65240175", "0.6506088", "0.6482311", "0.6455748", "0.6454343", "0.64360243", "0.6399607", "0.6397912...
0.7431583
1
Format a URL for use with the pScheduler API where the host name may include a port.
def G23E(BlFX=None, pmON=None, iquo=None): KcEq, bIwZ = mVF6(BlFX) return Ms2Z(host=KcEq, port=bIwZ, path=pmON, protocol=iquo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def negx(YKHO):\n return 'http://{}:{}'.format(YKHO.host, YKHO.port)", "def bD7m(YKHO):\n return 'http://%s:%d' % (YKHO._host, YKHO._port)", "def ltHA(KcEq, bIwZ=80, Rci7=''):\n return 'http://{shost}{sdelimiter}{sport}/{slocation}'.format(shost=KcEq, sdelimiter=':' if bIwZ != 80 else '', sport=bIwZ i...
[ "0.6722662", "0.66572356", "0.66373", "0.66078824", "0.6596613", "0.65629095", "0.64684093", "0.6434053", "0.6409403", "0.63907", "0.63250756", "0.6320055", "0.6301745", "0.6298575", "0.62772787", "0.6273409", "0.62430626", "0.6210198", "0.6202425", "0.61951447", "0.6181695",...
0.69047576
0
Returns the n least indices from a numpy array.
def Gy9E(qw7D: np.ndarray, exwG: int) -> tuple: TLbF = qw7D.ravel() _0VL = oyIN.argpartition(TLbF, exwG)[:exwG] _0VL = _0VL[oyIN.argsort(TLbF[_0VL])] return oyIN.unravel_index(_0VL, qw7D.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YbSr(aO51, FGW3):\n Aofo = []\n aO51 = oyIN.array(aO51)\n Aofo = oyIN.argpartition(aO51, FGW3)[:FGW3]\n return Aofo", "def DrOz(qw7D, exwG):\n return qw7D[tuple((exwG - qw7D.ndim) * [None] + [...])]", "def kcc4(ezWE, G1Hx):\n return oyIN.sort(oyIN.argpartition(oyIN.array(ezWE), -G1Hx)[-G1...
[ "0.6699951", "0.6369801", "0.6351531", "0.63482475", "0.6337745", "0.6283196", "0.62770814", "0.62731004", "0.6174572", "0.6059975", "0.6046586", "0.6008829", "0.597345", "0.5922383", "0.5922142", "0.5830239", "0.5806125", "0.5806125", "0.5806125", "0.5800424", "0.5784073", ...
0.8411042
0
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].view(-1).float().sum(0) Ylbp.append(R2Dg.mul_(100....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(_ger, nvEb, G1Hx):\n G1Hx = min(len(nvEb), G1Hx)\n OCOs = min(len(_ger), G1Hx)\n return sum([int(nvEb[YRbF] in _ger) for YRbF in range(G1Hx)]) / OCOs", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx] != 0\n if Mkmy.size != G1Hx:\n raise ValueError('R...
[ "0.76427615", "0.74189496", "0.7418079", "0.72710466", "0.72456723", "0.72446615", "0.7237539", "0.72213703", "0.7210107", "0.7058935", "0.6852219", "0.6786084", "0.67836976", "0.6768417", "0.67273885", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0.67181736", "0....
0.0
-1
Make sure search.js is available.
def vfFl(YKHO): pqez = YKHO.layer['portal'] ozsM = getattr(pqez, 'portal_registry') from Products.CMFPlone.interfaces import IResourceRegistry oNHx = ozsM.collectionOfInterface(IResourceRegistry, prefix='plone.resources').keys() YKHO.assertTrue('resource-search-js' in oNHx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mH4E(YKHO):\n YKHO._raise_not_supported()", "def wBL8(YKHO):\n YKHO._get_good_request()\n wCYR = YKHO.testapp.get('/admin/results/google', headers={'X-Requested-With': 'XMLHttpRequest', 'Accept': 'application/json'})\n YKHO.assertTrue(wCYR.status == '200 OK', 'Status is 200: ' + wCYR.status)\n ...
[ "0.5830815", "0.5661299", "0.5634201", "0.54015934", "0.54015934", "0.54015934", "0.5390908", "0.53033394", "0.5271931", "0.5219346", "0.51868314", "0.5176507", "0.51090026", "0.50862396", "0.5069168", "0.5049332", "0.5044209", "0.5027725", "0.50236493", "0.49876714", "0.4981...
0.65277934
0
Get the config file path
def Nu1S(YKHO): return YKHO[ByCR]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tK9U(YKHO):\n if YKHO.configfilepath is None:\n return Hy7s.path.join(YKHO.workdir, 'config.txt')\n else:\n return YKHO.configfilepath", "def kmqQ(YKHO):\n return Hy7s.path.dirname(xAKo)", "def S673(GPtr):\n XLMv = GPtr.sections()[0]\n return GkAb(GPtr.get(XLMv, 'path')).expand...
[ "0.85868555", "0.8523847", "0.8487589", "0.8456098", "0.8432063", "0.8420124", "0.83868843", "0.8269511", "0.81340516", "0.8096346", "0.8094171", "0.79818237", "0.79137003", "0.7890298", "0.7819886", "0.779162", "0.77871495", "0.77624655", "0.7731405", "0.7686212", "0.7675738...
0.82458407
8
Get an individual sample object from the project. Will raise a ValueError if the sample is not found. In the case of multiple samples with the same name (which is not typically allowed), a warning is raised and the first sample is returned
def OVu8(YKHO, uDrL): gGnb = YKHO.get_samples([uDrL]) if len(gGnb) > 1: vzeF.warning('More than one sample was detected; returning the first') try: return gGnb[0] except IndexError: raise ValueError('Project has no sample named {}.'.format(uDrL))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F9Yd():\n B85K = Plm4.getArg('id')\n Mkmy = qv1X('GET', ID3n + 'samples/' + B85K)\n mvm2 = q_oC(Mkmy.json().get('data'))\n J87D = k5Fh('ThreatGrid - Sample', [mvm2], ['ID', 'Filename', 'State', 'Status', 'MD5', 'SHA1', 'SHA256', 'OS', 'SubmittedAt', 'StartedAt', 'CompletedAt'])\n Plm4.results({'...
[ "0.6783552", "0.64806545", "0.64798176", "0.6444538", "0.6350471", "0.6228321", "0.62184", "0.61716473", "0.6165317", "0.615692", "0.6146812", "0.6091206", "0.6089562", "0.60834223", "0.5920894", "0.58156663", "0.581385", "0.5785201", "0.575101", "0.57384306", "0.5726337", ...
0.84053683
0
Creates a new Line from a point and a direction vector
def bnE6(Emd4, nJ9F, nxyw, cflT, jzdc, Fg_i, Z9rn): y4fz = lNLu(nJ9F, nxyw, cflT) Csk6 = lNLu(jzdc, Fg_i, Z9rn) return Emd4(y4fz, Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ndJC(Emd4, AU8u, iArr, **B2fa):\n return Emd4(AU8u, iArr.angle, **B2fa)", "def VrlL(YKHO, AU8u: Onion[Tuple[float, float], Point2D, Point3D, Point]):\n Ruu7 = YKHO.last_point\n eyHp = ttlj(AU8u)\n YKHO._segments.append(VTsD.create(Ruu7, eyHp))", "def RO9f(YKHO, AU8u: Sequence[float], **B2fa) ->...
[ "0.6815035", "0.67762303", "0.66951627", "0.6677982", "0.65358514", "0.6486385", "0.64352816", "0.64182884", "0.64173704", "0.64090496", "0.6398139", "0.639303", "0.6359721", "0.6332509", "0.62868625", "0.62791145", "0.6259376", "0.6256764", "0.62513655", "0.62213624", "0.618...
0.0
-1
Creaates a new Line from two points on the line
def MMZS(Emd4, o4D3, si3g, Rtnc, ajwV, skBL, mPai): Csk6 = lNLu(ajwV - o4D3, skBL - si3g, mPai - Rtnc) y4fz = lNLu(o4D3, si3g, Rtnc) return Emd4(y4fz, Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEXj(fJfP, hWOy):\n k0lF = fJfP.y - hWOy.y\n tjUW = hWOy.x - fJfP.x\n Nq1b = fJfP.y * tjUW + fJfP.x * k0lF\n return oyIN.matrix([[k0lF], [tjUW], [-Nq1b]])", "def O_lX(YKHO, o4D3, si3g, ajwV, skBL, _Cnz=None, _AKB=None):\n o8Kj = {'d': 'M %5f %5f L %5f %5f' % (o4D3, si3g, ajwV, skBL)}\n retu...
[ "0.7899847", "0.75599235", "0.747116", "0.72926456", "0.7283897", "0.72287744", "0.7198576", "0.7019089", "0.6949199", "0.6890133", "0.6878132", "0.68514836", "0.6763256", "0.67233336", "0.6718874", "0.6718318", "0.66828096", "0.6665806", "0.66650134", "0.66547966", "0.664058...
0.62220514
61
Creaates a new Line from two points on the line
def PTkm(Emd4, o4D3, si3g, Rtnc, ajwV, skBL, mPai, rNcn, Sb1k, Exmq): Csk6 = oyIN.array([ajwV - o4D3, skBL - si3g, mPai - Rtnc]) y4fz = oyIN.array([o4D3, si3g, Rtnc]) return Emd4(y4fz, Csk6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QEXj(fJfP, hWOy):\n k0lF = fJfP.y - hWOy.y\n tjUW = hWOy.x - fJfP.x\n Nq1b = fJfP.y * tjUW + fJfP.x * k0lF\n return oyIN.matrix([[k0lF], [tjUW], [-Nq1b]])", "def O_lX(YKHO, o4D3, si3g, ajwV, skBL, _Cnz=None, _AKB=None):\n o8Kj = {'d': 'M %5f %5f L %5f %5f' % (o4D3, si3g, ajwV, skBL)}\n retu...
[ "0.7899847", "0.75599235", "0.747116", "0.72926456", "0.7283897", "0.72287744", "0.7198576", "0.7019089", "0.6949199", "0.6890133", "0.6878132", "0.68514836", "0.6763256", "0.67233336", "0.6718874", "0.6718318", "0.66828096", "0.6665806", "0.66650134", "0.66547966", "0.664058...
0.0
-1
Returns a normal unit vector to the plane by crossing the two direction vectors
def mhAC(YKHO) -> lNLu: return NkkI(WHx2(YKHO.d1, YKHO.d2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGpy(hLRM, F_On):\n return oyIN.cross(F_On[0] - hLRM, F_On[1] - hLRM)", "def sta2(KwKv, YBrO, Qz2I):\n hQHm = oyIN.subtract(KwKv, Qz2I)\n jlSq = oyIN.subtract(KwKv, YBrO)\n mhAC = oyIN.cross(hQHm, jlSq)\n V4se = uYu4(mhAC)\n return V4se", "def mhAC(YKHO) -> Cd5b:\n fJfP = YKHO.planes[1...
[ "0.79587084", "0.7533136", "0.7469607", "0.72210085", "0.7160066", "0.7125642", "0.71110463", "0.70975286", "0.7069419", "0.7015354", "0.699165", "0.69284326", "0.6860229", "0.68145454", "0.67635846", "0.6712413", "0.6694899", "0.6546803", "0.65047336", "0.6492596", "0.648341...
0.7678387
1
Returns True if the point is in the plane, and False otherwise.
def Sq2b(YKHO, XP5J) -> bool: return epAf.isclose(epAf.fabs(BJ1H(YKHO.normal(), lNLu.connect(XP5J.x, XP5J.y, XP5J.z, YKHO.p0.x, YKHO.p0.y, YKHO.p0.z))), 0, rel_tol=1e-09, abs_tol=1e-09)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5rA(YKHO, AU8u, kEC0):\n qKJ5 = AU8u.dot(kEC0[:3]) + kEC0[3]\n if qKJ5 <= _hZ2:\n print('OK => point on plane')\n else:\n print('NO => point not on plane')", "def UjWK(AU8u, kEC0, yJiH=0.0):\n Csk6 = MVQW(AU8u, kEC0)\n return Csk6 <= yJiH", "def kEOm(YKHO, AU8u: AbstractPoint)...
[ "0.7954878", "0.7732451", "0.7634303", "0.7125201", "0.7125201", "0.7115368", "0.70533705", "0.7017655", "0.6967094", "0.69556975", "0.69418865", "0.6887939", "0.685035", "0.68368244", "0.6745507", "0.6722026", "0.6715575", "0.6660624", "0.66094464", "0.6609434", "0.66033906"...
0.8154762
0
Returns the cross product of v1 and v2
def WHx2(hQHm: Vector, jlSq: Vector) -> lNLu: if len(hQHm.coords) != 3 or len(jlSq.coords) != 3: raise ValueError('Vectors have to be 3 fucking D, nøøb') WKvO = hQHm.y * jlSq.z - hQHm.z * jlSq.y LVAh = hQHm.z * jlSq.x - hQHm.x * jlSq.z epBp = hQHm.x * jlSq.y - hQHm.y * jlSq.x return lNLu(WKv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wnaF(hQHm, jlSq):\n return _J6W.CG3dVector(hQHm[1] * jlSq[2] - jlSq[1] * hQHm[2], hQHm[2] * jlSq[0] - jlSq[2] * hQHm[0], hQHm[0] * jlSq[1] - jlSq[0] * hQHm[1])", "def WHx2(hQHm, jlSq):\n return oyIN.cross(hQHm, jlSq)", "def Fyqx(hQHm, jlSq):\n return hQHm[0] * jlSq[1] - hQHm[1] * jlSq[0]", "def ...
[ "0.8836206", "0.8598363", "0.8200351", "0.81112856", "0.793102", "0.78326195", "0.76785076", "0.767486", "0.75726616", "0.75629556", "0.7525718", "0.74057496", "0.73896706", "0.7378521", "0.73637885", "0.73448867", "0.7316983", "0.7315272", "0.7226312", "0.7180984", "0.717917...
0.7711393
6
Returns True if self and other have same dimensions
def Dk43(YKHO, Elif): if not isinstance(Elif, aLMY): raise ValueError('Can only compare two matrices') return Elif.m == YKHO.m and Elif.n == YKHO.n
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return isinstance(Elif, YKHO.__class__) and YKHO._input_dims == Elif._input_dims and (YKHO._output_dims == Elif._output_dims)", "def xa14(YKHO, Elif):\n if YKHO.get_dimensions() == Elif.get_dimensions():\n IzcV = oyIN.allclose(YKHO.lon_arr, Elif.lon_arr) and oyIN.allclose(YKH...
[ "0.80113983", "0.78637797", "0.7596701", "0.75813335", "0.7556219", "0.7554189", "0.7521945", "0.73847556", "0.7377276", "0.7280874", "0.7275362", "0.7254235", "0.7247695", "0.7175492", "0.71704185", "0.711962", "0.711626", "0.7103731", "0.7096644", "0.7059979", "0.704843", ...
0.78446364
2
The minimum possible distance from the target to a point in this ball
def Tm2h(YKHO, pan_): by6d = YKHO.pivot - pan_ return max(epAf.sqrt(oyIN.dot(by6d, by6d)) - YKHO.radius, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NcH7(YKHO):\n return abs(int(YKHO.position[0] - YKHO.target_position[0])) + abs(int(YKHO.position[1] - YKHO.target_position[1]))", "def _RrS(Emd4, Ruu7: Coordination, O4jl: Coordination) -> int:\n return abs(Ruu7.x - O4jl.x) + abs(Ruu7.y - O4jl.y)", "def DUYS(YKHO):\n return lNLu.distance(YKHO.pos...
[ "0.71056867", "0.69011074", "0.6862825", "0.6780019", "0.67667633", "0.676105", "0.6746076", "0.67248785", "0.67235637", "0.67166865", "0.67166865", "0.67166865", "0.67166865", "0.67166865", "0.67166865", "0.67166865", "0.6631932", "0.6581884", "0.6561773", "0.6548339", "0.65...
0.8214852
0
Converts 'pixel' values (015) into the 4BPP format. If its a 16x16 Tile, interleaves the 8x8 subtiles.
def tMMy(YKHO, nPrm): iGO9 = lndC(32 * 'c') b0Ug = iGO9.iter_unpack(nPrm) T6S7 = [CTtz._tile_to_bitplanes(b''.join(eL5z)) for eL5z in b0Ug] YKHO.data = b''.join(T6S7) if YKHO.dimensions == 16: YKHO.data = CTtz._deinterleave_subtiles(YKHO.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cUi0(YKHO):\n O2Zy, vvwy = YKHO.size()\n Aofo = RRxr((2 * O2Zy, 2 * vvwy))\n for WKvO in range(O2Zy):\n for LVAh in range(vvwy):\n e3Fk = YKHO.get(WKvO, LVAh)\n Aofo.set(2 * WKvO, 2 * LVAh, e3Fk)\n Aofo.set(2 * WKvO, 2 * LVAh + 1, not e3Fk)\n Aofo.set...
[ "0.57446426", "0.5660707", "0.5606068", "0.5488529", "0.5485934", "0.53451556", "0.52073056", "0.5155469", "0.5108598", "0.5093933", "0.50916094", "0.5070422", "0.504833", "0.50416523", "0.5036689", "0.5036689", "0.5035291", "0.5028214", "0.50253576", "0.50063944", "0.4990180...
0.48106438
43
A private method. Converts the 4 bytes of bitplanes 14 for a given row into a row of pixel values
def wvbI(WpXC): ZHfW = int(b'00000001') RAtX = [] for bGrB in range(0, 8): _9tk = [BWXx & ZHfW for BWXx in WpXC] WpXC = [BWXx >> 1 for BWXx in WpXC] NA9d = _9tk[3] << 3 | _9tk[2] << 2 | _9tk[1] << 1 | _9tk[0] RAtX.append(NA9d.to_bytes(1, byteorder='big')) RAtX.reverse() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HfpQ(YKHO, _G9Q, g5AB):\n NUEI = _G9Q * 8\n qaz9 = NUEI + 8\n xJw5 = g5AB * 16\n XVh3 = xJw5 + 16\n return [YKHO.pixel(fvDH, rdlD) for fvDH in range(xJw5, XVh3) for rdlD in range(NUEI, qaz9)]", "def Ik3a(nPrm):\n X4_W = CTtz._unpack_bitplanes(nPrm)\n lEHr = []\n for YRbF in range(0, 8...
[ "0.60835254", "0.60070217", "0.56323963", "0.5579506", "0.55026233", "0.5452631", "0.5439869", "0.54370487", "0.5407903", "0.5399096", "0.53655875", "0.53536403", "0.5319791", "0.5261793", "0.52583045", "0.5249799", "0.52224034", "0.52151835", "0.52092916", "0.5205361", "0.51...
0.7027028
0
Returns the slice of the x values in the borders of lower to upper
def OVow(YKHO) -> oyIN.array: LSh8, CN9P = YKHO.get_xrange_indices() return YKHO.x[LSh8, CN9P + 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OVow(YKHO):\n return (YKHO.xvec[0], YKHO.xvec[-1])", "def y2Af(YKHO):\n return (YKHO.tiles[0][0], YKHO.tiles[-1][-1])", "def pmnP(YKHO):\n XOP0 = oyIN.asarray([YKHO.coords[G1Hx][0] for G1Hx in range(YKHO.dim)])\n K3QL = oyIN.asarray([YKHO.coords[G1Hx][-1] for G1Hx in range(YKHO.dim)])\n retu...
[ "0.7116615", "0.6489076", "0.6488109", "0.6477216", "0.63534915", "0.6346397", "0.63440883", "0.6324725", "0.62734646", "0.62409675", "0.6197077", "0.61946166", "0.6194017", "0.6142385", "0.6110951", "0.60656", "0.6042238", "0.6031381", "0.602991", "0.6027184", "0.6023213", ...
0.6865429
1
Returns the index of the spectrum's x value closest to the given x_value
def CF_B(YKHO, Yqag: float) -> int: return int(oyIN.argmax(YKHO.x >= Yqag))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mp07(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def QmQF(qw7D: np.array, BWXx: float) -> int:\n return oyIN.abs(qw7D - BWXx).argmin()", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D - BWXx).argmin()\n return or8S", "def uiJA(qw7D, BWXx):\n or8S = oyIN.abs(qw7D...
[ "0.7193644", "0.7150365", "0.7055422", "0.70537055", "0.6955951", "0.6950862", "0.6950862", "0.681054", "0.6778951", "0.6697718", "0.6683862", "0.66723967", "0.66723967", "0.6669862", "0.6662467", "0.6594271", "0.6594126", "0.6536172", "0.651837", "0.64548606", "0.6416207", ...
0.7975915
0
Compute and return the maximum number of times that an outcome is repeated in a sequence.
def YrIy(Q6uT): OVtm = 0 Jm1s = [Q6uT.count(ZfUD) for ZfUD in Q6uT] try: OVtm = max(Jm1s) except ValueError: 'arg is an empty sequence' return OVtm
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GERS(exwG, qw7D):\n G_Si = [0] * exwG\n n6mp = 0\n for YRbF in range(len(qw7D)):\n if qw7D[YRbF] == exwG + 1:\n G_Si = [n6mp] * exwG\n else:\n G_Si[qw7D[YRbF] - 1] += 1\n if G_Si[qw7D[YRbF] - 1] > n6mp:\n n6mp = G_Si[qw7D[YRbF] - 1]\n re...
[ "0.66128737", "0.64712507", "0.6384586", "0.62839323", "0.62302214", "0.61802876", "0.61464226", "0.6130533", "0.61256", "0.6094303", "0.608199", "0.60044867", "0.6001028", "0.59532756", "0.5933321", "0.5933166", "0.592306", "0.5917714", "0.5910626", "0.59005713", "0.5859659"...
0.75281435
0
Relative Error. Calculating the relative error after approximating the derivative.
def crkg(BXW4, zXzD): return abs(zXzD - BXW4) / abs(zXzD)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rrz_(WKvO, LVAh):\n return oyIN.max(oyIN.abs(WKvO - LVAh) / oyIN.maximum(1e-08, oyIN.abs(WKvO) + oyIN.abs(LVAh)))", "def KjnH(YKHO):\n YKHO.network.index_nodes()\n YKHO._calculate_dist()\n bGrB, rrz_ = YKHO._relative_error()\n bGrB, CGeq = YKHO._absolute_error()\n return (CGeq, rrz_)", "d...
[ "0.7002748", "0.68029606", "0.6756413", "0.66861445", "0.6677277", "0.6546871", "0.6546871", "0.6507089", "0.6325637", "0.6307579", "0.62953246", "0.6278389", "0.62690276", "0.62503904", "0.6243922", "0.62411505", "0.6216003", "0.61763114", "0.6157595", "0.61513627", "0.61403...
0.79668355
0
Get current datetime, month and day.
def Ny2H(): DibD = JRYC.datetime.now() kDf1 = [DibD - JRYC.timedelta(days=1) + JRYC.timedelta(days=YRbF) for YRbF in range(8)] pVFb = [ZfUD.month for ZfUD in kDf1] NRuF = [ZfUD.day for ZfUD in kDf1] return (kDf1, pVFb, NRuF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKxx():\n vHj7 = qcWV.datetime.now()\n CjKC = vHj7.day\n x0eS = vHj7.month\n lO87 = vHj7.year\n _c1T = '{dd}-{mm}-{yyyy}'.format(dd=CjKC, mm=x0eS, yyyy=lO87)\n return _c1T", "def ASWS(YKHO):\n return (YKHO.curr_year, YKHO.curr_month, YKHO.curr_date)", "def m6Z7():\n return qcWV.date...
[ "0.7333077", "0.7051306", "0.7046178", "0.69151866", "0.6912624", "0.68534875", "0.6850725", "0.6817092", "0.67979425", "0.6781454", "0.67629653", "0.67429596", "0.67121583", "0.66709596", "0.66521484", "0.660681", "0.65697086", "0.6503899", "0.6492846", "0.64700073", "0.6442...
0.0
-1
Start the client in a separate thread (nonblocking). This only has an effect if ``callable`` was set to `True` when initializing the client.
def yKcO(YKHO): if YKHO._callable: YKHO._is_running = True YKHO._run_client()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SB6W(MCGS, *qIxc, **B2fa):\n a1PO = Esm4(target=QX6f, args=(KcEq(), bIwZ(), MCGS) + qIxc, kwargs=B2fa)\n a1PO.start()\n return a1PO", "def IWk7(YKHO, RC6h, RyWs, *qIxc, **B2fa):\n LlGB = (RC6h, RyWs, None, qIxc, B2fa)\n a1PO = T6FA.Thread(target=YKHO._thread_caller, group=None, args=LlGB)\n ...
[ "0.6141838", "0.6057861", "0.59711367", "0.58784795", "0.57511634", "0.56575465", "0.5640221", "0.5562342", "0.5533273", "0.54995334", "0.54700834", "0.5466534", "0.54614997", "0.54494286", "0.5409379", "0.54008806", "0.5396998", "0.5360414", "0.53350174", "0.53307813", "0.53...
0.7465892
0
Whether the client is currently running.
def WTIh(YKHO): return YKHO._is_running
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO in d8qC", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO.running", "def WTIh(YKHO):\n return YKHO._running", "def WTIh(YKHO):\n return YKHO._run...
[ "0.8290451", "0.827312", "0.8218995", "0.8218995", "0.8218995", "0.81724805", "0.81724805", "0.81672233", "0.8130093", "0.81268543", "0.8097921", "0.8071789", "0.80423975", "0.8023615", "0.8013505", "0.80053294", "0.79968977", "0.79892176", "0.7978779", "0.7950599", "0.792622...
0.8148527
9
Remove all logger bindings.
def Y7Bk(YKHO) -> None: YKHO.loggers.clear() YKHO.topics.clear() YKHO.bindings = jRYh(0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHKm(YKHO) -> 'Logger':\n for bo34, ABDL in YKHO.get_next_logger():\n bo34.handlers.clear()\n delattr(YKHO, f'{ABDL}_logger')\n setattr(YKHO, f'{ABDL}_logger', None)", "def rCuk(YKHO):\n oTZi = YKHO.logger.handlers[:]\n for DCgT in oTZi:\n DCgT.close()\n YKHO.logge...
[ "0.7735314", "0.7238356", "0.7187282", "0.70959723", "0.6855077", "0.68328255", "0.68328255", "0.6795753", "0.6746925", "0.6710175", "0.66560286", "0.6642112", "0.6486889", "0.6465616", "0.63839597", "0.63325053", "0.6316204", "0.6294162", "0.6269843", "0.6223002", "0.6193672...
0.70741093
4
Populates the SQLAlchemy model from a python dictionary of the database structure.
def ZQKc(YKHO, g8x2): cuiw = e5kH.Session() try: for nygT in g8x2['resources']: RKD7.debug('Importing: {0!r}'.format(nygT)) DVCd = [] for Osv6 in nygT['groups']: uOe2 = moMn.get_by_name(Osv6, assert_exists=False) if not uOe2: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, cuiw: 'FigoSession', Mjw9: dict) -> 'ModelBase':\n return Emd4(cuiw, **Mjw9)", "def jG8h(YKHO, cmPJ):\n for iVRZ in YKHO.__table__.columns.keys():\n BWXx = cmPJ.get(iVRZ, None)\n if BWXx:\n setattr(YKHO, iVRZ, BWXx)", "def jG8h(Emd4, ZjMU):\n try:\n guY0 ...
[ "0.66094905", "0.6561508", "0.64928675", "0.63194597", "0.61999404", "0.6137899", "0.61052674", "0.6092039", "0.6091429", "0.60472214", "0.5995456", "0.59925824", "0.59787244", "0.5974147", "0.5957498", "0.59562784", "0.59562784", "0.59562784", "0.59562784", "0.59562784", "0....
0.0
-1
Returns the ground distance in metres between two LocationGlobal objects. This method is an approximation, and will not be accurate over large distances and close to the
def vjqF(O3Ka, qqsd): n_9K = qqsd.lat - O3Ka.lat fOkK = qqsd.lon - O3Ka.lon fOkK *= epAf.cos(qqsd.lat * epAf.pi / 180.0) return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def vjqF(O3Ka...
[ "0.66186285", "0.66186285", "0.66186285", "0.66186285", "0.66186285", "0.65900946", "0.6587256", "0.6519813", "0.6266732", "0.62152517", "0.61653936", "0.6108386", "0.6068071", "0.6046107", "0.6002903", "0.594496", "0.5856215", "0.5854083", "0.57995534", "0.5740883", "0.57030...
0.6561412
7
Grassman distance between subspaces spanned by Y1 and Y2.
def Gu_p(OJuM, Fh7c): _kx1, bGrB = oLG2.linalg.qr(OJuM) dQGw, bGrB = oLG2.linalg.qr(Fh7c) bGrB, WTkW, bGrB = oLG2.linalg.svd(_kx1.T @ dQGw) WTkW = oLG2.round(WTkW, decimals=6) return oLG2.linalg.norm(oLG2.arccos(WTkW))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ayfi(YKHO, bQpE, V6Wq):\n return oyIN.sqrt(oyIN.sum((oyIN.array(bQpE) - oyIN.array(V6Wq)) ** 2))", "def Ur_i(X3qZ, ZYCo):\n return Fw8z.gmXyDistance(X3qZ, ZYCo)", "def Ayfi(YKHO, ajwV, skBL):\n return epAf.sqrt((ajwV - YKHO.x) ** 2 + (skBL - YKHO.y) ** 2)", "def AUp_(XdvW: Asteroid, GhiN: Astero...
[ "0.63750035", "0.6364339", "0.63368714", "0.63318604", "0.63260245", "0.6126886", "0.6106294", "0.6103109", "0.60844976", "0.6077597", "0.6038072", "0.6026896", "0.6014907", "0.60019726", "0.59889084", "0.59801686", "0.5971128", "0.59675956", "0.5966837", "0.5964724", "0.5956...
0.7337582
0
Allow relations if a model in the auth is involved.
def j7eD(YKHO, BzZr, RL4V, **MDDt): if BzZr._meta.app_label in YKHO.route_app_labels or RL4V._meta.app_label in YKHO.route_app_labels: return True return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j7eD(YKHO, BzZr, RL4V, **MDDt):\n return True", "def j7eD(YKHO, BzZr, RL4V, **MDDt):\n if YKHO.isAdminApp(BzZr) or YKHO.isAdminApp(RL4V):\n return True\n return None", "def j7eD(YKHO, BzZr, RL4V, **MDDt):\n Aofo = BzZr._meta.model_name in ldV1.defaultModels and RL4V._meta.model_name in l...
[ "0.7274707", "0.72074753", "0.70620376", "0.70593643", "0.70005584", "0.6937552", "0.6831612", "0.67932534", "0.6692975", "0.66282403", "0.65909636", "0.6573764", "0.6546737", "0.6481673", "0.63839835", "0.6359388", "0.6336396", "0.63229865", "0.6288271", "0.62351304", "0.620...
0.6619627
10
Shoot each triplet of bullets
def Deyi(YKHO): YylR = YKHO.angle for YRbF in range(3): YBnT = MAXC(YKHO.main_game, shooter=YKHO.shooter) YBnT.vector[0] = 0 YBnT.vector[1] = 1 YBnT.normalized_vector = YBnT.vector.normalize() YBnT.normalized_vector = YBnT.normalized_vector.rotate(YylR) YylR -= YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hiPt(YKHO):\n GBVa(YKHO.birb.rect.x + 75, YKHO.birb.rect.y + 35, YKHO)", "def wCPi(Q4vv, WFC2, xFSv):\n EcVT, fuBA, o3wa, OPAq, GyEv, SUbQ = (0, 1, 2, 3, 4, 5)\n iZGK, COUb, PN7J = (4, 5, 6)\n iMYM, P7t_ = (4, 5)\n for mcl6 in Q4vv:\n if mcl6[PN7J] == 1 and mcl6[iZGK] == 1:\n ...
[ "0.79569995", "0.7628294", "0.7338545", "0.7304998", "0.7265435", "0.71602637", "0.71326596", "0.705564", "0.69539404", "0.69408464", "0.69084615", "0.68753916", "0.68536586", "0.67735136", "0.6758498", "0.6705009", "0.66809344", "0.66642654", "0.65737426", "0.65737426", "0.6...
0.7984867
0
Mocks the consent.get_many function
def dSC5(Ehsq): TMAJ = FM6F() Ehsq.setattr('datahub.company.consent.get_many', TMAJ) yield TMAJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SICi(YKHO, sisH, IriE, mMbP):\n D9Ga = sisH.post(f'{gCuF.CONSENT_SERVICE_BASE_URL}{e1Ki.CONSENT_SERVICE_PERSON_PATH_LOOKUP}', json={'results': [{'email': D3lj, 'consents': [jCAc] if IriE else []} for D3lj in mMbP]}, status_code=jGRS.HTTP_200_OK)\n _hkX = e1Ki.get_many(mMbP)\n assert _hkX == {D3lj: Iri...
[ "0.70563656", "0.62410563", "0.6048828", "0.5961752", "0.5884879", "0.5862552", "0.58443093", "0.58289975", "0.5828924", "0.5818068", "0.5818068", "0.5791438", "0.578489", "0.5782873", "0.5721536", "0.5701437", "0.56985384", "0.5693188", "0.5687945", "0.5663806", "0.56526726"...
0.8288459
0
Get all the id of courses which user is student
def m_7d(Emd4, CBIr): bW1T = uagI.objects.filter(user=CBIr) Ybnl = bW1T.filter(type=3) CGJY = [] for mS46 in Ybnl: if mS46.course.pk not in CGJY: CGJY.append(mS46.course.pk) return CGJY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VKP2(cuiw, bXx8):\n SGPK = {'filter[staff?]': False}\n DW23 = kR13(cuiw, f'/campus/{bXx8}/users', 100, params=SGPK)\n A07C = []\n for CBIr in DW23:\n if not CBIr['login'].startswith('3b3-'):\n A07C.append(CBIr['id'])\n return A07C", "def BGAP(YKHO):\n return YKHO.q(css='ar...
[ "0.7203225", "0.66299814", "0.6559162", "0.6548188", "0.64768285", "0.64467734", "0.643163", "0.636934", "0.63494414", "0.62324303", "0.61804605", "0.6110142", "0.61097056", "0.6091193", "0.6053416", "0.60518885", "0.6037809", "0.60351974", "0.60121375", "0.59662294", "0.5923...
0.7367765
0
Check user is teacher of course
def hl0A(Emd4, uJjO, S7Jr): return Emd4.get_highest_course_privilege(uJjO, S7Jr) < 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M7MI(PObu=None):\n CBIr = TKWP(uid=PObu)\n return CBIr.get('teacher', False)", "def Ga_F(YKHO, wEKp):\n if not YKHO.is_course_exists():\n print('Course with name - {} does not exist'.format(YKHO._course_name))\n return\n GQfX = YKHO.get_course()\n if wEKp == GQfX._teacher:\n ...
[ "0.79875153", "0.70364565", "0.67953515", "0.65655226", "0.65536416", "0.646244", "0.6434678", "0.6421935", "0.6334794", "0.6289663", "0.6239344", "0.61987686", "0.6141132", "0.6140396", "0.6043962", "0.6042014", "0.60153824", "0.59822667", "0.59713054", "0.5961152", "0.59465...
0.80501544
0
If len(xs) is odd, the median is the middle element
def tchW(fUYa: List[float]) -> float: return sorted(fUYa)[len(fUYa) // 2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BjRM(xYvp):\n UHFx = len(xYvp)\n x1fj = UHFx // 2\n if UHFx % 2:\n return xYvp[x1fj]\n else:\n return (xYvp[x1fj - 1] + xYvp[x1fj]) / 2", "def BjRM(WKvO):\n u54L = len(WKvO)\n if u54L == 0:\n return None\n hgjH = u54L // 2\n WKvO.sort()\n if u54L % 2 == 0:\n ...
[ "0.81119084", "0.79590565", "0.7945483", "0.78034836", "0.7730942", "0.77275085", "0.77168965", "0.77095324", "0.7686096", "0.76572627", "0.7650494", "0.76356673", "0.7597743", "0.75814843", "0.7570954", "0.75554997", "0.7508157", "0.7488256", "0.74513394", "0.7423707", "0.74...
0.79402
3
If len(xs) is even, it's the average of the middle two elements
def cjmi(fUYa: List[float]) -> float: clJz = sorted(fUYa) Ch66 = len(fUYa) // 2 return (clJz[Ch66 - 1] + clJz[Ch66]) / 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqgr(ezWE):\n return sum(ezWE) / float(len(ezWE))", "def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)", "def JBMS(fUYa):\n VQvZ = 0\n for JxiZ in fUYa:\n mLGw = float(JxiZ)\n print(JxiZ)\n VQvZ = VQvZ + mLGw\n S8vG = VQvZ / len(fUYa)\n return S8vG", "def qqgr(vC9B):\n...
[ "0.7064355", "0.7018793", "0.696159", "0.69408447", "0.6870554", "0.6860346", "0.6825491", "0.6806577", "0.6790866", "0.67725855", "0.67409027", "0.67254007", "0.6693766", "0.6644633", "0.66137445", "0.6602777", "0.65871716", "0.6575268", "0.6569375", "0.6558978", "0.6535161"...
0.7045297
1