query
stringlengths
9
3.4k
document
stringlengths
9
87.4k
metadata
dict
negatives
listlengths
4
101
negative_scores
listlengths
4
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
The Intent Request History API provides customers with the aggregated and anonymized transcription of user speech data and intent request details for their skills.
def get_utterance_data_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, IntentRequests_35db15c7] operation_name = "get_utterance_data_v1" params = locals() for key, val in six.iteritems(param...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def on_intent(request, session):\n\n intent_name = request['intent']['name']\n \n # process the intents\n if intent_name == \"AMAZON.HelpIntent\":\n return get_help_response()\n \n elif intent_name == \"AMAZON.StopIntent\":\n return get_stop_response()\n \n elif intent_name ==...
[ "0.5975745", "0.59443635", "0.59332824", "0.5906917", "0.5881811", "0.585539", "0.5846313", "0.57516015", "0.57354033", "0.57280463", "0.5706581", "0.5704124", "0.5685997", "0.56387645", "0.56266946", "0.5604843", "0.5600372", "0.5581917", "0.55706596", "0.5558074", "0.553673...
0.52278984
42
Creates a new import for a skill with given skillId.
def import_skill_package_v1(self, update_skill_with_package_request, skill_id, **kwargs): # type: (UpdateSkillWithPackageRequest_d74ee124, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "import_skill_package_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def load(self, skillName):\r\n es.load(\"%s/skills/%s\" % (info.basename, skillName))", "def purchase_import(self, cr, uid, ids, context=None):\n wizard_row = self.browse(cr, uid, ids)[0]\n if wizard_row.add_import == 'add':\n self.pool.get('purchase.import').write(cr, uid, [wizar...
[ "0.55616343", "0.5328045", "0.5267162", "0.52340657", "0.52318424", "0.5223543", "0.51295877", "0.51170886", "0.5003149", "0.49940902", "0.495634", "0.4948798", "0.49391887", "0.49206275", "0.4879575", "0.48676562", "0.4826232", "0.48257768", "0.48089156", "0.4802224", "0.480...
0.5285822
2
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 analytic metrics report of skill usage.
def get_skill_metrics_v1(self, skill_id, start_time, end_time, period, metric, stage, skill_type, **kwargs): # type: (str, datetime, datetime, str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, GetMetricDataResponse_722e44c4] operation_name = "g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_metrics(self):\n return None", "def metrics(self):\r\n url = '{0}/{1}'.format(self.get_url(), 'metrics')\r\n\r\n return http.Request('GET', url), parsers.parse_json", "def get_metrics(self):\n self.logger.debug(\"Fetching metrics.\")\n return self._api_query(\"metrics...
[ "0.65650356", "0.6549991", "0.6486164", "0.63783777", "0.63731235", "0.6365868", "0.63540804", "0.61958176", "0.6169782", "0.61414766", "0.61379933", "0.6119295", "0.6119295", "0.61065763", "0.6031916", "0.599214", "0.5984341", "0.598343", "0.5877008", "0.58672994", "0.583902...
0.539101
54
Get the annotations of an NLU annotation set
def get_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, accept, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "get_annotations_for_nlu_annotation_sets_v1" params = locals() for key, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_annotations(graph):\n return set(_annotation_iter_helper(graph))", "def annotations(self):\n return self._annotations", "def annotations(self):\n\n return self._annotations", "def annotations(self) -> Iterator['Annotation']:\n return itertools.chain(self.footnotecitations.all(...
[ "0.69031054", "0.6677615", "0.65363425", "0.6476674", "0.6426018", "0.6426018", "0.64226246", "0.62991834", "0.62097347", "0.61916", "0.613684", "0.608403", "0.60689104", "0.6026338", "0.6020968", "0.60130423", "0.6007864", "0.594465", "0.59440196", "0.5916477", "0.5905009", ...
0.5958304
17
Replace the annotations in NLU annotation set. API which replaces the annotations in NLU annotation set.
def update_annotations_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, content_type, update_nlu_annotation_set_annotations_request, **kwargs): # type: (str, str, str, UpdateNLUAnnotationSetAnnotationsRequest_b336fe43, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _convert_annotations(self, ast):\n self.annotations = IDLAnnotations(ast)", "def changeAnnotations(folderPathToReannotate, annotationTochange=[u'0.3', u'1.1']):\n # transform the annotation into a list if need be\n if type(annotationTochange) is str:\n annotationTochange = [annotationToch...
[ "0.64360386", "0.60654074", "0.59621084", "0.5841045", "0.5724354", "0.5671179", "0.5601669", "0.547775", "0.54206854", "0.53970265", "0.53893137", "0.5368624", "0.5355802", "0.531687", "0.53094447", "0.52895725", "0.5284879", "0.52607363", "0.5236418", "0.52221096", "0.51991...
0.5350982
13
Delete the NLU annotation set API which deletes the NLU annotation set. Developers cannot get/list the deleted annotation set.
def delete_properties_for_nlu_annotation_sets_v1(self, skill_id, annotation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05] operation_name = "delete_properties_for_nlu_annotation_sets_v1" params = locals() for key, val in si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(log, session, args):\n log('imageset id: {highlight}{id}{reset}',\n highlight=Fore.GREEN,\n id=args.id,\n reset=Style.RESET_ALL)\n log.warn('delete imageset command coming soon.')", "def DeleteAnnotation(self, request, context):\n context.set_code(grpc.StatusCode.UNIMPLEM...
[ "0.61100835", "0.6099538", "0.6026371", "0.5937497", "0.5935791", "0.5843384", "0.5839409", "0.58067745", "0.57940924", "0.57872975", "0.5676159", "0.5660978", "0.5557317", "0.55526954", "0.5514938", "0.54952765", "0.548906", "0.5474193", "0.54380107", "0.5416146", "0.5361844...
0.6059424
2
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
Start an evaluation against the NLU model built by the skill's interaction model. This is an asynchronous API that starts an evaluation against the NLU model built by the skill's interaction model. The operation outputs an evaluationId which allows the retrieval of the current status of the operation and the results up...
def create_nlu_evaluations_v1(self, evaluate_nlu_request, skill_id, **kwargs): # type: (EvaluateNLURequest_7a358f6a, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, EvaluateResponse_640ae5b5, BadRequestError_f854b05] operation_name = "create_nlu_evaluations_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pollination(self):\n self.validate_req(ignore_failure=False)\n runner_fn = self.model_runner.execute_model\n return self.do_handle_request(runner_fn)", "def train(self, request):\n model = request.get(\"model\")\n if not model:\n raise MONAILabelException(\n ...
[ "0.6284673", "0.60265243", "0.59547323", "0.5799006", "0.5770082", "0.5749229", "0.57048935", "0.56309164", "0.5616764", "0.56040764", "0.5603751", "0.5581091", "0.556787", "0.5516993", "0.55099595", "0.5481997", "0.5442271", "0.5432959", "0.54320693", "0.54292905", "0.540037...
0.55370665
13
If the skill is in certified stage, initiate publishing immediately or set a date at which the skill can publish at.
def publish_skill_v1(self, skill_id, accept_language, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "publish_skill_v1" params = locals() for key, val in six.iteri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def publish(self):\n self.published_date = timezone.now\n self.save()", "def publish(self):\n self.published_date = timezone.now()\n self.save()", "def publish(self):\n self.published_date = timezone.now()\n self.save()", "def publish(self):\n\n\t\tself.patient_updat...
[ "0.6139737", "0.6088127", "0.6088127", "0.6069988", "0.6007849", "0.6007849", "0.57744646", "0.5622804", "0.55984724", "0.5545839", "0.5397212", "0.5316232", "0.5267693", "0.52369624", "0.52028894", "0.5184489", "0.51832175", "0.51832175", "0.51654494", "0.5162127", "0.516097...
0.46715784
92
Retrieves the latest skill publishing details of the certified stage of the skill. The publishesAtDate and status of skill publishing.
def get_skill_publications_v1(self, skill_id, accept_language, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, SkillPublicationResponse_8da9d720, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_publications_v1" params = locals() for key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_published(self):\n return self.filter(status=\"P\")", "def _get_published(self):\n return self.__published", "def get_published_date(self):\n return self._get_date_or_timestamp('published')", "def getStateToPublishFor(self, perspective):\n return self.getStateToPublish()", "...
[ "0.5538585", "0.5419668", "0.5204456", "0.5102409", "0.48306692", "0.46843073", "0.46584135", "0.4643526", "0.4628663", "0.4586089", "0.45771012", "0.4550979", "0.45448056", "0.4540499", "0.45248336", "0.45111272", "0.45102838", "0.4492016", "0.44600797", "0.44515413", "0.445...
0.4688753
5
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 the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where req...
def get_skill_simulation_v1(self, skill_id, simulation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc] operation_name = "get_skill_simulation_v1" params = locals() for key, val in six.iterite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_run_simulation_stores_result(self):\n sim = ss.Simulation()\n assert sim.results == []\n sim.run_simulation(10)\n assert sim.results != []\n assert len(sim.results) == 10", "def result(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"result\")", "def r...
[ "0.66140985", "0.6231095", "0.61226076", "0.6000465", "0.59767276", "0.5944877", "0.58624953", "0.5851733", "0.58218324", "0.5814023", "0.57993394", "0.57655644", "0.5716944", "0.5702603", "0.5683357", "0.568205", "0.56808686", "0.5680091", "0.5678076", "0.5651509", "0.563247...
0.5857453
7
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
Get test case results for an evaluation run. Get test case results for an evaluation run.
def get_smarthome_capablity_evaluation_results_v1(self, skill_id, evaluation_id, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, GetSHCapabilityEvaluationResultsResponse_9a1d4db0] operation_name = "get_smarthome_capablity_evaluation_results_v1"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_results(self):\n self.report('Checking finished evaluations.')\n outputs = {}\n while self.indices_to_retrieve:\n idx = self.indices_to_retrieve.pop(0)\n key = self.eval_key(idx)\n self.report('Retrieving output for evaluation {}'.format(idx))\n ...
[ "0.67972434", "0.67898506", "0.67518795", "0.6640785", "0.65417534", "0.652186", "0.6521805", "0.6479595", "0.64687806", "0.6414963", "0.6361706", "0.6311367", "0.6309608", "0.6301753", "0.6293749", "0.6262681", "0.6259872", "0.6247412", "0.6241617", "0.62381506", "0.62381506...
0.0
-1
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
Returns the ssl certificate sets currently associated with this skill. Sets consist of one ssl certificate blob associated with a region as well as the default certificate for the skill.
def get_ssl_certificates_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, SSLCertificatePayload_97891902] operation_name = "get_ssl_certificates_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fetch_x509_bundles(self) -> X509BundleSet:", "def certificates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:\n return pulumi.get(self, \"certificates\")", "def certificates(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:\n return pulumi.get(self, \"certificates\"...
[ "0.6049936", "0.5830832", "0.5830832", "0.5774846", "0.5774846", "0.57677776", "0.5572336", "0.55494857", "0.5494699", "0.5419704", "0.5395157", "0.5366784", "0.5348994", "0.5296046", "0.5263906", "0.5238095", "0.52275676", "0.5171488", "0.51631576", "0.512164", "0.50952315",...
0.5749322
6
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
Deletes the enablement for given skillId/stage and customerId (retrieved from Auth token).
def delete_skill_enablement_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_skill_enablement_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(self, customerguid, jobguid=\"\", executionparams=None):", "def delete(self, stage_id):\n was_killed = self.staging_service.kill_process_of_stage_order(stage_id)\n if was_killed:\n self.set_status(NO_CONTENT)\n else:\n self.set_status(INTERNAL_SERVER_ERROR,\n...
[ "0.602979", "0.58418995", "0.54291016", "0.54278046", "0.5400935", "0.5389526", "0.535687", "0.5331528", "0.5319464", "0.5280911", "0.5278951", "0.52693886", "0.5259713", "0.52176064", "0.52004325", "0.5174218", "0.5165518", "0.5154062", "0.51538026", "0.514276", "0.51390976"...
0.68601894
0
Checks whether an enablement exist for given skillId/stage and customerId (retrieved from Auth token)
def get_skill_enablement_status_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_enablement_status_v1" params = locals() for key, val in six.iteritems(params['kwar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set_skill_enablement_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"set_skill_enablement_v1\"\n params = locals()\n for key, val in six.iteritems(params['kwargs'...
[ "0.6090357", "0.561119", "0.54877293", "0.51553667", "0.5133626", "0.507918", "0.50128716", "0.5011236", "0.49842843", "0.49654028", "0.4948384", "0.49361253", "0.4929839", "0.49206465", "0.490764", "0.48858306", "0.48345122", "0.48265818", "0.48164898", "0.48089364", "0.4788...
0.6131015
0
Creates/Updates the enablement for given skillId/stage and customerId (retrieved from Auth token)
def set_skill_enablement_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_skill_enablement_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_skill_enablement_v1(self, skill_id, stage, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"delete_skill_enablement_v1\"\n params = locals()\n for key, val in six.iteritems(params['k...
[ "0.60831606", "0.58041424", "0.54635733", "0.5185661", "0.5182032", "0.51508754", "0.5087371", "0.50694853", "0.49154156", "0.4913449", "0.4885336", "0.48156297", "0.4790354", "0.47659588", "0.47657377", "0.4749646", "0.4744482", "0.4742327", "0.47352886", "0.47029427", "0.46...
0.72542006
0
Creates a new export for a skill with given skillId and stage.
def create_export_request_for_skill_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "create_export_request_for_skill_v1" params = locals() for key, val in six.iteritems(para...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def create_stage(self, ApiId: str, StageName: str, AccessLogSettings: Dict = None, ClientCertificateId: str = None, DefaultRouteSettings: Dict = None, DeploymentId: str = None, Description: str = None, RouteSettings: Dict = None, StageVariables: Dict = None) -> Dict:\n pass", "def copy_stage(self, stack_i...
[ "0.5956866", "0.55754095", "0.5476709", "0.5302441", "0.5278265", "0.52532685", "0.5133455", "0.51053697", "0.5054077", "0.5003153", "0.49137205", "0.4842088", "0.4833242", "0.4788251", "0.47626925", "0.47567585", "0.47514442", "0.4733472", "0.47299838", "0.47062933", "0.4669...
0.73437005
0
Get the list of inskill products for the skillId.
def get_isp_list_for_skill_id_v1(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ListInSkillProductResponse_505e7307] operation_name = "get_isp_list_for_skill_id_v1" params = locals() for key, val in six.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_products(self):\n return [item.code for item in self._products]", "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 list_products...
[ "0.59632087", "0.59197265", "0.590533", "0.5828244", "0.57245255", "0.5663034", "0.56141776", "0.55580974", "0.55575114", "0.5537327", "0.553261", "0.55187964", "0.5504587", "0.54901576", "0.54774684", "0.54679954", "0.54339874", "0.5425092", "0.5394326", "0.53756917", "0.536...
0.70336187
0
Profile a test utterance. This is a synchronous API that profiles an utterance against interaction model.
def profile_nlu_v1(self, profile_nlu_request, skill_id, stage, locale, **kwargs): # type: (ProfileNluRequest_501c0d87, str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ProfileNluResponse_d24b74c1] operation_name = "profile_nlu_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def profile(self, ctx:utils.Context):\n\n pass", "def profile_step(self):\n import profile\n\n profile.run(\"world.step()\")", "def test_31_user_profile_progress(self, mock):\r\n self.register()\r\n self.new_application()\r\n app = db.session.query(App).first()\r...
[ "0.6251146", "0.57373726", "0.5433998", "0.5433186", "0.5376846", "0.523557", "0.51288235", "0.50838727", "0.50833046", "0.50705", "0.49721336", "0.49471536", "0.4924052", "0.49226034", "0.49190837", "0.49084416", "0.48929763", "0.4891651", "0.48402515", "0.4830155", "0.48110...
0.0
-1
Delete AccountLinking information of a skill for the given stage.
def delete_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "delete_account_linking_info_v1" params = locals() for key, val in six.iteritems(params['k...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete_stage(stage):\n folder = stage_folder(stage)\n shutil.rmtree(folder) # delete old\n ensure_path(folder) # create new", "def delete_account(self, account):\n \n pass", "def delprofile(variable, account):\n stm = shared_morphene_instance()\n if mph.rpc is not None:\n ...
[ "0.59574074", "0.5869852", "0.55502105", "0.5394746", "0.53713995", "0.53487486", "0.5339688", "0.5338711", "0.5329208", "0.5319457", "0.5267009", "0.5248969", "0.5230982", "0.5224596", "0.5199011", "0.5187306", "0.51706123", "0.515707", "0.5131738", "0.51230943", "0.5116736"...
0.63780856
0
Get AccountLinking information for the skill.
def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, AccountLinkingResponse_b1f92882, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_account_linking_info_v1" params = locals() for key, val...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_account_details(self):\n pass", "def account_info(self):\n url, params, headers = self.request(\"/account/info\", method='GET')\n\n return self.rest_client.GET(url, headers)", "def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_request, **kwargs):\n ...
[ "0.6023335", "0.5835163", "0.5693071", "0.5611704", "0.55987525", "0.55865586", "0.54766816", "0.54766816", "0.539679", "0.53627443", "0.5356714", "0.531904", "0.52245855", "0.52083486", "0.51816183", "0.51422125", "0.5121313", "0.5116706", "0.5106151", "0.5069737", "0.505083...
0.65804845
0
Create AccountLinking information for the skill.
def update_account_linking_info_v1(self, skill_id, stage_v2, account_linking_request, **kwargs): # type: (str, str, AccountLinkingRequest_cac174e, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "update_account_linking_info_v1" params = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_account_linking_info_v1(self, skill_id, stage_v2, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, AccountLinkingResponse_b1f92882, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"get_account_linking_info_v1\"\n params = locals()\n f...
[ "0.5784822", "0.56779265", "0.5625924", "0.55338156", "0.53889227", "0.5382797", "0.5333097", "0.52733284", "0.5263881", "0.52172035", "0.5188085", "0.5145356", "0.5105096", "0.50658125", "0.50535816", "0.50370497", "0.502856", "0.49960983", "0.49535173", "0.49480695", "0.493...
0.5760728
1
Creates a new clone locale workflow for a skill with given skillId, source locale, and target locales. In a single workflow, a locale can be cloned to multiple target locales. However, only one such workflow can be started at any time.
def clone_locale_v1(self, skill_id, stage_v2, clone_locale_request, **kwargs): # type: (str, str, CloneLocaleRequest_2e00cdf4, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "clone_locale_v1" params = locals() for key, val in si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed]\n operation_name = \"get_clone_locale_status_v1\"\n ...
[ "0.52280587", "0.51885384", "0.49525946", "0.48021084", "0.4720899", "0.46277058", "0.45962957", "0.45327118", "0.44870907", "0.44661537", "0.44243488", "0.43685842", "0.42493874", "0.42013294", "0.4179492", "0.41775367", "0.4125034", "0.41231197", "0.4115265", "0.41032803", ...
0.6417149
0
Returns the status of a clone locale workflow associated with the unique identifier of cloneLocaleRequestId.
def get_clone_locale_status_v1(self, skill_id, stage_v2, clone_locale_request_id, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, CloneLocaleStatusResponse_8b6e06ed] operation_name = "get_clone_locale_status_v1" params ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clone_list_status(self, clone_id=None):\n return self.request( \"clone-list-status\", {\n 'clone_id': [ clone_id, 'clone-id', [ CloneIdInfo, 'None' ], False ],\n }, {\n 'status': [ OpsInfo, True ],\n } )", "def clone_locale_v1(self, skill_id, stage_v2, clone_locale_...
[ "0.60118484", "0.5969789", "0.55662626", "0.52257687", "0.4927066", "0.4838041", "0.4720488", "0.4703005", "0.45899856", "0.45641983", "0.4541535", "0.45344925", "0.4407275", "0.43921122", "0.4388319", "0.43734744", "0.43686804", "0.43637437", "0.4355599", "0.43407077", "0.43...
0.72772926
0
Gets the `InteractionModel` for the skill in the given stage. The path params skillId, stage and locale are required.
def get_interaction_model_v1(self, skill_id, stage_v2, locale, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] operation_name = "get_interaction_model_v1" params = locals() for key...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs):\n # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"get_interaction_model_metadata_v1\"\n params = locals()\n for key, ...
[ "0.5837195", "0.5794024", "0.556514", "0.5178054", "0.51161706", "0.4783202", "0.47309718", "0.4666063", "0.46613026", "0.46403983", "0.45909518", "0.4589444", "0.4541329", "0.45185766", "0.4510075", "0.4501116", "0.44332525", "0.436137", "0.43485343", "0.4298251", "0.4294916...
0.6707876
0
Get the latest metadata for the interaction model resource for the given stage.
def get_interaction_model_metadata_v1(self, skill_id, stage_v2, locale, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_interaction_model_metadata_v1" params = locals() for key, val in six....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetMetadata(self):\n return self.dict['meta']", "def get_meta(self, asset):\n return self.get_name_and_meta(asset)[1]", "def get_metadata(self):\n return self.client._perform_json(\n \"GET\", \"/projects/%s/recipes/%s/metadata\" % (self.project_key, self.recipe_name))", "d...
[ "0.5911714", "0.57878506", "0.57386035", "0.5707091", "0.5663949", "0.5645059", "0.5631441", "0.56249875", "0.5616429", "0.5614249", "0.5603121", "0.5526336", "0.5508406", "0.5476009", "0.5439216", "0.54357475", "0.53564376", "0.53554016", "0.5336443", "0.5334079", "0.5324385...
0.5774541
2
Creates an `InteractionModel` for the skill.
def set_interaction_model_v1(self, skill_id, stage_v2, locale, interaction_model, **kwargs): # type: (str, str, str, InteractionModelData_487fc9ea, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "set_interaction_model_v1" params = local...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def new_skill_interaction(self, skill):\n self.skill_interact[skill] = True", "def create_model(self): # noqa: D103\n # reference for creation of the model https://yilundu.github.io/2016/12/24/Deep-Q-Learning-on-Space-Invaders.html\n model=Sequential()\n model.add(Flatten( input_shap...
[ "0.60726064", "0.6021736", "0.5917517", "0.5830755", "0.58138216", "0.57199407", "0.5701338", "0.5674799", "0.5674799", "0.55870616", "0.5459021", "0.5412884", "0.5367186", "0.5362241", "0.5361503", "0.53461206", "0.52469105", "0.5208817", "0.52027416", "0.5147763", "0.513562...
0.5737896
5
Get the list of interactionModel versions of a skill for the vendor.
def list_interaction_model_versions_v1(self, skill_id, stage_v2, locale, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, ListResponse_cb936759] operation_name = "list_interaction_model_versions_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ListModelVersions(self, request, context):\n context.set_code(grpc.StatusCode.UNIMPLEMENTED)\n context.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')", "def list_versions_for_skill_v1(self, skill_id, **kwargs):\n # type: (str, **Any) -> Union[Api...
[ "0.5731109", "0.5648163", "0.554995", "0.5511418", "0.5418477", "0.5396421", "0.53299284", "0.53104043", "0.5279472", "0.5241545", "0.52111715", "0.5177248", "0.5130413", "0.51191485", "0.50555", "0.5019464", "0.4986843", "0.49674267", "0.49502325", "0.49276555", "0.49149188"...
0.6314473
0
Gets the specified version `InteractionModel` of a skill for the vendor. Use `~current` as version parameter to get the current version model.
def get_interaction_model_version_v1(self, skill_id, stage_v2, locale, version, **kwargs): # type: (str, str, str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05, InteractionModelData_487fc9ea] operation_name = "get_interaction_model_version_v1" par...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GetModelVersion(self, request, context):\n context.set_code(grpc.StatusCode.UNIMPLEMENTED)\n context.set_details('Method not implemented!')\n raise NotImplementedError('Method not implemented!')", "def get_version():\n global __model\n return __model.__version__", "def model(self):\n ...
[ "0.609386", "0.60471684", "0.59729415", "0.5941532", "0.57474136", "0.5744456", "0.5716244", "0.5673265", "0.5659888", "0.55117637", "0.5506471", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", "0.5478209", ...
0.63348377
0
Returns the skill manifest for given skillId and stage.
def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, SkillManifestEnvelope_fc0e823b, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_manifest_v1" params = locals() for key, val in six.iteri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs):\n # type: (str, str, SkillManifestEnvelope_fc0e823b, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"update_skill_manifest_v1\"\n params = loca...
[ "0.58649564", "0.5746228", "0.5555346", "0.54651296", "0.5207292", "0.51761097", "0.510083", "0.50791603", "0.49944592", "0.48343024", "0.4796685", "0.47939762", "0.4792742", "0.47889155", "0.47459278", "0.47426957", "0.47282284", "0.47118324", "0.46940255", "0.4669653", "0.4...
0.7073502
0
Updates skill manifest for given skillId and stage.
def update_skill_manifest_v1(self, skill_id, stage_v2, update_skill_request, **kwargs): # type: (str, str, SkillManifestEnvelope_fc0e823b, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "update_skill_manifest_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_skill_manifest_v1(self, skill_id, stage_v2, **kwargs):\n # type: (str, str, **Any) -> Union[ApiResponse, object, SkillManifestEnvelope_fc0e823b, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"get_skill_manifest_v1\"\n params = locals()\n for key, val i...
[ "0.58502585", "0.5430659", "0.53458565", "0.53242207", "0.524239", "0.51418185", "0.50488377", "0.50345784", "0.5030059", "0.5013375", "0.49769396", "0.49239406", "0.48924637", "0.48853952", "0.4850959", "0.48124957", "0.4753419", "0.4743147", "0.47148094", "0.4696485", "0.46...
0.7284281
0
Validate a skill. This is an asynchronous API which allows a skill developer to execute various validations against their skill.
def submit_skill_validation_v1(self, validations_api_request, skill_id, stage, **kwargs): # type: (ValidationsApiRequest_6f6e9aec, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] operation_name = "submit_skill_validation_v1" ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def validate(self):\n pass", "def isValidSkill(self, skill):\n try:\n skills = self.skillparser.getSkills()\n skilldetails = skills[skill]\n if skilldetails[1] in self.picks:\n return True\n else:\n return False\n ...
[ "0.6010729", "0.5812646", "0.5616313", "0.5475822", "0.5370258", "0.53629094", "0.5326957", "0.5107442", "0.5104976", "0.50710434", "0.50687855", "0.5041053", "0.50146085", "0.5009241", "0.4996044", "0.4996044", "0.49930954", "0.488412", "0.48531646", "0.48508048", "0.4846190...
0.52880317
7
Get the result of a previously executed validation. This API gets the result of a previously executed validation. A successful response will contain the status of the executed validation. If the validation successfully completed, the response will also contain information related to executed validations. In cases where...
def get_skill_validations_v1(self, skill_id, validation_id, stage, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, ValidationsApiResponse_aa0c51ca] operation_name = "get_skill_validations_v1" params = locals() for key, val ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def post_get_flow_validation_result(\n self, response: flow.FlowValidationResult\n ) -> flow.FlowValidationResult:\n return response", "def __call__(\n self,\n request: flow.GetFlowValidationResultRequest,\n *,\n retry: OptionalRetry = gapic_v1.method....
[ "0.67311496", "0.6351849", "0.6268724", "0.61149883", "0.59914446", "0.5977216", "0.5963601", "0.5923519", "0.5890237", "0.5858971", "0.58581215", "0.58399343", "0.583588", "0.5819876", "0.57954395", "0.5791477", "0.5780989", "0.57737577", "0.57121956", "0.5709402", "0.565178...
0.0
-1
Get the status of skill resource and its subresources for a given skillId.
def get_skill_status_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, SkillStatus_4fdd647b, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "get_skill_status_v1" params = locals() for key, val in six.iteritems(params['kwargs']): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def skills():\n with app.app_context():\n results = Skill.query.all()\n return SkillsResponse(skills=results).json(), 200", "def getSkill(userId, skill=-1) -> list:\n # fetch user\n try:\n user = fetchUser(userId=userId)\n except:\n user = []\n\n skill_temp = -1\n # get ...
[ "0.58685875", "0.5861188", "0.56543297", "0.5603727", "0.558455", "0.55775243", "0.5556538", "0.541805", "0.53480744", "0.5343017", "0.53027284", "0.5294493", "0.5292273", "0.5287303", "0.52758276", "0.5232404", "0.51425916", "0.5097631", "0.5069692", "0.50124115", "0.4996417...
0.7183226
0
Submit the skill for certification.
def submit_skill_for_certification_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "submit_skill_for_certification_v1" params = locals() for key, val in six.iteritems(params['kwargs']):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_approve(self):\n\n username,userpass = self.testdata.find_account_for('toolsubmitter')\n\n self.utils.account.login_as(username,userpass)\n\n self.contribtool.approve(TOOLNAME,TOOLLICENSEDATA)", "def request_certificate(request):\r\n if request.method == \"POST\":\r\n if r...
[ "0.62475556", "0.57329047", "0.56955576", "0.5541429", "0.5416008", "0.5341066", "0.52661514", "0.5255306", "0.52315617", "0.5223188", "0.52101547", "0.5195959", "0.51856583", "0.51673204", "0.51597625", "0.5145797", "0.51179224", "0.5105908", "0.51035655", "0.50881016", "0.5...
0.6781027
0
Retrieve a list of all skill versions associated with this skill id
def list_versions_for_skill_v1(self, skill_id, **kwargs): # type: (str, **Any) -> Union[ApiResponse, object, ListSkillVersionsResponse_7522147d, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "list_versions_for_skill_v1" params = locals() for key, val in six.iterit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ListVersions(self, request, context):\n context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)", "def get_versions(self):\n raise NotImplementedError", "def get_versions():\n ret_obj = {'versions': picard_versions(current_app)}\n return make_response(jsonify(ret_obj), 200)", "def versio...
[ "0.6214144", "0.618844", "0.6146266", "0.6140041", "0.61164033", "0.60716397", "0.60430825", "0.5990867", "0.59689295", "0.59645283", "0.5942911", "0.5922136", "0.58993137", "0.57575744", "0.57575744", "0.57575744", "0.57575744", "0.5735697", "0.5722875", "0.56572497", "0.564...
0.75883734
0
Withdraws the skill from certification.
def withdraw_skill_from_certification_v1(self, skill_id, withdraw_request, **kwargs): # type: (str, WithdrawRequest_d09390b7, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, BadRequestError_f854b05] operation_name = "withdraw_skill_from_certification_v1" params = locals() ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def safeWithdrawal(self):\n if self._after_dead_line():\n # each contributor can withdraw the amount they contributed if the goal was not reached\n if not self._funding_goal_reached.get():\n amount = self._balances[self.msg.sender]\n self._balances[self.ms...
[ "0.6243882", "0.61899906", "0.58751225", "0.58357584", "0.58351916", "0.58030045", "0.5802118", "0.5768247", "0.5725085", "0.5640627", "0.5611762", "0.5605854", "0.5592408", "0.55664814", "0.5524832", "0.5522101", "0.5470772", "0.54591274", "0.544937", "0.5436389", "0.5402934...
0.6694325
0
Creates a new uploadUrl.
def create_upload_url_v1(self, **kwargs): # type: (**Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, UploadResponse_5aa06857] operation_name = "create_upload_url_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CreateUploadUrl(self, request):\n try:\n params = request._serialize()\n headers = request.headers\n body = self.call(\"CreateUploadUrl\", params, headers=headers)\n response = json.loads(body)\n model = models.CreateUploadUrlResponse()\n ...
[ "0.7081635", "0.6394807", "0.60807896", "0.60296756", "0.58865803", "0.5800346", "0.5799432", "0.57690346", "0.57200736", "0.5711087", "0.5669171", "0.5659524", "0.56543523", "0.5627758", "0.5594351", "0.55689734", "0.5558355", "0.55043036", "0.5482108", "0.54724085", "0.5471...
0.60012305
4
Get the list of Vendor information.
def get_vendor_list_v1(self, **kwargs): # type: (**Any) -> Union[ApiResponse, object, Error_fbe913d9, Vendors_f5f1b90b] operation_name = "get_vendor_list_v1" params = locals() for key, val in six.iteritems(params['kwargs']): params[key] = val del params['kwargs'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vendor_list():\n return ['nxos', 'eos', 'cumulus']", "def do_command(self, args):\n vendorops = dbops.Vendors()\n listing = vendorops.list(args)\n ordering = ['vendor_name']\n do_list(listing, ordering)", "def test_listVendorWithNoParams(self):\r\n result = self.client...
[ "0.73159623", "0.708257", "0.66518545", "0.659405", "0.6470233", "0.6464649", "0.6369177", "0.63546693", "0.63237035", "0.6315904", "0.619651", "0.6145371", "0.61172646", "0.60784054", "0.60150975", "0.5963091", "0.5943793", "0.59241074", "0.5872928", "0.58535665", "0.5841368...
0.720569
1
Get the current user permissions about Alexa hosted skill features.
def get_alexa_hosted_skill_user_permissions_v1(self, vendor_id, hosted_skill_permission_type, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, StandardizedError_f5106a89, HostedSkillPermission_eb71ebfb, BadRequestError_f854b05] operation_name = "get_alexa_hosted_skill_user_permissions_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_permissions(self):\n return self.settings[\"permissions\"]", "def permissions(self):\n return self.get_permissions()", "def permissions(self):\n return self.proto.details.appDetails.permission", "def permissions(self) -> discord.Permissions:\n return self.channel.permi...
[ "0.649875", "0.64863604", "0.6361221", "0.6299083", "0.62897897", "0.6254082", "0.6201281", "0.6120911", "0.60678124", "0.6040151", "0.60186857", "0.60140264", "0.59657556", "0.59593827", "0.59526914", "0.59387535", "0.5921706", "0.5914193", "0.5900953", "0.5891893", "0.58915...
0.0
-1
Invokes the Lambda or third party HTTPS endpoint for the given skill against a given stage. 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 endpoin...
def invoke_skill_end_point_v2(self, skill_id, stage, **kwargs): # type: (str, str, **Any) -> Union[ApiResponse, object, BadRequestError_765e0ac6, InvocationsApiResponse_3d7e3234, Error_ea6c1a5a] operation_name = "invoke_skill_end_point_v2" params = locals() for key, val in six.iteritems(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def invoke_skill_v1(self, skill_id, invoke_skill_request, **kwargs):\n # type: (str, InvokeSkillRequest_8cf8aff9, **Any) -> Union[ApiResponse, object, InvokeSkillResponse_6f32f451, StandardizedError_f5106a89, BadRequestError_f854b05]\n operation_name = \"invoke_skill_v1\"\n params = locals()\n...
[ "0.5358969", "0.5293235", "0.528769", "0.50172585", "0.49989742", "0.49976173", "0.49679202", "0.49613965", "0.48948103", "0.48303246", "0.47997808", "0.4771908", "0.4771333", "0.47675943", "0.47169495", "0.47111094", "0.47069886", "0.47030997", "0.46804383", "0.46728724", "0...
0.70120853
0
Simulate executing a skill with the given id against a given stage. 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 ...
def simulate_skill_v2(self, skill_id, stage, simulations_api_request, **kwargs): # type: (str, str, SimulationsApiRequest_ae2e6503, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] operation_name = "simulate_skill_v2" params = locals(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def simulate_skill_v1(self, skill_id, simulations_api_request, **kwargs):\n # type: (str, SimulationsApiRequest_606eed02, **Any) -> Union[ApiResponse, object, Error_fbe913d9, BadRequestError_f854b05, SimulationsApiResponse_328955bc]\n operation_name = \"simulate_skill_v1\"\n params = locals()\...
[ "0.62365896", "0.568461", "0.554595", "0.5485227", "0.540054", "0.5173351", "0.5050576", "0.50475633", "0.4991332", "0.49681288", "0.49511895", "0.4949384", "0.4929767", "0.48983842", "0.48752064", "0.4865798", "0.48548737", "0.4825328", "0.48094267", "0.4808317", "0.48056155...
0.7121819
0
Get the result of a previously executed simulation. This API gets the result of a previously executed simulation. A successful response will contain the status of the executed simulation. If the simulation successfully completed, the response will also contain information related to skill invocation. In cases where req...
def get_skill_simulation_v2(self, skill_id, stage, simulation_id, **kwargs): # type: (str, str, str, **Any) -> Union[ApiResponse, object, SimulationsApiResponse_e4ad17d, BadRequestError_765e0ac6, Error_ea6c1a5a] operation_name = "get_skill_simulation_v2" params = locals() for key, val in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_run_simulation_stores_result(self):\n sim = ss.Simulation()\n assert sim.results == []\n sim.run_simulation(10)\n assert sim.results != []\n assert len(sim.results) == 10", "def result(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"result\")", "def r...
[ "0.66141415", "0.6230993", "0.6123371", "0.6001452", "0.59774196", "0.5945563", "0.5863205", "0.58581805", "0.58518094", "0.5822402", "0.5813942", "0.5798794", "0.5765966", "0.57172877", "0.57031083", "0.56840587", "0.56832373", "0.5679918", "0.5679481", "0.5651915", "0.56318...
0.56812745
17
Brute force O(N^3) square_matrix is a matrix of 0 and 1, 0 means black, 1 means white return the maximum sub square in tuple (start_r, start_c, size)
def maximum_sub_square(square_matrix): if not square_matrix: return (0, 0, 0) n = len(square_matrix) start_r, start_c, size = 0, 0, 0 for i in range(n): # if there is no hope to find larger one, then break if i + size >= n: break # O(n^n) new_c, new_si...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def find_largest_square(serial):\n max_size = 1\n max_square = None\n max_power = -float('inf')\n\n # Precompute all single cell powers\n powers = []\n for y in range(300):\n powers.append([])\n for x in range(300):\n powers[y].append(cell_power(x+1, y+1, serial))\n\n ...
[ "0.6787707", "0.6666938", "0.6283164", "0.60780114", "0.5999622", "0.59710145", "0.5955869", "0.5921515", "0.5901971", "0.5876056", "0.57982016", "0.5794456", "0.5760254", "0.5742327", "0.5723517", "0.57230926", "0.5693841", "0.5693019", "0.5653902", "0.5641276", "0.5639415",...
0.8229806
0
Return the client headers
def fusion_api_get_headers(self): return self.fusion_client._headers.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_headers(self):\n \n return self.headers", "def headers(self):\n return(self.__response.headers)", "def get_headers():\n if not headers:\n headers[\"Content-Type\"] = \"application/json\"\n headers[\"Accept\"] = \"application/json\"\n headers[\"User-Agent\"] = co...
[ "0.833855", "0.8029136", "0.7970608", "0.79633796", "0.788693", "0.788693", "0.788693", "0.78713894", "0.7851205", "0.77699697", "0.77506614", "0.77458376", "0.7726092", "0.76709044", "0.76661724", "0.762796", "0.7622684", "0.75854415", "0.755511", "0.7531388", "0.7506784", ...
0.79288167
4
Returns any single fusion resource by uri `generic keywords`
def fusion_api_get_resource(self, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusion_cli...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_rack(self, uri=None, param='', api=None, headers=None):\n return self.rack.get(uri=uri, api=api, headers=headers, param=param)", "def fusion_api_get_li(self, uri=None, api=None, headers=None, param=''):\n return self.li.get(uri=uri, api=api, headers=headers, param=param)"...
[ "0.5364149", "0.5301263", "0.5261827", "0.5252303", "0.5217312", "0.5171613", "0.5139872", "0.5135265", "0.5113561", "0.50387925", "0.5027206", "0.5027206", "0.50230473", "0.5008003", "0.4985036", "0.4965123", "0.4952138", "0.49429497", "0.4936138", "0.49227104", "0.4913706",...
0.555259
0
Deletes any single fusion resource by uri
def fusion_api_delete_resource(self, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusion_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(self, _uri):\n print(\"Deleting '%s'\"%(_uri))\n response = self.__httpsRequest('DELETE', _uri, '')", "def fusion_api_delete_lsg(self, name=None, uri=None, api=None, headers=None):\n return self.lsg.delete(name=name, uri=uri, api=api, headers=headers)", "def delete(...
[ "0.7476854", "0.70417976", "0.69936746", "0.698172", "0.69173676", "0.6905657", "0.67658347", "0.6746503", "0.6724385", "0.6719894", "0.6693471", "0.6664271", "0.6633366", "0.66274506", "0.6536663", "0.6512758", "0.6498299", "0.6482712", "0.6479271", "0.6465669", "0.64460176"...
0.75143975
0
Issues a POST to the specified uri, passing the supplied body
def fusion_api_generic_post(self, body, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def post(self, uri, body=None, headers=None, auth=False):\n return self.send_request('POST', uri, body, headers, auth)", "def post(cls, uri, payload):\n return cls._perform_request(uri, 'POST', payload)", "def post(self, url, body):\n return self._query(url, 'POST', json=body)", "def _po...
[ "0.8535511", "0.77632564", "0.7578916", "0.73496574", "0.7329019", "0.7243095", "0.72253156", "0.7067578", "0.6989433", "0.697262", "0.6960615", "0.6924673", "0.6922545", "0.6920959", "0.67514145", "0.6717414", "0.6675874", "0.6600211", "0.65936625", "0.65591514", "0.65027267...
0.6580278
19
Issues a PUT to the specified uri, passing the supplied body
def fusion_api_generic_put(self, body, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fusio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def put(self, url, body):\n return self._query(url, 'PUT', json=body)", "def put(self, url, body, headers={}):\n return self.request(url, \"PUT\", body, headers)", "def do_put_request(self, uri, headers, payload, timeout_ms):\n return self._do_request('PUT', uri, headers, payload, timeout_...
[ "0.7973399", "0.79106885", "0.77373075", "0.7534265", "0.7379641", "0.72469896", "0.7090674", "0.6925227", "0.6901426", "0.6850283", "0.68120384", "0.68073547", "0.67984855", "0.6779578", "0.6774575", "0.67280453", "0.66977227", "0.66898906", "0.6688576", "0.667823", "0.66592...
0.7353767
5
Issues a PATCH to the specified uri, passing the supplied body
def fusion_api_generic_patch(self, body, uri, api=None, headers=None): if api: headers = self.fusion_client._set_req_api_version(api=api) elif not headers: headers = self.fusion_client._headers uri = 'https://%s%s' % (self.fusion_client._host, uri) return self.fus...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def patch(self, url, body=None, headers=None):\n return self._request('PATCH', url, body, headers)", "def fusion_api_patch_fabric(self, uri, body, api=None, headers=None):\n return self.fabric.patch(uri, body, api, headers)", "def patch(self, path, body):\n url = urljoin(self.api_endpo...
[ "0.77083725", "0.7659384", "0.7624684", "0.75942343", "0.73600644", "0.7331018", "0.7139078", "0.6876234", "0.6847816", "0.6767257", "0.6766447", "0.67284626", "0.66456074", "0.656354", "0.65493995", "0.65445983", "0.6524909", "0.6506091", "0.64907485", "0.64639413", "0.64432...
0.73655456
4
Takes a list of dictionaries and returns the (first) dictionary that contains the given key value pair
def fusion_api_get_dict_from_list(self, listofDict, key, value): for d in listofDict: if d[key] == value: return d return {}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get(list_of_dict, key, value):\n return filter(lambda dictionary: dictionary[key] == value, list_of_dict)", "def _search_list_of_dictionaries(key, value, list_of_dictionaries):\n\n for element in list_of_dictionaries:\n if element.get(key) == value:\n return element\n ...
[ "0.74982864", "0.7346386", "0.6997044", "0.67986053", "0.6752747", "0.6747529", "0.671175", "0.66192144", "0.6596726", "0.6574854", "0.64542264", "0.6324983", "0.6310137", "0.6189611", "0.61807764", "0.61573076", "0.6144855", "0.60709363", "0.60579413", "0.6054688", "0.602998...
0.7208419
2
Compares the TOP LEVEL keys and values (using regex) of a response Dict vs. validation Dict and returns a dictionary containing overall success, as well as detailed list of keys\values\success.
def fusion_api_validate_response(self, respDict, valDict): success = True returnDict = {} keys = [] for key in valDict: if not valDict[key]: continue # logger._log_to_console_and_log_file('key: %s' % (key)) keyDict = {'key': key, 'expec...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_response(self, response_contents, correct_jsons):\r\n for username, content in response_contents.items():\r\n\r\n # Used in debugger for comparing objects.\r\n # self.maxDiff = None\r\n\r\n # We should compare top_words for manually,\r\n # because they ...
[ "0.6134816", "0.609543", "0.6012108", "0.5904799", "0.5892711", "0.5874886", "0.58204603", "0.58195275", "0.5783584", "0.5708685", "0.56933355", "0.5689764", "0.56611013", "0.56599575", "0.5631075", "0.5600514", "0.5553418", "0.55305266", "0.55140865", "0.5511245", "0.5501298...
0.780489
0
Compares the entire response body (json dict) with the previously created expected (dict). Only the items in the expected are evaluated. Extra items in the response are ignored except in the case of a list [] type. Lists are verified to have the same number of items. When originally written, this function would fail on...
def fusion_api_validate_response_follow(self, expected, response, uriCache={}, wordy=False, depth=0, disable_dict_sorting=False, disable_list_sorting=False, called_by_logged=False): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _check_process_resp(self, resp, expected_fields=None):\n\n if resp.status_code != LenovoRestClient.RESP_CODE_OK:\n raise cexc.NOSRestHTTPError(http_code=resp.status_code,\n http_reason=resp.reason, http_op=resp.request.method,\n url=resp.url, http_res...
[ "0.6131817", "0.6061034", "0.6018319", "0.59335274", "0.5933225", "0.5876628", "0.58536416", "0.5803603", "0.57731", "0.57661444", "0.5750166", "0.5725003", "0.57075226", "0.5703737", "0.56503505", "0.56431496", "0.5613102", "0.56036854", "0.55543786", "0.554258", "0.55344665...
0.6059691
2
Gets a default or paginated collection of Active User Sessions. [Arguments]
def fusion_api_get_active_user_sessions(self, param='', api=None, headers=None): return self.usersessions.get(api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sessions(self, *args, **kwargs):\r\n return self._get('Sessions', *args, **kwargs)", "def get_current_users(self):\n active_sessions = Session.objects.filter(expire_date__gte=timezone.now())\n user_id_list = []\n for session in active_sessions:\n data = session.get_deco...
[ "0.71864796", "0.6988006", "0.6847945", "0.67173547", "0.66936356", "0.6670932", "0.66412026", "0.6618222", "0.65065706", "0.6444773", "0.635706", "0.63448036", "0.63372064", "0.6297656", "0.62879455", "0.624164", "0.6193585", "0.617955", "0.6075609", "0.6055919", "0.60438114...
0.6944533
2
Updates an alert. [Arguments]
def fusion_api_update_alert(self, body, uri, api=None, headers=None): return self.alert.update(body, uri, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alert(self, alert):\n\n self._alert = alert", "def javaScriptAlert(self, frame, message):\n\n self._robot._alert = message\n self._robot.popup_messages = message\n logger.debug(\"alert('%s')\" % message)", "def alert(bot, update, args, job_queue):\n continue_on = 1\n chat_...
[ "0.69158286", "0.6260183", "0.61714727", "0.5955488", "0.5913151", "0.5898235", "0.58023983", "0.5789328", "0.578736", "0.5762784", "0.57449377", "0.5690385", "0.5680187", "0.56483424", "0.56139004", "0.55455244", "0.5529444", "0.5529032", "0.54850477", "0.54788685", "0.54117...
0.7288903
0
Deletes an alert in bulk based on uri. If uri is not specified, ALL alerts are deleted [Arguments]
def fusion_api_delete_alert(self, uri=None, api=None, headers=None, param=''): return self.alert.delete(uri, api, headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def delete(self, _uri):\n print(\"Deleting '%s'\"%(_uri))\n response = self.__httpsRequest('DELETE', _uri, '')", "def delete(self, args, intent):\n if 'all' in args.keys() and args['all'] == True:\n try:\n db = get_db('expressions')\n db_resu...
[ "0.6291771", "0.62217516", "0.6171571", "0.61333543", "0.60093033", "0.5914589", "0.58051556", "0.5781954", "0.56324255", "0.55792224", "0.55427295", "0.5505852", "0.54336566", "0.5425172", "0.5400669", "0.53584784", "0.5339873", "0.5333717", "0.53255534", "0.53215915", "0.53...
0.65942943
0
Deletes an alert's changelog based on alertId. [Arguments]
def fusion_api_delete_alert_changelog(self, alertId=None, api=None, headers=None): return self.alert.delete(alertId, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def test_delete_alert_by_id(self):\n pass", "def delete(\n id: int = typer.Argument(\n ...,\n help=\"ID of the log entry\"\n )\n):\n manager = LogBookManager()\n deleted, message = manager.delete(id)\n\n if deleted:\n typer.echo(\n typer.style(message, fg=typ...
[ "0.6262019", "0.5973016", "0.58163327", "0.5728264", "0.56225884", "0.56118125", "0.5533732", "0.55323935", "0.54949886", "0.5468852", "0.54665476", "0.54625833", "0.5449366", "0.53097075", "0.5272038", "0.52292824", "0.5226958", "0.5222145", "0.52169687", "0.52126294", "0.51...
0.82354224
0
Gets a default or paginated collection of Alerts. [Arguments]
def fusion_api_get_alerts(self, uri=None, param='', api=None, headers=None): return self.alert.get(uri=uri, api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def alerts(self):\n return AlertCollection(client=self)", "def test_v1_alert_list_get(self):\n pass", "def alerts(self):\n return c.Alerts(self)", "def get(self, alert_type, alert_args=None):\n alert_args = alert_args or {}\n\n alerts = self.list()\n return [\n ...
[ "0.6659877", "0.60473365", "0.5916791", "0.580506", "0.5715885", "0.570717", "0.5561448", "0.55372566", "0.5425948", "0.541462", "0.5263494", "0.5185634", "0.515609", "0.5141613", "0.5117468", "0.5085598", "0.50514174", "0.5045851", "0.50416386", "0.5008152", "0.50061446", ...
0.5562335
6
Update the device read community string. This results in an update of the community string on all the rackmounted servers and devices in an enclosure. [Arguments]
def fusion_api_update_appliance_read_community_string(self, body, api=None, headers=None): return self.rc.update(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeviceCommunity(self, **kwargs):\n\n return self.api_request(self._get_method_fullname(\"DeviceCommunity\"), kwargs)", "def community_changes(self, community):\n pass", "def DeviceCommunitySecure(self, **kwargs):\n\n return self.api_request(self._get_method_fullname(\"DeviceCommunitySe...
[ "0.51543146", "0.50361717", "0.48905048", "0.48387185", "0.48207247", "0.48181173", "0.48101094", "0.46338174", "0.4612225", "0.46057886", "0.4605115", "0.45638037", "0.44801793", "0.44793186", "0.44500574", "0.44484317", "0.43733254", "0.4364182", "0.43548748", "0.43480814", ...
0.61829317
0
Retrieves the global community string. [Example] ${resp} = Fusion Api Get Appliance Read Community String | |
def fusion_api_get_appliance_read_community_string(self, api=None, headers=None): return self.rc.get(api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def community(self):\n return self._community", "def fusion_api_update_appliance_read_community_string(self, body, api=None, headers=None):\n return self.rc.update(body, api, headers)", "def _get_extended_community(self):\n return self.__extended_community", "def get_latest_community(sel...
[ "0.609412", "0.60336554", "0.5709522", "0.5464909", "0.5363651", "0.5267703", "0.52122504", "0.51907164", "0.5050455", "0.5021374", "0.49875236", "0.49829078", "0.49786323", "0.49206883", "0.48999393", "0.48586422", "0.47954577", "0.47920048", "0.47856095", "0.47722608", "0.4...
0.7556748
0
Agrees\Disagrees with the EULA [Arguments]
def fusion_api_save_eula(self, host, supportAccess='yes', api=None, headers=None): return self.eula.save(host, supportAccess, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eula_prompt():\n current_file = inspect.getfile(inspect.currentframe())\n current_dir = os.path.dirname(os.path.abspath(current_file))\n eula = os.path.join(current_dir, \"EULA.html\")\n form = cmds.setParent(q=True)\n cmds.formLayout(form, e=True, width=500)\n heading = cmds.text(\n l...
[ "0.6526118", "0.6317502", "0.56832045", "0.55683035", "0.55242896", "0.55242896", "0.5458054", "0.5458054", "0.53733444", "0.53656477", "0.53167796", "0.5290755", "0.5235229", "0.5205451", "0.51899123", "0.5171722", "0.5156693", "0.51322085", "0.51304555", "0.5108692", "0.510...
0.0
-1
Retrieves the EULA status [Example] ${resp} = Fusion Api Eula Status | |
def fusion_api_eula_status(self, api=None, headers=None): return self.eula.save(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_status():\n data = {\n 'status': 'up',\n }\n jsn = json.dumps(data)\n\n resp = Response(jsn, status=200, mimetype='application/json')\n\n return resp", "def get_patient_status():\n r = requests.get(\"http://vcm-7474.vm.duke.edu:5000/api/heart_rate/3\")\n print(r.text)", "def...
[ "0.63770556", "0.6142492", "0.61247075", "0.60678786", "0.60083723", "0.59488666", "0.59464103", "0.59203297", "0.5910582", "0.59019333", "0.58966845", "0.58875823", "0.5884239", "0.5875305", "0.5871708", "0.5823951", "0.5812663", "0.58030885", "0.5777332", "0.57773304", "0.5...
0.6223168
1
Start the factory reset operation. The network settings my be preserved if the query parameter is set to PRESERVE_NETWORK. [Arguments]
def fusion_api_appliance_factory_reset(self, mode=None, api=None, headers=None): return self.appfactoryreset.reset(mode, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset(self):\r\n _debug('api.reset()')\r\n self.write('*RST')\r\n self.query('*IDN?') # Pauses operation until fully reset?\r", "def reset(self):\r\n _debug('api.reset()')\r\n self.write('*RST')\r\n self.query('*IDN?') # Pauses operation until fully reset?\r", "def...
[ "0.57205606", "0.57205606", "0.57205606", "0.57205606", "0.5719746", "0.56884176", "0.5685799", "0.56770384", "0.5561677", "0.5535467", "0.552333", "0.5502302", "0.54977584", "0.54102415", "0.5375547", "0.53751975", "0.53489023", "0.5340758", "0.5294936", "0.5283588", "0.5280...
0.0
-1
Gets the status of the upgrade task once after the upgrade completes [Arguments] [Example] ${resp} = Fusion Api Get Appliance Firmware Upgrade Status | |
def fusion_api_get_appliance_firmware_upgrade_status(self, api=None, headers=None): param = '/notification' return self.appfirmware.get(api=api, headers=headers, param=param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def get_status():", "def get_status():\n data = {\n 'status': 'up',\n }\n jsn = json.dumps(data)\n\n resp = Response(jsn, status=200, mimetype='application/json')\n\n return resp", "def get_firmware_update_status(self):\n\n response = self.execute_command(CMD_GET_FIRMWARE_UPD...
[ "0.65604794", "0.62352014", "0.61701816", "0.6165392", "0.60088515", "0.6008357", "0.59645104", "0.5938892", "0.59130305", "0.58647084", "0.5851301", "0.58230835", "0.5815668", "0.57895094", "0.57872385", "0.5784844", "0.5748978", "0.57383335", "0.57311296", "0.5721712", "0.5...
0.690662
0
Initiate upgrade task using uploaded upgrade image [Arguments]
def fusion_api_upgrade_appliance_firmware(self, localfile, api=None, headers=None): param = '?file=%s' % localfile return self.appfirmware.update(api, headers, param)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def upgrade(self):\n # replace '\\' with '/' (For NT system compatability)\n filesplit = upgrade_file.replace('\\\\', '/')\n filesplit = filesplit.split('/')\n shortfilename = filesplit[-1]\n\n #define the JSON data for the multipart\n upgradejsondata = {media: {\"image\":...
[ "0.620931", "0.57124066", "0.567965", "0.56710327", "0.56585896", "0.56331044", "0.5615664", "0.5584519", "0.5553684", "0.5421989", "0.5421989", "0.54139143", "0.5407893", "0.53879476", "0.5365773", "0.52937734", "0.52846754", "0.52616584", "0.5236924", "0.5214032", "0.516380...
0.0
-1
Uploads a .bin patch to the appliance [Arguments]
def fusion_api_upload_appliance_firmware(self, localfile, api=None, headers=None): return self.appfirmware.upload(localfile, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmd_apply_patch(patchfile):\n return ['git', 'apply', patchfile]", "def test_upload_binary(self):\n uploadFile = os.path.join(testdatadir, \"upload.data.gz\")\n r = gracedb.writeFile(eventId, uploadFile)\n self.assertEqual(r.status, 201) # CREATED", "def do_bay_update(cs, args):\n ...
[ "0.58298165", "0.5729203", "0.5651992", "0.54344684", "0.53569436", "0.53304946", "0.5311876", "0.531006", "0.53058237", "0.52997035", "0.52906", "0.52722394", "0.5257846", "0.5225137", "0.52028567", "0.5161977", "0.51578486", "0.51499367", "0.51446944", "0.5139298", "0.51257...
0.0
-1
Retrieves the Appliance Health status [Example] ${resp} = Fusion Api Appliance Health Status | |
def fusion_api_appliance_health_status(self, api=None, headers=None): return self.health.save(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_health_check(self):\n return util.create_response(output=\"OK\")", "def get_health(self):\n return {'status': 'ok'}", "def health_check():\n return dict(api_status='OK')", "def fusion_api_get_appliance_status(self, api=None, headers=None):\n return self.info.get_status(api...
[ "0.7061411", "0.7036524", "0.70134294", "0.6917177", "0.685775", "0.68386054", "0.67727095", "0.67528754", "0.6731155", "0.6671441", "0.6671441", "0.662016", "0.65939665", "0.65796655", "0.6528867", "0.6483408", "0.64728516", "0.6471715", "0.64709246", "0.64495766", "0.642928...
0.6586794
13
Returns a valid request body dictionary to pass to fusion_api_configure_appliance_interfaces [Arguments]
def fusion_api_create_appliance_interfaces_payload(self, body=None, api=None): return self.interfaces.make_body(body, api)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_configure_appliance_interfaces(self, body=None, api=None, headers=None):\n return self.interfaces.configure(body, api, headers)", "def get_interface_initialization_kwargs(self, **kwargs) -> dict:\n return {\n key: value\n for key, value in kwargs.items()\n ...
[ "0.5714076", "0.57095265", "0.560145", "0.54681474", "0.5430471", "0.5424038", "0.5419637", "0.53896075", "0.53837776", "0.5308621", "0.5246314", "0.5194026", "0.5180592", "0.5168699", "0.5140633", "0.51296604", "0.5125179", "0.50711733", "0.50526464", "0.5038075", "0.5023689...
0.6355418
0
Configures appliance interfaces, time, and locale [Arguments]
def fusion_api_configure_appliance_interfaces(self, body=None, api=None, headers=None): return self.interfaces.configure(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_configure_appliance_time_and_locale(self, body=None, api=None, headers=None):\n return self.timeandlocale.configure(body, api, headers)", "def checkAndDefaultArgs(args):\n if not args.date:\n args.date = datetime.now().strftime(\"%d/%m/%Y\")\n\n if args.time_in:\n if...
[ "0.658807", "0.5807077", "0.5440832", "0.5435669", "0.5414732", "0.5363084", "0.52593094", "0.5212997", "0.5206959", "0.5206764", "0.51911193", "0.5169161", "0.50945085", "0.5009382", "0.5009382", "0.5009382", "0.49974707", "0.49908954", "0.4990251", "0.4956259", "0.4945176",...
0.0
-1
Returns appliance interfaces, time, and locale [Example] ${resp} = Fusion Api Get Appliance Interfaces | | |
def fusion_api_get_appliance_interfaces(self, api=None, headers=None): return self.interfaces.get(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def intGet(): \n macchanger, ip, iwconfig = pathGet()\n interfaces = []\n a = str(subprocess.check_output(\"{} link show\".format(ip), shell=True))\n ints = a.split(': ')\n for i in range(len(ints)):\n if len(ints[i].split()) == 1:\n if ints[i] not in [\"1\", \"lo\", \"b'1\"]:\n ...
[ "0.6129418", "0.592415", "0.586233", "0.5833587", "0.5555277", "0.55209786", "0.5518274", "0.55138946", "0.54967284", "0.5416245", "0.53760463", "0.53188145", "0.5274189", "0.5272627", "0.52077365", "0.5183069", "0.51734155", "0.51588535", "0.51240015", "0.51147765", "0.51101...
0.6542954
0
Returns MAC address of the appliance interface specified by . [Arguments]
def fusion_api_get_appliance_interface_mac(self, device, api=None, headers=None): return self.interfaces.get_device_mac(device, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_mac_address():\n eth0_interface = 'eth0'\n addresses = netifaces.ifaddresses(eth0_interface)[netifaces.AF_LINK][0]\n mac_address = addresses['addr']\n return mac_address", "def _get_mac_address():\n if not sys.platform.startswith('linux'):\n raise RuntimeError(\n ...
[ "0.7438965", "0.73714024", "0.72774017", "0.7190439", "0.71485204", "0.7091777", "0.6963331", "0.6963331", "0.6826605", "0.6822607", "0.676894", "0.67384803", "0.6708201", "0.67040163", "0.6692525", "0.663507", "0.6617445", "0.6611505", "0.66109604", "0.65829945", "0.65209925...
0.6581179
20
Returns MAC address of the appliance interface specified by . [Arguments]
def fusion_api_get_appliance_interface_attribute(self, device='eth0', attribute='macAddress', api=None, headers=None): return self.interfaces.get_device_attribute(device, attribute, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_mac_address():\n eth0_interface = 'eth0'\n addresses = netifaces.ifaddresses(eth0_interface)[netifaces.AF_LINK][0]\n mac_address = addresses['addr']\n return mac_address", "def _get_mac_address():\n if not sys.platform.startswith('linux'):\n raise RuntimeError(\n ...
[ "0.7440771", "0.7372141", "0.7278997", "0.7190542", "0.71504265", "0.70938945", "0.6963974", "0.6963974", "0.68268675", "0.6822242", "0.6770687", "0.67391485", "0.67098224", "0.67056423", "0.66926587", "0.6636082", "0.6619323", "0.66126704", "0.6611104", "0.65835774", "0.6583...
0.57797307
80
Gets the appliance's status information [Example] ${resp} = Fusion Api Get Appliance Status | |
def fusion_api_get_appliance_status(self, api=None, headers=None): return self.info.get_status(api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_status():\n data = {\n 'status': 'up',\n }\n jsn = json.dumps(data)\n\n resp = Response(jsn, status=200, mimetype='application/json')\n\n return resp", "def get_status(self):\n r = requests.get(self.base_url + '/status')\n return r.json()", "def status(self):\n ...
[ "0.7071417", "0.669771", "0.6697411", "0.66495866", "0.6645041", "0.6572344", "0.6570378", "0.6546204", "0.654606", "0.65379375", "0.65231735", "0.6503739", "0.64886177", "0.6475442", "0.6458086", "0.64383113", "0.642176", "0.6403919", "0.63265085", "0.62873745", "0.6264494",...
0.7710749
0
Gets the appliance's version information [Example] ${resp} = Fusion Api Get Appliance Version | |
def fusion_api_get_appliance_version(self, api=None, headers=None): return self.info.get_version(api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def version():\n response = make_response('{\"version\" : %s }' % app.config.get('VERSION'), 200)\n response.content_type = \"application/json\"\n return response", "def version_get():\n try:\n return json_response.success({'version': version.local_version()})\n except version.Error as e:\n...
[ "0.7194165", "0.71895546", "0.71703166", "0.7068277", "0.70262593", "0.7015712", "0.69781196", "0.6933454", "0.69299096", "0.6899857", "0.6874984", "0.6837599", "0.6784274", "0.6759895", "0.6743399", "0.6726015", "0.66781604", "0.6660853", "0.6617225", "0.6587143", "0.6578284...
0.7203293
0
Start the factory reset operation. The network settings my be preserved if the query parameter is set to PRESERVE_NETWORK. [Arguments]
def fusion_api_appliance_shutdown(self, mode=None, api=None, headers=None): return self.appshutdown.shutdown(mode, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def reset(self):\r\n _debug('api.reset()')\r\n self.write('*RST')\r\n self.query('*IDN?') # Pauses operation until fully reset?\r", "def reset(self):\r\n _debug('api.reset()')\r\n self.write('*RST')\r\n self.query('*IDN?') # Pauses operation until fully reset?\r", "def...
[ "0.57205606", "0.57205606", "0.57205606", "0.57205606", "0.5719746", "0.56884176", "0.5685799", "0.56770384", "0.5561677", "0.5535467", "0.552333", "0.5502302", "0.54977584", "0.54102415", "0.5375547", "0.53751975", "0.53489023", "0.5340758", "0.5294936", "0.5283588", "0.5280...
0.0
-1
Get appliance state [Example] ${resp} = Fusion Api Get Appliance State |
def fusion_api_get_appliance_state(self, appliance): return self.appstate.get(appliance)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def get_resource_state():\n output = [f'{\"S. No.\":6}\\t{\"Resource\":50}\\t{\"Health State\":12}\\t{\"Reason\":100}\\n']\n\n for index, resource in enumerate(HEALTH_AGGREGATOR.resource_state):\n output.append(\n f'{index + 1:<6}\\t{resource:<50}\\t'\n f'{\"Healthy\" if HEALTH_A...
[ "0.6575499", "0.64693236", "0.64353204", "0.64068586", "0.6088605", "0.6075611", "0.6041648", "0.5974168", "0.59656465", "0.5870416", "0.5819571", "0.57874763", "0.57726026", "0.57429564", "0.56989646", "0.5692511", "0.56874037", "0.5601614", "0.5588285", "0.5570118", "0.5563...
0.69704103
0
Generates the support dump in a synchronous manner.The support dump can be encrypted or unencrypted by setting the encrypt flag. [Arguments]
def fusion_api_create_support_dump(self, body, api=None, headers=None): return self.dump.create(body=body, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def includeInDump(self):\n pass", "def genDump(exePath,inputDict,outputDict):\n paramFile = path.join(path.dirname(inputDict),'damo.par')\n with open(paramFile,'w') as f:\n f.write('DUMP'+'\\n')\n f.write(inputDict+'\\n')\n f.write(outputDict)\n runDamocles(exePath, paramFile)\n rem...
[ "0.56395584", "0.55942327", "0.55633354", "0.5410663", "0.5312267", "0.5264852", "0.5244496", "0.5231655", "0.5226117", "0.5212995", "0.51780134", "0.5157841", "0.51458085", "0.5100427", "0.5080124", "0.5077387", "0.50303537", "0.5015353", "0.49873877", "0.49608883", "0.49506...
0.4722705
36
Retrieves the specified support dump and saves it locally. [Arguments]
def fusion_api_download_support_dump(self, uri, localfile, api=None, headers=None): return self.dump.get(uri=uri, localfile=localfile, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_create_fabric_support_dump(self, uri, body, api=None, headers=None):\n params = '/support-dumps'\n return self.fabric.post(uri, body, api, headers, params)", "def get_dump(lang, filename):\n from .utils import get_dump as download\n click.echo('Starting to download Wiki...
[ "0.5763988", "0.55533063", "0.52658886", "0.5232461", "0.5137154", "0.5132785", "0.5127345", "0.5075329", "0.5033584", "0.5018131", "0.5017229", "0.49247614", "0.49243915", "0.49243915", "0.49054408", "0.48881996", "0.48875943", "0.48782125", "0.48453915", "0.48338124", "0.48...
0.5809528
0
Download .bin patch from external server. [Arguments]
def fusion_api_download_upgrade_file(self, uri, localfile, api=None, headers=None, chunk_size=1024): return self.upgrade.get(uri, localfile, api, headers=headers, chunk_size=int(chunk_size))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def download(request):\n if request.patchset.data is None:\n return HttpTextResponse(\n 'Patch set (%s) is too large.' % request.patchset.key.id(),\n status=404)\n padding = ''\n user_agent = request.META.get('HTTP_USER_AGENT')\n if user_agent and 'MSIE' in user_agent:\n # Add 256+ bytes of...
[ "0.6415664", "0.6415664", "0.6318721", "0.6165149", "0.6073887", "0.60656005", "0.59911066", "0.5927048", "0.58605397", "0.58240443", "0.5799248", "0.57971776", "0.5780653", "0.5773757", "0.57632184", "0.57406896", "0.57153517", "0.57138216", "0.57104784", "0.5672988", "0.566...
0.52392375
56
Configures appliance time and locale [Arguments]
def fusion_api_configure_appliance_time_and_locale(self, body=None, api=None, headers=None): return self.timeandlocale.configure(body, api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def checkAndDefaultArgs(args):\n if not args.date:\n args.date = datetime.now().strftime(\"%d/%m/%Y\")\n\n if args.time_in:\n if \"am\" not in args.time_in and \"pm\" not in args.time_in:\n print(\"Invalid time_in string provided: Using default 1pm\")\n args.time_in = \"1p...
[ "0.6263801", "0.5611947", "0.5575541", "0.5507469", "0.5434917", "0.52419883", "0.5239562", "0.51864845", "0.51664406", "0.5156668", "0.5128682", "0.5097738", "0.50857764", "0.5076884", "0.50143385", "0.50018144", "0.49850664", "0.49705616", "0.49607", "0.49502623", "0.492574...
0.68499887
0
Returns appliance time, and locale [Example] ${resp} = Fusion Api Get Appliance Interfaces | | |
def fusion_api_get_appliance_time_and_locale(self, api=None, headers=None): return self.timeandlocale.get(api, headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_configure_appliance_time_and_locale(self, body=None, api=None, headers=None):\n return self.timeandlocale.configure(body, api, headers)", "def get_system_time(self):\r\n method = self.public_endpoints['system_time']['method']\r\n url = self.base_url + self.public_endpoi...
[ "0.5711539", "0.56033796", "0.5578812", "0.55610555", "0.548458", "0.5395302", "0.5336408", "0.5309246", "0.5282827", "0.5265166", "0.51527244", "0.5128419", "0.511608", "0.50852835", "0.5059935", "0.5021352", "0.5005887", "0.49950993", "0.49843264", "0.4951892", "0.49455053"...
0.7146377
0
Returns appliance trap destinations [Example] ${resp} = Fusion Api Get Appliance Trap Destinations | | | |
def fusion_api_get_appliance_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622 return self.trap.get(id=id, param=param, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_get_appliance_snmpv3_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable=W0622\n return self.snmpv3trap.get(id=id, param=param, api=api, headers=headers)", "def traceroute(self,dest):\n\t\tself.tn.write('traceroute %s\\n'%(dest))\n\t\tself.tn.write('ex...
[ "0.5970618", "0.5425277", "0.5258685", "0.5169851", "0.50962853", "0.4999015", "0.4969509", "0.47679025", "0.46750867", "0.4669468", "0.46454915", "0.46285298", "0.46087664", "0.46033296", "0.45980322", "0.45966095", "0.45963508", "0.45782527", "0.45575908", "0.45300308", "0....
0.70147145
0
Validates appliance trap destinations [Example] ${resp} = Fusion Api Get Appliance Trap Destinations | | |
def fusion_api_validate_appliance_trap_destination(self, body=None, api=None, headers=None): return self.trap.validate(body=body, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def validate_response(response: json):\n if \"error\" in response:\n print(\"ERROR: Request returned error\")\n print_request_response(response)\n exit(1)", "def fusion_api_get_appliance_trap_destinations(self, id=None, param='', api=None, headers=None): # pylint: disable...
[ "0.5611637", "0.5527218", "0.5477554", "0.53854334", "0.51200557", "0.51143605", "0.50652254", "0.50519484", "0.5023582", "0.50039655", "0.4974728", "0.49745622", "0.49464026", "0.4939441", "0.49148548", "0.48938537", "0.4878036", "0.48708522", "0.48633423", "0.4861019", "0.4...
0.6713842
0
Adds or updates the specified trap forwarding destination. The trap destination associated with the given id will be updated if a trap destination with that id already exists. If the given id is not found, then a trap destination will be created with the given id. [Example] ${resp} = Fusion Api Add Or Update Appliance ...
def fusion_api_add_or_update_appliance_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622 return self.trap.create(body=body, id=id, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_update_appliance_trap_destination(self, body, id, api=None, headers=None): # pylint: disable=W0622\n return self.trap.put(body=body, id=id, api=api, headers=headers)", "def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: d...
[ "0.7097082", "0.64457333", "0.6294257", "0.5827654", "0.57723075", "0.5516807", "0.5310152", "0.5275602", "0.51791847", "0.5105681", "0.50483966", "0.50059736", "0.4965412", "0.49398524", "0.49364766", "0.48378426", "0.47720003", "0.4741462", "0.46749225", "0.4662247", "0.464...
0.7597969
0
Updates the specified trap forwarding destination. The trap destination associated with the given id will be updated if a trap destination with that id already exists. [Example] ${resp} = Fusion Api Update Appliance Trap Destination | | | |
def fusion_api_update_appliance_trap_destination(self, body, id, api=None, headers=None): # pylint: disable=W0622 return self.trap.put(body=body, id=id, api=api, headers=headers)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fusion_api_add_or_update_appliance_trap_destination(self, body=None, id=None, api=None, headers=None): # pylint: disable=W0622\n return self.trap.create(body=body, id=id, api=api, headers=headers)", "def fusion_api_edit_appliance_snmpv3_trap_destination(self, body=None, id=None, api=None, headers...
[ "0.6613562", "0.6590284", "0.5745858", "0.5331495", "0.5328401", "0.532052", "0.5276687", "0.5275363", "0.51345956", "0.5115327", "0.50964355", "0.5036326", "0.50140005", "0.49928546", "0.4823668", "0.47933242", "0.47568846", "0.47446564", "0.47323117", "0.46850047", "0.46842...
0.74026597
0