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 an op for a dense hidden layer
def Gwm5(WKvO, zPgq, UhOr, wOkA): with ZylS.name_scope(wOkA): _mSQ = ZylS.Variable(ZylS.truncated_normal(shape=[zPgq, UhOr], stddev=0.1, name='weights')) HabP = ZylS.Variable(ZylS.constant(0.1, shape=[UhOr], name='biases')) QZir = ZylS.nn.relu(ZylS.matmul(WKvO, _mSQ) + HabP, name=wOkA) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o8Dd(WKvO, wjbX, YDYE='relu', mWFP=None):\n return ZylS.keras.layers.Dense(wjbX, activation=None, use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros', kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, bias_constraint=None)(WKvO)", "...
[ "0.7292472", "0.70471513", "0.7027094", "0.680232", "0.67764246", "0.6740976", "0.65333253", "0.6513557", "0.64417577", "0.64030224", "0.64007044", "0.63921523", "0.6387549", "0.63701504", "0.6367023", "0.6365322", "0.6362586", "0.6326825", "0.6320159", "0.62606865", "0.62497...
0.65686953
6
Roll, pitch, yaw Euler angles from rotation matrix. The function computes roll, pitch and yaw angles from the rotation matrix R. The pitch angle p is constrained to the range (pi/2, pi/2]. The returned angles are in radians.
def V0Qz(A3Vt): jr_h = oyIN.zeros((3, 1)) jr_h[0] = oyIN.arctan2(A3Vt[2, 1], A3Vt[2, 2]) H4yH = -A3Vt[2, 0] U7YL = oyIN.sqrt(A3Vt[0, 0] * A3Vt[0, 0] + A3Vt[1, 0] * A3Vt[1, 0]) if oyIN.abs(U7YL) > 1e-15: jr_h[1] = oyIN.arctan2(H4yH, U7YL) else: jr_h[1] = oyIN.pi / 2 if H4y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KAnG(A3Vt):\n xTkQ = oyIN.arctan(A3Vt[1, 0] / A3Vt[0, 0])\n H2HG = oyIN.arctan(-A3Vt[2, 0] / oyIN.sqrt(A3Vt[2, 1] ** 2 + A3Vt[2, 2] ** 2))\n rKSe = oyIN.arctan(A3Vt[2, 1] / A3Vt[2, 2])\n return (xTkQ, H2HG, rKSe)", "def HqVh(A3Vt):\n\n def hrk3(WKvO, LVAh, LL2J=1e-05, rU28=1e-08):\n ret...
[ "0.81192505", "0.7989864", "0.7847217", "0.755661", "0.7380121", "0.7275947", "0.72534686", "0.71728843", "0.7166139", "0.7061989", "0.7007824", "0.696445", "0.6833067", "0.6807649", "0.6784328", "0.6682634", "0.6647167", "0.6615965", "0.6587245", "0.65689886", "0.6533061", ...
0.0
-1
This function is used to get the list of all Groups in IAM
def UaNu(nUHY): try: moMn = ENHu.list_groups() except UveJ.exceptions.ClientError as e: gLUf('There was an error while getting group data: \n\n\n') print(tTpl) u8YN = [] for uOe2 in moMn['Groups']: mWFP = uOe2['GroupName'] if nUHY: print('> ' + mWFP) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Fmd():\n TRFU = []\n ACO7 = {}\n Az5W = {'Action': 'ListGroups'}\n return crPO(TRFU, ACO7, Az5W)", "def MvIi():\n return u8YN()", "def _Fmd():\n with zVa7() as nNXP:\n A97Q = nNXP.groups().list_groups()\n tyNF = YJgg(['ID', 'Name'], [iWi5] * 2)\n for Oa1e in A97Q[Crrw.GROUP_...
[ "0.8241012", "0.7878573", "0.7609888", "0.7486651", "0.7462304", "0.74335814", "0.7411674", "0.7400473", "0.73999864", "0.73900324", "0.7389769", "0.73850405", "0.7376531", "0.7369697", "0.73614025", "0.7331152", "0.7315299", "0.72877896", "0.725068", "0.7249675", "0.71980095...
0.8247485
0
Instantiates a new array stack
def FIMM(YKHO): YKHO.__data = []
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, zNig=10):\n mvQt.__init__(YKHO)\n YKHO.array = [None] * zNig", "def FIMM(YKHO, zNig=10):\n mvQt.__init__(YKHO)\n YKHO.array = [None] * zNig\n YKHO.front = 0\n YKHO.rear = 0", "def FIMM(YKHO):\n YKHO.stack = []\n YKHO.stack_min = []", "def FIMM(YKHO):\n YKHO.stack = [...
[ "0.74917644", "0.723171", "0.7158004", "0.71064633", "0.7052494", "0.7033506", "0.6983969", "0.69768924", "0.69713396", "0.6957818", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0.69359416", "0....
0.0
-1
Gets the site_id of this SiteAndDomainRoles.
def COo8(YKHO) -> int: return YKHO._site_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def COo8(YKHO):\n return YKHO._site_id", "def COo8(YKHO):\n return YKHO.properties.get('SiteId', None)", "def COo8(YKHO) -> str:\n return qe4Y.get(YKHO, 'site_id')", "def COo8(YKHO) -> int:\n if YKHO.app_id is None:\n raise ValueError('Cannot fetch by app ID; is None')\n wgjp = nKJO.loa...
[ "0.7656641", "0.7563161", "0.729969", "0.69146997", "0.6726187", "0.6715495", "0.67102516", "0.67102516", "0.66795224", "0.66795224", "0.66795224", "0.65833807", "0.65833807", "0.6575041", "0.6575041", "0.6575041", "0.6429068", "0.62339735", "0.612468", "0.60565656", "0.59642...
0.75868183
1
Gets weights of selected layer
def wT46(YKHO, mgU1): _mSQ = list() for YRbF in range(0, YKHO.get_neurons_count(mgU1)): HgE9 = YKHO.get_neuron(mgU1, YRbF) _mSQ.extend(HgE9.weights) return _mSQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kn2f(gEmA):\n yzQ0, Fg_i = gEmA.weights\n return Q5DW(w=yzQ0.numpy(), b=Fg_i.numpy())", "def wT46(Emd4):\n return iShw(Emd4.layers)", "def _mSQ(YKHO):\n return oyIN.array([gEmA.weights for gEmA in YKHO.layers])", "def Cmpz(YKHO, lzjZ):\n return YKHO.pretrained_weights.item()[lzjZ]['weights...
[ "0.8341067", "0.7985499", "0.78875643", "0.7882683", "0.783843", "0.783843", "0.7837085", "0.78291446", "0.78269273", "0.78269273", "0.782529", "0.7811938", "0.7811938", "0.7810456", "0.7768397", "0.77513784", "0.77241796", "0.77241796", "0.77241594", "0.77241594", "0.7724159...
0.7308144
50
Checks whether the episode is over. This method looks at the done flag coming from the environment and can also be overridden to add additional checks for being done such as number of steps exceeding some threshold To be implemented by the Environment class.
def zTzi(YKHO, xzAw): return xzAw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zTzi(YKHO, xzAw):\n YKHO._episode_step_.value += 1\n return YKHO._episode_step_.value >= YKHO._episode_length_step or xzAw", "def NRMw(YKHO):\n if YKHO.timestep >= YKHO.args.max_episode_len:\n return True\n return False", "def DrFW(YKHO) -> bool:\n if YKHO._check_player_exited():\n ...
[ "0.7810513", "0.7306314", "0.72618234", "0.6951705", "0.69009745", "0.6898904", "0.683149", "0.6703354", "0.6654743", "0.65947497", "0.65543604", "0.6485469", "0.64775896", "0.6429699", "0.64102036", "0.63928777", "0.62775975", "0.6264748", "0.6239897", "0.61636513", "0.61062...
0.57082105
89
``bool`` for whether Room is Bounded. Uses result of ``Room.Area`` attribute to define if room is Bounded.
def ylOs(YKHO): return YKHO._revit_object.Area > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g7oD(YKHO, t4D0):\n WKvO = YKHO.odom_data.pose.pose.position.x\n LVAh = YKHO.odom_data.pose.pose.position.y\n DeuS = [bYdR(0, 0, 0, 0, 0, 0), bYdR(0, 0, 0, 0, 0, 0), bYdR(0, 0, 0, 0, 0, 0), bYdR(0, 0, 0, 0, 0, 0), bYdR(0, 0, 0, 0, 0, 0)]\n for nYVo in DeuS:\n if WKvO < nYVo.pos_x + t4D0 and ...
[ "0.6594961", "0.62226504", "0.61888134", "0.6131511", "0.6020431", "0.59734356", "0.5952056", "0.59424955", "0.5886955", "0.5873748", "0.58589375", "0.5841319", "0.5839693", "0.5839211", "0.58218884", "0.58187306", "0.58187306", "0.58059776", "0.5797587", "0.5781772", "0.5769...
0.713212
0
Returns a n+1 length boolean list a indicating if i is prime by value of a[i]. It usage Sieve of Eratosthenes for this. doctest >>> get_primes(5) [True, True, True, True, False, True]
def DwOa(exwG): assert exwG > 1 rPed = [True for YRbF in range(0, exwG + 1)] r8hN = epAf.floor(epAf.sqrt(exwG)) UHFx = 2 while UHFx <= r8hN: if rPed[UHFx]: imVz = exwG / UHFx for YRbF in range(2 * UHFx, imVz * UHFx + 1, UHFx): rPed[YRbF] = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YefN(exwG):\n rPed = []\n jzdc = [True] * (exwG + 1)\n jzdc[0] = jzdc[1] = False\n for YRbF, T1qg in enumerate(jzdc):\n if T1qg:\n rPed.append(YRbF)\n for r845 in Ni9Y(YRbF, exwG + 1, YRbF):\n jzdc[r845] = False\n return rPed", "def rPed(exwG):\n ...
[ "0.79498035", "0.78741163", "0.7845825", "0.77546334", "0.7742116", "0.7716737", "0.7716737", "0.7680211", "0.76778615", "0.7661115", "0.76555467", "0.7649794", "0.7618253", "0.7608687", "0.75864", "0.7557602", "0.75566494", "0.7550946", "0.7547432", "0.7539578", "0.752989", ...
0.74448943
39
Evaluate the given macro and return an evaluation score.
def b7La(YKHO, yc3M): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, yc3M):\n return (yc3M.parameter_reduction + 1) ** 2 * yc3M.count", "def b7La(YKHO, yc3M):\n return YKHO.frequency_weight * YKHO.frequency_evaluator.evaluate(yc3M) + YKHO.reduction_weight * YKHO.reduction_evaluator.evaluate(yc3M)", "def odpS(YKHO, Yf8Y):\n yc3M = YKHO.symbols[Yf8Y]\n ...
[ "0.70693", "0.68358815", "0.667917", "0.652836", "0.6458541", "0.63631815", "0.6331379", "0.62434626", "0.6092475", "0.6075187", "0.56923103", "0.56923103", "0.56701535", "0.5664135", "0.5659939", "0.56494284", "0.55991924", "0.55748117", "0.55748117", "0.55748117", "0.557481...
0.75262994
0
The name of the evaluator. The name is used to refer to the evaluation result in the database.
def mWFP(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ph25() -> str:\n raise NotImplementedError", "def mWFP(YKHO):\n mWFP = YKHO._args[0]\n if isinstance(mWFP, jKi7.string_types):\n return mWFP\n elif isinstance(mWFP, FgBH):\n return mWFP.evaluate()", "def jJvD(YKHO, BWXx):\n super(rS4P, YKHO)._set_input('EvaluationName', BWXx)",...
[ "0.7873075", "0.6924847", "0.6913775", "0.6687981", "0.6232641", "0.6174212", "0.6174212", "0.6091567", "0.6088572", "0.60308284", "0.5972436", "0.5833442", "0.58091474", "0.58031803", "0.5786847", "0.576018", "0.57554466", "0.57390994", "0.573723", "0.57310754", "0.57295215"...
0.0
-1
Initialize the evaluator with the given normalizer.
def FIMM(YKHO, WuUW): assert WuUW > 0, 'Normalizer must be > 0' YKHO.normalizer = WuUW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, ClYY, WuUW):\n YKHO.vld = ClYY\n YKHO.nlz = WuUW", "def FIMM(YKHO, JPc3, WuUW):\n assert 0 <= JPc3 <= 100, 'Invalid weight {}, must be in [0,100]'.format(JPc3)\n YKHO.frequency_weight = JPc3\n YKHO.reduction_weight = 100 - JPc3\n YKHO.frequency_evaluator = jdxH(WuUW)\n YKHO.re...
[ "0.6170805", "0.6112008", "0.6036893", "0.6009232", "0.5823779", "0.5743018", "0.5699209", "0.55637264", "0.55605865", "0.5553799", "0.5548036", "0.5518608", "0.55033517", "0.5491983", "0.5437741", "0.5414385", "0.5409437", "0.54053503", "0.53821725", "0.53794014", "0.5375512...
0.6806136
0
From the camera calibration matrix and the estimated homography compute the 3D projection matrix
def lOe5(RmBG, Dngr): Dngr = Dngr * -1 x2Ss = oyIN.dot(oyIN.linalg.inv(RmBG), Dngr) V4V9 = x2Ss[:, 0] XalQ = x2Ss[:, 1] ztYM = x2Ss[:, 2] vC9B = epAf.sqrt(oyIN.linalg.norm(V4V9, 2) * oyIN.linalg.norm(XalQ, 2)) c92d = V4V9 / vC9B KF_e = XalQ / vC9B y_o0 = ztYM / vC9B Z9rn = c92d +...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lOe5(RmBG, Dngr):\n Dngr = Dngr * -1\n x2Ss = oyIN.dot(oyIN.linalg.inv(RmBG), Dngr)\n V4V9 = x2Ss[:, 0]\n XalQ = x2Ss[:, 1]\n ztYM = x2Ss[:, 2]\n vC9B = epAf.sqrt(oyIN.linalg.norm(V4V9, 2) * oyIN.linalg.norm(XalQ, 2))\n c92d = V4V9 / vC9B\n KF_e = XalQ / vC9B\n y_o0 = ztYM / vC9B\n ...
[ "0.7393602", "0.72701627", "0.70232284", "0.69297475", "0.6920474", "0.6902462", "0.68628997", "0.6762003", "0.6740121", "0.6672605", "0.66674227", "0.65869707", "0.6561661", "0.6542865", "0.6524841", "0.64647174", "0.6438583", "0.6425886", "0.6423612", "0.6380193", "0.630284...
0.76343465
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, s10K): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8393104", "0.8355197", "0.8295551", "0.8133039", "0.811476", "0.8100177", "0.80994433", "0.80982935", "0.80982935", "0.8093244", "0.8093244", "0.8093244", "0.8093244", "0.808576", "0.808576", "0.808576", "0.808576", "0.808576", "0.80671525", "0.80597436", "0.8057952", "0...
0.0
-1
This is called when a new LinkedList object is instantiated
def FIMM(YKHO, Ziit: Optional[List]=None) -> None: YKHO.head = None if Ziit is not None: Q6kx = o7DN(data=Ziit.pop(0)) YKHO.head = Q6kx for LihS in Ziit: Q6kx.next = o7DN(data=LihS) Q6kx = Q6kx.next
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.list = _sfu()", "def FIMM(YKHO):\n YKHO.linkedlist = list()", "def FIMM(YKHO):\n YKHO._linkedlist = _sfu()\n YKHO.head = YKHO._linkedlist.head\n YKHO._length = YKHO._linkedlist._length\n YKHO.tail = None", "def FIMM(YKHO):\n YKHO.head = kYTP(-1)\n YKHO.tail = YK...
[ "0.7869729", "0.7784336", "0.7663623", "0.752115", "0.75209844", "0.7510806", "0.7496322", "0.7492361", "0.74120724", "0.7382935", "0.73735625", "0.7337348", "0.7337348", "0.7333673", "0.7323384", "0.7245492", "0.7234296", "0.72339374", "0.71911293", "0.71625626", "0.7161055"...
0.0
-1
Add a new node as the first position in the linked list
def rMGb(YKHO, Q6kx: Node) -> None: Q6kx.next = YKHO.head YKHO.head = Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rMGb(YKHO, Q6kx):\n Q6kx.next = YKHO.head\n YKHO.head = Q6kx", "def Ls07(YKHO, Q6kx):\n a1PO = YKHO.head.next\n YKHO.head.next = Q6kx\n Q6kx.pre = YKHO.head\n Q6kx.next = a1PO\n a1PO.pre = Q6kx\n YKHO.size += 1", "def mOHz(YKHO, Esd_):\n Esd_.next = YKHO.head\n YKHO.head = Esd...
[ "0.8246172", "0.8193805", "0.7956904", "0.7703385", "0.7643413", "0.7629723", "0.7603809", "0.7595674", "0.757989", "0.7561012", "0.7560291", "0.7556116", "0.75422066", "0.7483616", "0.74467", "0.7438098", "0.7434975", "0.7426446", "0.73240197", "0.7322978", "0.7317491", "0...
0.80756927
2
Add a new node at the last position in the linked list
def tj6L(YKHO, Q6kx: Node) -> None: if not YKHO.head: YKHO.head = Q6kx return for kMLo in YKHO: pass kMLo.next = Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tj6L(YKHO, Q6kx):\n if not YKHO.head:\n YKHO.head = Q6kx\n return\n exwG = YKHO.head\n for kMLo in YKHO:\n pass\n kMLo.next = Q6kx", "def tj6L(YKHO, tTpl):\n NUHd = o7DN(tTpl, None)\n if YKHO.is_empty():\n YKHO._head = NUHd\n else:\n YKHO._tail._next = ...
[ "0.8524181", "0.8211282", "0.8194631", "0.8158829", "0.814191", "0.8048897", "0.8017108", "0.78604794", "0.7850212", "0.7698191", "0.75797117", "0.7579115", "0.752259", "0.74831986", "0.7452233", "0.74079317", "0.74004316", "0.734692", "0.7315076", "0.73086315", "0.7284285", ...
0.81382006
5
Get or create a ``cls`` instance using the ``kwargs`` provided. >>> from mock import Mock >>> mock_cls = Mock() >>> kwargs = dict(foo='bar')
def cDO8(Emd4, **B2fa): KAOR = Emd4.query.filter_by(**B2fa).first() if not KAOR: KAOR = Emd4(**B2fa) return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FsZQ(Emd4: type, qIxc: dict):\n exmT = tq_1.getfullargspec(Emd4)[0][1:]\n B2fa = {}\n for WLRG in exmT:\n if WLRG in qIxc:\n B2fa[WLRG] = qIxc[WLRG]\n return Emd4(**B2fa)", "def Cc7Y(Emd4, **B2fa):\n return Emd4(**B2fa)", "def h3Xc(*qIxc, **B2fa):\n H5ew = (Emd4, qIxc, s...
[ "0.6558752", "0.6527437", "0.6450341", "0.6339323", "0.6331009", "0.6193503", "0.61840403", "0.6155384", "0.5990219", "0.58738035", "0.5866152", "0.5849215", "0.5845185", "0.5844532", "0.5823979", "0.5821671", "0.5821671", "0.5814432", "0.5813502", "0.58115005", "0.5795209", ...
0.6130192
8
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(nTks, YKHO).__init__(*qIxc, **c_sp) if YKHO.cmd is None: YKHO.cmd = 0 if YKHO.reserved0 is None: YKHO.reserved0 = b'\x00' * 3 if YKHO.response is None: YKHO.response = 0 if YKHO.reserved...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Ol8d=None):\n if Ol8d is not None:\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n YKHO.message = Ol8d", "def FIMM(YKHO, Ol8d=None):\n super().__init__()\n YKHO.message = Ol8d", "def FIMM(YKHO, *qIxc, **c_sp):\n ...
[ "0.8166562", "0.77207243", "0.77207243", "0.76532763", "0.75729614", "0.75445384", "0.74859685", "0.74710035", "0.7457984", "0.7446914", "0.7446092", "0.74336267", "0.7415086", "0.7408329", "0.7391827", "0.7375837", "0.7363319", "0.7325938", "0.732446", "0.732446", "0.732446"...
0.7009261
65
Add a new experience to memory.
def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins): tTpl = YKHO.experience(QTBn, XeOP, vOGg, rxHc, _ins) YKHO.memory.append(tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ilp5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, GsKL):\n YKHO.memory.append(GsKL)", "def GsKL(YKHO, GsKL: Experience[ActionType]) -> None:\n YKHO.memory.append(GsKL)", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.append(XlZM(QTBn, XeOP, vOGg, rxHc, _ins))", "d...
[ "0.8763217", "0.8755159", "0.8509186", "0.79707366", "0.7879077", "0.7878838", "0.7878838", "0.7709677", "0.7708713", "0.7609456", "0.74958277", "0.7470479", "0.74537706", "0.737918", "0.73555547", "0.730577", "0.7283659", "0.7276514", "0.72636735", "0.7246649", "0.72328925",...
0.7199177
28
Randomly sample a batch of experiences from memory.
def mvm2(YKHO): wfZK = tuKI.sample(YKHO.memory, k=YKHO.batch_size) ' convert to states, actions, rewards, next_states and dones of the selected experiences to tensors ' wspz = ht2j.from_numpy(oyIN.vstack([tTpl.state for tTpl in wfZK if tTpl is not None])).float().to(begE) xASv = ht2j.from_numpy(oyIN.vst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mvm2(YKHO, Ep8u=64):\n return tuKI.sample(YKHO.memory, Ep8u)", "def cQJh(YKHO):\n Wc9F = []\n for YRbF in Ni9Y(YKHO.minibatch_size):\n Wc9F.append(YKHO.experiences[qukk(0, len(YKHO.experiences))])\n return oyIN.asarray(Wc9F)", "def mvm2(YKHO):\n wfZK = tuKI.sample(YKHO.memory, k=YKHO....
[ "0.7983961", "0.79046863", "0.7868443", "0.7706011", "0.7525482", "0.75070703", "0.7481443", "0.74332356", "0.7427844", "0.74261487", "0.74147487", "0.7403821", "0.7403821", "0.7403821", "0.7392868", "0.7389204", "0.7389204", "0.7389204", "0.7379021", "0.7376972", "0.73635644...
0.7432144
8
Sets the cog's bot Also sets a custom prefix for commands if defined in .env
def FIMM(YKHO, JyK9): YKHO.bot = JyK9 YKHO.start_time = qcWV.now() YKHO.prefix = 'g;' if 'BOT_PREFIX' in Hy7s.environ: YKHO.prefix = Hy7s.environ['BOT_PREFIX']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def set_prefix(OaeV, y0cW: str):\n etnL['command_prefix'] = y0cW\n JyK9.command_prefix = y0cW\n with open('soulbot.conf', 'w') as _RR0:\n qQXR.dump(etnL, _RR0)\n await OaeV.send(f'Prefix now set to {y0cW}.')", "async def command_prefix(JyK9, tO9_):\n y0cW = None\n gKSi = JyK9.get_c...
[ "0.75278014", "0.6992551", "0.6937408", "0.68937284", "0.68505365", "0.6839348", "0.6753029", "0.6749748", "0.66717935", "0.6652113", "0.66465586", "0.6642165", "0.6612979", "0.6604836", "0.65976614", "0.65882814", "0.6580295", "0.6572583", "0.6516175", "0.6460041", "0.645084...
0.61918026
46
Sends a bot invite link
async def invite(YKHO, OaeV): await OaeV.send('https://top.gg/bot/708364985021104198')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def invite(YKHO, OaeV):\n await YKHO.bot.say(\"Here's the link to invite me: <http://invite.jaqreven.com>\")", "async def invite(YKHO, OaeV):\n await OaeV.send(f'{OaeV.author.mention} you can invite the bot with the following link:\\nhttps://bit.ly/smc-invite')", "async def invite(YKHO, OaeV):\n ...
[ "0.8376532", "0.81427264", "0.81396866", "0.8131813", "0.8104459", "0.80876154", "0.80283326", "0.7958932", "0.7958932", "0.7924855", "0.7781899", "0.77642846", "0.76686394", "0.7643928", "0.7619833", "0.760664", "0.756216", "0.7548118", "0.75374216", "0.7514533", "0.7499742"...
0.76663005
13
Test if course create page render correctly
def ykgQ(YKHO): QePW = YKHO.factory.get('') geh0 = c295(hCfZ, QePW) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertIn(b'Create Course', geh0.content) YKHO.assertIn(b'Name', geh0.content) YKHO.assertIn(b'Description', geh0.content) YKHO.assertIn(b'Professor', geh0.content) YKHO.assert...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def feXp(YKHO):\n pass", "def lxl4(YKHO):\n geh0 = YKHO.client.get('/admin/course/new')\n YKHO.assertRedirects(geh0, '/login/')\n YKHO.login(YKHO.email)\n geh0 = YKHO.client.get('/admin/course/new')\n YKHO.assert_200(geh0)\n YKHO.assert_template_used('staff/course/course.new.html')", "def ...
[ "0.7817714", "0.7722844", "0.7465065", "0.72765285", "0.72365165", "0.7206214", "0.7132212", "0.71243423", "0.71198106", "0.7060519", "0.7039864", "0.7020004", "0.69905144", "0.69255686", "0.6912025", "0.6910117", "0.6854507", "0.6835924", "0.68339", "0.6832998", "0.68240905"...
0.72055376
6
Returns a samplinggrid that represents the identity transformation.
def fw3m(YKHO): WKvO = ht2j.linspace(-1.0, 1.0, YKHO.ow) LVAh = ht2j.linspace(-1.0, 1.0, YKHO.oh) CAzz, Jd40 = ht2j.meshgrid([LVAh, WKvO]) CAzz = CAzz.unsqueeze(dim=0) Jd40 = Jd40.unsqueeze(dim=0) _E99 = ht2j.cat((Jd40, CAzz), dim=0).unsqueeze(0) return _E99
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bdBh(Cs6h):\n return Cs6h", "def Zv88(YKHO):\n y0cW = 'beijing' if YKHO.city == PtXs.BJ else 'london'\n gSBP = {'%s_grid_%03d' % (y0cW, YRbF): YKHO.to_row(YRbF) * YKHO.sample_column + YKHO.to_col(YRbF) for YRbF in range(0, YKHO.row * YKHO.column)}\n return gSBP", "def _E99(YKHO):\n return i9...
[ "0.7176109", "0.6389557", "0.60483575", "0.5964293", "0.5900465", "0.5870033", "0.5797782", "0.57031834", "0.565543", "0.56437737", "0.5640692", "0.5585946", "0.5565772", "0.5564381", "0.55600756", "0.5554394", "0.55494535", "0.5538402", "0.55349076", "0.5516423", "0.5502372"...
0.77293825
0
Splits url into its path and its query parameters ie. google.com/blah?v=3 => (google.com/blah, ?v=3)
def _aje(bD7m, jIKl=''): gJf1 = bD7m.rfind('?') if gJf1 < 0: return (bD7m, '') w1K0 = bD7m[gJf1 + 1:] if jIKl: if not w1K0.startswith(jIKl): return (bD7m, '') return (bD7m[:gJf1], w1K0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TLhg(bD7m):\n ht58, RYr6, pmON, xDcj, vBtp = NoPH(bD7m)\n xDcj = _Ibt(xDcj)\n return (ht58, RYr6, pmON, xDcj, vBtp)", "def sCkY(HQNz):\n Hoh0, svcb, pmON, xDcj, iUZ9 = KVWQ.urlsplit(HQNz)\n return (pmON, xDcj)", "def cQ5b(bD7m):\n pmON, SAEY, xDcj = bD7m.rpartition('?')\n if SAEY:\n ...
[ "0.8160578", "0.76083994", "0.75501466", "0.73210216", "0.72084564", "0.7154169", "0.7132999", "0.7081359", "0.70295286", "0.7005619", "0.6996223", "0.6996223", "0.6979609", "0.69619167", "0.695082", "0.69109344", "0.6840243", "0.6672035", "0.66613185", "0.66541857", "0.66541...
0.62358403
42
Sends 200 response to client
def GOlc(YKHO, NArs): utb_ = NArs['request_map'] geh0 = NArs['response'] R68M = utb_['http_version'] a81G = len(geh0.text) tzX7 = 'HTTP/{} 200 OK\r\nServer: Ricware\r\nX-Powered-By: CODE/1.0.0\r\n'.format(R68M) jArC = 'Content-Length: {}\r\nContent-Type: text/html; charset=UTF-8\r\n\r\n{}'.forma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def sendOk(YKHO):\n await YKHO.sendResponse(250, b'OK')", "def VNll(YKHO, nPrm, jGRS=200):\n YKHO.set_status(jGRS)\n YKHO.write(qQXR.dumps(nPrm))", "def LeQ0():\n jGRS = 200\n return oGir(response='Hey this is working', status=jGRS, mimetype='application/json')", "def FdGr(YKHO, geh0=Non...
[ "0.7367589", "0.71370196", "0.7134557", "0.7069067", "0.699233", "0.69817597", "0.69817597", "0.68890566", "0.6879781", "0.6871253", "0.68591744", "0.68533176", "0.68467015", "0.6766482", "0.67371196", "0.67004156", "0.667648", "0.66708684", "0.6641317", "0.6633137", "0.66243...
0.6503883
29
Sends 400 response to client Bad Request
def ZsJ6(YKHO, NArs): utb_ = NArs['request_map'] R68M = '1.1' hGN5 = '<!DOCTYPE HTML><html><head><title>401</title></head><body><h1>400 Bad Request:</h1> the request is not understood by the original server or the proxy server</body></html>' tzX7 = 'HTTP/{} 400 Bad Request\r\nServer: Ricware\r\nX-Powere...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQIY(YKHO):\n YKHO.response.set_status(400)\n YKHO.response.write('ERROR 400: bad request')", "def Y1ZN(tTpl):\n return geh0('failed', 'Bad Request', 400)", "def _ef9(XObx):\n geh0 = {'error_code': 400, 'error_message': str(XObx)}\n return Yxsy(pz3A(geh0), 400)", "def yAhP(YKHO, tO9_):\n ...
[ "0.81834066", "0.80613035", "0.7999705", "0.7928818", "0.78370166", "0.77759993", "0.77279115", "0.7659337", "0.7640219", "0.76138806", "0.76057494", "0.7576849", "0.75746113", "0.7543023", "0.7535722", "0.7535358", "0.7502939", "0.7502939", "0.74967444", "0.74906284", "0.746...
0.6921557
63
Batch normalization for a 4D tensor
def zYio(WKvO): JBMS, SRYB = ZylS.nn.moments(WKvO, axes=[0, 1, 2]) n6Ai = WKvO.get_shape().as_list()[3] vgXP = ZylS.Variable(ZylS.zeros([n6Ai])) NXpY = ZylS.Variable(ZylS.ones([n6Ai])) idFg = ZylS.nn.batch_normalization(WKvO, JBMS, SRYB, vgXP, NXpY, 0.001) return idFg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lS53(CK9p):\n assert len(CK9p.get_shape()) == 4\n yphq = CK9p.get_shape().as_list()\n JBMS, SRYB = ZylS.nn.moments(CK9p, axes=[0, 1, 2])\n tYiq = yphq[3]\n vgXP = ZylS.Variable(ZylS.zeros([tYiq]))\n NXpY = ZylS.Variable(ZylS.ones([tYiq]))\n idFg = ZylS.nn.batch_normalization(CK9p, JBMS, SR...
[ "0.7776522", "0.7583707", "0.7352425", "0.7336045", "0.72959036", "0.72930944", "0.7179844", "0.7070214", "0.7004408", "0.6948895", "0.69373876", "0.6884867", "0.68283224", "0.6789457", "0.6756668", "0.67336386", "0.67216045", "0.6698973", "0.668305", "0.66608053", "0.6625767...
0.76252
1
Create a residual unit of 2 layers.
def JbXa(WKvO, QJWG, nQJZ, xr_Z, _0fC, TSMu): Dpw5 = zYio(WKvO) c_UX = ZylS.nn.relu(Dpw5) dFGd = yIp6(c_UX, [QJWG, QJWG, nQJZ, xr_Z], _0fC) YCnv = zYio(dFGd) RRgV = ZylS.nn.relu(YCnv) sUaA = yIp6(RRgV, [QJWG, QJWG, xr_Z, xr_Z], 1) if nQJZ != xr_Z: ouJm = ZylS.nn.avg_pool(WKvO, ksize=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hs8r(YKHO, VEin, KUnM):\n cMVl = VEin\n a5X0, hOiJ, M30N = KUnM\n yFTv = GVKG()(VEin)\n AicT = MroH('relu')(yFTv)\n dFGd = yHwh(filters=a5X0, kernel_size=(1, 1), padding='same')(AicT)\n EPjS = GVKG()(dFGd)\n wBQj = MroH('relu')(EPjS)\n sUaA = yHwh(filters=hOiJ, kernel_size=(3, 3), paddi...
[ "0.68915963", "0.67457783", "0.6569302", "0.65537226", "0.65093315", "0.65092474", "0.65092474", "0.64954096", "0.647548", "0.6475065", "0.6456785", "0.6420201", "0.63833535", "0.6325773", "0.6315001", "0.63139915", "0.62854236", "0.6276392", "0.62710047", "0.62518364", "0.62...
0.0
-1
Basic cleaning of texts.
def umS_(l5Ny): l5Ny = ZbWC.sub('(<.*?>)', '', l5Ny) l5Ny = ZbWC.sub('(\\W|\\d)', ' ', l5Ny) l5Ny = l5Ny.strip() return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iwMD(l5Ny):\n pass", "def QrZ9(l5Ny):\n l5Ny = l5Ny.replace('\\n', ' ').lower()\n l5Ny = Kg9z.fix(l5Ny)\n l5Ny = ZvG6.strip_multiple_whitespaces(ZvG6.strip_punctuation(l5Ny))\n return l5Ny", "def QrZ9(l5Ny):\n return biH0.PreprocessTweets(l5Ny).clean_text()", "def QrZ9(YKHO, l5Ny):\n ...
[ "0.80000055", "0.7598528", "0.757739", "0.75296617", "0.7517995", "0.7491131", "0.74876153", "0.7403282", "0.73958766", "0.7335634", "0.732582", "0.72932047", "0.72630906", "0.7255077", "0.7245072", "0.7235779", "0.7225263", "0.7223498", "0.71881735", "0.7177069", "0.7161933"...
0.66209143
81
Downloads a blob from the bucket.
def DPRZ(l7rj, JC20, AHTG): ntiA = S8SU.Client() WE7e = ntiA.get_bucket(l7rj) vxw0 = WE7e.blob(JC20) vxw0.download_to_filename(AHTG) print('Blob {} downloaded to {}.'.format(JC20, AHTG))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n return vxw0", "def DPRZ(l7rj, JC20):\n ntiA = S8SU.Client()\n WE7e = ntiA.bucket(l7rj)\n vxw0 = WE7e.blob(JC20)\n NRcB = xDSY.BytesIO()\n return vxw0.download_to_file(NRcB)", "def DPRZ(...
[ "0.81216", "0.7957541", "0.77650166", "0.76453996", "0.7630873", "0.7603773", "0.75344056", "0.7534157", "0.75023687", "0.7482801", "0.7458533", "0.74574214", "0.74448717", "0.7425158", "0.7425142", "0.740443", "0.73784876", "0.7373136", "0.7370222", "0.73512167", "0.73307425...
0.7474071
10
Copies a blob from one bucket to another with a new name.
def WCIB(l7rj, zvSV, MIdF, fFYM): ca0c = ntiA.get_bucket(l7rj) KSe7 = ca0c.blob(zvSV) YKsn = ntiA.get_bucket(MIdF) fwyn = ca0c.copy_blob(KSe7, YKsn, fFYM) print('Blob {} in bucket {} copied to blob {} in bucket {}.'.format(KSe7.name, ca0c.name, fwyn.name, YKsn.name))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WCIB(l7rj, zvSV, MIdF, fFYM):\n ntiA = S8SU.Client()\n ca0c = ntiA.get_bucket(l7rj)\n KSe7 = ca0c.blob(zvSV)\n YKsn = ntiA.get_bucket(MIdF)\n fwyn = ca0c.copy_blob(KSe7, YKsn, fFYM)\n print('Blob {} in bucket {} copied to blob {} in bucket {}.'.format(KSe7.name, ca0c.name, fwyn.name, YKsn.nam...
[ "0.8666764", "0.80667955", "0.77571267", "0.75186867", "0.75107217", "0.7490743", "0.73982084", "0.72054225", "0.71727175", "0.7155216", "0.70779294", "0.70653147", "0.70617634", "0.70590943", "0.70572364", "0.7054306", "0.7053628", "0.7025793", "0.7014403", "0.70092106", "0....
0.8659917
1
Returns true if given string n is a float number Ex. If n="12.34" it will return True
def ye72(exwG): try: float(exwG) return True except ValueError: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xt5H(vIwR: str) -> bool:\n return ZbWC.match('^-?\\\\d+\\\\.\\\\d+$', vIwR) is not None", "def e5f3(vIwR):\n try:\n float(vIwR)\n return True\n except ValueError:\n return False", "def QpCZ(KCHu: str) -> bool:\n try:\n float(KCHu)\n return True\n except Val...
[ "0.87100995", "0.8695977", "0.86909884", "0.86881363", "0.8672722", "0.8667129", "0.86317015", "0.8599794", "0.8599794", "0.8589437", "0.8581872", "0.8575678", "0.8575678", "0.8575678", "0.8575678", "0.85510004", "0.8532725", "0.8512806", "0.8473553", "0.84571284", "0.8364966...
0.76413065
87
Return logger of given name, without initialize it. Equivalent of logging.getLogger() call.
def bo34(mWFP=eQfj, AIzt=None): return G9jH.getLogger(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(mWFP):\n return G9jH.getLogger(mWFP)", "def fZx2(mWFP=None):\n if not mWFP:\n mWFP = __name__\n return G9jH.getLogger(mWFP)", "def fhOf(mWFP=None):\n return G9jH.getLogger(mWFP)", "def fhOf(mWFP=None):\n try:\n dDGN = We9_[mWFP]\n except KeyError:\n dDGN = KQOG...
[ "0.84278697", "0.84101355", "0.829946", "0.8208665", "0.8112017", "0.8075221", "0.8068199", "0.80314934", "0.7992975", "0.79745615", "0.79377687", "0.79327065", "0.7921155", "0.7895372", "0.7875386", "0.7844193", "0.7810165", "0.7803991", "0.77822423", "0.77404374", "0.771438...
0.80628407
7
Returns the config of the lambdas_config object. This config is a Python dictionary (serializable) containing the configuration of a lambdas_config object.
def tgzD(YKHO): GPtr = {'ranges': YKHO.ranges, 'key_to_index': YKHO.key_to_index, 'encoding': YKHO.encoding, 'dist': YKHO.dist} return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO):\n return {'config': YKHO.config}", "def O2aX(YKHO):\n return YKHO.config", "def O2aX(YKHO):\n return YKHO.config", "def tgzD():\n return viqz", "def tgzD(YKHO):\n return {'name': YKHO.name, 'args': YKHO.args if len(YKHO.args) > 0 else None, 'kwargs': YKHO.kwargs if len(YKHO.k...
[ "0.64464", "0.63935924", "0.63935924", "0.6267802", "0.62477624", "0.6228567", "0.6217935", "0.6215961", "0.6215961", "0.6215961", "0.616768", "0.6155518", "0.6138809", "0.613164", "0.613164", "0.613164", "0.613164", "0.6130971", "0.6125097", "0.6116822", "0.611053", "0.607...
0.6060904
28
Creates numpy matrix that represents the board
def bY2n(YKHO, usx6, ZLJ_): iBIi = oyIN.zeros(shape=(usx6 + 1, ZLJ_ + 1), dtype=int) return iBIi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def efGj():\n iBIi = oyIN.zeros((RMvA, Sktm))\n return iBIi", "def bIlR():\n iBIi = oyIN.zeros([6, 7])\n return iBIi", "def efGj(usx6, WfCS):\n iBIi = oyIN.zeros((usx6, WfCS))\n return iBIi", "def GUba():\n return [[0, 0, 0], [0, 0, 0], [0, 0, 0]]", "def efGj():\n iBIi = oyIN.zeros(...
[ "0.8171517", "0.8096151", "0.7860306", "0.76485914", "0.7332549", "0.7330636", "0.72804093", "0.72345054", "0.7231093", "0.7220281", "0.7167862", "0.7150369", "0.71300524", "0.7014161", "0.69930285", "0.6953508", "0.69211906", "0.6903945", "0.6893233", "0.6883647", "0.6882950...
0.7912439
2
Sets a list of commandline elements usable by the commandLines() method.
def MkPy(YKHO): YKHO.compilerFlags = [] YKHO.toCompile = [] raise NotImplementedError('Unfinished. For now, please use a Makefile')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AH7Z(YKHO, isiZ):\n YKHO.pArgs.extend(isiZ)", "def qOpy(YKHO, qIxc):\n if not isinstance(qIxc, (list, tuple)):\n raise TypeError('args should either be a tuple or list of strings')\n if qIxc:\n for d7pR in qIxc:\n if not isinstance(d7pR, exCv):\n raise TypeErr...
[ "0.67448753", "0.6342041", "0.61557084", "0.61557084", "0.6128915", "0.6086153", "0.6061314", "0.60395485", "0.60310555", "0.6013483", "0.5920339", "0.591379", "0.5912368", "0.58894897", "0.58623797", "0.586213", "0.5847072", "0.5846008", "0.5815793", "0.579256", "0.57612634"...
0.0
-1
Tests on Github3 "Honor EmptyQuerySet".
def KBN4(YKHO): class TestModel(FYrf.Model): class Meta: tKz9 = 'test' class TestAllInOneView(uQ5t): C3ST = mDi0 @classmethod def k66M(Emd4, QePW, **B2fa): VAqm = FYrf.query.EmptyQuerySet() VAqm.test_flag = True return VAqm ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DKrr(YKHO):\n Ywqg = YKHO.service.none()\n YKHO.assertEqual(0, len(Ywqg))\n YKHO.assertEqual(ZYvt, type(Ywqg))", "def YYdB(YKHO):\n return WdPn()", "async def empty(QePW: Request):\n return EyAv(request=QePW)", "def oMcT(YKHO):\n if len(YKHO.query) == 0:\n return True\n else:\...
[ "0.79010725", "0.7705093", "0.74980485", "0.6924595", "0.68267614", "0.6739755", "0.6731627", "0.6730901", "0.66593224", "0.6628994", "0.6624937", "0.6615509", "0.6608097", "0.65775585", "0.65212876", "0.64879704", "0.6482477", "0.64755714", "0.6454915", "0.6387806", "0.63520...
0.6912304
4
list of (k > vv) > equivalent list of (k > v).
def cUOi(Csk6): sjXb = Csk6.keys() hkxX = Csk6.values() for Dbmo in wHvK(hkxX): XNv5 = dict(zip(sjXb, map(lambda Ty9i: [Ty9i], Dbmo))) yield XNv5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mlaG(YKHO):\n XP5J = list(YKHO.tuple)\n return [tuple([YRbF, r845]) for YRbF in range(1, len(XP5J) + 1) for r845 in range(YRbF + 1, len(XP5J) + 1) if XP5J[YRbF - 1] > XP5J[r845 - 1]]", "def hsra(BDwY, G1Hx):\n dict = {}\n for wEf2 in BDwY:\n dict[abs(G1Hx - wEf2)] = wEf2\n THI6 = []\n ...
[ "0.63446134", "0.62715703", "0.62122613", "0.59985995", "0.5844509", "0.57823056", "0.572009", "0.56281495", "0.56226593", "0.56101394", "0.5575688", "0.5516313", "0.54946905", "0.5443183", "0.5425418", "0.5382521", "0.5382521", "0.53791493", "0.5324973", "0.53189975", "0.528...
0.0
-1
Gets the oauth_config_id of this ComAdobeGraniteAuthOauthProviderProperties.
def _Y59(YKHO) -> w4ot: return YKHO._oauth_config_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjfX(YKHO) -> w4ot:\n return YKHO._oauth_config_provider_id", "def xFor(YKHO) -> w4ot:\n return YKHO._oauth_client_id", "def _Y59(YKHO, _Y59: ConfigNodePropertyString):\n YKHO._oauth_config_id = _Y59", "def vcLg(YKHO) -> w4ot:\n return YKHO._oauth_client_secret", "def GjfX(YKHO, GjfX: Confi...
[ "0.8318241", "0.78829855", "0.72432226", "0.6881373", "0.6868174", "0.6866206", "0.6782468", "0.67366403", "0.6553309", "0.6553309", "0.64417756", "0.63599443", "0.6219153", "0.61262554", "0.6122882", "0.6122882", "0.6122882", "0.6122882", "0.6122882", "0.6122882", "0.6122882...
0.8639386
0
Sets the oauth_config_id of this ComAdobeGraniteAuthOauthProviderProperties.
def _Y59(YKHO, _Y59: ConfigNodePropertyString): YKHO._oauth_config_id = _Y59
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GjfX(YKHO, GjfX: ConfigNodePropertyString):\n YKHO._oauth_config_provider_id = GjfX", "def g05X(YKHO, g05X):\n YKHO._oauth_bearer_configid = g05X", "def xFor(YKHO, xFor: ConfigNodePropertyString):\n YKHO._oauth_client_id = xFor", "def _Y59(YKHO) -> w4ot:\n return YKHO._oauth_config_id", "de...
[ "0.8073177", "0.7675766", "0.75108457", "0.71274644", "0.6732801", "0.65130454", "0.64786154", "0.63479084", "0.62977165", "0.62028515", "0.58866495", "0.57155913", "0.5510958", "0.5510053", "0.54323065", "0.53112876", "0.52537805", "0.52426314", "0.51331085", "0.5110588", "0...
0.86087656
0
Gets the oauth_client_id of this ComAdobeGraniteAuthOauthProviderProperties.
def xFor(YKHO) -> w4ot: return YKHO._oauth_client_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tkzx(YKHO) -> str:\n return qe4Y.get(YKHO, 'oauth2_client_id')", "def tkzx(YKHO) -> str:\n return qe4Y.get(YKHO, 'oauth2_client_id')", "def id(YKHO):\n return YKHO.authentication_token.oauth_client_id", "def _Y59(YKHO) -> w4ot:\n return YKHO._oauth_config_id", "def VzEz(YKHO) -> h8nf[qe4Y.I...
[ "0.7772883", "0.7772883", "0.7607721", "0.7218229", "0.72182226", "0.71903497", "0.71248764", "0.7027226", "0.69147915", "0.68566024", "0.66934377", "0.65228176", "0.6488545", "0.64639115", "0.64471906", "0.6391848", "0.6350962", "0.6346711", "0.6337013", "0.63369185", "0.632...
0.84993035
0
Gets the oauth_scope of this ComAdobeGraniteAuthOauthProviderProperties.
def Enep(YKHO) -> tpYs: return YKHO._oauth_scope
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UXPF(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'oauth_scopes')", "def UXPF(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input[str]]]:\n return qe4Y.get(YKHO, 'oauth_scopes')", "def UXPF(YKHO):\n return YKHO.headers()['X-OAuth-Scopes']", "def Enep(YKHO, Enep: ConfigNodePropertyAr...
[ "0.7564896", "0.7466322", "0.7057026", "0.70524263", "0.6670324", "0.6335458", "0.6198644", "0.6176115", "0.60897183", "0.60230887", "0.6018962", "0.5963533", "0.59213036", "0.59148", "0.59148", "0.59148", "0.5847256", "0.58292633", "0.58252496", "0.5782058", "0.5732811", "...
0.8037455
0
Gets the oauth_config_provider_id of this ComAdobeGraniteAuthOauthProviderProperties.
def GjfX(YKHO) -> w4ot: return YKHO._oauth_config_provider_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Y59(YKHO) -> w4ot:\n return YKHO._oauth_config_id", "def xFor(YKHO) -> w4ot:\n return YKHO._oauth_client_id", "def GjfX(YKHO, GjfX: ConfigNodePropertyString):\n YKHO._oauth_config_provider_id = GjfX", "def _Y59(YKHO, _Y59: ConfigNodePropertyString):\n YKHO._oauth_config_id = _Y59", "def lP...
[ "0.8190523", "0.7495239", "0.7199504", "0.67584467", "0.6529457", "0.64813274", "0.64672464", "0.6396047", "0.6345605", "0.6273217", "0.6273217", "0.6269284", "0.6077156", "0.6066312", "0.60047424", "0.5967772", "0.59268063", "0.58476007", "0.5809056", "0.5781395", "0.577782"...
0.8649705
0
Sets the oauth_userid_property of this ComAdobeGraniteAuthOauthProviderProperties.
def lPml(YKHO, lPml: ConfigNodePropertyString): YKHO._oauth_userid_property = lPml
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lPml(YKHO) -> w4ot:\n return YKHO._oauth_userid_property", "def xFor(YKHO, xFor: ConfigNodePropertyString):\n YKHO._oauth_client_id = xFor", "def _Y59(YKHO, _Y59: ConfigNodePropertyString):\n YKHO._oauth_config_id = _Y59", "def GjfX(YKHO, GjfX: ConfigNodePropertyString):\n YKHO._oauth_config_...
[ "0.68707925", "0.6841666", "0.64590806", "0.64504564", "0.63451207", "0.63451207", "0.61006457", "0.57545567", "0.57545567", "0.56733555", "0.56733555", "0.5599264", "0.55788517", "0.5505682", "0.55012095", "0.5488112", "0.54621226", "0.5392172", "0.5356665", "0.5354226", "0....
0.86195344
0
Gets the force_strict_username_matching of this ComAdobeGraniteAuthOauthProviderProperties.
def zp3r(YKHO) -> MH_9: return YKHO._force_strict_username_matching
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zp3r(YKHO, zp3r: ConfigNodePropertyBoolean):\n YKHO._force_strict_username_matching = zp3r", "def pahb(YKHO):\n return YKHO.try_username", "def pahb(YKHO):\n return YKHO.try_username", "def fiXC(YKHO):\n return getattr(YKHO, YKHO.USERNAME_FIELD)", "def NtEF(YKHO) -> str:\n return laHg.ca...
[ "0.7489826", "0.6156636", "0.613248", "0.6061104", "0.6021651", "0.6021225", "0.5903451", "0.58984786", "0.58864576", "0.5865658", "0.585883", "0.5793639", "0.5779229", "0.5755842", "0.57388014", "0.57388014", "0.5659725", "0.5659725", "0.5659725", "0.5657582", "0.56285363", ...
0.7663106
0
Gets the oauth_encode_userids of this ComAdobeGraniteAuthOauthProviderProperties.
def lmgn(YKHO) -> MH_9: return YKHO._oauth_encode_userids
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lmgn(YKHO, lmgn: ConfigNodePropertyBoolean):\n YKHO._oauth_encode_userids = lmgn", "def RPhX(YKHO) -> MH_9:\n return YKHO._oauth_hash_userids", "def Enep(YKHO) -> tpYs:\n return YKHO._oauth_scope", "def DUF8(YKHO) -> qe4Y.Output[h8nf[bdIy[str]]]:\n return qe4Y.get(YKHO, 'identity_provider_ids...
[ "0.7131846", "0.6112054", "0.55592436", "0.55098164", "0.54414433", "0.54414433", "0.5377837", "0.52673423", "0.52622205", "0.5251692", "0.5247096", "0.5090822", "0.5088964", "0.50831795", "0.50662345", "0.50644726", "0.50644726", "0.5047644", "0.5031607", "0.49847385", "0.49...
0.75540286
0
Gets the oauth_redirect_request_params of this ComAdobeGraniteAuthOauthProviderProperties.
def oiLb(YKHO) -> MH_9: return YKHO._oauth_redirect_request_params
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oiLb(YKHO, oiLb: ConfigNodePropertyBoolean):\n YKHO._oauth_redirect_request_params = oiLb", "def Hxxu(YKHO):\n NArs = {'client_id': YKHO.user.client_id, 'redirect_uri': YKHO._callback, 'approval_prompt': 'auto', 'response_type': 'code', 'scope': YKHO._scope}\n return NArs", "def W6RH(YKHO):\n r...
[ "0.7693114", "0.6395713", "0.6021505", "0.5731741", "0.55232435", "0.55232435", "0.5490308", "0.5407828", "0.5407828", "0.5407828", "0.5407828", "0.5407828", "0.5407828", "0.5405938", "0.5386324", "0.5353229", "0.5338814", "0.53192437", "0.52962923", "0.52581894", "0.5248565"...
0.7587148
1
Gets the oauth_config_siblings_allow of this ComAdobeGraniteAuthOauthProviderProperties.
def paMZ(YKHO) -> MH_9: return YKHO._oauth_config_siblings_allow
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def paMZ(YKHO, paMZ: ConfigNodePropertyBoolean):\n YKHO._oauth_config_siblings_allow = paMZ", "def Enep(YKHO) -> tpYs:\n return YKHO._oauth_scope", "def oiLb(YKHO) -> MH_9:\n return YKHO._oauth_redirect_request_params", "def UXPF(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get...
[ "0.7862064", "0.6008348", "0.58092153", "0.522407", "0.51951426", "0.5173998", "0.51510966", "0.5128293", "0.5099472", "0.50994617", "0.50979096", "0.50910026", "0.5077988", "0.50490326", "0.5039257", "0.502545", "0.5018394", "0.50028723", "0.49954212", "0.4990939", "0.498357...
0.82954735
0
Returns True if the given tree contains any floating point splits.
def cCJx(J_Es): for Q6kx in J_Es.nodes: if isinstance(Q6kx.split, (oyIN.float16, oyIN.float32, oyIN.float64, float)): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QpCZ(YKHO):\n return BtPp(YKHO.node)", "def pzmx(ILX8: pd.Series) -> bool:\n _hZ2 = 10 ** (-4)\n for geyT in ILX8.tolist():\n if not isinstance(geyT, mSrU.Number):\n return False\n SalD = round(geyT)\n if abs(geyT - SalD) > _hZ2:\n return True\n return F...
[ "0.6486547", "0.6397062", "0.6383558", "0.629567", "0.6234847", "0.6218059", "0.61777246", "0.6118383", "0.6084099", "0.6080679", "0.6072422", "0.6060842", "0.6060842", "0.6060842", "0.6060842", "0.6059513", "0.6052347", "0.60465074", "0.60388887", "0.6014436", "0.60051256", ...
0.8587981
0
Static method to return array as original
def utk7(CVJd: np.ndarray, CLpk: set, bKEy: int, o6jZ: int, oRyM: bool=False) -> oyIN.ndarray: return oyIN.random.randint(bKEy, o6jZ, size=CLpk) if oRyM else CVJd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrOS(YKHO):\n return YKHO.arr", "def BGc_(YKHO):\n return YKHO._data.copy()", "def uzII(YKHO):\n return YKHO.data", "def MIGr(jzdc):\n jzdc = MF4b(jzdc)\n return jzdc.copy()", "def SiRx(YKHO):\n YKHO.array = YKHO.original[:]\n return YKHO.array", "def qw7D(YKHO):\n return oyIN...
[ "0.6772684", "0.6751591", "0.67445374", "0.67406416", "0.67374575", "0.67192334", "0.67181385", "0.67181385", "0.6633152", "0.6567606", "0.6542351", "0.6499207", "0.6488915", "0.6488399", "0.64568305", "0.6432208", "0.6414879", "0.6392348", "0.63664824", "0.6325088", "0.63194...
0.0
-1
unsigned less than or equal
def ef5t(YKHO, ftGG, mbhq): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cMJb(jzdc: int, Fg_i: int) -> int:\n ...", "def Zmba(BWXx, zNig):\n return BWXx & baZT[zNig]", "def Ma8o() -> None:\n JVcV = tFgz(b4WV, False)\n JVcV.check_range(0)\n JVcV.check_range(1)\n with cR0t(ValueError, match='^value -1 does not fit in type uint$'):\n JVcV.check_range(-1)\n...
[ "0.6705403", "0.65716606", "0.6450931", "0.6389745", "0.6384766", "0.6287058", "0.62511015", "0.62364125", "0.62323886", "0.61958575", "0.6114354", "0.6048614", "0.6030297", "0.5992815", "0.59340787", "0.59204537", "0.58917415", "0.58726156", "0.58687246", "0.58452576", "0.58...
0.0
-1
unsigned greater than or equal
def QBzJ(YKHO, ftGG, mbhq): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zmba(BWXx, zNig):\n return BWXx & baZT[zNig]", "def Ma8o() -> None:\n JVcV = tFgz(b4WV, False)\n JVcV.check_range(0)\n JVcV.check_range(1)\n with cR0t(ValueError, match='^value -1 does not fit in type uint$'):\n JVcV.check_range(-1)\n JVcV.check_range(1 << 100)\n with cR0t(ValueEr...
[ "0.6778812", "0.6380783", "0.63171124", "0.6176435", "0.6135138", "0.6121249", "0.6101167", "0.6035967", "0.60286325", "0.5979018", "0.5954383", "0.59424955", "0.5920557", "0.59025323", "0.58773035", "0.58729106", "0.5851536", "0.5841681", "0.58246595", "0.5822709", "0.577653...
0.0
-1
Get the state of the VM.
def vspN(YKHO): if YKHO.provider == 'vmware': Ch0F = KhDw(YKHO.vmx) return Ch0F.vm_state() if YKHO.provider == 'virtualbox': O3m6 = SDe7() return O3m6.vm_state(YKHO.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_state(YKHO):\n geh0 = await YKHO._get_volumio_msg('getState')\n return geh0.copy()", "def jGRS(YKHO):\n Mkmy = YKHO.get(YKHO.vm_search_url)\n return Mkmy['vms'][0]['status']['state']", "def OEQv(YKHO):\n return zM57.GetStateImpl(YKHO.pSystemModel)", "def b5bz(fwgd):\n mQiX = Y...
[ "0.77438396", "0.7705743", "0.7593678", "0.74742484", "0.7397785", "0.7396177", "0.7373077", "0.73578614", "0.73578614", "0.73578614", "0.73578614", "0.73578614", "0.73578614", "0.73578614", "0.7314964", "0.73075336", "0.72970504", "0.72850937", "0.72850937", "0.72850937", "0...
0.82618153
0
Return a representation of a Mech instance.
def wHJl(YKHO): VWe_ = '\n' return 'name:{name}{sep}created:{created}{sep}box:{box}{sep}box_version:{box_version}{sep}url:{url}{sep}box_file:{box_file}{sep}provision:{provision}{sep}vmx:{vmx}{sep}user:{user}{sep}password:{password}{sep}enable_ip_lookup:{enable_ip_lookup}{sep}config:{config}{sep}shared_folders:{...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<Mechaber {}>'.format(YKHO.mechaber_name)", "def wHJl(YKHO) -> str:\n QpfX = ' '.join(('{}={}'.format(G1Hx, Ty9i) for G1Hx, Ty9i in YKHO._solution.items()))\n return '<Twilio.Chat.V3.ChannelInstance {}>'.format(QpfX)", "def wHJl(YKHO):\n return f'< Metrics: \\n ...
[ "0.6962781", "0.6225357", "0.61743635", "0.617044", "0.6078751", "0.59682864", "0.59682864", "0.59630114", "0.5912737", "0.58871335", "0.5863632", "0.58554757", "0.5833092", "0.582061", "0.578704", "0.5775981", "0.57734925", "0.576512", "0.57568496", "0.57568496", "0.57549393...
0.0
-1
returns a randomly selected item from the "data list".
def NMoC(YKHO): return YKHO.data[tuKI.randint(0, YKHO.length - 1)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return tuKI.sample(YKHO.list_items, 1)[0]", "def Noc6(DumB):\n dQgj = tuKI.randint(0, len(DumB) - 1)\n return DumB[dQgj]", "def Imy3(nPrm, xlLU):\n return xlLU.choice(nPrm)", "def UIrZ(YKHO):\n return YKHO.li[tuKI.randint(0, len(YKHO.li) - 1)][0]", "def UIrZ(YKHO):\n ret...
[ "0.7510383", "0.74972075", "0.73688143", "0.73620963", "0.7345783", "0.73245686", "0.73245686", "0.73245686", "0.73056024", "0.7244462", "0.7111535", "0.710212", "0.70436764", "0.70424086", "0.70391655", "0.7026471", "0.70187575", "0.6984026", "0.69839853", "0.69739527", "0.6...
0.6864327
24
The service name is lowercased so it can be compared caseinsensitively.
def sqwD(YKHO): oS93 = u053('_MaIl.foo.com') assert b'mail' == oS93.name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MpXb(YKHO):\n bSEa = YKHO.service.name\n YKHO.assertIsInstance(bSEa, str)", "def bSEa(Emd4):\n raise NotImplementedError", "def vYvI(zVa7):\n zVa7 = zVa7.lower().replace(' ', '')\n if zVa7 in TW1f:\n zVa7 = TW1f[zVa7]\n return zVa7", "def bSEa(YKHO) -> str:\n return laHg.cast(...
[ "0.7514438", "0.73507386", "0.72888464", "0.69870394", "0.69870394", "0.6964062", "0.6964062", "0.6964062", "0.6964062", "0.69574577", "0.68325514", "0.68325514", "0.68168706", "0.68168706", "0.68168706", "0.68168706", "0.68168706", "0.68168706", "0.680774", "0.6788607", "0.6...
0.5967515
76
Raise ValueError if the service is doesn't start with an underscore.
def qxX7(YKHO): with trZe.raises(ValueError): u053('imaps.foo.com')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qxX7(YKHO):\n with trZe.raises(RQGP):\n WTx3.from_bytes(b'foo.com')", "def ro_l(mWFP):\n DsIa(mWFP)\n if not cf33.match(mWFP):\n raise ValueError(f'endpoint name {mWFP} can only contain: a-z, A-Z, 0-9, underscore, hyphens and spaces.')", "def WWho(YKHO, mWFP):\n if mWFP is None or...
[ "0.62432617", "0.61821634", "0.6149927", "0.60896254", "0.60749596", "0.6030524", "0.59314144", "0.591702", "0.587991", "0.58740443", "0.58218825", "0.5808297", "0.58043945", "0.57677597", "0.5719131", "0.57140213", "0.57121944", "0.5594289", "0.55879253", "0.55801", "0.55015...
0.7381527
0
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(YKHO, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.79794735", "0.712063", "0.71158653", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", "0.70911896", ...
0.0
-1
Retrieves all the attributes of class to dictionary
def SRkh(YKHO): cmPJ = {'id': YKHO.id, 'size': YKHO.size, 'x': YKHO.x, 'y': YKHO.y} return cmPJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h6gc(YKHO, Emd4):\n azoT = tq_1.getmembers(Emd4, lambda jzdc: not tq_1.isroutine(jzdc))\n return {jzdc[0]: jzdc[1] for jzdc in azoT if not (jzdc[0].startswith('__') and jzdc[0].endswith('__'))}", "def azoT(Emd4):\n return dict(Emd4._attributes)", "def h6gc(Emd4):\n Vfbn = dict()\n jOxn = '_'...
[ "0.84075624", "0.8357198", "0.8173407", "0.8049446", "0.79729277", "0.77637064", "0.7614045", "0.7598201", "0.75885785", "0.7557592", "0.75514406", "0.75514406", "0.75513077", "0.7541446", "0.7501581", "0.74945426", "0.74492407", "0.7444743", "0.7431416", "0.74110997", "0.739...
0.0
-1
Must not raise when ``path`` is a file or does not exist.
def pdWw() -> None: DPsw(path=Hy7s.path.join(OVk8.vars.PROJECT_ROOT, 'README.rst')) DPsw(path='')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4si(pmON):\n if not Hy7s.path.exists(pmON):\n raise Z07W('The path provided does not exist.')", "def H4si(pmON):\n if Hy7s.path.isfile(pmON):\n return pmON\n raise j1Jz.ArgumentTypeError(f'Error: file:{pmON} does not exist')", "def QcvR(pmON):\n if not Hy7s.path.isfile(pmON):\n ...
[ "0.7890957", "0.7735638", "0.7671618", "0.7524693", "0.74061793", "0.73925865", "0.7390124", "0.731969", "0.72435457", "0.72418255", "0.72418255", "0.72289383", "0.72035456", "0.7189299", "0.7184639", "0.7156385", "0.71508014", "0.71381605", "0.7123489", "0.7120479", "0.71158...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: if (yT1k := (await ajET.config_entries.async_unload_platforms(bTKY, []))): ajET.data[Sugg].pop(bTKY.entry_id) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistant, bTKY: config_entries.ConfigEntry):\n return await ajET.config_entries.async_forward_entry_unload(bTKY, lQ1Q)", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()...
[ "0.70418245", "0.69975436", "0.69197667", "0.69024074", "0.6896897", "0.6870464", "0.6840728", "0.67911863", "0.67835754", "0.6782968", "0.6776581", "0.67688036", "0.6737991", "0.6730449", "0.6713354", "0.67085946", "0.6664857", "0.66411716", "0.6637687", "0.66157013", "0.660...
0.6581861
21
Determine the version of the Python used in a virtualenv.
def knc1(b6Y4): if not Hy7s.path.isfile(Hy7s.path.join(b6Y4, 'bin', 'python')): HwRy.exit('not a virtualenv: {}/bin/python does not exist'.format(b6Y4)) L6MF = Hy7s.listdir(Hy7s.path.join(b6Y4, 'lib')) if len(L6MF) != 1: HwRy.exit('not a virtualenv: {}/lib has more than one entry'.format(b6Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wkGJ():\n with nNXP.cd(nNXP.env.proj_dir):\n nNXP.run('{0} -V'.format(nNXP.env.venv_python))", "def wkGJ():\n return '{}.{}.{}'.format(*HwRy.version_info)", "def gely(B5hb, qhLt):\n Wxhr = Hy7s.path.join(qhLt, B5hb, 'bin')\n p_9j = Hy7s.path.join(Wxhr, 'python')\n wkGJ = None\n if ...
[ "0.8539117", "0.7859467", "0.7674826", "0.76506656", "0.752603", "0.7300964", "0.72855663", "0.72682106", "0.7244516", "0.7215865", "0.7210954", "0.71883184", "0.71659195", "0.7100439", "0.7080835", "0.7051783", "0.6978824", "0.6932451", "0.6931585", "0.6931422", "0.6859378",...
0.7945402
1
Returns the the first IP of the VLAN in the IPDB of the Namespace
def MsnD(YKHO, jHrh: str, g2tw: str) -> (str, int): I33c = YKHO.nsp_dict[jHrh].ipdb_get_ip(ipdb=False, iface_name=g2tw).split('/') D8Ke = I33c[0] ZHfW = int(I33c[1]) return (D8Ke, ZHfW)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LS01(YKHO, TN1U):\n GNcJ = [YRbF for YRbF in YKHO.xml.vlans if YRbF.vid == TN1U]\n if GNcJ:\n return GNcJ[0]\n else:\n return None", "def OKjB(YKHO):\n return YKHO.__outer_vlan", "def wsYy(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'infra_vlan')", "def vgaU(fD9V)...
[ "0.62682164", "0.61384904", "0.6091812", "0.6040981", "0.60374355", "0.60374355", "0.60374355", "0.5998064", "0.5998064", "0.59935117", "0.5947806", "0.593609", "0.59035", "0.5885014", "0.58827823", "0.58807397", "0.5835055", "0.58272463", "0.5814418", "0.5768062", "0.5765862...
0.6143482
1
Load Pretrained VGG Model into TensorFlow.
def LbAo(cb_Q, VyBP): ZylS.saved_model.loader.load(cb_Q, ['vgg16'], VyBP) pNZh = ZylS.get_default_graph() njad = pNZh.get_tensor_by_name('image_input:0') sMyr = pNZh.get_tensor_by_name('keep_prob:0') wKyr = pNZh.get_tensor_by_name('layer3_out:0') vSVq = pNZh.get_tensor_by_name('layer4_out:0') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LbAo(cb_Q, VyBP):\n lFgm = 'vgg16'\n kvAN = 'image_input:0'\n jlSf = 'keep_prob:0'\n XYEU = 'layer3_out:0'\n Fq6D = 'layer4_out:0'\n FI61 = 'layer7_out:0'\n ZylS.saved_model.loader.load(cb_Q, [lFgm], VyBP)\n pNZh = ZylS.get_default_graph()\n input = pNZh.get_tensor_by_name(kvAN)\n ...
[ "0.79139525", "0.78912765", "0.7886453", "0.7886453", "0.78115135", "0.77844846", "0.7764394", "0.7755438", "0.7742855", "0.773247", "0.77111346", "0.77089316", "0.7696031", "0.7681593", "0.76731616", "0.7656345", "0.7629141", "0.76261705", "0.7620557", "0.7619268", "0.759941...
0.76932967
13
Returns the section name. The section name will never be more than eight characters. the section name
def Q0HP(YKHO) -> QMSQ: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M8YW(YKHO):\n raise NotImplementedError()", "def jXK2(YKHO, mWFP: str) -> str:\n return f'\"{akhO}{mWFP}\"'", "def N8Oe(YKHO) -> QMSQ:\n ...", "def HVam(YKHO, XLMv):\n return None", "def M8YW(YKHO):\n return YKHO.value", "def luDO(YKHO) -> QMSQ:\n ...", "def XiOB(YKHO, ezIQ):\n ...
[ "0.7972107", "0.7936431", "0.7904127", "0.77503353", "0.77253824", "0.7576056", "0.74808025", "0.7354114", "0.72419775", "0.72348696", "0.7102497", "0.7007254", "0.6992667", "0.69657904", "0.6959223", "0.6934153", "0.6928994", "0.6861012", "0.6733393", "0.6678721", "0.6670162...
0.0
-1
Check if department with provided name exists.
def fUbN(YKHO, mWFP): X5CZ = Mjcm.query.filter_by(name=mWFP.data).first() if X5CZ: raise sUXu('Department with this name already exists.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMyi(YxWK):\n vtfo = False\n nPrm = xwT3(YxWK)\n if nPrm.exists() is True:\n vtfo = True\n return vtfo", "def DDHx(QdlN):\n LbZb = '%{0}%'.format(QdlN)\n nPrm = FYrf.Department.query.filter(FYrf.Department.name.ilike(LbZb))\n CNrd = FYrf.DepartmentSchema(many=True)\n X5CZ = CNr...
[ "0.71189153", "0.66960275", "0.6257593", "0.6162623", "0.6155916", "0.6125512", "0.6061816", "0.60387254", "0.60352796", "0.60216016", "0.5986934", "0.58803993", "0.587011", "0.5861577", "0.585971", "0.5842432", "0.5835638", "0.5825511", "0.5819576", "0.5816606", "0.5816606",...
0.7574295
0
Creates and saves a User with the given email and password.
def lYUQ(YKHO, D3lj=None, NtEF=None, jTXt=None): D3lj = YKHO.normalize_email(D3lj) CBIr = YKHO.model(email=YKHO.normalize_email(D3lj)) if NtEF: CBIr.fb_username = NtEF CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87203795", "0.8471124", "0.8462932", "0.84520763", "0.84274495", "0.84224284", "0.84208685", "0.84165066", "0.8410754", "0.8409538", "0.8409538", "0.8401648", "0.84014827", "0.8391565", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0....
0.0
-1
Creates and saves a superuser with the given email and password.
def Zp54(YKHO, D3lj, jTXt): CBIr = YKHO.create_user(D3lj, password=jTXt) CBIr.is_admin = True CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zp54(YKHO, D3lj, jTXt=None, **dDGN):\n YKHO._create_user(D3lj, True, jTXt, **dDGN)", "def Zp54(YKHO, D3lj, jTXt, **wdCM):\n if jTXt is None:\n raise TypeError('Superusers must have a password.')\n CBIr = YKHO.create_user(D3lj, password=jTXt, **wdCM)\n CBIr.is_superuser = True\n CBIr.is_...
[ "0.8555722", "0.83575016", "0.83508795", "0.830083", "0.8291109", "0.82742244", "0.82727426", "0.8251127", "0.82483673", "0.82372046", "0.82254887", "0.8222463", "0.8222279", "0.8215102", "0.82104456", "0.82021487", "0.8192061", "0.8187187", "0.81800467", "0.81787187", "0.817...
0.0
-1
Does the user have permissions to view the app `app_label`?
def spO2(YKHO, tKz9): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO2(YKHO, tKz9):\n return True", "def spO...
[ "0.78277415", "0.7621695", "0.7529376", "0.74810845", "0.74810845", "0.74810845", "0.74810845", "0.74810845", "0.73682016", "0.7339325", "0.73229074", "0.73090535", "0.7199971", "0.71992856", "0.71367824", "0.70515025", "0.69919354", "0.68627805", "0.6851231", "0.6836294", "0...
0.7417618
8
Returns the original target or a boost location that will help to get to the target faster.
def oHWB(GJos: np.ndarray, yKcO: np.ndarray, pan_: np.ndarray, y917: np.ndarray, nXzS: float): xGWK = Zjwy(pan_ - yKcO, y917, nXzS)[0] VprO, _M3q, HTX3 = OGCe(GJos['location'] - yKcO, [y917] * len(GJos), [nXzS] * len(GJos)) befS = oyIN.where(GJos['is_full_boost'], 10, 4) BmEm = (GJos['timer'] + VprO >= ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yt78(YKHO):\n return YKHO.target", "def pan_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'target')", "def pan_(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, '...
[ "0.6975192", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.66838324", "0.6675879", "0.66743386", "0.65885586", "0.65885586", "0.65885586", ...
0.0
-1
Split a pathname into components (the opposite of os.path.join) in a platformneutral way.
def c6pt(pmON, Aofo=None): if Aofo is None: Aofo = [] sdCG, J3uN = Hy7s.path.split(pmON) if sdCG == '': return [J3uN] + Aofo if sdCG == pmON: return Aofo return c6pt(sdCG, [J3uN] + Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lpha(YKHO, pmON):\n raise NotImplementedError", "def eQ8x(pmON):\n return Hy7s.path.split(pmON)", "def KkWy(pmON):\n return Hy7s.path.normpath(pmON).strip('/').split('/')", "def eQ8x(pmON):\n return pmON.lstrip(Hy7s.sep).rstrip(Hy7s.sep).split(Hy7s.sep)", "def KkWy(pmON):\n pmON = Hy7s.p...
[ "0.73194486", "0.7280547", "0.7228261", "0.72041714", "0.7160185", "0.7153821", "0.7047913", "0.7041898", "0.696977", "0.69600254", "0.691248", "0.6911932", "0.6885217", "0.6875903", "0.6852911", "0.6852911", "0.6817326", "0.6782533", "0.6762041", "0.6736175", "0.6715479", ...
0.61364883
62
gets all related sessions to this user.
def Aing(YKHO, rdlD): return YKHO._get_link_info('Sessions', MKFs, user_id=rdlD.id)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aing(YKHO):\n return list(YKHO._sessions.values())", "def c_lP(YKHO, uJjO):\n return [DMju(YKHO._validate_response(cuiw, wI5X)) for cuiw in YKHO._transport.post('/directory/v3/sessions/list', YKHO._subject, identifier=uJjO).data]", "def Aing(YKHO):\n jGRS, nPrm = YKHO._rest.get_request('sessions')...
[ "0.70635015", "0.68417156", "0.68402916", "0.6781182", "0.67204833", "0.6709021", "0.6697827", "0.665592", "0.66104823", "0.65694135", "0.65623534", "0.65299994", "0.6525502", "0.6506144", "0.64833915", "0.6464153", "0.6442566", "0.6438012", "0.6395567", "0.6388228", "0.63456...
0.6216872
29
converts a list of tuples into a df
def yhih(Bgj3): Kt9y, I_KI = zip(*Bgj3) jQ3Z = rLdf.DataFrame(Kt9y, columns=['word']) jQ3Z['frequency'] = I_KI return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpSY(OlsH: List[Tuple], ZLJ_: List[Text]) -> rLdf.DataFrame:\n return rLdf.DataFrame(OlsH, columns=ZLJ_)", "def vST6(OlsH=None):\n HN6s = 48\n jQ3Z = rLdf.DataFrame(index=oyIN.arange(HN6s))\n if OlsH is None:\n OlsH = []\n for fvDH, MoaH in OlsH:\n jQ3Z[fvDH] = MoaH\n return j...
[ "0.838738", "0.73979056", "0.68055886", "0.6795696", "0.65783536", "0.6485972", "0.63344973", "0.63344973", "0.62303144", "0.62242776", "0.6220895", "0.61273825", "0.6028062", "0.60181355", "0.595065", "0.595065", "0.59342754", "0.5926816", "0.59225607", "0.59091556", "0.5902...
0.74925447
1
converts a list of tuples into a df
def s_Q1(Bgj3): Kt9y, I_KI = zip(*Bgj3) jQ3Z = rLdf.DataFrame(list(Kt9y), columns=['first word', 'second word']) jQ3Z['frequency'] = I_KI return jQ3Z
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xpSY(OlsH: List[Tuple], ZLJ_: List[Text]) -> rLdf.DataFrame:\n return rLdf.DataFrame(OlsH, columns=ZLJ_)", "def yhih(Bgj3):\n Kt9y, I_KI = zip(*Bgj3)\n jQ3Z = rLdf.DataFrame(Kt9y, columns=['word'])\n jQ3Z['frequency'] = I_KI\n return jQ3Z", "def vST6(OlsH=None):\n HN6s = 48\n jQ3Z = rL...
[ "0.838738", "0.74925447", "0.73979056", "0.6795696", "0.65783536", "0.6485972", "0.63344973", "0.63344973", "0.62303144", "0.62242776", "0.6220895", "0.61273825", "0.6028062", "0.60181355", "0.595065", "0.595065", "0.59342754", "0.5926816", "0.59225607", "0.59091556", "0.5902...
0.68055886
3
Create a Color map that goes from transparant to a given color.
def uG3C(qfpW, i6Hb=256): JbMb = oyIN.array(i6Hb * [list(qfpW)]) JbMb[:, -1] = oyIN.linspace(0.0, 1.0, i6Hb) iMGt = nmjP.from_list(name='alpha_cmap', colors=JbMb) return iMGt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VTyJ():\n iMGt = S0VE()\n Jw9H = ['#b2182b', '#d6604d', '#f4a582', '#fddbc7', '#f7f7f7', '#d1e5f0', '#92c5de', '#4393c3', '#2166ac']\n iMGt.colors = fvDH.ListedColormap(Jw9H[::-1])\n return iMGt", "def YRac():\n iMGt = Jw9H.ListedColormap(['white', 'orange', 'red', 'green'])\n X7zS = [t5Xx....
[ "0.6508723", "0.6251729", "0.6193163", "0.6101093", "0.6027237", "0.60065323", "0.5962276", "0.588964", "0.58673894", "0.5843854", "0.5830009", "0.5744604", "0.5730008", "0.572201", "0.56925344", "0.5689962", "0.5638864", "0.562736", "0.5602715", "0.5579852", "0.5576104", "...
0.5415644
43
To calculate euclidean distance between two poses
def usGr(YKHO, EBgd, HpuQ): return epAf.sqrt(epAf.pow(EBgd.x - HpuQ.x, 2) + epAf.pow(EBgd.y - HpuQ.y, 2) + epAf.pow(EBgd.z - HpuQ.z, 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(EBgd, HpuQ):\n return oyIN.sqrt(oyIN.sum((EBgd - HpuQ) ** 2, axis=1))", "def usGr(gwqK, yCTS):\n return epAf.sqrt((gwqK.x - yCTS.x) ** 2 + (gwqK.y - yCTS.y) ** 2)", "def Gvwv(EBgd, HpuQ):\n return epAf.sqrt((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2)", "def usGr(gwqK: np.array, yCT...
[ "0.7850424", "0.78106385", "0.78074133", "0.77604854", "0.7755605", "0.77352214", "0.77072614", "0.7704077", "0.76541466", "0.75676185", "0.7566789", "0.75384855", "0.7480987", "0.74779356", "0.7462749", "0.74534863", "0.7448255", "0.7446183", "0.74229765", "0.74155426", "0.7...
0.76932365
8
Return a Pandas DataFrame representing bins inside the pool
def o87x(YKHO): K2kF = [] for YRbF, bin in enumerate(YKHO.bins): jQ3Z = bin.to_dataframe() jQ3Z['bin'] = [YRbF] * len(jQ3Z) K2kF += [jQ3Z] return rLdf.concat(K2kF, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o87x(YKHO):\n K2kF = []\n for YRbF, QhVS in enumerate(YKHO.compact_bins):\n jQ3Z = QhVS.df\n jQ3Z['bin'] = [YRbF] * len(jQ3Z)\n K2kF += [jQ3Z]\n return rLdf.concat(K2kF, axis=0)", "def qA6M(LVAh: np.ndarray, aMgO: np.ndarray, KQ7o: int) -> rLdf.DataFrame:\n exwG = len(aMgO)\n...
[ "0.7524278", "0.6959023", "0.68363035", "0.6688644", "0.65738946", "0.6548811", "0.65385973", "0.6520278", "0.6458664", "0.64562786", "0.64509726", "0.64183867", "0.6413064", "0.64065224", "0.6337794", "0.6304406", "0.6293746", "0.62694156", "0.6250537", "0.6234285", "0.62274...
0.7527746
0
Return a Pandas DataFrame representing bins inside the pool
def o87x(YKHO): K2kF = [] for YRbF, QhVS in enumerate(YKHO.compact_bins): jQ3Z = QhVS.df jQ3Z['bin'] = [YRbF] * len(jQ3Z) K2kF += [jQ3Z] return rLdf.concat(K2kF, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o87x(YKHO):\n K2kF = []\n for YRbF, bin in enumerate(YKHO.bins):\n jQ3Z = bin.to_dataframe()\n jQ3Z['bin'] = [YRbF] * len(jQ3Z)\n K2kF += [jQ3Z]\n return rLdf.concat(K2kF, axis=0)", "def qA6M(LVAh: np.ndarray, aMgO: np.ndarray, KQ7o: int) -> rLdf.DataFrame:\n exwG = len(aMgO)...
[ "0.7527746", "0.6959023", "0.68363035", "0.6688644", "0.65738946", "0.6548811", "0.65385973", "0.6520278", "0.6458664", "0.64562786", "0.64509726", "0.64183867", "0.6413064", "0.64065224", "0.6337794", "0.6304406", "0.6293746", "0.62694156", "0.6250537", "0.6234285", "0.62274...
0.7524278
1
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.email = vGfb.get('email', KAOR.email) KAOR.display_name = vGfb.get('display_name', KAOR.display_name) KAOR.photo = vGfb.get('photo', KAOR.photo) KAOR.save() return KAOR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n KAOR.comments = vGfb.get('comments', KAOR.comments)\n KAOR.description = vGfb.get('description', KAOR.description)\n KAOR.save()\n return KAOR", "def QdZT(YKHO, KAOR, vGfb):\n KAOR.title = vGfb.get('title', KAOR.title)\n...
[ "0.67801327", "0.6660324", "0.6660324", "0.6655712", "0.6640556", "0.652205", "0.652205", "0.6509049", "0.64857805", "0.6471242", "0.642812", "0.629971", "0.6291086", "0.6275658", "0.6201591", "0.61365765", "0.6096549", "0.60716563", "0.6052537", "0.6051132", "0.60097694", ...
0.52651477
88
Initializes the LAMMPS computes that one wishes to use in the simulation.
def JAZr(YKHO, OVk8): OVk8.command('compute pair_pe all pe') OVk8.command('compute mol_pe all pe dihedral') OVk8.command('compute coul_pe all pair lj/cut/coul/debye ecoul') OVk8.command('compute lj_pe all pair lj/cut/coul/debye evdwl') OVk8.command('compute pair_total all pair lj/cut/coul/debye')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O3k3(YKHO):\n assert not YKHO._running\n Csk6 = YKHO._n_parameters\n exwG = YKHO._population_size\n YKHO._eta_mu = 1\n YKHO._eta_sigmas = 0.2 * (3 + oyIN.log(Csk6)) * Csk6 ** (-0.5)\n YKHO._us = oyIN.maximum(0, oyIN.log(exwG / 2 + 1) - oyIN.log(1 + oyIN.arange(exwG)))\n YKHO._us /= oyIN.su...
[ "0.648334", "0.63528454", "0.63312167", "0.62778336", "0.6260228", "0.6260228", "0.6252505", "0.6252085", "0.62190884", "0.6193899", "0.6181518", "0.6176527", "0.6165605", "0.6136092", "0.61333257", "0.60461086", "0.6042521", "0.6014419", "0.601144", "0.59282756", "0.59262735...
0.70297605
0
Normalize slope for Bresenham's line algorithm. >>> s = np.array([[2, 2, 2, 0]]) >>> _bresenhamline_nslope(s) array([[1., 1., 1., 0.]]) >>> s = np.array([[0, 0, 0, 0]]) >>> _bresenhamline_nslope(s) array([[ 0., 0., 0., 0.]]) >>> s = np.array([[0, 0, 9, 0]]) >>> _bresenhamline_nslope(s) array([[ 0., 0., 1., 0.]])
def dnA5(VMex): NXpY = oyIN.amax(oyIN.abs(VMex), axis=1).reshape(-1, 1) UzHW = (NXpY == 0).all(1) NXpY[UzHW] = oyIN.ones(1) bvD6 = oyIN.array(VMex, dtype=oyIN.double) / NXpY bvD6[UzHW] = oyIN.zeros(VMex[0].shape) return bvD6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dnA5(VMex):\n NXpY = oyIN.amax(oyIN.abs(VMex), axis=1).reshape(-1, 1)\n UzHW = (NXpY == 0).all(1)\n NXpY[UzHW] = oyIN.ones(1)\n bvD6 = oyIN.array(VMex, dtype=oyIN.double) / NXpY\n bvD6[UzHW] = oyIN.zeros(VMex[0].shape)\n return bvD6", "def iDya(_nn5):\n NWgO = _nn5.shape[1]\n fciZ = o...
[ "0.8597657", "0.64183795", "0.64142066", "0.63434595", "0.6334231", "0.63142645", "0.6305254", "0.62328637", "0.619434", "0.61249506", "0.61227614", "0.61103886", "0.607938", "0.6007582", "0.59989184", "0.5982221", "0.59708375", "0.59122604", "0.5908121", "0.5884586", "0.5864...
0.86131257
0
Constructor for the DeviceTreeDetails class
def FIMM(YKHO, HI4s=None, xXdd=None, Brn5=None, LB3K=None): YKHO.combine_method = HI4s YKHO.device_length = xXdd YKHO.device_nodes = Brn5 YKHO.stripe_size = LB3K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, QPS7, RU_v):\n YKHO._tree_node_nameattr = QPS7\n YKHO._tree_node_childattr = RU_v", "def FIMM(YKHO, J_Es):\n YKHO.tree = J_Es", "def FIMM(YKHO, J_Es):\n pass", "def FIMM(YKHO, J_Es):\n pass", "def FIMM(YKHO):\n YKHO._names = {}\n YKHO._names['root'] = '0'\n YKHO._tree...
[ "0.66813076", "0.6606573", "0.6516694", "0.6516694", "0.65054333", "0.6454021", "0.6453784", "0.6338714", "0.63026667", "0.6290198", "0.62689596", "0.62472385", "0.62398404", "0.61757505", "0.61600965", "0.6118974", "0.61178356", "0.6104199", "0.60935557", "0.6082454", "0.608...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None HI4s = cmPJ.get('combineMethod') xXdd = cmPJ.get('deviceLength') Brn5 = None if cmPJ.get('deviceNodes') != None: Brn5 = list() for g8x2 in cmPJ.get('deviceNodes'): Brn5.append(qRGs.models.device_node.DeviceNode.fr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83722425", "0.8335738", "0.8215464", "0.8167521", "0.8167521", "0.81483614", "0.8051766", "0.80300796", "0.8013641", "0.79792094", "0.79221934", "0.7919166", "0.79183745", "0.79125935", "0.7906434", "0.79004663", "0.78967476", "0.7886129", "0.78760797", "0.78543913", "0.78...
0.0
-1
Get the path of the module file for the specified module
def K_9X(YKHO, qtQv, u93D=False): MGly = ZbWC.compile('^\\s*(?P<modpath>[^/\n]*/[^\\s]+):$', ZbWC.M) hIfz = YKHO.get_value_from_modulefile(qtQv, MGly) if u93D and hIfz.endswith('.lua'): hIfz = Hy7s.path.splitext(hIfz)[0] return hIfz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJI7(yR_P):\n return oAb3.Path(Hy7s.path.dirname(Hy7s.path.abspath(tq_1.getfile(yR_P))))", "def MJH2(yR_P):\n Aofo = Hy7s.path.dirname(kR1h.import_module(yR_P).__file__)\n return Aofo", "def OyQC(yR_P, *mWFP):\n return Hy7s.path.join(Hy7s.path.dirname(yR_P.__file__), *mWFP)", "def WJI7(yR_P):...
[ "0.8658416", "0.85726684", "0.8363965", "0.81797624", "0.8170077", "0.8170077", "0.81094754", "0.80827653", "0.8022552", "0.799227", "0.78598803", "0.7805269", "0.76967585", "0.75904024", "0.7566589", "0.75371116", "0.7477597", "0.7477358", "0.7455351", "0.7453289", "0.739397...
0.76914257
13
Return the software version set for a particular software name.
def I0b5(mWFP): IH1p = km9q(mWFP) DpZH = None if IH1p in Hy7s.environ: DpZH = Hy7s.getenv(IH1p) return DpZH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LTV6(mWFP, L6MF):\n for DpZH in L6MF:\n if DpZH.get()['name'] == mWFP:\n return DpZH\n return YOko.get_version(mWFP)", "def ZhLJ(Emd4, mWFP, cEzT):\n ooX7 = dlKy.normalize_name(mWFP)\n L6MF = [XP5J for XP5J in cEzT if XP5J.normalized_name == ooX7]\n return Emd4.sorted(L6MF)",...
[ "0.60762405", "0.5985412", "0.59763783", "0.58490956", "0.5808568", "0.58016324", "0.5783995", "0.5673066", "0.5655466", "0.56311715", "0.561048", "0.55558217", "0.5523498", "0.5501385", "0.5483112", "0.547711", "0.545321", "0.54240286", "0.539007", "0.5368713", "0.5352043", ...
0.64102286
0
Test that random elements are CNOTDihedral and to_circuit, to_instruction, from_circuit, is_cnotdihedral methods
def nxwq(YKHO): for _qPt in range(1, 9): for v215 in range(20): LihS = ElIu(_qPt, seed=v215) YKHO.assertIsInstance(LihS, Acbe, 'Error: random element is not CNOTDihedral') YKHO.assertTrue(LihS.is_cnotdihedral(), 'Error: random element is not CNOTDihedral') QrN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FHku(YKHO):\n xlLU = oyIN.random.default_rng(1234)\n gGnb = 10\n for sogq in range(1, 9):\n for bGrB in range(gGnb):\n LihS = ElIu(sogq, seed=xlLU)\n YKHO.assertIsInstance(LihS, Acbe, 'Error: random element is not CNOTDihedral')\n YKHO.assertTrue(LihS._is_valid(...
[ "0.7649614", "0.729523", "0.7105074", "0.680306", "0.6472412", "0.6431064", "0.6384456", "0.63615507", "0.6297354", "0.62286717", "0.62100387", "0.6135604", "0.60938364", "0.6071731", "0.6071059", "0.60591274", "0.6049082", "0.6024267", "0.60013586", "0.59943306", "0.5985446"...
0.75104713
1
Unitless area of the geometry (float)
def f0tD(YKHO): return float(LBWB.area(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n return YKHO.h * YKHO.w", "def f0tD(YKHO):\n return YKHO.__size ** 2", "def f0tD(YKHO):\n return YKHO.__size ** 2", "def f0tD(YKHO):\n return YKHO.__size ** 2", "def f0tD(YKHO):\n return YKHO.size ** 2", "def f0tD(YKHO):\n return YKHO.length() * YKHO.width()", "def f0...
[ "0.7154505", "0.70413536", "0.70413536", "0.70413536", "0.6982039", "0.6930452", "0.6875966", "0.6875966", "0.6842843", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", "0.6830961", ...
0.0
-1
Returns a lower dimension geometry that bounds the object The boundary of a polygon is a line, the boundary of a line is a collection of points. The boundary of a point is an empty (null) collection.
def zXil(YKHO): return LBWB.boundary(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXil(YKHO):\n return qko0(YKHO.impl['boundary'](YKHO))", "def zXil(YKHO):\n XI9t, TOBq = YKHO._check_geometry_engine()\n if XI9t:\n import arcpy\n if XI9t and isinstance(YKHO, (PvyL, rSWe, TudE, elG8)):\n return ZCqv(YKHO.as_arcpy.boundary())\n elif TOBq and isinstance(YKHO, (Pvy...
[ "0.739488", "0.7346705", "0.6654028", "0.6621146", "0.66048956", "0.64870423", "0.6409878", "0.6330378", "0.63189936", "0.6300683", "0.6292318", "0.6278889", "0.6276534", "0.6232841", "0.6196078", "0.6188815", "0.6180305", "0.6177837", "0.6174458", "0.6172705", "0.6172519", ...
0.7366255
1
Returns the geometric center of the object
def e6ux(YKHO): return LBWB.centroid(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cX4W(YKHO):\n NgpY = YKHO.get_geometry()\n return NgpY.get_center()", "def cX4W(YKHO):\n return (YKHO.x + YKHO.rect.width / 2, YKHO.y - YKHO.rect.height / 2)", "def hgjH(YKHO):\n return ((YKHO.x0 + YKHO.x1) / 2.0, (YKHO.y0 + YKHO.y1) / 2.0)", "def KGUr(YKHO):\n return (YKHO.GetX() + YKHO.G...
[ "0.8352608", "0.8166566", "0.8044202", "0.8037894", "0.79782057", "0.789961", "0.7895418", "0.78860337", "0.7885807", "0.78830487", "0.7864277", "0.78603673", "0.7856506", "0.7823492", "0.78163964", "0.7810841", "0.7731436", "0.77267057", "0.7715926", "0.7711914", "0.7708687"...
0.72091556
87
Returns the oriented envelope (minimum rotated rectangle) that encloses the geometry. Unlike envelope this rectangle is not constrained to be parallel to the coordinate axes. If the convex hull of the object is a degenerate (line or point) this degenerate is returned. Alias of `minimum_rotated_rectangle`.
def Sbj7(YKHO): return LBWB.oriented_envelope(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ajsi(YKHO):\n return LBWB.oriented_envelope(YKHO)", "def xrO3(DYu4):\n tUIV = oyIN.pi / 2.0\n mC4V = DYu4[1:] - DYu4[:-1]\n bLm4 = oyIN.arctan2(mC4V[:, 1], mC4V[:, 0])\n bLm4 = oyIN.abs(oyIN.mod(bLm4, tUIV))\n bLm4 = oyIN.unique(bLm4)\n HJh3 = oyIN.vstack([oyIN.cos(bLm4), oyIN.cos(bLm4 -...
[ "0.8281804", "0.6279584", "0.6279584", "0.6247774", "0.5821148", "0.57194644", "0.5701304", "0.5692622", "0.56761044", "0.562591", "0.5620476", "0.56119514", "0.5592253", "0.55058354", "0.5492665", "0.54680145", "0.5450742", "0.54043525", "0.5398631", "0.5347082", "0.5336394"...
0.6309506
1
Returns the oriented envelope (minimum rotated rectangle) that encloses the geometry. Unlike `envelope` this rectangle is not constrained to be parallel to the coordinate axes. If the convex hull of the object is a degenerate (line or point) this degenerate is returned. Alias of `oriented_envelope`.
def Ajsi(YKHO): return LBWB.oriented_envelope(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sbj7(YKHO):\n return LBWB.oriented_envelope(YKHO)", "def c8Hf(YKHO):\n return LBWB.envelope(YKHO)", "def c8Hf(YKHO):\n return qko0(YKHO.impl['envelope'](YKHO))", "def vJPk(YKHO, c8Hf):\n XI9t, TOBq = YKHO._check_geometry_engine()\n if XI9t:\n import arcpy\n if XI9t and isinstance...
[ "0.7477901", "0.64125943", "0.61506426", "0.6013429", "0.59167415", "0.5832317", "0.57468206", "0.54743105", "0.5201986", "0.5094293", "0.50505793", "0.49505323", "0.48881486", "0.48824403", "0.48590943", "0.48374727", "0.4806346", "0.47941166", "0.47273612", "0.472014", "0.4...
0.714574
1
Converts geometry to normal form (or canonical form). This method orders the coordinates, rings of a polygon and parts of multi geometries consistently. Typically useful for testing purposes (for example in combination with `equals_exact`). Examples >>> from shapely import MultiLineString >>> line = MultiLineString([[(...
def NkkI(YKHO): return LBWB.normalize(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cszp(Fw8z):\n if Fw8z['type'] in ['Polygon', 'MultiLineString']:\n Fw8z['coordinates'] = [GthF(vC9B) for vC9B in Fw8z['coordinates']]\n elif Fw8z['type'] in ['LineString', 'MultiPoint']:\n Fw8z['coordinates'] = GthF(Fw8z['coordinates'])\n elif Fw8z['type'] == 'Point':\n Fw8z['coor...
[ "0.6143063", "0.61327803", "0.61294895", "0.6109494", "0.6108702", "0.6086087", "0.6029274", "0.60035765", "0.59716505", "0.59285146", "0.5898891", "0.58588856", "0.58392066", "0.58160025", "0.58049005", "0.5787068", "0.5786292", "0.57242423", "0.5695661", "0.56747603", "0.56...
0.6458155
0
True if the set of points in this geometry is empty, else False
def FBfn(YKHO): return bool(LBWB.is_empty(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBfn(YKHO):\n if isinstance(YKHO, PvyL):\n return False\n elif isinstance(YKHO, rSWe):\n if 'rings' in YKHO:\n return len(YKHO['rings']) == 0\n elif 'curveRings' in YKHO:\n return len(YKHO['curveRings']) == 0\n elif isinstance(YKHO, TudE):\n return len...
[ "0.8575477", "0.83506864", "0.8301108", "0.82168055", "0.8190423", "0.8106049", "0.8003919", "0.7973306", "0.7759468", "0.7747407", "0.7743122", "0.77390623", "0.7734429", "0.77308476", "0.7643686", "0.7628631", "0.7628631", "0.7626966", "0.7606588", "0.7582039", "0.7571949",...
0.7995811
7
Returns True if the geometry covers the other, else False
def oF9E(YKHO, Elif): return KxHb(LBWB.covers(YKHO, Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P10m(YKHO, Elif):\n return not (YKHO.x + YKHO.w / 2 < Elif.x - Elif.w / 2 or Elif.x + Elif.w / 2 < YKHO.x - YKHO.w / 2 or YKHO.y - YKHO.h / 2 > Elif.y + Elif.h / 2 or (Elif.y - Elif.h / 2 > YKHO.y + YKHO.h / 2))", "def P10m(YKHO, Elif):\n cNJO = YKHO.x\n GYYY = YKHO.x + YKHO.width\n hYrU = YKHO.y...
[ "0.77835876", "0.7536046", "0.75353086", "0.7534244", "0.752692", "0.748513", "0.7455898", "0.7428308", "0.74258804", "0.7419468", "0.7377505", "0.7362617", "0.7338147", "0.73286223", "0.7325736", "0.7304245", "0.72948337", "0.7291003", "0.7241735", "0.72400135", "0.72394174"...
0.0
-1
Returns True if the geometry is covered by the other, else False
def eFGj(YKHO, Elif): return KxHb(LBWB.covered_by(YKHO, Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QX57(YKHO, Elif):\n return YKHO.x - YKHO.y < Elif.x - Elif.y", "def P10m(YKHO, Elif):\n return not (YKHO.x + YKHO.w / 2 < Elif.x - Elif.w / 2 or Elif.x + Elif.w / 2 < YKHO.x - YKHO.w / 2 or YKHO.y - YKHO.h / 2 > Elif.y + Elif.h / 2 or (Elif.y - Elif.h / 2 > YKHO.y + YKHO.h / 2))", "def XMlP(YKHO, Eli...
[ "0.7481361", "0.74411327", "0.74238974", "0.7313085", "0.7303038", "0.72831297", "0.72762203", "0.7252138", "0.72334266", "0.72324556", "0.72324556", "0.7210069", "0.7194884", "0.71904755", "0.7170323", "0.7169949", "0.708545", "0.7084283", "0.70818204", "0.70663244", "0.7057...
0.0
-1
Returns True if the geometry completely contains the other, with no common boundary points, else False Refer to `shapely.contains_properly` for full documentation.
def iaaz(YKHO, Elif): return KxHb(LBWB.contains_properly(YKHO, Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjXf(YKHO, Elif):\n if YKHO == Elif:\n return True\n if not YKHO.same_lpp(YKHO.lpp, Elif.lpp):\n return False\n if not YKHO.xcontains(Elif):\n return False\n if not YKHO.ycontains(Elif):\n return False\n return True", "def c9BI(YKHO, Elif):\n assert isinstance(El...
[ "0.7393315", "0.7196259", "0.6986169", "0.6971207", "0.6961075", "0.6953208", "0.68721044", "0.68509924", "0.6802335", "0.6786823", "0.67851335", "0.67761135", "0.6704322", "0.6670201", "0.66641206", "0.6594357", "0.6585755", "0.65746146", "0.65687704", "0.654855", "0.6544454...
0.7320702
1
Returns True if geometries are equal, else False. This method considers pointset equality (or topological equality), and is equivalent to (self.within(other) & self.contains(other)). Examples >>> LineString( ... [(0, 0), (2, 2)] ... ).equals( ... LineString([(0, 0), (1, 1), (2, 2)]) ... ) True Returns bool
def aPi6(YKHO, Elif): return KxHb(LBWB.equals(YKHO, Elif))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ozJ8(yLHq: GeoSeries, RKYb: GeoSeries):\n if IQrt(yLHq) and IQrt(RKYb):\n return True\n elif xxuC(yLHq) and xxuC(RKYb):\n return True\n elif xJvX(yLHq) and xJvX(RKYb):\n return True\n elif uiid(yLHq) and uiid(RKYb):\n return True\n else:\n return False", "def...
[ "0.71273077", "0.7009457", "0.69349074", "0.68872136", "0.6875174", "0.6805607", "0.6793484", "0.67800665", "0.67563504", "0.6755723", "0.6705408", "0.67018867", "0.6695473", "0.6676047", "0.6676047", "0.66565806", "0.66387516", "0.66176695", "0.6590301", "0.6567205", "0.6565...
0.680585
5