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
Replace repeated characters with a single one
def MZMe(hcXw, l5Ny): while hcXw * 2 in l5Ny: l5Ny = l5Ny.replace(hcXw * 2, hcXw) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TTH9(Mau6):\n return ZbWC.sub('(.)\\\\1+', '\\\\1\\\\1', Mau6)", "def wwRI(GIN8: str) -> str:\n return finE('([a-z])\\\\1+', '\\\\1', GIN8)", "def K1P1(l5Ny):\n CHJY = ZbWC.compile('(.)\\\\1+')\n QrZ9 = CHJY.sub('\\\\1\\\\1', l5Ny)\n return QrZ9", "def Fmve(GIN8):\n GIN8 = ''.join((''.j...
[ "0.81127036", "0.795808", "0.7548656", "0.7473896", "0.708648", "0.6987005", "0.69106096", "0.68578535", "0.68303466", "0.6796054", "0.66583776", "0.658237", "0.65339565", "0.6496657", "0.6487657", "0.6447925", "0.63955486", "0.63502157", "0.628289", "0.6240981", "0.61901975"...
0.67488724
10
Gets a collection of `InputExample`s for the train set.
def rNg5(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def vGUt(YKHO):\n return x3i3.get_train_inputs(YKHO)", "def rNg5(YKHO):\n return YKHO.dataset.get_train_examples()", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('train')", "def rNg5(YKHO):\n return YKHO.get_dialog_examples('...
[ "0.81951743", "0.760114", "0.74244404", "0.7340222", "0.7340222", "0.7215933", "0.6989413", "0.6848554", "0.66177475", "0.65863574", "0.6586135", "0.65694183", "0.6561308", "0.6561308", "0.65018874", "0.6441707", "0.64212453", "0.64110005", "0.6381157", "0.6377302", "0.637238...
0.71737236
6
Gets a collection of `InputExample`s for the dev set.
def JdXm(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()", "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result...
[ "0.8090588", "0.7150161", "0.7036429", "0.6909174", "0.675257", "0.6676756", "0.6455609", "0.6455609", "0.6426394", "0.6426394", "0.64233905", "0.64233905", "0.6352787", "0.6290973", "0.6287927", "0.62561464", "0.62409055", "0.62299854", "0.62116957", "0.62102634", "0.6209959...
0.6551616
6
Gets a collection of `InputExample`s for the dev set.
def syTc(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JdXm(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def syTc(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def JdXm(YKHO):\n return YKHO.dataset.get_dev_examples()", "def rNg5(YKHO) -> x1iM[xeAK]:\n raise NotImplementedError", "def Zo7w(YKHO):\n gMbG = YKHO.api.get(YKHO.result...
[ "0.80899024", "0.71504563", "0.70351374", "0.6909079", "0.67522305", "0.6676925", "0.6550554", "0.6550554", "0.64557886", "0.64557886", "0.64255226", "0.64255226", "0.6423698", "0.6423698", "0.6352287", "0.6290681", "0.6288263", "0.6257267", "0.62408787", "0.6229795", "0.6212...
0.0
-1
Gets the list of labels for this data set.
def Te1x(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Te1x(YKHO):\n return YKHO.label_list", "def Crrw(YKHO) -> x1iM[str]:\n return YKHO._labels", "def Te1x(YKHO):\n Crrw = []\n for UXqs in YKHO.instance.labels:\n Crrw.append(UXqs.name)\n return Crrw", "def Crrw():\n return list(uzmd)", "def Te1x(YKHO):\n return YKHO._labels", ...
[ "0.8794412", "0.87205255", "0.86998755", "0.8548415", "0.8487407", "0.84719014", "0.84676677", "0.8461291", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8438787", "0.8411189", "0.83837056", "0.8366874", "0.83655906", "0.83244914", "0.83244914", "0.8267663", "0.82676...
0.78928244
45
Returns a generator for all apps on the relayr platform. A generator is returned since the called API method always returns the entire results list and not a paginated one.
def ECgR(YKHO): for P4t4 in YKHO.api.get_public_apps(): jzdc = Z33s(P4t4['id'], client=YKHO) jzdc.get_info() yield jzdc
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zvdG() -> x1iM[Z33s]:\n return BDu7(Z33s)", "def XKJ2(YKHO):\n geh0 = YKHO.call(fodo.GET, 'applications/')\n Q80C = geh0.json()\n for P4t4 in Q80C['applications']:\n yield m36K(YKHO, **P4t4)", "def S04v(YKHO):\n for mSqg in YKHO.root_path_l:\n for tk5Y, AQSv, RRlC in Hy7s.walk(...
[ "0.7080828", "0.7073775", "0.69500047", "0.68885493", "0.6792457", "0.6775037", "0.66943485", "0.66232294", "0.65821874", "0.65545386", "0.65415883", "0.65383667", "0.64727557", "0.64637923", "0.64367235", "0.64367235", "0.6428879", "0.6428879", "0.64054346", "0.6380455", "0....
0.70832855
0
Returns the relayr user owning the API client.
def TKWP(YKHO): U34r = YKHO.api.get_oauth2_user_info() qOwg = mv1M(U34r['id'], client=YKHO) for G1Hx in U34r: setattr(qOwg, G1Hx, U34r[G1Hx]) return qOwg
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CBIr(YKHO):\n return YKHO.client.users_get_current_account()", "def TKWP(YKHO):\n return YKHO.client.User.User_get().result()", "def CBIr(YKHO):\n return YKHO._auth_user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user", "def TKWP(YKHO):\n return YKHO.user...
[ "0.76175404", "0.7542299", "0.74019015", "0.7331904", "0.7331904", "0.7331904", "0.73259276", "0.72830033", "0.7259685", "0.7249042", "0.7224905", "0.7224905", "0.71426433", "0.71426433", "0.71426433", "0.71426433", "0.71426433", "0.71426433", "0.71426433", "0.71426433", "0.7...
0.0
-1
Construct the delayed xarray DataArray object for the image. Returns
def VbzS(YKHO) -> zuVY.DataArray: with YKHO._fs.open(YKHO._path) as i6g9: with QAA2(i6g9) as Gi7Z: Htse = YKHO._get_dims_for_scene(Gi7Z) UiEM = YKHO._create_dask_array(Gi7Z, Htse) Zz4H = YKHO._get_tiff_tags(Gi7Z) xMux = YKHO._get_channel_names_for_scene(UiEM.s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9Cv(nPrm):\n LTIa = nPrm['data']\n e5kH = nPrm['meta']\n L4b1 = len(LTIa)\n sJTP = oyIN.zeros((3, L4b1), dtype=object)\n T6S7 = sJTP[0]\n rlz0 = sJTP[1]\n QmN4 = sJTP[2]\n WXkz = oyIN.zeros(L4b1, dtype='datetime64[ns]')\n f4i0 = ('cnxlostepsecs', 'cnxregainedepsecs', 'startup')\n ...
[ "0.6355134", "0.6220064", "0.61739516", "0.595739", "0.59134346", "0.5869914", "0.58447796", "0.57243484", "0.571553", "0.57113683", "0.56821495", "0.56731796", "0.56731445", "0.5672595", "0.56442535", "0.56282586", "0.55512387", "0.55131817", "0.5477205", "0.54749405", "0.54...
0.74136007
0
Construct the inmemory xarray DataArray object for the image. Returns
def lrlh(YKHO) -> zuVY.DataArray: with YKHO._fs.open(YKHO._path) as i6g9: with QAA2(i6g9) as Gi7Z: Htse = YKHO._get_dims_for_scene(Gi7Z) UiEM = Gi7Z.series[YKHO.current_scene_index].asarray() Zz4H = YKHO._get_tiff_tags(Gi7Z) xMux = YKHO._get_channel_names_for_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJZH(YKHO):\n try:\n from numpy import array\n except ImportError:\n raise Exception('This method requires the numpy package. Please install it before calling Quantity.make_data_ndarray()')\n YKHO.data = array(YKHO.data)\n return YKHO", "def _wAE(YKHO, mWFP: Hashable) -> DataArray:\...
[ "0.6964182", "0.6963035", "0.6810861", "0.6794225", "0.6787342", "0.6764035", "0.6567008", "0.65105724", "0.65105724", "0.6454787", "0.64461845", "0.637833", "0.63695973", "0.6364745", "0.633757", "0.632869", "0.6269604", "0.62588435", "0.62514937", "0.6242194", "0.6238225", ...
0.6424563
11
Get the id of a vertex's parent vertex
def PAwq(YKHO, tkHJ): if YKHO._is_microstate(tkHJ): return YKHO._microstate_parents[tkHJ] return YKHO.vertices[tkHJ].parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO, mOdD):\n raise NotImplementedError", "def cBWH(YKHO):\n return YKHO._relation_parent_id", "def H7rZ(YKHO):\n return YKHO._parent_id", "def H7rZ(YKHO):\n return YKHO._parent_id", "def DtVU(YKHO):\n return YKHO.parent_id", "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'pa...
[ "0.75417304", "0.7318873", "0.7296496", "0.7296496", "0.72766805", "0.72709715", "0.72709715", "0.72485834", "0.71643335", "0.709935", "0.70862895", "0.7078951", "0.70609206", "0.70220524", "0.69428307", "0.68531185", "0.68247265", "0.68211174", "0.6818244", "0.6799973", "0.6...
0.68068427
19
get_full_stationary_distribution. Get the stationary distribution over all microstates. Returns
def tdJk(YKHO, zP3h=False): Kt_s, ABDL = YKHO.get_full_T() aevO = TeT8(Kt_s) mM0K = {} for d6pt, id in enumerate(ABDL): mM0K[id] = aevO[d6pt] return mM0K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TeT8(YKHO, OnWS=10000, yokr=None, PRw0=False, Qabx='uniform'):\n r9Hf = oyIN.zeros(len(YKHO.states), dtype='uint64')\n for KCHu, bGrB, bGrB, bGrB in YKHO.sample_transition(max_n=OnWS, policy=Qabx, seed=yokr):\n r9Hf[KCHu] += 1\n if PRw0 and oyIN.any(r9Hf == 0):\n r9Hf += 1\n yGTL = r9...
[ "0.5954748", "0.5847462", "0.5614121", "0.5410094", "0.5376232", "0.52089494", "0.51832604", "0.5138805", "0.5028539", "0.5013425", "0.49410766", "0.49223602", "0.49017316", "0.49004212", "0.48714453", "0.48224032", "0.47914177", "0.47672886", "0.47593713", "0.47556826", "0.4...
0.6928088
0
Set the parent of all children_ids to be parent_id, and add them to the parents children
def JcmT(YKHO, Q39W, H7rZ): for tkHJ in Q39W: SLBp = YKHO.vertices.get(tkHJ) if SLBp is None: YKHO._microstate_parents[tkHJ] = H7rZ else: SLBp.set_parent(H7rZ) YKHO.vertices[H7rZ].add_children(Q39W)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBGB(YKHO):\n if YKHO.parent:\n YKHO.parent.add_child(YKHO)", "def ebTG(YKHO):\n for P2GO in Ni9Y(len(YKHO.children)):\n vEq1 = YKHO.identities[P2GO]\n for aUGN in YKHO.children[P2GO]:\n ACnF = YKHO.parents.get(aUGN, [])\n ACnF.append(vEq1)\n YKHO.p...
[ "0.75534797", "0.74586", "0.74301106", "0.73402864", "0.7243635", "0.6993805", "0.6942114", "0.6869977", "0.68333036", "0.6615689", "0.66129416", "0.6538878", "0.65239006", "0.64656526", "0.642248", "0.64039683", "0.63967276", "0.6392341", "0.63843757", "0.63843757", "0.63843...
0.719943
5
Update the tree, from the bottom (highest resolution MSMs) upwards. Vertices needing updates will be in self._update_queue prioritized by their height, if updating a vertex triggers the need to update another vertex (by a vertex split, moving children to another vertex, or a change in transition rates that neccesitates...
def sF8S(YKHO): YKHO._cache.clear() while YKHO._update_queue.not_empty(): oqUi = YKHO._update_queue.get() SLBp = YKHO.vertices.get(oqUi) if SLBp is None: continue YKHO._updated_height = SLBp.height - 1 Aofo, QdZT = SLBp.update() if Aofo == TK4D.SPLIT: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sUFK(YKHO):\n if YKHO.parent and isinstance(YKHO.parent, o7DN):\n U_NH = YKHO.position + YKHO.parent.position\n iEax = YKHO.orientation + YKHO.parent.orientation\n i912 = YKHO.scale + YKHO.parent.scale\n for aUGN in YKHO.children:\n if isinstance(aUGN, o7DN):\n aUGN...
[ "0.65305287", "0.63286245", "0.6167274", "0.61421436", "0.61268896", "0.60843366", "0.59832305", "0.597874", "0.59736556", "0.595512", "0.5901249", "0.5878328", "0.58324295", "0.5768797", "0.57239294", "0.5675816", "0.56705785", "0.5666455", "0.5652838", "0.56499314", "0.5614...
0.73441267
0
get_ancestor. Get the direct ancestor of a vertex in the tree, on a specified level.
def y1t3(YKHO, SLBp, ABDL): _AKB = SLBp while YKHO.vertices[_AKB].height < ABDL: _AKB = YKHO.vertices[_AKB].parent return _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F_G6(YKHO, ABDL=1):\n if YKHO.level == ABDL:\n return YKHO\n for jzdc in YKHO.ancestors():\n if jzdc.level == ABDL:\n return jzdc\n return None", "def ukbM(J_Es, _Jea, E2yN):\n MBVQ = z5Xt(_Jea)\n WzsQ = tb4_(J_Es, E2yN)\n if WzsQ != None:\n J9c6 = z5Xt(WzsQ)...
[ "0.7041324", "0.6248978", "0.6235256", "0.62073857", "0.6171121", "0.60762423", "0.60495627", "0.5936564", "0.5924015", "0.59145373", "0.5821223", "0.58178055", "0.5788046", "0.5711682", "0.57097846", "0.5691191", "0.5589823", "0.54072714", "0.5379166", "0.53706646", "0.53557...
0.83436
0
Update and return an existing `Snippet` instance, given the validated data.
def QdZT(YKHO, KAOR, vGfb): KAOR.num_order = vGfb.get('num_order', KAOR.num_order) KAOR.comments = vGfb.get('comments', KAOR.comments) KAOR.customer = vGfb.get('customer', KAOR.customer) KAOR.category = vGfb.get('category', KAOR.category) KAOR.point1 = vGfb.get('point1', KAOR.point1) KAOR.point2...
{ "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.5774881
34
The ARN of the Target Group
def _8L1(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'target_group_arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FuT7(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'auto_scaling_group_arn')", "def wi2q(IYIk: List[str], x0hE: boto3.client) -> cuzp:\n bo34.debug(f'Target group name(s): {str(IYIk)} Looking for ARN')\n Ylbp = x0hE.describe_target_groups(Names=IYIk)\n fduX = {}\n for dY8P in Ylbp['Target...
[ "0.6725502", "0.6698946", "0.66023356", "0.6556902", "0.64879185", "0.6439884", "0.6272988", "0.6251847", "0.6251847", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0.62354887", "0....
0.7747023
0
The number of consecutive health check failures required before considering a target unhealthy.
def Jfqx(YKHO) -> h8nf[int]: return qe4Y.get(YKHO, 'unhealthy_threshold_count')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qAkm(YKHO):\n return sum((UHFx > YKHO._max_per_instance_failures for UHFx in YKHO._failures_by_instance.values()))", "def HSfr(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'tolerated_number_of_failures')", "def HSfr(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'tolerated_number_of_failures')", ...
[ "0.70652664", "0.70632404", "0.70632404", "0.7056414", "0.702561", "0.699663", "0.69230247", "0.68495464", "0.6772531", "0.6750148", "0.66583097", "0.66125804", "0.6605941", "0.6577646", "0.6576447", "0.65525115", "0.6541186", "0.6530553", "0.6478625", "0.6472111", "0.6472111...
0.6779309
8
the function takes the path to an hf5 model, loads the model and return it.The Load function also takes a dictionary that has the name and def. of any impelemented custom layers or functions.
def dNS5(pmON, MNAm=None): return ZylS.keras.models.load_model(pmON, MNAm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO, **NArs):\n RRlC = Hy7s.listdir()\n gIsw = [YRbF for YRbF in RRlC if '.hdf5' in YRbF]\n print('#' * 5 + ' Using saved model-' + gIsw[0] + ' ' + '#' * 5)\n C3ST = FYrf.load_model(Hy7s.path.join(Hy7s.getcwd(), gIsw[0]), custom_objects={'psnr': YKHO.psnr, 'advance_relu': YKHO.advance_relu}...
[ "0.76521903", "0.746848", "0.72344846", "0.72182125", "0.72032446", "0.716515", "0.716515", "0.7026169", "0.6971294", "0.696744", "0.69057864", "0.68955797", "0.6873163", "0.68571705", "0.68360794", "0.68153346", "0.6742284", "0.6730537", "0.67102563", "0.67062175", "0.669558...
0.6550338
31
Returns slope of line thru points x1,y1 x2,y2
def VMex(o4D3, si3g, ajwV, skBL): r8hN = (skBL - si3g) / (ajwV - o4D3) return r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Llgc(zFiD):\n for o4D3, si3g, ajwV, skBL in zFiD:\n return (si3g - skBL) / (o4D3 - ajwV)", "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n return (skBL - si3g) / (ajwV - o4D3)", "def VMex(o4D3, si3g, ajwV, skBL):\n return...
[ "0.85576344", "0.8550165", "0.8544707", "0.8491814", "0.84534013", "0.8182262", "0.8147502", "0.81165504", "0.80915666", "0.8039361", "0.80362886", "0.79131705", "0.79131705", "0.78803104", "0.7853028", "0.7830622", "0.7752068", "0.77407926", "0.7726364", "0.77119964", "0.770...
0.83561784
5
Takes integer and returns True for even and False for odd
def ubP8(exwG): if exwG % 2 == 0: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTzf(kAne):\n return kAne % 2 == 0", "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def ubP8(kAne):\n return kAne % 2 == 0", "def kYZq(WKvO):\n return WKvO % 2", "def adPw(WKvO):\n if int(WKvO) % 2 == 0:\n bool = False\n else:\n bool = True\n return bool", "def sTzf(mSr...
[ "0.8939488", "0.87210226", "0.8616554", "0.8602215", "0.85640717", "0.85598826", "0.8558964", "0.8557894", "0.8555353", "0.85498554", "0.85460126", "0.85414034", "0.85382783", "0.85327524", "0.85327524", "0.85241127", "0.8522403", "0.8522403", "0.85175014", "0.8510525", "0.85...
0.82551354
51
Takes integer and returns True for even and False for odd
def kYZq(exwG): if ubP8(exwG) == True: return False else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sTzf(kAne):\n return kAne % 2 == 0", "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def ubP8(kAne):\n return kAne % 2 == 0", "def kYZq(WKvO):\n return WKvO % 2", "def adPw(WKvO):\n if int(WKvO) % 2 == 0:\n bool = False\n else:\n bool = True\n return bool", "def C_CQ(FGW...
[ "0.8939884", "0.8721438", "0.86181504", "0.86029375", "0.8563836", "0.8559436", "0.85593456", "0.85588527", "0.85555613", "0.8549847", "0.854583", "0.8542781", "0.8538521", "0.8534045", "0.8534045", "0.8524451", "0.85235995", "0.85235995", "0.851831", "0.85117906", "0.8504087...
0.84287226
29
reads the models from file and returns it as list of dictionaries
def qOjp() -> [dict]: from Algorithm.Model import return_model_by_name import json with open('Algorithm/models.txt') as nUeQ: nPrm = json.loads(nUeQ.read()) for ZfUD in nPrm: for H5ew in ZfUD: if VMxB.is_boolean(ZfUD[H5ew]): ZfUD[H5ew] = ZfUD[H5ew].lower() == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ArHU(SkYi):\n FYrf = eJb6.load(open(SkYi))\n return FYrf", "def oLG2(YKHO):\n Sd0C = Hy7s.path.join(YKHO.working_directory, YKHO.modelfile)\n IGe9 = 0\n I1mm = True\n mkiJ = open(Sd0C)\n mkiJ.readline()\n while I1mm:\n try:\n IGe9 = int(mkiJ.readline().strip().split(...
[ "0.7497851", "0.73343116", "0.7276427", "0.7219182", "0.71844244", "0.71216935", "0.7087427", "0.7077677", "0.6881721", "0.6838736", "0.6706131", "0.66642094", "0.66522765", "0.6633504", "0.66324764", "0.662617", "0.65883756", "0.6580878", "0.6567375", "0.6562526", "0.6550583...
0.7567183
0
Test that a route works without an exception
def kycS(_dNn): QePW, geh0 = _dNn.test_client.get('/') assert geh0.status == 200 assert geh0.text == 'OK'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _7jB(SYJH):\n with trZe.raises(iAwL.RouteError):\n SYJH('/listings', 'GET')", "def aSnr(YKHO):\n YKHO.route_check('Index')", "def Z9AL(YKHO):\n Mkmy = YKHO.client.get('/resolver/1987gady.book.....B/ERROR')\n YKHO.assertEqual(Mkmy.status_code, 400)", "def rpBe(YKHO):\n im04 = YKHO.ap...
[ "0.77834827", "0.77797246", "0.7578161", "0.750567", "0.7420037", "0.7371555", "0.7363925", "0.7363183", "0.7338887", "0.7326836", "0.7326836", "0.72244865", "0.72203934", "0.7167283", "0.7158335", "0.71334875", "0.7050109", "0.6932052", "0.69062513", "0.69043416", "0.6893862...
0.0
-1
Test the builtin NotFound exception works
def Uh5c(_dNn): QePW, geh0 = _dNn.test_client.get('/404') assert geh0.status == 404
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZQkg(YKHO):\n try:\n dFqw.page(_IBr, silent=True).get(False)\n YKHO.fail('failed to raise LookupError')\n except LookupError as detail:\n pass", "def tjWM(YKHO):\n with YKHO.assertRaises(Exception) as QpfX:\n YKHO.api.get('ltr_fake')\n YKHO.assertTrue('letter not found...
[ "0.7442976", "0.7440479", "0.7396315", "0.7394314", "0.7385483", "0.73664933", "0.73266894", "0.7313504", "0.7283868", "0.7280459", "0.72191745", "0.7196269", "0.7182924", "0.7175722", "0.717081", "0.7168227", "0.71597886", "0.71454483", "0.71365154", "0.7113963", "0.7110819"...
0.69825953
32
ap = voc_ap(rec, prec) Computes the AP under the precision recall curve.
def I5kN(ETu_, eRdl): ETu_ = ETu_.reshape(ETu_.size, 1) eRdl = eRdl.reshape(eRdl.size, 1) epBp = oyIN.zeros((1, 1)) z1Rg = oyIN.ones((1, 1)) YuCV = oyIN.vstack((epBp, ETu_, z1Rg)) BsPE = oyIN.vstack((epBp, eRdl, epBp)) for YRbF in range(len(BsPE) - 2, -1, -1): BsPE[YRbF] = max(BsPE[Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I5kN(ETu_, eRdl):\n YuCV = oyIN.concatenate(([0.0], ETu_, [1.0]))\n BsPE = oyIN.concatenate(([0.0], eRdl, [0.0]))\n for YRbF in range(BsPE.size - 1, 0, -1):\n BsPE[YRbF - 1] = oyIN.maximum(BsPE[YRbF - 1], BsPE[YRbF])\n YRbF = oyIN.where(YuCV[1:] != YuCV[:-1])[0]\n VqfF = oyIN.sum((YuCV[YR...
[ "0.9202854", "0.897853", "0.89073205", "0.8830647", "0.8682737", "0.8648442", "0.8645412", "0.8638328", "0.8638328", "0.8638328", "0.8638328", "0.8625788", "0.85976624", "0.85906464", "0.8589816", "0.8589816", "0.8589816", "0.8589816", "0.85580707", "0.85580707", "0.85580707"...
0.84262687
24
Get low and high coordinate area bounds. Arguments
def ha2c(YKHO, zXil): if zXil is None: return YKHO.bounds if YKHO.size == 0: return YKHO.bounds if oyIN.array(zXil).ndim == 0: zXil = wC1K(zXil) qAeA = -zXil yIxL = zXil elif oyIN.array(zXil).ndim == 1: zXil = uTLd(zXil) qAeA = min(zXil) yI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n BQGg = YKHO.left[0]\n h3cg = YKHO.bottom[1]\n bYzl = YKHO.right[0]\n Z3uP = YKHO.top[1]\n return (BQGg, h3cg, bYzl, Z3uP)", "def pmnP(YKHO):\n if not YKHO.img:\n return None\n BQGg = 560\n bYzl = 0\n h3cg = 400\n Z3uP = 0\n for WKvO in range(YKHO.get_size...
[ "0.7892319", "0.78836876", "0.7872687", "0.7829948", "0.7772236", "0.7710892", "0.7680647", "0.76279235", "0.7621908", "0.7593423", "0.7492996", "0.7486111", "0.7471197", "0.7471197", "0.7471197", "0.7471197", "0.7471197", "0.7471197", "0.7471197", "0.746141", "0.7446653", ...
0.75179756
10
Get the coordinate values that are within the given bounds.
def EfUA(YKHO, X7zS, oQ6S=False, vU9r=False): if YKHO.dtype is None: return YKHO._select_empty(oQ6S) if isinstance(X7zS, dict): X7zS = X7zS.get(YKHO.name) if X7zS is None: return YKHO._select_full(oQ6S) X7zS = (tuRF(X7zS[0]), tuRF(X7zS[1])) if not isinstance(X7zS[0], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n mmRm = YKHO._getValue('bounds')\n mXDZ = ZbWC.compile('\\\\d+')\n BHsk = mXDZ.findall(mmRm)\n return BHsk", "def l3rf(YKHO):\n return (YKHO.getBinBounds(), YKHO.getYValues())", "def _GIH(jNOo):\n return ((jNOo.min()[gCuF.CSV.INPUT.LATITUDE], jNOo.max()[gCuF.CSV.INPUT.LATITUD...
[ "0.7584497", "0.75232", "0.7314649", "0.72766495", "0.71657556", "0.7124891", "0.70898324", "0.702938", "0.6981386", "0.69497484", "0.6941879", "0.6920759", "0.6898767", "0.6889476", "0.68892956", "0.6886001", "0.68843216", "0.6866594", "0.68589634", "0.6844418", "0.68337995"...
0.0
-1
Return resolution for unstacked coordiantes using the bounds Returns The average distance between each grid square for this dimension
def ss9D(): if YKHO.name == 'lat': return AUp_((YKHO.bounds[0], 0), (YKHO.bounds[1], 0), UfNb, NCjX, rYO3).magnitude / (YKHO.size - 1) * E6qv.units(rYO3) elif YKHO.name == 'lon': zBwF = (_UuI.bounds[1] - _UuI.bounds[0]) / 2 + _UuI.bounds[0] return AUp_((zBwF, YKHO.bounds[0]), (zBwF, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def k05h():\n if YKHO.name == 'lat':\n xeNm = oyIN.stack([_UuI.coordinates[1:], oyIN.full(_UuI.coordinates[1:].shape[0], 0)], axis=1)\n adWA = oyIN.stack([_UuI.coordinates[:-1], oyIN.full(_UuI.coordinates[:-1].shape[0], 0)], axis=1)\n return AUp_(xeNm, adWA, UfNb, NCjX, rYO3)\n elif YKHO...
[ "0.68668807", "0.6401592", "0.63696957", "0.6248026", "0.6206641", "0.6165729", "0.6083651", "0.6079055", "0.6076001", "0.6063949", "0.6056194", "0.60404086", "0.60171545", "0.5975024", "0.5957769", "0.59247345", "0.59243846", "0.59217244", "0.59164643", "0.5913994", "0.59082...
0.6707359
1
Create a bullet object at the ship's current position
def FIMM(YKHO, IMTv): super().__init__() YKHO.screen = IMTv.screen YKHO.settings = IMTv.settings YKHO.color = YKHO.settings.bullet_color YKHO.rect = a9eO.Rect(0, 0, YKHO.settings.bullet_width, YKHO.settings.bullet_height) YKHO.rect.midtop = IMTv.ship.rect.midtop YKHO.y = float(YKHO.rect.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Vjhr, C7MP):\n super(GBVa, YKHO).__init__()\n YKHO.screen = Vjhr\n YKHO.rect = a9eO.Rect(0, 0, 20, 5)\n YKHO.rect.centerx = C7MP.rect.centerx\n YKHO.rect.top = C7MP.rect.top\n YKHO.x = YKHO.rect.x\n YKHO.color = (60, 60, 60)\n YKHO.speed_factor = 3", "def FIMM(YKHO, Vjhr, C...
[ "0.786572", "0.78071225", "0.7796238", "0.75934166", "0.75880647", "0.75725526", "0.7535321", "0.75288343", "0.7396274", "0.7382208", "0.7339373", "0.7322111", "0.7262557", "0.7234305", "0.7167433", "0.7142409", "0.71400166", "0.71309954", "0.71144277", "0.71104294", "0.70838...
0.0
-1
Convert relative resource path to the real path
def JFat(t_yv): if hasattr(HwRy, '_MEIPASS'): return Hy7s.path.join(HwRy._MEIPASS, t_yv) return Hy7s.path.join(t_yv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gZBG(YKHO, t_yv):\n return YKHO.get_abs_path(YKHO.RESOURCES_DIR + t_yv)", "def gZBG(XNWQ):\n return Hy7s.path.join(gr1b, XNWQ)", "def gZBG(XNWQ):\n Ee_q = Hy7s.path.dirname(Hy7s.path.realpath(xAKo))\n i3fq = Hy7s.path.join(Ee_q, XNWQ)\n iMTw = Hy7s.path.abspath(i3fq)\n return iMTw", "de...
[ "0.7718119", "0.7715492", "0.75078404", "0.7482631", "0.73905814", "0.7376587", "0.7353507", "0.73130167", "0.72902715", "0.7285358", "0.72504723", "0.7231565", "0.7206939", "0.71662843", "0.71662843", "0.7159357", "0.71523744", "0.7143636", "0.71272564", "0.7124953", "0.7113...
0.0
-1
Returns the queue name of this clients task queue.
def g5js(YKHO): return YKHO.Add('tasks')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q64Y(YKHO):\n return YKHO._queue_name", "def vFWd(YKHO):\n return J8uC.SBThread_GetQueueName(YKHO)", "def vFWd(YKHO):\n return J8uC.SBBreakpoint_GetQueueName(YKHO)", "def vFWd(YKHO):\n return J8uC.SBBreakpointName_GetQueueName(YKHO)", "def L0lo(YKHO, d6pt):\n return YKHO.queue_name", "...
[ "0.8694223", "0.7928078", "0.77010816", "0.76994765", "0.7683404", "0.7620918", "0.7559946", "0.7559946", "0.7494348", "0.74866", "0.74849224", "0.7327342", "0.7207545", "0.7068583", "0.70109946", "0.69169545", "0.68609077", "0.6838663", "0.6819449", "0.6746072", "0.6676085",...
0.0
-1
Return the best available name for this volume.
def av29(YKHO): return YKHO.name or YKHO.device_path or YKHO.windows.drive_letter or YKHO.unix.mount_point or None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._volume.get('name')", "def DZ7x(YKHO, akib):\n mWFP = getattr(akib, 'display_name', None)\n if mWFP:\n return mWFP\n else:\n return akib.id", "def qZUs(YKHO, mWFP, BcCR=None):\n return mWFP", "def FNha(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y...
[ "0.74190474", "0.7067337", "0.70468265", "0.6938667", "0.6938667", "0.6861706", "0.6727053", "0.67095256", "0.6707779", "0.66873115", "0.6543461", "0.6535743", "0.6506769", "0.6471777", "0.6465098", "0.64491415", "0.6434084", "0.6432346", "0.6432346", "0.6432346", "0.6432346"...
0.6526635
12
Ensure the pathspec is valid.
def t457(YKHO): YKHO.pathspec.Validate() if YKHO.HasField('start_time') and YKHO.HasField('end_time') and (YKHO.start_time > YKHO.end_time): raise ValueError('Start time must be before end time.') if not YKHO.path_regex and (not YKHO.data_regex) and (not YKHO.path_glob): raise ValueError('A ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zngb(YKHO):\n YKHO.assertTrue(gnPz.valid_path('/valid/path/'))", "def JK0O(YKHO, pmON: str) -> bool:\n pass", "def o3nm(pmON):\n return kYZq(len(pmON))", "def UQ5S(YKHO, pmON):\n if not pmON:\n raise TcJ5('Must specify path')\n if not isinstance(pmON, str):\n raise TcJ5('inpu...
[ "0.73759276", "0.70972097", "0.69986665", "0.69353527", "0.6831952", "0.67732835", "0.67732835", "0.6749415", "0.67401785", "0.6713559", "0.6713559", "0.6693169", "0.66525483", "0.66437167", "0.65373117", "0.65358144", "0.65358144", "0.65147775", "0.64468235", "0.6443917", "0...
0.6947347
3
module that transpose a matrix
def H2DR(at2S): FKh3 = [] for pUlC in range(len(at2S[0])): ltsr = [] for wuAe in range(len(at2S)): ltsr.append(at2S[wuAe][pUlC]) FKh3.append(ltsr) return FKh3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l7uB(vb7U):\n return vb7U.T", "def l7uB(r8hN):\n return aLMY(r8hN.cols, r8hN.rows).mapi(lambda bGrB, Mkmy, Z9rn: r8hN.data[Z9rn][Mkmy])", "def H2DR(r8hN):\n if not r8hN:\n vb7U = []\n return vb7U\n else:\n vb7U = SppC(len(r8hN), len(r8hN[0]), 0)\n for YRbF in range(l...
[ "0.8527239", "0.8232602", "0.8141058", "0.80401576", "0.7990534", "0.7986246", "0.7986246", "0.79722506", "0.79722506", "0.7960852", "0.79312724", "0.79285645", "0.79245347", "0.7923956", "0.79188806", "0.7873823", "0.78402233", "0.78265774", "0.7806039", "0.7780329", "0.7771...
0.7639857
30
Creates an instance of this client using the provided credentials file.
def eWUZ(Emd4, Ux0P: str, *qIxc, **B2fa): return Jcym.from_service_account_file.__func__(Z3VW, Ux0P, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def adK6(Emd4, *, bD7m: str, NtEF: Union[str, StrStorage], jTXt: Union[str, StrStorage], emKz: Optional[FileTransfer]=None) -> i9zE:\n return i9zE(client=WX3b.from_credentials(url=bD7m, username=NtEF, password=jTXt), file_transfer=emKz)", "def vuB2(Nu1S=None, QpfX=None, mwuo=None, MYjm=None, QDug=None, NtEF=N...
[ "0.7249915", "0.7053171", "0.68975395", "0.68081045", "0.6802571", "0.6738844", "0.67199385", "0.6675532", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6666354", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6660721", "0.6646984", "0.6643617", "0.66432035",...
0.6387937
31
r"""Lists the usermanaged instance config [longrunning operations][google.longrunning.Operation] in the given project. An instance config operation has a name of the form ``projects//instanceConfigs//operations/``. The longrunning operation [metadata][google.longrunning.Operation.metadata] field type ``metadata.type_ur...
async def list_instance_config_operations(YKHO, QePW: Optional[Union[spanner_instance_admin.ListInstanceConfigOperationsRequest, dict]]=None, *, _AKB: Optional[str]=None, ZFzw: OptionalRetry=uMLX.method.DEFAULT, vYBr: Union[float, object]=uMLX.method.DEFAULT, yIVm: Sequence[Tuple[str, str]]=()) -> yX0M.ListInstanceConf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oHjr(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input['GoogleCloudApigeeV1OperationConfigArgs']]]:\n return qe4Y.get(YKHO, 'operation_configs')", "def oHjr(YKHO) -> qe4Y.Input[bdIy[qe4Y.Input['GoogleCloudApigeeV1GraphQLOperationConfigArgs']]]:\n return qe4Y.get(YKHO, 'operation_configs')", "def qGE0(YKHO) -> ubrK...
[ "0.58077735", "0.5752839", "0.5597446", "0.5507806", "0.54384655", "0.54220116", "0.54220116", "0.54195726", "0.54195726", "0.54195726", "0.54195726", "0.5336987", "0.5312545", "0.5284808", "0.5236082", "0.52116966", "0.51929843", "0.51815665", "0.5114731", "0.5097012", "0.50...
0.6371813
0
Load the component's model from disk
def bSvd(YKHO): return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl(YKHO):\n pass", "def uyMl():\n pass", "def uyMl():\n pass", "def uyMl(YKHO):\n NotImplementedError()", "def uyMl(YKHO):\n C3ST = mM0K.load(open(YKHO.filepath_Model))\n return C3ST", "de...
[ "0.81814134", "0.81814134", "0.81814134", "0.81814134", "0.7890784", "0.7890784", "0.78894913", "0.7753845", "0.7725877", "0.77200973", "0.7716269", "0.7692051", "0.76904505", "0.7657453", "0.76563203", "0.762568", "0.76115954", "0.7608257", "0.7597145", "0.7575973", "0.75736...
0.74374866
32
Inserts a new node as the left child of the root
def pTNu(YKHO, Esd_): if YKHO.leftChild is None: YKHO.leftChild = fg9Z(Esd_) else: a1PO = fg9Z(Esd_) a1PO.leftChild = YKHO.leftChild YKHO.leftChild = a1PO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xLXf(YKHO, Q6kx):\n if not YKHO.leftChild:\n YKHO.leftChild = fg9Z(Q6kx)\n else:\n tk5Y = fg9Z(Q6kx)\n tk5Y.leftChild = YKHO.leftChild\n YKHO.leftChild = tk5Y", "def xLXf(YKHO, BQJU):\n if YKHO.leftChild is None:\n YKHO.leftChild = fg9Z(BQJU)\n else:\n a1...
[ "0.8756141", "0.85308605", "0.85236585", "0.8456989", "0.8030226", "0.7958441", "0.7908558", "0.78983593", "0.7654041", "0.76239485", "0.7557793", "0.75455344", "0.7518344", "0.7505056", "0.7425926", "0.7367472", "0.73352796", "0.73261714", "0.7278286", "0.7205869", "0.716610...
0.8591665
1
Return the int ROM address associated with the given symbol argument. Should only be called if contains() has just returned true.
def vAkW(YKHO, o61b): return YKHO.symbol_table[o61b]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ItXz(YKHO, o61b):\n return YKHO.symbolDict[o61b]", "def ceuN(YKHO, o61b):\n return YKHO.symtable[o61b]", "def vAkW(YKHO, o61b):\n return YKHO.table[o61b]", "def vAkW(YKHO, o61b):\n return YKHO.table[o61b]", "def ZInD(YKHO, o61b):\n return YKHO.symbolTable[o61b]", "def xBlA(YKHO, o61b):...
[ "0.71925217", "0.7115864", "0.71060365", "0.6983704", "0.6936236", "0.6765342", "0.66999036", "0.66852033", "0.659496", "0.64675045", "0.6367169", "0.62061375", "0.61630464", "0.60766816", "0.59670395", "0.59335077", "0.59095806", "0.58418816", "0.5727803", "0.5727577", "0.56...
0.72335404
0
Test that collection of user_ids that the authenticated user does not want to receive retweets from succeeds
def eQ6x(YKHO): YKHO.api.get_user_ids_of_blocked_retweets(stringify_ids=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yQiX(YKHO, QH8x: List[str]) -> None:\n EmMj = [PObu for PObu in QH8x if PObu in YKHO._users_by_uid]\n assert YKHO._test is not None\n YKHO._test.assertEqual(EmMj, [], msg='Unexpected Firebase accounts exists: uids=%r' % (EmMj,))", "def SxyO(YKHO, uJjO):\n w2B8 = YKHO.conn\n Z9rn = w2B8.cursor(...
[ "0.68973637", "0.64660436", "0.6439694", "0.6331668", "0.6330442", "0.6328077", "0.62509996", "0.6224357", "0.6217303", "0.62107855", "0.61810136", "0.61689585", "0.61666036", "0.61638314", "0.6155713", "0.6145368", "0.6125869", "0.6086334", "0.6063166", "0.60619044", "0.6049...
0.7215879
0
Test updating friendships succeeds
def UrjM(YKHO): YKHO.api.update_friendship(screen_name=Sz07, retweets='true') YKHO.api.update_friendship(screen_name=Sz07, retweets=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHwJ(YKHO) -> None:\n nPrm = {'to_user': YKHO.user_one, 'from_user': YKHO.user_two}\n gCVh = Oxb2(**nPrm)\n geh0 = YKHO.client.patch(gxEw(ecDP, kwargs={'pk': gCVh.pk}), {'is_new': False, 'is_accepted': True})\n gCVh.refresh_from_db()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YK...
[ "0.78227055", "0.70802206", "0.6622903", "0.6622903", "0.6622903", "0.6519203", "0.6489307", "0.6489307", "0.64311755", "0.6341335", "0.63200253", "0.63029593", "0.62996817", "0.6294456", "0.6252346", "0.6232573", "0.6221424", "0.621781", "0.62067384", "0.6201946", "0.6201245...
0.79806554
0
Test getting list of users authenticated user then random user is following succeeds
def ScaJ(YKHO): YKHO.api.get_friends_list() YKHO.api.get_friends_list(screen_name='twitter')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wRFO(YKHO):\n MC83(YKHO.mr_foo)\n YKHO.follow('mr_bar')\n YKHO.follow('mr_baz')\n MC83(YKHO.mr_joe)\n geh0 = YKHO.following('mr_foo')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n nPrm = qQXR.dumps(geh0.data)\n YKHO.assertIn('mr_bar', nPrm)\n YKHO.assertIn('mr_baz', nPrm)"...
[ "0.80067235", "0.78117174", "0.78036845", "0.7767408", "0.761415", "0.76017666", "0.7561833", "0.7345423", "0.7301261", "0.72763145", "0.727359", "0.72182935", "0.7208275", "0.7192647", "0.71889186", "0.71887666", "0.7184948", "0.71788806", "0.7171821", "0.7168185", "0.713651...
0.0
-1
Test returning list of accounts that contribute to the authenticated user fails because we are not a Contributor account
def HvNY(YKHO): YKHO.assertRaises(aqGa, YKHO.api.get_contributors, screen_name=DC1C)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDmo(YKHO):\n pass", "def lXZc(YKHO):\n pass", "def cm78(YKHO):\n bNKA = oPx1.objects.order_by('?').first()\n YKHO.authenticateAsProjectContributor(bNKA)\n YKHO.assertListResponseMatchesQuerySet('/projects/{}/collaborators/'.format(bNKA.pk), bNKA.collaborators.all(), AUVx)", "def VVA5(YKHO...
[ "0.67883456", "0.6767678", "0.66142374", "0.66052157", "0.65346324", "0.6427804", "0.6417065", "0.63469017", "0.6325619", "0.63142216", "0.6293612", "0.626154", "0.6252193", "0.6239287", "0.62365997", "0.62224865", "0.62207043", "0.61668444", "0.613241", "0.6118969", "0.61181...
0.0
-1
Test listing users who are muted by the authenticated user succeeds
def UFmN(YKHO): YKHO.api.list_mutes()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X3xJ(Oa6h, wOmD):\n qoqK, wOmD = sM7d(wOmD)\n DW23 = Oa6h.fetch_remaining(Oa6h.mutes(limit=qoqK))\n if not DW23:\n GgQp(\" You haven't muted anyone (... yet)\", mHuL('red'))\n else:\n GgQp(' You have muted:', mHuL('magenta'))\n sRhH(DW23)", "def crZ6(YKHO):\n bD7m = 'htt...
[ "0.7122065", "0.67399764", "0.6722566", "0.65133315", "0.6407613", "0.62888014", "0.62429005", "0.62181866", "0.61945224", "0.607797", "0.6005904", "0.5888929", "0.58723927", "0.58686376", "0.58581954", "0.5839214", "0.5838777", "0.58257145", "0.5821208", "0.58098465", "0.580...
0.59042645
11
Test getting list of saved searches for authenticated user succeeds
def eCFa(YKHO): YKHO.api.get_saved_searches()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JTlW(YKHO):\n with YKHO.client as Z9rn:\n _hkX = Z9rn.get('/users?q=test')\n YKHO.assertIn('testuser', str(_hkX.data))\n YKHO.assertIn('test2user', str(_hkX.data))", "def Ig13(YKHO):\n NArs = {'size': 50}\n dixj = Q_qW(YKHO.user, search_param_dict=NArs)\n YKHO.assertEqual(len...
[ "0.7250104", "0.711643", "0.7057938", "0.70198506", "0.6956803", "0.6917469", "0.68708974", "0.6870545", "0.6851173", "0.6817338", "0.6769083", "0.67637086", "0.67441624", "0.67368674", "0.6708488", "0.6699118", "0.66791725", "0.6659272", "0.663243", "0.66291654", "0.66229934...
0.7487201
0
Test getting list of saved searches for authenticated user succeeds
def sbIf(YKHO): StcW = YKHO.api.create_saved_search(query='#Twitter') HW30 = StcW['id_str'] YKHO.api.show_saved_search(id=HW30) YKHO.api.destroy_saved_search(id=HW30)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eCFa(YKHO):\n YKHO.api.get_saved_searches()", "def JTlW(YKHO):\n with YKHO.client as Z9rn:\n _hkX = Z9rn.get('/users?q=test')\n YKHO.assertIn('testuser', str(_hkX.data))\n YKHO.assertIn('test2user', str(_hkX.data))", "def Ig13(YKHO):\n NArs = {'size': 50}\n dixj = Q_qW(YKHO...
[ "0.74876827", "0.7250593", "0.71165997", "0.70581967", "0.70208985", "0.69570833", "0.691762", "0.6871441", "0.68713075", "0.68520075", "0.6817585", "0.6769773", "0.67644286", "0.6745686", "0.6737539", "0.67083883", "0.66996837", "0.66803616", "0.66605645", "0.663347", "0.662...
0.0
-1
Test search for places that can be attached to a statuses/update succeeds
def N6l0(YKHO): YKHO.api.search_geo(query='Toronto')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsqG(sisH):\n Aofo = PjZe({'predictions': [{'description': 'Tour Eiffel, Avenue Anatole France, Paris, France', 'matched_substrings': [{'length': 11, 'offset': 0}, {'length': 5, 'offset': 36}], 'place_id': 'ChIJLU7jZClu5kcR4PcOOO6p3I0', 'reference': 'ChIJLU7jZClu5kcR4PcOOO6p3I0', 'structured_formatting': {'...
[ "0.6415128", "0.62934625", "0.615136", "0.60528076", "0.60386753", "0.6017479", "0.59961355", "0.599097", "0.5975553", "0.5867196", "0.58663905", "0.5789192", "0.5769321", "0.5722556", "0.5700145", "0.56737536", "0.567312", "0.5658606", "0.56499106", "0.5636197", "0.56205934"...
0.5537337
28
Converts sqlalchemy RowProxy to an OrderedDict.
def ex4C(rdlD, eWK1=()): Aofo = U8Lr() for H5ew in rdlD.keys(): if H5ew not in eWK1: Aofo[H5ew] = getattr(rdlD, H5ew) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yJtc(N1p7, rdlD):\n Csk6 = U8Lr()\n for YRbF, fvDH in enumerate(N1p7.description):\n Csk6[fvDH[0]] = rdlD[YRbF]\n return Csk6", "def MNRr(YKHO, rdlD):\n return dict(g760.OrderedDict(rdlD))", "def MNRr(YKHO):\n ZLJ_ = YKHO.column_names()\n for rdlD in YKHO.cursor:\n yield dic...
[ "0.6726572", "0.6712825", "0.6287834", "0.62302136", "0.6205718", "0.61581916", "0.6156515", "0.5963911", "0.59545916", "0.58950007", "0.5893804", "0.5865631", "0.58541024", "0.5830474", "0.58293766", "0.58228505", "0.5794303", "0.57590884", "0.5716642", "0.56667554", "0.5654...
0.60295904
7
Merge given dicts into a new dict.
def roQF(*c974): Aofo = {} for cmPJ in c974: Aofo.update(cmPJ) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngw3(*c974):\n Aofo = {}\n for cmPJ in c974:\n Aofo.update(cmPJ)\n return Aofo", "def W0j7(YKHO, *c974):\n Aofo = {}\n for cmPJ in c974:\n Aofo.update(cmPJ)\n return Aofo", "def roQF(*fgcx):\n return Lsmx({}, *fgcx)", "def roQF(*c974):\n Aofo = {}\n for cmPJ in c9...
[ "0.82675874", "0.825299", "0.82251716", "0.82243174", "0.8194518", "0.81682247", "0.8141835", "0.81413156", "0.8132082", "0.80936265", "0.809354", "0.80880964", "0.8086385", "0.8084485", "0.8063346", "0.80490637", "0.8047028", "0.8028401", "0.7992375", "0.7967561", "0.7955739...
0.8155924
12
Replaces characters in ``name`` that shouldn't be used for file or dir names.
def b8nr(mWFP: str) -> str: Ux0P = '' for hcXw in mWFP: if hcXw in '/:.\\': Ux0P += '_' else: Ux0P += hcXw return Ux0P
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aSeI(mWFP):\n PFCi = '\\\\/:<>?*|'\n if mWFP == None:\n mWFP = 'Unknown'\n for bseI in PFCi:\n mWFP = mWFP.replace(bseI, '_')\n mWFP = mWFP.replace('\"', \"'\")\n return mWFP", "def SREd(mWFP: str) -> str:\n czoL = {' ': '_', '!': '_', '#': '_', '%': '_', '(': '', ')': '', '*'...
[ "0.782552", "0.77273244", "0.75905645", "0.7543834", "0.7516953", "0.7496121", "0.7423694", "0.7416813", "0.7409684", "0.7381228", "0.73639727", "0.73055905", "0.730044", "0.726936", "0.72340643", "0.7233981", "0.7208985", "0.7186619", "0.71659976", "0.7154768", "0.7150048", ...
0.0
-1
Multihead self (identical input Q, K, V) attention.
def FIMM(YKHO, C9HQ: int, hC9O: int=1): super(X2vQ, YKHO).__init__() assert C9HQ % hC9O == 0, f'Model dimension {C9HQ} not divisible by number of heads {hC9O}' V5Fy = C9HQ // hC9O YKHO.to_query = U78l.Linear(C9HQ, V5Fy * hC9O, bias=False) YKHO.to_key = U78l.Linear(C9HQ, V5Fy * hC9O, bias=False) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, T8ck, nMvt, cAlv, NXpY=None, ShMy=None):\n v2uf = ht2j.matmul(T8ck, nMvt.permute(0, 2, 1))\n if NXpY:\n v2uf = v2uf * NXpY\n if ShMy:\n v2uf = v2uf.masked_fill_(ShMy, -oyIN.inf)\n v2uf = vuvg.softmax(v2uf, dim=-1)\n QpfX = ht2j.matmul(v2uf, cAlv)\n return (QpfX, v2uf)...
[ "0.6976414", "0.68609536", "0.67357504", "0.66018945", "0.65961784", "0.6572633", "0.64359665", "0.6428224", "0.6394703", "0.6331808", "0.63055307", "0.6296438", "0.6295684", "0.624682", "0.6246453", "0.62019545", "0.6172923", "0.61620724", "0.61555356", "0.6126768", "0.60919...
0.67274827
3
Constructor to create EventThresholds object vsm object on which EventThresholds object has to be configured
def FIMM(YKHO, O4O_=None): super(vQlK, YKHO).__init__() YKHO.log = bo34.setup_logging(YKHO.__class__.__name__) YKHO.schema_class = 'event_thresholds_schema.EventThresholdsSchema' YKHO.set_connection(O4O_.get_connection()) YKHO.set_create_endpoint('/firewall/stats/eventthresholds') YKHO.set_read_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, xUhr: int):\n YKHO._event_threshold = xUhr", "def FIMM(YKHO, xUhr: int, XDQx: float, urN1: float, HHea: float):\n YKHO._event_threshold: int = xUhr\n YKHO._positive_amplitude: float = XDQx\n YKHO._negative_amplitude: float = urN1\n YKHO._spacing: float = HHea", "def FIMM(YKHO, gwA...
[ "0.75552267", "0.6926814", "0.64528483", "0.637673", "0.6261601", "0.6242313", "0.620848", "0.6152741", "0.6087089", "0.60442436", "0.6003442", "0.59906876", "0.59667635", "0.5956131", "0.5859017", "0.5832683", "0.58162177", "0.5810992", "0.577437", "0.57724583", "0.57519966"...
0.77237433
0
Returns a random video file, chosen among the files of the given path.
def PoBx(pmON): RRlC = PoUA d6pt = tuKI.randrange(0, len(RRlC)) if RRlC[d6pt].endswith('MOV'): return RRlC[d6pt]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PoBx(pmON):\n RRlC = Hy7s.listdir(mRGI)\n wNWH = tuKI.randrange(7, 17)\n return RRlC[wNWH]", "def ltrc(W0bj):\n cfbQ = SC2F.glob(W0bj + '*.mp4')\n while True:\n ccBq = tuKI.choice(cfbQ)\n h2MS = XC5k.VideoCapture(ccBq)\n rpgT = int(h2MS.get(w9ZV))\n kOxy = oyIN.rand...
[ "0.7902932", "0.66624254", "0.6609456", "0.6546307", "0.6519814", "0.6477914", "0.6461275", "0.6428521", "0.6407207", "0.6393476", "0.63598907", "0.6295602", "0.625143", "0.62503886", "0.61939824", "0.61811024", "0.61622834", "0.6142989", "0.613555", "0.60473156", "0.6046116"...
0.8711907
0
A backend pool is a collection of backends that can be routed to.
def FIMM(Ro_8, *, zxMY: Optional[pulumi.Input[Sequence[pulumi.Input['BackendArgs']]]]=None, _ExL: Optional[pulumi.Input['SubResourceArgs']]=None, id: Optional[pulumi.Input[str]]=None, NUzs: Optional[pulumi.Input['SubResourceArgs']]=None, mWFP: Optional[pulumi.Input[str]]=None): if zxMY is not None: qe4Y.set...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZklL(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['BackendPoolArgs']]]]:\n return qe4Y.get(YKHO, 'backend_pools')", "def Gxpc(YKHO) -> h8nf[qe4Y.Input['SubResourceArgs']]:\n return qe4Y.get(YKHO, 'backend_pool')", "def ZklL(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.BackendPoolResponse']]]:\n return qe4Y...
[ "0.7354742", "0.72054803", "0.7200011", "0.69492096", "0.6683171", "0.65826374", "0.6567285", "0.65233743", "0.65221107", "0.6423987", "0.6415588", "0.6410843", "0.6396973", "0.62689227", "0.62493914", "0.624363", "0.6185331", "0.617119", "0.61334246", "0.61334246", "0.612731...
0.0
-1
The set of backends for this pool
def zxMY(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['BackendArgs']]]]: return qe4Y.get(YKHO, 'backends')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rB7g(YKHO):\n return YKHO.backends", "def tHu7(YKHO):\n return list(YKHO.backends.values())", "def rB7g(Emd4) -> cuzp[str, IQ9R]:\n ...", "def zxMY(YKHO) -> bdIy['outputs.BackendResponse']:\n return qe4Y.get(YKHO, 'backends')", "def p7fD(YKHO) -> cuzp[str, Ap9Y]:\n if not YKHO.__backends...
[ "0.8039187", "0.8030835", "0.78853595", "0.77164274", "0.7648792", "0.76242393", "0.75959456", "0.7587809", "0.7546586", "0.75143254", "0.74915475", "0.7481216", "0.74183327", "0.732956", "0.7275936", "0.71943855", "0.71312463", "0.7104981", "0.70722187", "0.6972219", "0.6938...
0.7681737
4
The value to use as the host header sent to the backend. If blank or unspecified, this defaults to the incoming host.
def FhC5(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'backend_host_header')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hzKQ(YKHO) -> h8nf[str]:\n if ':authority' in YKHO.headers:\n return YKHO.headers[':authority']\n if 'Host' in YKHO.headers:\n return YKHO.headers['Host']\n return None", "def a7Eh(YKHO):\n return YKHO._host_name", "def hzKQ(YKHO) -> str:\n return YKHO._host_header", "def KcE...
[ "0.7698975", "0.74809706", "0.74636173", "0.7462089", "0.7399792", "0.739799", "0.7336024", "0.73166734", "0.73164177", "0.7309445", "0.7288063", "0.7284564", "0.7263016", "0.7263016", "0.725673", "0.725673", "0.725673", "0.725673", "0.725673", "0.725673", "0.725673", "0.72...
0.7510303
1
Priority to use for load balancing. Higher priorities will not be used for load balancing if any lower priority backend is healthy.
def Ey19(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'priority')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ey19(YKHO) -> int:\n return 100", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def Ey19(YKHO) -> int:\n return qe4Y.get(YKHO, 'priority')", "def...
[ "0.68416435", "0.6582782", "0.6582782", "0.6582782", "0.6582782", "0.6582782", "0.6582782", "0.6582782", "0.6582782", "0.6560605", "0.64588463", "0.64380324", "0.63993937", "0.63779384", "0.6333887", "0.6330081", "0.6313174", "0.6313174", "0.6313174", "0.6313174", "0.63124806...
0.6141654
40
The location of the Private Link resource. Required only if 'privateLinkResourceId' is populated
def tYDH(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'private_link_location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RkFg(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'private_link')", "def Hbox(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'private_link_resource_id')", "def cZ1g(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.SharedPrivateLinkResourcePropertiesResponse']]]:\n return qe4Y.get(YKHO, 'shared_priv...
[ "0.72849125", "0.69989234", "0.67663294", "0.6439536", "0.6390549", "0.62109464", "0.6028486", "0.59086215", "0.5902905", "0.5902905", "0.5902905", "0.5902905", "0.58905005", "0.5805694", "0.57226163", "0.5602855", "0.5602855", "0.5602855", "0.5576211", "0.55691767", "0.55691...
0.77677226
0
The Resource Id of the Private Link resource. Populating this optional field indicates that this backend is 'Private'
def Hbox(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'private_link_resource_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RkFg(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'private_link')", "def cZ1g(YKHO) -> qe4Y.Output[h8nf[bdIy['outputs.SharedPrivateLinkResourcePropertiesResponse']]]:\n return qe4Y.get(YKHO, 'shared_private_link_resource')", "def X5ma(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input['PrivateLinkResourceArgs']...
[ "0.71944857", "0.7076169", "0.6719806", "0.65707326", "0.63979876", "0.6382286", "0.6257957", "0.6206584", "0.612039", "0.60344315", "0.5893571", "0.5893571", "0.5893571", "0.5893571", "0.5857762", "0.5857762", "0.5852617", "0.5852617", "0.5852617", "0.5852617", "0.5852617", ...
0.8362901
0
A reference to the BackendPool which this rule routes to.
def Gxpc(YKHO) -> h8nf[qe4Y.Input['SubResourceArgs']]: return qe4Y.get(YKHO, 'backend_pool')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hMyR(YKHO):\n if 'backendService' in YKHO.forwarding_rule_configs:\n return YKHO.forwarding_rule_configs['backendService']\n elif 'target' in YKHO.forwarding_rule_configs:\n return YKHO.forwarding_rule_configs['target']", "def YWtq(YKHO):\n return YKHO._pool", "def dBuj(YKHO):\n r...
[ "0.6528402", "0.63870466", "0.6374909", "0.63647825", "0.63296276", "0.63080776", "0.6254112", "0.6254112", "0.61801475", "0.6175815", "0.615213", "0.6143363", "0.61422807", "0.6138821", "0.6094477", "0.60806996", "0.6055749", "0.6055749", "0.6055749", "0.6046218", "0.6045661...
0.7607113
0
If action type is redirect, this field represents redirect URL for the client.
def LfXz(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'redirect_url')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D15X(YKHO) -> 'outputs.HttpRedirectActionResponse':\n return qe4Y.get(YKHO, 'url_redirect')", "def D15X(YKHO) -> 'outputs.HttpRedirectActionResponse':\n return qe4Y.get(YKHO, 'url_redirect')", "def LfXz(YKHO):\n raise NotImplemented()", "def WxBe(YKHO):\n if YKHO._response.is_redirect:\n ...
[ "0.7765304", "0.7765304", "0.77189314", "0.76386327", "0.7550202", "0.74141604", "0.737685", "0.7300994", "0.7212488", "0.7137167", "0.7118025", "0.70918936", "0.7060931", "0.7059312", "0.7059312", "0.7055452", "0.7015524", "0.69779336", "0.69631046", "0.6950693", "0.69409966...
0.76498413
3
Whether to allow session affinity on this host. Valid options are 'Enabled' or 'Disabled'
def C57y(YKHO) -> h8nf[qe4Y.Input[uLKX[str, 'SessionAffinityEnabledState']]]: return qe4Y.get(YKHO, 'session_affinity_enabled_state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f6Cx(YKHO) -> bool:\n return qe4Y.get(YKHO, 'session_affinity_enabled')", "def bVYH(YKHO) -> bool:\n return qe4Y.get(YKHO, 'enable_strong_affinity')", "def G6pY(Emd4, cuiw):\n YwkQ = cuiw.get_channel()\n with Emd4._critical_section(YwkQ):\n if Emd4._channel_is_available_for_session(cuiw)...
[ "0.764232", "0.62627363", "0.58309203", "0.5611798", "0.5611798", "0.5600973", "0.55736464", "0.55423474", "0.550972", "0.5400735", "0.53984827", "0.53950155", "0.5392029", "0.53818434", "0.5371531", "0.5371531", "0.53690374", "0.5339105", "0.5339105", "0.5318706", "0.5313679...
0.6175055
2
The number of samples within the sample period that must succeed
def HgVm(YKHO) -> h8nf[qe4Y.Input[int]]: return qe4Y.get(YKHO, 'successful_samples_required')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MW7v(YKHO):\n return YKHO.n_samples - YKHO.sample_idx", "def UHFx(YKHO):\n return len(YKHO.samples)", "def IMIi(YKHO):\n return len(YKHO.sample)", "def IMIi(YKHO):\n return len(YKHO.sample)", "def AV8x(YKHO):\n vTeR = len(YKHO.data.shape) - 1\n return YKHO.data.size / YKHO.data.shape[...
[ "0.7354341", "0.7335655", "0.7232065", "0.7232065", "0.72034276", "0.7198922", "0.7139305", "0.7079073", "0.70231014", "0.6984615", "0.6976934", "0.69499415", "0.69403726", "0.6938901", "0.6896468", "0.6896468", "0.6891298", "0.68655515", "0.6853835", "0.6849696", "0.68224007...
0.0
-1
Selector value for which elements in the collection this exclusion applies to.
def PKko(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'selector')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pa28(YKHO):\n try:\n return YKHO._selectorvalue\n except Exception as e:\n raise tTpl", "def PKko(YKHO) -> h8nf[int]:\n return qe4Y.get(YKHO, 'selector')", "def yUkU(YKHO, Ty9i):\n return YKHO._exclusionMap.get(Ty9i, None)", "def Z2Yo(YKHO):\n try:\n return YKHO._hitse...
[ "0.64699864", "0.61067533", "0.5969615", "0.58687776", "0.5805494", "0.5780311", "0.5780311", "0.5780311", "0.5777648", "0.5777648", "0.5663862", "0.5663862", "0.5661468", "0.5661468", "0.5629303", "0.55713177", "0.55713177", "0.55666834", "0.55642575", "0.55506027", "0.55506...
0.56797796
10
The set of query strings to be placed in the redirect URL. Setting this value would replace any existing query string; leave empty to preserve the incoming query string. Query string must be in = format. The first ? and & will be added automatically so do not include them in the front, but do separate multiple query st...
def w7A1(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'custom_query_string')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bsp2(YKHO):\n return YKHO.request.query", "def I9Z_(vKnz, Sri9):\n rP9L = _Ibt(KVWQ(vKnz.old_path).query, keep_blank_values=True)\n BCWZ = _Ibt(KVWQ(vKnz.link).query, keep_blank_values=True)\n tFQ4 = _Ibt(Sri9, keep_blank_values=True)\n HZGf = {H5ew: wEf2 for H5ew, wEf2 in tFQ4.items() if rP9L...
[ "0.69494814", "0.66935617", "0.6629934", "0.65946865", "0.6488682", "0.6458498", "0.64109236", "0.6360811", "0.63589823", "0.6334036", "0.6297964", "0.6232749", "0.6135439", "0.61292344", "0.60985845", "0.6042234", "0.60309505", "0.5976894", "0.5949322", "0.5901005", "0.58692...
0.0
-1
A priority assigned to this rule.
def Ey19(YKHO) -> qe4Y.Input[int]: return qe4Y.get(YKHO, 'priority')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ey19(YKHO):\n return YKHO.__priority", "def Ey19(YKHO):\n return YKHO._priority", "def Ey19(YKHO):\n return YKHO._priority", "def Ey19(YKHO):\n return YKHO._priority", "def Ey19(YKHO):\n return YKHO._priority", "def Ey19(YKHO):\n return YKHO._priority", "def Ey19(YKHO) -> int:\n ...
[ "0.78259665", "0.7691786", "0.7691786", "0.7691786", "0.7691786", "0.76306695", "0.7579886", "0.7480878", "0.74610555", "0.7428897", "0.7428897", "0.7428897", "0.7428897", "0.7428897", "0.7428897", "0.7428897", "0.7428897", "0.74042475", "0.74042475", "0.73656", "0.73148394",...
0.7264119
27
Tests a PATCH call to update a live stream without a valid dictionary passed in for update_dict
def LH3i(): with trZe.raises(LdIS): geh0 = GVFp.update('', '') assert isinstance(geh0, dict) assert 'meta' in geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wv0I():\n geh0 = GVFp.update(MLMj, {'name': 'Test'})\n assert isinstance(geh0, dict)\n assert geh0['live_stream']['id'] == MLMj, 'The ID should be in the response.'", "def b5fH():\n geh0 = GVFp.update(MLMj, {'live_stream': {'name': 'Test'}})\n assert isinstance(geh0, dict)\n assert geh0['li...
[ "0.7052643", "0.69612515", "0.6532927", "0.6523768", "0.6521997", "0.64750165", "0.6427632", "0.6380796", "0.63487005", "0.6347468", "0.6346937", "0.6308815", "0.6293596", "0.6270924", "0.6259808", "0.62589574", "0.6245454", "0.6236371", "0.61930865", "0.6191351", "0.6178584"...
0.7596357
0
Test a PATCH call to update information associated with a particular player
def vppk(): geh0 = R5qH.update(LZbL, {'width': '800px'}) assert isinstance(geh0, dict) assert geh0['player']['id'] == LZbL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def odWq():\n oyg0 = mVZ4(1, 'flu')\n nPrm = {'hand': [], 'stage': '1', 'atp': '2', 'stageImage': '/testImage'}\n oyg0.update(nPrm)\n assert oyg0.hand == []\n assert oyg0.stage == 1\n assert oyg0.atp == 2\n assert oyg0.stageImage == '/testImage'", "def YQ8O(YKHO):\n bD7m = gxEw(YKHO.detai...
[ "0.6888319", "0.6758468", "0.6756962", "0.6689965", "0.65622383", "0.6558363", "0.65444404", "0.6541301", "0.65282804", "0.65179044", "0.64731437", "0.64463806", "0.6437976", "0.64292467", "0.64061403", "0.6390968", "0.6388547", "0.6380764", "0.636778", "0.6366942", "0.636274...
0.77996004
0
Tests an API call to create a new URL for a player, but with missing required params
def ytu6(): with trZe.raises(eWvv): geh0 = R5qH.urls(player_id=LZbL, option='new', param_dict={'label': 'intentional failure'}) assert isinstance(geh0, dict) assert 'meta' in geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gyVn():\n geh0 = R5qH.urls(player_id=LZbL, option='new', param_dict={'label': 'Test label', 'height': 1080, 'width': 1920, 'bitrate': 2500, 'url': 'http://some.url/test/path'})\n assert isinstance(geh0, dict)\n assert 'id' in geh0['url'], 'ID of new URL should be returned in the response'", "def oOq...
[ "0.75114757", "0.65807295", "0.6267086", "0.61720496", "0.6145163", "0.6074908", "0.59586257", "0.58988786", "0.5895818", "0.5875716", "0.5875665", "0.58657384", "0.583084", "0.5801525", "0.57740384", "0.5769137", "0.57655734", "0.5752468", "0.5740133", "0.57321376", "0.57281...
0.7622931
0
Tests an API call to update the details of a specific URL
def Xa0I(): geh0 = R5qH.urls(player_id=LZbL, url_id=hXuk[0], param_dict={'label': 'Test label change'}) assert isinstance(geh0, dict) assert geh0['url']['id'] == hXuk[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vvb9(YKHO):\n geh0 = YKHO.client.get(YKHO.update_result_url)\n YKHO.assertEquals(geh0.status_code, 200)", "def Yq64(YKHO):\n u2eA = {'fullname': 'Blah'}\n Ylbp = YKHO.client.put(gxEw('details', kwargs={'pk': jbn3.rfid}), u2eA, format='json')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_O...
[ "0.6972658", "0.68055165", "0.6719213", "0.67061657", "0.66827434", "0.6660299", "0.6653334", "0.6603824", "0.6548495", "0.6534065", "0.6522083", "0.6456579", "0.644727", "0.6426945", "0.64212", "0.6419653", "0.64144266", "0.64104146", "0.64032376", "0.63893735", "0.63822955"...
0.6757782
2
Tests an API call to get the state of a schedule by ID
def Y50r(): geh0 = se9S.info(W5nB, 'state') assert isinstance(geh0, dict) assert 'schedule' in geh0 assert 'state' in geh0['schedule']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UDiC():\n geh0 = se9S.info()\n assert isinstance(geh0, dict)\n assert 'schedules' in geh0", "def JtGn(YKHO):\n geh0 = YKHO.client.open('/pablokvitca/classdeck-api/1.0.0/schedule_option/{schedule_option_id}'.format(schedule_option_id=1), method='GET')\n YKHO.assert200(geh0, 'Response body is : ...
[ "0.75395703", "0.7310259", "0.7298002", "0.7155993", "0.7055161", "0.6921185", "0.6810479", "0.6806599", "0.67489207", "0.6629649", "0.6575872", "0.6575652", "0.6563957", "0.655736", "0.64785105", "0.64681685", "0.6467384", "0.6467384", "0.64460105", "0.64297515", "0.6423379"...
0.8221338
0
Make an empty HASH run object. Initialize all the arrays needed for a HASH run. They are based on the maximum size of the arrays passed to the FORTRAN subroutines. ANYTHING initialized here can be changed by passing a keyword arg at the Constructor call. Useful for using an input parameter file for HASH. Example
def FIMM(YKHO, **B2fa): AGPF = Hy7s.path.dirname(xAKo) t2tX = Hy7s.path.join(AGPF, 'src', 'param.inc') F8M5 = Hy7s.path.join(AGPF, 'src', 'rot.inc') SISA = halj(t2tX) e_8l = halj(F8M5) YKHO.__dict__.update(SISA) YKHO.__dict__.update(e_8l) hdZ4 = YKHO.npick0 IJUB = YKHO.nmc0 giAr ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.size = 10000\n YKHO.hash_table = [None] * YKHO.size", "def FIMM(YKHO):\n YKHO.size = 1000\n YKHO.hash = [None] * YKHO.size", "def FIMM(YKHO, zNig, j5Jt, MB_s=None):\n YKHO.size = zNig\n YKHO.bitArr = R3u8(zNig)\n YKHO.bitArr.setall(False)\n YKHO.hasher = Uing()\n ...
[ "0.68164307", "0.67425585", "0.6700735", "0.66577554", "0.66191125", "0.6559128", "0.6514989", "0.6488841", "0.6421131", "0.6402923", "0.63924646", "0.6386772", "0.6376252", "0.6352413", "0.635217", "0.6345077", "0.6323905", "0.63201636", "0.6310103", "0.629462", "0.6290962",...
0.0
-1
Creo celulas de vida en el mundo
def p_M8(): for WKvO in Ni9Y(z8ez): for LVAh in Ni9Y(kVXm): Es_U[WKvO][LVAh] = ajWY(0, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aTzB(YKHO):\n for Mkmy in range(0, 9):\n for YRbF in range(0, 9):\n YKHO.vicini[YKHO.row[Mkmy][YRbF]] = YKHO.row[Mkmy]\n for YRbF in YKHO.lettere:\n for G1Hx in range(1, 10):\n YKHO.vicini[YRbF, G1Hx] = YKHO.vicini[YRbF, G1Hx] + YKHO.col[G1Hx - 1]\n G1Hx = 0\n fo...
[ "0.72611076", "0.6599813", "0.6545087", "0.6409151", "0.64068097", "0.63722545", "0.633874", "0.63295066", "0.61933684", "0.6173008", "0.61399215", "0.612064", "0.60762155", "0.60728467", "0.60632217", "0.6061622", "0.6046816", "0.6009468", "0.60031056", "0.5995063", "0.59809...
0.0
-1
Returns the name of the input tensor.
def oYKk(mWFP): return mWFP.split(':')[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AzER(YKHO):\n return oYKk(YKHO.node_name, YKHO.output_slot)", "def CPVg(WKvO):\n a1PO = WKvO.name.rsplit(':', 1)\n if len(a1PO) == 1:\n return WKvO.name\n else:\n return a1PO[0]", "def spAg(vhpA):\n AzER = vhpA.name\n if vhpA.op.inputs[0].name is not None:\n return vh...
[ "0.8021172", "0.772682", "0.76201", "0.716711", "0.71468836", "0.71468836", "0.70708805", "0.68949157", "0.6864784", "0.6861292", "0.6820419", "0.6770482", "0.6715751", "0.6617045", "0.6617045", "0.65011156", "0.64834297", "0.6449452", "0.64367", "0.64367", "0.64367", "0.64...
0.78531665
1
Returns the function name with '_frozen' appended.
def eKls(mWFP): return mWFP + '_frozen'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rmVL(YKHO):\n return YKHO.name + '_free'", "def q7Uo():\n assert kwST is not None\n return kwST", "def kI3b(YKHO):\n return YKHO._hash_func_name", "def tOD3(JfyU):\n rFV1 = WO2G(JfyU)[-1]\n SsIi = getattr(rFV1, '__name__', '<unknown>')\n LCet = getattr(rFV1, '__module__', '<unknown>'...
[ "0.6454598", "0.6454567", "0.62450176", "0.62079483", "0.6108711", "0.6108711", "0.6103882", "0.6087998", "0.60503423", "0.60220236", "0.60154426", "0.60090625", "0.6004625", "0.5973733", "0.5952858", "0.5920842", "0.5836222", "0.5825446", "0.58026534", "0.5794479", "0.578755...
0.8544711
0
Returns a list of NodeDefs in the GraphDef. This list consists of all NodeDefs in the main graph as well as all control flow NodeDefs in the functions. The remaining NodeDefs in the functions are not included because the op names are not unique and the variables are handled differently than the main graph. The control ...
def wKt7(r8JX): mcoZ = list(r8JX.node) if r8JX.library: for JfyU in r8JX.library.function: mcoZ.extend([Q6kx for Q6kx in JfyU.node_def if Q6kx.op in mX4o]) return mcoZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XiWZ(YKHO):\n return [WKvO for WKvO, LVAh in YKHO.FG.nodes(data=True) if LVAh['bipartite'] == 1]", "def tAWP(YKHO, pNZh: NNCFGraph) -> x1iM[x1iM[xF21]]:\n U5bT = oRi_(list)\n for Q6kx in pNZh.get_nodes_by_types(YKHO._prune_operations):\n U5bT[Q6kx.layer_name].append(Q6kx)\n return [U5bT[kP...
[ "0.64703095", "0.6252744", "0.61136276", "0.6052336", "0.6032974", "0.5985429", "0.58595055", "0.5663922", "0.56488746", "0.5631171", "0.56175864", "0.5609944", "0.56043327", "0.55813223", "0.55627507", "0.5562152", "0.5554891", "0.5551272", "0.5515418", "0.5513907", "0.54925...
0.81198764
0
Gets the tensor data for all Placeholders in the model.
def mZn7(JfyU): JLgg = {} XiAf = {} for SRYB in JfyU.graph.variables: for or8S, Xehz in enumerate(JfyU.captured_inputs): if SRYB.handle is Xehz: XiAf[or8S] = SRYB break for or8S, (cylq, JsfK) in enumerate(JfyU.graph.captures): AzER = oYKk(JsfK....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pGwi():\n WKvO = ZylS.placeholder(ZylS.float32, [None, 784], name='x')\n ijL8 = ZylS.placeholder(ZylS.float32, [None, 10], name='y_')\n return (WKvO, ijL8)", "def Y2cY(YKHO):\n return c0Aa(YKHO.get_template())", "def Y2cY(AIZ9, Ep8u, bySB, cuiw):\n N0ky = bySB['height']\n rb7a = bySB['dep...
[ "0.6681354", "0.6507967", "0.64924663", "0.6377844", "0.6345193", "0.63371086", "0.6296402", "0.6282136", "0.6269196", "0.6247058", "0.6243337", "0.6243337", "0.61396927", "0.6066699", "0.60648966", "0.60421985", "0.6040423", "0.6040423", "0.6039419", "0.60258055", "0.6013223...
0.6688651
0
Gets the types and shapes for the parameters to the function. Creates a map from function name to a list of types and a list of shapes that correspond with the function arguments. The data is primarily determined from the corresponding "If" or "While" op. If the argument is a resource variable, then the type is determi...
def PgW1(mcoZ, JLgg, QTy2): R3kl = {} def kLZ_(AwDt): while QTy2[AwDt].op == 'Identity': AwDt = oYKk(QTy2[AwDt].input[0]) return AwDt def X3sg(AwDt): AwDt = kLZ_(AwDt) ut29 = JLgg[AwDt]['data'].dtype return m1c7.as_dtype(ut29).as_datatype_enum def s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gdbA():\n return {'HMS': lambda WKvO: isinstance(WKvO, int) and WKvO > 0, 'r_accept': lambda WKvO: isinstance(WKvO, float) and 0 < WKvO < 1, 'r_pa': lambda WKvO: isinstance(WKvO, float) and 0 < WKvO < 1, 'b_range': lambda WKvO: isinstance(WKvO, (int, float)) and WKvO > 0}", "def _Lss(YKHO) -> cuzp[str, V5...
[ "0.53922594", "0.5356801", "0.53382534", "0.53115004", "0.51848304", "0.518276", "0.5160898", "0.5083308", "0.506951", "0.50436866", "0.5022857", "0.49671555", "0.49396724", "0.48974717", "0.48962048", "0.4882153", "0.48808292", "0.48789406", "0.4877906", "0.48671186", "0.481...
0.62432945
0
Replaces all the variables in a graph with constants of the same values. TensorFlow 2.0 function for converting all Variable ops into Const ops holding the same values. This makes it possible to describe the network fully with a single GraphDef file, and allows the removal of a lot of ops related to loading and saving ...
def hlKD(JfyU, zMV7=True): r8JX = Bl54(JfyU, zMV7) BfDw.maybe_export_graph('/tmp/0_inlined_graph.pb', r8JX) mcoZ = wKt7(r8JX) QTy2 = {oYKk(Q6kx.name): Q6kx for Q6kx in mcoZ} JLgg = mZn7(JfyU) ozsv = PgW1(mcoZ, JLgg, QTy2) QoBV = {} l_bg = {} NYDs = {} ZSUf = set() def V_rM(A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BieD(r8JX, r9A9=32):\n BXCq = ZylS.GraphDef()\n for OAgx in r8JX.node:\n exwG = BXCq.node.add()\n exwG.MergeFrom(OAgx)\n if exwG.op == 'Const':\n vhpA = exwG.attr['value'].tensor\n zNig = len(vhpA.tensor_content)\n if zNig > r9A9:\n vhp...
[ "0.62737054", "0.6230778", "0.6230778", "0.6217791", "0.6217791", "0.6217791", "0.621713", "0.61599135", "0.6091121", "0.60783285", "0.60037756", "0.58748466", "0.57489276", "0.5709004", "0.5700433", "0.5635589", "0.55787975", "0.5540354", "0.5519201", "0.5477431", "0.5468391...
0.6542103
0
Changes an array of moby characters to an array of IPA characters
def o8Oe(yb8f, GIN8): return [bpD1(DtE5, GIN8) for DtE5 in yb8f]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mv3J(vWVh, Bc7X=True, xByt='all'):\n rmc3 = {'a': 'ə', 'ey': 'eɪ', 'aa': 'ɑː', 'ae': 'æ', 'ah': 'ʌ', 'ao': 'ɔ', 'aw': 'aʊ', 'ay': 'aɪ', 'ch': 'ʧ', 'dh': 'ð', 'eh': 'e', 'er': 'ɝː', 'hh': 'h', 'ih': 'ɪ', 'jh': 'ʤ', 'ng': 'ŋ', 'ow': 'oʊ', 'oy': 'ɔɪ', 'sh': 'ʃ', 'th': 'θ', 'uh': 'ʊ', 'uw': 'uː', 'zh': 'ʒ', 'iy...
[ "0.61491543", "0.56576467", "0.56327295", "0.5602373", "0.559086", "0.55609274", "0.5558665", "0.55191576", "0.5516522", "0.54944503", "0.54746854", "0.54657674", "0.5455006", "0.54397684", "0.5430054", "0.5428462", "0.5406896", "0.5385338", "0.53579754", "0.53402716", "0.533...
0.7163562
0
Constructor to create VTEPCountEntrySchema object
def FIMM(YKHO, wzB5=None): super(oylO, YKHO).__init__() YKHO.vtepEntryCount = 'VTEP count' YKHO.vtepEntryList = [Ivzi()]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, wzB5=None):\n super(IBqU, YKHO).__init__()\n YKHO.table = oylO()\n if wzB5 is not None:\n YKHO.get_object_from_py_dict(wzB5)", "def FIMM(YKHO, wzB5=None):\n super(Ivzi, YKHO).__init__()\n YKHO.index = 'index'\n YKHO.vtepEntry = [Mwtt()]", "def lxNm(UzSX, tyNF):\n JBZA...
[ "0.71340466", "0.65869105", "0.65329874", "0.62617564", "0.6116781", "0.5670976", "0.5630271", "0.54940754", "0.5430485", "0.53825873", "0.53650934", "0.5354582", "0.5327036", "0.53270274", "0.52889276", "0.52685905", "0.5258606", "0.52388126", "0.5219881", "0.52007085", "0.5...
0.8561927
0
You can only update this object if it is you or you are an admin, Only admins can modify auth_groups
def QdZT(YKHO, YEnM, lhy8, CBIr, QePW): if not CBIr: raise BlEM() if not CBIr.has_auth_group('admin'): if CBIr.id == YEnM.id: for YWBp in lhy8: zZu2 = lhy8[YWBp] if YWBp and YWBp in ('name', 'password', 'email'): setattr(YEnM, YWBp,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAOt(YKHO):\n YKHO.is_admin = YKHO.groups.name == 'Admin'", "def UklB(YKHO):\n YKHO.login('admin', YKHO.admin_password)\n QdR8 = YKHO.ref('res.groups', 'base', 'group_no_one')\n XnWo = YKHO.model('res.users')\n XnWo.write([YKHO.uid], {'groups_id': [(4, QdR8)]})", "def PhtU(YKHO):\n YKHO.i...
[ "0.7918956", "0.6890216", "0.6840414", "0.6793037", "0.6714273", "0.6710705", "0.65745336", "0.6564874", "0.65511256", "0.65037733", "0.65030587", "0.6461359", "0.6458173", "0.64155614", "0.64106095", "0.63779646", "0.63665867", "0.63544554", "0.63446707", "0.6342642", "0.634...
0.0
-1
Gets the answer object corresponding to the parent question of the given answer
def ialo(cvsF, g4pi, cuiw) -> J1tJ: cuiw = Dbxd(g4pi, cuiw) ANfV = J1tJ() ANfV = cuiw.get(J1tJ, cvsF) kUlH = cuiw.query(J1tJ).filter(J1tJ.review_question_id == ANfV.review_question.parent_question_id, J1tJ.review_id == ANfV.review_id).one() return kUlH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO):\n G1Hx = YKHO.parent_key()\n return G1Hx() if G1Hx else None", "def ByGo(YKHO):\n return YKHO.parent", "def _AKB(YKHO):\n return YKHO.parents[0]", "def _AKB(YKHO):\n return YKHO.identifier.parent().object()", "def yV_I(YKHO):\n U1Z_ = YKHO.questions_unanswered.all()\n i...
[ "0.6527867", "0.646537", "0.63957393", "0.63876796", "0.6355096", "0.63396764", "0.6318918", "0.6284007", "0.6279881", "0.6247312", "0.62444735", "0.62444735", "0.62444735", "0.6239033", "0.6239033", "0.62290764", "0.6213112", "0.6199231", "0.61982465", "0.61982465", "0.61852...
0.77625084
0
Verify that admin can't delete himself.
def zINx(YKHO, YZ5b): YZ5b.delete_users([njLA], check=False) YZ5b.close_notification('error') assert YZ5b.page_users().table_users.row(name=njLA).is_present
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PBkL(YKHO):\n geh0 = YKHO.connect_admin_user_fixture()\n geh0 = YKHO.testapp.get('/tools/user/1/delete', status=302)\n vKnz = geh0.follow()\n YKHO.assertEqual(vKnz.status, '200 OK')\n YKHO.assertEqual(vKnz.request.path, '/')\n YKHO.assertTrue('Insufficient permissions!' in vKnz.body)", "def...
[ "0.7927937", "0.7525858", "0.7492065", "0.7488039", "0.7394911", "0.73586833", "0.7270191", "0.7234484", "0.72090715", "0.71880794", "0.7098875", "0.707574", "0.707574", "0.707574", "0.7017251", "0.7010204", "0.7009569", "0.6993224", "0.69835794", "0.6962694", "0.6960194", ...
0.72012675
9
Verify that admin can sort users.
def _tRz(YKHO, YZ5b): YZ5b.sort_users() YZ5b.page_users().refresh() YZ5b.sort_users(reverse=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ob77(YKHO):\n dp9S, _EYN = C1yR(is_admin=True)\n YKHO.client.force_authenticate(dp9S)\n bD7m = gxEw('accounts:user-list')\n geh0 = YKHO.client.get(bD7m, format='json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(len(geh0.data), OJiS.User.objects.count())", "def...
[ "0.6957512", "0.67810726", "0.6584096", "0.65337723", "0.6482601", "0.6468403", "0.64111334", "0.6366597", "0.63598216", "0.6338344", "0.6299235", "0.62849855", "0.62663966", "0.6248082", "0.6231498", "0.6231498", "0.6231498", "0.6174755", "0.6131841", "0.6114583", "0.6107454...
0.6497128
4
Verify that admin can enable and disable user.
def Znrg(YKHO, CBIr, YZ5b): YZ5b.toggle_user(CBIr.name, enable=False) YZ5b.toggle_user(CBIr.name, enable=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wZrT(YKHO, j5P3, YZ5b):\n YZ5b.toggle_user(njLA, enable=False, check=False)\n j5P3.page_users.refresh()\n j5P3.page_users.table_users.row(name=njLA).cell('enabled').value == 'Yes'", "def l4un(CBIr):\n if not CBIr.is_admin:\n eTsH(403)", "def l4un() -> bool:\n return gk2W.windll.shell3...
[ "0.7366533", "0.7331642", "0.72349286", "0.7201821", "0.7201821", "0.7201821", "0.71391153", "0.7132702", "0.711428", "0.7058026", "0.699002", "0.69547373", "0.69467944", "0.6847775", "0.6820735", "0.6807228", "0.6807228", "0.6807228", "0.67973435", "0.6796898", "0.6786947", ...
0.64861035
62
Verify that admin can update user.
def lDhF(YKHO, CBIr, YZ5b): pqa9 = CBIr.name + '(updated)' with CBIr.put(name=pqa9): YZ5b.update_user(CBIr.name, pqa9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xkzX(YKHO):\n hkxX = [(u'username', vk2a.UPDATE_USER)]\n dnVu = f8D4(YKHO.user, hkxX)\n YKHO.assertEqual([], dnVu)", "def KxgN(rJDA):\n CBIr = DW23.get_user_by_api_key(rJDA)\n if not CBIr:\n return False\n if not CBIr.is_admin:\n return False\n DW23.update_timestamp(rJDA, I...
[ "0.7495105", "0.72900146", "0.7162896", "0.71370375", "0.71366704", "0.70636284", "0.70427126", "0.70427126", "0.70427126", "0.7027411", "0.69779956", "0.69419336", "0.6857393", "0.6857393", "0.6857393", "0.6848693", "0.68177235", "0.6799973", "0.67993456", "0.6754777", "0.67...
0.0
-1
r""" Manipulator joint friction (Robot superclass) ``robot.friction(qd)`` is a vector of joint friction forces/torques for the robot moving with joint velocities ``qd``.
def C8gw(YKHO: RobotProto, xuM4: NDArray) -> eWuY: xuM4 = oyIN.array(ICSi(xuM4, YKHO.n)) jmzt = oyIN.zeros(YKHO.n) for YRbF in range(YKHO.n): jmzt[YRbF] = YKHO.links[YRbF].friction(xuM4[YRbF]) return jmzt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajqO(YKHO, tkOH):\n YKHO.jointFrictionCoefficient = tkOH", "def Ktcp(YKHO):\n C8gw = -YKHO.angularVelocity * YKHO.jointFrictionCoefficient\n YKHO.applyTorque(C8gw)", "def _e2i(YKHO: RobotProto, vexM, xuM4=None):\n ZylS = []\n for r845, QZnA in enumerate(YKHO.links):\n sbx9 = oyIN.zero...
[ "0.7308093", "0.71762586", "0.7022385", "0.66727966", "0.6437247", "0.641674", "0.64163035", "0.6366417", "0.636212", "0.6319523", "0.62705976", "0.6255871", "0.6241861", "0.6203335", "0.61659527", "0.61601585", "0.61436385", "0.6078549", "0.6010105", "0.59941405", "0.5993067...
0.7547544
0
Remove manipulator joint friction ``nofriction()`` copies the robot and returns a robot with the same link parameters except the Coulomb and/or viscous friction parameter are set to zero.
def ZKUM(YKHO: RobotProto, dfQ9: bool=True, XTkZ: bool=False): if isinstance(YKHO, RaWI.DHRobot): YKHO.delete_rne() UET8 = YKHO.copy() UET8.name = 'NF/' + YKHO.name UET8._links = [QZnA.nofriction(dfQ9, XTkZ) for QZnA in YKHO.links] return UET8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H9V6(YKHO):\n return GYhQ.b2Contact_ResetFriction(YKHO)", "def ajqO(YKHO, tkOH):\n YKHO.jointFrictionCoefficient = tkOH", "def Ktcp(YKHO):\n C8gw = -YKHO.angularVelocity * YKHO.jointFrictionCoefficient\n YKHO.applyTorque(C8gw)", "def yRNt(YKHO) -> None:\n YKHO.bc.setJointMotorControl2(YKHO...
[ "0.61546105", "0.5892749", "0.5643732", "0.5564444", "0.55529314", "0.5505698", "0.54857796", "0.54756206", "0.54377687", "0.54203284", "0.54053986", "0.5397834", "0.53509086", "0.532919", "0.52949363", "0.528213", "0.5278418", "0.5259656", "0.52521497", "0.52502817", "0.5245...
0.65426487
0
Transfer function of joint actuator ``tf = jointdynamics(qd, q)`` calculates a vector of n continuoustime transfer functions that represent the transfer function 1/(Js+B) for each joint based on the dynamic parameters of the robot and the configuration q (n). n is the number of robot joints. The result is a list of tup...
def _e2i(YKHO: RobotProto, vexM, xuM4=None): ZylS = [] for r845, QZnA in enumerate(YKHO.links): sbx9 = oyIN.zeros(YKHO.n) fa8C = oyIN.zeros(YKHO.n) fa8C[r845] = 1 E3D9 = YKHO.rne(vexM, sbx9, fa8C, gravity=[0, 0, 0]) Oa10 = QZnA.Jm + E3D9[r845] / abs(QZnA.G) ** 2 t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C8gw(YKHO: RobotProto, xuM4: NDArray) -> eWuY:\n xuM4 = oyIN.array(ICSi(xuM4, YKHO.n))\n jmzt = oyIN.zeros(YKHO.n)\n for YRbF in range(YKHO.n):\n jmzt[YRbF] = YKHO.links[YRbF].friction(xuM4[YRbF])\n return jmzt", "def Qbjh(vexM):\n vpS9 = -vexM[1]\n fcqx = vpS9 + vexM[2]\n DuOS = ...
[ "0.6485197", "0.6342468", "0.59588", "0.5850281", "0.58029336", "0.5646391", "0.5592121", "0.55521", "0.5496546", "0.5454727", "0.5446699", "0.54403484", "0.5390195", "0.53883755", "0.5385227", "0.53421766", "0.53249913", "0.52091753", "0.51939046", "0.5158776", "0.5152759", ...
0.8064844
0
Manipulator inertia matrix ``inertia(q)`` is the symmetric joint inertia matrix (n,n) which relates joint torque to joint acceleration for the robot at joint configuration q. Trajectory operation If ``q`` is a matrix (m,n), each row is interpretted as a joint state vector, and the result is a 3dmatrix (nxnxk) where eac...
def SQgp(YKHO: RobotProto, vexM: NDArray) -> eWuY: vexM = m_YS(vexM, (None, YKHO.n)) gQBW = oyIN.zeros((vexM.shape[0], YKHO.n, YKHO.n)) for G1Hx, wLlp in enumerate(vexM): gQBW[G1Hx, :, :] = YKHO.rne((oyIN.c_[wLlp] @ oyIN.ones((1, YKHO.n))).T, oyIN.zeros((YKHO.n, YKHO.n)), oyIN.eye(YKHO.n), gravity=[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jl31(YKHO: RobotProto, vexM=None, mI3e=False, TcPZ='rpy/xyz', OUwQ=None):\n vexM = m_YS(vexM, (None, YKHO.n))\n if vexM.shape[1] != 6:\n mI3e = True\n if vexM.shape[0] == 1:\n if OUwQ is None:\n nuNJ = YKHO.jacob0_analytical(vexM[0, :], TcPZ)\n if mI3e:\n ...
[ "0.72533333", "0.6960083", "0.6546789", "0.6508439", "0.6331869", "0.6308923", "0.5999159", "0.58685696", "0.58541083", "0.5833548", "0.58334756", "0.5601928", "0.55891657", "0.5514599", "0.54815143", "0.5480783", "0.5417159", "0.5417159", "0.5322285", "0.53036267", "0.527871...
0.7220398
1
r""" Operational space inertia matrix ``robot.inertia_x(q)`` is the operational space (Cartesian) inertia matrix which relates Cartesian force/torque to Cartesian acceleration at the joint configuration q.
def Jl31(YKHO: RobotProto, vexM=None, mI3e=False, TcPZ='rpy/xyz', OUwQ=None): vexM = m_YS(vexM, (None, YKHO.n)) if vexM.shape[1] != 6: mI3e = True if vexM.shape[0] == 1: if OUwQ is None: nuNJ = YKHO.jacob0_analytical(vexM[0, :], TcPZ) if mI3e: OUwQ = o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQgp(YKHO: RobotProto, vexM: NDArray) -> eWuY:\n vexM = m_YS(vexM, (None, YKHO.n))\n gQBW = oyIN.zeros((vexM.shape[0], YKHO.n, YKHO.n))\n for G1Hx, wLlp in enumerate(vexM):\n gQBW[G1Hx, :, :] = YKHO.rne((oyIN.c_[wLlp] @ oyIN.ones((1, YKHO.n))).T, oyIN.zeros((YKHO.n, YKHO.n)), oyIN.eye(YKHO.n), ...
[ "0.7166751", "0.6679731", "0.6660733", "0.6474989", "0.6275839", "0.62568074", "0.5948556", "0.5806741", "0.5785914", "0.5760889", "0.5699912", "0.5633503", "0.56239676", "0.5620053", "0.5619897", "0.5616025", "0.5540048", "0.5500292", "0.54748166", "0.547147", "0.5469751", ...
0.7191118
0
Returns a normalized 2D gauss kernel array for convolutions
def hvqX(zNig, DJmC=None): zNig = int(zNig) if not DJmC: DJmC = zNig else: DJmC = int(DJmC) WKvO, LVAh = Zxt2.mgrid[-zNig:zNig + 1, -DJmC:DJmC + 1] Oa1e = Zxt2.exp(-(WKvO ** 2 / float(zNig * 8) + LVAh ** 2 / float(DJmC * 8))) return Oa1e / Oa1e.max()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = nxWE.pad(VXjJ, (YSA3 // 2, RZju // 2, YSA3 // 2, RZju // 2), mode='replicate')\n return nxWE.conv2d(VXjJ, WZcn, groups=YDR7)", "def MLdf(VXjJ, WZcn):\n YDR7, bGrB, YSA3, RZju = WZcn.shape\n VXjJ = vuvg.pad(VXjJ, (YSA3 // 2, RZju ...
[ "0.75952584", "0.75738496", "0.7419451", "0.7212401", "0.69831914", "0.69278795", "0.68270344", "0.6789905", "0.66156626", "0.6600678", "0.65978444", "0.65091914", "0.6453373", "0.64146376", "0.64097255", "0.63410085", "0.6334349", "0.6320613", "0.6318229", "0.63026756", "0.6...
0.0
-1
Add a single read as a new cluster.
def H2v5(YKHO, Ueki): UHFx = next(YKHO._count) YKHO.readClusters[UHFx].add(Ueki) return UHFx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v5(YKHO, Ueki):\n YKHO.additionalReads.append(Ueki)\n YKHO._length += 1", "def uv4u(YKHO, Ueki):\n a1PO = sQC5.Time.now()\n i73w = (a1PO - YKHO.last_read_update).to_sec()\n ovZ3 = float(Ueki) / i73w\n YKHO.__node_write.append(ovZ3)\n YKHO.last_read_update = a1PO", "def H2v5(YKHO, Uek...
[ "0.6619623", "0.64307755", "0.61934847", "0.6028183", "0.60158855", "0.5832952", "0.57789814", "0.5760924", "0.5727701", "0.57097375", "0.57052636", "0.5689528", "0.5678894", "0.5658733", "0.5595023", "0.5569506", "0.55258334", "0.5524447", "0.55239815", "0.55222154", "0.5510...
0.79887915
0
Clears the terminal screen.
def Y7Bk(): Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yPVe():\n Hy7s.system('clear')", "def yPVe():\n Hy7s.system('cls')", "def yPVe() -> None:\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')", "def yPVe():\n Hy7s.system('clear')", "def yPVe():\n Hy7s.system('cls' if Hy7s.name == 'nt' else 'clear')\n return", "def Y6_N():\n i...
[ "0.90663636", "0.89818215", "0.8969729", "0.8952778", "0.8912371", "0.8901177", "0.88950443", "0.88777393", "0.88532865", "0.88532865", "0.88532865", "0.88532865", "0.88435864", "0.88315606", "0.8829398", "0.8819065", "0.88186914", "0.8783835", "0.87834346", "0.876902", "0.87...
0.78592736
73
Return the User object for the current request, or None
def TKWP(YKHO): from zine.models import User CBIr = None uJjO = YKHO.session.get('uid') if uJjO: CBIr = User.query.options(NCls.eagerload('groups'), NCls.eagerload('groups', '_privileges')).get(uJjO) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def okMv(YKHO) -> mv1M:\n if YKHO.request.user.is_anonymous:\n return egNl().get_anonymous()\n else:\n return YKHO.request.user", "def EdKO(YKHO):\n if YKHO.request and hasattr(YKHO.request, 'user'):\n CBIr = YKHO.request.user\n return CBIr", "def lCqJ(YKHO, QePW):\n CBIr = ...
[ "0.861302", "0.8611682", "0.85127664", "0.83273923", "0.83187646", "0.8313799", "0.8302282", "0.82558715", "0.8255162", "0.82053304", "0.81534547", "0.81534547", "0.8122413", "0.8109463", "0.8084863", "0.8060768", "0.8060768", "0.8060768", "0.8047356", "0.80255014", "0.802550...
0.0
-1
Return the author email address of the theme.
def lN5A(YKHO): return YKHO.author_info[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lN5A(YKHO):\n return M4XV().owner.email", "def Ffxj(YKHO):\n return o7DN.wrap(B8xt(YKHO.plugin))", "def nk9S(YKHO):\n return YKHO._authorEmail", "def ZrpD(YKHO, YEnM):\n return YEnM.author.email", "def leEG(YKHO):\n from zine.utils.mail import split_email\n return split_email(YKHO.met...
[ "0.8544906", "0.8305922", "0.80358547", "0.78010416", "0.77558523", "0.7718313", "0.7657516", "0.7561656", "0.75486255", "0.73565525", "0.7203166", "0.7180654", "0.7167581", "0.71236545", "0.7118695", "0.7078955", "0.70504856", "0.7018133", "0.7012668", "0.700267", "0.6965807...
0.83950144
1
Handle a not found exception. This also dispatches to plugins that listen for for absolute urls. See `add_absolute_url` for details.
def pRh2(YKHO, QePW, AJ5d): for DCgT in YKHO._absolute_url_handlers: try: im04 = DCgT(QePW) if im04 is not None: return im04 except oEgM: pass geh0 = pb0k('404.html') geh0.status_code = 404 return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E06B(tTpl):\n return geh0(QePW, status=404)", "def BQf5(P1dF):\n return ('This object does not exist', 404)", "def mrZZ(tTpl):\n return ('Sorry, Nothing at this URL.', 404)", "def zFDo(QePW, AJ5d):\n return _1tc(QePW, '404.html', status=404)", "def o3cf(tTpl):\n print('attempt to access ...
[ "0.7209769", "0.7061531", "0.6982606", "0.6963853", "0.6932392", "0.69183075", "0.69111687", "0.69061387", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "0.68976754", "...
0.76475674
0
Called if a server error happens. Logs the error and returns a response with an error message.
def eVBK(YKHO, QePW, _n4O=None, ICJ3=False): if not ICJ3: RKD7.exception('Exception happened at "%s"' % QePW.path, 'core', _n4O) geh0 = pb0k('500.html') geh0.status_code = 500 return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fWKK(tTpl):\n RKD7.error(tTpl)\n geh0 = {'message': 'Internal server error'}\n return (pz3A(geh0), 500)", "def fWKK(P1dF=None):\n return (pz3A({'message': 'Verify your request it cause a server error'}), 500)", "def r1yd(P1dF):\n geh0 = pz3A({'success': False, 'error_code': 'internal_server_...
[ "0.82286274", "0.81618893", "0.80133885", "0.7987425", "0.79839", "0.7978352", "0.7903234", "0.7880664", "0.78800464", "0.78800464", "0.78778553", "0.786064", "0.786064", "0.786064", "0.78468305", "0.78425115", "0.7842215", "0.77764", "0.7774514", "0.77618605", "0.7736654", ...
0.7853981
14
Make the application object a WSGI application.
def nrOS(YKHO, PNq_, MP2k): return Bo3q(YKHO.dispatch_wsgi(PNq_, MP2k), [YfQD.cleanup, QDYj])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P4t4(*qIxc, **YSA3):\n Kgis()\n return zLeE(*qIxc, **YSA3)", "def mJn7() -> L2w0:\n P4t4 = LUif()\n return P4t4", "def Byee():\n return dSPv.WSGIApplication([('.*', sTMn)], debug=True)", "def oQiI():\n return dSPv.WSGIApplication([('^/logcollector/', rnZt)], debug=True)", "def b8V_():...
[ "0.8032603", "0.80152106", "0.7721488", "0.7652745", "0.7584302", "0.74707335", "0.7469374", "0.74660236", "0.736479", "0.7294451", "0.7235524", "0.7222111", "0.721053", "0.7209701", "0.7205872", "0.7205029", "0.72014385", "0.7200503", "0.7177885", "0.71758777", "0.71750724",...
0.0
-1