query
stringlengths
9
9.05k
document
stringlengths
10
222k
metadata
dict
negatives
listlengths
30
30
negative_scores
listlengths
30
30
document_score
stringlengths
4
10
document_rank
stringclasses
2 values
Checks if a value is between two boundary values
def between(check:float, boundary_1:float, boundary_2:float)->bool: if boundary_1 > boundary_2: boundary_1, boundary_2 = boundary_2, boundary_1 return boundary_1 <= check and check <= boundary_2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_if_between(a, b, test_val):\n if a < b:\n return a <= test_val <= b\n else:\n return b <= test_val <= a", "def within_value(v1, v2):\n percentage = 0.1\n error_allowed = percentage * v1\n high = v1 + error_allowed\n low = v1 - error_allowed\n\n return low <= v2 <= high...
[ "0.753235", "0.74662626", "0.74073505", "0.74048406", "0.73218316", "0.72808284", "0.72025293", "0.7180609", "0.717863", "0.7134316", "0.71139634", "0.7110848", "0.7095863", "0.70765793", "0.7074509", "0.7058017", "0.70498204", "0.702181", "0.7013493", "0.7001683", "0.6988135...
0.82189065
0
Checks if a point is within the rectangle with edge as one of the diagonals.
def near_segment(point:tuple, edge:tuple)->bool: return between(point[0], edge[0][0], edge[1][0]) and between(point[1], edge[0][1], edge[1][1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inside(point, rectangle):\n\n ll = rectangle.getP1() # assume p1 is ll (lower left)\n ur = rectangle.getP2() # assume p2 is ur (upper right)\n\n return ll.getX() < point.getX() < ur.getX() and ll.getY() < point.getY() < ur.getY()", "def in_square(self, point):\n size = self.size\n centre =...
[ "0.70133144", "0.69797367", "0.6935007", "0.69121915", "0.687569", "0.687569", "0.6854568", "0.6748199", "0.67210734", "0.6670797", "0.6650344", "0.66328245", "0.6617512", "0.6605541", "0.6605422", "0.65742147", "0.6531653", "0.6525218", "0.65238535", "0.6522948", "0.6522948"...
0.70146877
0
Returns true if the vector is a zero vector, otherwise false.
def is_zero_vector(vector:tuple)->bool: return vector[0] == 0 and vector[1] == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isVecZero(vec):\n trues = [isZero(e) for e in vec]\n return all(trues)", "def is_zero(self):\n for t in self:\n if t != TRIT_ZERO:\n return False\n return True", "def isZero(self):\n return self.count == 0", "def is_zero(self):\n return self._ex...
[ "0.8560863", "0.78165585", "0.7557371", "0.753894", "0.74890184", "0.7482657", "0.7468545", "0.74608725", "0.745997", "0.7423766", "0.74129486", "0.741105", "0.7316494", "0.7311554", "0.7263635", "0.70921254", "0.7089508", "0.707456", "0.7040816", "0.7008552", "0.69950205", ...
0.8220028
1
Creates a convex line segment between two points. In the context of polygon creation, desc_y is set to True if we are building the top left or top right corner. Desc_X is set to True if we are building the top right or bottom right corner. This impacts the order we accept points and how we interpret the direction of po...
def convex_line_segment(point_list:list, desc_y:bool=False, desc_x:bool=False)->list: if len(point_list) < 3: return point_list line = [] x_extrema = None # Since the list is sorted by x second, the last point is actually the # first point of the last block of y values in the list (if more t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addRevLineSeg(self, x1, y1, x2, y2):\n # tip triangles\n if np.allclose(x1, 0.0):\n a = [x1, y1, 0.0]\n for (sa1, ca1), (sa2, ca2) in self._mesh.sincos:\n r = x2\n b = [r * sa2, y2, r * ca2]\n c = [r * sa1, y2, r * ca1]\n ...
[ "0.61220574", "0.5985634", "0.58928055", "0.586802", "0.5844202", "0.5812266", "0.5790249", "0.57509595", "0.5726299", "0.5695145", "0.5691318", "0.56896853", "0.5685234", "0.5680852", "0.56595385", "0.563459", "0.5601871", "0.5600169", "0.5596646", "0.55840945", "0.5568787",...
0.74640554
0
Determines if a line segment described by d_y, d_x, and b is right of a point.
def intersects_right(point:tuple, line:tuple, d_y:float, d_x:float, b:float, include_top:bool=False, inclusive:bool=False)->bool: min_y, max_y = line[0][1], line[1][1] if min_y > max_y: min_y, max_y = max_y, min_y if not between(point[1], min_y, max_y): # The point is above or below the line...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def point_on_line(point:tuple, line:tuple, d_y:float, d_x:float, b:float)->bool:\n if not near_segment(point, line):\n # Fast fail to handle cases where the point isn't in the bounding rectangle of the line segment.\n return False\n if b == None and point[0] == line[0][0]:\n return True\...
[ "0.779486", "0.6765233", "0.6753991", "0.6690972", "0.66500854", "0.65380234", "0.65158004", "0.64917606", "0.6466559", "0.64534605", "0.63823503", "0.63814336", "0.6377494", "0.6278903", "0.62738436", "0.6271943", "0.62362576", "0.6226385", "0.6216552", "0.62099683", "0.6205...
0.7685959
1
Determines the crossing number of a horizontal positive ray from point with a polygon defined in edges.
def crossing_number(point:tuple, edges:list, include_edges:bool=True)->int: crossing_number = 0 for edge in edges: d_y, d_x, b = line_equation(edge) if include_edges and point_on_line(point, edge, d_y, d_x, b): return 1 if is_horizontal(edge): continue if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def winding_number(x, y, primitive):\n\n wn = 0\n\n edges = zip(primitive[\"vertices\"][-1:] + primitive[\"vertices\"][:-1],\n primitive[\"vertices\"])\n for edge in edges:\n # check if cuts y parallel line at (x, y) &&\n if (edge[0][0] > x) != (edge[1][0] > x):\n #...
[ "0.6319946", "0.628875", "0.61075354", "0.6013507", "0.5910155", "0.56875455", "0.5654235", "0.56247514", "0.5608675", "0.5508915", "0.54895514", "0.54782134", "0.5462136", "0.54489154", "0.54295504", "0.54053026", "0.5375274", "0.5368317", "0.5356745", "0.5355982", "0.534888...
0.76824135
0
Select the longest edge from hull that doesn't start with a point in ignore_left_points, with minimum length. Returns
def select_longest_edge(hull:list, ignore_left_points:list, min_sqr_length:int=0)->tuple: max_sqr_length = None selected = None for k in range(0, len(hull) - 1): if hull[k] in ignore_left_points: continue edge_sqr_length = point_sqr_distance(hull[k], hull[k+1]) if edge_sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sort_hull(hull):\n max_unproc_edge = hull[np.lexsort((-hull.length, hull.is_processed))][0]\n idx = np.where(hull == max_unproc_edge)[0][0]\n\n # shift convex hull to have the longest edge at the beginning\n hull = np.roll(hull, -idx, axis=0)\n\n return hull, max_unproc_edge.length", "def conc...
[ "0.5784756", "0.5722361", "0.57186353", "0.571596", "0.561899", "0.5575985", "0.5559472", "0.5450202", "0.5366452", "0.5360122", "0.53597206", "0.53502905", "0.53324366", "0.5321323", "0.5316823", "0.5307588", "0.5303187", "0.5294098", "0.52727485", "0.5253577", "0.5250945", ...
0.8255255
0
Determines if the new edge would intersect the hull at any point.
def segments_intersects_hull(new_edges:list, hull:list, current_edge:tuple)->bool: new_edge_extent = extent(new_edges[0][0], new_edges[0][1], new_edges[1][1]) for k in range(0, len(hull) - 1): if new_edges[0][0] == hull[k] or new_edges[0][0] == hull[k+1]: continue elif new_edges[0][1...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_new(self):\n c_up = self.upper_binary_tree().single_edge_cut_shapes()\n c_down = self.lower_binary_tree().single_edge_cut_shapes()\n return not any(x in c_up for x in c_down)", "def check_inside_hull(hull, instance):\n for face in hull:\n if not check_inside(face=face, insta...
[ "0.6484378", "0.63872766", "0.62879694", "0.6258108", "0.6223334", "0.62019885", "0.6185283", "0.6149708", "0.6138869", "0.61183757", "0.6070646", "0.60460234", "0.6039633", "0.6038786", "0.6038608", "0.6034174", "0.5997268", "0.59944534", "0.59907645", "0.5983716", "0.597896...
0.7658259
0
Creates a concave hull.
def concave_hull(hull:list, points:list, max_iterations:int=None, min_length_fraction:float=0, min_angle:float=90)->list: tweet.info("Creating concave hull; minimum side length {}% of average, minimum_angle {}".format(min_length_fraction * 100, min_angle)) test_points = set(points) ignore_points = [] av...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def convex_hull(self):\n return self._geomgen(capi.geom_convex_hull)", "def convex_hull(points):\n\n # Sort the points lexicographically (tuples are compared lexicographically).\n # Remove duplicates to detect the case we have just one unique point.\n points = sorted(set(points))\n\n # Boring ...
[ "0.7206272", "0.71888036", "0.71256506", "0.7085061", "0.7075677", "0.7031924", "0.69883245", "0.6819022", "0.68025535", "0.67614084", "0.6739058", "0.6691165", "0.667362", "0.6638784", "0.65221596", "0.6512171", "0.646188", "0.64251655", "0.6401495", "0.6394388", "0.6354288"...
0.7279524
0
Provides the next sample to take. After this method is called, the self.inputInfo should be ready to be sent to the model @ In, model, model instance, an instance of a model @ In, myInput, list, a list of the original needed inputs for the model (e.g. list of files, etc.) @ Out, None
def localGenerateInput(self, model, myInput): if self.counter < 2: MCMC.localGenerateInput(self, model, myInput) else: self._localReady = False for key, value in self._updateValues.items(): # update value based on proposal distribution newVal = value + self._proposal[key].rvs()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def input(self):\n try:\n return self.inputs[-1]\n except IndexError:\n pass\n raise ValueError(\"The sample method has not been called\")", "def test_prepare_sample_to_forward(self):\n sample = [\n {\"src\": \"ola mundo\", \"ref\": \"hi world\", \"mt\...
[ "0.70868576", "0.6604615", "0.65657943", "0.6411239", "0.6372315", "0.63269866", "0.62161213", "0.61675435", "0.6153169", "0.6153169", "0.61334926", "0.6080559", "0.607126", "0.5985408", "0.59807396", "0.5938614", "0.5915001", "0.5886959", "0.5884955", "0.58460677", "0.582307...
0.6721474
1
General function (available to all samplers) that finalize the sampling calculation just ended. In this case, The function is aimed to check if all the batch calculations have been performed @ In, jobObject, instance, an instance of a JobHandler @ In, model, model instance, it is the instance of a RAVEN model @ In, myI...
def localFinalizeActualSampling(self, jobObject, model, myInput): MCMC.localFinalizeActualSampling(self, jobObject, model, myInput)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def can_finalize_job_record(self):\n pass", "def has_full_batch(self) -> bool:", "def finalize(self):\n\t\tself.logger.info(\"Please wait while finalizing the operation.. Thank you\")\n\t\tself.save_checkpoint()\n\t\tself.summary_writer.export_scalars_to_json(\"{}all_scalars.json\".format(self.config.su...
[ "0.6187927", "0.5795619", "0.5728285", "0.56815076", "0.56358445", "0.5633501", "0.5633048", "0.5577172", "0.55352855", "0.55237323", "0.5502523", "0.5490598", "0.54837555", "0.54806143", "0.5472647", "0.5471663", "0.5465032", "0.5452882", "0.54441124", "0.54441124", "0.54441...
0.6751163
0
Used to feedback the collected runs within the sampler @ In, newRlz, dict, new generated realization @ In, currentRlz, dict, the current existing realization @ Out, netLogPosterior, float, the accepted probabilty
def _useRealization(self, newRlz, currentRlz): netLogPosterior = 0 # compute net log prior for var in self._updateValues: newVal = newRlz[var] currVal = currentRlz[var] if var in self.distDict: dist = self.distDict[var] netLogPrior = dist.logPdf(newVal) - dist.logPdf(currVa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def inference_spa(flow_lik,\n flow_post,\n prior,\n simulator,\n optimizer_lik,\n optimizer_post,\n decay_rate_post,\n x_o,\n x_o_batch_post,\n dim_post,\n ...
[ "0.6228127", "0.61634594", "0.6074014", "0.6050275", "0.6050275", "0.59674543", "0.5956656", "0.5953617", "0.58580154", "0.58394265", "0.5830465", "0.5820498", "0.57669336", "0.5730289", "0.5701165", "0.5655382", "0.56536853", "0.56534696", "0.56493", "0.5646722", "0.56436014...
0.73664874
0
Gets the applicable_job_statuses of this Lifecycle. Job status needs to be in this list in order for the action to be performed!
def applicable_job_statuses(self): return self._applicable_job_statuses
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def applicable_job_statuses(self, applicable_job_statuses):\n allowed_values = []\n if applicable_job_statuses not in allowed_values:\n raise ValueError(\n \"Invalid value for `applicable_job_statuses` ({0}), must be one of {1}\"\n .format(applicable_job_statu...
[ "0.6967596", "0.6617357", "0.6617357", "0.61123466", "0.5901221", "0.58656716", "0.5798119", "0.5798119", "0.5790288", "0.57691395", "0.57252294", "0.5707428", "0.5665692", "0.5640539", "0.5625412", "0.55947644", "0.55841506", "0.5555595", "0.5541644", "0.5536113", "0.552849"...
0.8614955
0
Sets the applicable_job_statuses of this Lifecycle. Job status needs to be in this list in order for the action to be performed!
def applicable_job_statuses(self, applicable_job_statuses): allowed_values = [] if applicable_job_statuses not in allowed_values: raise ValueError( "Invalid value for `applicable_job_statuses` ({0}), must be one of {1}" .format(applicable_job_statuses, allowed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def applicable_job_statuses(self):\n return self._applicable_job_statuses", "def __init__(self, applicable_job_statuses=None, action_time=None, action=None, type=None):\n self.swagger_types = {\n 'applicable_job_statuses': 'list[str]',\n 'action_time': 'datetime',\n ...
[ "0.6695411", "0.5844042", "0.5563415", "0.5545432", "0.5485883", "0.5475218", "0.5449763", "0.5404465", "0.5384887", "0.53246635", "0.53229064", "0.5294377", "0.52781755", "0.52380747", "0.5186252", "0.5116745", "0.50967646", "0.5069076", "0.50412786", "0.502424", "0.4990202"...
0.8249736
0
Gets the action_time of this Lifecycle. The time at which the job and files will be deleted, regardless of whether it has been retrieved or not. Maximal time is 1 day from job creation
def action_time(self): return self._action_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def time_consumed(self) -> int:\n if not self.actions:\n return 0\n else:\n return self.actions[-1].time_end", "def delete_time(self) -> str:\n return pulumi.get(self, \"delete_time\")", "def delete_time(self) -> str:\n return pulumi.get(self, \"delete_time\")"...
[ "0.6351681", "0.6334942", "0.6334942", "0.6254808", "0.62357366", "0.615849", "0.61072457", "0.6091936", "0.6077282", "0.60503584", "0.59982574", "0.5907601", "0.5900668", "0.58995885", "0.5868122", "0.5856616", "0.5840132", "0.57963824", "0.57763684", "0.57763684", "0.577636...
0.78159416
0
Sets the action_time of this Lifecycle. The time at which the job and files will be deleted, regardless of whether it has been retrieved or not. Maximal time is 1 day from job creation
def action_time(self, action_time): self._action_time = action_time
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def action_time(self):\n return self._action_time", "def on_action_time_changed(self, content):\n time = parse_iso_dt(content['time']).time()\n self.set_guarded(time=time)", "def action(self, action):\n allowed_values = [\"DELETE\", \"NONE\"]\n if action not in allowed_values...
[ "0.60692436", "0.6039037", "0.5710749", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55339384", "0.55103743", "0.5410098", "0.53928286", "0.53928286", "0.5351073", "0.5344618", "0.53365284", "...
0.7611136
0
Sets the action of this Lifecycle. The action to perform. Currently only delete is supported
def action(self, action): allowed_values = ["DELETE", "NONE"] if action not in allowed_values: raise ValueError( "Invalid value for `action` ({0}), must be one of {1}" .format(action, allowed_values) ) self._action = action
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_action(self, action):\n self._action = action\n return self", "def setAction(self, action):\n self.action = action\n return self", "def set_action(self, action):\n self.action = action", "def set_action(self, action):\n self.action = action", "def set_actio...
[ "0.798209", "0.7937381", "0.78521293", "0.78521293", "0.77787465", "0.7659929", "0.7434554", "0.7401559", "0.73724025", "0.7369807", "0.72310543", "0.72310543", "0.72310543", "0.72310543", "0.72310543", "0.72310543", "0.70674974", "0.699461", "0.6960725", "0.6901665", "0.6726...
0.7996904
0
Sets the type of this Lifecycle. Determine when to delete the job and associated files. RETRIEVAL means delete directly after retrieving the PDF file. When the file has not been retrieved before the action time, it will be deleted regardless. Time means, delete on specific time, regardless of whether it has been proces...
def type(self, type): allowed_values = ["RETRIEVAL", "TIME"] if type not in allowed_values: raise ValueError( "Invalid value for `type` ({0}), must be one of {1}" .format(type, allowed_values) ) self._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(__self__, *,\n duration: pulumi.Input[str],\n object_type: pulumi.Input[str]):\n pulumi.set(__self__, \"duration\", duration)\n pulumi.set(__self__, \"object_type\", 'AbsoluteDeleteOption')", "def ExpireType(self):\n if self.force_auto_sync:\n ...
[ "0.55426234", "0.54422", "0.54303664", "0.5243352", "0.5130753", "0.51242626", "0.49633163", "0.49580863", "0.4862699", "0.4837523", "0.48264766", "0.47609124", "0.47609124", "0.47589472", "0.47226307", "0.4716207", "0.4709835", "0.46772438", "0.46732327", "0.46732327", "0.46...
0.5637675
0
Basic test for findService parsing with a civic address.
def test_findservice_civic_address(self): xml = """ <findService xmlns="urn:ietf:params:xml:ns:lost1" serviceBoundary="reference"> <location id="ce152f4b-2ade-4e37-9741-b6649e2d87a6" profile="civic"> <civ:civicAddress xmlns:civ="urn:ietf:params:xml:ns:pidf:geopri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_client_address_retrieve(self):\n pass", "def test_ipam_services_read(self):\n pass", "def test_get_service_string(self):\n pass", "def test_get_virtual_service(self):\n pass", "def testParse(self):\n services = self._getServices()", "def test_ipam_services_list...
[ "0.64207476", "0.62982064", "0.62926865", "0.62176013", "0.6189355", "0.60833365", "0.606279", "0.5928941", "0.5896843", "0.58331347", "0.57547104", "0.5736013", "0.56428236", "0.56183106", "0.5606168", "0.55707866", "0.5561389", "0.5544311", "0.55386513", "0.5505321", "0.545...
0.7775548
0
Returns the dialogueIDth caption from vttFile
def getCaptionFromVTTcaptionFile(vttFile, dialogueID): import webvtt return webvtt.read(vttFile)[dialogueID].text
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def caption(self):\n return self._caption", "def get_caption(self):\n try:\n return self.canvas.getID()\n except (TypeError, AttributeError):\n return self.id", "def __load_dialogue_ids(self, filename):\n with open(filename, \"r\") as file:\n return ...
[ "0.59000456", "0.58283216", "0.5773122", "0.55387735", "0.54730004", "0.54553735", "0.53017414", "0.52924526", "0.52771646", "0.5201588", "0.5136322", "0.51156497", "0.51120484", "0.50966525", "0.5068463", "0.5060997", "0.50441873", "0.50228816", "0.49699327", "0.49609575", "...
0.8716171
0
returns True (if same emotion)
def compareEmotionSimilarity(audioFile, emotion, emoPredictor, verbose=False, profile=False): error = "" if (profile): start = time.time() # from speech_to_emotion.emotion_classifier_nn import livePredictions # emoPredictor = livePredictions(path='speech_to_emotion/Emotion_Voice_Detection_Model.h5', fil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def is_equivalence(self) -> bool:", "def is_duplicate(self, other):\n if self.att != other.att or self.pol != other.pol:\n return False\n similarity = F.cosine_similarity(self.emb.unsqueeze(0),\n other.emb.unsqueeze(0))\n return similarity >...
[ "0.66043097", "0.6126945", "0.5980369", "0.5870635", "0.5852156", "0.58448535", "0.5837227", "0.5769008", "0.5768744", "0.57412714", "0.5719944", "0.5682366", "0.5676539", "0.56701696", "0.56568533", "0.56337667", "0.5630597", "0.556876", "0.5558811", "0.55464154", "0.5519768...
0.62601924
1
Perform comparison $ python compareAudio.py audioFile(.webm), netflixWatchID(str), dialogueID(number), gameID(str)
def performThreeComparisons(netflixWatchID, dialogueID, audioFile, gameID, userTranscript, emoPredictor, verbose=False, profile=False, logErrors=True): logFile = "logFile.txt" errorsLst = [] resultDICT = {"gameID" : gameID, "dialogueID" : dialogueID, "error" : "", "success" : True} overallscore = 0.0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def compare(file1, file2):\n process = subprocess.Popen([PBWT_BIN, 'compare', file1, file2],\n stdout=subprocess.PIPE)\n process_results(str(process.communicate()[0]))", "def same_file(wavecar1, wavecar2, wavecar3):\n same = False\n if (filecmp.cmp(wavecar1, wavecar2, sh...
[ "0.5997795", "0.5918491", "0.5860667", "0.5591653", "0.5559069", "0.5415558", "0.537906", "0.53485507", "0.53323954", "0.5326343", "0.5321445", "0.52875805", "0.526904", "0.5242733", "0.5236806", "0.52278113", "0.5217617", "0.5208304", "0.51605356", "0.5155278", "0.51301885",...
0.6617059
0
Init constructor of HID.
def __init__(self, vendor_id: int = 0x2C97, hid_path: Optional[bytes] = None) -> None: if hid is None: raise ImportError("hidapi is not installed, try: " "'pip install ledgercomm[hid]'") self.device = hid.device() self.path: Optional[bytes] = hid_path ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __init__(self, device_handle):\n\n self.device_handle = device_handle", "def __init__(self):\n self._device_info = None", "def __init__(self, Interface=\"USB\", Number=DRIVER_NUM):\n self.bib = CDLL(\"delib64\") # this will NOT fail...\n self.interface = Interface\n self....
[ "0.6862138", "0.6743291", "0.67000437", "0.66972363", "0.6555643", "0.6550871", "0.65466005", "0.65423924", "0.6522224", "0.6498889", "0.64774984", "0.64688903", "0.64580566", "0.6452935", "0.6445795", "0.6438601", "0.6433724", "0.64092666", "0.6399368", "0.63911164", "0.6384...
0.7098126
0
Open connection to the HID device. Returns None
def open(self) -> None: if not self.__opened: if self.path is None: self.path = HID.enumerate_devices(self.vendor_id)[0] self.device.open_path(self.path) self.device.set_nonblocking(True) self.__opened = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def init():\n try:\n h = hid.device()\n h.open(USB_VID, USB_PID)\n h.set_nonblocking(1)\n except IOError as ex:\n print('ERROR: could not establish connection to device')\n print(ex)\n return None\n return h", "def performOpen(self, options={}):\n self._l...
[ "0.76332617", "0.6955843", "0.69416445", "0.68056446", "0.6553122", "0.65466124", "0.6523534", "0.6514852", "0.6506754", "0.64412344", "0.6438013", "0.6406292", "0.6384707", "0.63268006", "0.62957555", "0.6287522", "0.6280608", "0.6214638", "0.62089825", "0.6192919", "0.61830...
0.75960964
1
Receive data through HID device `self.device`. Blocking IO. Returns Tuple[int, bytes] A pair (sw, rdata) containing the status word and response data.
def recv(self) -> Tuple[int, bytes]: seq_idx: int = 0 self.device.set_nonblocking(False) data_chunk: bytes = bytes(self.device.read(64 + 1)) self.device.set_nonblocking(True) assert data_chunk[:2] == b"\x01\x01" assert data_chunk[2] == 5 assert data_chunk[3:5] ==...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def receive_data(self):\n chunks = []\n bytes_recd = 0\n while bytes_recd < 8:\n #I'm reading my data in byte chunks\n try:\n chunk = self.sockfd.recv(min(8 - bytes_recd, 4))\n chunks.append(chunk)\n bytes_recd = bytes_recd + l...
[ "0.65270954", "0.6320771", "0.62461853", "0.6179725", "0.616269", "0.60660446", "0.6049839", "0.59986186", "0.59340626", "0.59284836", "0.59060866", "0.5892542", "0.5891193", "0.5879894", "0.5854489", "0.58111537", "0.5801802", "0.579307", "0.57675236", "0.5746004", "0.572689...
0.67547876
0
Search through the provided list of devices to find the one with the matching usage_page and usage.
def find_device(devices, *, usage_page, usage): if hasattr(devices, "send_report"): devices = [devices] for device in devices: if ( device.usage_page == usage_page and device.usage == usage and hasattr(device, "send_report") ): return devic...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_devices (devicelist):\n vprint(\"\\nFind known devices:\")\n for device in devicelist:\n if find_device(device) is not None :\n vprint(\"\\tFound :\", device)\n else:\n vprint(\"\\tNOT found:\", device )\n vprint(\"..........\") \n return", "def ...
[ "0.6269344", "0.5997133", "0.59589404", "0.588711", "0.5793125", "0.57546246", "0.568376", "0.56786346", "0.55943453", "0.550942", "0.55043346", "0.54662585", "0.54382575", "0.5410512", "0.54044867", "0.5389828", "0.5379705", "0.5365242", "0.53301144", "0.5328609", "0.5327337...
0.7825975
0
function to convert contribs collection items to edges ones edge doc {_id, name_1, name_2, tags [{name, urls[]}]} =========================================================== if src in srcs then skip if name_1 and name_2 not found then insert new doc if tag.name not found then insert new tag if tag.url not found then in...
def contribs2edges(): client = mongo.MongoClient(config["MONGO_URI"]) db = client.links db.edges.remove() edges = dict() for contrib in db.contribs.find(): for item in contrib["data"]: id = u"{} {}".format(item["name_1"], item["name_2"]).replace(" ", "_") edge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def construct_edge_list(cong):\n usr_to_src = []\n list_to_exclude = [\n 'twitter',\n 'youtu',\n 'fllwrs',\n 'unfollowspy',\n 'livetv',\n 'pscp',\n 'live',\n 'ln.is',\n 'tinyurl',\n 'facebook',\n 'bit.ly',\n 'goo.gl',\n ...
[ "0.5155826", "0.5116931", "0.502896", "0.48469794", "0.4804909", "0.47966293", "0.47729138", "0.47717592", "0.47354752", "0.4730931", "0.47188097", "0.47089943", "0.4695777", "0.46924073", "0.4670455", "0.4657417", "0.46162593", "0.46076247", "0.45932865", "0.45638296", "0.45...
0.7434294
0
VStream streams vreplication events.
def VStream(self, request, context): context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stream_status_event(self, event):\r\n pass", "def event_stream(self):\n for message in self.subscribe():\n event = message_to_sse(message[\"data\"])\n yield event", "def handle_stream_client(self, event):\n try:\n while True:\n client_req = s...
[ "0.5862362", "0.5361396", "0.5193589", "0.50663304", "0.5025312", "0.49359423", "0.49321538", "0.4907434", "0.49009848", "0.48569548", "0.47935286", "0.478286", "0.47663593", "0.47638202", "0.4749716", "0.47021312", "0.47019884", "0.46913123", "0.46864375", "0.46640497", "0.4...
0.5426422
1
Removes rows which aren't needed in the DF. If a row contains one of the designated symbols it drops them and records them. Returns an Filtered object which contains information about the retained and removed rows.
def filter_unneeded_rows(data: pd.DataFrame) -> FilteredData: allowed_values = ["BUY", "SELL"] correct_rows = data["Action"].isin(allowed_values) num_of_ok_rows = correct_rows.sum() if num_of_ok_rows == len(data): return FilteredData(data, {}) legal_rows = data.loc[correct_rows, :] illeg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trimDf(df):\n cols = set(df.columns)\n\n cols.remove('exclamationCount') # bug in our feature extraction code\n cols.remove('price') # considered only free apps\n cols.remove('appName') # removing appNames\n\n # return df[list(cols)]\n\n\n\n return df[list(('revSent', 'appLabel'))]", "def f...
[ "0.5987847", "0.5943072", "0.58474314", "0.57139724", "0.5702526", "0.56567687", "0.5635453", "0.5586914", "0.5586264", "0.55834323", "0.5563579", "0.55631554", "0.5544793", "0.5538713", "0.54920566", "0.54906213", "0.54856443", "0.5456401", "0.5443878", "0.5406942", "0.53937...
0.59884405
0
Lists all the uploads for a particular catalog.
def list_uploads_for_catalog_v0(self, catalog_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, ListUploadsResponse_59fc7728, Error_d660d58] operation_name = "list_uploads_for_catalog_v0" params = locals() for key, val in six.iteritems(params['kw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_uploads(arn=None, nextToken=None):\n pass", "def upload_index(self):\n return self.render(\"cadmin/upload.html\", connector=self.connector)", "def uploads(self):\r\n return u.Uploads(self)", "def list_multipart_uploads(Bucket=None, Delimiter=None, EncodingType=None, KeyMarker=None, ...
[ "0.60803103", "0.5518015", "0.54515773", "0.53923315", "0.53463054", "0.5214537", "0.52021486", "0.51877195", "0.51299816", "0.51162803", "0.51151466", "0.5109009", "0.5061079", "0.5020963", "0.5012223", "0.5004669", "0.49983722", "0.49931318", "0.4979966", "0.49755847", "0.4...
0.66676104
0
Lists catalogs associated with a vendor.
def list_catalogs_for_vendor_v0(self, vendor_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] operation_name = "list_catalogs_for_vendor_v0" params = locals() for key, val in six.iteritems(params['kw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def show_catalogue(self):\n\n data = cur.execute(\"\"\"SELECT productid, productname, unitcost, stock, location \n FROM catalogue WHERE vendorname = ?\"\"\", (self.vendorname,)).fetchall()\n print(tabulate(data, headers=[\"Product ID\", \"Name\", \"Unit Cost\", \"Stock\...
[ "0.6425961", "0.62713766", "0.62005067", "0.61386716", "0.6064944", "0.599095", "0.5985109", "0.59512717", "0.5854509", "0.58000416", "0.57824093", "0.573778", "0.5698321", "0.56862247", "0.5647046", "0.5640386", "0.5627115", "0.562495", "0.5621989", "0.56063086", "0.55837905...
0.6875441
0
Creates a new catalog based on information provided in the request.
def create_catalog_v0(self, create_catalog_request, **kwargs): # type: (CreateCatalogRequest_f3cdf8bb, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, CatalogDetails_912693fa, Error_d660d58] operation_name = "create_catalog_v0" params = locals() for key, val in six.iterite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def catalog_create(self, args):\n try:\n if args.id and self.server.connect_ermrest(args.id).exists():\n print(\"Catalog already exists\")\n return\n owner = args.owner if args.owner else None\n catalog = self.server.create_ermrest_catalog(args....
[ "0.7075962", "0.66169626", "0.65908253", "0.6559741", "0.6491398", "0.6491398", "0.6491398", "0.6474749", "0.64458245", "0.63912857", "0.6327027", "0.6295636", "0.624926", "0.61907876", "0.6131978", "0.61135054", "0.60304767", "0.60023105", "0.60003024", "0.5982443", "0.59681...
0.6687406
1
Lists the subscribers for a particular vendor.
def list_subscribers_for_development_events_v0(self, vendor_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListSubscribersResponse_d1d01857, BadRequestError_a8ac8b44, Error_d660d58] operation_name = "list_subscribers_for_development_events_v0" params = locals() for key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def subscribers(id):\n return core.query(schema.streamBySubscribers, id)", "def get_subscribers(self) -> Iterator[Any]:\n for subscription in self._subscriptions[self.id]:\n yield subscription.subscriber", "def list_subscriptions_for_development_events_v0(self, vendor_id, **kwargs):\n ...
[ "0.61201715", "0.608175", "0.5926131", "0.5878165", "0.5822366", "0.5820727", "0.5819338", "0.5757884", "0.5748074", "0.57391936", "0.5663166", "0.5601533", "0.5574416", "0.55726206", "0.55469656", "0.55281115", "0.55225855", "0.5510666", "0.5506967", "0.5494915", "0.5494254"...
0.6614901
0
Creates a new subscriber resource for a vendor.
def create_subscriber_for_development_events_v0(self, create_subscriber_request, **kwargs): # type: (CreateSubscriberRequest_a96d53b9, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] operation_name = "create_subscriber_for_development_events_v0" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def handle_create(self):\n subscription = self.client().subscription(\n self.properties[self.QUEUE_NAME],\n subscriber=self.properties[self.SUBSCRIBER],\n ttl=self.properties[self.TTL],\n options=self.properties[self.OPTIONS]\n )\n self.resource_id_s...
[ "0.64551383", "0.59768575", "0.5970595", "0.595671", "0.59108967", "0.58701646", "0.584349", "0.5834306", "0.5730402", "0.5714144", "0.5700782", "0.5666716", "0.56383765", "0.5575891", "0.5572123", "0.5554688", "0.5541579", "0.5495667", "0.5487416", "0.5486775", "0.54239213",...
0.60352266
1
Associate skill with catalog.
def associate_catalog_with_skill_v0(self, skill_id, catalog_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, Error_d660d58] operation_name = "associate_catalog_with_skill_v0" params = locals() for key, val in six.iteritems(params['kwargs'])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addSkill(self, newskill):\n self.skills.append( newskill )", "def addSkill(self, skillName, maxLevel, creditStart, creditIncrement):\r\n self.skills[skillName] = SkillObject(skillName, maxLevel, creditStart, creditIncrement)\r\n self.orderedSkills.append(skillName)", "def addSkill(skil...
[ "0.6664767", "0.6635394", "0.612437", "0.5970023", "0.59050703", "0.5865405", "0.584907", "0.561355", "0.55675197", "0.5513248", "0.5433672", "0.5427542", "0.5261133", "0.5227878", "0.5173006", "0.5169779", "0.5169779", "0.5169779", "0.516817", "0.5143061", "0.50991553", "0...
0.70367885
0
Lists all the catalogs associated with a skill.
def list_catalogs_for_skill_v0(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogsResponse_3dd2a983, BadRequestError_a8ac8b44, Error_d660d58] operation_name = "list_catalogs_for_skill_v0" params = locals() for key, val in six.iteritems(params['kwarg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_catalogs(self):\n return self._json_object_field_to_list(\n self._get_catalogs_json(), self.__MISSION_STRING)", "def list_detail_catalog(self, catalog_name):\n # list catalog\n self._list_catalog(catalog_name)\n # detail catalog\n self._details_catalog(cat...
[ "0.6852084", "0.6113749", "0.5815595", "0.56907815", "0.5633595", "0.5573647", "0.555769", "0.5518518", "0.5516258", "0.5426061", "0.53878295", "0.5378777", "0.53384465", "0.5309134", "0.53046465", "0.5283861", "0.52456987", "0.5202846", "0.5156608", "0.51344407", "0.5128742"...
0.72920567
0
Create new upload Creates a new upload for a catalog and returns location to track the upload process.
def create_catalog_upload_v1(self, catalog_id, catalog_upload_request_body, **kwargs): # type: (str, CatalogUploadBase_d7febd7, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "create_catalog_upload_v1" params = locals() for key, val in six....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_upload(projectArn=None, name=None, type=None, contentType=None):\n pass", "def create_content_upload_v0(self, catalog_id, create_content_upload_request, **kwargs):\n # type: (str, CreateContentUploadRequest_bf7790d3, **Any) -> Union[ApiResponse, object, BadRequestError_a8ac8b44, CreateConten...
[ "0.6831696", "0.64513546", "0.63524556", "0.6309491", "0.61442155", "0.6086827", "0.6079612", "0.6052322", "0.6010462", "0.5990453", "0.59298205", "0.58892775", "0.58816016", "0.5851181", "0.58465827", "0.58310765", "0.5784714", "0.57691616", "0.5760394", "0.5739012", "0.5734...
0.65958726
1
The SMAPI Audit Logs API provides customers with an audit history of all SMAPI calls made by a developer or developers with permissions on that account.
def query_development_audit_logs_v1(self, get_audit_logs_request, **kwargs): # type: (AuditLogsRequest_13316e3e, **Any) -> Union[ApiResponse, object, Error_fbe913d9, AuditLogsResponse_bbbe1918, BadRequestError_f854b05] operation_name = "query_development_audit_logs_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_auditlogs(self):\n res = self.get_object(\"/integrationServices/v3/auditlogs\")\n return res.get(\"notifications\", [])", "def getAllActivityLog(self):\n url=self._v2BaseURL + \"/api/v2/activity/activityLog\"\n headers = {'Content-Type': \"application/json\", 'Accept': \"appli...
[ "0.629905", "0.6203893", "0.59034455", "0.583267", "0.57482004", "0.56924", "0.5659241", "0.5658747", "0.564397", "0.56259894", "0.5611631", "0.5497883", "0.54339087", "0.5408425", "0.53990036", "0.53773606", "0.53651124", "0.53638005", "0.53303605", "0.53125095", "0.52780914...
0.642645
0
Get the list of inskill products for the vendor.
def get_isp_list_for_vendor_v1(self, vendor_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] operation_name = "get_isp_list_for_vendor_v1" params = locals() for key, val in six.iteritems(params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_products(self):\n url = self.base_url\n # TODO add filtering support when holvi api supports it\n obdata = self.connection.make_get(url)\n return ProductList(obdata, self)", "def products(self):\n return list(Product.select())", "def get_products(self):\n retu...
[ "0.6733137", "0.6547819", "0.65187454", "0.648127", "0.63539016", "0.6321409", "0.6284851", "0.62413895", "0.62055516", "0.61503416", "0.6140966", "0.61330837", "0.6085362", "0.6000095", "0.5997312", "0.59685934", "0.5965533", "0.592143", "0.5869935", "0.58443815", "0.5842674...
0.66241527
1
Creates a new inskill product for given vendorId.
def create_isp_for_vendor_v1(self, create_in_skill_product_request, **kwargs): # type: (CreateInSkillProductRequest_816cf44b, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ProductResponse_b388eec4, BadRequestError_f854b05] operation_name = "create_isp_for_vendor_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_product(self):\n product = self.product_obj.create({\n \"default_code\": 'A2330',\n \"product_tmpl_id\":\n self.ref(\"product.product_product_4_product_template\"),\n \"attribute_value_ids\": [(6, 0, [\n self.ref('product.product_attribut...
[ "0.57748955", "0.5632701", "0.55772245", "0.5560756", "0.55527693", "0.55176973", "0.544083", "0.5436239", "0.54329205", "0.54200816", "0.5348453", "0.53069866", "0.5295919", "0.5220665", "0.52175814", "0.5196625", "0.5183925", "0.5162375", "0.5140223", "0.5136836", "0.511052...
0.66890377
0
Associates an inskill product with a skill.
def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "associate_isp_with_skill_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def addSkill(self, newskill):\n self.skills.append( newskill )", "def new_skill_interaction(self, skill):\n self.skill_interact[skill] = True", "def addSkill(self, skillName, maxLevel, creditStart, creditIncrement):\r\n self.skills[skillName] = SkillObject(skillName, maxLevel, creditStart,...
[ "0.6838665", "0.6528498", "0.63352215", "0.6299897", "0.62301195", "0.6225925", "0.59248406", "0.58860654", "0.5864585", "0.5812439", "0.5810612", "0.5810612", "0.57910365", "0.57557166", "0.5713672", "0.57069767", "0.56912553", "0.55998117", "0.55106634", "0.55091727", "0.54...
0.6781893
1
Resets the entitlement(s) of the Product for the current user.
def reset_entitlement_for_product_v1(self, product_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "reset_entitlement_for_product_v1" params = locals() for key, val in six.iteritems(params['kwargs']):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset_user(self):\n\n if self.resin.auth.is_logged_in():\n self.wipe_application()\n self.resin.models.key.base_request.request(\n 'user__has__public_key', 'DELETE',\n endpoint=self.resin.settings.get('pine_endpoint'), login=True\n )", "de...
[ "0.56585646", "0.54697764", "0.52775943", "0.52775943", "0.51205343", "0.5110504", "0.5110504", "0.5086956", "0.5080355", "0.5080355", "0.5065258", "0.5040448", "0.5031072", "0.5013237", "0.49968353", "0.49950162", "0.4991405", "0.49880537", "0.49675336", "0.49537265", "0.491...
0.60211426
0
Returns the inskill product definition for given productId.
def get_isp_definition_v1(self, product_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, InSkillProductDefinitionResponse_4aa468ff, Error_fbe913d9, BadRequestError_f854b05] operation_name = "get_isp_definition_v1" params = locals() for key, val in six.iterite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_product_by_id(productId): # noqa: E501\n return 'do some magic!'", "def _product_spec_by_id(self, product_id):\n if not isinstance(product_id, int):\n raise TypeError(\"Product ID should be integer\")\n\n for product_group in self.db:\n for db_id in self.db[product...
[ "0.6464672", "0.612124", "0.605774", "0.6039397", "0.5857793", "0.58464456", "0.5832984", "0.57331824", "0.5726266", "0.5706458", "0.56913775", "0.56698745", "0.56065446", "0.55776674", "0.55651134", "0.5551204", "0.5525478", "0.5506871", "0.55012226", "0.54999846", "0.546534...
0.6508556
0
Updates inskill product definition for given productId. Only development stage supported.
def update_isp_for_product_v1(self, product_id, stage, update_in_skill_product_request, **kwargs): # type: (str, str, UpdateInSkillProductRequest_ee975cf1, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "update_isp_for_product_v1" params = locals()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_product_form(productId, name=None, status=None): # noqa: E501\n return 'do some magic!'", "def associate_isp_with_skill_v1(self, product_id, skill_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"as...
[ "0.61609936", "0.61382127", "0.6079622", "0.6055985", "0.6021867", "0.5917009", "0.5853831", "0.578811", "0.5721086", "0.5692899", "0.56461924", "0.5592242", "0.5513153", "0.54926187", "0.54778296", "0.54778296", "0.547739", "0.54153234", "0.5413967", "0.539913", "0.5369796",...
0.7032969
0
Get the summary information for an inskill product.
def get_isp_summary_v1(self, product_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, InSkillProductSummaryResponse_32ba64d7] operation_name = "get_isp_summary_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def product_summary(self):\n # products = self.products.filter(type='S') # TODO: explain the usage of this commented line or remove it\n from .utils import process_products\n\n subscription_products = SubscriptionProduct.objects.filter(subscription=self)\n dict_all_products = {}\n ...
[ "0.6262818", "0.6042343", "0.5940665", "0.59008634", "0.58890253", "0.5821843", "0.5760935", "0.5731772", "0.57011896", "0.569796", "0.5634564", "0.5575895", "0.5570702", "0.5545321", "0.552987", "0.55269814", "0.54810643", "0.5476215", "0.54176176", "0.5392869", "0.53575855"...
0.61915576
1
List all the historical versions of the given catalogId.
def list_interaction_model_catalog_versions_v1(self, catalog_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListCatalogEntityVersionsResponse_aa31060e, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "list_interaction_model_catalog_versions_v1" params = l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_versions(self, service_id):\n return [self.fastly_cache[service_id]['service_details']]", "def revision_history(self, uuid):\n return self.write.revision_history(rid=uuid)", "def ListVersions(self, request, context):\n context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)", "def ...
[ "0.5942459", "0.55616015", "0.5546318", "0.54795104", "0.53538805", "0.53490853", "0.5348747", "0.52081084", "0.5199304", "0.51704663", "0.51683384", "0.51576775", "0.51349646", "0.511972", "0.51145464", "0.5093436", "0.50895435", "0.50717413", "0.50488883", "0.50439376", "0....
0.64333284
0
Create a new version of catalog entity for the given catalogId.
def create_interaction_model_catalog_version_v1(self, catalog_id, catalog, **kwargs): # type: (str, VersionData_af79e8d3, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_interaction_model_catalog_version_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def save_catalog(self, catalog_form, *args, **kwargs):\n # Implemented from kitosid template for -\n # osid.resource.BinAdminSession.update_bin\n if catalog_form.is_for_update():\n return self.update_catalog(catalog_form, *args, **kwargs)\n else:\n return self.crea...
[ "0.63733524", "0.60968757", "0.59381574", "0.5849364", "0.5631473", "0.56290007", "0.5573641", "0.541416", "0.5320255", "0.5284916", "0.51846284", "0.5158538", "0.5151632", "0.5151632", "0.5151632", "0.5143142", "0.50983435", "0.5016219", "0.5011444", "0.48950619", "0.4868419...
0.64581627
0
Get catalog version data of given catalog version.
def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogVersionData_86156352] operation_name = "get_interaction_model_catalog_version_v1" params = locals...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCatalog(self, version=None, level=None, cubeInfo=True):\n print('WaPOR API: Loading catalog WaPOR.v{v}_l{lv}...'.format(\n v=version, lv=level))\n self.isAPITokenSet()\n\n isFound = False\n\n # if isinstance(version, int) and isinstance(level, int):\n # prin...
[ "0.62205946", "0.6113081", "0.6053204", "0.6053204", "0.6001308", "0.59186375", "0.5852233", "0.5814686", "0.5786393", "0.57854307", "0.57852215", "0.57809806", "0.5762735", "0.5731641", "0.5727272", "0.5722372", "0.5708852", "0.56849897", "0.5638192", "0.56319714", "0.562760...
0.6464466
0
Get catalog values from the given catalogId & version.
def get_interaction_model_catalog_values_v1(self, catalog_id, version, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, CatalogValues_ef5c3823, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_interaction_model_catalog_values_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_interaction_model_catalog_version_v1(self, catalog_id, version, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CatalogVersionData_86156352]\n operation_name = \"get_interaction_model_catalog_version_v1\"\n param...
[ "0.6146063", "0.6006047", "0.59264326", "0.58870983", "0.567133", "0.5622799", "0.5576962", "0.55423224", "0.55372685", "0.5530066", "0.53972703", "0.539612", "0.53943086", "0.53748065", "0.53272104", "0.5325469", "0.52881753", "0.52529997", "0.523602", "0.523346", "0.5219220...
0.6545546
0
Creates a new Job Definition from the Job Definition request provided. This can be either a CatalogAutoRefresh, which supports timebased configurations for catalogs, or a ReferencedResourceVersionUpdate, which is used for slotTypes and Interaction models to be automatically updated on the dynamic update of their refere...
def create_job_definition_for_interaction_model_v1(self, create_job_definition_request, **kwargs): # type: (CreateJobDefinitionRequest_e3d4c41, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CreateJobDefinitionResponse_efaa9a6f, ValidationErrors_d42055a1] opera...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _build_create_job_definition_request(\n self,\n monitoring_schedule_name,\n job_definition_name,\n image_uri,\n latest_baselining_job_name=None,\n latest_baselining_job_config=None,\n existing_job_desc=None,\n endpoint_input=None,\n ground_truth_in...
[ "0.7011716", "0.6262502", "0.60106415", "0.59811646", "0.59107107", "0.5779581", "0.5768893", "0.5693051", "0.5675572", "0.56623316", "0.56285715", "0.5569513", "0.5486852", "0.5481721", "0.5459425", "0.5407388", "0.53674847", "0.5330379", "0.5303417", "0.5297281", "0.5273973...
0.67803115
1
List all slot types for the vendor.
def list_interaction_model_slot_types_v1(self, vendor_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListSlotTypeResponse_b426c805, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "list_interaction_model_slot_types_v1" params = locals() for key, v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_potential_classes_for_slot(slot_number):\n return [\"econ\", \"biz\", \"wtf\"]", "def GetAllSlots(cls):\n slots = []\n for parent in cls.__mro__:\n slots.extend(getattr(parent, \"__slots__\", []))\n return slots", "def getTypesList():\n return Gw2Spidy._request('types')['results...
[ "0.5957767", "0.57510084", "0.56942004", "0.56164825", "0.55939275", "0.5561666", "0.5548958", "0.55201614", "0.5444181", "0.543892", "0.5423173", "0.54023176", "0.5392513", "0.5391163", "0.5385374", "0.53549826", "0.53284764", "0.53130853", "0.52963626", "0.5290598", "0.5286...
0.65238047
0
Create a new version of slot type within the given slotTypeId.
def create_interaction_model_slot_type_v1(self, slot_type, **kwargs): # type: (DefinitionData_dad4effb, **Any) -> Union[ApiResponse, object, SlotTypeResponse_1ca513dc, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_interaction_model_slot_type_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, **kwargs):\n # type: (str, VersionData_faa770c8, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"create_interaction_model_slot_type_version_v1\"\n par...
[ "0.6634029", "0.5734478", "0.55027074", "0.54875815", "0.5442675", "0.53843546", "0.5305201", "0.52553576", "0.5187946", "0.5171874", "0.51383734", "0.51134545", "0.5109183", "0.5080171", "0.5068835", "0.5044356", "0.5031533", "0.49719235", "0.495085", "0.49283054", "0.492601...
0.6622921
1
Delete the slot type.
def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_interaction_model_slot_type_v1" params = locals() for key, val in six.iteritems(params...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def remove_type(self, name):\n del self.types[name]", "def type(self):\n ida_bytes.del_items(self.ea)", "def removeType(self, name):\n delattr(self, name)\n try:\n del self._type_names[name]\n except ValueError:\n pass", "def delete(cls, type_obj):\n ...
[ "0.638149", "0.6239823", "0.6080558", "0.6049676", "0.60330087", "0.6005915", "0.5982221", "0.59309065", "0.59063286", "0.5892682", "0.5870901", "0.58697253", "0.5854464", "0.58537173", "0.585165", "0.5848346", "0.579543", "0.5775421", "0.5773731", "0.5757727", "0.57050896", ...
0.69324857
0
Get the slot type definition.
def get_interaction_model_slot_type_definition_v1(self, slot_type_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, SlotTypeDefinitionOutput_20e87f7, BadRequestError_f854b05] operation_name = "get_interaction_model_slot_type_definition_v1" params = loc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getDefinition(self, type=None):\n\n if type is None:\n return self.definitions['None']\n try:\n return self.definitions[type]\n except KeyError:\n return self.definitions['None']", "def get_slot_definition(self, slot: DeckSlotName) -> SlotDefV3:\n ...
[ "0.6754375", "0.61281437", "0.6105955", "0.60216135", "0.6002419", "0.59822404", "0.5979925", "0.59779984", "0.5976322", "0.59741217", "0.59307176", "0.59267306", "0.5876768", "0.58651626", "0.58583635", "0.5856294", "0.5843073", "0.5843073", "0.58384514", "0.58371776", "0.58...
0.659528
1
Get the status of slot type resource and its subresources for a given slotTypeId.
def get_interaction_model_slot_type_build_status_v1(self, slot_type_id, update_request_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, SlotTypeStatus_a293ebfc, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_interaction_model_slot_type_build_status_v1" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SlotStatus(rangeInfo):\n if rangeInfo >= 3 and rangeInfo <= 10:\n \"\"\" Full Slot \"\"\"\n status = 1\n return status\n else:\n \"\"\" Empty Slot \"\"\"\n status = 0\n return status", "def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwar...
[ "0.5389657", "0.52319205", "0.52153623", "0.5146299", "0.503496", "0.49674195", "0.49453658", "0.4932707", "0.48663652", "0.48232716", "0.48213974", "0.47881374", "0.47817594", "0.47817594", "0.47557944", "0.47314698", "0.471271", "0.4682415", "0.46182647", "0.46158686", "0.4...
0.6065341
0
List all slot type versions for the slot type id.
def list_interaction_model_slot_type_versions_v1(self, slot_type_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ListSlotTypeVersionResponse_7d552abf, BadRequestError_f854b05] operation_name = "list_interaction_model_slot_type_versions_v1" params = l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, SlotTypeVersionData_1f3ee474]\n operation_name = \"get_interaction_model_slot_type_version_v1\"\n ...
[ "0.6106796", "0.6043508", "0.59520197", "0.58241546", "0.5630513", "0.5481223", "0.54357177", "0.53851986", "0.53153414", "0.52639025", "0.5244154", "0.5198423", "0.5193687", "0.51933515", "0.51930255", "0.51110554", "0.5060837", "0.5051601", "0.50498486", "0.5047052", "0.504...
0.752099
0
Create a new version of slot type entity for the given slotTypeId.
def create_interaction_model_slot_type_version_v1(self, slot_type_id, slot_type, **kwargs): # type: (str, VersionData_faa770c8, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_interaction_model_slot_type_version_v1" params = loca...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_interaction_model_slot_type_v1(self, slot_type, **kwargs):\n # type: (DefinitionData_dad4effb, **Any) -> Union[ApiResponse, object, SlotTypeResponse_1ca513dc, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"create_interaction_model_slot_type_v1\"\n params =...
[ "0.6595384", "0.5778384", "0.56464463", "0.54920423", "0.5468983", "0.5460118", "0.5449998", "0.52916855", "0.52558595", "0.5233566", "0.50949", "0.5021223", "0.49814785", "0.49695474", "0.496029", "0.4954763", "0.48741883", "0.4864564", "0.48532182", "0.48508102", "0.4816370...
0.6711128
0
Delete slot type version.
def delete_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_interaction_model_slot_type_version_v1" params = locals() for ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_version(self):\n pass", "def delete_interaction_model_slot_type_v1(self, slot_type_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"delete_interaction_model_slot_type_v1\"\n params ...
[ "0.69133455", "0.65906924", "0.58580124", "0.5852691", "0.58427644", "0.5832888", "0.5797444", "0.5750808", "0.56815904", "0.56198233", "0.55722696", "0.55600405", "0.5533061", "0.5531285", "0.54934555", "0.54884666", "0.547365", "0.54593927", "0.54386854", "0.5433934", "0.54...
0.7003186
0
Get slot type version data of given slot type version.
def get_interaction_model_slot_type_version_v1(self, slot_type_id, version, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, SlotTypeVersionData_1f3ee474] operation_name = "get_interaction_model_slot_type_version_v1" params =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v(self, n):\n\n if n == 0:\n return None\n if n < self.maxSlot + 1:\n return self.slotType\n m = n - self.maxSlot\n if m <= len(self.data):\n return self.data[m - 1]\n return None", "def create_interaction_model_slot_type_version_v1(self, sl...
[ "0.61960006", "0.57121027", "0.56872183", "0.5595791", "0.54473484", "0.54208326", "0.5415714", "0.540754", "0.53402525", "0.5313842", "0.52186906", "0.5184387", "0.51615036", "0.51375926", "0.51199", "0.5100999", "0.5041112", "0.5034288", "0.49926922", "0.49520558", "0.49520...
0.675903
0
Get status for given importId.
def get_import_status_v1(self, import_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, ImportResponse_364fa39f] operation_name = "get_import_status_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetImportStatus(self, table_name, import_id):\n conn = self._Connect()\n result = conn.Call(\n dict(method='bigquery.imports.get',\n parents=[('tables', table_name)],\n collection='imports',\n operation=bq.REST.GET,\n resource_name=import_id,\n ...
[ "0.7933597", "0.68047285", "0.6748428", "0.64408904", "0.6373497", "0.6065455", "0.60640645", "0.60167086", "0.5936407", "0.5853885", "0.57882464", "0.57276386", "0.5698958", "0.56675047", "0.5657032", "0.56455195", "0.560577", "0.5524094", "0.55119205", "0.5497134", "0.54963...
0.7191057
1
Creates a new skill for given vendorId.
def create_skill_for_vendor_v1(self, create_skill_request, **kwargs): # type: (CreateSkillRequest_92e74e84, **Any) -> Union[ApiResponse, object, CreateSkillResponse_2bad1094, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_skill_for_vendor_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_skills_for_vendor_v1(self, vendor_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, ListSkillResponse_527462d0, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"list_skills_for_vendor_v1\"\n params = locals()\n for key, val in six.iter...
[ "0.56765413", "0.566364", "0.5663285", "0.5602312", "0.55841464", "0.5244242", "0.5207224", "0.51427853", "0.51056373", "0.5064332", "0.5049388", "0.5019362", "0.49746248", "0.49152339", "0.48530075", "0.47677076", "0.47220677", "0.46827847", "0.46745673", "0.46149892", "0.46...
0.680146
0
GetResourceSchema API provides schema for skill related resources. The schema returned by this API will be specific to vendor because it considers public beta features allowed for the vendor.
def get_resource_schema_v1(self, resource, vendor_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetResourceSchemaResponse_9df87651, BadRequestError_f854b05] operation_name = "get_resource_schema_v1" params = locals() for key, val in six.iteritems(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_schema():\n if not os.path.isfile(_schema_file):\n create_schema()\n with open(_schema_file, 'r') as fd:\n out = decode_json(fd)\n return out", "def get_schema(self):\n response = self.client.get(self._get_collection_url('schema'))\n\n return response.get('schema', {}...
[ "0.59521794", "0.5908274", "0.57825756", "0.5744435", "0.5438769", "0.54080755", "0.54057866", "0.53965545", "0.5362591", "0.5359217", "0.53531814", "0.52605706", "0.52461493", "0.5244036", "0.5198851", "0.5177402", "0.5172437", "0.50903076", "0.5087525", "0.50371695", "0.503...
0.6104081
0
Generates hosted skill repository credentials to access the hosted skill repository.
def generate_credentials_for_alexa_hosted_skill_v1(self, skill_id, hosted_skill_repository_credentials_request, **kwargs): # type: (str, HostedSkillRepositoryCredentialsRequest_79a1c791, **Any) -> Union[ApiResponse, object, HostedSkillRepositoryCredentialsList_d39d5fdf, StandardizedError_f5106a89, BadRequestErr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_credentials(self):\r\n \r\n try:\r\n import argparse\r\n #flags = argparse.ArgumentParser(parents=[tools.argparser]).parse_args()\r\n if self.noauth == True:\r\n flags = tools.argparser.parse_args(args=['--noauth_local_webserver'])\r\n ...
[ "0.5910984", "0.58889234", "0.5878909", "0.58545816", "0.58484316", "0.5845955", "0.57923484", "0.57289153", "0.5717822", "0.5663259", "0.56557184", "0.56421167", "0.5642021", "0.5642021", "0.56393", "0.56220835", "0.5617574", "0.5574237", "0.5557065", "0.55498415", "0.553946...
0.6119863
0
End beta test. End a beta test for a given Alexa skill. System will revoke the entitlement of each tester and send accessend notification email to them.
def end_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "end_beta_test_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val del par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def trial_end(self, parameter_id, success, **kwargs):", "def end_test(self, name, attributes):\n test = Test(name=name, attributes=attributes)\n self.current_scope = \"SUITE\"\n if self._suite_setup_failed:\n # If test failed because of failing suite setup, output log message with...
[ "0.5841196", "0.58019316", "0.5657902", "0.5640518", "0.5543084", "0.55353415", "0.54623264", "0.5451301", "0.5403376", "0.53503865", "0.53335947", "0.53321385", "0.5331289", "0.533081", "0.5317022", "0.5311898", "0.5311898", "0.5286873", "0.5272455", "0.52439624", "0.5236723...
0.6728911
0
Get beta test. Get beta test for a given Alexa skill.
def get_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BetaTest_e826b162, BadRequestError_f854b05] operation_name = "get_beta_test_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_beta_test_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"update_beta_test_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[key] = v...
[ "0.62065864", "0.60728866", "0.5912442", "0.5846177", "0.5846177", "0.5825687", "0.57786304", "0.5759203", "0.5674933", "0.56633794", "0.54740316", "0.5328713", "0.5317437", "0.5276266", "0.52476704", "0.52083284", "0.5155649", "0.51427096", "0.51348656", "0.51102877", "0.508...
0.72415125
0
Create beta test. Create a beta test for a given Alexa skill.
def create_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "create_beta_test_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_beta_test_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"update_beta_test_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[key] = v...
[ "0.67994094", "0.65799725", "0.6277017", "0.60846496", "0.5496496", "0.5472379", "0.54534733", "0.53817886", "0.5377961", "0.5373045", "0.5372878", "0.53613985", "0.5318546", "0.52971", "0.5256494", "0.5179809", "0.51281613", "0.50656486", "0.50383884", "0.5002523", "0.499946...
0.7222054
0
Update beta test. Update a beta test for a given Alexa skill.
def update_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "update_beta_test_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def end_beta_test_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"end_beta_test_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[key] = val\n ...
[ "0.6030136", "0.59667206", "0.5931028", "0.57376856", "0.5693456", "0.5592109", "0.5580282", "0.5520951", "0.54991055", "0.54870695", "0.5486362", "0.54673177", "0.5458189", "0.54581165", "0.54083073", "0.5290761", "0.5281577", "0.5252588", "0.52507883", "0.5238994", "0.51973...
0.69719386
0
Start beta test Start a beta test for a given Alexa skill. System will send invitation emails to each tester in the test, and add entitlement on the acceptance.
def start_beta_test_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "start_beta_test_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val del...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_beta_test_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"create_beta_test_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs']):\n params[key] = v...
[ "0.58114564", "0.57895595", "0.55495626", "0.5533645", "0.55101997", "0.55059665", "0.5502358", "0.5391071", "0.5317593", "0.52452296", "0.52154356", "0.5197792", "0.5160328", "0.5117921", "0.50091255", "0.49877074", "0.49205288", "0.49053085", "0.49028757", "0.48723567", "0....
0.6586409
0
Add testers to an existing beta test. Add testers to a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance.
def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs): # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "add_testers_to_beta_test_v1" params = locals() for key, val in six.iteritems(par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def send_beta_role_email(action, user, email_params):\r\n if action == 'add':\r\n email_params['message'] = 'add_beta_tester'\r\n email_params['email_address'] = user.email\r\n email_params['full_name'] = user.profile.name\r\n\r\n elif action == 'remove':\r\n email_params['message...
[ "0.5863338", "0.5774639", "0.572012", "0.5425559", "0.53766775", "0.532046", "0.5312371", "0.53067374", "0.5284947", "0.52377874", "0.52059793", "0.51717895", "0.51412475", "0.50801593", "0.5077373", "0.50261235", "0.49931276", "0.4890633", "0.48818922", "0.4881252", "0.48752...
0.74168843
0
List testers. List all testers in a beta test for the given Alexa skill.
def get_list_of_testers_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListTestersResponse_991ec8e9] operation_name = "get_list_of_testers_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list_tests(arn=None, nextToken=None):\n pass", "def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs):\n # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"add_testers_to_beta_test_v1\"\n...
[ "0.6136159", "0.60158587", "0.5808102", "0.5689838", "0.5637473", "0.5607448", "0.55265653", "0.55152833", "0.53794444", "0.5343225", "0.51300997", "0.50666624", "0.50428826", "0.5004781", "0.49133348", "0.4888233", "0.4852565", "0.48202467", "0.4814024", "0.48007804", "0.479...
0.7114685
0
Remove testers from an existing beta test. Remove testers from a beta test for the given Alexa skill. System will send access end email to each tester and remove entitlement for them.
def remove_testers_from_beta_test_v1(self, skill_id, testers_request, **kwargs): # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "remove_testers_from_beta_test_v1" params = locals() for key, val in six.ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def add_testers_to_beta_test_v1(self, skill_id, testers_request, **kwargs):\n # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"add_testers_to_beta_test_v1\"\n params = locals()\n for key, val in six.it...
[ "0.5587914", "0.5545338", "0.5255967", "0.52048516", "0.5184266", "0.5123379", "0.51225615", "0.5080352", "0.5048985", "0.50268716", "0.50224525", "0.4944203", "0.49367338", "0.4936156", "0.49318147", "0.49284622", "0.49223253", "0.48844877", "0.48799017", "0.4877814", "0.487...
0.73148805
0
Request feedback from testers. Request feedback from the testers in a beta test for the given Alexa skill. System will send notification emails to testers to request feedback.
def request_feedback_from_testers_v1(self, skill_id, testers_request, **kwargs): # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "request_feedback_from_testers_v1" params = locals() for key, val in six.ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_give_feedback_handler(self):\n self.signup(self.VIEWER_EMAIL, self.VIEWER_USERNAME)\n\n # Load demo exploration\n EXP_ID = '0'\n exp_services.delete_demo('0')\n exp_services.load_demo('0')\n\n # Viewer opens exploration\n self.login(self.VIEWER_EMAIL)\n ...
[ "0.61726403", "0.59941983", "0.58779436", "0.5732865", "0.5594313", "0.5457946", "0.542713", "0.5394584", "0.538811", "0.5345523", "0.525281", "0.5199641", "0.5169725", "0.5158993", "0.5149139", "0.50917864", "0.50792634", "0.5022492", "0.500505", "0.4993744", "0.4993744", ...
0.67167854
0
Send reminder to testers in a beta test. Send reminder to the testers in a beta test for the given Alexa skill. System will send invitation email to each tester and add entitlement on the acceptance.
def send_reminder_to_testers_v1(self, skill_id, testers_request, **kwargs): # type: (str, TestersList_f8c0feda, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "send_reminder_to_testers_v1" params = locals() for key, val in six.iteritems(par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def send_beta_role_email(action, user, email_params):\r\n if action == 'add':\r\n email_params['message'] = 'add_beta_tester'\r\n email_params['email_address'] = user.email\r\n email_params['full_name'] = user.profile.name\r\n\r\n elif action == 'remove':\r\n email_params['message...
[ "0.6361374", "0.613323", "0.5981242", "0.5869986", "0.57592195", "0.5738662", "0.56054765", "0.5593407", "0.5553443", "0.5533721", "0.55045986", "0.54965943", "0.54770523", "0.54706186", "0.54577374", "0.5449847", "0.5438888", "0.53768194", "0.5370345", "0.53675", "0.5366505"...
0.6360512
1
Gets a specific certification resource. The response contains the review tracking information for a skill to show how much time the skill is expected to remain under review by Amazon. Once the review is complete, the response also contains the outcome of the review. Old certifications may not be available, however any ...
def get_certification_review_v1(self, skill_id, certification_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, CertificationResponse_97fdaad, BadRequestError_f854b05] operation_name = "get_certification_review_v1" params = locals() for key, val in si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def request_cert():\n\n api_request = shallow_copy(props)\n\n for key in ['ServiceToken', 'Region', 'Tags', 'Route53RoleArn']:\n api_request.pop(key, None)\n\n if 'ValidationMethod' in props:\n if props['ValidationMethod'] == 'DNS':\n\n # Check that we have...
[ "0.5620197", "0.56174594", "0.5616601", "0.55258906", "0.5468792", "0.5397545", "0.5397481", "0.5392902", "0.53675646", "0.53584164", "0.5347854", "0.5339154", "0.5308388", "0.5274523", "0.52729917", "0.52729917", "0.52595717", "0.5217682", "0.51913583", "0.51272845", "0.5117...
0.7220724
0
Get list of all certifications available for a skill, including information about past certifications and any ongoing certification. The default sort order is descending on skillSubmissionTimestamp for Certifications.
def get_certifications_list_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListCertificationsResponse_f2a417c6] operation_name = "get_certifications_list_v1" params = locals() for key, val in six.iteritems(params[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def getCertifications(self):\n return [c for c in self.objectValues('InstrumentCertification') if c]", "def getValidCertifications(self):\n certs = []\n today = date.today()\n for c in self.getCertifications():\n validfrom = c.getValidFrom() if c else None\n vali...
[ "0.6214057", "0.588732", "0.5573819", "0.5352922", "0.5189842", "0.5186954", "0.51683956", "0.51323736", "0.4976819", "0.49328792", "0.49286246", "0.4897881", "0.48967645", "0.4860845", "0.48502275", "0.47953802", "0.47909367", "0.47909367", "0.4778207", "0.4773883", "0.47656...
0.64700496
0
Deletes an existing experiment for a skill.
def delete_experiment_v1(self, skill_id, experiment_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_experiment_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(ctx):\n user, project_name, _experiment = get_project_experiment_or_local(ctx.obj.get('project'),\n ctx.obj.get('experiment'))\n if not click.confirm(\"Are sure you want to delete experiment `{}`\".format(_experiment)):\n ...
[ "0.75951886", "0.70176864", "0.6887585", "0.6750253", "0.66612613", "0.66010493", "0.64526707", "0.64486927", "0.6433302", "0.62364894", "0.60881037", "0.60593563", "0.59835654", "0.58690006", "0.5865851", "0.58418304", "0.5839061", "0.5823958", "0.5795506", "0.57483846", "0....
0.7176662
1
Updates the exposure of an experiment that is in CREATED or RUNNING state.
def update_exposure_v1(self, skill_id, experiment_id, update_exposure_request, **kwargs): # type: (str, str, UpdateExposureRequest_ce52ce53, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "update_exposure_v1" params = locals() f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_exposure(self, exposure):\n self.logger.info(f'Setting exposure to {exposure}')\n self._driver.ExposureTime.SetValue(exposure)", "def expose(self):\n\n ## Determine type of exposure (exp, series, stack)\n exptype = str(self.exptypeComboBox.currentText())\n mode = self.m...
[ "0.62713146", "0.61086863", "0.5796227", "0.56842786", "0.56367266", "0.55775315", "0.5473165", "0.5465806", "0.54192114", "0.5390392", "0.5371606", "0.53087795", "0.5306276", "0.52943015", "0.5248691", "0.5242781", "0.52340454", "0.52296704", "0.5219299", "0.5186737", "0.511...
0.6274165
0
Retrieves an existing experiment for a skill.
def get_experiment_v1(self, skill_id, experiment_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, GetExperimentResponse_fcd92c35, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_experiment_v1" params = locals() for key, val in six.iteritem...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_experiment(self, experiment_name : str):\n return self._df[self._df.experiment == experiment_name]", "def _get_experiment_sqa(experiment_name: str, decoder: Decoder) -> SQAExperiment:\n exp_sqa_class = decoder.config.class_to_sqa_class[Experiment]\n with session_scope() as session:\n ...
[ "0.6250157", "0.6212274", "0.6107531", "0.6012024", "0.5999046", "0.5978549", "0.5974284", "0.59668237", "0.58823645", "0.5868586", "0.580707", "0.5796458", "0.5653181", "0.5620087", "0.561744", "0.55910045", "0.5584656", "0.5543348", "0.5502151", "0.54974264", "0.5459783", ...
0.7118195
0
Gets a list of all metric snapshots associated with this experiment id. The metric snapshots represent the metric data available for a time range.
def list_experiment_metric_snapshots_v1(self, skill_id, experiment_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentMetricSnapshotsResponse_bb18308b] operation_name = "list_experiment_metric_snapshots_v1" pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_snapshots(self) -> SnapshotListing:\n return self.snapshots", "def _list_snapshots(self):\n return self.resource.describe_snapshots(\n Filters=[\n {\n 'Name': 'tag:CreatedBy',\n 'Values': [\n 'AutomatedBa...
[ "0.6616442", "0.6442018", "0.62440395", "0.6232199", "0.6206233", "0.61672056", "0.6158984", "0.6068512", "0.60398465", "0.6002138", "0.59996754", "0.595634", "0.5944466", "0.59274113", "0.5893916", "0.5795772", "0.57936996", "0.5766292", "0.5766089", "0.5755341", "0.57362115...
0.68160546
0
Updates an existing experiment for a skill. Can only be called while the experiment is in CREATED state.
def update_experiment_v1(self, skill_id, experiment_id, update_experiment_request, **kwargs): # type: (str, str, UpdateExperimentRequest_d8449813, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "update_experiment_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update(self, request, pk=None):\n exp = Experiment.objects.get(pk=pk)\n serializer = ExperimentSerializer(exp, data=request.data)\n if serializer.is_valid():\n serializer.save()\n return send_response(request.method, serializer)", "def update(ctx, name, description, tag...
[ "0.68745476", "0.6748701", "0.67074144", "0.6631993", "0.6051414", "0.58201027", "0.57306343", "0.5718586", "0.5717914", "0.5670553", "0.5647306", "0.5542362", "0.5484", "0.54711837", "0.5465292", "0.54574466", "0.54118466", "0.54024833", "0.5390156", "0.5381335", "0.53402597...
0.70709527
0
Retrieves the current user's customer treatment override for an existing A/B Test experiment. The current user must be under the same skill vendor of the requested skill id to have access to the resource.
def get_customer_treatment_override_v1(self, skill_id, experiment_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, GetCustomerTreatmentOverrideResponse_f64f689f, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_customer_treatment_override_v1" param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_customer_treatment_override_v1(self, skill_id, experiment_id, set_customer_treatment_override_request, **kwargs):\n # type: (str, str, SetCustomerTreatmentOverrideRequest_94022e79, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"s...
[ "0.6317194", "0.4652294", "0.4624771", "0.46243167", "0.4533612", "0.44541585", "0.44269043", "0.4356287", "0.43488264", "0.4329361", "0.43277022", "0.4321323", "0.43182027", "0.43182027", "0.42814377", "0.42804077", "0.42282712", "0.4195337", "0.41915858", "0.4162887", "0.41...
0.7399519
0
Adds the requesting user's customer treatment override to an existing experiment. The current user must be under the same skill vendor of the requested skill id to have access to the resource. Only the current user can attempt to add the override of their own customer account to an experiment. Can only be called before...
def set_customer_treatment_override_v1(self, skill_id, experiment_id, set_customer_treatment_override_request, **kwargs): # type: (str, str, SetCustomerTreatmentOverrideRequest_94022e79, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_custo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_customer_treatment_override_v1(self, skill_id, experiment_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, GetCustomerTreatmentOverrideResponse_f64f689f, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"get_customer_treatment_override_v1\"\n ...
[ "0.62492144", "0.5331574", "0.5301613", "0.50894016", "0.5034513", "0.48581028", "0.48009104", "0.4797571", "0.47946864", "0.4712951", "0.46884036", "0.46781746", "0.4669593", "0.46669433", "0.4658773", "0.46532044", "0.46474367", "0.46420807", "0.4633251", "0.46285444", "0.4...
0.67168695
0
Gets a list of all experiments associated with this skill id.
def list_experiments_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListExperimentsResponse_c5b07ecb] operation_name = "list_experiments_v1" params = locals() for key, val in six.iteritems(params['kwar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_client_experiments_list(self, id):\n experimentgroups = self.get_experimentgroups_for_client(id)\n experiments = []\n for experimentgroup in experimentgroups:\n experiments.append(experimentgroup.experiment)\n return experiments", "def list(self, request):\n ...
[ "0.7401268", "0.66809076", "0.66416746", "0.64918095", "0.64363277", "0.6410691", "0.63436115", "0.6262714", "0.62536496", "0.6202606", "0.6166123", "0.6165092", "0.61640954", "0.6128164", "0.61054105", "0.60725933", "0.6006383", "0.5996345", "0.59678626", "0.5933828", "0.585...
0.7309211
1
Create a new experiment for a skill.
def create_experiment_v1(self, skill_id, create_experiment_request, **kwargs): # type: (str, CreateExperimentRequest_abced22d, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_experiment_v1" params = locals() for key, val ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def newExperiment(self):\n experiment = Experiment()\n newtitle = 'Untitled ' + self.getNextUntitled()\n experimentFrame = SequenceFrame(self, experiment, True, newtitle)\n experiment.setInteractionParameters(parentFrame=experimentFrame,\n graphManagerC...
[ "0.6853624", "0.67841476", "0.6585161", "0.6519753", "0.64360976", "0.6318494", "0.60392636", "0.60172176", "0.5932382", "0.58842826", "0.58458304", "0.5842862", "0.5791528", "0.5756243", "0.57560414", "0.57440305", "0.5707029", "0.5682392", "0.56699604", "0.5654442", "0.5601...
0.7103403
0
This is a synchronous API that invokes the Lambda or third party HTTPS endpoint for a given skill. A successful response will contain information related to what endpoint was called, payload sent to and received from the endpoint. In cases where requests to this API results in an error, the response will contain an err...
def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs): # type: (str, InvokeSkillRequest_8cf8aff9, **Any) -> Union[ApiResponse, object, InvokeSkillResponse_6f32f451, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "invoke_skill_v1" params = locals() for...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skill_information():\r\n\r\n client = boto3.client('iot-data', region_name='us-west-2')\r\n\r\n session_attributes = {}\r\n card_title = \"Welcome\"\r\n should_end_session = True\r\n reprompt_text = None\r\n\r\n if(is_online()):\r\n speech_output = \"The coffee machine is offline.\"\r\...
[ "0.5912909", "0.5896748", "0.57591367", "0.57437086", "0.57308966", "0.5649424", "0.56391555", "0.5612456", "0.55630434", "0.55491686", "0.54284877", "0.5363396", "0.53060114", "0.5269332", "0.5248049", "0.5243671", "0.52119356", "0.5210129", "0.5205348", "0.5204494", "0.5195...
0.6131731
0
Get the properties of an NLU annotation set Return the properties for an NLU annotation set.
def get_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUAnnotationSetPropertiesResponse_731f20d3, BadRequestError_f854b05] operation_name = "get_properties_for_nlu_annotation_sets_v1" pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_properties():", "def getProperties():", "def getPropertiesAll():", "def get_properties(self):\n return self.properties", "def get_properties(self):\n return self.properties", "def annotations(self) -> Mapping[str, str]:\n return pulumi.get(self, \"annotations\")", "def annotati...
[ "0.61178017", "0.58980346", "0.5858715", "0.5701817", "0.5688754", "0.56876403", "0.56876403", "0.5672441", "0.56317395", "0.5604513", "0.5543352", "0.5476837", "0.5442199", "0.54398817", "0.54222673", "0.53711796", "0.53711796", "0.5347019", "0.52881587", "0.52827", "0.52410...
0.65365875
0
update the NLU annotation set properties. API which updates the NLU annotation set properties. Currently, the only data can be updated is annotation set name.
def update_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, update_nlu_annotation_set_properties_request, **kwargs): # type: (str, str, UpdateNLUAnnotationSetPropertiesRequest_b569f485, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "up...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, content_type, update_nlu_annotation_set_annotations_request, **kwargs):\n # type: (str, str, str, UpdateNLUAnnotationSetAnnotationsRequest_b336fe43, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\...
[ "0.570468", "0.54506195", "0.54102653", "0.5356329", "0.5263346", "0.5201627", "0.51824445", "0.51057756", "0.5028012", "0.4990469", "0.49601716", "0.49266067", "0.49085695", "0.48879135", "0.48741606", "0.4791256", "0.4790395", "0.47720513", "0.4767837", "0.47672677", "0.476...
0.67326057
0
List NLU annotation sets for a given skill. API which requests all the NLU annotation sets for a skill. Returns the annotationId and properties for each NLU annotation set. Developers can filter the results using locale. Supports paging of results.
def list_nlu_annotation_sets_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListNLUAnnotationSetsResponse_5b1b0b6a, BadRequestError_f854b05] operation_name = "list_nlu_annotation_sets_v1" params = locals() for key, val in six.iteritems(pa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, accept, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"get_annotations_for_nlu_annotation_sets_v1\"\n params = locals()\n ...
[ "0.6487683", "0.6477073", "0.6375824", "0.57720244", "0.54939544", "0.54250336", "0.48604977", "0.4719252", "0.4695324", "0.4684262", "0.46787098", "0.4673763", "0.44869906", "0.44823048", "0.44784552", "0.44707522", "0.446004", "0.44433045", "0.44333726", "0.4365424", "0.433...
0.76015735
0
Create a new NLU annotation set for a skill which will generate a new annotationId. This is an API that creates a new NLU annotation set with properties and returns the annotationId.
def create_nlu_annotation_set_v1(self, skill_id, create_nlu_annotation_set_request, **kwargs): # type: (str, CreateNLUAnnotationSetRequest_16b1430c, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, CreateNLUAnnotationSetResponse_b069cada] operation_name = "create_nlu_annotat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, accept, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05]\n operation_name = \"get_annotations_for_nlu_annotation_sets_v1\"\n params = locals()\n ...
[ "0.5991934", "0.58785355", "0.5876992", "0.5777781", "0.52043295", "0.5172357", "0.51515406", "0.5148755", "0.51152873", "0.5086618", "0.4977804", "0.48819813", "0.48653534", "0.4863833", "0.4863833", "0.47762877", "0.47746676", "0.47074908", "0.4689013", "0.46825206", "0.467...
0.7526162
0
Get top level information and status of a nlu evaluation. API which requests top level information about the evaluation like the current state of the job, status of the evaluation (if complete). Also returns data used to start the job, like the number of test cases, stage, locale, and start time. This should be conside...
def get_nlu_evaluation_v1(self, skill_id, evaluation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResponse_2fb5e6ed, BadRequestError_f854b05] operation_name = "get_nlu_evaluation_v1" params = locals() for key, val in six.iteritems...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResultsResponse_5ca1fa54, BadRequestError_f854b05]\n operation_name = \"get_result_for_nlu_evaluations_v1\"\n params = local...
[ "0.6439881", "0.6177354", "0.59385824", "0.5781659", "0.5643547", "0.55564284", "0.5554617", "0.54602754", "0.54249114", "0.53467447", "0.53456116", "0.5337599", "0.53105956", "0.526651", "0.52644145", "0.52471685", "0.52046084", "0.50835323", "0.50834596", "0.5078256", "0.50...
0.64801955
0
Get test case results for a completed Evaluation. Paginated API which returns the test case results of an evaluation. This should be considered the 'expensive' operation while getNluEvaluation is 'cheap'.
def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResultsResponse_5ca1fa54, BadRequestError_f854b05] operation_name = "get_result_for_nlu_evaluations_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def __get_evaluation_summary(self):\n self.logger.debug(\n f\"Getting summary for assignment {self.assignment_id}, eval_id {self.eval_id}\"\n )\n result = self.interactor.get_policy_eval_summary(self.assignment_id)\n\n if result.status_code != 200:\n self.logger.de...
[ "0.6189125", "0.60605925", "0.5989458", "0.5979745", "0.59796244", "0.58734286", "0.58153635", "0.57028675", "0.56970245", "0.5661497", "0.5653763", "0.56245905", "0.5621561", "0.56146294", "0.55964917", "0.55219525", "0.550872", "0.550872", "0.550872", "0.5491959", "0.548669...
0.6304654
0
List nlu evaluations run for a skill. API which requests recently run nlu evaluations started by a vendor for a skill. Returns the evaluation id and some of the parameters used to start the evaluation. Developers can filter the results using locale and stage. Supports paging of results.
def list_nlu_evaluations_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListNLUEvaluationsResponse_7ef8d08f, BadRequestError_f854b05] operation_name = "list_nlu_evaluations_v1" params = locals() for key, val in six.iteritems(params['kwarg...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_result_for_nlu_evaluations_v1(self, skill_id, evaluation_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, GetNLUEvaluationResultsResponse_5ca1fa54, BadRequestError_f854b05]\n operation_name = \"get_result_for_nlu_evaluations_v1\"\n params = local...
[ "0.6756873", "0.6303966", "0.6184463", "0.5407466", "0.5142522", "0.51336783", "0.50861156", "0.50807756", "0.50581384", "0.5005725", "0.49959406", "0.49848005", "0.49680027", "0.4956628", "0.4820104", "0.48136994", "0.48029506", "0.48006204", "0.47629678", "0.47599083", "0.4...
0.69685805
0
Submit a target skill version to rollback to. Only one rollback or publish operation can be outstanding for a given skillId.
def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs): # type: (str, CreateRollbackRequest_e7747a32, **Any) -> Union[ApiResponse, object, CreateRollbackResponse_5a2e8250, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "rollback_skill_v1" params = locals(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rollback(self, target_revision_id):\n url = DeckhandClient.get_path(\n DeckhandPaths.ROLLBACK\n ).format(target_revision_id)\n\n response = self._post_request(url)\n self._handle_bad_response(response)", "def rollback_workflow(self, execution_id):\n raise NotImpl...
[ "0.7157276", "0.65649027", "0.6443033", "0.6164854", "0.61058706", "0.60597956", "0.60287595", "0.5946078", "0.5806377", "0.5673372", "0.56334734", "0.56002426", "0.5596955", "0.5592444", "0.5548116", "0.5537198", "0.5529087", "0.5519438", "0.54865223", "0.54377615", "0.54224...
0.6575445
1
Get the rollback status of a skill given an associated rollbackRequestId. Use ~latest in place of rollbackRequestId to get the latest rollback status.
def get_rollback_for_skill_v1(self, skill_id, rollback_request_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, RollbackRequestStatus_71665366] operation_name = "get_rollback_for_skill_v1" params = locals() for ke...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rollback_skill_v1(self, skill_id, create_rollback_request, **kwargs):\n # type: (str, CreateRollbackRequest_e7747a32, **Any) -> Union[ApiResponse, object, CreateRollbackResponse_5a2e8250, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"rollback_skill_v1\"\n params...
[ "0.6188353", "0.5348794", "0.50636834", "0.49248162", "0.4864631", "0.4824027", "0.4814775", "0.4814775", "0.4810125", "0.47206628", "0.46720722", "0.4601886", "0.4582974", "0.45225385", "0.4521484", "0.45111957", "0.44771323", "0.44711003", "0.44195473", "0.44100633", "0.440...
0.719928
0
Simulate executing a skill with the given id. This is an asynchronous API that simulates a skill execution in the Alexa ecosystem given an utterance text of what a customer would say to Alexa. A successful response will contain a header with the location of the simulation resource. In cases where requests to this API r...
def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs): # type: (str, SimulationsApiRequest_606eed02, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] operation_name = "simulate_skill_v1" params = locals() fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs):\n # type: (str, str, SimulationsApiRequest_ae2e6503, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a]\n operation_name = \"simulate_skill_v2\"\n params...
[ "0.6684668", "0.60161704", "0.57356066", "0.55610174", "0.5556969", "0.54888636", "0.5188477", "0.5132964", "0.51322925", "0.5122536", "0.51062113", "0.5103608", "0.5095683", "0.50377196", "0.50327593", "0.49875507", "0.49757802", "0.49560156", "0.4947358", "0.49434194", "0.4...
0.7329467
0
Get top level information and status of a Smart Home capability evaluation. Get top level information and status of a Smart Home capability evaluation.
def get_smart_home_capability_evaluation_v1(self, skill_id, evaluation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f] operation_name = "get_smart_home_capability_evaluation_v1" params = l...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_get_hyperflex_capability_info_list(self):\n pass", "async def get_capability_report(self):\n if self.query_reply_data.get(\n PrivateConstants.CAPABILITY_QUERY) is None:\n await self._send_sysex(PrivateConstants.CAPABILITY_QUERY, None)\n while self.query...
[ "0.59970254", "0.58907706", "0.58907706", "0.588435", "0.5783326", "0.5717561", "0.5607293", "0.5583511", "0.5554896", "0.5549661", "0.5512408", "0.55064833", "0.5498162", "0.5478075", "0.5438951", "0.5420143", "0.5403651", "0.5392647", "0.53825986", "0.53586215", "0.535828",...
0.6896341
0
List Smart Home capability evaluation runs for a skill. List Smart Home capability evaluation runs for a skill.
def list_smarthome_capability_evaluations_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityEvaluationsResponse_e6fe49d5, BadRequestError_f854b05] operation_name = "list_smarthome_capability_evaluations_v1" params = local...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_smart_home_capability_evaluation_v1(self, skill_id, evaluation_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f]\n operation_name = \"get_smart_home_capability_evaluation_v1\"\n ...
[ "0.5974147", "0.55311066", "0.55134237", "0.5457463", "0.53889436", "0.5352742", "0.53285867", "0.5295565", "0.5224027", "0.5071003", "0.50637674", "0.5046169", "0.49195978", "0.49133945", "0.49074385", "0.4904921", "0.4887613", "0.4860214", "0.48416483", "0.48318592", "0.482...
0.63355774
0
Start a capability evaluation against a Smart Home skill. Start a capability evaluation against a Smart Home skill.
def create_smarthome_capability_evaluation_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, EvaluateSHCapabilityResponse_38ae7f22] operation_name = "create_smarthome_capability_evaluation_v1" params = locals() for k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_smart_home_capability_evaluation_v1(self, skill_id, evaluation_id, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResponse_d484531f]\n operation_name = \"get_smart_home_capability_evaluation_v1\"\n ...
[ "0.62772197", "0.5553884", "0.54501694", "0.5428658", "0.54112387", "0.5186431", "0.5139538", "0.5126761", "0.5113529", "0.508713", "0.5083189", "0.5056585", "0.50493526", "0.50450873", "0.5036143", "0.5013719", "0.501051", "0.5009153", "0.49964237", "0.49895394", "0.4989269"...
0.6188139
1
List all the test plan names and ids for a given skill ID. List all the test plan names and ids for a given skill ID.
def list_smarthome_capability_test_plans_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, ListSHCapabilityTestPlansResponse_cb289d6, BadRequestError_f854b05] operation_name = "list_smarthome_capability_test_plans_v1" params = locals() for k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def list(ctx):\n handler = ValidateCommandHandler(ctx.obj['qa_dir'])\n if handler.validate():\n handler = ListCommandHandler(ctx.obj['qa_dir'])\n handler.show_test_case_tree()\n else:\n exit(1)", "def list_suites(arn=None, nextToken=None):\n pass", "def get(cls, plan_id):\n ...
[ "0.56431407", "0.55883217", "0.5554718", "0.5404543", "0.5404047", "0.5321804", "0.5203172", "0.51931494", "0.516061", "0.51549864", "0.5103691", "0.50883895", "0.50455576", "0.50242794", "0.5016513", "0.50162756", "0.500834", "0.49830192", "0.4971972", "0.4864909", "0.486072...
0.68275034
0
Updates the ssl certificates associated with this skill.
def set_ssl_certificates_v1(self, skill_id, ssl_certificate_payload, **kwargs): # type: (str, SSLCertificatePayload_97891902, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_ssl_certificates_v1" params = locals() for key, va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_ssl(self):\n for params in self.config.get_ssl_params():\n self.connection.transport.set_ssl(**params)", "def get_ssl_certificates_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, SSLCertificatePayload_97891902]\n ...
[ "0.6306607", "0.6258621", "0.5748135", "0.5698498", "0.55363846", "0.5513241", "0.54940665", "0.54402393", "0.539449", "0.536771", "0.5336908", "0.5336089", "0.5336076", "0.53339297", "0.53305984", "0.531012", "0.5247898", "0.5241155", "0.5202548", "0.52011997", "0.5197142", ...
0.71147346
0