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
Test case for create_pipeline_version_v1
def pCwD(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def td7e(YKHO):\n pass", "def cd9C(YKHO):\n pass", "def CkbS(YKHO):\n pass", "def qr0g(YKHO):\n pass", "def F_xl(YKHO):\n pass", "def lXmv(jBkE, jtRV, SGPW, GUy1, **B2fa):\n B5PH = _Kh8(error=True)\n _WvM = xRMc(SGPW, required_fields=[])\n x0hE = OOVJ()\n assert 'pipeline_name'...
[ "0.84845936", "0.8397644", "0.7707482", "0.769224", "0.769173", "0.747545", "0.74404025", "0.7413884", "0.70145047", "0.66817343", "0.66580397", "0.663461", "0.66173595", "0.6603932", "0.65299624", "0.6457681", "0.6369801", "0.63032955", "0.6264667", "0.6259787", "0.6251608",...
0.94878924
0
Test case for delete_pipeline_version_v1
def dvR_(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D6i5(YKHO):\n pass", "def NIO8(YKHO):\n pass", "def xW2W(YKHO):\n pass", "def pCwD(YKHO):\n pass", "def So6i(jBkE, jtRV, LEpX, LpOW):\n B5PH = _Kh8(error=True)\n if LEpX or k8wH.confirm(f'Are you sure you want to delete pipeline version <{jtRV}> of pipeline <{jBkE}> in project <{B5PH}...
[ "0.87150896", "0.80247873", "0.77601695", "0.7486995", "0.74748033", "0.7170375", "0.71260136", "0.6979392", "0.68020684", "0.67121506", "0.6701648", "0.66441065", "0.6439344", "0.64366394", "0.6435749", "0.6434161", "0.6382124", "0.6354652", "0.6311646", "0.6298544", "0.6268...
0.9555693
0
Test case for update_pipeline_default_version_v1
def F_xl(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cd9C(YKHO):\n pass", "def pCwD(YKHO):\n pass", "def qr0g(YKHO):\n pass", "def CkbS(YKHO):\n pass", "def dvR_(YKHO):\n pass", "def QV0q(YKHO, AZgw):\n AZgw.patch.object(hhI1, '__init__', return_value=None)\n AZgw.patch.object(hhI1, 'is_key_in_schema_root', return_value=True)\n ...
[ "0.79094774", "0.7818774", "0.6951612", "0.6902811", "0.6672786", "0.6542483", "0.6496955", "0.64050776", "0.6317529", "0.6309014", "0.6309014", "0.6223904", "0.61688554", "0.6161316", "0.61504257", "0.6149573", "0.61486405", "0.61331505", "0.6126971", "0.6126829", "0.6115254...
0.95300436
0
Get the Azure credentials for the storage account
def KgFS(): Vt89 = G4JS.post(url=X8Rg.sas_url, json={'id': X8Rg.adatgyujtes_id}).json() if 'error' in Vt89: raise Exception('Nem tudtuk hitelesíteni az eszközt: ' + Vt89['error']) return Vt89
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNQQ(YKHO) -> 'AzureCredentials':\n return Kuca(provider=YKHO)", "def AqpD(YKHO) -> qe4Y.Input['TransferJobTransferSpecAzureBlobStorageDataSourceAzureCredentialsArgs']:\n return qe4Y.get(YKHO, 'azure_credentials')", "def TNQQ():\n JuHa = Hy7s.environ['AZURE_SUBSCRIPTION_ID']\n Vt89 = rLll(clien...
[ "0.77574253", "0.723293", "0.70977426", "0.70844376", "0.6905088", "0.65471447", "0.6474415", "0.6443761", "0.6422952", "0.638757", "0.6319472", "0.62993926", "0.6299043", "0.6284346", "0.6273064", "0.62573546", "0.6249119", "0.624477", "0.6233358", "0.62145233", "0.6212434",...
0.743016
1
E transfer function for large scales at z = 0
def PzCZ(G1Hx, aPd6, BhWM, h_wV, yzQ0, lwoF, zv3f, MKlR, jmzt): COmh = oyIN.zeros((len(G1Hx), len(aPd6)), dtype=oyIN.complex64) xNQ_ = Kt_s(G1Hx, BhWM, h_wV, yzQ0, lwoF, zv3f, MKlR) qaCw = oyIN.linspace(0.0, jOav(VZUm(BhWM, MKlR, jmzt)), 40) C6KE = K_7L(qaCw) LwA0 = kDNl(C6KE) qFS9 = rv0u(C6KE, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ut5U(YKHO, epBp):\n return (YKHO.Omega_0 * (1.0 + epBp) ** 3 + 1.0 - YKHO.Omega_0) ** 0.5", "def IfFK(JfyU, epBp, WKvO, aUJK, Jw7X, KMvS):\n EcJ5 = lambda epBp: JfyU(epBp, WKvO, KMvS)\n if abs(epBp) < 1e-14:\n if abs(WKvO) < 1e-14:\n return 0\n return zQMB.quad(EcJ5, epBp - aUJK...
[ "0.6667619", "0.6588731", "0.6342221", "0.62400985", "0.6222188", "0.6189394", "0.6113226", "0.61047053", "0.60585594", "0.60309523", "0.60125804", "0.5925889", "0.5925889", "0.5900482", "0.58981985", "0.5897112", "0.5882401", "0.5880766", "0.5872528", "0.58715844", "0.586801...
0.5703691
55
Aggregates a commonsense reasons for a particular concept and the relations of interest
def Qemi(bKCn, jpc5): Zkbu = [] for koMu in jpc5: gwb5 = x0SS(bKCn) G3Qi = SDhq(gwb5, koMu) Zkbu += G3Qi return Zkbu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CMho():\n QhYC = 'Common Cold'\n Cw3b = 'Influenza'\n FBnN = 'Colitis'\n kGZI = QhYC + ', ' + Cw3b + ', ' + FBnN\n return kGZI", "def BinR(YKHO):\n V29g = OZpC(YKHO, 'portal_vocabularies')\n kGZI = [('open', 'open')]\n UJiA = YKHO.context.Title().strip()\n qzKC = ('conclusion_reaso...
[ "0.6135583", "0.59556276", "0.59459186", "0.58794534", "0.5829412", "0.5720806", "0.5638363", "0.56330556", "0.55798304", "0.5562603", "0.551835", "0.5500546", "0.5499362", "0.5491793", "0.5410866", "0.5388885", "0.53615195", "0.5355418", "0.5345344", "0.53328085", "0.533025"...
0.5237823
26
Remove dashes into a phrase
def C1Bp(GIN8): if '-' in GIN8: A0cm = GIN8.split('-') return A0cm else: return GIN8.lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGB_(l5Ny):\n l5Ny = l5Ny.replace('--', ' ')\n return l5Ny", "def ZT7t(mWFP):\n return mWFP.replace('-', '')", "def NmzD(GIN8):\n return GIN8.replace('_', '-')", "def Huvg(l5Ny):\n U5bT = [ZbWC.sub('[-–—¬]\\\\s+', '', yAmx) for yAmx in l5Ny]\n return U5bT", "def biH0(YKHO, l5Ny):\n ...
[ "0.7935771", "0.7497126", "0.7419719", "0.7386935", "0.72449994", "0.7233761", "0.71779436", "0.70775414", "0.70650893", "0.7034763", "0.6994042", "0.69682443", "0.6950524", "0.6946095", "0.6942942", "0.6934441", "0.69018996", "0.6831322", "0.6777343", "0.6760068", "0.6728555...
0.6744518
20
Parse sql statement skipping whitespaces.
def vCqs(KCHu): U5Jc = g4Ww.parse(KCHu) s2mk = U5Jc[0].tokens TKMu = [a1PO for a1PO in s2mk if a1PO.ttype != g4Ww.tokens.Token.Text.Whitespace] return TKMu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(YKHO, Pe9W):\n YKHO.sql = Pe9W.strip()\n YKHO.comment = ''\n if YKHO.sql[0] == '#' or YKHO.sql[:2] == '--':\n if not YKHO.sql.count('\\n'):\n YKHO.comment = YKHO.sql\n YKHO._values = {'commment': YKHO.comment}\n YKHO.matched = True\n return ''\n ...
[ "0.6900165", "0.65866727", "0.65039206", "0.64840394", "0.6461461", "0.64587593", "0.63378274", "0.6330404", "0.63241845", "0.6284468", "0.62816143", "0.62771404", "0.62019396", "0.610467", "0.6090992", "0.60857874", "0.6062316", "0.60599744", "0.6026594", "0.5972105", "0.594...
0.6563643
2
Merger of the login_required and roken_required decorators It will attempt to auth tokens if it finds one, otherwise, it will fall back to a normal login.
def vVBr(LpBI): @zaGL(LpBI) def hJoh(QePW, *qIxc, **B2fa): CBIr = None eOtH = None EuDU = QePW.META.get('HTTP_AUTHORIZATION') CBIr = QePW.POST.get('user', QePW.GET.get('user')) eOtH = QePW.POST.get('token', QePW.GET.get('token')) if not (CBIr and eOtH) and EuDU: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uKii(eHNT):\n\n @zaGL(eHNT)\n def XIpm(*qIxc, **B2fa):\n if Z5BK in cuiw:\n return eHNT(*qIxc, **B2fa)\n return MC83(next=QePW.url)\n return XIpm", "def tPR3(JfyU):\n\n @xBlr.wraps(JfyU)\n def _gRY(YKHO, *qIxc, **B2fa):\n \"\"\"Authenticate if not authenticated....
[ "0.7098051", "0.69976145", "0.6982432", "0.69059396", "0.68162847", "0.6775864", "0.67608565", "0.67563105", "0.6711049", "0.66958976", "0.6689274", "0.6661825", "0.66607034", "0.66524994", "0.6649714", "0.6649548", "0.6647323", "0.6631537", "0.65881455", "0.65881187", "0.657...
0.68443114
4
Remove and return the top element of the stack. If stack is |xyz> then z is removed.
def BEuN(YKHO): if YKHO.length() == 0: return None return YKHO._list.pop()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_", "def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS", "def BEuN():\n global my_stack\n if LNM1 == ...
[ "0.8040273", "0.79960114", "0.77251893", "0.7646734", "0.7581643", "0.7525832", "0.7514077", "0.74841523", "0.7424759", "0.7339288", "0.7328265", "0.7328265", "0.7328265", "0.7328265", "0.7328265", "0.7328265", "0.7328265", "0.7319268", "0.73158014", "0.7306864", "0.72926635"...
0.0
-1
Returns the ploar coordinates of (x,y) in radians relative to a specified origin
def gHFT(WKvO, LVAh, sVZ5=0, vOVT=0): Mkmy, q7In = zKTJ(WKvO, LVAh, sVZ5, vOVT) return (q7In, Mkmy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UBhI(YKHO):\n global BASE_X\n global BASE_Y\n ycBG = YKHO.gps_to_xy(_Fei.ORIGIN_LATITUDE, _Fei.ORIGIN_LONGITUDE)\n QFY8 = ycBG[0]\n GIS_ = ycBG[1]\n return (QFY8, GIS_)", "def zKTJ(WKvO, LVAh, sVZ5=0, vOVT=0):\n WKvO = WKvO - sVZ5\n LVAh = LVAh - vOVT\n if WKvO == 0:\n if LV...
[ "0.7219817", "0.71696126", "0.70862234", "0.7078141", "0.6959691", "0.69494784", "0.6904583", "0.6860666", "0.67654866", "0.67221683", "0.67184305", "0.6706457", "0.6676823", "0.66718495", "0.66670024", "0.66470957", "0.6642447", "0.662829", "0.66276515", "0.6609926", "0.6606...
0.6932166
6
Test whether 'urlstring' is a URL format that we recognise. If so, return a parameter (e.g. an item ID, or a file path) that captures the relevant unique information in this URL. If not, return None.
def vc2f(Emd4, nyd_, bD7m): for QOe9 in Emd4.tests: r8hN = QOe9(nyd_, bD7m) if r8hN != None: return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HnqJ(pPAA):\n kUBT = LhyL.match(pPAA) or o6PK.match(pPAA)\n if kUBT:\n return (HRfc.CloudUrl(HRfc.ProviderPrefix.GCS, kUBT.group('bucket_name')), kUBT.group('notification_id'))\n return (None, None)", "def kUBT(Emd4, nyd_, bD7m):\n xqoZ = Emd4.extract_param(nyd_, bD7m)\n if xqoZ != None...
[ "0.6562049", "0.64238673", "0.6282883", "0.620004", "0.61950606", "0.6175629", "0.6175629", "0.614539", "0.6044621", "0.5826916", "0.5816177", "0.57928604", "0.579244", "0.57917476", "0.5764419", "0.5760799", "0.5760101", "0.575794", "0.57160944", "0.57111245", "0.5687134", ...
0.6405449
2
Compute $\frac{\partial {\cal L}}{\partial y_bi}=\frac{\partial {\cal L}}{\partial d_i} \frac{\partial d_i} {\partial y_bi}$. $\frac{\partial {\cal L}}{\partial d_i}=\frac{2}{n}d_i' \left(d_i \frac{\lambda}{n}\sum_j d_j\right).
def ZD5u(YKHO, tlxW, Rp3f, es2x): with euzn.caffe_cuda_context(): nvEb = es2x[0].data_as_pycuda_gpuarray() UXqs = es2x[1].data_as_pycuda_gpuarray() ZHfW = es2x[2].data_as_pycuda_gpuarray() for YRbF in Ni9Y(len(es2x) - 1): if Rp3f[YRbF]: yk4i = es2x[YRbF].d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXWr(kidU: float, me_t: float, szVP: float, ZZRR: float, SPfc: float, r8hN: NDArray) -> float:\n ZZRR, me_t = sorted([me_t, ZZRR])\n szVP, kidU = sorted([kidU, szVP])\n if not kidU - szVP > me_t - ZZRR:\n SPfc = 1 / SPfc\n alvY = 2 * oyIN.pi * SPfc * (1 / 3.0 - me_t / SPfc + (me_t ** 2 + ZZR...
[ "0.59350926", "0.5906458", "0.58615404", "0.58396137", "0.58396137", "0.5836416", "0.58344644", "0.58027995", "0.57827", "0.5732895", "0.57234573", "0.5708108", "0.5701803", "0.5700556", "0.5684058", "0.56132084", "0.5606827", "0.55023414", "0.54995495", "0.54732823", "0.5468...
0.0
-1
Tests that a suite can produce JSON output to stdout
def rV9U(YKHO): JBAi = HwRy.stdout try: XQGT = xDSY.StringIO() HwRy.stdout = XQGT en4D, UAju = S3Hz.run_checker(ds_loc=Un5R('conv_bad'), verbose=0, criteria='strict', checker_names=['acdd', 'cf'], output_filename='-', output_format='json') Mkmy = qQXR.loads(XQGT.getvalue().strip(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n super(_XLY, YKHO).setUp()\n YKHO.json = oDPe(HwRy.stdout)", "def Z5gg(YKHO, YPTS):\n with Po4F.object(YKHO.example_feed, 'to_json', True):\n print(str(YKHO.example_feed))\n with open(YKHO.data_folder + 'result_json_5.json', 'r') as nUeQ:\n zgjV = nUeQ.read()\n YKHO....
[ "0.7526153", "0.71902084", "0.70666635", "0.6869542", "0.68640655", "0.6782754", "0.6737025", "0.67069685", "0.661127", "0.64570415", "0.64566416", "0.64235264", "0.6389856", "0.63531125", "0.6249611", "0.62376523", "0.62336785", "0.6226842", "0.62163603", "0.62133205", "0.62...
0.70819175
2
Tests that a suite can produce JSON output to stdout
def Wnlg(YKHO): JBAi = HwRy.stdout try: XQGT = xDSY.StringIO() HwRy.stdout = XQGT en4D, UAju = S3Hz.run_checker(ds_loc=Un5R('conv_bad'), verbose=0, criteria='strict', checker_names=['cf'], output_filename='-', output_format='json') Mkmy = qQXR.loads(XQGT.getvalue().strip()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n super(_XLY, YKHO).setUp()\n YKHO.json = oDPe(HwRy.stdout)", "def Z5gg(YKHO, YPTS):\n with Po4F.object(YKHO.example_feed, 'to_json', True):\n print(str(YKHO.example_feed))\n with open(YKHO.data_folder + 'result_json_5.json', 'r') as nUeQ:\n zgjV = nUeQ.read()\n YKHO....
[ "0.7525565", "0.71898985", "0.7081838", "0.68690884", "0.686423", "0.6782511", "0.6736093", "0.6706239", "0.66104716", "0.6456589", "0.64556", "0.6421517", "0.63884705", "0.635358", "0.6248607", "0.6237735", "0.6234144", "0.622591", "0.62171245", "0.62132293", "0.62132293", ...
0.7066168
3
Return current content of the tree.
def zM6d(YKHO): return YKHO.py_tree.get_code()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGN5(YKHO):\n return YKHO._node", "def yLtf(YKHO):\n return YKHO.root", "def BuGO(YKHO, wvEv):\n return wvEv.markup[YKHO.open_pos:YKHO.close_pos]", "def kGys(YKHO):\n jvSB = YKHO.data\n YKHO.data = list()\n for Q6kx in jvSB:\n if Q6kx:\n YKHO.data.extend(Q6kx.child)\n ...
[ "0.7373809", "0.69804466", "0.6822142", "0.6797815", "0.67697895", "0.6752919", "0.67499435", "0.6729072", "0.67168", "0.6675352", "0.6675352", "0.667363", "0.6648144", "0.6638368", "0.66188395", "0.66181254", "0.66054714", "0.6584923", "0.6584923", "0.6584923", "0.6575961", ...
0.0
-1
GIVEN WHEN health check endpoint is called with GET method THEN response with status 200 and body OK is returned
def Ze0G(x0hE): geh0 = x0hE.get('/health-check/') assert geh0.status_code == 200 assert geh0.data.decode() == 'OK'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RJjp(YKHO):\n MOPg = {'Accept': 'application/json'}\n geh0 = YKHO.client.open('/v1/healthcheck', method='GET', headers=MOPg)\n YKHO.assert200(geh0, 'Response body is : ' + geh0.data.decode('utf-8'))", "def X834(P4t4):\n geh0 = P4t4.get('/api/v1/health/')\n assert geh0.status_code == 200\n a...
[ "0.8270863", "0.81099814", "0.7940983", "0.79098403", "0.77998775", "0.77998775", "0.7666639", "0.76108015", "0.7574633", "0.756902", "0.756688", "0.7544989", "0.7488063", "0.74819005", "0.74299675", "0.7416209", "0.74095994", "0.7382221", "0.7367071", "0.7354617", "0.7354469...
0.7446993
14
Plots a 5x5 grid of sample images.
def QrGt(WKvO, LVAh): fvDH = 4 rdlD = 4 LZpg = QrM1.figure(figsize=(10, 10)) for YRbF in range(1, fvDH * rdlD + 1): HTSy = oyIN.random.randint(10) VXjJ = WKvO[HTSy] UXqs = LVAh[HTSy] LZpg.add_subplot(rdlD, fvDH, YRbF) QrM1.imshow(VXjJ) QrM1.title(UXqs) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kj9G(gGnb):\n LZpg = QrM1.figure(figsize=(8, 8))\n i912 = Klo7.GridSpec(10, 1)\n i912.update(wspace=0.05, hspace=0.05)\n for YRbF, mvm2 in enumerate(gGnb):\n aNZO = QrM1.subplot(i912[YRbF])\n QrM1.axis('off')\n aNZO.set_xticklabels([])\n aNZO.set_yticklabels([])\n ...
[ "0.7660434", "0.7593215", "0.746012", "0.74172634", "0.73297036", "0.729232", "0.7225232", "0.7174647", "0.71691173", "0.7113331", "0.70871776", "0.7086384", "0.7080832", "0.7078531", "0.7078531", "0.7078531", "0.7078531", "0.70687217", "0.7037961", "0.7036811", "0.7034662", ...
0.7355976
4
Compute the cumulative confusion matrix from multiruns
def QjLG(PdEg, bEXe): assert len(PdEg) == len(bEXe) YsYU = oyIN.zeros((PdEg.shape[1], PdEg.shape[1])) for YRbF in range(len(PdEg)): MKlR, LVAh = (PdEg[YRbF], bEXe[YRbF]) for r845 in range(len(MKlR)): YsYU[LVAh, r845] += MKlR[r845] return YsYU.astype(int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YsYU(YKHO):\n pass", "def YsYU(YKHO):\n Y8eF = oyIN.array(YKHO.__y_true)\n aMgO = oyIN.array(YKHO.__y_pred)\n for YRbF in range(3):\n for r845 in range(3):\n YKHO.__cnf_matrix[YRbF][r845] = oyIN.where(aMgO[oyIN.where(Y8eF == YRbF)] == r845)[0].shape[0]\n return YKHO.__cnf_mat...
[ "0.6543009", "0.6537253", "0.6534176", "0.64730364", "0.64360833", "0.64240247", "0.6396993", "0.6375755", "0.6369706", "0.63582873", "0.6310552", "0.63064575", "0.62593085", "0.623994", "0.62332577", "0.62035286", "0.6196322", "0.6193615", "0.6193507", "0.6191924", "0.618239...
0.67003554
0
Map the probabilities in output vectors back to the original categories. The probability vectors are computed from a model that was trained with relabeled samples and the correspondence between class indices are specified in a list
def EtAJ(BFeB, J8oL, jTqs, ZMlF=0.0): ioJT = oyIN.zeros((len(BFeB), jTqs)) for YRbF in range(len(BFeB)): JxU2 = BFeB[YRbF, ...] for r845 in range(len(JxU2)): if JxU2[r845] >= ZMlF: ioJT[YRbF, J8oL[r845 + jTqs]] = JxU2[r845] return ioJT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iCc5(Z6Pb, RE09, _mSQ):\n N6Z1 = [[] for jzdc in range(len(RE09))]\n for hKn5 in range(len(RE09)):\n fajT = _mSQ[hKn5]\n for vmaE in RE09[hKn5]:\n GLKK = oyIN.array(Z6Pb[vmaE])[:-1].dot(oyIN.array(fajT))\n N6Z1[hKn5].append(GLKK)\n return N6Z1", "def ZFtT(YKHO, nP...
[ "0.63837737", "0.616871", "0.61238706", "0.5971897", "0.59285647", "0.5896866", "0.58933055", "0.58792907", "0.5798096", "0.57541615", "0.57488835", "0.5746474", "0.5741684", "0.5735938", "0.57346106", "0.5705847", "0.5704473", "0.5683765", "0.5681514", "0.5678186", "0.567037...
0.60325575
3
Compute softmax values for each sets of scores in x.
def h0uz(WKvO, jzdc=1): return XTiz.exp(jzdc * WKvO) / XTiz.sum(XTiz.exp(jzdc * WKvO), axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oSvh(WKvO):\n S2MS = []\n if oyIN.array(WKvO).ndim == 1:\n hrCc = oyIN.exp(WKvO)\n RmXN = oyIN.sum(hrCc)\n xzMv = hrCc / RmXN\n dzye = xzMv\n else:\n dzye = oyIN.exp(cCrA) / oyIN.sum(oyIN.exp(cCrA), axis=0)\n return dzye", "def N93T(WKvO):\n j1LR = oyIN.exp(o...
[ "0.80119765", "0.7762025", "0.7762025", "0.7686785", "0.7671754", "0.76615846", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76581645", "0.76407975", "0.7627673", "0.7551796", "0.75327057", "0.74580646", "0.7325217", "0.7317911", "0.7...
0.0
-1
r"""Relative expiry time, in seconds, for expiring positive responses with response codes between 200 and 399. Cannot be used in combination with other Expiry attributes. Similar to relExpiry but has lower precedence.Maximum length = 31536000.
def cQow(YKHO): try: return YKHO._weakposrelexpiry except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PDEi(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'relative_expiration_date')", "def HHgM(YKHO, KAOR):\n yRzZ = KOtj.URL_EXPIRY_TIME_IN_SECONDS - (rIAI.now() - KAOR.url.created_at).total_seconds()\n return int(yRzZ / 60)", "def iWzb(YKHO):\n pass", "def aCSz(YKHO):\n return YKHO._expiration...
[ "0.67640734", "0.6588513", "0.6546672", "0.65238357", "0.65238357", "0.64667153", "0.64385957", "0.6406985", "0.639401", "0.63871753", "0.6310716", "0.6308712", "0.6308257", "0.63020027", "0.6282274", "0.6247182", "0.6241579", "0.62137467", "0.6174208", "0.6174208", "0.617420...
0.0
-1
r"""Relative expiry time, in seconds, for expiring positive responses with response codes between 200 and 399. Cannot be used in combination with other Expiry attributes. Similar to relExpiry but has lower precedence.Maximum length = 31536000
def cQow(YKHO, cQow): try: YKHO._weakposrelexpiry = cQow except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PDEi(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'relative_expiration_date')", "def HHgM(YKHO, KAOR):\n yRzZ = KOtj.URL_EXPIRY_TIME_IN_SECONDS - (rIAI.now() - KAOR.url.created_at).total_seconds()\n return int(yRzZ / 60)", "def iWzb(YKHO):\n pass", "def iWzb(YKHO) -> str:\n return qe4Y.get(...
[ "0.681713", "0.6707648", "0.67063934", "0.665403", "0.664932", "0.664932", "0.6554704", "0.65519786", "0.65373814", "0.65226734", "0.6462767", "0.6461778", "0.6456575", "0.6426375", "0.6425754", "0.6383432", "0.6375306", "0.6373696", "0.63417405", "0.63417405", "0.63417405", ...
0.0
-1
r"""Relative expiry time, in seconds, after which to expire an object cached in this content group.Maximum length = 31536000.
def Q5uk(YKHO): try: return YKHO._relexpiry except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0e_(YKHO):\n if YKHO.type in sPt_:\n return (YKHO.updated or gnPz.now()) + Strp", "def iWzb(YKHO):\n pass", "def yxS0(YKHO):\n raise NotImplementedError()", "def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)", "def zR3W(YKHO):\n ...", "def pN75(YKHO)...
[ "0.7226499", "0.7065397", "0.690476", "0.678311", "0.67430913", "0.67260295", "0.6710739", "0.66930205", "0.6687522", "0.66465425", "0.6628113", "0.65751374", "0.65751374", "0.65751374", "0.65751374", "0.64772695", "0.6451348", "0.6446464", "0.6445245", "0.64399004", "0.64399...
0.0
-1
r"""Relative expiry time, in seconds, after which to expire an object cached in this content group.Maximum length = 31536000
def Q5uk(YKHO, Q5uk): try: YKHO._relexpiry = Q5uk except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0e_(YKHO):\n if YKHO.type in sPt_:\n return (YKHO.updated or gnPz.now()) + Strp", "def iWzb(YKHO):\n pass", "def yxS0(YKHO):\n raise NotImplementedError()", "def NvZq(YKHO):\n return wzkt() - fCoM(minutes=gCuF.SHOP_CART_EXPIRY_MINUTES)", "def zR3W(YKHO):\n ...", "def m4gb(YKHO)...
[ "0.729097", "0.7124879", "0.6965106", "0.6812755", "0.68074846", "0.6803954", "0.67602974", "0.67492115", "0.67182744", "0.6717678", "0.66736096", "0.66091573", "0.66091573", "0.66091573", "0.66091573", "0.6506647", "0.650442", "0.650442", "0.6491104", "0.6491104", "0.648918"...
0.0
-1
r"""Relative expiry time, in milliseconds, after which to expire an object cached in this content group.Maximum length = 86400000.
def uPts(YKHO): try: return YKHO._relexpirymillisec except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0e_(YKHO):\n if YKHO.type in sPt_:\n return (YKHO.updated or gnPz.now()) + Strp", "def iWzb(YKHO):\n pass", "def m4gb(YKHO):\n return YKHO.storage.time_to_expire()", "def zR3W(YKHO):\n ...", "def yxS0(YKHO):\n raise NotImplementedError()", "def q5dS(YKHO):\n return YKHO.data...
[ "0.737601", "0.7196446", "0.70443314", "0.7036682", "0.70266354", "0.70017743", "0.6858384", "0.6770136", "0.67691934", "0.67483866", "0.67483866", "0.6721607", "0.67193115", "0.6653346", "0.66373014", "0.6586136", "0.6519959", "0.6519959", "0.6519959", "0.6519959", "0.651241...
0.0
-1
r"""Relative expiry time, in milliseconds, after which to expire an object cached in this content group.Maximum length = 86400000
def uPts(YKHO, uPts): try: YKHO._relexpirymillisec = uPts except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d0e_(YKHO):\n if YKHO.type in sPt_:\n return (YKHO.updated or gnPz.now()) + Strp", "def iWzb(YKHO):\n pass", "def m4gb(YKHO):\n return YKHO.storage.time_to_expire()", "def yxS0(YKHO):\n raise NotImplementedError()", "def zR3W(YKHO):\n ...", "def q5dS(YKHO):\n return YKHO.data...
[ "0.7435394", "0.72086847", "0.7065764", "0.7057911", "0.70355034", "0.70169234", "0.68009424", "0.6786706", "0.6745808", "0.6745808", "0.6736275", "0.6722281", "0.672084", "0.6694977", "0.6568375", "0.65499085", "0.6535699", "0.6535699", "0.6535699", "0.6535699", "0.65260065"...
0.0
-1
r"""Insert a CacheControl header into the response.Minimum length = 1.
def bCIf(YKHO): try: return YKHO._cachecontrol except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0gC(geh0):\n if 'Cache-Control' not in geh0.headers:\n geh0.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'\n return geh0", "def PYz4(geh0):\n geh0.cache_control.max_age = 100\n return geh0", "def PYz4(geh0):\n geh0.headers['Cache-Control'] = 'no-store'\n geh0.hea...
[ "0.7767356", "0.7559176", "0.7500474", "0.7489032", "0.74198365", "0.74198365", "0.7397013", "0.73950607", "0.73950607", "0.73950607", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7376904", "0.7366609"...
0.0
-1
r"""Insert a CacheControl header into the response.Minimum length = 1
def bCIf(YKHO, bCIf): try: YKHO._cachecontrol = bCIf except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0gC(geh0):\n if 'Cache-Control' not in geh0.headers:\n geh0.headers['Cache-Control'] = 'no-cache, no-store, must-revalidate'\n return geh0", "def PYz4(geh0):\n geh0.cache_control.max_age = 100\n return geh0", "def PYz4(geh0):\n geh0.headers['Cache-Control'] = 'no-store'\n geh0.hea...
[ "0.79140717", "0.7708369", "0.76441246", "0.7615722", "0.7561902", "0.7561902", "0.7507459", "0.7507459", "0.7507459", "0.74935216", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0.74914706", "0....
0.0
-1
r"""Number of active Invalidation policies refering to this group.
def seoI(YKHO): try: return YKHO._cachenuminvalpolicy except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D78H(YKHO):\n return sum((1 for XP5J in YKHO.payments if (XP5J.is_approved() or XP5J.is_unsettled()) and (XP5J.registration and XP5J.registration.is_holding_slot() or YKHO.item.event.is_leader(XP5J.buyer))))", "def fFTa(YKHO):\n return len(YKHO.active_sources)", "def rFf1(YKHO):\n return YKHO._num...
[ "0.6377999", "0.62707657", "0.62393045", "0.62393045", "0.6192812", "0.61382866", "0.6126431", "0.6034866", "0.6017201", "0.5945708", "0.5940567", "0.5927106", "0.58965576", "0.58632594", "0.584153", "0.5825682", "0.5815036", "0.5766377", "0.5766377", "0.575693", "0.575693", ...
0.0
-1
r""" Use this API to fetch filtered set of cachecontentgroup resources.
def wgBn(Emd4, x0hE, UU6M): try: YEnM = J5yp() PPeq = xAU6() PPeq.filter = UU6M geh0 = YEnM.getfiltered(x0hE, PPeq) return geh0 except Exception as e: raise tTpl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NDyH(YKHO):\n mb0s = []\n for hE03 in YKHO.getContentGroups():\n TdQm = YKHO.content_group_manager.get_group_item(hE03)\n mb0s.append(TdQm)\n return mb0s", "def NMoC(Emd4, x0hE, mWFP='', PPeq=''):\n try:\n if not mWFP:\n YEnM = J5yp()\n geh0 = YEnM.get_r...
[ "0.60414267", "0.59019345", "0.5895591", "0.58480805", "0.5752671", "0.5727339", "0.572188", "0.5682776", "0.56161666", "0.560081", "0.55826485", "0.5579002", "0.556051", "0.55505145", "0.55193734", "0.5502881", "0.54576266", "0.54550046", "0.54322284", "0.5431031", "0.542136...
0.639211
0
Loads model from file
def u7gK(nUeQ): with open(nUeQ, 'rb') as nUeQ: VIsj = t2lc.load(nUeQ) return VIsj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(Ux0P):\n raise NotImplementedError()", "def uyMl(YKHO, gIsw):\n raise NotImplementedError", "def uyMl(YKHO, WJHQ):\n raise NotImplementedError", "def tyeH(YKHO, SkYi: Path) -> None:\n pass", "def tyeH(YKHO, VqRE):\n YKHO.model = tyeH(VqRE)", "def uyM...
[ "0.89565897", "0.8787321", "0.86889166", "0.8611783", "0.85788506", "0.8542288", "0.8502625", "0.8476418", "0.8469429", "0.8415144", "0.8406959", "0.84037703", "0.838767", "0.838767", "0.838767", "0.8266936", "0.81710666", "0.816873", "0.8095996", "0.80812037", "0.80812037", ...
0.0
-1
Finds all the previous revisions of the branch this commit is now the head of.
def KqoF(jSYO): P7us = [] while True: if len(jSYO.parents) > 1: P7us.append(jSYO.id) jSYO = jSYO.parents[0] elif len(jSYO.parents) == 0: G9jH.debug('Reached the end of the branch') return P7us else: jNT5('Non-merge commit on tru...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yx8E(YKHO):\n d7YE = YKHO.dulwichrepo.get_walker(include=[YKHO.created_rev], max_entries=2, paths=[YKHO.created_path])\n o5Dc = None\n for ZAda in d7YE:\n o5Dc = ZAda.commit.id\n return o5Dc", "def hKmy(YKHO):\n jehQ = YKHO.gorm.branch\n o5Dc = YKHO.gorm.rev\n _AKB, WghQ = YKHO.go...
[ "0.69724053", "0.6721375", "0.6541023", "0.6517771", "0.63741046", "0.62891287", "0.6262631", "0.6254367", "0.6138237", "0.6126157", "0.60992146", "0.6054502", "0.602542", "0.6022927", "0.5968785", "0.59568757", "0.5945058", "0.5868338", "0.58574325", "0.58569837", "0.5849197...
0.5876516
17
Creates dictionary of COCO compatible categories keyed by category id.
def yVq7(LeZt): H5LQ = {} for ACia in LeZt: H5LQ[ACia['id']] = ACia return H5LQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zryk():\n Aofo = {'category00': ['value00', 'value01', 'value02']}\n return Aofo", "def raPw() -> dict[str, h0B6]:\n Csk6 = g760.defaultdict()\n Csk6.default_factory = lambda: h0B6(len(Csk6) + 1, 0)\n return Csk6", "def EOe3(EiQe):\n LeZt = {}\n baOH = {}\n PI0b = 1\n oJIE = open...
[ "0.70177454", "0.69575113", "0.6956125", "0.6923982", "0.69097424", "0.6805718", "0.679415", "0.6773107", "0.67702985", "0.6758673", "0.6690068", "0.65318406", "0.65318406", "0.6511568", "0.6492585", "0.6461807", "0.6448941", "0.6448941", "0.6392621", "0.63655734", "0.6365416...
0.694633
3
TransactionCategory a model defined in Swagger
def FIMM(YKHO, XjNt=None, WZnX=None, ZFLc=None, Oto6=None, id=None, JZXy=None, Ghho=None, EYDd=None, type=None, sB_J=None, oSna=None): if oSna is None: oSna = y8cn() YKHO._configuration = oSna YKHO._high_level_category_name = None YKHO._default_high_level_category_name = None YKHO._high_leve...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BRZc():\n n10L = c5ow.id\n CoMk = QePW.args.get('transactionid', type=int)\n a7f_ = QePW.args.get('category', type=str)\n try:\n uPnQ = T74E.query.get(CoMk)\n uPnQ.category = a7f_\n NCls.session.commit()\n return qQXR.dumps({'status': 'Updated'}, indent=5)\n except:\n...
[ "0.6224189", "0.5829251", "0.5771983", "0.5676146", "0.54583764", "0.54467165", "0.54088277", "0.538197", "0.5342786", "0.52842784", "0.52835435", "0.5261674", "0.5225328", "0.52224785", "0.5218997", "0.52147627", "0.51580954", "0.51298076", "0.5122946", "0.5107429", "0.51071...
0.0
-1
Sets the detail_category of this TransactionCategory.
def Oto6(YKHO, Oto6): YKHO._detail_category = Oto6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cmhy(YKHO, Cmhy):\n YKHO._detail_category_id = Cmhy", "def aeup(YKHO, aeup):\n YKHO._detail = aeup", "def SMC3(YKHO, Ghho):\n YKHO.category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._category = Ghho", "def Ghho(YKHO, Ghho):\n YKHO._categ...
[ "0.7896002", "0.6085479", "0.6050349", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.5884212", "0.58643633", "0.580382", "0.5666267", "0.566217", "0.55055016", "0.5461445", "0.53688014", "0.53613406", ...
0.8598518
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, nvfK): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Get the probability that a value will fall within the given range for a given RandomDistribution.
def k8Nl(IZxK, LSh8, CN9P): eQSh = JkM1[IZxK.name] return eQSh.cdf(IZxK, CN9P) - eQSh.cdf(IZxK, LSh8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdHx(LSh8, CN9P, yGTL, WTkW):\n return YzER(CN9P, yGTL, WTkW) - YzER(LSh8, yGTL, WTkW)", "def Q7Be(XP5J):\n return XP5J > tuKI.uniform(0.0, 1.0)", "def Q7Be(XP5J):\n return XP5J > tuKI.uniform(0.0, 1.0)", "def Q7Be(XP5J):\n return XP5J > tuKI.uniform(0.0, 1.0)", "def Q7Be(XP5J):\n return...
[ "0.7012057", "0.70093846", "0.70093846", "0.70093846", "0.70093846", "0.70093846", "0.69861215", "0.6925177", "0.6914825", "0.68164074", "0.6546262", "0.6546262", "0.6533301", "0.6497014", "0.643565", "0.6391658", "0.63791883", "0.63703126", "0.6368807", "0.63679683", "0.6326...
0.8109737
0
Get the mean of a RandomDistribution.
def DH4Z(IZxK): eQSh = JkM1[IZxK.name] return eQSh.mean(IZxK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(IZxK):\n return oyIN.mean(IZxK)", "def DH4Z(YKHO):\n return YKHO.distr.mean(loc=YKHO.loc, scale=YKHO.scale)", "def JBMS(YKHO) -> float:\n return YKHO._distribution.mean()", "def DH4Z(YKHO):\n return YKHO.distr.mean(loc=YKHO.loc, scale=YKHO.scale, df=YKHO.df)", "def JBMS(YKHO):\n ret...
[ "0.8080106", "0.77107084", "0.7651135", "0.7534576", "0.73703", "0.72985023", "0.7297777", "0.728946", "0.7160846", "0.71348315", "0.70895064", "0.70759076", "0.7043097", "0.70241874", "0.70035934", "0.70035934", "0.70035934", "0.70035934", "0.70035934", "0.6964496", "0.69404...
0.7702833
2
Get the variance of a RandomDistribution.
def M5jT(IZxK): eQSh = JkM1[IZxK.name] return eQSh.var(IZxK)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8JS(YKHO):\n return YKHO.base_dist.variance * YKHO.scale ** 2", "def I8JS(YKHO):\n return YKHO._rv.var()", "def I8JS(YKHO, WTkW=None, lpha=False):\n YKHO._check_regr('variance')\n if lpha is True:\n YKHO._check_split('variance')\n if WTkW is None:\n WTkW = YKHO.sigma()\n el...
[ "0.7626612", "0.7459744", "0.73964155", "0.73848087", "0.7341044", "0.73388207", "0.7304734", "0.7272635", "0.7246864", "0.72418666", "0.7239703", "0.7155007", "0.7040894", "0.70331204", "0.70331204", "0.70134485", "0.6980705", "0.69648284", "0.6956266", "0.69424826", "0.6896...
0.823385
0
Get a copy of the default config.
def iQWf(): from .defaults import _C return _C.clone()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDgW():\n from raylab.agents.mbpo import DEFAULT_CONFIG\n return DEFAULT_CONFIG", "def tgzD(YKHO, GPtr):\n Z9rn = jth9.copy(YKHO.default)\n Z9rn.update(GPtr)\n return Z9rn", "def m7nq():\n return KupS.clone()", "def yDgW(YKHO):\n CAYp = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'ext.co...
[ "0.7942381", "0.7914376", "0.79033834", "0.7863028", "0.77779835", "0.77083325", "0.7674297", "0.7674297", "0.76036227", "0.75808364", "0.75800997", "0.7497305", "0.7497305", "0.7497305", "0.7497305", "0.749108", "0.749108", "0.7455074", "0.7436259", "0.7434644", "0.7434644",...
0.76194113
8
(Course, Course) > NoneType Add a prereq as a new prerequisite for this course.
def KxAL(YKHO, khOT): if khOT.prereqs_in_tree(YKHO): raise pZC5 if YKHO.prereqs_in_tree(khOT): raise pZC5 YKHO.prereqs.append(khOT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KxAL(YKHO, khOT):\n if YKHO == khOT:\n raise pZC5\n if khOT.is_prereq(YKHO):\n raise pZC5\n if YKHO.is_prereq(khOT):\n raise pZC5\n YKHO.prereqs.append(khOT)", "def uKYY(YKHO, XP5J):\n if YKHO.progress >= Eb4t.BOUND:\n raise V5vE(f'can not add {XP5J.frontend}: {YKHO...
[ "0.76657796", "0.6595803", "0.658437", "0.6537982", "0.60403097", "0.6034635", "0.56916326", "0.5566748", "0.5530135", "0.551199", "0.54928863", "0.5261548", "0.5251703", "0.5194637", "0.5179575", "0.5114694", "0.51086175", "0.50973713", "0.50867397", "0.50781274", "0.5042773...
0.64436823
4
(Course) > list of str Return a list of all of the names of the prerequisites of this course that are not taken.
def TIWW(YKHO): Aofo = [] if YKHO.prereqs == []: return Aofo else: for w2ay in YKHO.prereqs: if w2ay.taken is False: Aofo.append(w2ay.name) Aofo += w2ay.missing_prereqs() Aofo.sort() return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rFCl(YKHO) -> x1iM[str]:\n return list(YKHO._required)", "def yzRD(YKHO):\n KCHu = YKHO.course_description()\n ycBG = 'Prerequisite:'\n d6pt = KCHu.find(ycBG)\n KCHu = KCHu[d6pt:len(KCHu)]\n KCHu = KCHu[len(ycBG):]\n SQ3m = KCHu.split(';')\n SQ3m = [Q7me.strip() for Q7me in SQ3m]\n ...
[ "0.73370904", "0.69735223", "0.6820258", "0.6702172", "0.6600901", "0.6438285", "0.6382399", "0.63425684", "0.61078537", "0.60865766", "0.60329926", "0.5994527", "0.598026", "0.5890219", "0.5852863", "0.58388376", "0.58363396", "0.5828398", "0.5776019", "0.57276106", "0.56994...
0.7369967
0
Removes punctuation & excess whitespace, sets to lowercase, and normalizes tweets. Returns a list of stemmed tokens.
def wr3U(Mau6, NExc=0): Mau6 = ' '.join(ZbWC.split('[^a-zA-Z]*', Mau6.lower())).strip() if NExc == 0: s2mk = [mkhU.stem(a1PO) for a1PO in Mau6.split()] elif NExc == 1: s2mk = [LkXt.lemmatize(a1PO) for a1PO in Mau6.split()] else: s2mk = [a1PO for a1PO in Mau6.split()] return s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(YKHO, Mau6):\n Mau6 = ' '.join(ZbWC.split('[^a-zA-Z]*', Mau6.lower())).strip()\n s2mk = [YKHO.stemmer.stem(a1PO) for a1PO in Mau6.split()]\n return s2mk", "def wr3U(Mau6):\n Mau6 = ' '.join(ZbWC.split('[^a-zA-Z]*', Mau6.lower())).strip()\n s2mk = [mkhU.stem(a1PO) for a1PO in Mau6.split()]...
[ "0.82536733", "0.8094782", "0.80382085", "0.7931872", "0.7865222", "0.78162634", "0.7618743", "0.7580974", "0.7548225", "0.7413231", "0.7394056", "0.73623204", "0.73623204", "0.73623204", "0.73623204", "0.7361967", "0.7348995", "0.73379123", "0.7320177", "0.73062307", "0.7295...
0.7532004
9
Called if all forms are valid. Creates a Recipe instance along with associated Ingredients and Instructions and then redirects to a success page.
def lwXz(YKHO, L03z, d6J9): L03z.author = YKHO.request.user YKHO.object = L03z.save() d6J9.instance = YKHO.object d6J9.save() return Yd7Q(YKHO.get_success_url())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoQY(QePW):\n if QePW.method != 'POST':\n return vKnz('wine_recipes:index')\n else:\n return vKnz('wine_recipes:index')\n return vKnz('wine_recipes:index')", "def EPwd():\n L03z = dq3a()\n S0MI.debug('New recipe form.')\n if L03z.validate_on_submit():\n S0MI.debug('Vali...
[ "0.7071109", "0.6988464", "0.6809541", "0.67878896", "0.67878896", "0.6587921", "0.6577606", "0.6548428", "0.65406895", "0.64087737", "0.6400201", "0.6386568", "0.633592", "0.63248724", "0.62852854", "0.62684923", "0.6261531", "0.62500143", "0.6184807", "0.61622256", "0.61597...
0.0
-1
Called if a form is invalid. Rerenders the context data with the datafilled forms and errors.
def ee9W(YKHO, L03z, d6J9): return YKHO.render_to_response(YKHO.get_context_data(form=L03z, answer_form=d6J9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ee9W(YKHO, QePW, L03z, wL1m, mYto):\n return _1tc(QePW, YKHO.template_name, YKHO.get_context_data(form=L03z, status_form=wL1m, files_form=mYto))", "def ee9W(YKHO, L03z):\n return YKHO.render_to_response(YKHO.get_context_data())", "def ee9W(YKHO, L03z, **B2fa):\n QpfX = YKHO.get_context_data(**B2fa...
[ "0.8202664", "0.79836166", "0.7913726", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7871155", "0.7870576", "0.7840268", "0.7816142", "0.7789248", "0.77881104", "0.7781492", "0.77720207", "0.7736866", "0.770091", "0.7684558", "0.76332664", ...
0.75929683
21
Computes the ground truth for the supplied gt labels and segment indices.
def SSKR(_ger, pnds): Emd4, h6DL = oyIN.unique(_ger[pnds[:, 0], pnds[:, 1]], return_counts=True) return Emd4[oyIN.argsort(h6DL)[-1]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hBUs(YKHO, Crrw):\n Crrw = XTiz.array(Crrw).flatten()\n nPrm = XTiz.ones(len(Crrw))\n U4J6 = XTiz.arange(len(Crrw) + 1)\n ' Compute the groundtruth matrix and return '\n yLaY = Zxt2.sparse.csr_matrix((nPrm, Crrw, U4J6))\n yLaY = XTiz.transpose(yLaY.todense())\n return yLaY", "def Zqzq(YK...
[ "0.61921144", "0.61036724", "0.61036724", "0.5756553", "0.5676651", "0.5644528", "0.56317", "0.5615347", "0.56147724", "0.56082594", "0.5537423", "0.55287886", "0.5525338", "0.547331", "0.54528284", "0.5420922", "0.5420922", "0.5418291", "0.53926337", "0.53599197", "0.5342772...
0.0
-1
Returns speed in kmph
def P40K(YKHO): return YKHO.distance / (YKHO.duration.total_seconds() / 3600)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqna(YKHO):\n return YKHO._gps.speed_knots * 6076 / 5280", "def MjSp(iBLD):\n return iBLD / 3.6", "def wD7N(YKHO):\n return YKHO._gps.speed_knots * 1.852", "def QQwR(YKHO):\n return WTvr.mps_to_mph(YKHO.ego_speed)", "def VqJw(iBLD: float) -> int:\n return int(iBLD * 3.6)", "def Ripw(YK...
[ "0.8414866", "0.82134277", "0.7974177", "0.78741616", "0.76050615", "0.757539", "0.75352836", "0.7516439", "0.7516439", "0.7495834", "0.7486339", "0.7426689", "0.7422106", "0.7401083", "0.73722035", "0.73722035", "0.73722035", "0.73722035", "0.73625433", "0.73276", "0.7326929...
0.6622855
78
Resets the self.eaten array to all zeros
def WwUo(YKHO): YKHO.eaten = oyIN.zeros([YKHO.rows, YKHO.cols], dtype=int)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.time = 0\n YKHO.infected = oyIN.copy(YKHO.infected_original)\n YKHO.susceptibles = YKHO.pops - YKHO.infected\n YKHO.recovered = oyIN.zeros(YKHO.length, dtype='int32')", "def SiRx(YKHO) -> None:\n YKHO._values = oyIN.array([])", "def SiRx(YKHO):\n for YRbF in range(YKHO....
[ "0.71728873", "0.7052159", "0.7001489", "0.6904251", "0.68586606", "0.68169624", "0.6788974", "0.67571145", "0.6732979", "0.67324495", "0.67319524", "0.6722629", "0.67086697", "0.66984564", "0.6688909", "0.6688909", "0.66871834", "0.66865206", "0.6681782", "0.66787887", "0.66...
0.88000476
0
Returns the mapping between move numbers and bead colours as a dictionary
def b5JF(YKHO): return {1: 'Red', 2: 'Orange', 3: 'Yellow', 4: 'Green', 5: 'Blue', 6: 'Purple', 7: 'Pink', 8: 'Black', 9: 'Grey', 10: 'White', 11: 'Tan'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lFDO(YKHO):\n return {'A1': '#FFFF00', 'C3': '#1CE6FF', 'C15': '#FF34FF', 'A1bo': '#FF4A46', 'D1': '#008941', 'C1': '#006FA6', 'C27': '#A30059', 'D4': '#FFDBE5', 'C3u': '#7A4900', 'C42.2': '#0000A6', 'A1bp': '#63FFAC', 'C115': '#B79762', 'C1b': '#004D43', 'C1d': '#8FB0FF', 'A1c': '#997D87', 'C66': '#5A0007'...
[ "0.6859722", "0.68160814", "0.6645465", "0.6496892", "0.6462244", "0.64414793", "0.6408454", "0.63683766", "0.6364416", "0.6350594", "0.6343546", "0.6326147", "0.6301072", "0.6290744", "0.628994", "0.6212811", "0.6207831", "0.6125344", "0.6123075", "0.6114436", "0.6059093", ...
0.73117703
0
Select a random move from those available
def jaao(): BZN_ = YKHO.pickRandomAvailableSquareToEat() return BZN_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X5nx(YKHO, Cs6h):\n return tuKI.choice(IBKe(Cs6h))", "def Qy5L(YKHO):\n NNsw = YKHO.compute_possible_set()\n if len(NNsw) == 0:\n return None\n BZN_ = tuKI.sample(NNsw, 1)[0]\n for bGrB in range(5):\n print('*')\n print('??-->', BZN_)\n return BZN_", "def y0na(YKHO):\n ...
[ "0.8201249", "0.81967247", "0.81768054", "0.8165296", "0.8012869", "0.79913926", "0.7929397", "0.78982705", "0.7881628", "0.7880297", "0.7833012", "0.7780076", "0.7771783", "0.77502614", "0.77250195", "0.7612821", "0.7605228", "0.75831735", "0.75754166", "0.75754166", "0.7561...
0.75547254
21
Compute softmax probability over raw logits.
def M49J(cCrA): if not cCrA: return [] jB5X = None for p1kx in cCrA: if jB5X is None or p1kx > jB5X: jB5X = p1kx KPVz = [] mq4h = 0.0 for p1kx in cCrA: WKvO = epAf.exp(p1kx - jB5X) KPVz.append(WKvO) mq4h += WKvO BFeB = [] for p1kx in KP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)", "def N93T(KeL5):\n if not isinstance(KeL5, oyIN.ndarray):\n KeL5 = oyIN.array(KeL5)\n KeL5 = KeL5 - oyIN.max(KeL5)\n lM0O = oyIN.exp(KeL5)\n BFeB = lM0O / oyIN.sum(lM0O)\n return BFeB", "...
[ "0.79753804", "0.7940573", "0.7923388", "0.7799447", "0.7767334", "0.7742308", "0.77300364", "0.7666204", "0.76309055", "0.7623184", "0.760959", "0.75968385", "0.75947344", "0.7584158", "0.7582874", "0.75804585", "0.7578433", "0.7576052", "0.757426", "0.75718033", "0.7570825"...
0.0
-1
Checks whether CP is the codepoint of a CJK character.
def v7Pj(YKHO, U7YL): if 19968 <= U7YL <= 40959 or 13312 <= U7YL <= 19903 or 131072 <= U7YL <= 173791 or (173824 <= U7YL <= 177983) or (177984 <= U7YL <= 178207) or (178208 <= U7YL <= 183983) or (63744 <= U7YL <= 64255) or (194560 <= U7YL <= 195103): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OK5S(U7YL):\n if U7YL >= 19968 and U7YL <= 40959 or (U7YL >= 13312 and U7YL <= 19903) or (U7YL >= 131072 and U7YL <= 173791) or (U7YL >= 173824 and U7YL <= 177983) or (U7YL >= 177984 and U7YL <= 178207) or (U7YL >= 178208 and U7YL <= 183983) or (U7YL >= 63744 and U7YL <= 64255) or (U7YL >= 194560 and U7YL <...
[ "0.79691964", "0.792432", "0.79170144", "0.7883984", "0.7874802", "0.7829142", "0.76246226", "0.7415915", "0.7266683", "0.71844196", "0.71813124", "0.7140152", "0.7080571", "0.70412296", "0.70281905", "0.6851671", "0.6848525", "0.6839941", "0.6734616", "0.6649605", "0.6570715...
0.78532666
5
obtain model from view via view's queryset. try safer view attribute first before going through get_queryset(), which may perform arbitrary operations.
def b7A4(tTee, rCIm=True): C3ST = getattr(getattr(tTee, 'queryset', None), 'model', None) if C3ST is not None: return C3ST try: return tTee.get_queryset().model except Exception as exc: if rCIm: E4N8(f"""Failed to obtain model through view's queryset due to raised exc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO):\n SR0I = YKHO.filter_queryset(YKHO.get_queryset())\n err5 = YKHO.lookup_url_kwarg or YKHO.lookup_field\n assert err5 in YKHO.kwargs, 'Expected view %s to be called with a URL keyword argument named \"%s\". Fix your URL conf, or set the `.lookup_field` attribute on the view correctly.' % (Y...
[ "0.70667946", "0.70210785", "0.6923388", "0.6812511", "0.67505324", "0.6734192", "0.67274976", "0.6690499", "0.66386807", "0.66027826", "0.6578443", "0.6574099", "0.6556606", "0.65487385", "0.65404373", "0.6527893", "0.6499055", "0.64964855", "0.6454712", "0.6445264", "0.6400...
0.6647549
8
convert django style path parameters to OpenAPI parameters.
def tnOM(DoGn, Es0b, hrE4): RMdz = rvX9() for kUBT in jKQc.finditer(DoGn): aDxC, k78t = (kUBT.group('converter'), kUBT.group('parameter')) x7oU = None if widx.SCHEMA_COERCE_PATH_PK and k78t == 'pk': k78t = 'id' elif ZT7_.SCHEMA_COERCE_PATH_PK_SUFFIX and k78t.endswith(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LilL(pmON):\n return ha3z.sub('{\\\\1}', pmON)", "def PIpM(pmON):\n return ha3z.sub('{\\\\1}', pmON)", "def cDRX(YKHO, eD8c, ql7k, SGPK, **B2fa):\n for A6pH in YKHO.rule_to_params(eD8c):\n ngQ8 = next((XP5J for XP5J in SGPK if isinstance(XP5J, GySg) and XP5J['in'] == 'path' and (XP5J['name'...
[ "0.6936048", "0.66605884", "0.6289978", "0.6242542", "0.598354", "0.59090775", "0.58463985", "0.58240074", "0.5793708", "0.5762589", "0.57382196", "0.57069206", "0.56498075", "0.5594984", "0.55833495", "0.55815375", "0.5575789", "0.5555937", "0.5535248", "0.54323846", "0.5422...
0.61624485
4
convert regex path parameter to OpenAPI parameter, if pattern is explicitly chosen and not the generic nonempty default '[^/.]+'.
def NSry(DoGn, Es0b): for k78t, mXDZ in i5Xc(DoGn).items(): if widx.SCHEMA_COERCE_PATH_PK and k78t == 'pk': k78t = 'id' elif ZT7_.SCHEMA_COERCE_PATH_PK_SUFFIX and k78t.endswith('_pk'): k78t = f'{k78t[:-3]}_id' if k78t != Es0b: continue if mXDZ == '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tnOM(DoGn, Es0b, hrE4):\n RMdz = rvX9()\n for kUBT in jKQc.finditer(DoGn):\n aDxC, k78t = (kUBT.group('converter'), kUBT.group('parameter'))\n x7oU = None\n if widx.SCHEMA_COERCE_PATH_PK and k78t == 'pk':\n k78t = 'id'\n elif ZT7_.SCHEMA_COERCE_PATH_PK_SUFFIX and k7...
[ "0.6846447", "0.64897776", "0.64541715", "0.6038857", "0.5954972", "0.5772891", "0.5772891", "0.5621024", "0.5596785", "0.55961925", "0.5584011", "0.55718714", "0.5556831", "0.54950905", "0.54794407", "0.5468765", "0.54597795", "0.54589975", "0.5451795", "0.544183", "0.542643...
0.7168516
0
Returns a random string from a given set of responses
def kdEZ(YKHO, h2IT): oeNL = tuKI.randint(0, len(h2IT) - 1) return h2IT[oeNL]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FMgN(h2IT):\n ICk6 = tuKI.sample(h2IT, 1)\n return ICk6[0]", "def yWQP():\n h2IT = ['It is certain.', 'As I see it, yes.', 'YES!', 'Without a doubt.', 'You may rely on it.', 'Signs point to yes.', 'Outlook looks good.', 'Ask again later.', 'Better not tell you now.', 'Reply hazy, try later.', 'Conce...
[ "0.83944726", "0.648485", "0.6439145", "0.6352447", "0.6344561", "0.63243103", "0.6280179", "0.62781864", "0.62614995", "0.62561065", "0.62555826", "0.6208497", "0.6203128", "0.61854255", "0.61854255", "0.6182884", "0.6182884", "0.6182884", "0.6182884", "0.6182884", "0.617841...
0.6612349
1
r""" This piece is wrong, DON'T use it unless you know what to expect! Fourier transform in real space of a matrix with size (Nt\times N\times N)^2
def Y8XL(vb7U, WCCm, ywwl): from itertools import product U5bT = oyIN.zeros((ywwl * ywwl, ywwl * ywwl), dtype='complex128') lVeI = ywwl * ywwl for G1Hx in range(lVeI): LEev, Xyq7 = (G1Hx // ywwl, G1Hx % ywwl) y3rP = G1Hx QHil, u2tI = (y3rP // ywwl, y3rP % ywwl) U5bT[y3rP,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7oO(YKHO, SppC):\n \"\"\"\n npfft2 = np.fft.fft2(matrix)\n #im = Image.fromarray(npfft2.real)\n #im.show()\n print(\"NUMPY FFT2 START------------------------------------------------------------------------NUMPY FFT2 START \")\n print(npfft2)\n print(\"NUMPY FFT2 EN...
[ "0.7597325", "0.7135252", "0.6963718", "0.6925729", "0.6869075", "0.6856694", "0.68502575", "0.6841588", "0.67900956", "0.67756814", "0.67641616", "0.67445904", "0.6740891", "0.67191315", "0.67134047", "0.6694579", "0.6689229", "0.66860783", "0.6682938", "0.66552216", "0.6653...
0.59046525
100
r""" Fourier transform in real space of a matrix with size (Nt\times N\times N)^2, thus "half"
def Cvt5(vb7U, WCCm, ywwl): from itertools import product U5bT = oyIN.zeros((WCCm * ywwl * ywwl, WCCm * ywwl * ywwl), dtype='complex128') lVeI = ywwl * ywwl for jmzt, y3bP, G1Hx, y3rP in product(range(WCCm), range(WCCm), range(lVeI), range(lVeI)): LEev, Xyq7 = (G1Hx // ywwl, G1Hx % ywwl) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NCug(WKvO: torch.Tensor) -> ht2j.Tensor:\n return ht2j.fft.fft2(WKvO, dim=(-1, -2)).real", "def Ikb0(WKvO):\n ywwl = len(WKvO)\n if ywwl % 2 > 0:\n raise ValueError('size of x must be a power of 2')\n elif ywwl <= 2:\n return NbaI(WKvO)\n else:\n iHT2 = Ikb0(WKvO[::2])\n ...
[ "0.7011572", "0.6651773", "0.66329366", "0.6576894", "0.657511", "0.6542292", "0.6536246", "0.65112156", "0.64997196", "0.6490331", "0.6460085", "0.64534575", "0.64331335", "0.6418154", "0.64038175", "0.6396106", "0.6395091", "0.6374843", "0.6357158", "0.6347614", "0.63442296...
0.6650809
2
r""" Fourier transform in real space of a matrix with size Nt\times N\times N\times 2
def fp2r(vb7U, WCCm, ywwl): U5bT = oyIN.zeros((2 * ywwl * ywwl * WCCm, 2 * ywwl * ywwl * WCCm), dtype='complex128') AhIK = ywwl * ywwl * WCCm U5bT[:AhIK, :AhIK] = Cvt5(vb7U[:AhIK, :AhIK], WCCm, ywwl) U5bT[AhIK:, :AhIK] = Cvt5(vb7U[AhIK:, :AhIK], WCCm, ywwl) U5bT[:AhIK, AhIK:] = Cvt5(vb7U[:AhIK, AhIK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x7oO(YKHO, SppC):\n \"\"\"\n npfft2 = np.fft.fft2(matrix)\n #im = Image.fromarray(npfft2.real)\n #im.show()\n print(\"NUMPY FFT2 START------------------------------------------------------------------------NUMPY FFT2 START \")\n print(npfft2)\n print(\"NUMPY FFT2 EN...
[ "0.76272595", "0.71572155", "0.71288365", "0.6959035", "0.687354", "0.68396634", "0.6809007", "0.678613", "0.6757418", "0.67388505", "0.6734315", "0.67321724", "0.6708835", "0.67009693", "0.6676588", "0.6654839", "0.6589017", "0.6571074", "0.656147", "0.6548144", "0.6534083",...
0.64944303
25
Returns internal friction coefficient
def bwRG(YKHO): return YKHO.mu
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8cb(YKHO):\n return GYhQ.b2Contact___GetFriction(YKHO)", "def C8gw(YKHO):\n return gnPz.buf_to_npy(YKHO._ptr.contents.friction, (5,))", "def C8gw(YKHO):\n if YKHO.speed != 0:\n Zihr = -1 if YKHO.speed > 0 else 1\n else:\n Zihr = -1 if YKHO.thrust > 0 else 1 if YKHO.thrust < 0 els...
[ "0.7842494", "0.7664727", "0.7568944", "0.75500774", "0.74856615", "0.7439452", "0.74131304", "0.73693645", "0.73247504", "0.73076", "0.7248724", "0.7065461", "0.7048223", "0.7038606", "0.6878067", "0.6816427", "0.6776181", "0.6775623", "0.67299587", "0.67142683", "0.6701689"...
0.0
-1
Convert Volts of Amps to Watts with 50Ohm reference.
def ed9Z(YKHO): naF9 = YKHO ** 2 if YKHO.units == 'A': return naF9 * 50.0 return naF9 / 50.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dLFH(YKHO):\n lwb8 = sum(YKHO.isotopes.values())\n ruk5 = 0.0\n hWut = {}\n if lwb8 >= 0:\n return\n else:\n for xClP in YKHO.isotopes:\n ruk5 += YKHO.isotopes[xClP] * uodM(xClP)\n for xClP in YKHO.isotopes:\n hWut[xClP] = abs(YKHO.isotopes[xClP] * uodM...
[ "0.6385832", "0.6250315", "0.6232766", "0.6146234", "0.61011267", "0.60819834", "0.6067632", "0.6011368", "0.6003651", "0.5915374", "0.58883363", "0.5885031", "0.58766705", "0.5854479", "0.5844821", "0.584355", "0.5841861", "0.58229864", "0.5818835", "0.5798743", "0.5785105",...
0.65625465
0
Set total p1db value.
def _Lz7(YKHO, BWXx): YKHO._total_p1db = q3Qn(BWXx, units='dBm')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Lz7(YKHO):\n return YKHO._total_p1db", "def _o2H(YKHO, wjRY: int):\n with YKHO.lmdb_env.begin(write=True, buffers=True) as nXg_:\n nXg_.put('total'.encode(), str(wjRY).encode())", "def gz8u(YKHO, gz8u):\n YKHO._total_ppa = gz8u", "def gz8u(YKHO, gz8u):\n YKHO._total_ppa = gz8u", "de...
[ "0.7006009", "0.64366174", "0.6287511", "0.6287511", "0.6257519", "0.62077796", "0.5914015", "0.5914015", "0.5914015", "0.5914015", "0.5914015", "0.5914015", "0.5914015", "0.58914393", "0.5806316", "0.57480305", "0.56890774", "0.56882715", "0.56480694", "0.5636986", "0.559093...
0.798967
0
Get output power value.
def erll(YKHO): return YKHO._pout
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dU7B(YKHO):\n return YKHO._power", "def iAHs(YKHO):\n return YKHO.power", "def naF9(YKHO):\n return YKHO.get('Power')", "def naF9(YKHO):\n return YKHO.get('Power')", "def dU7B(YKHO):\n naF9 = None\n while naF9 is None:\n try:\n naF9 = int(YKHO.command('POWER?').split...
[ "0.80593395", "0.799777", "0.7779272", "0.7779272", "0.7755721", "0.7746841", "0.7705877", "0.75764173", "0.75740296", "0.75568676", "0.75176674", "0.74860036", "0.7469848", "0.7441471", "0.7412877", "0.7364617", "0.7362595", "0.73323256", "0.7305224", "0.71876866", "0.718371...
0.0
-1
Return list of supported categories.
def lpdV(YKHO): return _bVD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeZt(YKHO) -> x1iM[str]:\n return YKHO._categories", "def LeZt(YKHO) -> x1iM[str]:\n return [Z9rn.category for Z9rn in YKHO.classifications]", "def LQuW(YKHO):\n pass", "def NMoC(YKHO):\n return LeZt", "def LQuW(YKHO):\n YKHO.cursor.execute(YKHO.sql_select_cmds['select_categories'])\n ...
[ "0.76529354", "0.7586981", "0.75309855", "0.7485319", "0.74527454", "0.7422568", "0.7398836", "0.7379404", "0.73655903", "0.73521185", "0.7325155", "0.72942245", "0.72803104", "0.7256152", "0.7252142", "0.7246487", "0.7238602", "0.7230329", "0.7206861", "0.7206861", "0.720686...
0.0
-1
Get the list of all services named by the services tag in this instance's tags.
def JT51(o_gm): cUW3 = gP7g.connect_ec2() dByU = cUW3.get_all_instances(instance_ids=[o_gm]) for StGp in dByU: for KAOR in StGp.instances: if KAOR.id == o_gm: try: B373 = KAOR.tags['services'].split(',') except KeyError as ke: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B373(YKHO) -> x1iM[str]:\n return YKHO.get_service_list()", "def E4fl(YKHO):\n return ['/'.join([KCHu.name, KCHu.type]) for KCHu in YKHO.services]", "def E4fl(YKHO):\n return ['.'.join([KCHu.serviceName, KCHu.type]) for KCHu in YKHO.services]", "def ttkl(YKHO):\n return YKHO.services.values()...
[ "0.79858875", "0.7870774", "0.7861485", "0.77823734", "0.7761339", "0.77496046", "0.77195907", "0.7711261", "0.7694556", "0.7646364", "0.7636974", "0.76317096", "0.7629918", "0.7628058", "0.757521", "0.75379115", "0.7529655", "0.7433958", "0.7425045", "0.7425045", "0.73275757...
0.630935
89
Returns a copy of self.weights.
def G7j6(YKHO): return {vC9B: mBkc(Z9rn) for vC9B, Z9rn in YKHO.weights.items()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mSQ(YKHO):\n return oyIN.copy(YKHO._weights)", "def wT46(YKHO):\n return YKHO._weights", "def wT46(YKHO):\n return YKHO._weights", "def wT46(YKHO):\n return YKHO.weights", "def wT46(YKHO):\n return YKHO.weights", "def wT46(YKHO):\n return super().get_weights()", "def wT46(YKHO):\...
[ "0.9202434", "0.8265941", "0.8265941", "0.8231139", "0.8231139", "0.82037956", "0.81964266", "0.81272924", "0.8113518", "0.8113518", "0.8110063", "0.810367", "0.810367", "0.806513", "0.8040137", "0.8010438", "0.79994035", "0.79743737", "0.79743737", "0.79437274", "0.7938326",...
0.7753943
26
Returns the current model's score of labeling the given document with the given label.
def p1kx(YKHO, A97Q, UXqs): p1kx = YKHO.biases[UXqs] for RDhP in A97Q: p1kx *= A97Q[RDhP] * YKHO.weights[UXqs][RDhP] return p1kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TUci(UXqs):\n try:\n return 1 if UXqs[0]['label'] == 'POSITIVE' else -1\n except TypeError:\n return 0", "def kB2N(YKHO, A97Q):\n p1kx = {}\n dsz9 = set([])\n for UXqs in A97Q.cluster_label:\n dsz9 = dsz9.union(set(UXqs))\n for UXqs in A97Q.cluster_label:\n OpKk ...
[ "0.6814211", "0.6718131", "0.6468172", "0.64146173", "0.6382822", "0.6347132", "0.62278104", "0.61880934", "0.60977596", "0.6053859", "0.6051656", "0.6051439", "0.6030939", "0.60066944", "0.59905934", "0.59778386", "0.5913929", "0.58724016", "0.5870592", "0.587029", "0.583033...
0.79812443
0
Return the highestscoring label for the document under the current model.
def YEmv(YKHO, A97Q): cCrA = [] for LVAh in YKHO.CLASSES: cCrA.append(YKHO.score(A97Q, LVAh)) return YKHO.CLASSES[cCrA.index(max(cCrA))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1qM(YKHO):\n Gjtu = YKHO.attribute_frequency(YKHO.attributes.classindex)\n uNc7 = max(Gjtu.iteritems(), key=TU9R(1))[0]\n return uNc7", "def b_KQ(YKHO, A97Q):\n XP5J = YKHO.score(A97Q)\n return (q1NN(XP5J), max(XP5J))", "def iLWF(YKHO):\n if YKHO.nlabels == 0:\n return 0\n retu...
[ "0.7157972", "0.70929056", "0.70120883", "0.6896499", "0.6831292", "0.6792072", "0.65814877", "0.65442455", "0.6446265", "0.6433311", "0.6403918", "0.64022195", "0.6363407", "0.62995636", "0.62327826", "0.6231032", "0.62216395", "0.6219183", "0.61949515", "0.6193131", "0.6176...
0.0
-1
Push element x onto stack.
def _jXH(YKHO, WKvO: int) -> None: YKHO.deque1.append(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _jXH(YKHO, WKvO):\n YKHO.in_stack.append(WKvO)", "def _jXH(YKHO, WKvO):\n ycBG = S9Ut()\n while not YKHO.stack.empty():\n U6D_ = YKHO.stack.pop()\n ycBG.push(U6D_)\n YKHO.stack.push(WKvO)\n while not ycBG.empty():\n U6D_ = ycBG.pop()\n YKHO.stack.push(U6D_)\n ret...
[ "0.8884891", "0.88815904", "0.8851905", "0.8829994", "0.8825823", "0.87915844", "0.8784638", "0.8781226", "0.8723327", "0.87200546", "0.87101483", "0.8696664", "0.86889726", "0.8672952", "0.86561507", "0.86259526", "0.8610324", "0.86102635", "0.860013", "0.860013", "0.8581793...
0.7472946
76
Removes the element on top of the stack and returns that element.
def BEuN(YKHO) -> int: if len(YKHO.deque2) == 0: while len(YKHO.deque1) > 0: YKHO.deque2.append(YKHO.deque1.popleft()) return YKHO.deque2.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN():\n global top\n if A4KR():\n return None\n U6D_ = E5BI[tlxW]\n E5BI[tlxW] = None\n BAMb[tlxW] = None\n tlxW -= 1\n return U6D_", "def BEuN(E5BI):\n LihS = E5BI.elements[-1]\n del E5BI.elements[-1]\n return LihS", "def BEuN(YKHO):\n ZfUD = YKHO.stack.pop()\n ...
[ "0.83285564", "0.82814056", "0.8210085", "0.81704277", "0.81349236", "0.8095011", "0.8064679", "0.8016918", "0.7953157", "0.7943855", "0.793094", "0.78770566", "0.7872679", "0.7850065", "0.7826401", "0.77995974", "0.77936834", "0.77862775", "0.7773103", "0.7773103", "0.777310...
0.0
-1
Returns whether the stack is empty.
def lsmZ(YKHO) -> bool: return len(YKHO.deque1) == 0 and len(YKHO.deque2) == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return len(YKHO.stack) == 0", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def FBfn(YKHO):\n return YKHO.stack == []", "def A4K...
[ "0.9128382", "0.9128382", "0.9089147", "0.9089147", "0.9089147", "0.9054476", "0.90168625", "0.90168625", "0.9007831", "0.89530855", "0.8949649", "0.8949649", "0.8938501", "0.89370805", "0.8922049", "0.88844925", "0.88758796", "0.88700867", "0.88436955", "0.8797164", "0.87931...
0.0
-1
Sets the href of this Change.
def qvey(YKHO, qvey): YKHO._href = qvey
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qvey(YKHO, qvey: str):\n YKHO._href = qvey", "def u8oA(YKHO, qvey):\n if qvey is not None and (not isinstance(qvey, str)):\n raise pDrJ(Byma.DATA_TYPE_ERROR, 'KEY: href EXPECTED TYPE: str', None, None)\n YKHO.__href = qvey\n YKHO.__key_modified['href'] = 1", "def qvey(YKHO, qvey: str):\n...
[ "0.82602006", "0.78134125", "0.7297947", "0.65983945", "0.65917945", "0.65917945", "0.6546947", "0.6519692", "0.6519692", "0.6495447", "0.6495447", "0.64900106", "0.64711726", "0.6468289", "0.6402699", "0.6378535", "0.637631", "0.6349206", "0.6311784", "0.6189008", "0.6189008...
0.8371923
0
Sets the amendment_effective_at of this Change.
def S13T(YKHO, S13T): YKHO._amendment_effective_at = S13T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HAKw(YKHO, HAKw):\n YKHO._effective_at = HAKw", "def zX0Y(YKHO, zX0Y):\n YKHO._correction_effective_at = zX0Y", "def uWV0(YKHO, uWV0):\n YKHO._effective_date = uWV0", "def dajZ(YKHO, dajZ):\n YKHO._effective_until = dajZ", "def dajZ(YKHO, dajZ):\n YKHO._effective_until = dajZ", "def sx...
[ "0.7675041", "0.7243312", "0.66488135", "0.65052694", "0.65052694", "0.64259", "0.6366095", "0.6366095", "0.6366095", "0.6147474", "0.6111807", "0.584136", "0.5826051", "0.5554175", "0.5477296", "0.5451615", "0.5443512", "0.5312724", "0.5203854", "0.51908004", "0.49842346", ...
0.8955033
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, qyXZ): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Construct a ServiceCollection from a list of dicts representing services.
def Myrr(Emd4, mWFP, ZlNf, x0hE, nqz3=False): bNKA = Emd4(mWFP, [], x0hE) if nqz3: fepF = TOTw(bNKA, x0hE, mWFP) for LHsb in Mgqj(ZlNf): wPdp = bNKA.get_links(LHsb) fzb7 = bNKA.get_volumes_from(LHsb) Zxma = bNKA.get_net(LHsb) if nqz3: wPdp = t4PG(LHsb['nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, tbx9: Dict) -> 'TSCollection':\n qIxc = {}\n if 'locations' in tbx9:\n qIxc['locations'] = [qmne.from_dict(WKvO) for WKvO in tbx9.get('locations')]\n else:\n raise ValueError(\"Required property 'locations' not present in TSCollection JSON\")\n return Emd4(**qIxc)", "def ...
[ "0.6157992", "0.6069517", "0.6047976", "0.5976257", "0.5976257", "0.5954257", "0.5837421", "0.57736874", "0.57067955", "0.57007986", "0.558857", "0.55641717", "0.5492423", "0.54435104", "0.5436335", "0.5419145", "0.53996974", "0.5399458", "0.5377715", "0.53637886", "0.5358035...
0.5940632
6
Retrieve a service by name. Raises NoSuchService if the named service does not exist.
def rVwF(YKHO, mWFP): for zVa7 in YKHO.services: if zVa7.name == mWFP: return zVa7 raise tYlr(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rVwF(YKHO, mWFP):\n if mWFP in YKHO.services:\n return YKHO.services[mWFP]\n else:\n raise xiIb(mWFP)", "def rVwF(YKHO, mWFP):\n return YKHO._services[mWFP]", "def TbFb(YKHO, mWFP):\n if nQgQ(mWFP):\n return YKHO.services[mWFP]\n return False", "def BKTh(YKHO, jf3N, bS...
[ "0.86726177", "0.79576504", "0.7563757", "0.74455494", "0.7381163", "0.7233478", "0.7153139", "0.7135074", "0.70916444", "0.7047411", "0.69962615", "0.69552296", "0.69301605", "0.6925689", "0.68085563", "0.68030995", "0.6700124", "0.6680708", "0.6658816", "0.6641618", "0.6601...
0.86735183
0
Validate that the given list of service names only contains valid services. Raises NoSuchService if one of the names is invalid.
def FZ6F(YKHO, s2UO): FL9v = YKHO.service_names for mWFP in s2UO: if mWFP not in FL9v: raise tYlr(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VGJj(YKHO, bSEa: str, Ct2Z: list[ServiceWithNode]) -> None:\n K3F5 = [zVa7['service'] for zVa7 in Ct2Z]\n if bSEa not in K3F5:\n raise ValueError(f'Service {bSEa} is incorrect. Please choose one of: {K3F5}')", "def s5nX(pu8V):\n VLwu = set(pu8V)\n return 'Port' not in VLwu and len(VLwu) ==...
[ "0.7882322", "0.69943017", "0.6927123", "0.6300294", "0.6212772", "0.61176467", "0.6063556", "0.6042416", "0.5994579", "0.5990304", "0.58851725", "0.5867086", "0.5867086", "0.58344585", "0.5742848", "0.57032496", "0.57007307", "0.5692752", "0.56705946", "0.56665874", "0.56025...
0.8890306
0
Returns a list of this project's services filtered by the provided list of names, or all services if service_names is None or []. If include_deps is specified, returns a list including the dependencies for service_names, in order of dependency. Preserves the original order of self.services where possible, reordering as...
def ttkl(YKHO, s2UO=None, zKji=False): if s2UO is None or len(s2UO) == 0: return YKHO.get_services(service_names=YKHO.service_names, include_deps=zKji) else: dLfY = [YKHO.get_service(mWFP) for mWFP in s2UO] B373 = [KCHu for KCHu in YKHO.services if KCHu in dLfY] if zKji: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ttkl(YKHO, _63S=None, bSEa=None):\n return YKHO._get_wrapper('Service', namespace=_63S, name_filter_string=bSEa)", "def ttkl(YKHO, B373):\n bPyO = YKHO.fetch_services()\n return [bPyO[zVa7] for zVa7 in B373 if zVa7 in bPyO]", "def _x7r(ZWCE):\n GfdN = R79A if BfDw.is_systemd() else OeSn\n re...
[ "0.65433705", "0.64786315", "0.6142877", "0.6129989", "0.6064775", "0.60349035", "0.60312784", "0.59875566", "0.59115994", "0.58741826", "0.5770456", "0.574996", "0.57118803", "0.56900173", "0.568399", "0.5638595", "0.5637296", "0.5625286", "0.55800253", "0.55771774", "0.5550...
0.84283066
0
Removes front of queue and returns it
def BEuN(YKHO): yvT9 = YKHO.frontelem.elem YKHO.frontelem = YKHO.frontelem.next YKHO.length -= 1 return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None", "def BEuN(YKHO):\n YKHO.peek()\n return YKHO.queue.pop()", "def kSdD(YKHO):\n assert ...
[ "0.89848036", "0.83072084", "0.8094929", "0.8050294", "0.80295974", "0.80261225", "0.80173224", "0.80137116", "0.8007285", "0.8000489", "0.7987124", "0.7973938", "0.79728675", "0.7970283", "0.7966221", "0.7966002", "0.7963245", "0.79226327", "0.79177165", "0.79177165", "0.788...
0.0
-1
Returns front of queue
def VnzS(YKHO): return YKHO.frontelem.elem
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uW34(YKHO):\n if YKHO.isEmpty():\n return -1\n else:\n return YKHO._queue[0]", "def VnzS(gGq6):\n if FBfn(gGq6):\n raise IndexError('front on empty queue')\n return gGq6.front.value", "def XL7A(YKHO):\n if YKHO.is_empty():\n raise nKJm\n return YKHO.queue[YKHO....
[ "0.86419374", "0.8638507", "0.8592492", "0.83879787", "0.83603346", "0.83210486", "0.82304853", "0.82304263", "0.81310654", "0.81057173", "0.8091048", "0.80386657", "0.8003822", "0.8001796", "0.7996174", "0.7996174", "0.7996174", "0.79696715", "0.7953087", "0.79481846", "0.78...
0.0
-1
Returns true if the policy is empty. An empty policy is a policy with no useful information.
def FBfn(YKHO): return YKHO._current_idx >= len(next(iter(YKHO._policy_table.keys()))) - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO, XP5J):\n return len(YKHO) == 0", "def FBfn(YKHO, XP5J):\n return len(YKHO) == 0", "def FBfn(YKHO) -> bool:\n return not bool(YKHO._patt)", "def FBfn(YKHO):\n return YKHO._did == '' and len(YKHO._public_keys) == 0 and (len(YKHO._authentications) == 0) and (len(YKHO._services) == 0) ...
[ "0.6711834", "0.6711834", "0.66467667", "0.6610141", "0.660031", "0.6596794", "0.6555277", "0.6555277", "0.6555277", "0.6555277", "0.6555277", "0.65379417", "0.6534516", "0.6530573", "0.65259314", "0.65131706", "0.65131706", "0.6496049", "0.6492777", "0.6492208", "0.649005", ...
0.7772851
0
Ensure errors are logged and returned as json
def wyqm(tTpl): P4t4.logger.error(DOCF()) hlel = getattr(tTpl, 'output', None) return (pz3A(hlel.decode('utf-8') if hlel else str(tTpl)), 500)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SCET(QePW):\n return jnRN({'err': 'bad request'}, status=400)", "def b1ih(P1dF):\n return pz3A({'Error': str(P1dF)}, 500)", "def sVBQ(Ol8d):\n return GtGV(isError=True, message=Ol8d)", "def LHCm(aTqo):\n E4N8('%s: %s' % (aTqo.message, aTqo.source))\n _hkX = pz3A({'error': aTqo.message})\n ...
[ "0.75181156", "0.74163795", "0.7316268", "0.7119801", "0.71119463", "0.7095839", "0.70543057", "0.7037139", "0.6975318", "0.69595575", "0.6925352", "0.6923824", "0.6906047", "0.6864566", "0.68583745", "0.6792338", "0.6766083", "0.6740812", "0.6736786", "0.67304355", "0.672281...
0.6615196
36
Logged in users are logged out and redirected to home page.
def PGkX(YKHO, P4t4, x0hE, CGuU): with cO_O(P4t4) as DqlU: geh0 = x0hE.get('/logout', follow_redirects=True) rPXJ, QpfX = DqlU[0] assert geh0.status_code == 200 assert rPXJ.name == 'home/splash.html'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW):\n if QePW.user.is_authenticated:\n erK4(QePW)\n return vKnz('home_page')", "def kZiy(QePW):\n if QePW.user.is_authenticated:\n return vKnz('dashboard')\n return _1tc(QePW, 'home.html')", "def d6pt():\n uJjO = yqPD()\n if uJjO:\n return vKnz('/home')\...
[ "0.83801425", "0.806542", "0.80366004", "0.8014116", "0.80003667", "0.795544", "0.78175604", "0.7740838", "0.7723266", "0.7717271", "0.76511145", "0.7638628", "0.7633285", "0.7627295", "0.75878406", "0.7584129", "0.7578796", "0.7578796", "0.75605994", "0.75476754", "0.7544666...
0.0
-1
Get a Paginator, abstracting some common paging actions.
def roPg(QePW, SR0I, USOo=20): XP5J = oDn_.Paginator(SR0I, USOo) try: B2Dn = int(QePW.GET.get('page', 1)) except ValueError: B2Dn = 1 try: T13P = XP5J.page(B2Dn) except (oDn_.EmptyPage, oDn_.InvalidPage): T13P = XP5J.page(1) P8oC = QePW.build_absolute_uri(QePW.pat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oL8A(YKHO, **B2fa):\n XP5J = YKHO.paginator_class(YKHO.list, YKHO.rows_per_page, orphans=YKHO.paginate_orphans, allow_empty_first_page=YKHO.allow_empty, **B2fa)\n XP5J.paginator_url = YKHO.paginator_url\n return XP5J", "def oDn_(YKHO):\n if not hasattr(YKHO, '_paginator'):\n if YKHO.pagina...
[ "0.7283024", "0.72305006", "0.7021535", "0.7021535", "0.7021535", "0.7021535", "0.7021535", "0.7018111", "0.70145255", "0.6940345", "0.68683463", "0.67307657", "0.6730219", "0.66310984", "0.66273075", "0.66261476", "0.65709734", "0.6570133", "0.65542734", "0.6535137", "0.6493...
0.59375256
95
Make softmax + softargmax operator.
def mSM9(ovGo=1.0): def khtY(*qIxc): if len(qIxc) == 1: ezWE = oyIN.array(qIxc[0]) else: ezWE = oyIN.array(qIxc) if ovGo > 0: return (ovGo * y5U5.logsumexp(ezWE / ovGo), y5U5.softmax(ezWE / ovGo)) else: U5bT = oyIN.zeros_like(ezWE) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(WKvO):\n return Kt_s.nnet.softmax(WKvO.T)", "def N93T(WKvO):\n return kLQb(WKvO) / sum(kLQb(WKvO), axis=0)", "def N93T(input):\n input = input - oyIN.max(input)\n s852 = oyIN.exp(input)\n pSPY = oyIN.sum(s852)\n return s852 / pSPY + 10 ** (-6)", "def N93T(UnuI):\n return Zxt2.sp...
[ "0.8184129", "0.7882989", "0.78284115", "0.7816483", "0.7815841", "0.7798495", "0.77758825", "0.7762301", "0.7753828", "0.77196217", "0.77187574", "0.7713645", "0.7698675", "0.7698675", "0.7698675", "0.7698675", "0.7698675", "0.76960313", "0.7688776", "0.7687985", "0.76871747...
0.0
-1
Get effective area in cm2.
def ykHb(yzQ0): x8g3 = lambda yzQ0: oyIN.ones_like(yzQ0) * 25.0 RHJb = 0.1 return x8g3(yzQ0.means) * RHJb * 10000.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sAdl(YKHO) -> float:\n return YKHO.side * YKHO.side", "def sAdl(YKHO):\n return 3 * PZyS(3) * YKHO.length ** 2 / 2", "def qCSd(YKHO):\n Nqlg = open(YKHO._nbar_file, 'r').readlines()\n return float(Nqlg[1].split()[0])", "def sAdl(YKHO) -> float:\n return 0.5 * YKHO.base * YKHO.height", "d...
[ "0.75676364", "0.7556518", "0.7542122", "0.74795985", "0.7428869", "0.7428869", "0.7428869", "0.74156165", "0.73968077", "0.73617965", "0.7319033", "0.73103434", "0.73103434", "0.73055685", "0.72979534", "0.72979534", "0.72979534", "0.72979534", "0.72979534", "0.72979534", "0...
0.0
-1
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): bo34.info('Event: %s', qQXR.dumps(tvqc)) try: B7c0 = HPII(tvqc) bo34.info('Application id: %s', B7c0) "\n Verify your skill's application ID to prevent someone else from\n configuring a skill that sends requests to this function.\n " if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69191045", "0.6761577", "0.6582709", "0.6489553", "0.64564925", "0.63761616", "0.6285285", "0.62711346", "0.626935", "0.62445796", "0.6217598", "0.6214152", "0.619323", "0.6178254", "0.61518997", "0.6143791", "0.6132207", "0.61306834", "0.6051094", "0.60083073", "0.5981312...
0.564212
66
Flask application factory method.
def LUif(): bo34 = G9jH.getLogger(__name__) bo34.info('Setting up Flask application...') P4t4 = L2w0(__name__) uVAu(P4t4, KJT5()) bo34.info('Server successfully started.') return P4t4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n P4t4 = L2w0(__name__)\n sSY8(P4t4)\n return P4t4", "def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4", "def LUif(Emd4):\n return SCWY", "def LUif(mWFP=None):\n if mWFP is None...
[ "0.8446295", "0.83982354", "0.8395595", "0.835217", "0.8324053", "0.8317195", "0.8288431", "0.8277616", "0.8276613", "0.82755184", "0.8272469", "0.8258075", "0.8257464", "0.82173455", "0.8215036", "0.82081336", "0.8205894", "0.81896967", "0.8176557", "0.8173783", "0.8173192",...
0.81931233
17
Gets all fields of interest, excluding those with no selected subfields.
def TnMw(YKHO): V_D6 = [] for Jyyj in list(YKHO.__settings['fields']): if len(YKHO.get_requests(Jyyj)) is not 0: V_D6.append(Jyyj) return V_D6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def glrd():\n return []", "def Q_rB(YKHO, DNHh=None):\n u8wa = set(YKHO.exclude)\n if DNHh:\n u8wa = u8wa.union(set(DNHh))\n return [mWFP for mWFP in YKHO.fields if mWFP not in u8wa]", "def TnMw():\n Kvxs()\n return acO1", "def V_D6(YKHO):\n return [eHNT[:] for eHNT in YKHO._field...
[ "0.72960836", "0.7170824", "0.70370585", "0.7008159", "0.6891026", "0.6871312", "0.6811713", "0.68023163", "0.6779876", "0.6712268", "0.6708964", "0.6673576", "0.66454667", "0.66407394", "0.6638384", "0.66302323", "0.6625867", "0.6614471", "0.6614471", "0.65721375", "0.655730...
0.67447406
9
Flip the individual words in a sentence
def K95S(LI6e): kXwa = LI6e.split(' ') Dxdi = '' for GIN8 in kXwa: Dxdi += BGah(GIN8) + ' ' return Dxdi.strip() pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uJ7D(l5Ny):\n V22M = l5Ny.split()\n V22M[0], V22M[-1] = (V22M[-1], V22M[0])\n Qvp8 = ' '.join([yzQ0[::-1] for yzQ0 in V22M])\n print(Qvp8)", "def K95S(LI6e):\n vwCE = LI6e.split(' ')\n for or8S in range(len(vwCE)):\n vwCE[or8S] = vwCE[or8S][::-1]\n return ' '.join(vwCE)", "def j...
[ "0.7453032", "0.7357182", "0.7046106", "0.69519705", "0.6919519", "0.69084376", "0.68861514", "0.6883357", "0.6759468", "0.6712527", "0.66929007", "0.6691925", "0.66787654", "0.6651185", "0.65837455", "0.65754527", "0.6552169", "0.6550696", "0.6542147", "0.6494433", "0.645026...
0.7467211
0
Returns whether a User is a service account. Also returns True for role users until they have been retired.
def KzJD(cuiw, CBIr): return CBIr.is_service_account or CBIr.role_user
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VSch(Emd4, liCf, uJjO):\n bo34.info('check_service_user / {}'.format(locals()))\n try:\n zVa7 = M87a.objects.get(id=liCf)\n if zVa7.car.user_id == uJjO:\n return True\n except M87a.DoesNotExist as service_not_exist:\n bo34.warning(lTVS)\n return False", "def CS...
[ "0.7050021", "0.70090365", "0.6373785", "0.6364128", "0.6357686", "0.6357686", "0.6357686", "0.6357686", "0.63025004", "0.6258122", "0.62470305", "0.6236357", "0.6195155", "0.61356556", "0.60944194", "0.606818", "0.6057992", "0.6051139", "0.60404813", "0.6032217", "0.60275143...
0.8800787
0
Returns whether a User has permission to manage a ServiceAccount.
def CSqs(cuiw, pan_, CBIr): if type(pan_) == mv1M: if not pan_.is_service_account: return False ZrNc = pan_.service_account else: ZrNc = pan_ if ZrNc.owner is None: return False return CBIr.is_member(ZrNc.owner.group.my_members())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHTF(YKHO, QePW, tTee):\n try:\n CBIr = Wqvn.objects.get(email=QePW.user)\n return CBIr.role == 'SA'\n except rIt9:\n return False", "def XFLq(YKHO, CBIr):\n return YKHO.projectuser_set.filter(user=CBIr, permission_id__in=nunW.admin_permission()).count() > 0", "def qHTF(YKHO, ...
[ "0.69865227", "0.69358397", "0.6897432", "0.6853095", "0.6822702", "0.6801998", "0.6801998", "0.6764696", "0.67175347", "0.670077", "0.6690999", "0.6678793", "0.6673646", "0.66724443", "0.665451", "0.66513664", "0.66511065", "0.6646105", "0.6643923", "0.6631388", "0.6630405",...
0.7884223
0
Created the UserProfile when a new User is saved
def sxXS(vC92, KAOR, _EYN, **B2fa): if _EYN: z39Z = BFpK() z39Z.user = KAOR z39Z.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkn9(vC92, KAOR, _EYN, **B2fa):\n if _EYN == True:\n XP5J = BFpK()\n XP5J.user = KAOR\n XP5J.save()", "def jkn9(vC92, KAOR, _EYN, **B2fa):\n if _EYN == True:\n XP5J = BFpK()\n XP5J.user = KAOR\n XP5J.save()", "def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:...
[ "0.8527052", "0.8424333", "0.8393204", "0.8393204", "0.8321736", "0.8294487", "0.8289635", "0.8270594", "0.8270594", "0.8220286", "0.8220286", "0.8173014", "0.81677264", "0.8095646", "0.8053758", "0.80318666", "0.7965263", "0.79251146", "0.79236233", "0.79233414", "0.7874579"...
0.8184971
11
Does a random walk from starting vertex
def ZAda(SLBp: int): VVvO = 0.2 N3Vf = 100000 JTF9 = Oa1e.new_vertex_property('int', val=0) e2gD = Oa1e.vertex(SLBp) for bGrB in range(N3Vf): JTF9[e2gD] += 1 if tuKI.uniform(0, 1) < VVvO: e2gD = Oa1e.vertex(SLBp) else: e2gD = tuKI.choice(Oa1e.get_out_n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYfK(pNZh, pu_z):\n kMLo = pu_z\n while True:\n yield kMLo\n xAU6 = list(pNZh.neighbors(kMLo))\n kMLo = oyIN.random.choice(xAU6)", "def JYfK(Ruu7):\n TUcM = {1: oyIN.array((0, 1)), 2: oyIN.array((0, -1)), 3: oyIN.array((-1, 0)), 4: oyIN.array((1, 0))}\n YPaw = oyIN.random.cho...
[ "0.7303797", "0.72171736", "0.6975985", "0.687969", "0.6863491", "0.6829036", "0.68229306", "0.6768379", "0.6695381", "0.6545673", "0.64928466", "0.6490467", "0.6490467", "0.64870846", "0.6471714", "0.64486164", "0.64469177", "0.64387727", "0.6434597", "0.63966185", "0.638182...
0.0
-1
Return the next input for the decoder by selecting the input corresponding to the max output
def Ua21(YKHO, BFeB, Wp3C=None): bGrB, DNs0 = BFeB.max(dim=1) if Wp3C is not None: Ep8u = BFeB.size(0) R63N = Wp3C[DNs0.data, [YRbF for YRbF in range(Ep8u)], :] else: R63N = None return (R63N, DNs0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OPHn(pKvt):\n DNs0 = ht2j.Tensor(oyIN.array([DTDK[Z9rn] for Z9rn in pKvt]))\n Pnvj = ht2j.cuda.LongTensor\n o4D3, ajwV, rNcn = [iQnE(ht2j.from_numpy(oyIN.array([z1Rg])).type(Pnvj)) for z1Rg in DNs0]\n XP5J = r8hN(o4D3, ajwV, rNcn)\n YRbF = oyIN.argmax(XP5J.data)\n return gLiZ[YRbF]", "def j...
[ "0.6191223", "0.5944729", "0.5880846", "0.5823811", "0.57754016", "0.5774293", "0.5729627", "0.57193947", "0.5649983", "0.56171143", "0.56075376", "0.5594964", "0.55633146", "0.55387026", "0.5527693", "0.5505874", "0.5502897", "0.5473775", "0.5428782", "0.53936887", "0.537369...
0.54574424
18
The digital logic level of the output pin.
def BWXx(YKHO): return YKHO.io.value
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jGRS(YKHO):\n if xi8C.input(YKHO.pin) == YKHO.enable:\n return YKHO.POWERED_ON\n else:\n return YKHO.POWERED_OFF", "def _14C(YKHO):\n return YKHO.Print_level", "def QTBn(YKHO) -> int:\n return YKHO.coordinator.data.info.leds.power", "def HyiD(YKHO) -> int:\n return YKHO.__lig...
[ "0.67485476", "0.6698967", "0.6455915", "0.6451967", "0.6436416", "0.6436416", "0.63965636", "0.6372916", "0.6361629", "0.6343414", "0.62433505", "0.6211575", "0.6185134", "0.6185134", "0.6173962", "0.6156908", "0.6149393", "0.6141213", "0.61365813", "0.60719067", "0.60149467...
0.0
-1
takes a city name, pushes it to Google API and assigns longitude and latitude to cities dictionary item
def hZ49(j5sA): global cities Ms2Z = 'http://maps.googleapis.com/maps/api/geocode/xml?' bD7m = Ms2Z + ZmRO({'sensor': 'false', 'address': j5sA + ', Poland'}) eHNT = False while not eHNT: print('Retrieving the data on:', j5sA) nPrm = uRlK.request.urlopen(bD7m).read() print('Re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbFU(YKHO, j5sA):\n YKHO.cities.append(j5sA)", "def q0Ls(accd):\n if S8SU.get(cKBo, accd) is None:\n eTsH(404)\n if not QePW.get_json(silent=True):\n return Yxsy(pz3A({'error': 'Not a JSON'}), 400)\n qv1X = QePW.get_json()\n if 'user_id' not in qv1X:\n return Yxsy(pz3A({'e...
[ "0.6421784", "0.6401614", "0.63306296", "0.6300508", "0.62926507", "0.626256", "0.6202506", "0.6174212", "0.6171002", "0.61692035", "0.61499923", "0.6113085", "0.6094889", "0.6083319", "0.60821414", "0.6068822", "0.6065859", "0.6045303", "0.599729", "0.5993269", "0.59870064",...
0.6864538
0