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
Build VersionSpec from version specification string.
def RdfN(Emd4, hOnZ): bGrB, khtY, DpZH = ZbWC.split('([<>=]{1,2})', hOnZ) return Emd4(DpZH, khtY)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WC_0(Emd4, IexU):\n SQ3m = IexU.rsplit('-')\n if len(SQ3m) < 2:\n tO9_ = 'Invalid version format: {0!r}'.format(IexU)\n raise ValueError(tO9_)\n try:\n Cc7Y = int(SQ3m[1])\n except ValueError:\n raise ValueError('Invalid build number: {0!r}'.format(SQ3m[1]))\n return ...
[ "0.67385304", "0.6538353", "0.63781327", "0.63681674", "0.6259094", "0.6258253", "0.61992365", "0.61786836", "0.6151493", "0.6106147", "0.60767156", "0.6024416", "0.60050523", "0.59845567", "0.59714246", "0.5965244", "0.5896169", "0.5884133", "0.58708143", "0.58308965", "0.58...
0.7344676
0
Check if `version_str` is in the range.
def sjXf(YKHO, VsNR, K9m9=hFNR): return YKHO.boundary_1.contains(VsNR, cmp_class=K9m9) and YKHO.boundary_2.contains(VsNR, cmp_class=K9m9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vh6r(DpZH, PC7c=None):\n if PC7c and DpZH not in PC7c:\n raise pz5b('found version %s is not within range %s' % (str(DpZH), str(PC7c)))", "def Kgrh(toLl):\n return mLGw(wx3I) >= mLGw(toLl)", "def GG58(YKHO, yFz3):\n return YKHO._version >= gnPz.SoftwareVersion(yFz3)", "def LCjw(pNGv):\n ...
[ "0.6992001", "0.6956381", "0.68175316", "0.6753894", "0.6690464", "0.66798294", "0.6628912", "0.64600754", "0.64427114", "0.638267", "0.6331821", "0.62926996", "0.61970586", "0.6168671", "0.6093359", "0.6070426", "0.6065147", "0.6048615", "0.6044716", "0.6037348", "0.6020004"...
0.56983185
61
Passes if catalog.size matches the length of data
def KF2w(wcwS): assert wcwS.size == len(wcwS.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return len(YKHO.dataset_sizes)", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def szAg(YKHO):\n return YKHO.dataset_size", "def...
[ "0.66283023", "0.66001487", "0.6463031", "0.6463031", "0.6463031", "0.6463031", "0.6463031", "0.6436054", "0.63949096", "0.6385415", "0.6370914", "0.6338491", "0.6331915", "0.6331915", "0.6316741", "0.6316741", "0.6316741", "0.62937415", "0.62937415", "0.62937415", "0.6293741...
0.78367436
0
Calculate distance from a point p to the plane.
def HUYO(YKHO, XP5J, i1fZ=True): if XP5J is None: raise ValueError("Point p can't be None") if not isinstance(XP5J, ZxqF.Vector): raise TypeError('Expected Vector, got %s' % type(XP5J)) if Ke5A: print('pos = %r, n = %r, p = %r' % (YKHO.pos, YKHO.n, XP5J)) if not i1fZ: OvE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pImw(YKHO, XP5J):\n Jw7X = YKHO.x - XP5J.x\n eUWA = YKHO.y - XP5J.y\n return epAf.sqrt(Jw7X ** 2 + eUWA ** 2)", "def Ayfi(YKHO, XP5J):\n UET8 = yTNq(YKHO)\n return abs(float(UET8.a * XP5J.x + UET8.b * XP5J.y + UET8.c)) / epAf.sqrt(float(UET8.a * UET8.a + UET8.b * UET8.b))", "def Ayfi(YKHO, X...
[ "0.81478256", "0.79678065", "0.7866951", "0.77647024", "0.77007705", "0.7537644", "0.7477996", "0.7451811", "0.73872817", "0.7226706", "0.72234476", "0.7203262", "0.71959335", "0.71959335", "0.71959335", "0.71614814", "0.714972", "0.71295166", "0.7126716", "0.710274", "0.7099...
0.76988673
5
Normalized linear interpolation between 2 vectors.
def UJBr(uC5n, efXR, a1PO=0.5): if a1PO <= 0.0 or a1PO > 1.0: raise ValueError('E: t must satisfy 0<t<1, but is %f' % a1PO) return CVBx(uC5n, efXR, a1PO).GetNormalized()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def teUd(jzdc, Fg_i, WKvO):\n return ((Fg_i - WKvO) / (Fg_i - jzdc), (WKvO - jzdc) / (Fg_i - jzdc))", "def TpWb(jzdc: float, Fg_i: float, Ty9i: float) -> float:\n return (Ty9i - jzdc) / (Fg_i - jzdc)", "def LeDf(jzdc, Fg_i, wA3x):\n return jzdc + wA3x * (Fg_i - jzdc)", "def bGOl(jzdc, Fg_i, Z5kt: fl...
[ "0.6945596", "0.68702567", "0.6843532", "0.6637218", "0.6469784", "0.642137", "0.63560605", "0.6354672", "0.623082", "0.6202406", "0.6183916", "0.6164715", "0.6163091", "0.6139357", "0.6138196", "0.6126543", "0.61198235", "0.6105269", "0.60936016", "0.60762936", "0.6068599", ...
0.5679356
80
Multiply a matrix with a vector representing a point. Same as ``c4d.Matrix.Mul(v)``.
def ZOEs(r8hN, Ty9i): return Ty9i * r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgQz(r8hN, Ty9i):\n vb7U = oyIN.matrix(r8hN)\n z8o0 = len(Ty9i.shape) == 1\n if z8o0:\n _Rtb = Ty9i.reshape(1, -1).transpose()\n else:\n _Rtb = Ty9i.transpose()\n he6J = oyIN.matrix(_Rtb)\n YEX8 = oyIN.array(oyIN.dot(vb7U, he6J).transpose())\n if z8o0:\n return YEX8[0]...
[ "0.7257555", "0.7193156", "0.715498", "0.7037409", "0.70081526", "0.6932996", "0.6915075", "0.68618476", "0.6723557", "0.6723557", "0.6705515", "0.6674474", "0.65927166", "0.6483611", "0.64590394", "0.64355654", "0.6415099", "0.63839144", "0.63617516", "0.6317391", "0.6289602...
0.63170236
20
Multiply a matrix with a vector representing a direction. Same as ``c4d.Matrix.MulV(v)``
def PZoX(r8hN, Ty9i): return Ty9i ^ r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G2f8(Ty9i, E3D9):\n assert E3D9.size[0] == Ty9i.size\n VUF1 = [0] * E3D9.size[1]\n for H2v2 in range(0, E3D9.size[1]):\n for TVTK in range(0, E3D9.size[0]):\n VUF1[H2v2] = VUF1[H2v2] + Ty9i[TVTK] * E3D9[TVTK, H2v2]\n return Cd5b(VUF1)", "def g_uQ(YKHO, Ty9i: Vector) -> lNLu:\n ...
[ "0.74301076", "0.7369695", "0.73139685", "0.71303475", "0.7009997", "0.6987915", "0.69759023", "0.67816585", "0.6714424", "0.6699962", "0.65899086", "0.64872354", "0.6482623", "0.64808327", "0.64553905", "0.6439161", "0.6306282", "0.62984717", "0.6270177", "0.62632674", "0.62...
0.6390645
16
Transpose matrix e in rowmajor format to columnmajor. ``e`` can be of type ``list`` structure or ``c4d.Matrix``.
def q3ZY(tTpl): if isinstance(tTpl, list): CLNC = tTpl elif isinstance(tTpl, ZxqF.Matrix): CLNC = CbMh(tTpl) else: raise TypeError('E: expected list<list> or c4d.Matrix, got %r' % type(tTpl)) ycBG = zip(*CLNC) Aofo = [] for YRbF in ycBG: Aofo.append(list(YRbF)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2DR(SppC):\n ueOf = zip(*SppC)\n v65A = [list(rdlD) for rdlD in ueOf]\n return v65A", "def l7uB(YKHO):\n Q9wQ = [[0] * 4 for bGrB in range(4)]\n for YRbF in range(4):\n for r845 in range(4):\n Q9wQ[YRbF][r845] = YKHO.matrix[r845][YRbF]\n YKHO.matrix = Q9wQ", "def H2DR(r...
[ "0.67677087", "0.67663616", "0.6668775", "0.6587698", "0.6578047", "0.6536151", "0.6519077", "0.6510161", "0.64987445", "0.64987445", "0.6475331", "0.64663", "0.6441021", "0.6436314", "0.64026415", "0.63743263", "0.6364941", "0.6363116", "0.6348945", "0.6342229", "0.634112", ...
0.7980892
0
Convert a list of 3 or 4 ``c4d.Vector`` to ``c4d.Matrix``.
def FtMu(iB6t): if not isinstance(iB6t, list): raise TypeError('E: expected list of vectors, got %r' % type(iB6t)) r8hN = len(iB6t) if not isinstance(iB6t[0], ZxqF.Vector): raise TypeError('E: expected list elements of type c4d.Vector, got %r' % type(iB6t[0])) if r8hN == 4: retur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GuzU(G5IK):\n return oyIN.matrix(G5IK)", "def FYL0(cZKX):\n if not isinstance(cZKX, list):\n raise TypeError('E: expected list of list, got %r' % type(cZKX))\n r8hN = len(cZKX)\n exwG = len(cZKX[0])\n if not isinstance(cZKX[0], (float, int)):\n raise TypeError('E: expected list e...
[ "0.7395897", "0.7348514", "0.65697974", "0.6335899", "0.6312251", "0.6306404", "0.6035349", "0.60093576", "0.5987036", "0.5973862", "0.59300995", "0.5922914", "0.5885274", "0.58413595", "0.58181393", "0.5814584", "0.57483447", "0.5707884", "0.5682242", "0.5675271", "0.567472"...
0.8161235
0
Calculate unit normal of a planar trifacet.
def ZFpf(jzdc, Fg_i, Z9rn): WKvO = MPe0([[1, jzdc.y, jzdc.z], [1, Fg_i.y, Fg_i.z], [1, Z9rn.y, Z9rn.z]]) LVAh = MPe0([[jzdc.x, 1, jzdc.z], [Fg_i.x, 1, Fg_i.z], [Z9rn.x, 1, Z9rn.z]]) epBp = MPe0([[jzdc.x, jzdc.y, 1], [Fg_i.x, Fg_i.y, 1], [Z9rn.x, Z9rn.y, 1]]) FOSW = (WKvO ** 2 + LVAh ** 2 + epBp ** 2) **...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mhAC(YKHO, a1PO):\n return -1j * YKHO.unit_tangent(a1PO)", "def mhAC(YKHO, a1PO):\n return -1j * YKHO.unit_tangent(a1PO)", "def mhAC(YKHO, a1PO):\n return -1j * YKHO.unit_tangent(a1PO)", "def mhAC(YKHO, a1PO):\n return -1j * YKHO.unit_tangent(a1PO)", "def mhAC(YKHO, a1PO=None):\n return ...
[ "0.7060044", "0.7060044", "0.7060044", "0.7033738", "0.68863404", "0.68219864", "0.67379194", "0.6578314", "0.6551428", "0.640401", "0.634865", "0.6323325", "0.6278321", "0.62483263", "0.6247122", "0.62403345", "0.62336427", "0.6207518", "0.62031114", "0.6148262", "0.6128114"...
0.59033376
48
Uses float tolerant component comparison to check if v is a zero vector.
def _0EP(Ty9i): return ZxqF.utils.VectorEqual(ZxqF.Vector(0), Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CgEI(YKHO, WKvO):\n return abs(WKvO) <= 1e-06", "def jRWe(Ty9i):\n return oyIN.absolute(Ty9i) <= 10.0 ** (-8.0)", "def xkTU():\n jzdc = oyIN.arange(3)\n P6bq = oyIN.c_[jzdc, jzdc, jzdc] * rYO3('m/s')\n Ty9i = Ssgv(P6bq, P6bq.T, 1 * rYO3.meter, 1 * rYO3.meter, dim_order='xy')\n EWBD = oyIN...
[ "0.7152984", "0.71457237", "0.70078343", "0.69769853", "0.69044125", "0.68851125", "0.68080056", "0.6772651", "0.6743567", "0.6651998", "0.6647308", "0.66315544", "0.66309977", "0.65776974", "0.6567246", "0.652095", "0.6501734", "0.6453957", "0.6448672", "0.6448672", "0.64486...
0.73205864
0
Computes the smallest distance between two 3D lines.
def JGCv(RPEj, VsyD, AP8M, w_is): Ylbp = (ZxqF.Vector(0.5 * (RPEj.x + VsyD.x), 0.5 * (RPEj.y + VsyD.y), 0.5 * (RPEj.z + VsyD.z)), ZxqF.Vector(0.5 * (AP8M.x + w_is.x), 0.5 * (AP8M.y + w_is.y), 0.5 * (AP8M.z + w_is.z))) qj9Z = w_is.x - AP8M.x f1Gv = w_is.y - AP8M.y XbJm = w_is.z - AP8M.z if _0EP(qj9Z)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zG70(YKHO, XfqJ, EkBB):\n ZUyv = YKHO.distance_to_line(XfqJ[:2], EkBB)\n S_1T = YKHO.distance_to_line(XfqJ[2:], EkBB)\n _85E = YKHO.distance_to_line(EkBB[:2], XfqJ)\n Vsqn = YKHO.distance_to_line(EkBB[2:], XfqJ)\n return min(ZUyv, S_1T, _85E, Vsqn)", "def eD4g(o4D3, si3g, ajwV, skBL, rNcn, Sb1...
[ "0.72419035", "0.6848312", "0.6778263", "0.6733043", "0.67197406", "0.67151463", "0.6688108", "0.6688066", "0.6672668", "0.66675913", "0.66283846", "0.6624526", "0.65953994", "0.6593297", "0.65603584", "0.64793456", "0.64793456", "0.6473059", "0.64506274", "0.6441295", "0.641...
0.6834789
2
Same as ``math.acos(x)`` but if x is out of range, it is "clamped" to the nearest valid value. The value returned is in range 0...pi, the same as the standard `math.acos`_ function.
def BL3w(WKvO): if WKvO <= -1.0: return epAf.pi if WKvO >= 1.0: return 0.0 return epAf.acos(WKvO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgJD(WKvO):\n if PCpl.real(1) <= WKvO <= PCpl.real(1) + PCpl.eps:\n return 0\n if -PCpl.real(1) >= WKvO >= -PCpl.real(1) - PCpl.eps:\n return PCpl.pi\n return PCpl.acos(WKvO)", "def by9f(WKvO):\n Aofo = 0.0\n if WKvO > 1:\n Aofo = 0\n elif WKvO < -1:\n Aofo = epA...
[ "0.7979122", "0.77665097", "0.7265", "0.70147455", "0.6956923", "0.69489914", "0.688935", "0.68548673", "0.6675813", "0.6622624", "0.6518129", "0.64377356", "0.64356387", "0.6366046", "0.62789166", "0.62570316", "0.6246485", "0.61818", "0.61401755", "0.6105016", "0.60823464",...
0.8035016
0
Removes comma from numbers and selects revelant columns of the census data for each state in the state_census_data_lst line. Also merges multiple word state names into one whole string. Returns a list of values.
def Np0d(B3I6): B3I6 = x7qV(B3I6) B3I6 = ZgAi(B3I6) B3I6 = ckPu(B3I6) if len(B3I6) > 6: B3I6 = [B3I6[0], int(B3I6[1]), int(B3I6[6]), int(B3I6[11])] else: B3I6 = [B3I6[0], int(B3I6[1])] return B3I6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ckPu(B3I6):\n if B3I6[1].isalpha() and B3I6[2].isalpha():\n B3I6[:3] = [B3I6[0] + ' ' + B3I6[1] + ' ' + B3I6[2]]\n elif B3I6[1].isalpha():\n B3I6[:2] = [B3I6[0] + ' ' + B3I6[1]]\n return B3I6", "def ZgAi(B3I6):\n for YRbF, MoaH in enumerate(B3I6):\n Iu8A = ','\n if Iu8...
[ "0.6988805", "0.66102415", "0.63054174", "0.5922809", "0.55970335", "0.5398671", "0.5226004", "0.52209604", "0.51952964", "0.5162188", "0.51571316", "0.51293224", "0.5115605", "0.51114655", "0.5092466", "0.5092022", "0.50480413", "0.5021616", "0.49451786", "0.4944795", "0.493...
0.6951887
1
Removes commas from each column that are numbers of the state_census_data_lst. Return a list
def ZgAi(B3I6): for YRbF, MoaH in enumerate(B3I6): Iu8A = ',' if Iu8A in MoaH and MoaH[0].isdigit(): MoaH = ''.join(MoaH.split(',')) B3I6[YRbF] = MoaH return B3I6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Np0d(B3I6):\n B3I6 = x7qV(B3I6)\n B3I6 = ZgAi(B3I6)\n B3I6 = ckPu(B3I6)\n if len(B3I6) > 6:\n B3I6 = [B3I6[0], int(B3I6[1]), int(B3I6[6]), int(B3I6[11])]\n else:\n B3I6 = [B3I6[0], int(B3I6[1])]\n return B3I6", "def o8c1(UrXw):\n S06t = list()\n for KQOt in UrXw:\n ...
[ "0.6977165", "0.60407573", "0.6011253", "0.5900385", "0.5729008", "0.5709212", "0.5661144", "0.5649908", "0.56088394", "0.56057155", "0.5566065", "0.55588603", "0.5557842", "0.5522222", "0.5491511", "0.5488495", "0.5479819", "0.5451809", "0.5420935", "0.54085994", "0.537818",...
0.8251328
0
Return a dictionary of usage percentages and cpu modes. elapsed cpu time samples taken at 'sample_time (seconds)' apart.
def nkJ5(YKHO, FT7X=1): a1kB = YKHO.__cpu_time_deltas(FT7X) wjRY = sum(a1kB) xSSH = [100 - 100 * (float(wjRY - WKvO) / wjRY) for WKvO in a1kB] return {'user': xSSH[0], 'nice': xSSH[1], 'system': xSSH[2], 'idle': xSSH[3], 'iowait': xSSH[4], 'irq': xSSH[5], 'softirq': xSSH[6]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t0oo():\n nPrm = {}\n t0oo = O0k5.cpu_times()\n nPrm['user'] = t0oo.user\n nPrm['system'] = t0oo.system\n nPrm['idle'] = t0oo.idle\n return nPrm", "def u5qC(**B2fa):\n nPrm = {}\n nPrm['cpu_percent'] = O0k5.cpu_percent(interval=1)\n nPrm['cpu_times'] = O0k5.cpu_times()\n nPrm['c...
[ "0.7166639", "0.69944704", "0.67824423", "0.6630883", "0.6608904", "0.6572087", "0.6547322", "0.6464306", "0.64372754", "0.64307916", "0.64292157", "0.63747185", "0.6338217", "0.6325218", "0.6298561", "0.62938297", "0.6286297", "0.6197905", "0.6167508", "0.61626595", "0.60951...
0.7493766
0
Return number of processes in runnable state.
def oPyk(YKHO): return YKHO.__proc_stat('procs_running')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOjx(YKHO):\n HX9S = 0\n for XP5J in YKHO.__processes:\n if XP5J.is_alive():\n HX9S += 1\n return HX9S", "def Y9kr() -> int:\n return len(O0k5.pids())", "def wOFl(YKHO):\n UHFx = 0\n y2Dl = YKHO.process_cache\n for Ii1o in y2Dl:\n UHFx += len(y2Dl[Ii1o])\n r...
[ "0.8178581", "0.7987601", "0.7765605", "0.7743167", "0.7663931", "0.75868106", "0.75315946", "0.74889743", "0.742297", "0.7417577", "0.7387152", "0.7382332", "0.7376223", "0.7282227", "0.72630304", "0.7180295", "0.7153036", "0.7136322", "0.7062464", "0.705536", "0.703903", ...
0.68279463
35
Return number of processes blocked waiting for I/O to complete.
def vyLI(YKHO): return YKHO.__proc_stat('procs_blocked')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sDGT() -> int:\n IQpm = [nVrR for nVrR in n6DK if nVrR.poll() is None]\n n6DK.clear()\n n6DK.extend(IQpm)\n return len(kIay) + len(n6DK)", "def _cp0(YKHO):\n return YKHO.waitingPool.qsize()", "def AO21(YKHO) -> int:\n return YKHO._data_out_q.qsize()", "def aBG1(YKHO):\n Gf5t = len(YK...
[ "0.69302195", "0.67052984", "0.6686917", "0.65637505", "0.63620824", "0.6333065", "0.6288523", "0.6210254", "0.6208089", "0.61985826", "0.6156742", "0.61112463", "0.61026317", "0.60559005", "0.6017945", "0.6012812", "0.5960054", "0.595471", "0.5938796", "0.59363484", "0.58886...
0.6194615
10
Test that a view's delete method generates a proper response body schema.
def T5ym(YKHO): pmON = '/{id}/' NKcE = 'DELETE' class View(m_91.DestroyAPIView): cIuE = RCd1.ExampleSerializer tTee = XCDA(Rv6M, NKcE, d9vn(pmON)) ckTe = tL1t() ckTe.view = tTee h2IT = ckTe.get_responses(pmON, NKcE) assert h2IT == {'204': {'description': ''}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nx31(YKHO):\n pass", "def Q9TI(YKHO):\n wzKx = YKHO.app.post(YKHO.url)\n assert wzKx.status == '405 NOT ALLOWED'", "def lt4S(YKHO):\n QePW = i_PC.delete('/')\n with YKHO.assertNumQueries(0):\n geh0 = YKHO.view(QePW).render()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_405_METHOD...
[ "0.76611054", "0.7221638", "0.7139586", "0.713347", "0.71118563", "0.7071", "0.70657855", "0.7045124", "0.70129114", "0.6990936", "0.6955301", "0.6935481", "0.693482", "0.6923921", "0.690831", "0.68986523", "0.6891639", "0.68543077", "0.6798241", "0.6791432", "0.6785576", "...
0.8689831
0
Converts tensor to numpy ndarray. Will move tensor to cpu and detach it before converison. Numpy ndarray will share memory of the tensor.
def WTDd(vhpA): return vhpA.cpu().detach().numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UQOX(YKHO, vhpA):\n return vhpA.detach().cpu().numpy()", "def DQrT(jFnh):\n if jFnh.is_cuda:\n return jFnh.cpu().detach().numpy()\n else:\n return jFnh.detach().numpy()", "def WTDd(EcVT: Union[np.ndarray, torch.tensor]) -> oyIN.ndarray:\n return EcVT.detach().cpu().numpy() if ht2j...
[ "0.7949321", "0.721087", "0.7011235", "0.70075446", "0.6972534", "0.6938226", "0.68866616", "0.6879979", "0.6860877", "0.67061293", "0.6651057", "0.66497284", "0.66012925", "0.6594134", "0.6541467", "0.65378696", "0.651157", "0.6495935", "0.6474377", "0.64319193", "0.642953",...
0.7801333
1
Creates a tensor with the given CP rank.
def TJHd(ScU8, szwK: int, RZ9c: float=0.0, pkvj: float=1.0, k7J3: float=1, oAgV: bool=False) -> ht2j.Tensor: if oAgV: return MK7p(ScU8[0], len(ScU8), szwK, RZ9c, pkvj, k7J3) if szwK == -1: vhpA = ht2j.randn(*ScU8) * pkvj + RZ9c else: Llmz = [] for tpio in ScU8: aM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MK7p(uqZd: int, T4Wy: int, szwK: int, RZ9c: float=0.0, pkvj: float=1.0, k7J3: float=1) -> ht2j.Tensor:\n aM8h = ht2j.randn(uqZd, szwK) * pkvj + RZ9c\n vhpA = Yqvu([aM8h] * T4Wy)\n if k7J3 > 0:\n vhpA = vhpA / ht2j.norm(vhpA, p='fro') * k7J3\n return vhpA", "def cdIM(fdMZ):\n return BPFJ...
[ "0.6840505", "0.58800733", "0.58585167", "0.5775803", "0.5750774", "0.5646241", "0.5642325", "0.5622757", "0.55139077", "0.54337573", "0.5394669", "0.5361631", "0.5340441", "0.53323203", "0.52523786", "0.522468", "0.51703894", "0.5123428", "0.5114109", "0.50833535", "0.504690...
0.74389076
0
Ensure we can't create a picture with a nonexistent workplace.
def ASIH(YKHO): YKHO.client.force_authenticate(user=YKHO.admin) nPrm = {'name': 'random_picture', 'workplace': gxEw('workplace-detail', args=[999]), 'picture': YKHO.picture_file} geh0 = YKHO.client.post(gxEw('picture-list'), nPrm) hGN5 = {'workplace': ['Invalid hyperlink - Object does not exist.']} ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SkXx(YKHO):\n YKHO.client.force_authenticate(user=YKHO.user)\n nPrm = {'name': 'random_picture', 'workplace': gxEw('workplace-detail', args=[YKHO.workplace.id]), 'picture': YKHO.picture_file}\n geh0 = YKHO.client.post(gxEw('picture-list'), nPrm)\n hGN5 = {'detail': 'You do not have permission to pe...
[ "0.64864963", "0.6365992", "0.63229704", "0.62166965", "0.6166918", "0.6047974", "0.60431504", "0.5993887", "0.5920148", "0.5826049", "0.5788216", "0.57859945", "0.57810575", "0.5780152", "0.5766993", "0.5755643", "0.5730797", "0.5715384", "0.5714364", "0.5697723", "0.5693984...
0.7561519
0
Ensure we can't create a picture with an invalid file.
def dZq4(YKHO): YKHO.client.force_authenticate(user=YKHO.admin) nPrm = {'name': 'random_picture', 'workplace': gxEw('workplace-detail', args=[YKHO.workplace.id]), 'picture': 'invalid'} geh0 = YKHO.client.post(gxEw('picture-list'), nPrm) hGN5 = {'picture': ['The submitted data was not a file. Check the e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ysZB(YKHO):\n YKHO.assertRaises(IOError, KdlT.pil_image, aKaX(b'not an image'))", "def n2vP(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def alFC(YKHO):\n YKH...
[ "0.6752235", "0.67357385", "0.6721703", "0.6711036", "0.6683438", "0.65887845", "0.65755045", "0.6549918", "0.6511273", "0.64990735", "0.64329696", "0.6424221", "0.6407489", "0.64007914", "0.6397305", "0.63874567", "0.63789773", "0.6349755", "0.63325554", "0.6315212", "0.6311...
0.7273102
0
Ensure we can list pictures as an unauthenticated user.
def v_nO(YKHO): geh0 = YKHO.client.get(gxEw('picture-list'), format='json') hGN5 = {'count': 1, 'next': None, 'previous': None, 'results': [{'id': YKHO.picture.id, 'name': 'random_picture', 'picture': 'http://testserver' + YKHO.picture.picture.url, 'url': f'http://testserver/pictures/{YKHO.picture.id}', 'workpl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lGqV(YKHO):\n geh0 = YKHO.client.get('/images/permissions/')\n YKHO.assertEquals(geh0.status_code, 401)", "def YPN2(YKHO):\n Ylbp = YKHO.client.get(Dov0)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_401_UNAUTHORIZED)", "def XT6l(YKHO):\n QePW = i_PC.get('/', format='json')\n QePW.resolv...
[ "0.6419366", "0.63547474", "0.63375545", "0.6304717", "0.6289282", "0.6268728", "0.6254137", "0.6246393", "0.61215335", "0.61215335", "0.6086161", "0.6081278", "0.6060819", "0.6042688", "0.60418147", "0.6039348", "0.60283244", "0.6015879", "0.59897625", "0.59895736", "0.59790...
0.0
-1
Ensure we get not found when asking for a picture that doesn't exist.
def covq(YKHO): geh0 = YKHO.client.get(gxEw('picture-detail', kwargs={'pk': 999})) hGN5 = {'detail': 'Not found.'} YKHO.assertEqual(qQXR.loads(geh0.content), hGN5) YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xZrO(YKHO):\n U6MO = BfDw.calc_unique_picture_id()\n geh0 = YKHO.client.get('/api/picture/' + U6MO)\n YKHO.assertEqual(geh0.status_code, 404)", "def TlaZ(YKHO):\n try:\n uRlK.request.urlopen(YKHO.url + 'assets/new_image.png')\n YKHO.assertEqual(True, False)\n except uRlK.error.HT...
[ "0.7519789", "0.67508054", "0.6653112", "0.65931535", "0.6452361", "0.6316352", "0.61938393", "0.6167001", "0.6153271", "0.60021985", "0.59889895", "0.5985467", "0.59817916", "0.5979947", "0.5976724", "0.5965297", "0.5964025", "0.5957161", "0.59555364", "0.5947611", "0.593388...
0.6732125
2
reduce image by taking the even pixel in the even row
def zrnv(Xn71, qSUP): Xn71 = yIp6(Xn71, qSUP) Xn71 = yIp6(Xn71, qSUP.transpose()) return Xn71[::2, 1::2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pusg(Xn71):\n return Xn71[0::2, 0::2]", "def SkGW(LNo8):\n LNo8 = LNo8.copy()\n LNo8 = LNo8.copy()\n G1Hx = oyIN.array([oyIN.array([1, 4, 6, 4, 1]) / 16.0])\n Uqux = oyIN.dot(G1Hx.T, G1Hx)\n XHkY = XC5k.filter2D(LNo8, -1, Uqux)\n return XHkY[::2, ::2]", "def KO8L(Ux0P):\n VXjJ = hnI...
[ "0.8094446", "0.77107304", "0.67985034", "0.6784032", "0.672357", "0.66855043", "0.6609911", "0.659807", "0.65626496", "0.6508796", "0.64183784", "0.6287371", "0.62718534", "0.6241843", "0.62328184", "0.62305444", "0.6226102", "0.6203571", "0.61656356", "0.6154961", "0.615272...
0.63499653
11
reduce image by taking the even pixel in the even row
def sane(Xn71, qSUP, TZOR): E3D9, ywwl = TZOR TUFc = oyIN.zeros((E3D9, ywwl)) TUFc[::2, 1::2] = Xn71 TUFc = yIp6(TUFc, qSUP) TUFc = yIp6(TUFc, qSUP.transpose()) return TUFc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pusg(Xn71):\n return Xn71[0::2, 0::2]", "def SkGW(LNo8):\n LNo8 = LNo8.copy()\n LNo8 = LNo8.copy()\n G1Hx = oyIN.array([oyIN.array([1, 4, 6, 4, 1]) / 16.0])\n Uqux = oyIN.dot(G1Hx.T, G1Hx)\n XHkY = XC5k.filter2D(LNo8, -1, Uqux)\n return XHkY[::2, ::2]", "def KO8L(Ux0P):\n VXjJ = hnI...
[ "0.8094529", "0.77108043", "0.679838", "0.6784405", "0.6723548", "0.66850775", "0.661005", "0.65987694", "0.6562226", "0.65072083", "0.64193076", "0.63501555", "0.6287861", "0.62717795", "0.62424296", "0.6231369", "0.62303805", "0.6226317", "0.62039745", "0.6165284", "0.61547...
0.0
-1
this function takes in a float and returns its str rep
def gTzM(exwG: float) -> str: return str(exwG)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uP4N(yIp6, wEf2):\n return format(yIp6, '%.12g', wEf2)", "def str(wEf2):\n return format('%.12g', wEf2)", "def pVRp(BWXx):\n return str(oyIN.round(BWXx, 1)).replace('.', 'p')", "def KNYb(eHNT):\n AjzU = OaeV.create_decimal(repr(eHNT))\n return format(AjzU, 'f')", "def d2Ed(BWXx):\n re...
[ "0.73149556", "0.72001094", "0.7186569", "0.6966275", "0.6947533", "0.68904674", "0.686397", "0.6833692", "0.6769671", "0.66895026", "0.66883534", "0.66817707", "0.6648769", "0.6648358", "0.66345376", "0.66113526", "0.66043687", "0.65990096", "0.65824455", "0.6564876", "0.656...
0.68944055
6
Redirects users based on whether they are in the admins groupli
def ymx3(QePW): if QePW.user.is_tribut: return vKnz('tribut_profile') elif QePW.user.is_author: return vKnz('author_home') else: return vKnz('login')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ymx3(QePW):\n if QePW.user.groups.filter(name='dg').exists():\n return vKnz('dg')\n elif QePW.user.groups.filter(name='directors').exists():\n return vKnz('nafdac')\n elif QePW.user.groups.filter(name='officers').exists():\n return vKnz('agents')\n else:\n return vKnz('i...
[ "0.78315246", "0.7469755", "0.699778", "0.6940759", "0.68835425", "0.687802", "0.6873968", "0.6872569", "0.67285335", "0.6703818", "0.668637", "0.6645998", "0.6628173", "0.6514489", "0.6487031", "0.6468401", "0.64243597", "0.6386279", "0.63658804", "0.6345333", "0.63337064", ...
0.65866095
13
Make sure a marker can report if it is a leaf marker or not
def KMSi(YKHO): from furious.marker_tree.identity_utils import leaf_persistence_id_from_group_id from furious.marker_tree.marker import Marker tnBu = Marker(id='polly') for WKvO in Ni9Y(3): tnBu.children.append(Marker(id=leaf_persistence_id_from_group_id(tnBu.id, WKvO))) Q41z = tnBu.children...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jwB3(YKHO):\n return False", "def jwB3(YKHO) -> bool:\n pass", "def loae():\n return False", "def loae(YKHO):\n return True", "def loae(YKHO):\n return False", "def loae() -> bool:\n return True", "def jwB3(YKHO):\n return YKHO.__dataStorer.isLeaf", "def jwB3(YKHO):\n retu...
[ "0.7266003", "0.71159506", "0.70856875", "0.6899004", "0.6895101", "0.6885301", "0.6836448", "0.683544", "0.68350214", "0.6762715", "0.6748691", "0.6723043", "0.6593892", "0.6593892", "0.6577309", "0.6483873", "0.6479605", "0.6474934", "0.644856", "0.6408049", "0.6373876", ...
0.78535146
0
Return a query with all subscriptions parents that use this subscription_id with resource_type. The query can be used to add extra filters when/where needed.
def EaLh(JuHa: UUID) -> _aLO: NoZd = Ces9.query.join(cGcE).options(ohiI('customer_descriptions')).join(nkgy).join(q_V5).filter(q_V5.resource_type.in_(_0bT)).filter(nkgy.value == str(JuHa)).with_entities(Ces9.subscription_id) JB47 = wTeh(cGcE) iZVt = wTeh(cGcE) JRk1 = Ces9.query.join(JB47.subscription).j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ympq(YKHO, t8lN):\n return", "def JUvj(JuHa: UUID) -> _aLO:\n NoZd = cGcE.query.join(nkgy).join(q_V5).filter(q_V5.resource_type.in_(_0bT)).filter(cGcE.subscription_id == JuHa).join(Ces9, nkgy.value == YWvJ(Ces9.subscription_id, I2jr)).with_entities(Ces9.subscription_id)\n JB47 = wTeh(cGcE)\n iZVt...
[ "0.6149271", "0.6008727", "0.5950606", "0.5824815", "0.57314736", "0.56316096", "0.53527105", "0.53406006", "0.53389204", "0.53087336", "0.529489", "0.5230903", "0.5169337", "0.5140592", "0.50964004", "0.5050243", "0.5050243", "0.50438637", "0.5033106", "0.49968073", "0.49832...
0.7272958
0
Pads `tensor` such that its shape is 0 mod `mod_paddings`.
def QGGP(vhpA, Gem6): ROpF = ZylS.shape(vhpA) def wv00(tpio, LOrY): r8hN = ZylS.mod(tpio, LOrY) return ZylS.cond(ZylS.math.equal(r8hN, 0), lambda: 0, lambda: LOrY - r8hN) LkVj = [(0, wv00(ROpF[YRbF], LOrY)) for YRbF, LOrY in enumerate(Gem6)] return ZylS.pad(vhpA, LkVj)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(vhpA, LkVj, Tuqy='CONSTANT', mWFP=None, XTLp=0):\n return ZylS.pad(vhpA, LkVj, mode=Tuqy, name=mWFP, constant_values=XTLp)", "def ED9e(g4y1, Ot1W):\n FpMw = Ot1W - 1\n bWa5 = FpMw // 2\n REHY = FpMw - bWa5\n PE9h = ZylS.pad(tensor=g4y1, paddings=[[0, 0], [bWa5, REHY], [bWa5, REHY], [0, 0]...
[ "0.763431", "0.7504247", "0.7465367", "0.7463674", "0.74387574", "0.7280274", "0.7277719", "0.72518814", "0.72439706", "0.72350097", "0.7099706", "0.7093154", "0.7031265", "0.70109475", "0.6986978", "0.6982014", "0.697948", "0.6954751", "0.6916651", "0.6899023", "0.6873569", ...
0.8821622
0
Creates a shepherd for dense tensor data.
def FIMM(YKHO, mWFP, yDqo, ieBb=None, wmvz=None, Gem6=None): YKHO._name = mWFP YKHO._element_shape = ZylS.TensorShape(ieBb) YKHO._dtype = yDqo YKHO._expand_dims = wmvz YKHO._mod_paddings = Gem6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1eO(oP0T):\n yDqo = oP0T.dtype\n begE = oP0T.device\n Xbds = oP0T.requires_grad\n _0VL = ht2j.nonzero(oP0T)\n if len(_0VL.shape) == 0:\n return ht2j.sparse_coo_tensor([], [], oP0T.shape, dtype=yDqo, device=begE, requires_grad=Xbds)\n _0VL = _0VL.t()\n hkxX = oP0T[tuple((_0VL[YRbF] ...
[ "0.5787795", "0.57652074", "0.5547911", "0.55436516", "0.53632575", "0.5327399", "0.5312093", "0.5288101", "0.5242406", "0.5205011", "0.5161444", "0.5141712", "0.51266056", "0.5099781", "0.5094238", "0.5090922", "0.5070859", "0.5055449", "0.5046758", "0.504356", "0.50433826",...
0.0
-1
Returns a dictionary mapping key names to Tensorflow shapes.
def l3bc(YKHO): return {YKHO.key(): YKHO._element_shape}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.train.NewCheckpointReader(V1C0)\n upTI = N5Pj.get_variable_to_shape_map()\n sjXb = iEow if iEow else upTI.keys()\n return {H5ew: tuple(upTI[H5ew]) for H5ew in sjXb}", "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.compat.v1.train.NewCheckpointReader(V1C0)\n u...
[ "0.7508149", "0.74567485", "0.74230546", "0.72652185", "0.70993483", "0.69070077", "0.67897004", "0.6619967", "0.6612991", "0.6553648", "0.64605683", "0.6349162", "0.63362783", "0.6197001", "0.6182393", "0.6134588", "0.61057484", "0.60925525", "0.60715973", "0.6031749", "0.60...
0.69960284
5
Returns a dictionary mapping key names to Tensorflow shapes.
def l3bc(YKHO): return {YKHO.dense_shape_key(): ZylS.TensorShape([2]), YKHO.source_indices_key(): ZylS.TensorShape([None]), YKHO.dest_indices_key(): ZylS.TensorShape([None])}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.train.NewCheckpointReader(V1C0)\n upTI = N5Pj.get_variable_to_shape_map()\n sjXb = iEow if iEow else upTI.keys()\n return {H5ew: tuple(upTI[H5ew]) for H5ew in sjXb}", "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.compat.v1.train.NewCheckpointReader(V1C0)\n u...
[ "0.750715", "0.7455595", "0.72642446", "0.7099493", "0.69971263", "0.6907139", "0.67901325", "0.6618331", "0.6614062", "0.6553601", "0.64615357", "0.6346568", "0.6338721", "0.6197156", "0.6181233", "0.6131358", "0.6106223", "0.60892934", "0.6073172", "0.6031495", "0.6023309",...
0.7422088
2
Converts a list of pairs to tf.Example features. This is called during tf.Example creation time and doesn't need to use Tensorflow ops.
def v1Bj(YKHO, kgDL, thZl): if kgDL: ldeU, WzpA = zip(*kgDL) else: ldeU, WzpA = ([], []) return {YKHO.dense_shape_key(): X3eO.int_feature(thZl), YKHO.source_indices_key(): X3eO.int_feature(ldeU), YKHO.dest_indices_key(): X3eO.int_feature(WzpA)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v1Bj(YKHO, kgDL, hkxX, thZl):\n if len(kgDL) != len(hkxX):\n raise AssertionError('Length of `pairs`: {} not equal to `values`: {}'.format(len(kgDL), len(hkxX)))\n bySB = super(Qzb4, YKHO).tf_example_features(kgDL, thZl)\n bySB[YKHO.values_key()] = X3eO.float32_feature(hkxX)\n return bySB", ...
[ "0.698415", "0.6772913", "0.67241544", "0.6675941", "0.66684175", "0.66081464", "0.657865", "0.65182966", "0.64967567", "0.6481139", "0.64702064", "0.646214", "0.6446253", "0.6446217", "0.64455605", "0.6445478", "0.64395225", "0.64096063", "0.6399475", "0.63288814", "0.631485...
0.7386709
0
Returns a list of initial values for the batching tf.while_loop. The return value here defines the shepherdspecific loop vars for a tf.while_loop that does dynamic batching. Updated values for these loop vars will get passed in to `batching_loop_body` and `batching_loop_results`.
def lMJH(YKHO): GE81 = ZylS.constant(0, dtype=ZylS.int64) HB3_ = ZylS.constant(0, dtype=ZylS.int64) Gexk = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infer_shape=False) sXZg = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infer_shape=F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMJH(YKHO):\n NTjO = ZylS.TensorArray(YKHO._dtype, size=0, dynamic_size=True, element_shape=None, infer_shape=False)\n G3vp = ZylS.constant(0, dtype=ZylS.int64)\n return [G3vp, NTjO]", "def lMJH(YKHO):\n NTjO = ZylS.TensorArray(ZylS.string, size=iEwV, dynamic_size=True, element_shape=None, infer_...
[ "0.655304", "0.64940894", "0.6483662", "0.6430784", "0.6362245", "0.63532066", "0.63532066", "0.6231403", "0.6228205", "0.6223657", "0.613896", "0.6020496", "0.60168254", "0.59516543", "0.593384", "0.593384", "0.5909692", "0.58922905", "0.58109546", "0.57844746", "0.57756954"...
0.7241702
0
Construct a SparseTensor representation of the relation from tensors. This can either be called with a decoded tf.Example, in which case this returns a sparse tensor for an individual instance, or with the result of `batching_loop_results`, in which case it returns a sparse tensor for the whole batch.
def OHrd(YKHO, x0Ih): thZl = x0Ih[YKHO.dense_shape_key()] ldeU = x0Ih[YKHO.source_indices_key()] WzpA = x0Ih[YKHO.dest_indices_key()] _0VL = ZylS.concat([ZylS.expand_dims(ldeU, 1), ZylS.expand_dims(WzpA, 1)], axis=1) hkxX = ZylS.ones_like(ldeU, dtype=ZylS.float32) return ZylS.sparse_reorder(ZylS...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvsU(YKHO, LVAh):\n o4Jx = [YKHO._convert_helper(a1PO) for a1PO in (LVAh.indices, LVAh.values, LVAh.dense_shape)]\n assert all((isinstance(z1Rg, pQXw) for z1Rg in o4Jx))\n if all((yzQ0.is_sparse_stacked for yzQ0 in o4Jx)):\n return BtZX.SparseTensor(*[yzQ0.t for yzQ0 in o4Jx])\n assert not a...
[ "0.62183034", "0.6144629", "0.6123621", "0.5945603", "0.59052545", "0.5775656", "0.5752451", "0.5715579", "0.5697736", "0.56760657", "0.56708354", "0.5607467", "0.55916655", "0.5577994", "0.55711406", "0.5486982", "0.54646105", "0.5446224", "0.5446224", "0.5446224", "0.544622...
0.56634533
11
Returns a dictionary mapping key names to Tensorflow shapes.
def l3bc(YKHO): N8OZ = super(Qzb4, YKHO).feature_shapes() N8OZ[YKHO.values_key()] = ZylS.TensorShape([None]) return N8OZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.train.NewCheckpointReader(V1C0)\n upTI = N5Pj.get_variable_to_shape_map()\n sjXb = iEow if iEow else upTI.keys()\n return {H5ew: tuple(upTI[H5ew]) for H5ew in sjXb}", "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.compat.v1.train.NewCheckpointReader(V1C0)\n u...
[ "0.750715", "0.7455595", "0.7422088", "0.72642446", "0.7099493", "0.69971263", "0.6907139", "0.67901325", "0.6618331", "0.6614062", "0.6553601", "0.64615357", "0.6338721", "0.6197156", "0.6181233", "0.6131358", "0.6106223", "0.60892934", "0.6073172", "0.6031495", "0.6023309",...
0.6346568
12
Converts a list of pairs to tf.Example features. This is called during tf.Example creation time and doesn't need to use Tensorflow ops.
def v1Bj(YKHO, kgDL, hkxX, thZl): if len(kgDL) != len(hkxX): raise AssertionError('Length of `pairs`: {} not equal to `values`: {}'.format(len(kgDL), len(hkxX))) bySB = super(Qzb4, YKHO).tf_example_features(kgDL, thZl) bySB[YKHO.values_key()] = X3eO.float32_feature(hkxX) return bySB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v1Bj(YKHO, kgDL, thZl):\n if kgDL:\n ldeU, WzpA = zip(*kgDL)\n else:\n ldeU, WzpA = ([], [])\n return {YKHO.dense_shape_key(): X3eO.int_feature(thZl), YKHO.source_indices_key(): X3eO.int_feature(ldeU), YKHO.dest_indices_key(): X3eO.int_feature(WzpA)}", "def E9Lq(_73Q, EKkb, G8d9, b0j5)...
[ "0.73853284", "0.6774841", "0.6726243", "0.66779065", "0.66699547", "0.66086614", "0.65786093", "0.65175617", "0.64980245", "0.6483234", "0.64713496", "0.64647645", "0.644821", "0.64475185", "0.64471406", "0.64459515", "0.6440951", "0.64103764", "0.63986385", "0.6329735", "0....
0.6983995
1
Returns a list of initial values for the batching tf.while_loop. The return value here defines the shepherdspecific loop vars for a tf.while_loop that does dynamic batching. Updated values for these loop vars will get passed in to `batching_loop_body` and `batching_loop_results`.
def lMJH(YKHO): RG5t = super(Qzb4, YKHO).batching_loop_initial_values() rOUe = ZylS.TensorArray(YKHO.feature_types()[YKHO.values_key()], size=iEwV, dynamic_size=True, element_shape=None, infer_shape=False) return vmPr(RG5t.source_offset, RG5t.dest_offset, RG5t.source_indices_ta, RG5t.dest_indices_ta, rOUe)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lMJH(YKHO):\n GE81 = ZylS.constant(0, dtype=ZylS.int64)\n HB3_ = ZylS.constant(0, dtype=ZylS.int64)\n Gexk = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infer_shape=False)\n sXZg = ZylS.TensorArray(ZylS.int64, size=iEwV, dynamic_size=True, element_shape=None, infe...
[ "0.7241747", "0.65529144", "0.6493144", "0.6485916", "0.64300036", "0.6352432", "0.6352432", "0.62335324", "0.6228802", "0.6224407", "0.6141267", "0.6022982", "0.60194135", "0.5954062", "0.59363955", "0.59363955", "0.5912261", "0.5893598", "0.5812426", "0.5786063", "0.5776428...
0.63624525
5
Construct a SparseTensor representation of the relation from tensors. This can either be called with a decoded tf.Example, in which case this returns a sparse tensor for an individual instance, or with the result of `batching_loop_results`, in which case it returns a sparse tensor for the whole batch.
def OHrd(YKHO, x0Ih): thZl = x0Ih[YKHO.dense_shape_key()] ldeU = x0Ih[YKHO.source_indices_key()] WzpA = x0Ih[YKHO.dest_indices_key()] hkxX = x0Ih[YKHO.values_key()] _0VL = ZylS.concat([ZylS.expand_dims(ldeU, 1), ZylS.expand_dims(WzpA, 1)], axis=1) return ZylS.sparse_reorder(ZylS.SparseTensor(ind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GvsU(YKHO, LVAh):\n o4Jx = [YKHO._convert_helper(a1PO) for a1PO in (LVAh.indices, LVAh.values, LVAh.dense_shape)]\n assert all((isinstance(z1Rg, pQXw) for z1Rg in o4Jx))\n if all((yzQ0.is_sparse_stacked for yzQ0 in o4Jx)):\n return BtZX.SparseTensor(*[yzQ0.t for yzQ0 in o4Jx])\n assert not a...
[ "0.62205553", "0.6147995", "0.6126777", "0.5947109", "0.59078056", "0.5778492", "0.5754847", "0.57183695", "0.5699728", "0.5678881", "0.5665702", "0.5609326", "0.55934227", "0.55807275", "0.557341", "0.5488131", "0.54673964", "0.5449057", "0.5449057", "0.5449057", "0.5449057"...
0.56730986
10
Creates a shepherd for dense tensor data.
def FIMM(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1eO(oP0T):\n yDqo = oP0T.dtype\n begE = oP0T.device\n Xbds = oP0T.requires_grad\n _0VL = ht2j.nonzero(oP0T)\n if len(_0VL.shape) == 0:\n return ht2j.sparse_coo_tensor([], [], oP0T.shape, dtype=yDqo, device=begE, requires_grad=Xbds)\n _0VL = _0VL.t()\n hkxX = oP0T[tuple((_0VL[YRbF] ...
[ "0.5787795", "0.57652074", "0.5547911", "0.55436516", "0.53632575", "0.5327399", "0.5312093", "0.5288101", "0.5242406", "0.5205011", "0.5161444", "0.5141712", "0.51266056", "0.5099781", "0.5094238", "0.5090922", "0.5070859", "0.5055449", "0.5046758", "0.504356", "0.50433826",...
0.0
-1
Returns a dictionary mapping key names to Tensorflow shapes.
def l3bc(YKHO): return {YKHO.key(): [None]}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.train.NewCheckpointReader(V1C0)\n upTI = N5Pj.get_variable_to_shape_map()\n sjXb = iEow if iEow else upTI.keys()\n return {H5ew: tuple(upTI[H5ew]) for H5ew in sjXb}", "def R0Ur(V1C0, iEow=None):\n N5Pj = ZylS.compat.v1.train.NewCheckpointReader(V1C0)\n u...
[ "0.75063217", "0.74550784", "0.7421078", "0.72635", "0.7097589", "0.6995828", "0.6905903", "0.6789541", "0.6618358", "0.66131663", "0.6460509", "0.63456887", "0.63370353", "0.61967295", "0.6181371", "0.6131012", "0.6105879", "0.60890996", "0.6072585", "0.60302037", "0.6021169...
0.65521127
10
Update the weights of the target actor and target critic networks.
def Jrmf(YKHO, rbnN: bool=False) -> None: if rbnN: GamQ = [] _mSQ = YKHO.model.get_weights() IxwW = YKHO.target_model.get_weights() for _mSQ, IxwW in zip(_mSQ, IxwW): GamQ.append(YKHO.tau * _mSQ + (1 - YKHO.tau) * IxwW) YKHO.target_model.set_weights(GamQ) else...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xy_z(YKHO):\n BSzL = YKHO.actor_local.get_weights()\n zulR = YKHO.actor_target.get_weights()\n for YRbF in range(len(zulR)):\n zulR[YRbF] = YKHO.tau * BSzL[YRbF] + (1 - YKHO.tau) * zulR[YRbF]\n YKHO.actor_target.set_weights(zulR)\n uT9W = YKHO.critic_local.get_weights()\n dbnz = YKHO.c...
[ "0.7984309", "0.7804753", "0.7758657", "0.72657615", "0.7194871", "0.7057992", "0.7036339", "0.7032044", "0.6998196", "0.6966369", "0.6943821", "0.693529", "0.69331527", "0.68913996", "0.68889505", "0.68790394", "0.6876354", "0.68274873", "0.6822735", "0.6796785", "0.67812115...
0.69307905
13
Get linear trendline figure.
def dNGY(jQ3Z): return Xlvp.scatter(jQ3Z, x='Approximated', y='Real', trendline='ols', title='Reference Group Regression Approximation')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P6GS(dy_H, aNZO, qfpW='royalblue', ZSG5=1, Rw5g='dashed'):\n WKvO = dy_H.index.values\n LVAh = dy_H.values\n VMex, BlB8, *qIxc = nZ2P(WKvO, LVAh)\n epBp = oyIN.array([VMex, BlB8])\n XP5J = oyIN.poly1d(epBp)\n uQWp = epBp.round(2).astype(str)\n uQWp[1] = epBp[1].astype(int).astype(str)\n ...
[ "0.74556786", "0.692686", "0.6791655", "0.6628134", "0.66190785", "0.65996706", "0.6451921", "0.625347", "0.6166336", "0.6165237", "0.61020285", "0.6089689", "0.6077803", "0.60487723", "0.60179824", "0.59730995", "0.5972889", "0.5966567", "0.59432244", "0.5898173", "0.5897628...
0.0
-1
Renders the Login page
def RMV5(QePW): return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XnII():\n return TvZl('login_form.html')", "def RMV5():\n return TvZl('login.html')", "def MC83():\n return TvZl('loginpage.html')", "def MC83():\n return TvZl('engineerlogin.html')", "def MC83():\n return TvZl('html/login.html', title='HR-Central Login')", "def MC83():\n return TvZ...
[ "0.8555105", "0.8531778", "0.8500445", "0.8484934", "0.84704167", "0.8451674", "0.8451674", "0.8448435", "0.84411514", "0.84411514", "0.84411514", "0.8438672", "0.84129703", "0.84117943", "0.84117943", "0.8393712", "0.83741856", "0.8359771", "0.8268339", "0.82576686", "0.8231...
0.72781545
82
Class instance initialization 1. Setup Open AI API Key 2. Setup Open AI API Model(s)
def FIMM(YKHO, F5fx: Optional[str]=None, wcvt: Optional[str]=yUiO, fTZl: str=ya_h, p8EM: str=eL2Q): dV5o: str = 'init()' if 'OPENAI_API_KEY' in Hy7s.environ: I45O.info("%s: using 'OPENAI_API_KEY' environment variable for Open AI API Key.", dV5o) x5ah.api_key = Hy7s.environ['OPENAI_API_KEY'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E14P(YKHO, **B2fa):\n from .. import Devices, Instances, Users, Vulnerabilities\n YKHO.api_devices: Devices = Devices(auth=YKHO.auth, **B2fa)\n 'API model for cross reference.'\n YKHO.api_users: Users = Users(auth=YKHO.auth, **B2fa)\n 'API model for cross reference.'\n YKHO.api_vulnerabilitie...
[ "0.715102", "0.6836694", "0.6828825", "0.68193394", "0.6794236", "0.6794236", "0.67448217", "0.67341197", "0.6684238", "0.66628546", "0.66628546", "0.66628546", "0.66496223", "0.6627808", "0.6620802", "0.66159326", "0.66044986", "0.6582016", "0.6540489", "0.6528469", "0.65097...
0.70237577
1
Normalise the output of the fitness function. This allows them to be interepted as probabilities.
def ZcRu(YKHO, wkbQ): mriV = wkbQ.sum() mImL = oyIN.array([(mriV - eHNT) / mriV for eHNT in wkbQ]) XP5J = mImL / mImL.sum() return XP5J
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZbVY(wkbQ):\n wjRY = sum(wkbQ)\n if wjRY != 0:\n return [WgYu / wjRY for WgYu in wkbQ]\n else:\n return 0", "def NkkI(YKHO):\n epBp = sum([YKHO.prob(tTpl) for tTpl in YKHO.support()])\n assert epBp > 0.0, 'degenerate distribution ' + str(YKHO)\n Cwt5 = 1.0 / epBp\n for tTpl...
[ "0.71128637", "0.68976337", "0.6842341", "0.6731224", "0.66606927", "0.6618063", "0.6615542", "0.6482335", "0.64750177", "0.64700925", "0.6422701", "0.63069624", "0.6290817", "0.62739146", "0.6257017", "0.6257017", "0.62484455", "0.6217057", "0.61704665", "0.6156044", "0.6146...
0.8008375
0
Choose a random subset of te population weighted by their fitness probability. Chromosomes with a higher fitness (greater probability) are more likely to be selected than other individuals.
def F8Os(YKHO, CHNM, mImL): jrD8 = CHNM.shape[0] rpxG = oyIN.arange(jrD8) or8S = oyIN.random.choice(rpxG, size=YKHO._population_size, p=mImL, replace=True) return CHNM[or8S]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nKFh(BEuN, wkbQ, PODZ, jbYh=0):\n JxU2 = wkbQ / oyIN.sum(oyIN.nan_to_num(wkbQ))\n JxU2[oyIN.isnan(JxU2)] = 0\n dsCP = oyIN.argsort(wkbQ)[-jbYh:]\n qtFp = oyIN.random.choice(BEuN.shape[0], PODZ, p=JxU2)\n return (BEuN[qtFp, :], BEuN[dsCP, :])", "def EfUA(YKHO, H6tO: Generation):\n YYWD = sum...
[ "0.783684", "0.77561635", "0.7732904", "0.7584315", "0.75271183", "0.74673814", "0.7448169", "0.7419374", "0.7401172", "0.7377809", "0.73647565", "0.7354347", "0.7348822", "0.7314164", "0.7314164", "0.7314164", "0.7301856", "0.7281462", "0.72694945", "0.7260964", "0.72493297"...
0.7612245
3
Name of this alias.
def Fm0u(YKHO) -> str: return YKHO._values.get('alias_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return f'{YKHO.alias}'", "def mWFP(YKHO):\n return YKHO._alias", "def mWFP(YKHO) -> str:\n if YKHO.alias is not None:\n return YKHO.alias\n return YKHO.original_name", "def Fm0u(YKHO):\n return YKHO._alias_name", "def Fm0u(YKHO) -> str:\n return HEOD.get(YKHO, 'al...
[ "0.92101455", "0.9004251", "0.87988484", "0.8652299", "0.8639627", "0.8639627", "0.8619391", "0.8607273", "0.8555997", "0.85002553", "0.82650656", "0.82650656", "0.813746", "0.81064683", "0.8105691", "0.80833113", "0.80833113", "0.8054287", "0.8054287", "0.8054287", "0.805428...
0.84071213
10
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
13
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
8
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
11
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
12
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
9
The CloudFormation parameter that represents the name of the S3 Bucket where the Lambda code will be located in. Must be of type 'String'. default
def WYhE(YKHO) -> laHg.Optional[lTJ4.core.CfnParameter]: return YKHO._values.get('bucket_name_param')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFqg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 's3_bucket_name')", "def l7rj(YKHO):\n return YKHO.conf['aws']['bucket_name']", "def l7rj(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'bucket_name')", "def l7rj(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'bucket_name')", "d...
[ "0.8046698", "0.7685015", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "0.7649079", "...
0.73296887
28
The CloudFormation parameter that represents the path inside the S3 Bucket where the Lambda code will be located at. Must be of type 'String'. default
def t8nS(YKHO) -> laHg.Optional[lTJ4.core.CfnParameter]: return YKHO._values.get('object_key_param')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cFqg(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 's3_bucket_name')", "def UOMI(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 's3_uri')", "def ABwj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 's3_bucket')", "def ABwj(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO,...
[ "0.69903976", "0.68472517", "0.6736057", "0.6736057", "0.6731506", "0.6656237", "0.6622824", "0.65579206", "0.6524419", "0.64972997", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0.64930433", "0...
0.0
-1
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
14
The CloudFormation resource type name for this resource class.
def oFgO(Emd4) -> str: return HEOD.sget(Emd4, 'CFN_RESOURCE_TYPE_NAME')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zbTK(Emd4):\n return 'type_name'", "def Qjbs(YKHO) -> str:\n return YKHO.__class__.__name__.upper()", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')", "def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'res...
[ "0.85258776", "0.84476304", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80614", "0.80074334", "0.78710496", "0.78710496", "0.7804131", "0.7748175", "0.7748175", "0.774817...
0.86070603
10
Create a parameters map from this instance's CloudFormation parameters. It returns a map with 2 keys that correspond to the names of the parameters defined in this Lambda code, and as values it contains the appropriate expressions pointing at the provided S3 location (most likely, obtained from a CodePipeline Artifact ...
def bD1G(YKHO, *, l7rj: str, Mpj_: str, LBsY: typing.Optional[str]=None) -> laHg.Mapping[str, laHg.Any]: Rci7 = lTJ4.aws_s3.Location(bucket_name=l7rj, object_key=Mpj_, object_version=LBsY) return HEOD.invoke(YKHO, 'assign', [Rci7])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKVE(YKHO):\n NArs = {}\n if not YKHO.run_locally:\n NArs.update({'aws_access_key_id': YKHO._get_aws_access_key(), 'AWS_ACCESS_KEY_ID': YKHO._get_aws_access_key(), 'AWS_ACCESS_KEY': YKHO._get_aws_access_key(), 'aws_secret_acces_key': YKHO._get_aws_secret_access_key(), 'AWS_SECRET_KEY': YKHO._get_a...
[ "0.58742356", "0.57338464", "0.5584349", "0.5537773", "0.54851913", "0.5448089", "0.5408006", "0.5407445", "0.53997135", "0.5386943", "0.5349501", "0.5330107", "0.530313", "0.52998173", "0.5289562", "0.524754", "0.52470434", "0.52435094", "0.52413905", "0.52380896", "0.522239...
0.0
-1
The location of the code in S3 (mutually exclusive with ``inlineCode``).
def Tv1u(YKHO) -> laHg.Optional[lTJ4.aws_s3.Location]: return YKHO._values.get('s3_location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SvR9(YKHO) -> 'S3Location':\n return YKHO._values.get('s3_output_location')", "def Tv1u(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 's3_location')", "def r7DA(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'artifact_s3_location')", "def r7DA(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKH...
[ "0.6901891", "0.68848413", "0.6714034", "0.64032507", "0.63243264", "0.6289364", "0.59547865", "0.5947355", "0.5923693", "0.58349824", "0.5827692", "0.5768601", "0.572626", "0.56113553", "0.55627024", "0.5528678", "0.55262625", "0.54759026", "0.5472356", "0.54718065", "0.5456...
0.6510553
3
The Amazon Resource Name (ARN) of the event source. Any record added to this stream can invoke the Lambda function.
def Zgk0(YKHO) -> str: return YKHO._values.get('event_source_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2NQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'lambda_arn')", "def B2NQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'lambda_arn')", "def FVgh(YKHO) -> str:\n return HEOD.get(YKHO, 'streamArn')", "def FVgh(YKHO) -> str:\n return HEOD.get(YKHO, 'streamArn')", "def FVgh(YKHO) -> str:\n r...
[ "0.7593396", "0.74315155", "0.6903922", "0.6903922", "0.6639133", "0.6483289", "0.6482999", "0.6482641", "0.6468712", "0.6460232", "0.6418725", "0.6418725", "0.6418725", "0.6418725", "0.6418725", "0.6418725", "0.63091755", "0.6285795", "0.6257879", "0.6210718", "0.62083894", ...
0.77984524
1
The Amazon Resource Name (ARN) of the event source. Any record added to this stream can invoke the Lambda function.
def Zgk0(YKHO) -> str: return YKHO._values.get('event_source_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B2NQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'lambda_arn')", "def B2NQ(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'lambda_arn')", "def FVgh(YKHO) -> str:\n return HEOD.get(YKHO, 'streamArn')", "def FVgh(YKHO) -> str:\n return HEOD.get(YKHO, 'streamArn')", "def FVgh(YKHO) -> str:\n r...
[ "0.75932074", "0.74302", "0.6903057", "0.6903057", "0.6638557", "0.64836115", "0.64822733", "0.6481385", "0.6467828", "0.6460396", "0.6417237", "0.6417237", "0.6417237", "0.6417237", "0.6417237", "0.6417237", "0.6311184", "0.628516", "0.62569535", "0.6211348", "0.62080383", ...
0.7798312
0
The target AWS Lambda function.
def pan_(YKHO) -> 'IFunction': return YKHO._values.get('target')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n return", "async def _lambda_function(YKHO, tvqc: RequestEnvelope, QpfX: Any) -> cuzp[str, ImMB]:\n RYKJ = YKHO._skill.serializer.deserialize(payload=qQXR.dumps(tvqc), obj_type=dK2J)\n Cmq8 = jWwE(logger=bo34, request_id=RYKJ.request.request_id)\n Cmq8.info('Session ID: %s', RY...
[ "0.6576531", "0.6552187", "0.6462065", "0.641446", "0.6290271", "0.6256035", "0.61770236", "0.6173293", "0.6167868", "0.6167868", "0.6167868", "0.61441624", "0.61126304", "0.60980916", "0.6087387", "0.5990257", "0.5983647", "0.5964667", "0.5943584", "0.5930204", "0.59281904",...
0.6521947
2
Represents a Lambda function defined outside of this stack.
def FIMM(YKHO, *, y7eY: str, LmAn: typing.Optional[aws_cdk.aws_iam.IRole]=None, ANtU: typing.Optional[aws_cdk.aws_ec2.ISecurityGroup]=None, fEOc: typing.Optional[str]=None): YKHO._values = {'function_arn': y7eY} if LmAn is not None: YKHO._values['role'] = LmAn if ANtU is not None: YKHO._valu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n return YKHO._values.get('lambda_')", "def w4rS(YKHO) -> 'IFunction':\n ...", "def Zlsf(YKHO):\n return YKHO._Lambda", "de...
[ "0.76107436", "0.76107436", "0.7382565", "0.7276675", "0.7081394", "0.69476414", "0.65704775", "0.6444623", "0.63837576", "0.61820674", "0.6160861", "0.60722977", "0.60331565", "0.5954966", "0.5917768", "0.59027326", "0.59012043", "0.58965915", "0.58840084", "0.5880206", "0.5...
0.0
-1
The ARN of the Lambda function.
def y7eY(YKHO) -> str: return YKHO._values.get('function_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return ...
[ "0.81931645", "0.81931645", "0.81931645", "0.81931645", "0.81931645", "0.81931645", "0.8036954", "0.77829707", "0.7522121", "0.74365646", "0.74365646", "0.685367", "0.685367", "0.6765408", "0.6765408", "0.6765408", "0.6765408", "0.6765408", "0.6765408", "0.6765408", "0.676540...
0.72171146
11
The IAM execution role associated with this function. If the role is not specified, any rolerelated operations will noop.
def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: return YKHO._values.get('role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...", "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n ...", "def t7An():\n import sagemaker as vg0C\n _raR = vg0C.get_execution_role()\n return f'{_raR}'", "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(...
[ "0.7445191", "0.7445191", "0.723892", "0.7231691", "0.7231691", "0.7231691", "0.7231691", "0.7231691", "0.7231691", "0.7104206", "0.7104206", "0.7104206", "0.7104206", "0.7104206", "0.7104206", "0.7104206", "0.70353127", "0.70353127", "0.7021375", "0.7021375", "0.7021375", ...
0.7107809
11
Id of the security group of this Lambda, if in a VPC. This needs to be given in order to support allowing connections to this Lambda. deprecated
def fEOc(YKHO) -> laHg.Optional[str]: return YKHO._values.get('security_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEOc(YKHO):\n return YKHO.network.regional_network.vpc.default_security_group_id", "def fEOc(YKHO) -> h8nf[qe4Y.Input[str]]:\n qmLP.warn(\"Field 'security_group_id' has been deprecated from provider version 1.145.0. New field 'security_group_ids' instead\", DeprecationWarning)\n qe4Y.log.warn(\"secu...
[ "0.79650646", "0.75562435", "0.75562435", "0.7382571", "0.7382571", "0.7267985", "0.7248345", "0.7067184", "0.6954795", "0.68991405", "0.6823795", "0.68222183", "0.68222183", "0.68222183", "0.68222183", "0.68222183", "0.67993575", "0.6749764", "0.66501606", "0.6638895", "0.66...
0.6988323
8
The name of the function (within your source code) that Lambda calls to start running your code. For more information, see the Handler property in the AWS Lambda Developer Guide.
def DCgT(YKHO) -> str: return YKHO._values.get('handler')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n return", "def cfQO(tvqc, QpfX):\n bo34.debug('event.bot.name={}'.format(tvqc['bot']['name']))\n return ypeQ(tvqc)", "def mkPq(YKHO) -> str:\n return HEOD.get(YKHO, 'functionName')", "def mkPq(YKHO) -> str:\n return HEOD.get(YKHO, 'functionName')", "def mkPq(YKHO) -> s...
[ "0.6540395", "0.65038484", "0.6432262", "0.6432262", "0.6432262", "0.6432262", "0.6432262", "0.6432262", "0.64082205", "0.64082205", "0.639393", "0.63414675", "0.6339715", "0.6339715", "0.63103646", "0.62901694", "0.62901694", "0.6243894", "0.62022775", "0.6181038", "0.614852...
0.5948586
34
The runtime environment for the Lambda function that you are uploading. For valid values, see the Runtime property in the AWS Lambda Developer Guide.
def Qvn0(YKHO) -> 'Runtime': return YKHO._values.get('runtime')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qvn0(YKHO):\n return YKHO.conf['aws']['runtime']", "def Qvn0(YKHO) -> laHg.Optional[lTJ4.aws_lambda.Runtime]:\n return YKHO._values.get('runtime')", "def uDN8(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'runtime_environment_variables')", "def uDN8(YKHO) -> h8nf...
[ "0.66475713", "0.6521583", "0.65119714", "0.65119714", "0.6106851", "0.60170186", "0.59944785", "0.5934208", "0.58722675", "0.5859664", "0.58487374", "0.580074", "0.5790434", "0.5790434", "0.5790434", "0.5766869", "0.57450444", "0.57358587", "0.57358587", "0.57358587", "0.573...
0.568604
23
The number of days log events are kept in CloudWatch Logs. When updating this property, unsetting it doesn't remove the log retention policy. To remove the retention policy, set the value to ``Infinity``. default
def oP16(YKHO) -> laHg.Optional[lTJ4.aws_logs.RetentionDays]: return YKHO._values.get('log_retention')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RAiD(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'retention_in_days')", "def oC4a(YKHO) -> lTJ4.aws_logs.RetentionDays:\n return YKHO._values.get('retention')", "def zA8O(YKHO) -> int:\n return qe4Y.get(YKHO, 'max_retention_days')", "def RAiD(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(...
[ "0.7184275", "0.7175742", "0.70726395", "0.7051244", "0.7051244", "0.7051244", "0.7022643", "0.6992211", "0.6992211", "0.6930487", "0.6927662", "0.6924496", "0.6845068", "0.68346363", "0.67955077", "0.6556099", "0.6556099", "0.65189546", "0.65189546", "0.6445464", "0.6445464"...
0.7323922
1
The IAM role for the Lambda function associated with the custom resource that sets the retention policy. default
def UfsQ(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: return YKHO._values.get('log_retention_role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngPz(YKHO) -> str:\n return 'arn:aws:iam::%s:role/sfiniGenerated' % YKHO.session.account_id", "def lU21(YKHO) -> str:\n return qe4Y.get(YKHO, 'default_iam_role_arn')", "def cuh1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'assume_role_policy')", "def cuh1(YKHO) -> qe4Y.Output[str]:\n re...
[ "0.6990737", "0.64974725", "0.6442524", "0.63922447", "0.6368896", "0.62879014", "0.62879014", "0.6188232", "0.61862177", "0.61862177", "0.61133265", "0.61133265", "0.61133265", "0.61122274", "0.61122274", "0.61122274", "0.61122274", "0.61122274", "0.61122274", "0.61122274", ...
0.65866745
2
The amount of memory, in MB, that is allocated to your Lambda function. Lambda uses this value to proportionally allocate the amount of CPU power. For more information, see Resource Model in the AWS Lambda Developer Guide. default
def f0f2(YKHO) -> laHg.Optional[HEOD.Number]: return YKHO._values.get('memory_size')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oLFJ(YKHO):\n return 2500", "def oLFJ(YKHO):\n return 2500", "def oLFJ(YKHO):\n return 2500", "def oLFJ(YKHO):\n return 2500", "def D42v(YKHO) -> float:\n return qe4Y.get(YKHO, 'memory_in_mb')", "def Nzcp(YKHO) -> float:\n return qe4Y.get(YKHO, 'memory_in_gb')", "def D42v(YKHO) ->...
[ "0.75907433", "0.75907433", "0.75907433", "0.75907433", "0.73483163", "0.72131914", "0.7182376", "0.7139701", "0.70456654", "0.7037701", "0.6999442", "0.6984748", "0.6950294", "0.69481075", "0.68891996", "0.68891996", "0.6873713", "0.6873713", "0.6873713", "0.6835206", "0.681...
0.6191467
95
What security group to associate with the Lambda's network interfaces. Only used if 'vpc' is supplied. default
def ANtU(YKHO) -> laHg.Optional[lTJ4.aws_ec2.ISecurityGroup]: return YKHO._values.get('security_group')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fEOc(YKHO):\n return YKHO.network.regional_network.vpc.default_security_group_id", "def gLpe(YKHO) -> h8nf[qe4Y.Input['NetworkSecurityGroupArgs']]:\n return qe4Y.get(YKHO, 'network_security_group')", "def gLpe(YKHO) -> h8nf[qe4Y.Input['NsgReferenceArgs']]:\n return qe4Y.get(YKHO, 'network_security...
[ "0.7448965", "0.684072", "0.6676469", "0.64316493", "0.6400136", "0.6315701", "0.6315701", "0.60895836", "0.60544825", "0.5985004", "0.5949096", "0.5836426", "0.583433", "0.58324003", "0.5812665", "0.5812665", "0.5774553", "0.57470834", "0.5698543", "0.56899536", "0.5669462",...
0.63196754
5
VPC network to place Lambda network interfaces. Specify this if the Lambda function needs to access resources in a VPC. default
def VgIM(YKHO) -> laHg.Optional[lTJ4.aws_ec2.IVpc]: return YKHO._values.get('vpc')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vm5L(GPtr, dJ1p):\n global VPC_CONN\n if not fHAc:\n fHAc = gP7g.vpc.connect_to_region(region_name=SJlP, aws_access_key_id=emKQ, aws_secret_access_key=E4Up)\n VgIM = fHAc.create_vpc(GPtr['vpc-options']['cidr'])\n E3t1(taggable=VgIM, tags=dJ1p)\n while VgIM.state != 'available':\n t...
[ "0.5885053", "0.5876213", "0.5629097", "0.5622833", "0.5622833", "0.55779076", "0.55200166", "0.5518163", "0.54872096", "0.54389745", "0.5400879", "0.53911364", "0.53866863", "0.53866863", "0.53506464", "0.53506464", "0.5342441", "0.53234863", "0.5313526", "0.5313526", "0.530...
0.0
-1
The ARN fo the function.
def y7eY(YKHO) -> str: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return ...
[ "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.7570522", "0.7570522", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", ...
0.7448104
8
Whether or not this Lambda function was bound to a VPC. If this is is ``false``, trying to access the ``connections`` object will fail.
def ESEs(YKHO) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESEs(YKHO) -> bool:\n return HEOD.get(YKHO, 'isBoundToVpc')", "def ESEs(YKHO) -> bool:\n return HEOD.get(YKHO, 'isBoundToVpc')", "def Oeh0(YKHO):\n return len(YKHO._interfaces) > 1", "def UYE0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_connections')", "def UYE0(YKHO) ->...
[ "0.7625856", "0.7625856", "0.6909174", "0.67964786", "0.67964786", "0.6739499", "0.6249457", "0.6233755", "0.6004229", "0.597303", "0.597303", "0.5958377", "0.5957951", "0.5957951", "0.5897877", "0.58583975", "0.58583975", "0.57586634", "0.5745356", "0.5664915", "0.56051946",...
0.7762731
0
The IAM role associated with this function.
def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def oJGu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'iam_role')", "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO,...
[ "0.8218676", "0.8218676", "0.81048834", "0.79853976", "0.79853976", "0.79853976", "0.79853976", "0.79853976", "0.79853976", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.77802557", "0.77802557", "0.77802557", "0.778...
0.7644911
51
The ARN fo the function.
def y7eY(YKHO) -> str: return HEOD.get(YKHO, 'functionArn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')", "def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')", "def y7eY(YKHO) -> str:\n ...", "def y7eY(YKHO) -> str:\n ...", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "...
[ "0.7570522", "0.7570522", "0.7448104", "0.7448104", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", ...
0.80073035
1
Whether or not this Lambda function was bound to a VPC. If this is is ``false``, trying to access the ``connections`` object will fail.
def ESEs(YKHO) -> bool: return HEOD.get(YKHO, 'isBoundToVpc')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESEs(YKHO) -> bool:\n ...", "def Oeh0(YKHO):\n return len(YKHO._interfaces) > 1", "def UYE0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_connections')", "def UYE0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_connections')", "def UYE0(YKHO) -> qe4Y.Outpu...
[ "0.7762306", "0.69080704", "0.6795762", "0.6795762", "0.6739217", "0.62496793", "0.6234505", "0.600429", "0.59718275", "0.59718275", "0.59575087", "0.5956255", "0.5956255", "0.58971274", "0.5858086", "0.5858086", "0.5758274", "0.5745921", "0.56641674", "0.5604601", "0.5604601...
0.7625469
1
The IAM role associated with this function.
def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: return HEOD.get(YKHO, 'role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def oJGu(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'iam_role')", "def LmAn(YKHO) -> str:\n return qe4Y.get(YKHO, 'role')", "def LmAn(YKHO) -...
[ "0.8218676", "0.8218676", "0.81048834", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.7896453", "0.77802557", "0.77802557", "0.77802557", "0.77802557", "0.77802557", "0.77802557", "0.77802557", "0.7774948", "0.7758477", "0.77503...
0.79853976
4
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts).
def stwf(YKHO) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)", "def qHTF(YKHO):\n pass", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "de...
[ "0.6435655", "0.6406605", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.628925", "0.6217615", "0.6217615", "0.6...
0.6371943
2
The ARN fo the function.
def y7eY(YKHO) -> str: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return HEOD.get(YKHO, 'functionArn')", "def y7eY(YKHO) -> str:\n return ...
[ "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.80073035", "0.7570522", "0.7570522", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", ...
0.7448104
9
Whether or not this Lambda function was bound to a VPC. If this is is ``false``, trying to access the ``connections`` object will fail.
def ESEs(YKHO) -> bool: return HEOD.get(YKHO, 'isBoundToVpc')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ESEs(YKHO) -> bool:\n ...", "def Oeh0(YKHO):\n return len(YKHO._interfaces) > 1", "def UYE0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_connections')", "def UYE0(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'allow_connections')", "def UYE0(YKHO) -> qe4Y.Outpu...
[ "0.7762731", "0.6909174", "0.67964786", "0.67964786", "0.6739499", "0.6249457", "0.6233755", "0.6004229", "0.597303", "0.597303", "0.5958377", "0.5957951", "0.5957951", "0.5897877", "0.58583975", "0.58583975", "0.57586634", "0.5745356", "0.5664915", "0.56051946", "0.56051946"...
0.7625856
2
The IAM role associated with this function. Undefined if the function was imported without a role.
def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> laHg.Optional[lTJ4...
[ "0.74108016", "0.74108016", "0.74108016", "0.74108016", "0.74108016", "0.74108016", "0.73422194", "0.73422194", "0.73058164", "0.73058164", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.7267696", "0.7262524", "0.7262524", "0.7216988", ...
0.72805756
16
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts).
def stwf(YKHO) -> bool: return HEOD.get(YKHO, 'canCreatePermissions')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)", "def qHTF(YKHO):\n pass", "def stwf(YKHO) -> bool:\n ...", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(...
[ "0.6438281", "0.6405534", "0.637154", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.628863", "0.62168837", "0.6...
0.61880267
31
The ARN fo the function.
def y7eY(YKHO) -> str: return HEOD.get(YKHO, 'functionArn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')", "def y7eY(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'function_arn')", "def y7eY(YKHO) -> str:\n ...", "def y7eY(YKHO) -> str:\n ...", "def hMqs(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'arn')", "...
[ "0.7570522", "0.7570522", "0.7448104", "0.7448104", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", "0.74353015", ...
0.80073035
3
The IAM role associated with this function. Undefined if the function was imported without a role.
def LmAn(YKHO) -> laHg.Optional[lTJ4.aws_iam.IRole]: return HEOD.get(YKHO, 'role')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO) -> lTJ4.aws_iam.IRole:\n return HEOD.get(YKHO, 'role')", "def LmAn(YKHO):\n if YKHO._role_present:\n return YKHO._role_value\n else:\n raise AttributeError(\"missing required field 'role'\")", "d...
[ "0.73422194", "0.73422194", "0.73058164", "0.73058164", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.72920525", "0.72805756", "0.72805756", "0.7267696", "0.7262524", "0.7262524", "0.7216988", "0.7216988", "0.7216988", "0.7216988", "0.71504617", "0....
0.74108016
4
Creates a Lambda function object which represents a function not defined within this stack.
def IoOS(Emd4, rrBf: aws_cdk.core.Construct, id: str, *, y7eY: str, LmAn: typing.Optional[aws_cdk.aws_iam.IRole]=None, ANtU: typing.Optional[aws_cdk.aws_ec2.ISecurityGroup]=None, fEOc: typing.Optional[str]=None) -> 'IFunction': o8Kj = WvCJ(function_arn=y7eY, role=LmAn, security_group=ANtU, security_group_id=fEOc) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n ...", "def FIMM(YKHO, JfyU) -> None:\n super(Zlsf, YKHO).__init__()\n YKHO.func = JfyU", "def jTh8(Emd4, FYKK):\n mWFP =...
[ "0.6225554", "0.6225554", "0.6221564", "0.61741954", "0.6042143", "0.60069466", "0.59109896", "0.585338", "0.580736", "0.58049315", "0.5631223", "0.55957645", "0.5566831", "0.55539", "0.54575306", "0.54566884", "0.5453055", "0.544896", "0.544692", "0.54163414", "0.537146", ...
0.5038204
55
Metric for the number of unreserved concurrent executions across all Lambdas.
def qwCP(Emd4, *, qfpW: typing.Optional[str]=None, DbyF: typing.Optional[typing.Mapping[str, typing.Any]]=None, UXqs: typing.Optional[str]=None, pQ4c: typing.Optional[aws_cdk.core.Duration]=None, dh16: typing.Optional[str]=None, PXGI: typing.Optional[aws_cdk.aws_cloudwatch.Unit]=None) -> lTJ4.aws_cloudwatch.Metric: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn5r(YKHO):\n return sum((Q5yx.ncpus_reverved for Q5yx in YKHO))", "def Ha0h(YKHO) -> laHg.Optional[HEOD.Number]:\n return YKHO._values.get('reserved_concurrent_executions')", "def Ha0h(YKHO) -> laHg.Optional[HEOD.Number]:\n return YKHO._values.get('reserved_concurrent_executions')", "def l675(Y...
[ "0.6160556", "0.5985161", "0.5985161", "0.59243274", "0.58934283", "0.5821106", "0.57704085", "0.5766383", "0.5752112", "0.5739433", "0.5713736", "0.57011336", "0.5656035", "0.56384856", "0.56354517", "0.5634663", "0.56338817", "0.56083375", "0.55810523", "0.5557309", "0.5553...
0.5132503
90
Whether the addPermission() call adds any permissions. True for new Lambdas, false for imported Lambdas (they might live in different accounts).
def stwf(YKHO) -> bool: return HEOD.get(YKHO, 'canCreatePermissions')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MJFy(YKHO, OQzj: commands.CheckPredicate) -> None:\n YKHO._permissions_hooks.append(OQzj)", "def qHTF(YKHO):\n pass", "def stwf(YKHO) -> bool:\n ...", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(YKHO, QePW):\n return False", "def Cb6P(...
[ "0.64359015", "0.64050674", "0.6370947", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", "0.6288244", ...
0.6186907
33
Name of this alias.
def Fm0u(YKHO) -> str: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return f'{YKHO.alias}'", "def mWFP(YKHO):\n return YKHO._alias", "def mWFP(YKHO) -> str:\n if YKHO.alias is not None:\n return YKHO.alias\n return YKHO.original_name", "def Fm0u(YKHO):\n return YKHO._alias_name", "def Fm0u(YKHO) -> str:\n return HEOD.get(YKHO, 'al...
[ "0.92101455", "0.9004251", "0.87988484", "0.8652299", "0.8639627", "0.8639627", "0.8607273", "0.8555997", "0.85002553", "0.84071213", "0.82650656", "0.82650656", "0.813746", "0.81064683", "0.8105691", "0.80833113", "0.80833113", "0.8054287", "0.8054287", "0.8054287", "0.80542...
0.8619391
6
The underlying Lambda function version.
def DpZH(YKHO) -> 'IVersion': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4rS(YKHO) -> 'IFunction':\n ...", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def Zlsf(YKHO):\n return YKHO._Lambda", "def EVkO(YKHO):\n return YKHO._lambda_c", "def w4rS(YKHO) -> 'IFunction':...
[ "0.7280796", "0.7221019", "0.7221019", "0.71869826", "0.7154984", "0.7021123", "0.6896246", "0.66623986", "0.6423123", "0.6377374", "0.6355121", "0.61973417", "0.6193999", "0.603101", "0.5993243", "0.59632856", "0.5944508", "0.59315526", "0.5927897", "0.59088045", "0.5903565"...
0.0
-1
Name of this alias.
def Fm0u(YKHO) -> str: return HEOD.get(YKHO, 'aliasName')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return f'{YKHO.alias}'", "def mWFP(YKHO):\n return YKHO._alias", "def mWFP(YKHO) -> str:\n if YKHO.alias is not None:\n return YKHO.alias\n return YKHO.original_name", "def Fm0u(YKHO):\n return YKHO._alias_name", "def Fm0u(YKHO) -> str:\n ...", "def W0tD(YKHO) -...
[ "0.92101455", "0.9004251", "0.87988484", "0.8652299", "0.8619391", "0.8607273", "0.8555997", "0.85002553", "0.84071213", "0.82650656", "0.82650656", "0.813746", "0.81064683", "0.8105691", "0.80833113", "0.80833113", "0.8054287", "0.8054287", "0.8054287", "0.8054287", "0.80542...
0.8639627
4
The underlying Lambda function version.
def DpZH(YKHO) -> 'IVersion': return HEOD.get(YKHO, 'version')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w4rS(YKHO) -> 'IFunction':\n ...", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def w4rS(YKHO) -> 'IFunction':\n return HEOD.get(YKHO, 'lambda')", "def Zlsf(YKHO):\n return YKHO._Lambda", "def EVkO(YKHO):\n return YKHO._lambda_c", "def w4rS(YKHO) -> 'IFunction':...
[ "0.7280796", "0.7221019", "0.7221019", "0.71869826", "0.7154984", "0.7021123", "0.6896246", "0.66623986", "0.6423123", "0.6377374", "0.6355121", "0.61973417", "0.6193999", "0.603101", "0.5993243", "0.59632856", "0.5944508", "0.59315526", "0.5927897", "0.59088045", "0.5903565"...
0.0
-1
The ARN of the Lambda Layer version that this Layer defines.
def mfUy(YKHO) -> str: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfUy(YKHO) -> str:\n return HEOD.get(YKHO, 'layerVersionArn')", "def mfUy(YKHO) -> str:\n return HEOD.get(YKHO, 'layerVersionArn')", "def mfUy(YKHO) -> str:\n return YKHO._values.get('layer_version_arn')", "def G_uc(YKHO):\n Bl6S = YKHO._python_runtime_name.replace('p', 'P').replace('.', '')\...
[ "0.78513026", "0.78513026", "0.73058313", "0.691911", "0.68870157", "0.6839793", "0.65249056", "0.6184146", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.60888094", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.60...
0.75464886
2
The ARN of the Lambda Layer version that this Layer defines.
def mfUy(YKHO) -> str: return HEOD.get(YKHO, 'layerVersionArn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfUy(YKHO) -> str:\n ...", "def mfUy(YKHO) -> str:\n return YKHO._values.get('layer_version_arn')", "def G_uc(YKHO):\n Bl6S = YKHO._python_runtime_name.replace('p', 'P').replace('.', '')\n hMqs = ':'.join(['arn', 'aws', 'lambda', YKHO.region_name, zoZv.NUMERICS_LAYERS[YKHO.region_name], 'layer'...
[ "0.75464886", "0.73058313", "0.691911", "0.68870157", "0.6839793", "0.65249056", "0.6184146", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.60888094", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.606...
0.78513026
1
The ARN of the Lambda Layer version that this Layer defines.
def mfUy(YKHO) -> str: return HEOD.get(YKHO, 'layerVersionArn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfUy(YKHO) -> str:\n ...", "def mfUy(YKHO) -> str:\n return YKHO._values.get('layer_version_arn')", "def G_uc(YKHO):\n Bl6S = YKHO._python_runtime_name.replace('p', 'P').replace('.', '')\n hMqs = ':'.join(['arn', 'aws', 'lambda', YKHO.region_name, zoZv.NUMERICS_LAYERS[YKHO.region_name], 'layer'...
[ "0.75464886", "0.73058313", "0.691911", "0.68870157", "0.6839793", "0.65249056", "0.6184146", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.61839575", "0.60888094", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.6060936", "0.606...
0.78513026
0
The ARN of the LayerVersion.
def mfUy(YKHO) -> str: return YKHO._values.get('layer_version_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mfUy(YKHO) -> str:\n return HEOD.get(YKHO, 'layerVersionArn')", "def mfUy(YKHO) -> str:\n return HEOD.get(YKHO, 'layerVersionArn')", "def mfUy(YKHO) -> str:\n ...", "def YHFb(YKHO) -> str:\n return YKHO._layer_name_arn", "def G_uc(YKHO):\n Bl6S = YKHO._python_runtime_name.replace('p', 'P...
[ "0.8227922", "0.8227922", "0.7723506", "0.69068295", "0.66858804", "0.66145647", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", "0.65811425", ...
0.7791034
2