query stringlengths 10 2k | document stringlengths 20 51.2k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Sets the updated_by of this Action. The principal that updated this action template. | def updated_by(self, updated_by: "str"):
self._attrs["updatedBy"] = updated_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_by(self, updated_by):\n\n self._updated_by = updated_by",
"def updated_by(self):\n return self._updated_by",
"def updated_by(self) -> Optional[pulumi.Input['UserInfoArgs']]:\n return pulumi.get(self, \"updated_by\")",
"def updated_by(self) -> \"str\":\n return self._at... | [
"0.73603606",
"0.732767",
"0.7110591",
"0.6990236",
"0.6990236",
"0.6990236",
"0.6826004",
"0.64698",
"0.6222715",
"0.62221605",
"0.62221605",
"0.6177948",
"0.61604154",
"0.61604154",
"0.61604154",
"0.61604154",
"0.61604154",
"0.61604154",
"0.6052727",
"0.6052727",
"0.5870355... | 0.7485377 | 1 |
Gets the state of this ActionResult. | def state(self) -> "StatusState":
return StatusState.from_value(self._attrs.get("state")) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_state(self):\n return self.controller.get_state()",
"def get_action_state(self):\n pass",
"def getState(self) :\n return self.state",
"def getState(self):\n return self.state",
"def getState(self):\n return self.state",
"def getState(self):\n return self.... | [
"0.7781298",
"0.770688",
"0.76777154",
"0.7668033",
"0.7668033",
"0.7668033",
"0.7588611",
"0.7588611",
"0.7574034",
"0.7574034",
"0.7539503",
"0.75305986",
"0.7522232",
"0.7522232",
"0.7522232",
"0.7522232",
"0.7522232",
"0.7505289",
"0.7444436",
"0.74121803",
"0.7410686",
... | 0.0 | -1 |
Gets the message of this ActionResult. | def message(self) -> "str":
return self._attrs.get("message") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_message(self):\n return self.message",
"def get_message(self):\n return self.message",
"def get_message (self) :\n return self._message",
"def getErrorMessage(self):\n return self._message",
"def getMessage(self):\n return self.message",
"def getMessage(self):\n... | [
"0.7558974",
"0.7558974",
"0.751886",
"0.7517199",
"0.747617",
"0.747617",
"0.7462289",
"0.7462289",
"0.7462289",
"0.7462289",
"0.7462289",
"0.7462289",
"0.7461228",
"0.7381852",
"0.73465586",
"0.73465586",
"0.73465586",
"0.73465586",
"0.73465586",
"0.7280243",
"0.7280243",
... | 0.70469284 | 37 |
Sets the email_address of this ActionResultEmailDetail. | def email_address(self, email_address: "str"):
self._attrs["emailAddress"] = email_address | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def email_address(self, email_address):\n\n self._email_address = email_address",
"def email_address(self, email_address):\n\n self._email_address = email_address",
"def email_address(self, email_address):\n\n self._email_address = email_address",
"def email_address(self, email_address: ... | [
"0.8061126",
"0.8061126",
"0.8061126",
"0.7770554",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7637683",
"0.7586525",
"0.7397886",
"0.73969376",
"0.73969376",
"0.7265944",
"0.7125275",
"0.7062348",
... | 0.8153387 | 0 |
Gets the state of this ActionResultEmailDetail. | def state(self) -> "StateEnum":
return StateEnum.from_value(self._attrs.get("state")) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def state(self):\n return self.msg.state",
"def getState(self) :\n return self.state",
"def getState(self):\n return self.state",
"def getState(self):\n return self.state",
"def getState(self):\n return self.state",
"def __getstate__(self):\n return self.message"... | [
"0.65433556",
"0.635256",
"0.63347",
"0.63347",
"0.63347",
"0.6325565",
"0.62305194",
"0.62305194",
"0.62146413",
"0.6201569",
"0.61681074",
"0.61486363",
"0.61486363",
"0.6117452",
"0.6117452",
"0.6117452",
"0.6117452",
"0.6117452",
"0.6117452",
"0.6117452",
"0.6117452",
"... | 0.0 | -1 |
Sets the name of this EmailAction. The name of the action, as one or more identifier strings separated by periods. Each identifier string consists of lowercase letters, digits, and underscores, and cannot start with a digit. | def name(self, name: "str"):
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`")
self._attrs["name"] = name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def action_name(self, action_name: \"str\"):\n if action_name is None:\n raise ValueError(\"Invalid value for `action_name`, must not be `None`\")\n self._attrs[\"actionName\"] = action_name",
"def set_name(self, name):\n assert isinstance(name, str), 'Name must be string'\n ... | [
"0.7441777",
"0.6867877",
"0.6789917",
"0.6746245",
"0.6737695",
"0.6710605",
"0.6710605",
"0.6695026",
"0.6692105",
"0.6692105",
"0.6692105",
"0.6692105",
"0.6689668",
"0.66798955",
"0.66622496",
"0.66622496",
"0.66622496",
"0.66622496",
"0.66622496",
"0.66622496",
"0.666224... | 0.0 | -1 |
Gets the body of this EmailAction. HTML content to send as the body of the email. You can use a template in this field. | def body(self) -> "str":
return self._attrs.get("body") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def html_body(self):\n return self.getattr('html_body')",
"def html_body(self):\n return self._html_body",
"def body(self) -> str:\n return pulumi.get(self, \"body\")",
"def template_body(self) -> str:\n return pulumi.get(self, \"template_body\")",
"def body(self) -> str:\n ... | [
"0.7331191",
"0.7254602",
"0.7193299",
"0.71744287",
"0.7104821",
"0.7057505",
"0.70492435",
"0.6924362",
"0.68842435",
"0.6834524",
"0.68062466",
"0.68062466",
"0.6774132",
"0.67689735",
"0.6757035",
"0.6748546",
"0.65391225",
"0.65304816",
"0.64945775",
"0.64321727",
"0.643... | 0.68425065 | 9 |
Sets the body of this EmailAction. HTML content to send as the body of the email. You can use a template in this field. | def body(self, body: "str"):
self._attrs["body"] = body | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def body(self, value):\n self.set_property(\"body\", ItemBody(value, \"HTML\"))",
"def set_html_body(self, body):\n self._html_body = body",
"def html_body(self, val: str):\n self._html_body = val",
"def set_body(self, body):\r\n self._body = body",
"def set_text_body(self, body... | [
"0.75253683",
"0.7413493",
"0.7364345",
"0.7078465",
"0.67849666",
"0.6749228",
"0.6749228",
"0.6749228",
"0.6749228",
"0.65433115",
"0.64269483",
"0.64152664",
"0.6246101",
"0.61121446",
"0.6098328",
"0.6076097",
"0.6076097",
"0.60445654",
"0.59635854",
"0.5898385",
"0.58749... | 0.70110995 | 4 |
Gets the body_plain_text of this EmailAction. Optional text to send as the text/plain part of the email. If this field is not set for an email action, the Action service converts the value from the body field to text and sends that as the text/plain part when invoking the action. You can use a template in this field. | def body_plain_text(self) -> "str":
return self._attrs.get("bodyPlainText") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plain_text_body(self):\n return self._plain_text_body",
"def body_plain_text(self, body_plain_text: \"str\"):\n self._attrs[\"bodyPlainText\"] = body_plain_text",
"def body_plain_text(self, body_plain_text: \"str\"):\n self._attrs[\"bodyPlainText\"] = body_plain_text",
"def plain_tex... | [
"0.7297777",
"0.6954849",
"0.6954849",
"0.6543997",
"0.6301191",
"0.6300235",
"0.6216361",
"0.61871564",
"0.61330014",
"0.5981288",
"0.5947537",
"0.57617635",
"0.57343537",
"0.57229364",
"0.56013745",
"0.55716634",
"0.55320466",
"0.5513936",
"0.54962283",
"0.54910046",
"0.546... | 0.7538286 | 1 |
Sets the body_plain_text of this EmailAction. Optional text to send as the text/plain part of the email. If this field is not set for an email action, the Action service converts the value from the body field to text and sends that as the text/plain part when invoking the action. You can use a template in this field. | def body_plain_text(self, body_plain_text: "str"):
self._attrs["bodyPlainText"] = body_plain_text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_text_body(self, body):\n self._text_body = body",
"def plain_text_body(self, val: str):\n self._plain_text_body = val",
"def add_body_text(self, body_plain=False, body_html=False):\n body_keys = self.body_parts.keys()\n if body_plain and ('plain' in body_keys):\n ... | [
"0.7181535",
"0.7116661",
"0.6935469",
"0.65083927",
"0.65083927",
"0.6074203",
"0.579343",
"0.57298756",
"0.5648907",
"0.5648907",
"0.563311",
"0.5575242",
"0.5527547",
"0.5514328",
"0.5490064",
"0.54731613",
"0.54570776",
"0.53620094",
"0.53620094",
"0.53620094",
"0.5362009... | 0.8137918 | 1 |
Sets the created_at of this EmailAction. The date and time this action template was created (ISO8601 date/time with zone). | def created_at(self, created_at: "datetime"):
self._attrs["createdAt"] = created_at | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_at(self, created_at):\n self._created_at = created_at",
"def created_at(self, created_at):\n\n self._created_at = created_at",
"def created_at(self, created_at):\n\n self._created_at = created_at",
"def created_at(self, created_at):\n\n self._created_at = created_at",
... | [
"0.77606606",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7718261",
"0.7594383",
"0.7510449",
"0.7510449",
... | 0.76612264 | 18 |
Gets the created_by of this EmailAction. The principal that created this action template. | def created_by(self) -> "str":
return self._attrs.get("createdBy") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self):\n return self._created_by",
"def created_by(self) -> str:\n return pulumi.get(self, \"created_by\")",
"def created_by(self) -> Optional[str]:\n return pulumi.get(self, \"created_by\")",
"def created_by(self) -> Optional[str]:\n return pulumi.get(self, \"creat... | [
"0.799269",
"0.76339376",
"0.7597938",
"0.7597938",
"0.7597938",
"0.7597938",
"0.7597938",
"0.7597938",
"0.755069",
"0.74441516",
"0.7266728",
"0.7244084",
"0.7001644",
"0.6998134",
"0.69157964",
"0.68001866",
"0.66492826",
"0.66492826",
"0.65396965",
"0.65214777",
"0.643442"... | 0.70611274 | 15 |
Sets the created_by of this EmailAction. The principal that created this action template. | def created_by(self, created_by: "str"):
self._attrs["createdBy"] = created_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by"... | [
"0.76917416",
"0.76917416",
"0.76917416",
"0.76917416",
"0.76917416",
"0.76917416",
"0.7225915",
"0.6869158",
"0.6854549",
"0.6854549",
"0.6854549",
"0.6854549",
"0.6854549",
"0.6854549",
"0.66180533",
"0.65887874",
"0.65887874",
"0.65887874",
"0.65887874",
"0.65312487",
"0.6... | 0.74905574 | 7 |
Gets the from_name of this EmailAction. Optional text providing a humanfriendly name for the sender. Must be less than or equal to 81 characters. You can use a template in this field. | def from_name(self) -> "str":
return self._attrs.get("fromName") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SenderScreenName(self):\n return self._sender_screen_name",
"def name(self):\n name = self.__telegram_info.message.from_user.name\n return name[0].upper() + name[1::]",
"def from_name(self):\n return self.getattr('from_name')",
"def from_name(self, from_name: \"str\"):... | [
"0.63471013",
"0.62205154",
"0.61906356",
"0.613593",
"0.613593",
"0.60332686",
"0.60332686",
"0.60332686",
"0.60071325",
"0.58617765",
"0.5761083",
"0.575605",
"0.5735386",
"0.57322794",
"0.5726533",
"0.5696851",
"0.5665067",
"0.56440026",
"0.56292725",
"0.5627141",
"0.56259... | 0.70016956 | 1 |
Sets the from_name of this EmailAction. Optional text providing a humanfriendly name for the sender. Must be less than or equal to 81 characters. You can use a template in this field. | def from_name(self, from_name: "str"):
self._attrs["fromName"] = from_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_name(self, from_name):\n self._from_name = from_name",
"def from_email_name(self, from_email_name):\n if from_email_name is not None and len(from_email_name) < 1:\n raise ValueError(\"Invalid value for `from_email_name`, length must be greater than or equal to `1`\") # noqa: E5... | [
"0.731366",
"0.7024107",
"0.67006165",
"0.6458591",
"0.6213452",
"0.6181475",
"0.6181475",
"0.61754346",
"0.60935444",
"0.60695916",
"0.6056053",
"0.5764177",
"0.5672537",
"0.54594314",
"0.54594314",
"0.54594314",
"0.54594314",
"0.5447368",
"0.5447368",
"0.54135025",
"0.53445... | 0.7642653 | 1 |
Gets the subject of this EmailAction. The subject of the email. You can use a template in this field. | def subject(self) -> "str":
return self._attrs.get("subject") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getSubject(self):\r\n return self.msg[\"Subject\"]",
"def subject(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"subject\")",
"def get_subject(self):\n return self._subject",
"def subject(self):\n return self.properties.get(\"subject\", None)",
"def subject(self):\... | [
"0.74809134",
"0.718476",
"0.7106438",
"0.70959836",
"0.7083375",
"0.70706266",
"0.7008986",
"0.6960195",
"0.6907073",
"0.6854655",
"0.679342",
"0.6772875",
"0.6678983",
"0.6678001",
"0.6610404",
"0.6610404",
"0.6537949",
"0.6532025",
"0.6026985",
"0.5899645",
"0.5700937",
... | 0.6911393 | 8 |
Sets the subject of this EmailAction. The subject of the email. You can use a template in this field. | def subject(self, subject: "str"):
self._attrs["subject"] = subject | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_subject(self, subject):\n self._subject = subject",
"def subject(self, subject):\n if subject is None:\n raise ValueError(\"Invalid value for `subject`, must not be `None`\") # noqa: E501\n\n self._subject = subject",
"def subject(self, subject):\n if subject is ... | [
"0.68713826",
"0.6660395",
"0.6660395",
"0.6630539",
"0.645869",
"0.64497495",
"0.6445498",
"0.6445498",
"0.6445498",
"0.63994867",
"0.6329185",
"0.6272266",
"0.60803735",
"0.5997031",
"0.5997031",
"0.5993333",
"0.5901379",
"0.5894717",
"0.58926576",
"0.5863927",
"0.5835736",... | 0.6928223 | 1 |
Gets the title of this EmailAction. A humanreadable title for the action. Must be less than or equal to 128 characters. | def title(self) -> "str":
return self._attrs.get("title") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_title(self):\n\n return self._title",
"def GetTitle(self):\n return str(self.title)",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def title(self):\n\n return self.... | [
"0.7430891",
"0.7387316",
"0.7371467",
"0.7371467",
"0.7371467",
"0.73142",
"0.73136365",
"0.72899383",
"0.72899383",
"0.72899383",
"0.72899383",
"0.72899383",
"0.72899383",
"0.72899383",
"0.7282801",
"0.7266598",
"0.7266598",
"0.7266598",
"0.7266598",
"0.7266598",
"0.7266598... | 0.72390497 | 25 |
Sets the title of this EmailAction. A humanreadable title for the action. Must be less than or equal to 128 characters. | def title(self, title: "str"):
self._attrs["title"] = title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetTitle(self, title):\n self.title = str(title)",
"def setTitle(self, title):\n\n self._title = str(title)",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"de... | [
"0.7904307",
"0.78724724",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.7781177",
"0.77747667",
"0.775962",
"0.7735843",
"0.77146316",
"0.7713299",
... | 0.7475391 | 33 |
Gets the updated_at of this EmailAction. The date and time this action template was updated (ISO8601 date/time with zone). | def updated_at(self) -> "datetime":
return self._attrs.get("updatedAt") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_at(self) -> str:\n return pulumi.get(self, \"updated_at\")",
"def updated_at(self):\n return self._updated_at",
"def updated_at(self):\n return self._updated_at",
"def updated_at(self):\n return self._updated_at",
"def updated_at(self) -> pulumi.Output[str]:\n ... | [
"0.79649276",
"0.7691173",
"0.7691173",
"0.7691173",
"0.76736885",
"0.73498046",
"0.7317797",
"0.72622424",
"0.68237805",
"0.6787596",
"0.6787596",
"0.6705661",
"0.6642842",
"0.6549205",
"0.6514139",
"0.6375132",
"0.6375132",
"0.62894225",
"0.62894225",
"0.62894225",
"0.62762... | 0.73901445 | 7 |
Sets the updated_at of this EmailAction. The date and time this action template was updated (ISO8601 date/time with zone). | def updated_at(self, updated_at: "datetime"):
self._attrs["updatedAt"] = updated_at | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at"... | [
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.74784297",
"0.72621065",
"0.6583594",
"0.6454713",
"0.6454713",
"0.6454713",
"0.6386093",
"0.6386093",
"0.6386093",
"0.6376273",
"0.62114155",
"0.6... | 0.75292283 | 2 |
Gets the updated_by of this EmailAction. The principal that updated this action template. | def updated_by(self) -> "str":
return self._attrs.get("updatedBy") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_by(self):\n return self._updated_by",
"def updated_by(self) -> Optional[pulumi.Input['UserInfoArgs']]:\n return pulumi.get(self, \"updated_by\")",
"def updated_by(self) -> Optional['outputs.UserInfoResponse']:\n return pulumi.get(self, \"updated_by\")",
"def created_by(self):... | [
"0.755794",
"0.7178502",
"0.70001984",
"0.65701455",
"0.6508406",
"0.6374138",
"0.63732105",
"0.63732105",
"0.63732105",
"0.63732105",
"0.63732105",
"0.63732105",
"0.6294096",
"0.6293389",
"0.62203205",
"0.6169466",
"0.6169466",
"0.6169466",
"0.6169466",
"0.6169466",
"0.61694... | 0.71150213 | 4 |
Sets the updated_by of this EmailAction. The principal that updated this action template. | def updated_by(self, updated_by: "str"):
self._attrs["updatedBy"] = updated_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_by(self, updated_by):\n\n self._updated_by = updated_by",
"def updated_by(self):\n return self._updated_by",
"def updated_by(self) -> Optional[pulumi.Input['UserInfoArgs']]:\n return pulumi.get(self, \"updated_by\")",
"def updated_by(self) -> \"str\":\n return self._at... | [
"0.71409297",
"0.7028364",
"0.68662196",
"0.68017524",
"0.68017524",
"0.68017524",
"0.6540902",
"0.6162466",
"0.6050443",
"0.601347",
"0.601347",
"0.601347",
"0.601347",
"0.601347",
"0.601347",
"0.59470487",
"0.5933226",
"0.5933226",
"0.59212923",
"0.59212923",
"0.57539",
"... | 0.73105264 | 2 |
Gets the body of this EmailActionMutable. HTML content to send as the body of the email. You can use a template in this field. | def body(self) -> "str":
return self._attrs.get("body") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def html_body(self):\n return self.getattr('html_body')",
"def html_body(self):\n return self._html_body",
"def body(self) -> str:\n return pulumi.get(self, \"body\")",
"def body(self):\n return self.getattr('body')",
"def template_body(self) -> str:\n return pulumi.get(s... | [
"0.75119966",
"0.7450511",
"0.7099565",
"0.70618194",
"0.70569944",
"0.7043886",
"0.7021664",
"0.6906021",
"0.6903985",
"0.68960536",
"0.68812376",
"0.6847827",
"0.6847827",
"0.68297476",
"0.6810767",
"0.6800488",
"0.66271305",
"0.6566827",
"0.650712",
"0.64933515",
"0.649335... | 0.68428653 | 14 |
Sets the body of this EmailActionMutable. HTML content to send as the body of the email. You can use a template in this field. | def body(self, body: "str"):
self._attrs["body"] = body | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def body(self, value):\n self.set_property(\"body\", ItemBody(value, \"HTML\"))",
"def set_html_body(self, body):\n self._html_body = body",
"def html_body(self, val: str):\n self._html_body = val",
"def set_body(self, body):\r\n self._body = body",
"def set_text_body(self, body... | [
"0.75076205",
"0.74436104",
"0.735263",
"0.7009555",
"0.6741831",
"0.6669345",
"0.6669345",
"0.6669345",
"0.6669345",
"0.6578903",
"0.6355032",
"0.63530016",
"0.62051195",
"0.62012786",
"0.6179577",
"0.6112883",
"0.6112883",
"0.6069432",
"0.6014849",
"0.58791035",
"0.58686",
... | 0.6962285 | 5 |
Gets the body_plain_text of this EmailActionMutable. Optional text to send as the text/plain part of the email. If this field is not set for an email action, the Action service converts the value from the body field to text and sends that as the text/plain part when invoking the action. You can use a template in this f... | def body_plain_text(self) -> "str":
return self._attrs.get("bodyPlainText") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def plain_text_body(self):\n return self._plain_text_body",
"def body_plain_text(self, body_plain_text: \"str\"):\n self._attrs[\"bodyPlainText\"] = body_plain_text",
"def body_plain_text(self, body_plain_text: \"str\"):\n self._attrs[\"bodyPlainText\"] = body_plain_text",
"def plain_tex... | [
"0.7339138",
"0.6901777",
"0.6901777",
"0.64959514",
"0.63801813",
"0.63186663",
"0.6272571",
"0.62675637",
"0.6190897",
"0.61135423",
"0.58825725",
"0.58546686",
"0.5851063",
"0.5705713",
"0.56556344",
"0.55484617",
"0.554835",
"0.5508305",
"0.5476642",
"0.54434836",
"0.5439... | 0.7539927 | 0 |
Sets the body_plain_text of this EmailActionMutable. Optional text to send as the text/plain part of the email. If this field is not set for an email action, the Action service converts the value from the body field to text and sends that as the text/plain part when invoking the action. You can use a template in this f... | def body_plain_text(self, body_plain_text: "str"):
self._attrs["bodyPlainText"] = body_plain_text | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_text_body(self, body):\n self._text_body = body",
"def plain_text_body(self, val: str):\n self._plain_text_body = val",
"def add_body_text(self, body_plain=False, body_html=False):\n body_keys = self.body_parts.keys()\n if body_plain and ('plain' in body_keys):\n ... | [
"0.70703936",
"0.7041203",
"0.6974352",
"0.649168",
"0.649168",
"0.6077545",
"0.56626385",
"0.5637835",
"0.5609494",
"0.55995303",
"0.55995303",
"0.557566",
"0.5496083",
"0.5495973",
"0.5430038",
"0.54207367",
"0.5356446",
"0.5313425",
"0.5313425",
"0.5313425",
"0.5313425",
... | 0.8066471 | 0 |
Gets the from_name of this EmailActionMutable. Optional text providing a humanfriendly name for the sender. Must be less than or equal to 81 characters. You can use a template in this field. | def from_name(self) -> "str":
return self._attrs.get("fromName") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_name(self, from_name: \"str\"):\n self._attrs[\"fromName\"] = from_name",
"def from_name(self, from_name: \"str\"):\n self._attrs[\"fromName\"] = from_name",
"def SenderScreenName(self):\n return self._sender_screen_name",
"def from_name(self):\n return self.getattr('from... | [
"0.63361496",
"0.63361496",
"0.6324712",
"0.63107675",
"0.62612426",
"0.6212109",
"0.6200212",
"0.6200212",
"0.6200212",
"0.5832157",
"0.5791321",
"0.5757642",
"0.57540774",
"0.5708372",
"0.56954545",
"0.56558365",
"0.55970013",
"0.5593328",
"0.5588793",
"0.5566729",
"0.55609... | 0.71395266 | 0 |
Sets the from_name of this EmailActionMutable. Optional text providing a humanfriendly name for the sender. Must be less than or equal to 81 characters. You can use a template in this field. | def from_name(self, from_name: "str"):
self._attrs["fromName"] = from_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def from_name(self, from_name):\n self._from_name = from_name",
"def from_email_name(self, from_email_name):\n if from_email_name is not None and len(from_email_name) < 1:\n raise ValueError(\"Invalid value for `from_email_name`, length must be greater than or equal to `1`\") # noqa: E5... | [
"0.7353812",
"0.6935464",
"0.65914345",
"0.63056284",
"0.62382936",
"0.62382936",
"0.61727846",
"0.6093879",
"0.6078",
"0.59936064",
"0.5951596",
"0.5915007",
"0.56908375",
"0.56270224",
"0.56270224",
"0.56270224",
"0.56270224",
"0.53394777",
"0.53394777",
"0.53244746",
"0.52... | 0.7698311 | 0 |
Gets the subject of this EmailActionMutable. The subject of the email. You can use a template in this field. | def subject(self) -> "str":
return self._attrs.get("subject") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getSubject(self):\r\n return self.msg[\"Subject\"]",
"def get_subject(self):\n return self._subject",
"def subject(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"subject\")",
"def subject(self):\n return self.mail.get('Subject')",
"def subject(self):\n return se... | [
"0.7580442",
"0.72597826",
"0.72093993",
"0.716956",
"0.7169329",
"0.70993376",
"0.70428765",
"0.70131326",
"0.69031715",
"0.6893787",
"0.68716174",
"0.6850347",
"0.6839296",
"0.6759221",
"0.6759221",
"0.6752079",
"0.66349363",
"0.65362",
"0.6093555",
"0.58901227",
"0.5792876... | 0.7039577 | 7 |
Sets the subject of this EmailActionMutable. The subject of the email. You can use a template in this field. | def subject(self, subject: "str"):
self._attrs["subject"] = subject | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_subject(self, subject):\n self._subject = subject",
"def subject(self, subject):\n if subject is None:\n raise ValueError(\"Invalid value for `subject`, must not be `None`\") # noqa: E501\n\n self._subject = subject",
"def subject(self, subject):\n if subject is ... | [
"0.68423414",
"0.6715211",
"0.6715211",
"0.66832244",
"0.64674926",
"0.6451237",
"0.6451237",
"0.6451237",
"0.6421683",
"0.6302522",
"0.62777734",
"0.6271997",
"0.6113951",
"0.6113951",
"0.6091983",
"0.6080212",
"0.60480803",
"0.595324",
"0.5941287",
"0.59143376",
"0.5848429"... | 0.6947137 | 0 |
Gets the title of this EmailActionMutable. A humanreadable title for the action. Must be less than or equal to 128 characters. | def title(self) -> "str":
return self._attrs.get("title") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_title(self):\n\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def GetTitle(self):\n return str(self.title)",
"def title(self):\n\n return self.... | [
"0.76066846",
"0.7555563",
"0.7555563",
"0.7555563",
"0.7546248",
"0.7513782",
"0.75042224",
"0.7493597",
"0.7493597",
"0.7493597",
"0.7493597",
"0.7493597",
"0.7493597",
"0.7493597",
"0.7477038",
"0.7477038",
"0.7477038",
"0.7477038",
"0.7477038",
"0.7477038",
"0.74652714",
... | 0.73839253 | 29 |
Sets the title of this EmailActionMutable. A humanreadable title for the action. Must be less than or equal to 128 characters. | def title(self, title: "str"):
self._attrs["title"] = title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetTitle(self, title):\n self.title = str(title)",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(... | [
"0.7842333",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.7775717",
"0.77503645",
"0.772923",
"0.7719197",
"0.7701827",
"0.76859885",
"0.7684036",
... | 0.753398 | 29 |
Gets the key of this PublicWebhookKey. A PEMformatted, ASN.1 DERencoded PKCS1 key. | def key(self) -> "str":
return self._attrs.get("key") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_pub_key(self):\n return \"RSA {0}\".format(self._cert.get_pubkey().bits)",
"def get_public_key(self):\n return self.private_key.get_verifying_key()",
"def get_public_key_in_pem(self):\n serialized_public = self.public_key_obj.public_bytes(\n encoding=serialization.Encodi... | [
"0.7320282",
"0.7250753",
"0.7229805",
"0.69554573",
"0.6855779",
"0.6827662",
"0.68271905",
"0.6809348",
"0.6785031",
"0.6741205",
"0.66963047",
"0.66749924",
"0.6673412",
"0.6660653",
"0.6591465",
"0.6543179",
"0.6505666",
"0.6482726",
"0.6460829",
"0.6445954",
"0.6443675",... | 0.0 | -1 |
Gets the message of this ServiceError. | def message(self) -> "str":
return self._attrs.get("message") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_error_message(self):\n return self.error_message.get_error_message()",
"def get_error_message(self):\n\n return self.err_message",
"def error_message(self) -> str:\n return pulumi.get(self, \"error_message\")",
"def error_message(self) -> str:\n return pulumi.get(self, \"e... | [
"0.8156456",
"0.8049561",
"0.7977148",
"0.7977148",
"0.7977148",
"0.79715717",
"0.7920661",
"0.79112875",
"0.7818915",
"0.7691905",
"0.76868325",
"0.760188",
"0.7560155",
"0.7560155",
"0.7560155",
"0.7560155",
"0.7560155",
"0.7560155",
"0.7560155",
"0.7538912",
"0.7454661",
... | 0.6377098 | 95 |
Gets the details of this ServiceError. | def details(self) -> "dict":
return self._attrs.get("details") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def error_details(self):\n return self._error_details",
"def error_details(self) -> pulumi.Output[Sequence['outputs.ErrorDetailResponse']]:\n return pulumi.get(self, \"error_details\")",
"def error_details(self) -> Sequence['outputs.JobErrorDetailsResponse']:\n return pulumi.get(self, \"er... | [
"0.7869184",
"0.75739545",
"0.7193319",
"0.7193319",
"0.7193319",
"0.7193319",
"0.6907162",
"0.6891772",
"0.67097086",
"0.6478347",
"0.6469124",
"0.64369804",
"0.6417542",
"0.6343281",
"0.63424116",
"0.6333321",
"0.62965834",
"0.62596524",
"0.6217599",
"0.62102383",
"0.619115... | 0.0 | -1 |
Sets the details of this ServiceError. | def details(self, details: "dict"):
self._attrs["details"] = details | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def error_details(self, error_details):\n self._error_details = error_details",
"def error_detail(self, error_detail):\n\n self._error_detail = error_detail",
"def error_details(self):\n return self._error_details",
"def error(self, text, info=None):\n self.details[\"message\"] = ... | [
"0.77717924",
"0.6974294",
"0.63938254",
"0.63119835",
"0.62905055",
"0.6177468",
"0.6115891",
"0.60739255",
"0.60334307",
"0.60334307",
"0.60334307",
"0.59571344",
"0.59182525",
"0.5910207",
"0.5889833",
"0.5814404",
"0.5772497",
"0.57341546",
"0.5691103",
"0.5688131",
"0.56... | 0.5075551 | 81 |
Gets the more_info of this ServiceError. | def more_info(self) -> "str":
return self._attrs.get("moreInfo") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def error_details(self):\n return self._error_details",
"def error_details(self) -> pulumi.Output[Sequence['outputs.ErrorDetailResponse']]:\n return pulumi.get(self, \"error_details\")",
"def additional_infos(self) -> Sequence['outputs.GetComputeMachineErrorDetailAdditionalInfoResult']:\n ... | [
"0.70492876",
"0.6810793",
"0.677054",
"0.6462096",
"0.62746394",
"0.6196536",
"0.60589886",
"0.60589886",
"0.60589886",
"0.60589886",
"0.60410553",
"0.59255755",
"0.5915299",
"0.5897335",
"0.5832943",
"0.5830344",
"0.5805878",
"0.57517093",
"0.5717086",
"0.5703877",
"0.57010... | 0.6842362 | 1 |
Gets the action_metadata of this TriggerEvent. | def action_metadata(self) -> "TriggerEventActionMetadata":
return TriggerEventActionMetadata._from_dict(self._attrs["actionMetadata"]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def action_metadata(self, action_metadata: \"TriggerEventActionMetadata\"):\n self._attrs[\"actionMetadata\"] = action_metadata.to_dict()",
"def action_properties(self) -> aws_cdk.aws_codepipeline.ActionProperties:\n return jsii.get(self, \"actionProperties\")",
"def action_properties(self) -> aw... | [
"0.7196262",
"0.67845356",
"0.67845356",
"0.67845356",
"0.67845356",
"0.67845356",
"0.62234515",
"0.58938664",
"0.5775445",
"0.5736347",
"0.572848",
"0.5728438",
"0.5728438",
"0.5728438",
"0.5728438",
"0.5728438",
"0.5728438",
"0.57173806",
"0.56510365",
"0.5639766",
"0.56330... | 0.8975106 | 0 |
Sets the action_metadata of this TriggerEvent. | def action_metadata(self, action_metadata: "TriggerEventActionMetadata"):
self._attrs["actionMetadata"] = action_metadata.to_dict() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def action_metadata(self) -> \"TriggerEventActionMetadata\":\n return TriggerEventActionMetadata._from_dict(self._attrs[\"actionMetadata\"])",
"def set_action(self,action):\n self.__action = action",
"def set_action(self, action):\n self.action = action",
"def set_action(self, action):\n... | [
"0.7191065",
"0.59210575",
"0.58340967",
"0.58340967",
"0.5826883",
"0.57807916",
"0.57807916",
"0.57807916",
"0.57807916",
"0.57807916",
"0.57807916",
"0.57807916",
"0.5779373",
"0.57648444",
"0.5752363",
"0.56941736",
"0.5667433",
"0.56640595",
"0.5599723",
"0.5599723",
"0.... | 0.8306865 | 0 |
Gets the created_by of this TriggerEvent. The principal that generated the trigger event. | def created_by(self) -> "str":
return self._attrs.get("createdBy") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self):\n return self._created_by",
"def created_by(self):\n url = self._data.get('related', {}).get('created_by')\n return self._tower._get_object_by_url('User', url) # pylint: disable=protected-access",
"def created_by(self) -> str:\n return pulumi.get(self, \"creat... | [
"0.795191",
"0.7650041",
"0.75206345",
"0.74720925",
"0.74720925",
"0.74720925",
"0.74720925",
"0.74720925",
"0.74720925",
"0.73550236",
"0.7213922",
"0.72081727",
"0.7174735",
"0.70733845",
"0.70046884",
"0.68220544",
"0.68220544",
"0.6820036",
"0.6801808",
"0.6800971",
"0.6... | 0.7008233 | 15 |
Sets the created_by of this TriggerEvent. The principal that generated the trigger event. | def created_by(self, created_by: "str"):
self._attrs["createdBy"] = created_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by"... | [
"0.76984483",
"0.76984483",
"0.76984483",
"0.76984483",
"0.76984483",
"0.76984483",
"0.71265256",
"0.6735321",
"0.6735321",
"0.6735321",
"0.6735321",
"0.6735321",
"0.6735321",
"0.6709655",
"0.66997397",
"0.6691824",
"0.667979",
"0.6660379",
"0.66163296",
"0.65820163",
"0.6529... | 0.7298349 | 6 |
Gets the id of this TriggerEvent. A unique identifier for this trigger event. Generated from a hash of all recursivelysorted event field values. | def id(self) -> "str":
return self._attrs.get("id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(self) -> str:\n return self._event.get('id')",
"def getId(self):\n return _libsbml.Event_getId(self)",
"def event_id(self):\n return self._event_id",
"def GetEventIdentifier(self):\n return self._event_identifier",
"def get_triggered_id():\n ctx = dash.callback_context\n ... | [
"0.6994379",
"0.6987206",
"0.6944181",
"0.6487501",
"0.6372319",
"0.6292479",
"0.62385905",
"0.61567414",
"0.6096349",
"0.6096349",
"0.60795105",
"0.607234",
"0.60397416",
"0.60390455",
"0.6029061",
"0.5978236",
"0.5941237",
"0.58915544",
"0.58915544",
"0.58915544",
"0.589155... | 0.0 | -1 |
Sets the id of this TriggerEvent. A unique identifier for this trigger event. Generated from a hash of all recursivelysorted event field values. | def id(self, id: "str"):
self._attrs["id"] = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def setId(self, *args):\n return _libsbml.Event_setId(self, *args)",
"def trigger_id(self, trigger_id):\n\n self._trigger_id = trigger_id",
"def event_id(self, event_id):\n\n self._event_id = event_id",
"def event_id(self, event_id):\n\n self._event_id = event_id",
"def set_id(s... | [
"0.65435815",
"0.6476903",
"0.629137",
"0.629137",
"0.6183395",
"0.61703867",
"0.61265314",
"0.6125637",
"0.6054035",
"0.6051923",
"0.6048706",
"0.6048706",
"0.6048706",
"0.6048706",
"0.6048706",
"0.6041062",
"0.6041062",
"0.6041062",
"0.6041062",
"0.6041062",
"0.6041062",
... | 0.0 | -1 |
Gets the kind of this TriggerEvent. | def kind(self) -> "TriggerEventKind":
return TriggerEventKind.from_value(self._attrs.get("kind")) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_type(self):\n return self.event_type",
"def type(self) -> str:\n return self._event.get('type')",
"def trigger_type(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"trigger_type\")",
"def event_type(self) -> int:\n return self.data[\"args\"][\"eventType\"]",
"def ... | [
"0.7756109",
"0.7160362",
"0.7105069",
"0.70816267",
"0.6944325",
"0.6944325",
"0.6780912",
"0.6680048",
"0.65944356",
"0.6569225",
"0.65515244",
"0.6421656",
"0.63366187",
"0.6322188",
"0.6249902",
"0.6235855",
"0.62296116",
"0.62124574",
"0.62124574",
"0.62023103",
"0.61450... | 0.8483794 | 0 |
Sets the trigger_condition of this TriggerEvent. A description of the condition that caused the trigger event. | def trigger_condition(self, trigger_condition: "str"):
self._attrs["triggerCondition"] = trigger_condition | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def condition(self, condition):\n\n self._condition = condition",
"def trigger_condition(self) -> \"str\":\n return self._attrs.get(\"triggerCondition\")",
"def condition(self, condition):\n if condition is None:\n raise ValueError(\"Invalid value for `condition`, must not be `N... | [
"0.7142031",
"0.69163674",
"0.6895302",
"0.60763633",
"0.5987398",
"0.5820248",
"0.5605324",
"0.55361706",
"0.54613733",
"0.5448997",
"0.54412353",
"0.5412215",
"0.53464",
"0.53464",
"0.53464",
"0.53464",
"0.53464",
"0.53464",
"0.52953255",
"0.5244365",
"0.51767963",
"0.517... | 0.8663055 | 0 |
Gets the trigger_name of this TriggerEvent. The name of the trigger for which this event was created. | def trigger_name(self) -> "str":
return self._attrs.get("triggerName") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getElementName(self):\n return _libsbml.Trigger_getElementName(self)",
"def trigger_name(self, trigger_name: \"str\"):\n self._attrs[\"triggerName\"] = trigger_name",
"def insert_trigger_name(self):\n if len(self._old_table.name) < constant.MAX_TABLE_LENGTH - 10:\n return co... | [
"0.75433093",
"0.7364515",
"0.69881904",
"0.698232",
"0.6928559",
"0.68532544",
"0.6699714",
"0.6690873",
"0.6685784",
"0.66150004",
"0.6556719",
"0.65222174",
"0.64545083",
"0.6444839",
"0.6412346",
"0.6404061",
"0.63915837",
"0.617783",
"0.6143375",
"0.61416745",
"0.6132551... | 0.8473362 | 0 |
Sets the trigger_name of this TriggerEvent. The name of the trigger for which this event was created. | def trigger_name(self, trigger_name: "str"):
self._attrs["triggerName"] = trigger_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def land_slide_trigger_name(self, land_slide_trigger_name):\n\n self._land_slide_trigger_name = land_slide_trigger_name",
"def trigger_name(self) -> \"str\":\n return self._attrs.get(\"triggerName\")",
"def trigger_id(self, trigger_id):\n\n self._trigger_id = trigger_id",
"def setTrigger... | [
"0.7042384",
"0.6877426",
"0.65565443",
"0.6046053",
"0.584471",
"0.584471",
"0.5829104",
"0.57098943",
"0.56987447",
"0.5678723",
"0.5677739",
"0.5676128",
"0.5676128",
"0.56670254",
"0.5653711",
"0.5623625",
"0.5621012",
"0.5621012",
"0.5616001",
"0.5610322",
"0.5595821",
... | 0.85642254 | 0 |
Gets the ttl_seconds of this TriggerEvent. A time to live (TTL), expressed as seconds after createdAt, after which the trigger event will no longer be acted upon. | def ttl_seconds(self) -> "int":
return self._attrs.get("ttlSeconds") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ttl(self):\n return self._ttl",
"def ttl(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"ttl\")",
"def ttl(self) -> Optional[pulumi.Input[int]]:\n return pulumi.get(self, \"ttl\")",
"def ttl_seconds(self, ttl_seconds: \"int\"):\n self._attrs[\"ttlSeconds\"] =... | [
"0.6698167",
"0.64623326",
"0.64623326",
"0.6355201",
"0.6290063",
"0.62050366",
"0.61852413",
"0.61852413",
"0.61852413",
"0.6028165",
"0.59410584",
"0.59410584",
"0.5910808",
"0.58959186",
"0.57919693",
"0.5719761",
"0.56959367",
"0.56656396",
"0.563513",
"0.56238776",
"0.5... | 0.7598554 | 0 |
Sets the name of this WebhookAction. The name of the action, as one or more identifier strings separated by periods. Each identifier string consists of lowercase letters, digits, and underscores, and cannot start with a digit. | def name(self, name: "str"):
if name is None:
raise ValueError("Invalid value for `name`, must not be `None`")
self._attrs["name"] = name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def action_name(self, action_name: \"str\"):\n if action_name is None:\n raise ValueError(\"Invalid value for `action_name`, must not be `None`\")\n self._attrs[\"actionName\"] = action_name",
"def set_name(self, name):\n assert isinstance(name, str), 'Name must be string'\n ... | [
"0.7380965",
"0.65455455",
"0.6509164",
"0.6509164",
"0.6509164",
"0.6509164",
"0.65044355",
"0.648943",
"0.64800006",
"0.64800006",
"0.64800006",
"0.64800006",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103",
"0.6465103"... | 0.0 | -1 |
Gets the created_by of this WebhookAction. The principal that created this action template. | def created_by(self) -> "str":
return self._attrs.get("createdBy") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self):\n return self._created_by",
"def created_by(self) -> str:\n return pulumi.get(self, \"created_by\")",
"def created_by(self) -> Optional[str]:\n return pulumi.get(self, \"created_by\")",
"def created_by(self) -> Optional[str]:\n return pulumi.get(self, \"creat... | [
"0.7724417",
"0.75881356",
"0.7485467",
"0.7485467",
"0.7485467",
"0.7485467",
"0.7485467",
"0.7485467",
"0.74372697",
"0.7364721",
"0.7269907",
"0.7262193",
"0.711593",
"0.7095781",
"0.67467874",
"0.66750425",
"0.665162",
"0.665162",
"0.66502863",
"0.66502863",
"0.65438324",... | 0.69573545 | 15 |
Sets the created_by of this WebhookAction. The principal that created this action template. | def created_by(self, created_by: "str"):
self._attrs["createdBy"] = created_by | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by",
"def created_by(self, created_by):\n\n self._created_by = created_by"... | [
"0.73782754",
"0.73782754",
"0.73782754",
"0.73782754",
"0.73782754",
"0.73782754",
"0.6911754",
"0.6762573",
"0.6700564",
"0.6700564",
"0.6700564",
"0.6700564",
"0.6700564",
"0.6700564",
"0.6594341",
"0.65158606",
"0.6515605",
"0.6419061",
"0.63761806",
"0.63694096",
"0.6369... | 0.7192184 | 9 |
Gets the title of this WebhookAction. A humanreadable title for the action. Must be less than 128 characters. | def title(self) -> "str":
return self._attrs.get("title") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def title(self):\n return self.__values['title']",
"def get_title(self):\n\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def GetTitle(self):\n return ... | [
"0.7172431",
"0.71315205",
"0.71146977",
"0.71146977",
"0.71146977",
"0.7110252",
"0.709331",
"0.7033254",
"0.7029866",
"0.70273936",
"0.70198184",
"0.70198184",
"0.70198184",
"0.70198184",
"0.70198184",
"0.70198184",
"0.70187825",
"0.70187825",
"0.70187825",
"0.70187825",
"0... | 0.690435 | 43 |
Sets the title of this WebhookAction. A humanreadable title for the action. Must be less than 128 characters. | def title(self, title: "str"):
self._attrs["title"] = title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetTitle(self, title):\n self.title = str(title)",
"def setTitle(self, title):\n\n self._title = str(title)",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"de... | [
"0.7706987",
"0.7682099",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7660189",
"0.7613378",
"0.75880075",
"0.75830996",
"0.75819963",
"0.7562692",
... | 0.733029 | 35 |
Gets the updated_at of this WebhookAction. The date and time this action template was updated (ISO8601 date/time with zone). | def updated_at(self) -> "datetime":
return self._attrs.get("updatedAt") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_at(self) -> str:\n return pulumi.get(self, \"updated_at\")",
"def updated_at(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"updated_at\")",
"def updated_at(self):\n return self._updated_at",
"def updated_at(self):\n return self._updated_at",
"def updated_at... | [
"0.79291373",
"0.7685144",
"0.7558462",
"0.7558462",
"0.7558462",
"0.73723024",
"0.73588073",
"0.72789043",
"0.6715746",
"0.67112285",
"0.668434",
"0.663616",
"0.663616",
"0.6553557",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
"0.6433108",
... | 0.72577095 | 10 |
Sets the updated_at of this WebhookAction. The date and time this action template was updated (ISO8601 date/time with zone). | def updated_at(self, updated_at: "datetime"):
self._attrs["updatedAt"] = updated_at | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at",
"def updated_at(self, updated_at):\n\n self._updated_at = updated_at"... | [
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.73148257",
"0.7284853",
"0.6705346",
"0.65141714",
"0.6491961",
"0.6491961",
"0.6491961",
"0.6393869",
"0.6393869",
"0.6393869",
"0.63862795",
"0.6... | 0.7385161 | 0 |
Gets the updated_by of this WebhookAction. The principal that updated this action template. | def updated_by(self) -> "str":
return self._attrs.get("updatedBy") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def updated_by(self):\n return self._updated_by",
"def updated_by(self) -> Optional[pulumi.Input['UserInfoArgs']]:\n return pulumi.get(self, \"updated_by\")",
"def updated_by(self) -> Optional['outputs.UserInfoResponse']:\n return pulumi.get(self, \"updated_by\")",
"def created_by(self):... | [
"0.74601036",
"0.7238127",
"0.7111762",
"0.64479935",
"0.6359906",
"0.62971395",
"0.62826264",
"0.6280596",
"0.6280596",
"0.6280596",
"0.6280596",
"0.6280596",
"0.6280596",
"0.6249558",
"0.62392396",
"0.6200514",
"0.61718976",
"0.61718976",
"0.61718976",
"0.61718976",
"0.6171... | 0.7080631 | 3 |
Gets the webhook_url of this WebhookAction. Only HTTPS is allowed. | def webhook_url(self) -> "str":
return self._attrs.get("webhookUrl") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def webhook_url(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"webhook_url\")",
"def webhook_url(self, webhook_url: \"str\"):\n self._attrs[\"webhookUrl\"] = webhook_url",
"def webhook_url(self, webhook_url: \"str\"):\n self._attrs[\"webhookUrl\"] = webhook_url",
"def ... | [
"0.8074067",
"0.707234",
"0.707234",
"0.6689985",
"0.6586976",
"0.6586976",
"0.6337413",
"0.62396353",
"0.61868465",
"0.6156582",
"0.6093933",
"0.6093933",
"0.60694146",
"0.6014757",
"0.6014757",
"0.60123086",
"0.59985286",
"0.59985286",
"0.5983067",
"0.5974252",
"0.5966164",... | 0.8276632 | 0 |
Sets the webhook_url of this WebhookAction. Only HTTPS is allowed. | def webhook_url(self, webhook_url: "str"):
self._attrs["webhookUrl"] = webhook_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_webhook(self, webhook):\n self.webhook = webhook\n return",
"def webhook_url(self) -> \"str\":\n return self._attrs.get(\"webhookUrl\")",
"def webhook_url(self) -> \"str\":\n return self._attrs.get(\"webhookUrl\")",
"def webhook_url(self) -> Optional[pulumi.Input[str]]:\n ... | [
"0.7095343",
"0.68560517",
"0.68560517",
"0.67060226",
"0.63029134",
"0.60097015",
"0.60036707",
"0.5871122",
"0.58381575",
"0.58354354",
"0.5753367",
"0.5726577",
"0.56546795",
"0.56269926",
"0.5622946",
"0.5516452",
"0.5505316",
"0.54023635",
"0.5383283",
"0.53568923",
"0.5... | 0.8318348 | 1 |
Gets the title of this WebhookActionMutable. A humanreadable title for the action. Must be less than 128 characters. | def title(self) -> "str":
return self._attrs.get("title") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_title(self):\n\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def get_title(self):\n return self._title",
"def title(self):\n return self.__values['title']",
"def GetTitle(self):\n return ... | [
"0.732053",
"0.72959495",
"0.72959495",
"0.72959495",
"0.7258575",
"0.7240528",
"0.7231033",
"0.7227426",
"0.7226827",
"0.72170776",
"0.72170776",
"0.72170776",
"0.72170776",
"0.72170776",
"0.72170776",
"0.72170776",
"0.7213194",
"0.7213194",
"0.7213194",
"0.7213194",
"0.7213... | 0.70442235 | 45 |
Sets the title of this WebhookActionMutable. A humanreadable title for the action. Must be less than 128 characters. | def title(self, title: "str"):
self._attrs["title"] = title | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SetTitle(self, title):\n self.title = str(title)",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(self, title):\n\n self._title = title",
"def title(... | [
"0.7603425",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.7595508",
"0.75454664",
"0.7525985",
"0.75208974",
"0.7504726",
"0.74848306",
"0.748434",
... | 0.7326432 | 29 |
Gets the webhook_url of this WebhookActionMutable. Only HTTPS is allowed. | def webhook_url(self) -> "str":
return self._attrs.get("webhookUrl") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def webhook_url(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"webhook_url\")",
"def webhook_url(self, webhook_url: \"str\"):\n self._attrs[\"webhookUrl\"] = webhook_url",
"def webhook_url(self, webhook_url: \"str\"):\n self._attrs[\"webhookUrl\"] = webhook_url",
"def ... | [
"0.7965667",
"0.70514935",
"0.70514935",
"0.64465934",
"0.6408095",
"0.63836944",
"0.63836944",
"0.63771325",
"0.6307387",
"0.62734437",
"0.62734437",
"0.62416446",
"0.6230209",
"0.6230209",
"0.6214113",
"0.61945534",
"0.6171839",
"0.6144634",
"0.6143329",
"0.6116675",
"0.605... | 0.8273623 | 1 |
Fetch an output from the designated stack. | def handle(cls, value, provider=None, **kwargs):
if provider is None:
raise ValueError('Provider is required')
d = deconstruct(value)
stack_fqn = d.stack_name
output = provider.get_output(stack_fqn, d.output_name)
return output | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_output(self):\n return self.__output",
"def _get_output(self):\n return self.__output",
"def _get_output(self):\n return self.__output",
"def _get_output(self):\n return self.__output",
"def _get_output(self):\n return self.__output",
"def _get_output(self):\n return self.__out... | [
"0.6229444",
"0.6229444",
"0.6229444",
"0.6229444",
"0.6229444",
"0.6229444",
"0.6144999",
"0.6112059",
"0.60660154",
"0.6035811",
"0.601849",
"0.5953925",
"0.5935931",
"0.5861582",
"0.5822318",
"0.58121276",
"0.57322085",
"0.568942",
"0.56770813",
"0.56518674",
"0.5650923",
... | 0.0 | -1 |
Pass variadic arguments as single tuple to function. | def variadic_args(self, /, *args, **kwargs):
return self._func(args, **kwargs) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tuple_from_sequence(*args):\n return tuple(args)",
"def eval_func_tuple(f_args):\n return f_args[0](*f_args[1:])",
"def test_star_args_with_tuple():\n arg_tuple = ('blue', 'red', 'yellow', 'orange')\n assert arguments.fun_star_params(*arg_tuple) == ('blue', 'red', 'yellow',\n ... | [
"0.7280073",
"0.7120121",
"0.70510066",
"0.68008286",
"0.6633716",
"0.64257365",
"0.637096",
"0.6357235",
"0.6306861",
"0.63045275",
"0.6205825",
"0.6205825",
"0.6189829",
"0.6165411",
"0.61188513",
"0.6073578",
"0.60210145",
"0.59337014",
"0.5926733",
"0.5923346",
"0.5910097... | 0.65786356 | 5 |
Test case for delete_derived_metric | def test_delete_derived_metric(self):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_undelete_derived_metric(self):\n pass",
"def test_remove_tag_from_derived_metric(self):\n pass",
"def test_create_derived_metric(self):\n pass",
"def test_update_derived_metric(self):\n pass",
"def test_get_derived_metric(self):\n pass",
"def test_set_derived_m... | [
"0.8503062",
"0.72971904",
"0.72436094",
"0.7220612",
"0.691763",
"0.6549232",
"0.6439398",
"0.63675994",
"0.633269",
"0.63087237",
"0.62992376",
"0.6285406",
"0.6227955",
"0.61994994",
"0.61688155",
"0.61495984",
"0.61430824",
"0.61205494",
"0.61076",
"0.60728514",
"0.607285... | 0.9535516 | 0 |
Take a Pandas dataframe and export it to CSV | def dataframe_to_csv(settings, dataframe):
if not os.path.exists(settings.input_file_path):
raise IOError("'input_file_path' not defined in settings object")
dataframe['custom_data'].apply(escape_single_quotes)
dataframe.to_csv(settings.input_file_path, header=True, encoding='utf-8', index=False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def info2csv(df, csv_path):\n df.to_csv(csv_path, index=False)",
"def save_dataframe(dataframe, filename):\n with open(filename, \"w\", encoding=\"utf8\") as outfile: \n dataframe.to_csv(outfile, sep=\",\")",
"def save_df(data_frame, file_path):\r\n data_frame.to_csv(file_path)\r\n return No... | [
"0.81104875",
"0.7947846",
"0.78185546",
"0.780965",
"0.77582383",
"0.77382284",
"0.7709111",
"0.762888",
"0.7613405",
"0.76019275",
"0.7513733",
"0.7512034",
"0.74008626",
"0.73956966",
"0.73810655",
"0.7373146",
"0.7348965",
"0.73473746",
"0.7335242",
"0.72715414",
"0.72134... | 0.745641 | 12 |
Generate a convolutional neural network model, with an embedding layer. | def gen_conv_model(articles, embedding_matrix, word_to_index):
# Number of words in the word lookup index
embedding_input_dim = embedding_matrix.shape[0]
# Number of dimensions in the embedding
embedding_output_dim = embedding_matrix.shape[1]
# Maximum length of the x vectors
embedding_input_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def build_model(embedding_size=512, attribute_vector_size=33, depth=5, \n\t\t\t\tscale_output=0.05, padding=False, \n\t\t\t\tmol_conv_inner_activation='tanh',\n mol_conv_outer_activation='softmax',\n\t\t\t\thidden=50, hidden_activation='tanh',\n\t\t\t\toutput_activation='linear', output_size=1, \n\t... | [
"0.7404582",
"0.7371116",
"0.7187729",
"0.7042963",
"0.68965",
"0.6722844",
"0.6706772",
"0.6689544",
"0.6666909",
"0.65697515",
"0.6485199",
"0.6482624",
"0.6479932",
"0.6469017",
"0.64607835",
"0.6443502",
"0.64217764",
"0.6420386",
"0.64125794",
"0.638798",
"0.6374837",
... | 0.7105789 | 3 |
Loads data for the specified city and filters by month and day if applicable. | def load_data(city, month, day):
df = pd.read_csv(CITY_DATA[city])
df['Start Time'] = pd.to_datetime(df['Start Time'])
df['End Time'] = pd.to_datetime(df['End Time'])
df['month'] = df['Start Time'].dt.month
df['day_of_week'] = df['Start Time'].dt.dayofweek
return df | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_data(city, month, day):\n df = pd.read_csv(CITY_DATA [city])\n \n # convert the Start Time column to datetime\n df['Start Time'] = pd.to_datetime(df['Start Time'])\n \n # extract month and day of week from Start Time to create new columns\n df['month'] = df['Start Time'].dt.month\n ... | [
"0.81320685",
"0.8108889",
"0.8045821",
"0.8042514",
"0.80090284",
"0.80071104",
"0.79991937",
"0.7998333",
"0.7988789",
"0.797905",
"0.79737365",
"0.79610896",
"0.7956163",
"0.7947432",
"0.79463065",
"0.7908287",
"0.7908229",
"0.7904569",
"0.7900715",
"0.78930074",
"0.788921... | 0.7345314 | 98 |
Displays statistics on the most frequent times of travel. | def time_stats(df):
print('\nCalculating The Most Frequent Times of Travel...\n')
start_time = time.time()
# TO DO: display the most common month
common_month = df['month'].mode()[0]
print('The most common month is: ',common_month)
# TO DO: display the most common day of week
'''df['day_o... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def time_stats(df):\n\n print('\\nDisplaying the statistics on the most frequent times of '\n 'travel...\\n')\n start_time = time.time()\n\n # display the most common month\n most_common_month = df['Month'].mode()[0]\n print('For the selected filter, the month with the most travels is: ' +\... | [
"0.8023676",
"0.8022362",
"0.79149705",
"0.7825905",
"0.78213924",
"0.7813664",
"0.7765152",
"0.77395964",
"0.7735777",
"0.7733763",
"0.76860064",
"0.7668081",
"0.7651128",
"0.7644099",
"0.7639373",
"0.7636164",
"0.7624668",
"0.7622597",
"0.76122236",
"0.7599646",
"0.75829977... | 0.73240453 | 54 |
Displays statistics on the most popular stations and trip. | def station_stats(df):
print('\nCalculating The Most Popular Stations and Trip...\n')
start_time = time.time()
# TO DO: display most commonly used start station
#count = df['Start Station'].count
most_start,num_most_start = Counter(df['Start Station']).most_common(1)[0]
print('The most comm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def station_stats(df):\n\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n start_time = time.time()\n\n # display most commonly used start station\n print(popular_start_station(df))\n\n # display most commonly used end station\n print(popular_end_station(df))\n\n # display m... | [
"0.7815675",
"0.7662213",
"0.7553417",
"0.74914914",
"0.74748665",
"0.7446617",
"0.7428588",
"0.74237514",
"0.74177027",
"0.7400495",
"0.7387161",
"0.7385634",
"0.73647535",
"0.735934",
"0.73566747",
"0.73548365",
"0.7351854",
"0.7351274",
"0.735057",
"0.73421645",
"0.7340198... | 0.71744 | 48 |
Displays statistics on the total and average trip duration. | def trip_duration_stats(df):
print('\nCalculating Trip Duration...\n')
start_time = time.time()
# TO DO: display total travel time
df['travel_time'] = df['End Time'] - df['Start Time']
#total_travel_time = df['travel_time'].sum()
print('The total travel time is: ',df['travel_time'].sum())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def trip_duration_stats(data):\n print('\\nCalculating Trip Duration...\\n')\n start_time = time.time()\n # display total travel time\n total_trip_time= data['Trip Duration'].sum()\n print('The Total Travel Time is {} Hours'. format(total_trip_time/3600))\n # display mean travel time\n avg_tri... | [
"0.814274",
"0.8025143",
"0.80041367",
"0.79496753",
"0.7937415",
"0.79312176",
"0.7926815",
"0.7915187",
"0.79142886",
"0.7908032",
"0.79055744",
"0.7900715",
"0.7891682",
"0.78894734",
"0.7886722",
"0.78851086",
"0.7884266",
"0.7882474",
"0.78738385",
"0.78686154",
"0.78664... | 0.7589596 | 92 |
Zeros gradients for all encoder and decoder parameters | def zero_all_grads(encoder_optimizer, decoder_optimizer):
for encoder in encoder_optimizer.values():
encoder.zero_grad()
for decoder in decoder_optimizer.values():
decoder.zero_grad() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zero_grad(self):\n for p, dp in self.params:\n dp.zero_()",
"def grad_zero(self):\r\n for layer in self.layers:\r\n layer.grad_zero()",
"def zero_gradients(architecture):\n \n grad_weights = {}\n grad_bias = {}\n \n # Initialising first and second moment... | [
"0.7043424",
"0.6952357",
"0.6898871",
"0.6750932",
"0.6724884",
"0.6724884",
"0.6671511",
"0.65783316",
"0.6532031",
"0.6508598",
"0.6402281",
"0.6366756",
"0.63446146",
"0.6241905",
"0.61495775",
"0.6144237",
"0.6078082",
"0.6060955",
"0.59821904",
"0.5956963",
"0.5877281",... | 0.7686539 | 0 |
This is the constructor for Mau Mau game. It sets some game vars and also loads the cards from the Database. The cards are shuffled and every player gets 5 cards. | def __init__(self, lobby_id, players):
self.card_wished = None
self.wait_for_card_wish = False
self.current_player = None
self.direction_clock_wise = True
self.current_draw_punishment = 1
self.players = []
self.lobby_id = lobby_id
if isinstance(players, l... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, n_human_players=1, n_ai_players=1, n_cards=10):\n\n self.n_cards = n_cards\n\n # Load the answers\n with open(\"cards-against-humanity/answers.pickle\", 'rb') as ans:\n self.answer_cards = pickle.load(ans)\n shuffle(self.answer_cards)\n self.used... | [
"0.697158",
"0.6878483",
"0.68133676",
"0.6448352",
"0.64336616",
"0.640631",
"0.638492",
"0.635807",
"0.63169646",
"0.6301258",
"0.6294507",
"0.62812364",
"0.62710476",
"0.62227297",
"0.6199106",
"0.61882496",
"0.61383903",
"0.6130978",
"0.6100927",
"0.60728455",
"0.60724044... | 0.6242272 | 13 |
Checks if a player has 0 cards and returns True when someone has empty cards. | def won_game(self):
for player in self.players:
if len(player.cards) == 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hand_empty(self):\n return len(self.cards) == 0",
"def has_cards(self):\n return self.hand.len() > 0",
"def is_empty( self ):\n \n return len(self.__deck) == 0",
"def empty(self):\n return len(self.deck) == 0",
"def still_in_hand(self):\n return len(self.hand.cards)!... | [
"0.79388666",
"0.7906326",
"0.77956253",
"0.7673315",
"0.71076256",
"0.70956796",
"0.69689",
"0.69063497",
"0.6819096",
"0.67164224",
"0.670265",
"0.670265",
"0.66589886",
"0.66589886",
"0.66370213",
"0.6634197",
"0.6614482",
"0.6614482",
"0.6604663",
"0.659804",
"0.6581797",... | 0.79126513 | 1 |
Initializes the attributes of an EsportsPlayer | def __init__(self, id, first_name, last_name, player_name, age, type):
AbstractEsportsPlayer._validate_input_integer('ID', id)
self._id = id
AbstractEsportsPlayer._validate_input_string('First Name', first_name)
self._first_name = first_name
AbstractEsportsPlayer._validate_inpu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, player):\n\t\tself.player = player",
"def __init__(self, players):\n\n self._players = players\n self._game = None",
"def __init__(self, *args, **kwargs):\n super(Player, self).__init__(*args, **kwargs)",
"def __init__(self, player):\n self.player = player",
"... | [
"0.7062088",
"0.70528233",
"0.700235",
"0.6998088",
"0.6970193",
"0.6928117",
"0.6823067",
"0.67856205",
"0.6696341",
"0.66557187",
"0.6633187",
"0.6621893",
"0.6587148",
"0.6580125",
"0.6536378",
"0.6501467",
"0.649081",
"0.6464",
"0.6445906",
"0.6443029",
"0.6354057",
"0.... | 0.6203449 | 29 |
Returns the player's age | def get_age(self):
return self._age | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_age(self):\n age = CURRENT_YEAR - self.year\n return age",
"def get_age(self):\n\t\treturn self.age",
"def get_age(self):\n return Guitar.CURRENT_YEAR - self.year",
"def get_age(self) -> int:\n return self.age",
"def get_age(self):\n return CURRENT_YEAR - self.yea... | [
"0.79312265",
"0.78338903",
"0.7782103",
"0.7780469",
"0.7745081",
"0.7745081",
"0.7684488",
"0.76725346",
"0.7649558",
"0.7643979",
"0.76352865",
"0.7604494",
"0.76032734",
"0.7582648",
"0.74756813",
"0.7470845",
"0.7420546",
"0.740009",
"0.72764903",
"0.7249292",
"0.7213572... | 0.7619108 | 13 |
Read dataset into pandas.DataFrame | def get_dataset() -> pd.DataFrame:
data = load_iris(as_frame=True)
dataset = data.frame
dataset.rename(
columns=lambda colname: colname.strip(' (cm)').replace(' ', '_'),
inplace=True
)
return dataset | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_data(dataset_path: str):\n data = arff.loadarff(dataset_path)\n data_frame = pd.DataFrame(data[0])\n return data_frame",
"def read_data(self) -> pd.DataFrame:\n data = pd.read_csv(self.data_path)\n assert isinstance(data, pd.DataFrame)\n return data",
"def read_data(self)... | [
"0.731878",
"0.72538805",
"0.72538805",
"0.7187229",
"0.70119303",
"0.7005113",
"0.69881403",
"0.69881403",
"0.69330364",
"0.6914647",
"0.6878707",
"0.68705297",
"0.68589586",
"0.6827774",
"0.6734755",
"0.66849655",
"0.66849655",
"0.66849655",
"0.66561514",
"0.66332364",
"0.6... | 0.6978758 | 8 |
Make a params dictionary and store weights and bias | def __init__(self, input_size, neurons):
super().__init__()
self.input_size = input_size
self.neurons = neurons
self.params["w"] = np.random.randn(input_size, neurons)
self.params["b"] = np.random.randn(1, neurons)
self.grads = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __init__(self, input_size, hidden_size, output_size, weight_init_std=0.01):\n\n self.params = {}\n self.params['W1'] = weight_init_std * \\\n np.random.randn(input_size, hidden_size)\n self.params['b1'] = np.zeros(hidden_size)\n self.params['W2'] = weight_init_std * \\\n ... | [
"0.76442695",
"0.73598725",
"0.72167444",
"0.71333015",
"0.7097781",
"0.70275265",
"0.6965367",
"0.6955834",
"0.69064295",
"0.6866782",
"0.68150663",
"0.68144023",
"0.6769096",
"0.67263365",
"0.6711915",
"0.6710554",
"0.66801155",
"0.6630528",
"0.662333",
"0.66097534",
"0.660... | 0.6472707 | 43 |
Return a boolean value, whether or not metadata can be extracted from the given object. | def test(self, obj):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def has_metadata(self):\n if self.mimetype in Config.mimes_metadata:\n return True\n return False",
"def isMetadataRepresentation(*args):\n return _libsbml.SBO_isMetadataRepresentation(*args)",
"def test_get_object_metadata_value(self):\n pass",
"def SBO_isMetadataRepre... | [
"0.64614314",
"0.6439523",
"0.63466805",
"0.6230125",
"0.61951643",
"0.61229485",
"0.6033356",
"0.60302395",
"0.6016373",
"0.5995361",
"0.59930426",
"0.59881574",
"0.59881574",
"0.59877735",
"0.59632945",
"0.586778",
"0.584393",
"0.58176726",
"0.57970756",
"0.5782617",
"0.577... | 0.0 | -1 |
Return a boolean value, whether or not metadata can be extracted from the given object. | def test_ds(self, obj):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def has_metadata(self):\n if self.mimetype in Config.mimes_metadata:\n return True\n return False",
"def isMetadataRepresentation(*args):\n return _libsbml.SBO_isMetadataRepresentation(*args)",
"def test_get_object_metadata_value(self):\n pass",
"def SBO_isMetadataRepre... | [
"0.6460237",
"0.6438042",
"0.63445616",
"0.62287074",
"0.6193799",
"0.6122259",
"0.6032363",
"0.6028849",
"0.6016734",
"0.5995631",
"0.59928787",
"0.59892434",
"0.59892434",
"0.59860283",
"0.596399",
"0.58689284",
"0.5845733",
"0.5816819",
"0.5798232",
"0.57836026",
"0.577489... | 0.0 | -1 |
A protocol that maps index to data sample from the dataset. This method is used by the pytorch DataLoader. | def __getitem__(self, index):
x = self._input_data[index]
if self._output_data is None:
return x, x
else:
y = self._output_data[index]
return x, y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __getitem__(self, index):\n return self.data_source.get_sample(index)",
"def __getitem__(self, idx):\n sample_data = BlockSampleData(*self.mapping_array[idx])\n return sample_data",
"def __getitem__(self, index):\n\n # get and load sample from index file\n sample = self.s... | [
"0.7159755",
"0.7121442",
"0.71087086",
"0.67742395",
"0.6671802",
"0.6670147",
"0.6645558",
"0.65731823",
"0.6458286",
"0.6458286",
"0.6436888",
"0.6397249",
"0.63947904",
"0.63547623",
"0.6350598",
"0.63500124",
"0.63213825",
"0.63213825",
"0.6289017",
"0.62871665",
"0.6274... | 0.0 | -1 |
Test that when normalizing an empty vector, the resulting vector is also empty. | def test_normalize_empty_vector(self):
v = Vector({ })
v.normalize()
self.assertEqual({ }, v.dimensions) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_normalize_zero_length_vector(self):\n\n v = Vector({ 'x': 0 })\n v.normalize()\n self.assertEqual({ 'x': 0 }, v.dimensions)",
"def test_norm_zero_vector():\n normalized = pr.norm_vector(np.zeros(3))\n assert_true(np.isfinite(np.linalg.norm(normalized)))",
"def testNormalize(... | [
"0.81496495",
"0.78411055",
"0.74114275",
"0.73783535",
"0.72062165",
"0.71497107",
"0.71008927",
"0.70722044",
"0.6938275",
"0.6796317",
"0.6769587",
"0.6745408",
"0.6741875",
"0.6653603",
"0.66417587",
"0.6601467",
"0.6596668",
"0.6515499",
"0.6508668",
"0.64866185",
"0.648... | 0.8602283 | 0 |
Test that when normalizing a vector with a zero length, the resulting vector is also empty. | def test_normalize_zero_length_vector(self):
v = Vector({ 'x': 0 })
v.normalize()
self.assertEqual({ 'x': 0 }, v.dimensions) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_normalize_empty_vector(self):\n\n v = Vector({ })\n v.normalize()\n self.assertEqual({ }, v.dimensions)",
"def test_norm_zero_vector():\n normalized = pr.norm_vector(np.zeros(3))\n assert_true(np.isfinite(np.linalg.norm(normalized)))",
"def normalize_vector (vector ):\r\n\r\... | [
"0.84377265",
"0.82322305",
"0.7353282",
"0.7295392",
"0.7250768",
"0.71080756",
"0.7103554",
"0.7094029",
"0.70857406",
"0.7023313",
"0.6997861",
"0.690461",
"0.68873423",
"0.68524957",
"0.675342",
"0.6742152",
"0.66700083",
"0.66531956",
"0.66276",
"0.6613467",
"0.6609578",... | 0.85125893 | 0 |
Test that when getting the value of a dimension that does not exist, 0 is returned. | def test_get_non_existent_dimension(self):
v = Vector({ })
self.assertEqual(0, v.dimensions['x']) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_no_default_value(self):\n dim = Dimension(\"yolo\", \"uniform\", -3, 4)\n assert dim.default_value is None",
"def test_no_default_value(self):\n dim = Integer(\"yolo\", \"uniform\", -3, 4)\n assert dim.default_value is None",
"def test_no_default_value(self):\n dim =... | [
"0.70874894",
"0.7016006",
"0.6776817",
"0.67215556",
"0.64756584",
"0.64164793",
"0.6374939",
"0.6236208",
"0.6161615",
"0.60710603",
"0.6036116",
"0.60280925",
"0.6012499",
"0.5994546",
"0.59686834",
"0.5935366",
"0.5928259",
"0.5923804",
"0.59131557",
"0.5895374",
"0.58927... | 0.8230949 | 0 |
Test that when a vector is normalized, its dimensions ae a vecto space. | def test_normalize_vector_space(self):
v = Vector({ 'x': 10 })
self.assertEqual(VectorSpace, type(v.dimensions))
v.normalize()
self.assertEqual(VectorSpace, type(v.dimensions)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_normalize_zero_length_vector(self):\n\n v = Vector({ 'x': 0 })\n v.normalize()\n self.assertEqual({ 'x': 0 }, v.dimensions)",
"def test_normalize_empty_vector(self):\n\n v = Vector({ })\n v.normalize()\n self.assertEqual({ }, v.dimensions)",
"def testNorm(self... | [
"0.7273565",
"0.7265471",
"0.72405046",
"0.71075654",
"0.6897463",
"0.68505573",
"0.68457544",
"0.68412",
"0.67779267",
"0.67724365",
"0.67503047",
"0.67423177",
"0.6721985",
"0.67039394",
"0.66668797",
"0.66668797",
"0.66668797",
"0.6663377",
"0.6647607",
"0.6612262",
"0.661... | 0.7673712 | 0 |
r""" Use the maximum spanning tree algorithm to calculate the parsing result and ensure that the output is a legal tree structure. | def mst_decoder(arc_matrix: torch.Tensor, mask: torch.Tensor = None):
batch_size, seq_len = arc_matrix.size()[:2]
if mask is None:
mask = torch.ones((batch_size, seq_len), dtype=torch.long, device=arc_matrix.device)
matrix = arc_matrix.clone()
ans = matrix.new_zeros(batch_si... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def max_value(tree):\n max_utility = float(\"-inf\")\n \n if (is_terminal(tree)):\n return tree\n else:\n #options = []\n for node in tree:\n #options.append(max_value(node))\n max_utility = max(max_utility, min_value(node))\n return max_utility",
"de... | [
"0.59117615",
"0.5877324",
"0.58103997",
"0.57280076",
"0.5696937",
"0.5691949",
"0.5653253",
"0.55955684",
"0.5588337",
"0.556822",
"0.55513865",
"0.55396104",
"0.5516491",
"0.5509923",
"0.54451877",
"0.5425443",
"0.5424502",
"0.5421774",
"0.5403606",
"0.53988",
"0.53918517"... | 0.0 | -1 |
r""" Equation for pressure drop calculation from darcy friction factor. Returns | def darcy_func(self):
i, o = self.inl[0].to_flow(), self.outl[0].to_flow()
if abs(i[0]) < 1e-4:
return i[1] - o[1]
visc_i = visc_mix_ph(i, T0=self.inl[0].T.val_SI)
visc_o = visc_mix_ph(o, T0=self.outl[0].T.val_SI)
v_i = v_mix_ph(i, T0=self.inl[0].T.val_SI)
v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def calculate_pressure_gradient(self, Uf, Vp):\n\n\t\tF = self.B*(Uf - Vp)\n\t\tvolume = (np.pi/6.)*(self.dp**3)\n\t\tdP = ((1. - self.epsf)/self.epsf)*(F/volume)\n\t\treturn dP",
"def dphi(x):\n return -kf(\n flapping_wing_frequency, flapping_angular_velocity_amplitude,\n flapping_a... | [
"0.64271843",
"0.6320308",
"0.6320308",
"0.61296636",
"0.59830445",
"0.5936518",
"0.59147185",
"0.58864844",
"0.585975",
"0.5854614",
"0.5841214",
"0.58038944",
"0.5788643",
"0.57831407",
"0.57831407",
"0.577789",
"0.5751166",
"0.57365113",
"0.5730644",
"0.5697402",
"0.567892... | 0.58740324 | 8 |
r""" Equation for heat exchanger energy balance. Returns | def energy_func(self):
return (
self.inl[0].m.val_SI * (
self.outl[0].h.val_SI - self.inl[0].h.val_SI) +
self.inl[1].m.val_SI * (
self.outl[1].h.val_SI - self.inl[1].h.val_SI)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def energy_function(self, x):\n \n return -T.dot(T.transpose(x), T.dot(self.W, x)) -\\\n T.dot(T.transpose(self.b), x)",
"def energy_func(self):\n i = self.inl[0].to_flow()\n o = self.outl[0].to_flow()\n\n T_m = (T_mix_ph(i, T0=self.inl[0].T.val_SI) +\n T_mix_ph... | [
"0.67962325",
"0.6571412",
"0.6475829",
"0.63321126",
"0.63256603",
"0.63052183",
"0.62990624",
"0.62647146",
"0.62215227",
"0.62125754",
"0.61980164",
"0.61933035",
"0.6189467",
"0.61288303",
"0.6078053",
"0.6063025",
"0.6029168",
"0.6017693",
"0.5985925",
"0.5973479",
"0.59... | 0.6168814 | 13 |
Retrieves an article instance by slug | def fetch(cls, slug):
try:
article = Article.objects.get(slug=slug)
except Article.DoesNotExist:
raise exceptions.NotFound(f'Article with slug {slug} nonexistent')
else:
return article | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fetch(cls, slug):\n try:\n article = Article.objects.get(slug=slug)\n except Article.DoesNotExist:\n raise exceptions.NotFound(f'Article of slug {slug} nonexistent')\n else:\n return article",
"def get_article(self, slug):\n\t\tarticle = Blog.objects.get(... | [
"0.85910726",
"0.8506934",
"0.8110329",
"0.79361844",
"0.78539926",
"0.76428974",
"0.71877354",
"0.709687",
"0.70077795",
"0.6740493",
"0.6717442",
"0.66809005",
"0.6593266",
"0.6559878",
"0.6551789",
"0.65463233",
"0.6518413",
"0.6484419",
"0.64334583",
"0.6341164",
"0.63099... | 0.85958314 | 0 |
GetNumberCols() > integer Returns the number of visible columns. | def GetNumberCols(self):
return len(self.__colsKey) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getNumCols(self):\n return self.__cols",
"def get_num_cols(self):\n return self._num_cols",
"def num_cols(self):\n return len(self.column_names())",
"def ncolumns(self):\n return len(self.__column_list)",
"def ncolumns(self):\n return self.__ncols",
"def GetNumColum... | [
"0.811989",
"0.8004559",
"0.77950627",
"0.77658176",
"0.77369875",
"0.7732376",
"0.7657313",
"0.76274264",
"0.7597712",
"0.75478923",
"0.75318706",
"0.74209034",
"0.74136543",
"0.7405797",
"0.7357968",
"0.73129797",
"0.7309851",
"0.72925806",
"0.7291157",
"0.7290618",
"0.7230... | 0.8220859 | 0 |
Method to load a given set of weights into the network. | def load_weights(self, weights):
i = 0
for l in range(1, self.num_layers()):
for n in range(self.get_layer(l).num_nodes):
for w in range(len(self.get_node_with_layer(l, n).weights)):
self.get_node_with_layer(l, n).weights[w] = weights[i]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def load_weights(self, weights):\n weight = np.load(weights)\n return weight",
"def _load_weights(self):\n self.npz_weights = np.load(self._weight_file)\n self._load_byte_embedding()\n self._load_cnn_weights()\n self._load_highway()\n self._load_projection()",
"... | [
"0.7639586",
"0.75439215",
"0.7325786",
"0.7270445",
"0.7204362",
"0.6920447",
"0.6920438",
"0.6888693",
"0.68735874",
"0.6867385",
"0.6847037",
"0.6840368",
"0.676552",
"0.6743632",
"0.6743632",
"0.67414284",
"0.67148733",
"0.670665",
"0.669759",
"0.6693196",
"0.6688012",
... | 0.8074686 | 0 |
Sigmoid function to be used by the network. | def sigmoid(x):
return 1 / (1 + math.exp(-x)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sigmoid(x):\n return 1 / (1 + exp(-x))",
"def sigmoid(x):\n return 1 / (1 + exp(-x))",
"def sigmoid(x):\n\treturn 1 / (1 + m.exp(-x))",
"def sigmoid(x):\n return 1.0/(1.0+exp(-x))",
"def sigmoid(x):\n return 1 / (1 + math.exp(-x))",
"def sigmoid(z):\r\n \r\n return vSigmoid(z);",
"... | [
"0.84539974",
"0.84539974",
"0.8433731",
"0.83912814",
"0.83877647",
"0.8369399",
"0.8351645",
"0.8330808",
"0.83145833",
"0.82960594",
"0.8295298",
"0.8286293",
"0.8285898",
"0.8285107",
"0.8277972",
"0.82758754",
"0.82758754",
"0.82758754",
"0.82758754",
"0.82758754",
"0.82... | 0.83529615 | 7 |
The derivative of the sigmoid function to be used by the network. | def sigmoid_derivative(x):
return sigmoid(x) * (1 - sigmoid(x)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sigmoid_derivative(x):\n return x * (1-x)",
"def derivative_sigmoid(x):\n return x * (1 - x)",
"def derivative_sigmoid(x):\n return x * (1 - x)",
"def sigmoid_derivative(x):\n return x * (1.0 - x)",
"def sigmoid_derivative(x):\n\n s = sigmoid(x)\n ds = s * (1 - s)\n\n return ds",
... | [
"0.8652907",
"0.8632237",
"0.8632237",
"0.86057615",
"0.82758254",
"0.8041866",
"0.79195035",
"0.7826982",
"0.7771005",
"0.7698231",
"0.769309",
"0.76483786",
"0.7610764",
"0.7610234",
"0.7571052",
"0.7563373",
"0.7415634",
"0.73172736",
"0.7303813",
"0.7202154",
"0.7198966",... | 0.84601986 | 4 |
Looks up a participant's math score from a single session by accessing their session log. The total math score for each session should be listed near the end of that session's log. If no score can be found in the session log or no session log exists, returns np.nan. | def get_math_correct(subj, sess):
# Load the session log from that session
session_log = '/data/eeg/scalp/ltp/ltpFR2/%s/session_%d/session.log' % (subj, sess)
if os.path.exists(session_log):
with open(session_log, 'r') as f:
sess_log = list(csv.reader(f, delimiter='\t'))
# Find t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def log_score(self, T, pos, m, psi, phi):\n log_score = 0\n for (i, j, lab) in T:\n m_i = m[i - 1]\n pos1 = pos[i - 1]\n log_score += self.get_phi_score(phi, i - 1, m_i)\n if j != 0:\n m_j = m[j - 1]\n pos2 = pos[j - 1]\n ... | [
"0.5633698",
"0.54860896",
"0.5320337",
"0.53086704",
"0.5268358",
"0.52580386",
"0.5209622",
"0.5187003",
"0.5169259",
"0.51526666",
"0.51206523",
"0.5119374",
"0.5080019",
"0.50736946",
"0.50734013",
"0.5059734",
"0.5031076",
"0.5027608",
"0.49937963",
"0.49743652",
"0.4973... | 0.7585985 | 0 |
Sets the name of the generator | def setVarName(self, theName):
self._name = theName
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_name(name=False):\n if not name:\n name = name_generator()\n return name",
"def generate_name(self, generate_name):\n\n self._generate_name = generate_name",
"def set_name(self,name):\r\n self._name = __name",
"def name(self, name):\n self.__name = name",
"def set_... | [
"0.77553123",
"0.7243141",
"0.71097195",
"0.6981113",
"0.68965095",
"0.68585426",
"0.6851313",
"0.68251806",
"0.6804396",
"0.6796957",
"0.6796957",
"0.6787753",
"0.67791533",
"0.67779267",
"0.67751366",
"0.67751366",
"0.67751366",
"0.67751366",
"0.67749065",
"0.67749065",
"0.... | 0.0 | -1 |
r"""Creates a neural network block transforming inputs or internal representations. | def make_block(self, in_size, out_size, **kwargs):
raise NotImplementedError("Abstract") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _construct_block(self, block_info):\n layer_name = block_info[0]\n if layer_name=='Conv2d':\n in_channels, out_channels, kernel_size = block_info[1:]\n return nn.Conv2d(in_channels=in_channels,\n out_channels=out_channels,\n ... | [
"0.71880865",
"0.7037017",
"0.6997956",
"0.6874658",
"0.68390745",
"0.6837391",
"0.6813544",
"0.67926556",
"0.6759496",
"0.67169935",
"0.67075175",
"0.6683171",
"0.6636538",
"0.6616177",
"0.6586547",
"0.6581364",
"0.6570768",
"0.6520769",
"0.6496838",
"0.6494758",
"0.6491984"... | 0.5990253 | 84 |
r"""Creates a learnable constant in the polynomial. | def make_constant(self, size):
raise NotImplementedError("Abstract") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gen_constant(self, g, ng, ct):\n pass",
"def __init__(self, constant, power, **kwargs):\n super().__init__(dynamic=True, **kwargs)\n self.constant = tf.Variable(initial_value=constant, trainable=True)\n self.power = power",
"def const(self, init_repr, name):\n randomness ... | [
"0.64319265",
"0.64144236",
"0.61808044",
"0.6075579",
"0.6034002",
"0.60248893",
"0.6008278",
"0.59667265",
"0.5965523",
"0.5920035",
"0.5886676",
"0.5852314",
"0.58322924",
"0.5742434",
"0.5718908",
"0.5684375",
"0.5678559",
"0.5637686",
"0.5620364",
"0.5577464",
"0.5557171... | 0.61777395 | 3 |
Compute the hour offsets from the starttime and stoptime | def get_hour_offsets(self):
starttime = self.parameters['startlocaltime']
stoptime = self.parameters['stoplocaltime']
timediff = (stoptime - starttime)
logger.debug("Start time: {} | Stop time: {}".format(starttime, stoptime))
if timediff > config.TIME_THRESHOLD:
logg... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_start_end_hour():\n # sh = None\n # eh = None\n # data = None\n # result = makesky.start_end_hour(sh, eh, data)\n pass",
"def start_and_end_time():\n (shour, smin) = START_TIME.split(\":\")\n stime = arrow.now()\n start_time = arrow.Arrow(stime.year, stime.month, stime.day, int(s... | [
"0.62599874",
"0.6141549",
"0.59843206",
"0.58328676",
"0.56528187",
"0.5650751",
"0.5558604",
"0.5501871",
"0.5496359",
"0.5483162",
"0.54707944",
"0.5469286",
"0.5435887",
"0.5416379",
"0.5406121",
"0.53805447",
"0.5324881",
"0.53219736",
"0.52883893",
"0.5282402",
"0.52652... | 0.7898843 | 0 |
Given the min and max latitudes, get the full necessary extent. | def get_lat_offsets(self):
startlat = self.parameters['startlatitude']
stoplat = self.parameters['stoplatitude']
#Given the start and stops,
startidx, startvalue = utils.getnearest(self.latitudes, startlat)
stopidx, stopvalue = utils.getnearest(self.latitudes, stoplat)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_min_max_indices(latitudes_ref, longitudes_ref,\n minlat=None, maxlat=None,\n minlon=None, maxlon=None):\n\n latitudes = latitudes_ref[:]\n longitudes = longitudes_ref[:]\n\n latitudes = ensure_numeric(latitudes)\n longitudes = ensure_numeric(longi... | [
"0.70362824",
"0.67288023",
"0.6562085",
"0.6535149",
"0.64297754",
"0.6406724",
"0.6396628",
"0.6383413",
"0.6380986",
"0.63797235",
"0.6321674",
"0.62624866",
"0.6255896",
"0.6231232",
"0.6225539",
"0.61871517",
"0.6165546",
"0.61556387",
"0.610697",
"0.61051494",
"0.609075... | 0.0 | -1 |
Returns a dictionary of headers with authorization token. | def init_headers(token):
headers = {
'Content-Type': 'application/json',
'Authorization': 'Bearer ' + token
}
return headers | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_headers():\n headers = {\n \"Authorization\": \"Token {}\".format(get_token()),\n }\n\n return headers",
"def _headers(self):\n auth = AuthenticationProvider.currentAuth()\n\n return {\n 'Authorization': '%s %s' % (auth.tokenType, auth.accessToken),\n ... | [
"0.8673079",
"0.8272637",
"0.8262963",
"0.82387716",
"0.81472844",
"0.8024985",
"0.7991128",
"0.79847145",
"0.79434896",
"0.7937968",
"0.79241693",
"0.7919883",
"0.7878407",
"0.7855251",
"0.7838044",
"0.78057295",
"0.7788219",
"0.7773607",
"0.77646655",
"0.77271664",
"0.77238... | 0.78133 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.