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 |
|---|---|---|---|---|---|---|
retrieve an org configuration by name key | def get_org(self, name: str):
org = self._get_org(name)
if org.keychain:
assert org.keychain is self
else:
org.keychain = self
return org | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_org(self, org_name):\n org = SpokeOrg()\n result = org.get(org_name)\n if result == []:\n msg = \"Can't find org %s\" % org_name\n self.log.error(msg)\n raise error.NotFound(msg) \n return result",
"def get_value_for_org(org, val_name... | [
"0.68265975",
"0.65030956",
"0.64139026",
"0.63711214",
"0.6317985",
"0.62915844",
"0.6257211",
"0.62353575",
"0.6192515",
"0.6178011",
"0.6153753",
"0.604356",
"0.6042139",
"0.60162944",
"0.5971323",
"0.59193593",
"0.58669215",
"0.58424205",
"0.58312154",
"0.5823578",
"0.572... | 0.6275705 | 6 |
Retrieve a stored ServiceConfig from the keychain. If no alias is specified then the default service for the given type is returned. | def get_service(self, service_type, alias=None):
if not self.project_config.services:
raise ServiceNotValid(
"Expecting services to be loaded, but none were found."
)
elif service_type not in self.project_config.services:
raise ServiceNotConfigured(
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Get():\n return ServiceConfig() # Singleton decorator ensures there's only one",
"def get_service(service=None, vsys=\"1\"):\n query = {\n \"type\": \"config\",\n \"action\": \"get\",\n \"xpath\": (\n \"/config/devices/entry[@name='localhost.localdomain']/vsys/entry[@na... | [
"0.64386207",
"0.6234287",
"0.6102218",
"0.5757403",
"0.57562965",
"0.57507133",
"0.5737203",
"0.57153684",
"0.55992347",
"0.55452037",
"0.55285525",
"0.5525552",
"0.5519907",
"0.5493926",
"0.5481294",
"0.54008186",
"0.53776795",
"0.5366435",
"0.53347075",
"0.53327155",
"0.53... | 0.7389571 | 0 |
Returns the current bluetooth sharing | def fact():
result = "None"
objc.loadBundle(
"IOBluetooth",
globals(),
bundle_path=objc.pathForFramework(
u"/System/Library/Frameworks/IOBluetooth.framework"
),
)
btprefs = IOBluetoothPreferences.alloc().init()
result = bool(btprefs.fileTransferServicesE... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_bluetooth(self):\n return self._bluetooth",
"def social_sharing(self):\n return self._social_sharing",
"def device(self):\n return self.share.device",
"def share_type(self) -> str:\n return pulumi.get(self, \"share_type\")",
"def last_shared(self):\n return self.p... | [
"0.645038",
"0.6217421",
"0.6110588",
"0.6021669",
"0.5934616",
"0.5865868",
"0.5780988",
"0.57468843",
"0.5715147",
"0.5575145",
"0.5537436",
"0.55130345",
"0.5386919",
"0.53177494",
"0.53098106",
"0.52975106",
"0.52834517",
"0.5273706",
"0.52645296",
"0.5164933",
"0.5147455... | 0.4939966 | 39 |
Find day and month of the first payment date | def find_day_and_month(self,first_payment_date):
if first_payment_date != 'not found':
payment_month = first_payment_date[-5:-3]
payment_day = first_payment_date[-2:]
return int(payment_day),month_name[int(payment_month)]
else:
return ('not found','not found') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def first_month_day():\r\n return datetime.now().replace(day=1).strftime('%d-%m-%Y')",
"def get_first_date(in_month=1):\n\n from_date = (today-relativedelta(months=in_month)).replace(day=1)\n \n return from_date",
"def first_day_of_month(date):\n return date.replace(day=1)",
"def first_day_of_... | [
"0.7310301",
"0.7238106",
"0.7236655",
"0.7236655",
"0.7104547",
"0.67101693",
"0.65156627",
"0.64266336",
"0.6404301",
"0.63138336",
"0.6303077",
"0.60334074",
"0.60333645",
"0.6032739",
"0.6022944",
"0.598467",
"0.59842825",
"0.59762347",
"0.59652746",
"0.5940681",
"0.59212... | 0.7633343 | 0 |
checks to see if the command was used in a guild and if bot has perms to perform mod tasks | async def __local_check(self, ctx):
if not isinstance(ctx.channel, discord.TextChannel):
raise InvalidChannelCheck(ctx.command)
me = ctx.me.guild_permissions
perms = (me.manage_messages, me.manage_nicknames, me.ban_members, me.kick_members)
if not all(perms):
rais... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def guild_only():\n\n async def check(ctx):\n if ctx.guild: # In a server\n return True\n await ctx.send('This command is only available in servers!')\n return False\n\n return commands.check(check)",
"def cog_check(self, ctx):\r\n return ctx.author.guild_permissions... | [
"0.74673593",
"0.7220633",
"0.7220633",
"0.7182386",
"0.7182386",
"0.7147552",
"0.71263224",
"0.6952618",
"0.67841953",
"0.6645006",
"0.659855",
"0.65437925",
"0.65172327",
"0.6309831",
"0.6255616",
"0.6236305",
"0.6236075",
"0.6211927",
"0.62000465",
"0.6173084",
"0.61439013... | 0.70658207 | 7 |
Set the time series. | def set_ts_list(self, ts_list, atr_names):
# TODO - add tests of the structure and type + tests
self.ts_list = ts_list
self.col_names = atr_names | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def series(self, series):\n\n self._series = series",
"def __setitem__(self, index, value):\n self._timeseriesData[index] = value",
"def __set_time_data(self, tdata):\n assert tdata.shape[-1] == self._nt\n self._in_time = tdata\n self._in_freq = None",
"def set_meta(self, k... | [
"0.7109979",
"0.7040619",
"0.6756352",
"0.6552581",
"0.6515575",
"0.6398339",
"0.62425715",
"0.62127095",
"0.61963147",
"0.6184045",
"0.61238635",
"0.61205024",
"0.6106289",
"0.6074139",
"0.6042786",
"0.59660465",
"0.59383523",
"0.5932752",
"0.59225667",
"0.58734393",
"0.5850... | 0.0 | -1 |
Get ts as pandas.Series. | def get_ts_series(self):
ts = pd.Series(dict(self.ts_list))
ts.rename(self.col_names[1], inplace=True)
ts.sort_index()
return ts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def to_series(self) -> pd.Series:\n df = self.to_dataframe(\"* values *\")\n dims = self.dims_list\n if len(dims) == 1:\n dims = dims[0]\n return df.set_index(dims)[\"* values *\"]",
"def as_series(self) -> \"pd.Series\":\n import pandas as pd\n\n data = {\"_r... | [
"0.71792716",
"0.7003198",
"0.69703484",
"0.687739",
"0.682465",
"0.68231004",
"0.68036836",
"0.676699",
"0.6686363",
"0.6629022",
"0.6560902",
"0.6558028",
"0.65551573",
"0.651114",
"0.6478499",
"0.6466663",
"0.64557606",
"0.6444436",
"0.6356889",
"0.62722105",
"0.622378",
... | 0.8061271 | 0 |
Shift the pointer head up (argmax is 0), down (argmax is 2) or leave it unchanged (argmax is 1). If the pointer head goes out of bound, double the memory capacity in the corresponding direction. | def shift(self, shift_vec: np.ndarray) -> None:
if len(shift_vec) != 3:
raise ValueError("`shift_vec` must be a three dimensional vector")
shift = np.argmax(shift_vec) - 1
self._head += shift
if self._head < 0:
new_buffer = np.zeros_like(self._buffer)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def shift(self):\n value = self.tail.value\n try:\n if self.count > 1:\n self.tail = self.tail.next\n self.tail.previous = None\n else:\n self.tail = None\n self.head = None\n self.count -= 1\n except ... | [
"0.6382028",
"0.6227643",
"0.6099087",
"0.6095311",
"0.604916",
"0.6005371",
"0.5944209",
"0.58437026",
"0.57383984",
"0.55955243",
"0.55858135",
"0.55329174",
"0.5513635",
"0.5499079",
"0.5498678",
"0.5433452",
"0.54268926",
"0.5399991",
"0.53995955",
"0.538956",
"0.5388077"... | 0.5194663 | 43 |
Returns the value to which the specified key is mapped, or 1 if this map contains no mapping for the key | def get(self, key: int) -> int:
t = key % 20011
for item in self.hash[t]:
if item[0] == key:
return item[1]
return -1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get(self, key: int) -> int:\n if key not in self.map:\n return -1\n return self.map[key]",
"def get(self, key: int) -> int:\n if key in self.hashmap.keys():return self.hashmap[key]\n else:return -1",
"def get(self, key: int) -> int:\n sh = key % 37\n if ... | [
"0.8002835",
"0.79087764",
"0.7628783",
"0.75637543",
"0.7555507",
"0.75292677",
"0.7524743",
"0.7492294",
"0.7373259",
"0.7293033",
"0.72212994",
"0.7215875",
"0.71805626",
"0.7176338",
"0.7161437",
"0.6980302",
"0.6927662",
"0.6784585",
"0.6755809",
"0.67329115",
"0.6611712... | 0.72927934 | 10 |
Return this Response Instance's response string. | def return_response_string(self):
response = "{} {}\r\n".format(self.protocol, self.code)
str_headers = ""
if self.headers:
for k, v in self.headers.items():
str_headers += "{}: {}\r\n".format(k, v)
encoded_response = "{}{}\r\n".format(response, str_headers)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def via_response(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"via_response\")",
"def response_description(self):\n return self._response_description",
"def printable_reponse(self):\n resp = self.response\n msg = \"-- Reponse : {} -- \\r\\n\".format(resp.status_code)\n ... | [
"0.7458594",
"0.7451361",
"0.70688826",
"0.70533603",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.7027507",
"0.70197165",
"0.694976",
"0.6949643",
"0.6945132",
"0.6945132",
... | 0.7525798 | 0 |
Test the removal of a dynamic config | def test_config_remove(self):
server = self.start_server("hello world", 200)
try:
self.setup_dynamic()
cfg_file = "test.yml"
self.write_dyn_config(
cfg_file, self.http_cfg("myid", "http://localhost:{}".format(server.server_port)))
self.w... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def test_component_configuration_removed_from_agent_config(self):\n with cd(self._get_cwd()):\n self.run_cli_command(\n \"add\", \"--local\", self.ITEM_TYPE, str(self.ITEM_PUBLIC_ID)\n )\n self.run_cli_command(\"add\", \"--local\", \"connection\", \"fetchai/ht... | [
"0.7035394",
"0.6895854",
"0.6860751",
"0.6844547",
"0.68334085",
"0.6773212",
"0.6735505",
"0.6604763",
"0.6597108",
"0.6479708",
"0.6474276",
"0.6414794",
"0.6373553",
"0.6369092",
"0.63453776",
"0.62769926",
"0.62682956",
"0.6252652",
"0.6243503",
"0.6241075",
"0.62054384"... | 0.76988214 | 0 |
Removes all keyvalue pairs, matching the provided keys from the dictionary and returns a new one. Does not crash when nonexistant keys are provided. | def exclude_keys(dictionary: Mapping, keys: Sequence[Hashable]) -> dict:
return {k: v for k, v in dictionary.items() if k not in keys} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def remove_keys_from_dict(dictionary, keys):\n\n # Copy dictionary\n dictionary_updated = dictionary.copy()\n try:\n [dictionary_updated.pop(key) for key in keys]\n except:\n print(\"Error: No ratio and sampling strategy parameters\")\n return dictionary_updated",
"def remove_keys(_d... | [
"0.791801",
"0.7600301",
"0.7530277",
"0.7333359",
"0.7188437",
"0.7156762",
"0.7124943",
"0.71107596",
"0.7065144",
"0.7062632",
"0.70251936",
"0.68798506",
"0.68189305",
"0.67536616",
"0.67533064",
"0.6744114",
"0.67298985",
"0.6711654",
"0.66469604",
"0.66336733",
"0.65821... | 0.70993817 | 8 |
Sets the affiliate_ledger_oid of this AffiliateLedger. | def affiliate_ledger_oid(self, affiliate_ledger_oid):
self._affiliate_ledger_oid = affiliate_ledger_oid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def affiliate_oid(self, affiliate_oid):\n\n self._affiliate_oid = affiliate_oid",
"def affiliate_oid(self, affiliate_oid):\n\n self._affiliate_oid = affiliate_oid",
"def affiliate_link_oid(self, affiliate_link_oid):\n\n self._affiliate_link_oid = affiliate_link_oid",
"def affiliate_click... | [
"0.7558621",
"0.7558621",
"0.68688244",
"0.62125736",
"0.56834066",
"0.5259945",
"0.49751735",
"0.4942586",
"0.4926135",
"0.48596948",
"0.4745348",
"0.47309402",
"0.46587014",
"0.4638904",
"0.4626718",
"0.46136352",
"0.46068162",
"0.46054283",
"0.4602626",
"0.45898223",
"0.45... | 0.89706284 | 0 |
Sets the affiliate_oid of this AffiliateLedger. | def affiliate_oid(self, affiliate_oid):
self._affiliate_oid = affiliate_oid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def affiliate_ledger_oid(self, affiliate_ledger_oid):\n\n self._affiliate_ledger_oid = affiliate_ledger_oid",
"def affiliate_link_oid(self, affiliate_link_oid):\n\n self._affiliate_link_oid = affiliate_link_oid",
"def affiliate_click_oid(self, affiliate_click_oid):\n\n self._affiliate_clic... | [
"0.85913104",
"0.7713323",
"0.7259474",
"0.6634326",
"0.54382145",
"0.5437925",
"0.5050352",
"0.5042808",
"0.50052524",
"0.49878684",
"0.496768",
"0.492162",
"0.49187845",
"0.49098703",
"0.4889279",
"0.48422354",
"0.47829366",
"0.4691393",
"0.46456856",
"0.46371612",
"0.46163... | 0.87402266 | 0 |
Sets the assigned_by_user of this AffiliateLedger. | def assigned_by_user(self, assigned_by_user):
self._assigned_by_user = assigned_by_user | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def assigned_user(self, assigned_user):\n self._assigned_user = assigned_user",
"def assigned_user(self):\n return self._assigned_user",
"def issued_by(self, issued_by):\n\n self._issued_by = issued_by",
"def assign(self, assignee, created_by, unit):\n assignment = ReferralAssignm... | [
"0.8375021",
"0.6726813",
"0.6105041",
"0.6086627",
"0.60128474",
"0.6002209",
"0.5941473",
"0.5941473",
"0.5941473",
"0.5941473",
"0.5941473",
"0.5941473",
"0.5721974",
"0.567718",
"0.5613905",
"0.55939394",
"0.5580918",
"0.5527557",
"0.54608303",
"0.54212284",
"0.54212284",... | 0.8922492 | 0 |
Sets the click of this AffiliateLedger. | def click(self, click):
self._click = click | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def set_click(self, x: int, y: int) -> None:\n\t\tself.state = MouseState.CLICKED\n\t\tself.click_position = Point(x, y)",
"def affiliate_click_oid(self, affiliate_click_oid):\n\n self._affiliate_click_oid = affiliate_click_oid",
"def SetClickPoint(self, p):\r\n \r\n self.click_pt = p",
... | [
"0.6635516",
"0.6418143",
"0.6170458",
"0.57601184",
"0.5638899",
"0.5595195",
"0.556485",
"0.54249513",
"0.5336229",
"0.51870793",
"0.5127106",
"0.5067713",
"0.50324446",
"0.5013966",
"0.4983828",
"0.4958003",
"0.4939317",
"0.49382868",
"0.4878767",
"0.48713046",
"0.48560825... | 0.7116234 | 0 |
Sets the order_id of this AffiliateLedger. | def order_id(self, order_id):
self._order_id = order_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def client_order_id(self, client_order_id):\n\n self._client_order_id = client_order_id",
"def order_item_id(self, order_item_id):\n if order_item_id is None:\n raise ValueError(\"Invalid value for `order_item_id`, must not be `None`\")\n\n self._order_item_id = order_item_id",
... | [
"0.67169356",
"0.6561354",
"0.63916963",
"0.6199086",
"0.6199086",
"0.6155042",
"0.57322115",
"0.57322115",
"0.57322115",
"0.565773",
"0.56041145",
"0.5603316",
"0.55667037",
"0.5562821",
"0.5561852",
"0.5483551",
"0.54706615",
"0.54639125",
"0.54295886",
"0.54176676",
"0.539... | 0.80863434 | 1 |
Sets the original_transaction_dts of this AffiliateLedger. | def original_transaction_dts(self, original_transaction_dts):
self._original_transaction_dts = original_transaction_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def transaction_dts(self, transaction_dts):\n\n self._transaction_dts = transaction_dts",
"def last_modified_dts(self, last_modified_dts):\n\n self._last_modified_dts = last_modified_dts",
"def left_dts(self, left_dts):\n\n self._left_dts = left_dts",
"def original(self, original):\n ... | [
"0.7076068",
"0.5762782",
"0.54845893",
"0.5346693",
"0.53340197",
"0.51965684",
"0.51665723",
"0.5151148",
"0.5151148",
"0.49691847",
"0.49002722",
"0.48604798",
"0.47402406",
"0.47030696",
"0.46897995",
"0.46857804",
"0.4678832",
"0.46764183",
"0.46280617",
"0.46136326",
"0... | 0.8740972 | 0 |
Sets the sub_id of this AffiliateLedger. | def sub_id(self, sub_id):
self._sub_id = sub_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sub_vendor_id(self, sub_vendor_id):\n\n self._sub_vendor_id = sub_vendor_id",
"def sub_device_id(self, sub_device_id):\n\n self._sub_device_id = sub_device_id",
"def original_sub_id(self, original_sub_id):\n\n self._original_sub_id = original_sub_id",
"def subcategory(self, subcatego... | [
"0.70754063",
"0.68042094",
"0.6661266",
"0.61148137",
"0.59406435",
"0.58633494",
"0.5817785",
"0.5817785",
"0.5817785",
"0.58174604",
"0.580336",
"0.57820606",
"0.56874526",
"0.54079956",
"0.53696823",
"0.5361751",
"0.5330376",
"0.5312654",
"0.5309708",
"0.5309708",
"0.5261... | 0.8250668 | 0 |
Sets the transaction_dts of this AffiliateLedger. | def transaction_dts(self, transaction_dts):
self._transaction_dts = transaction_dts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def original_transaction_dts(self, original_transaction_dts):\n\n self._original_transaction_dts = original_transaction_dts",
"def signup_dts(self, signup_dts):\n\n self._signup_dts = signup_dts",
"def joined_dts(self, joined_dts):\n\n self._joined_dts = joined_dts",
"def set_tx_datarate... | [
"0.65721995",
"0.59149987",
"0.5744134",
"0.5421313",
"0.5335325",
"0.51986974",
"0.50455165",
"0.5034816",
"0.49197587",
"0.48537928",
"0.48503008",
"0.478476",
"0.47829098",
"0.47829098",
"0.4755108",
"0.47381806",
"0.47292945",
"0.46931487",
"0.46828645",
"0.46790332",
"0.... | 0.8440322 | 0 |
Sets the transaction_memo of this AffiliateLedger. | def transaction_memo(self, transaction_memo):
self._transaction_memo = transaction_memo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def memo_text(self, memo_text):\n\n self._memo_text = memo_text",
"def memo_code(self, memo_code):\n\n self._memo_code = memo_code",
"def start_memo(self, attributes):\n self.memo = True",
"def modify_memo(self, note_id, memo):\n try:\n self._find_note(note_id).memo = m... | [
"0.6200964",
"0.58739096",
"0.57021284",
"0.5473305",
"0.54171497",
"0.5315098",
"0.5183969",
"0.51588404",
"0.5139005",
"0.50607026",
"0.4940662",
"0.48629358",
"0.48123816",
"0.48046702",
"0.4767544",
"0.47442204",
"0.47374776",
"0.46991858",
"0.46137372",
"0.4610794",
"0.4... | 0.847475 | 0 |
Returns true if both objects are equal | def __eq__(self, other):
if not isinstance(other, AffiliateLedger):
return False
return self.__dict__ == other.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self, other):\n return are_equal(self, other)",
"def __eq__(self,other):\n try: return self.object==other.object and isinstance(self,type(other))\n except: return False",
"def __eq__(self, other):\n if i... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def __ne__(self, other):
return not self == other | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __ne__(self, other: object) -> bool:\n if self.__eq__(other):\n return False\n return True",
"def __ne__(self, other: object) -> bool:\n return not self.__eq__(other)",
"def __ne__(self, other) -> bool:\n return not self.__eq__(other)",
"def __eq__(self, other):\n ... | [
"0.84568954",
"0.83923674",
"0.81447554",
"0.81407183",
"0.81326675",
"0.80941343",
"0.8092415",
"0.8092415",
"0.8092415",
"0.8085536",
"0.8085536",
"0.8076502",
"0.8076502",
"0.8066026"
] | 0.0 | -1 |
Returns a multiprocessing queue. | def get_queue():
return multiprocessing.Queue() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def new_queue() -> Queue:\n return multiprocessing.Queue()",
"def _get_queue(self):\n return self.__queue",
"def _get_queue(self):\n return self.__queue",
"def _get_queue(self):\n return self.__queue",
"def _get_queue(self):\n return self.__queue",
"def _get_queue(self):\n return self._... | [
"0.86470026",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.7286101",
"0.69840044",
"0.69840044",
"0.6961566",
"0.6921305",
"0.69057244",... | 0.8912229 | 0 |
Upon exit, close the unix socket. | def __exit__(self, *args, **kwargs):
self.sock.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __exit__(self, *args):\n self.sock.close()",
"def __exit__(self, exc_type, exc_val, exc_tb):\n self.socket.close()",
"def close(self):\n self._udp_handler.send('exit'.encode(encoding='utf-8'))",
"def close(self):\n\n\t\ttry:\n\t\t\tself.running = False\n\t\t\tself.sock.shutdown(s... | [
"0.80537623",
"0.78628993",
"0.76138544",
"0.7549238",
"0.7533044",
"0.7517866",
"0.75165665",
"0.75000846",
"0.746977",
"0.7460539",
"0.7437878",
"0.7437878",
"0.7437878",
"0.7437878",
"0.7437878",
"0.7437878",
"0.743328",
"0.7353329",
"0.7319113",
"0.7318295",
"0.7273727",
... | 0.7928819 | 1 |
Enter the context manager returning self. | def __enter__(self):
return self | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __enter__(self):\n self.manual_enter()\n return self",
"def __enter__(self):\n self.run()\n return self",
"def __enter__(self):\n self.start()\n return self",
"def __enter__(self):\n self.start()\n return self",
"def __enter__(self):\n self... | [
"0.80843985",
"0.7941213",
"0.7919169",
"0.7919169",
"0.79002136",
"0.76641583",
"0.7538962",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
"0.7536425",
... | 0.7508046 | 51 |
Returns the absolute path to the repo root directory on the current system. | def _get_reporoot():
from os import path
import acorn
medpath = path.abspath(acorn.__file__)
return path.dirname(path.dirname(medpath)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def repo_root_path() -> str:\n\n global __REPO_ROOT\n if __REPO_ROOT:\n return __REPO_ROOT\n\n path = os.path.normpath(os.getcwd())\n while os.path.split(path)[1]:\n if is_repo_root(path):\n break\n\n path = os.path.split(path)[0]\n else:\n # fallback to the lo... | [
"0.88700813",
"0.80054444",
"0.78395647",
"0.7829296",
"0.773799",
"0.77379256",
"0.7642397",
"0.7592294",
"0.7576116",
"0.757554",
"0.75322217",
"0.7531066",
"0.7507447",
"0.7494981",
"0.74289",
"0.74289",
"0.741319",
"0.7386468",
"0.73715764",
"0.7356766",
"0.7348616",
"0... | 0.68940264 | 48 |
Creates a data reader whose output is the outputs of input data readers chained together. | def chain(*readers):
def reader():
rs = []
for r in readers:
rs.append(r())
for e in itertools.chain(*rs):
yield e
return reader | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chain(*streams):\n return Stream(itertools.chain(*streams))",
"def DataReader(name, data_source=None, start=None, end=None,\n retry_count=3, pause=0.001, session=None, access_key=None):\n if data_source == \"yahoo\":\n return YahooDailyReader(symbols=name, start=start, end=end,... | [
"0.5560808",
"0.5529801",
"0.54560626",
"0.5417765",
"0.53219885",
"0.52620214",
"0.5240957",
"0.5222934",
"0.52116406",
"0.5133939",
"0.5086045",
"0.5041381",
"0.5037208",
"0.5009696",
"0.49931633",
"0.4992765",
"0.49670058",
"0.49580708",
"0.49469358",
"0.49380657",
"0.4927... | 0.6628986 | 0 |
Creates a data reader whose output is the combination of input readers. | def compose(*readers, **kwargs):
check_alignment = kwargs.pop('check_alignment', True)
def make_tuple(x):
if isinstance(x, tuple):
return x
else:
return (x, )
def reader():
rs = []
for r in readers:
rs.append(r())
if not check_ali... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chain(*readers):\n\n def reader():\n rs = []\n for r in readers:\n rs.append(r())\n\n for e in itertools.chain(*rs):\n yield e\n\n return reader",
"def distmult_reader(resources_or_conf: Union[dict, SharedResources] = None):\n from jack.readers.knowledge_ba... | [
"0.6027243",
"0.592084",
"0.5858737",
"0.58288145",
"0.5762671",
"0.56842923",
"0.56082773",
"0.5579494",
"0.55515665",
"0.5509489",
"0.54144436",
"0.5404569",
"0.537886",
"0.5373632",
"0.533783",
"0.5322583",
"0.5277178",
"0.52621496",
"0.52446175",
"0.52436614",
"0.52209705... | 0.0 | -1 |
Helper function to update the dip direction given downthrow direction Fault dip direction should point to the hanging wall | def process_downthrow_direction(self,fault_properties,fault_orientations):
for fname in fault_properties.index:
if fault_properties.loc[fname,'downthrow_dir'] == 1.0:
logger.info("Estimating downthrow direction using fault intersections")
# fault_intersect... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def direction(self):\n g = self._grad_f(self._x, *self._args)\n H = self._hess_f(self._x, *self._args)\n self._calls[1:3] += 1\n gr = g\n Hr = g\n damping = 0\n while True:\n try:\n L, _ = cho_factor(Hr, lower=0)\n dx = -cho_... | [
"0.61364156",
"0.60431737",
"0.5971405",
"0.5970623",
"0.5903489",
"0.56823677",
"0.55983573",
"0.5596047",
"0.55952203",
"0.55422807",
"0.5530127",
"0.5506709",
"0.5485573",
"0.54702824",
"0.5454614",
"0.5410102",
"0.5389429",
"0.5383649",
"0.5366988",
"0.5366624",
"0.535045... | 0.65127426 | 0 |
Save this setting object to cache | def save_to_cache(self):
ckey = self.cache_key
logger.debug(f"Saving setting '{ckey}' to cache")
try:
cache.set(
ckey,
self,
timeout=3600
)
except TypeError:
# Some characters cause issues with caching... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def save(self):\n if self._cache is not None:\n with open(self.cache_path, 'w') as cache_file:\n json.dump(self._cache, cache_file)",
"def save(self, *args, **kwargs):\n self.key = str(self.key).upper()\n\n do_cache = kwargs.pop('cache', True)\n\n self.clean(... | [
"0.7224081",
"0.69531256",
"0.69335234",
"0.6594912",
"0.6593534",
"0.6501627",
"0.64733386",
"0.6392242",
"0.6362595",
"0.63594866",
"0.6308052",
"0.6296064",
"0.6253619",
"0.6224194",
"0.62126654",
"0.61598146",
"0.6115982",
"0.61089444",
"0.60688514",
"0.60539263",
"0.6048... | 0.7912571 | 0 |
Return a dict of "all" defined global settings. This performs a single database lookup, and then any settings which are not in the database are assigned their default values | def allValues(cls, user=None, exclude_hidden=False):
results = cls.objects.all()
# Optionally filter by user
if user is not None:
results = results.filter(user=user)
# Query the database
settings = {}
for setting in results:
if setting.key:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _read_default_settings():\n global settings\n return {s: getattr(settings, s)\n for s in dir(settings)\n if s.isupper()}",
"def getDefaultSettings():\n return {}",
"def get_settings():\n return db.get_data()",
"def _get_db_settings(self):\n con... | [
"0.7149418",
"0.6950085",
"0.681254",
"0.67503786",
"0.67324686",
"0.6660768",
"0.6660768",
"0.6650897",
"0.6506875",
"0.64848226",
"0.648121",
"0.64789647",
"0.64483005",
"0.6410995",
"0.6342209",
"0.63366956",
"0.6329637",
"0.63189965",
"0.6316837",
"0.63145506",
"0.6296968... | 0.6371847 | 14 |
Return the description for a particular setting. If it does not exist, return an empty string. | def get_setting_description(cls, key, **kwargs):
setting = cls.get_setting_definition(key, **kwargs)
return setting.get('description', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def description(self):\n return self.__class__.get_setting_description(self.key, **self.get_kwargs())",
"def description(self):\n return self.settings['description']",
"def getDescription(self, valueName):\n\t\treturn self.settings[valueName][1]",
"def description(self) -> Optional[str]:\n ... | [
"0.78632593",
"0.7628085",
"0.7165417",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
"0.6969617",
... | 0.81169504 | 0 |
Return the units for a particular setting. If it does not exist, return an empty string. | def get_setting_units(cls, key, **kwargs):
setting = cls.get_setting_definition(key, **kwargs)
return setting.get('units', '') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def units(self):\n return self.__class__.get_setting_units(self.key, **self.get_kwargs())",
"def get_unit(shared, unit_name):\n if (shared.config.get_safe('data', 'use_units') != 'off'):\n unit_val, unit_str = shared.config.get_safe_literal('units', unit_name,\n ... | [
"0.7840822",
"0.7261286",
"0.7209004",
"0.7034466",
"0.69137526",
"0.68156767",
"0.68103254",
"0.67874587",
"0.6773387",
"0.6750682",
"0.67267466",
"0.67248666",
"0.67075574",
"0.66533846",
"0.65885967",
"0.65631944",
"0.6557281",
"0.65545",
"0.6537785",
"0.65377235",
"0.6518... | 0.81917787 | 0 |
Return the validator for a particular setting. If it does not exist, return None | def get_setting_validator(cls, key, **kwargs):
setting = cls.get_setting_definition(key, **kwargs)
return setting.get('validator', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _get_validator(self):\n validator_class = self.validator_class or AssertionValidator\n if validator_class:\n return validator_class()",
"def get_validator(cls):\n cls.validator.model = cls\n return cls.validator or SageValidator",
"def get_validator(self):\n re... | [
"0.6506795",
"0.6386474",
"0.6322112",
"0.62818146",
"0.6231748",
"0.6161687",
"0.6015878",
"0.5892069",
"0.5763388",
"0.571968",
"0.56435144",
"0.5611603",
"0.55908895",
"0.5568062",
"0.554211",
"0.5512216",
"0.54718965",
"0.5420563",
"0.54120845",
"0.5360572",
"0.534718",
... | 0.7923039 | 0 |
Get the value of a particular setting. If it does not exist, return the backup value (default = None) | def get_setting(cls, key, backup_value=None, **kwargs):
# If no backup value is specified, atttempt to retrieve a "default" value
if backup_value is None:
backup_value = cls.get_setting_default(key, **kwargs)
setting = cls.get_setting_object(key, **kwargs)
if setting:
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_setting_value(self, title, setting):\r\n return self.parser.get(title, setting)",
"def get_setting_value(self, key, default = None):\n \n if not \"settings\" in self.configuration or not key in self.configuration['settings']:\n return default\n \n return self.con... | [
"0.7407266",
"0.7217593",
"0.7086675",
"0.706547",
"0.69445616",
"0.6855827",
"0.68451256",
"0.6810817",
"0.67708075",
"0.6750211",
"0.67099154",
"0.66395694",
"0.65989494",
"0.6586172",
"0.6575805",
"0.6571418",
"0.6519315",
"0.6469451",
"0.64204925",
"0.64160365",
"0.640328... | 0.6986884 | 4 |
Return name for setting. | def name(self):
return self.__class__.get_setting_name(self.key, **self.get_kwargs()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_setting_name(cls, key, **kwargs):\n setting = cls.get_setting_definition(key, **kwargs)\n return setting.get('name', '')",
"def get_name(self):\n return self.settings.get(\"name\", None)",
"def name(self):\n return self.config[\"name\"]",
"def name_setting(name):\n retu... | [
"0.82398814",
"0.8051411",
"0.74486774",
"0.7399441",
"0.73986167",
"0.73986167",
"0.737749",
"0.7197875",
"0.7136831",
"0.71239513",
"0.70979977",
"0.70885897",
"0.70639217",
"0.70639217",
"0.70044553",
"0.69912887",
"0.68854827",
"0.6858516",
"0.6773931",
"0.67637247",
"0.6... | 0.8924124 | 0 |
Return the available choices for this setting (or None if no choices are defined). | def choices(self):
return self.__class__.get_setting_choices(self.key, **self.get_kwargs()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_choices(self, instance):\n if instance.type == BaseParameter.CHOICE_TYPE:\n return [\n x.value\n for x in instance.get_typed_parameter().get_available_choices()\n ]\n else:\n return None",
"def get_setting_choices(cls, key, **kw... | [
"0.78289765",
"0.7361306",
"0.73068976",
"0.7186834",
"0.7186834",
"0.6876203",
"0.6714742",
"0.6669968",
"0.64421785",
"0.6441603",
"0.63386947",
"0.6313113",
"0.62860894",
"0.6221631",
"0.61844033",
"0.6156865",
"0.6152009",
"0.6133846",
"0.60951275",
"0.60254246",
"0.59794... | 0.77914363 | 1 |
Render this setting as the "display" value of a choice field. | def as_choice(self):
choices = self.get_setting_choices(self.key, **self.get_kwargs())
if not choices:
return self.value
for value, display in choices:
if value == self.value:
return display
return self.value | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def __str__(self):\n return \"choice_text: \" + self.choice_text",
"def setDisplayChoice(self, settings: ghidra.docking.settings.Settings, choice: unicode) -> None:\n ...",
"def __str__(self):\n return self.choice_text",
"def render(self):\n id_ = self.attrs.get('id')\n ... | [
"0.66137385",
"0.65771395",
"0.6453492",
"0.6287986",
"0.62863475",
"0.6114635",
"0.60302794",
"0.60137504",
"0.59938693",
"0.5986158",
"0.5929584",
"0.5845329",
"0.5818726",
"0.5771185",
"0.5771185",
"0.57315314",
"0.57180643",
"0.567829",
"0.5613952",
"0.5600237",
"0.559674... | 0.6796055 | 0 |
Return the model name associated with this setting. | def model_name(self):
setting = self.get_setting_definition(self.key, **self.get_kwargs())
return setting.get('model', None) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def model_name(self) -> str:\n return self._model_name",
"def name(self) -> str:\n return self._model.name",
"def get_model_name(self) -> str:\n return self._get_string(openvr.Prop_RenderModelName_String)",
"def name(self) -> str: # pragma: no cover\n return self.model.__name__",... | [
"0.82846475",
"0.80051076",
"0.78679544",
"0.78520983",
"0.7793454",
"0.7757169",
"0.7720482",
"0.7618913",
"0.75745213",
"0.75615627",
"0.7548974",
"0.7387339",
"0.73441726",
"0.73364127",
"0.72280806",
"0.71849495",
"0.7180222",
"0.7168944",
"0.7168944",
"0.712446",
"0.7083... | 0.9145471 | 0 |
Return the field type identifier for this setting object. | def setting_type(self):
if self.is_bool():
return 'boolean'
elif self.is_int():
return 'integer'
elif self.is_model():
return 'related field'
else:
return 'string' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def type(self):\n return self._field.type",
"def data_type_id(self) -> str:\n return self._data_type_id",
"def type_id(self):\n return self._type_id",
"def field_type(self):\n return \"\"",
"def _type(self):\n return self._id[1]",
"def db_type(self, field):\r\n i... | [
"0.75817245",
"0.7220078",
"0.71114844",
"0.6948797",
"0.67418575",
"0.67283446",
"0.67179424",
"0.66654533",
"0.6654416",
"0.6645088",
"0.6636031",
"0.6631951",
"0.6602472",
"0.6555598",
"0.6545286",
"0.654334",
"0.651855",
"0.651855",
"0.651855",
"0.6503504",
"0.6497367",
... | 0.71189636 | 2 |
Returns if setting is protected from rendering. | def protected(self):
return self.__class__.is_protected(self.key, **self.get_kwargs()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def protected(self) -> bool:\n return pulumi.get(self, \"protected\")",
"def is_protected(self):\n return self.container['is_protected']",
"def is_protected(cls, key, **kwargs):\n setting = cls.get_setting_definition(key, **kwargs)\n\n return setting.get('protected', False)",
"def... | [
"0.7236756",
"0.70842016",
"0.70609885",
"0.64833707",
"0.6470623",
"0.6470623",
"0.6399216",
"0.6332728",
"0.6332728",
"0.62876284",
"0.626554",
"0.62538165",
"0.6225972",
"0.61778724",
"0.61778724",
"0.61778724",
"0.59937924",
"0.5975327",
"0.59686625",
"0.5964518",
"0.5956... | 0.6428225 | 6 |
Return True if this setting requires a server restart after changing. | def requires_restart(self):
options = InvenTreeSetting.SETTINGS.get(self.key, None)
if options:
return options.get('requires_restart', False)
else:
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def is_restarting(self) -> bool:\r\n return False",
"def db_settings_set(self) -> bool:\n return self._db_settings is not None",
"def is_restarting(self) -> bool:\r\n restart_flag = self._restart_flag\r\n # Reset the flag\r\n self._restart_flag = False\r\n\r\n return r... | [
"0.69367516",
"0.6799596",
"0.6793652",
"0.6793652",
"0.64746594",
"0.643876",
"0.6404338",
"0.6355678",
"0.6271843",
"0.62299484",
"0.62299484",
"0.619009",
"0.61518145",
"0.6119073",
"0.60911477",
"0.6039378",
"0.6012832",
"0.5997823",
"0.5994074",
"0.5991362",
"0.59827596"... | 0.77573067 | 0 |
Returns the message that should be returned to the endpoint caller. | def get_return(self, payload=None, headers=None, request=None) -> str:
return self.MESSAGE_OK | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getMessage():\n return message",
"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 get_message(self):\n return self.msg",
"def get_message (self) :\n return self... | [
"0.7810624",
"0.77255553",
"0.77255553",
"0.77205235",
"0.7652163",
"0.75768095",
"0.74554825",
"0.74385464",
"0.74385464",
"0.7414056",
"0.739726",
"0.7363895",
"0.7363895",
"0.7363895",
"0.7363895",
"0.7363895",
"0.7363895",
"0.72767353",
"0.72720385",
"0.725566",
"0.724665... | 0.62438864 | 90 |
A list of parameter rules. See `config_rule_parameters` below. | def config_rule_parameters(self) -> Optional[Sequence['outputs.AggregateCompliancePackConfigRuleConfigRuleParameter']]:
return pulumi.get(self, "config_rule_parameters") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_parameters(self) -> Optional[Sequence['outputs.CompliancePackConfigRuleConfigRuleParameter']]:\n return pulumi.get(self, \"config_rule_parameters\")",
"def config_rule_parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CompliancePackConfigRuleConfigRuleParameterArgs']]]]:\n ... | [
"0.6590999",
"0.65824085",
"0.65703934",
"0.6525282",
"0.6482679",
"0.64430976",
"0.6327829",
"0.6282816",
"0.6218971",
"0.6163844",
"0.61548835",
"0.6102449",
"0.6094122",
"0.6004824",
"0.59984833",
"0.5966514",
"0.59611475",
"0.5955565",
"0.59488016",
"0.59417075",
"0.59371... | 0.6371793 | 6 |
The rule ID of Aggregate Config Rule. | def config_rule_id(self) -> Optional[str]:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n ... | [
"0.85235626",
"0.85235626",
"0.85235626",
"0.85235626",
"0.8289973",
"0.8112525",
"0.8112525",
"0.76138115",
"0.7409159",
"0.7401732",
"0.7343672",
"0.7343672",
"0.73172474",
"0.7158555",
"0.7158555",
"0.69548553",
"0.69548553",
"0.69291687",
"0.68640137",
"0.68360716",
"0.64... | 0.81516784 | 5 |
A list of Config Rule Parameters. See `config_rule_parameters` below. | def config_rule_parameters(self) -> Optional[Sequence['outputs.CompliancePackConfigRuleConfigRuleParameter']]:
return pulumi.get(self, "config_rule_parameters") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['CompliancePackConfigRuleConfigRuleParameterArgs']]]]:\n return pulumi.get(self, \"config_rule_parameters\")",
"def config_rule_parameters(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['AggregateCompliancePackConfigRule... | [
"0.7696722",
"0.73965186",
"0.7374287",
"0.72957563",
"0.70005476",
"0.6402401",
"0.61110604",
"0.60461867",
"0.6029084",
"0.60185915",
"0.59953666",
"0.59835124",
"0.59070486",
"0.5906241",
"0.5821181",
"0.57911515",
"0.5786785",
"0.5780823",
"0.5775109",
"0.5766678",
"0.567... | 0.7550605 | 1 |
The rule ID of Config Rule. | def config_rule_id(self) -> Optional[str]:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n ... | [
"0.9227865",
"0.9227865",
"0.9227865",
"0.9227865",
"0.88453764",
"0.87683296",
"0.87683296",
"0.8082578",
"0.7680346",
"0.7680346",
"0.7512799",
"0.74273443",
"0.7417218",
"0.7417218",
"0.71960586",
"0.71960586",
"0.7013749",
"0.68643725",
"0.6795767",
"0.6651074",
"0.663275... | 0.88097996 | 6 |
The Aliyun User Id. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"user_id\")",
"def user_id(self):\n return lamin_user_settings().id",
"def user_id(self) -> str:\n r... | [
"0.79523563",
"0.79523563",
"0.79221797",
"0.78971833",
"0.7880026",
"0.785991",
"0.78023666",
"0.78023666",
"0.7771955",
"0.7705245",
"0.7624029",
"0.7622535",
"0.7622535",
"0.7622535",
"0.7622535",
"0.7622535",
"0.7564759",
"0.7564759",
"0.7564759",
"0.75352603",
"0.7525977... | 0.0 | -1 |
The status of the resource. Valid values `ACTIVE`, `CREATING`, `INACTIVE`. | def status(self) -> str:
return pulumi.get(self, "status") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def status(self):\n props = self.properties\n if props:\n if props.get('created'):\n return CREATED_STATUS",
"def status(self):\n return STATUS[self.fields['status']]",
"def resource_status(self) -> 'outputs.InstantSnapshotResourceStatusResponse':\n return ... | [
"0.78186274",
"0.7640573",
"0.7640068",
"0.7595018",
"0.75927645",
"0.75740016",
"0.75515157",
"0.7531873",
"0.75283134",
"0.7508945",
"0.7503632",
"0.7501885",
"0.7501885",
"0.7501885",
"0.7501285",
"0.7484477",
"0.7422168",
"0.73818517",
"0.73818517",
"0.73818517",
"0.73818... | 0.76163954 | 16 |
The ID of the rule. | def config_rule_id(self) -> str:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rule_id(self) -> str:\n return pulumi.get(self, \"rule_id\")",
"def getId(self):\n return _libsbml.Rule_getId(self)",
"def get_rule_id(self):\n from .osid_errors import IllegalState\n # Someday I'll have a real implementation, but for now I just:\n raise IllegalState()",
... | [
"0.90023804",
"0.8814273",
"0.7990306",
"0.7579102",
"0.7457939",
"0.7457939",
"0.7369471",
"0.7369471",
"0.7189829",
"0.7189829",
"0.7160788",
"0.709513",
"0.709513",
"0.6962784",
"0.6740261",
"0.66815436",
"0.66410106",
"0.66379744",
"0.6626001",
"0.66224194",
"0.6615937",
... | 0.7868967 | 3 |
The Aliyun User ID. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"user_id\")",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self.app_config()[\"metadata.user.id\"]",
"def user_id(se... | [
"0.8056617",
"0.8018253",
"0.8018253",
"0.79205066",
"0.78915983",
"0.788077",
"0.78680974",
"0.7858921",
"0.7858921",
"0.77220637",
"0.76915073",
"0.767678",
"0.7648096",
"0.7648096",
"0.7648096",
"0.7648096",
"0.7648096",
"0.76208323",
"0.76208323",
"0.76208323",
"0.757246"... | 0.0 | -1 |
The config rule name. | def aggregate_config_rule_name(self) -> str:
return pulumi.get(self, "aggregate_config_rule_name") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rule_name(self) -> str:\n return pulumi.get(self, \"rule_name\")",
"def rule_name(self) -> str:\n return pulumi.get(self, \"rule_name\")",
"def rule_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"rule_name\")",
"def rule_name(self) -> pulumi.Input[str]:\n return... | [
"0.86280304",
"0.86280304",
"0.8263374",
"0.8211066",
"0.7992613",
"0.7947764",
"0.7602872",
"0.7602872",
"0.7295438",
"0.7295438",
"0.7295438",
"0.7295438",
"0.703946",
"0.692378",
"0.692378",
"0.6912118",
"0.69111705",
"0.6733602",
"0.6733602",
"0.669517",
"0.66875106",
"... | 0.79338014 | 6 |
The ID of aggregator. | def aggregator_id(self) -> str:
return pulumi.get(self, "aggregator_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getID(self):\n return self.__id",
"def id(self):\n return self.__id",
"def getid(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def id(self):\n\t\treturn self.__id",
"def get_id(self):\n\n\t\treturn sel... | [
"0.74666494",
"0.74116504",
"0.7401574",
"0.7370384",
"0.7370384",
"0.73396343",
"0.7324622",
"0.7313824",
"0.7313824",
"0.7313824",
"0.7313824",
"0.7302742",
"0.7285509",
"0.72589606",
"0.7252783",
"0.7242177",
"0.72404265",
"0.7209846",
"0.7209846",
"0.7209846",
"0.7209846"... | 0.9050929 | 0 |
The config rule arn. | def config_rule_arn(self) -> str:
return pulumi.get(self, "config_rule_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def arn(self) -> str:\n return self._values.get('arn')",
"def arn(self) -> str:\n return self._values.get('arn')",
"def arn(self) -> str:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> str:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> str:\n return pulum... | [
"0.6760939",
"0.6760939",
"0.6478951",
"0.6478951",
"0.6478951",
"0.6478951",
"0.6478951",
"0.64641017",
"0.64641017",
"0.64641017",
"0.64641017",
"0.62702024",
"0.62162024",
"0.6210739",
"0.6210739",
"0.6210739",
"0.6210739",
"0.6210739",
"0.6210739",
"0.6210739",
"0.6210739... | 0.7914815 | 0 |
The ID of the rule. | def config_rule_id(self) -> str:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rule_id(self) -> str:\n return pulumi.get(self, \"rule_id\")",
"def getId(self):\n return _libsbml.Rule_getId(self)",
"def get_rule_id(self):\n from .osid_errors import IllegalState\n # Someday I'll have a real implementation, but for now I just:\n raise IllegalState()",
... | [
"0.90023804",
"0.8814273",
"0.7990306",
"0.7579102",
"0.7457939",
"0.7457939",
"0.7369471",
"0.7369471",
"0.7189829",
"0.7189829",
"0.7160788",
"0.709513",
"0.709513",
"0.6962784",
"0.6740261",
"0.66815436",
"0.66410106",
"0.66379744",
"0.6626001",
"0.66224194",
"0.6615937",
... | 0.7868967 | 4 |
The ID of the Aggregate Config Rule. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n ... | [
"0.8119571",
"0.8119571",
"0.8119571",
"0.8119571",
"0.77225846",
"0.77225846",
"0.7700891",
"0.7700891",
"0.73848206",
"0.7311737",
"0.7128791",
"0.68092805",
"0.67470235",
"0.67470235",
"0.67362577",
"0.6674566",
"0.6670095",
"0.6572265",
"0.6534106",
"0.6523789",
"0.652378... | 0.0 | -1 |
The source owner of the Config Rule. | def source_owner(self) -> str:
return pulumi.get(self, "source_owner") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_owner(self):\n return self.settings.get(\"owner\", None)",
"def owner(self) -> None:\n return self.bot.get_user(self.bot.config.owner_ids[0])",
"def owner(self) -> str:\n return self._owner",
"def get_owner(self):\n return self.__owner",
"def getOwner(self):\r\n r... | [
"0.75773746",
"0.7354026",
"0.726589",
"0.72242326",
"0.7134813",
"0.71086675",
"0.705989",
"0.705989",
"0.70577854",
"0.70577854",
"0.7052197",
"0.7011931",
"0.7011931",
"0.7011931",
"0.7011931",
"0.7011931",
"0.69703263",
"0.6967064",
"0.6964094",
"0.6911992",
"0.69019437",... | 0.83542895 | 0 |
The Aliyun User Id. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"user_id\")",
"def user_id(self):\n return lamin_user_settings().id",
"def user_id(self) -> str:\n r... | [
"0.79540825",
"0.79540825",
"0.7923745",
"0.78983533",
"0.78805655",
"0.78613263",
"0.7803893",
"0.7803893",
"0.777353",
"0.77071095",
"0.7625677",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7566177",
"0.7566177",
"0.7566177",
"0.75360125",
"0.7527507... | 0.0 | -1 |
The ID of the Aggregator. | def aggregator_id(self) -> str:
return pulumi.get(self, "aggregator_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def getID(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def getid(self):\n return self.__id",
"def id(self):\n return self.__id",
"def getID(self):\n return self._id",
"def get_id(self):\n\n\t\tretu... | [
"0.77420646",
"0.7670588",
"0.7670588",
"0.76664907",
"0.76308703",
"0.7601585",
"0.7599442",
"0.75315356",
"0.75315356",
"0.75315356",
"0.75315356",
"0.75315356",
"0.75315356",
"0.7516909",
"0.7468839",
"0.7437085",
"0.7437085",
"0.7437085",
"0.7437085",
"0.7437085",
"0.7437... | 0.8396169 | 1 |
The rule attached to the delivery method. | def delivery_channel_condition(self) -> str:
return pulumi.get(self, "delivery_channel_condition") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_rule(self):\n\n return self.__rule_",
"def rule(self) -> str:\n if self._rule:\n return self._rule\n return self._make_rule(member_param=self._member_param,\n unique_member_param=self._unique_member_param)",
"def get_rule(self):\n ret... | [
"0.7575822",
"0.6548225",
"0.65469426",
"0.65328604",
"0.6269306",
"0.6170878",
"0.6150564",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.6068296",
"0.6068296",
"0.6068296",
"0.5911743",
"0.5911743",
"0.5911743",
"0.5897... | 0.5067912 | 71 |
The ID of the delivery method. | def delivery_channel_id(self) -> str:
return pulumi.get(self, "delivery_channel_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(se... | [
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.6323019",
"0.62978923",
"0.6294041",
"0.6285865",
"0.6268171",
"0.6263507",
"0.6255838",
"0... | 0.7272538 | 0 |
The ARN of the delivery destination. | def delivery_channel_target_arn(self) -> str:
return pulumi.get(self, "delivery_channel_target_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destination_arn(self) -> str:\n return jsii.get(self, \"destinationArn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulu... | [
"0.81678456",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054"... | 0.65600866 | 26 |
The type of the delivery method. | def delivery_channel_type(self) -> str:
return pulumi.get(self, "delivery_channel_type") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def message_type(self):\n return self.type",
"def get_payment_type(self):\n payment_types = dict(settings.SUBSCRIPTION_PAYMENT_METHODS)\n return payment_types.get(self.payment_type, \"N/A\")",
"def payment_type(self) -> str:\n return pulumi.get(self, \"payment_type\")",
"def messa... | [
"0.67926556",
"0.67426664",
"0.6527073",
"0.65252954",
"0.65252954",
"0.65218073",
"0.63548404",
"0.6347316",
"0.6310204",
"0.63083565",
"0.62798375",
"0.62798375",
"0.62798375",
"0.62691265",
"0.6261105",
"0.6260427",
"0.6260427",
"0.6260427",
"0.6260427",
"0.6260427",
"0.62... | 0.77815837 | 0 |
The ID of the Aggregate Delivery. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery... | [
"0.717299",
"0.717299",
"0.717299",
"0.7171913",
"0.70302266",
"0.70302266",
"0.69075674",
"0.69075674",
"0.69075674",
"0.65817213",
"0.64948195",
"0.6488253",
"0.6488253",
"0.6488253",
"0.6488253",
"0.6488253",
"0.6488253",
"0.6485075",
"0.64797485",
"0.6445437",
"0.6445437"... | 0.0 | -1 |
The oss ARN of the delivery channel when the value data oversized limit. | def oversized_data_oss_target_arn(self) -> str:
return pulumi.get(self, "oversized_data_oss_target_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"delivery_channel_target_arn\")",
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"delivery_channel_target_arn\")",
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"... | [
"0.6550645",
"0.6550645",
"0.6550645",
"0.64252335",
"0.64252335",
"0.64252335",
"0.60687965",
"0.5819682",
"0.5819682",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",... | 0.6183238 | 6 |
The id of aggregator. | def aggregator_id(self) -> str:
return pulumi.get(self, "aggregator_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(self):\n return self.__id",
"def getid(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def get_id(self):\n return self.__id",
"def id(self):\n\t\treturn self.__id",
"def getID(self):\n return self.__id",
"def get_id(self):\n pass",
... | [
"0.75606316",
"0.755657",
"0.75191176",
"0.75191176",
"0.74697685",
"0.74693274",
"0.74673086",
"0.74673086",
"0.74673086",
"0.74673086",
"0.74618065",
"0.7367662",
"0.7367662",
"0.7367662",
"0.7367662",
"0.7367662",
"0.7367662",
"0.7367331",
"0.7361013",
"0.7361013",
"0.7361... | 0.9012928 | 2 |
The name of aggregator. | def aggregator_name(self) -> str:
return pulumi.get(self, "aggregator_name") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aggregator_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"aggregator_name\")",
"def aggregator_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"aggregator_name\")",
"def aggregator_name(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"aggrega... | [
"0.90505916",
"0.89199555",
"0.8670671",
"0.7599382",
"0.7599382",
"0.7599382",
"0.75401187",
"0.7192799",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6676876",
"0.6658198",
"0.6633466",
"0.65633196",... | 0.92575586 | 0 |
The id of the aggregator. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aggregator_id(self) -> str:\n return pulumi.get(self, \"aggregator_id\")",
"def aggregator_id(self) -> str:\n return pulumi.get(self, \"aggregator_id\")",
"def aggregator_id(self) -> str:\n return pulumi.get(self, \"aggregator_id\")",
"def getid(self):\n return self.__id",
"... | [
"0.8857084",
"0.8857084",
"0.8857084",
"0.7842009",
"0.7831707",
"0.7826106",
"0.7826106",
"0.7755741",
"0.7743125",
"0.77429974",
"0.77429974",
"0.77429974",
"0.77429974",
"0.77429974",
"0.77429974",
"0.7710029",
"0.7710029",
"0.7710029",
"0.7710029",
"0.7710029",
"0.7710029... | 0.0 | -1 |
The Aliyun User Id. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"user_id\")",
"def user_id(self):\n return lamin_user_settings().id",
"def user_id(self) -> str:\n r... | [
"0.79540825",
"0.79540825",
"0.7923745",
"0.78983533",
"0.78805655",
"0.78613263",
"0.7803893",
"0.7803893",
"0.777353",
"0.77071095",
"0.7625677",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7566177",
"0.7566177",
"0.7566177",
"0.75360125",
"0.7527507... | 0.0 | -1 |
The status of the resource. Valid values `ACTIVE`, `CREATING`. | def status(self) -> str:
return pulumi.get(self, "status") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def status(self):\n props = self.properties\n if props:\n if props.get('created'):\n return CREATED_STATUS",
"def resource_status(self) -> 'outputs.InstantSnapshotResourceStatusResponse':\n return pulumi.get(self, \"resource_status\")",
"def status(self):\n ... | [
"0.7977155",
"0.75651056",
"0.7526475",
"0.749668",
"0.74905276",
"0.7471945",
"0.745945",
"0.7449013",
"0.74216163",
"0.7417834",
"0.74029714",
"0.73994976",
"0.7393254",
"0.7393254",
"0.7393254",
"0.73742104",
"0.73487717",
"0.73396367",
"0.73389596",
"0.73389596",
"0.73321... | 0.75064147 | 20 |
The ID of the rule. | def config_rule_id(self) -> str:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rule_id(self) -> str:\n return pulumi.get(self, \"rule_id\")",
"def getId(self):\n return _libsbml.Rule_getId(self)",
"def get_rule_id(self):\n from .osid_errors import IllegalState\n # Someday I'll have a real implementation, but for now I just:\n raise IllegalState()",
... | [
"0.90023804",
"0.8814273",
"0.7990306",
"0.7579102",
"0.7457939",
"0.7457939",
"0.7369471",
"0.7369471",
"0.7189829",
"0.7189829",
"0.7160788",
"0.709513",
"0.709513",
"0.6962784",
"0.6740261",
"0.66815436",
"0.66410106",
"0.66379744",
"0.6626001",
"0.66224194",
"0.6615937",
... | 0.7868967 | 6 |
The ID of the Alicloud account. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_id(self):\n return self.get('/accounts')[0]['Id']",
"def account_id(self):\n return self.config.account_id",
"def account_id(self) -> str:\n return self._account_id",
"def account_id(self):\n return self._account_id",
"def account_id(self) -> Optional[str]:\n ... | [
"0.82841516",
"0.8156235",
"0.81379455",
"0.8002275",
"0.7984543",
"0.7984543",
"0.7984543",
"0.7984543",
"0.7984543",
"0.791492",
"0.79148394",
"0.79148394",
"0.79148394",
"0.79059756",
"0.7758501",
"0.77361506",
"0.768946",
"0.7655854",
"0.76482785",
"0.76482785",
"0.756061... | 0.85374373 | 4 |
The ID of the Config Configuration Recorder. Value as the `account_id`. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_id(self):\n return self.config.account_id",
"def account_id(self) -> str:\n return pulumi.get(self, \"account_id\")",
"def account_id(self) -> str:\n return pulumi.get(self, \"account_id\")",
"def account_id(self) -> str:\n return pulumi.get(self, \"account_id\")",
"... | [
"0.8398524",
"0.7877062",
"0.7877062",
"0.7877062",
"0.7877062",
"0.7877062",
"0.7877062",
"0.7877062",
"0.7877062",
"0.77092165",
"0.7663029",
"0.7663029",
"0.7663029",
"0.7663029",
"0.7663029",
"0.76483613",
"0.76483613",
"0.76483613",
"0.76144177",
"0.7601637",
"0.75635964... | 0.0 | -1 |
The ID of the Enterprise management account. | def organization_master_id(self) -> int:
return pulumi.get(self, "organization_master_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def management_account_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"management_account_id\")",
"def account_id(self) -> str:\n return pulumi.get(self, \"account_id\")",
"def account_id(self) -> str:\n return pulumi.get(self, \"account_id\")",
"def account_id(self) -> str:\... | [
"0.77936536",
"0.77171254",
"0.77171254",
"0.77171254",
"0.77171254",
"0.77171254",
"0.77171254",
"0.77171254",
"0.77171254",
"0.759074",
"0.7575236",
"0.7560804",
"0.7308237",
"0.7286924",
"0.71397316",
"0.71385974",
"0.71385974",
"0.7127925",
"0.7122095",
"0.7122095",
"0.71... | 0.0 | -1 |
The Aliyun User Id. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> str:\n return self._user_id",
"def user_id(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"user_id\")",
"def user_id(self):\n return lamin_user_settings().id",
"def user_id(self) -> str:\n r... | [
"0.79540825",
"0.79540825",
"0.7923745",
"0.78983533",
"0.78805655",
"0.78613263",
"0.7803893",
"0.7803893",
"0.777353",
"0.77071095",
"0.7625677",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7624788",
"0.7566177",
"0.7566177",
"0.7566177",
"0.75360125",
"0.7527507... | 0.0 | -1 |
The rule attached to the delivery method. | def delivery_channel_condition(self) -> str:
return pulumi.get(self, "delivery_channel_condition") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_rule(self):\n\n return self.__rule_",
"def rule(self) -> str:\n if self._rule:\n return self._rule\n return self._make_rule(member_param=self._member_param,\n unique_member_param=self._unique_member_param)",
"def get_rule(self):\n ret... | [
"0.7575822",
"0.6548225",
"0.65469426",
"0.65328604",
"0.6269306",
"0.6170878",
"0.6150564",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.61102533",
"0.6068296",
"0.6068296",
"0.6068296",
"0.5911743",
"0.5911743",
"0.5911743",
"0.5897... | 0.5067912 | 70 |
The ID of the delivery method. | def delivery_channel_id(self) -> str:
return pulumi.get(self, "delivery_channel_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(self) -> str:\n return self._id",
"def id(se... | [
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.63316566",
"0.6323019",
"0.62978923",
"0.6294041",
"0.6285865",
"0.6268171",
"0.6263507",
"0.6255838",
"0... | 0.7272538 | 1 |
The ARN of the delivery destination. | def delivery_channel_target_arn(self) -> str:
return pulumi.get(self, "delivery_channel_target_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destination_arn(self) -> str:\n return jsii.get(self, \"destinationArn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulu... | [
"0.81678456",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054",
"0.66095054"... | 0.65600866 | 27 |
The type of the delivery method. | def delivery_channel_type(self) -> str:
return pulumi.get(self, "delivery_channel_type") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def message_type(self):\n return self.type",
"def get_payment_type(self):\n payment_types = dict(settings.SUBSCRIPTION_PAYMENT_METHODS)\n return payment_types.get(self.payment_type, \"N/A\")",
"def payment_type(self) -> str:\n return pulumi.get(self, \"payment_type\")",
"def messa... | [
"0.67926556",
"0.67426664",
"0.6527073",
"0.65252954",
"0.65252954",
"0.65218073",
"0.63548404",
"0.6347316",
"0.6310204",
"0.63083565",
"0.62798375",
"0.62798375",
"0.62798375",
"0.62691265",
"0.6261105",
"0.6260427",
"0.6260427",
"0.6260427",
"0.6260427",
"0.6260427",
"0.62... | 0.77815837 | 1 |
The ID of the Delivery. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery... | [
"0.78797823",
"0.78797823",
"0.78797823",
"0.70911604",
"0.70826644",
"0.70826644",
"0.6909465",
"0.6909465",
"0.6909465",
"0.6909465",
"0.6909465",
"0.6909465",
"0.68977964",
"0.68499196",
"0.68499196",
"0.68499196",
"0.68499196",
"0.68499196",
"0.68499196",
"0.68499196",
"0... | 0.0 | -1 |
The oss ARN of the delivery channel when the value data oversized limit. | def oversized_data_oss_target_arn(self) -> str:
return pulumi.get(self, "oversized_data_oss_target_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"delivery_channel_target_arn\")",
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"delivery_channel_target_arn\")",
"def delivery_channel_target_arn(self) -> str:\n return pulumi.get(self, \"... | [
"0.6550645",
"0.6550645",
"0.6550645",
"0.64252335",
"0.64252335",
"0.64252335",
"0.60687965",
"0.5819682",
"0.5819682",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",
"0.5608906",... | 0.6183238 | 7 |
The Alibaba Cloud Resource Name (ARN) of the role assumed by delivery method. | def delivery_channel_assume_role_arn(self) -> str:
return pulumi.get(self, "delivery_channel_assume_role_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def role_arn(self) -> str:\n return pulumi.get(self, \"role_arn\")",
"def role_arn(self) -> Optional[str]:\n return pulumi.get(self, \"role_arn\")",
"def role_arn(self) -> Optional[str]:\n return pulumi.get(self, \"role_arn\")",
"def role_arn(self) -> pulumi.Output[Optional[str]]:\n ... | [
"0.8100865",
"0.77605444",
"0.77605444",
"0.7723901",
"0.7671464",
"0.7575099",
"0.7505491",
"0.74349093",
"0.741911",
"0.741911",
"0.741911",
"0.741911",
"0.73636174",
"0.715145",
"0.715145",
"0.71078295",
"0.70288754",
"0.70288754",
"0.70288754",
"0.69921696",
"0.69741315",... | 0.72629076 | 15 |
The ID of the delivery channel. | def delivery_channel_id(self) -> str:
return pulumi.get(self, "delivery_channel_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def channel_id(self):\n return self._channel_id",
"def channel_id(self) -> int:\n try:\n return self.channel.channel_id # type: ignore\n except AttributeError:\n return 0",
"def get_channel_ID(self):\n return self._CHANNEL_ID",
"def get_channel_ID(self):\n ... | [
"0.8113566",
"0.80973345",
"0.80385476",
"0.78698874",
"0.7733497",
"0.75667214",
"0.75667214",
"0.75667214",
"0.738508",
"0.738508",
"0.738508",
"0.738508",
"0.68680733",
"0.67646533",
"0.67646533",
"0.67646533",
"0.66380036",
"0.6555861",
"0.6555861",
"0.65445274",
"0.64892... | 0.9287316 | 2 |
The name of the delivery channel. | def delivery_channel_name(self) -> str:
return pulumi.get(self, "delivery_channel_name") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def channel_name(self) -> str:\n return self._channel_name",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n ... | [
"0.8291526",
"0.7574796",
"0.7574796",
"0.7574796",
"0.7505434",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"0.7458804",
"... | 0.93026805 | 2 |
The ARN of the delivery destination. | def delivery_channel_target_arn(self) -> str:
return pulumi.get(self, "delivery_channel_target_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def destination_arn(self) -> str:\n return jsii.get(self, \"destinationArn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulu... | [
"0.8169435",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",
"0.66110384",... | 0.65606195 | 28 |
The type of the delivery channel. | def delivery_channel_type(self) -> str:
return pulumi.get(self, "delivery_channel_type") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_name(self) -> str:\n return pulumi.get(self, \"delivery_channel_name\")",
"def delivery_channel_name(self) -> str:\n return pulumi.get(self, \"delivery_channel_name\")",
"def delivery_channel_name(self) -> str:\n return pulumi.get(self, \"delivery_channel_name\")",
"... | [
"0.7189929",
"0.7189929",
"0.7189929",
"0.7105913",
"0.7105913",
"0.70112014",
"0.70112014",
"0.70112014",
"0.69050735",
"0.68266356",
"0.68266356",
"0.68266356",
"0.66930866",
"0.66930014",
"0.66930014",
"0.6688013",
"0.6439624",
"0.6379096",
"0.6277452",
"0.6277452",
"0.627... | 0.91534317 | 2 |
The description of the delivery channel. | def description(self) -> str:
return pulumi.get(self, "description") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def description(self):\n return f'# {self._peer.description}'",
"def delivery_channel_name(self) -> str:\n return pulumi.get(self, \"delivery_channel_name\")",
"def delivery_channel_name(self) -> str:\n return pulumi.get(self, \"delivery_channel_name\")",
"def delivery_channel_name(self)... | [
"0.7291746",
"0.7235975",
"0.7235975",
"0.7235975",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"0.6720431",
"... | 0.6545327 | 74 |
The ID of the Config Delivery Channel. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def delivery_channel_id(self) -> str:\n return pulumi.get(self, \"delivery_channel_id\")",
"def get_chan... | [
"0.87311053",
"0.87311053",
"0.87311053",
"0.7822111",
"0.7791326",
"0.7774455",
"0.7662205",
"0.75553536",
"0.7218055",
"0.7218055",
"0.7218055",
"0.7218055",
"0.7076852",
"0.7076852",
"0.7076852",
"0.6663779",
"0.6663779",
"0.6663779",
"0.6449451",
"0.63525856",
"0.6281323"... | 0.0 | -1 |
The ID of the Alicloud account. | def account_id(self) -> str:
return pulumi.get(self, "account_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def account_id(self):\n return self.get('/accounts')[0]['Id']",
"def account_id(self):\n return self.config.account_id",
"def account_id(self) -> str:\n return self._account_id",
"def account_id(self):\n return self._account_id",
"def account_id(self) -> Optional[str]:\n ... | [
"0.82848924",
"0.81563926",
"0.813873",
"0.8003225",
"0.79847527",
"0.79847527",
"0.79847527",
"0.79847527",
"0.79847527",
"0.79154",
"0.79151404",
"0.79151404",
"0.79151404",
"0.7907082",
"0.7757869",
"0.77364075",
"0.7690058",
"0.7656473",
"0.76486427",
"0.76486427",
"0.756... | 0.8537626 | 5 |
The ARN of the Config Rule. | def config_rule_arn(self) -> str:
return pulumi.get(self, "config_rule_arn") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"arn\")",
"def arn(self) -> pulumi.Output[str]:\n return pulumi.get... | [
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756",
"0.68359756"... | 0.85848707 | 1 |
The ID of the Config Rule. | def config_rule_id(self) -> str:
return pulumi.get(self, "config_rule_id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_id(self) -> Optional[str]:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> Optional[str]:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> Optional[pulumi.Input[str]]:\n return pulumi.get(self, \"config_rule_id\")",
... | [
"0.86121255",
"0.86121255",
"0.8610785",
"0.8610785",
"0.8319137",
"0.8004491",
"0.72117966",
"0.7184886",
"0.7151906",
"0.7151906",
"0.7054594",
"0.70384634",
"0.696902",
"0.696902",
"0.6863485",
"0.6837322",
"0.67879456",
"0.67879456",
"0.66349435",
"0.66304994",
"0.6539593... | 0.9083296 | 2 |
The ID of the Config Rule. | def id(self) -> str:
return pulumi.get(self, "id") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n return pulumi.get(self, \"config_rule_id\")",
"def config_rule_id(self) -> str:\n ... | [
"0.9083296",
"0.9083296",
"0.9083296",
"0.9083296",
"0.86121255",
"0.86121255",
"0.8610785",
"0.8610785",
"0.8319137",
"0.8004491",
"0.72117966",
"0.7184886",
"0.7151906",
"0.7151906",
"0.7054594",
"0.70384634",
"0.696902",
"0.696902",
"0.6863485",
"0.6837322",
"0.67879456",
... | 0.0 | -1 |
The name of config rule. | def rule_name(self) -> str:
return pulumi.get(self, "rule_name") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rule_name(self) -> pulumi.Input[str]:\n return pulumi.get(self, \"rule_name\")",
"def rule_name(self) -> pulumi.Output[str]:\n return pulumi.get(self, \"rule_name\")",
"def aggregate_config_rule_name(self) -> str:\n return pulumi.get(self, \"aggregate_config_rule_name\")",
"def rule_... | [
"0.79560435",
"0.7932687",
"0.7756261",
"0.7680533",
"0.7577715",
"0.7564119",
"0.7564119",
"0.7203241",
"0.7203241",
"0.7203241",
"0.7203241",
"0.690571",
"0.6850999",
"0.683043",
"0.683043",
"0.6727366",
"0.6727366",
"0.6727366",
"0.66726995",
"0.66726995",
"0.6604766",
"... | 0.8291655 | 1 |
The source owner of the Config Rule. | def source_owner(self) -> str:
return pulumi.get(self, "source_owner") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def get_owner(self):\n return self.settings.get(\"owner\", None)",
"def owner(self) -> None:\n return self.bot.get_user(self.bot.config.owner_ids[0])",
"def owner(self) -> str:\n return self._owner",
"def get_owner(self):\n return self.__owner",
"def getOwner(self):\r\n r... | [
"0.75773746",
"0.7354026",
"0.726589",
"0.72242326",
"0.7134813",
"0.71086675",
"0.705989",
"0.705989",
"0.70577854",
"0.70577854",
"0.7052197",
"0.7011931",
"0.7011931",
"0.7011931",
"0.7011931",
"0.7011931",
"0.69703263",
"0.6967064",
"0.6964094",
"0.6911992",
"0.69019437",... | 0.83542895 | 1 |
Generalized Ndimensional products. Given a list of arrays (or array of arrays), generates their cartesian product. | def cartesian_product(arrays):
la = len(arrays)
dtype = np.find_common_type([a.dtype for a in arrays], [])
arr = np.empty([len(a) for a in arrays] + [la], dtype=dtype)
for i, a in enumerate(np.ix_(*arrays)):
arr[..., i] = a
return arr.reshape(-1, la) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cartesian_product(*arrays):\n\n la = len(arrays)\n if la == 0:\n return np.array([])\n dtype = np.result_type(*arrays)\n arr = np.empty([len(a) for a in arrays] + [la], dtype=dtype)\n for i, a in enumerate(np.ix_(*arrays)):\n arr[..., i] = a\n return arr.reshape(-1, la)",
"def... | [
"0.789437",
"0.7768637",
"0.7743589",
"0.773954",
"0.7735276",
"0.77213657",
"0.77213657",
"0.7693049",
"0.7307596",
"0.7168736",
"0.7082487",
"0.7082487",
"0.6832238",
"0.6753259",
"0.66579354",
"0.65027076",
"0.6497475",
"0.6286639",
"0.6197109",
"0.61939436",
"0.6177757",
... | 0.7699607 | 7 |
Wraps hidden states in new Tensors, to detach them from their history. | def repackage_state(self, state):
state['hxs'] = state['hxs'].detach()
state['cxs'] = state['cxs'].detach()
return state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def detach_hidden(hidden: Any) -> Any:\n return apply_to_tensor(hidden, Tensor.detach)",
"def reset_hidden(self, hidden, reset_flags):\n # detach it from history (pytorch mechanics)\n if self.rnn_type in ['lstm', 'mylstm']:\n h = Variable(hidden[0].data)\n c = Variable(hidd... | [
"0.68949735",
"0.656359",
"0.64402276",
"0.63180524",
"0.62958896",
"0.61840934",
"0.614065",
"0.61247057",
"0.61247057",
"0.61186594",
"0.6029125",
"0.60228145",
"0.6022082",
"0.59886426",
"0.5968899",
"0.5968899",
"0.5932079",
"0.5932079",
"0.59160614",
"0.5889953",
"0.5871... | 0.0 | -1 |
Initialize parameters with Xavier uniform distribution. | def reset_parameters_xavier_uniform(self, bias):
logger.info('===== Initialize %s with Xavier uniform distribution =====' % self.__class__.__name__)
nn.init.xavier_uniform_(self.w_key.weight, gain=1 / math.sqrt(2))
nn.init.xavier_uniform_(self.w_query.weight, gain=1 / math.sqrt(2))
if bi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reset_parameters_xavier_uniform(self):\n logger.info('===== Initialize %s with Xavier uniform distribution =====' % self.__class__.__name__)\n for n, p in self.named_parameters():\n init_with_xavier_uniform(n, p)",
"def reset_parameters_xavier_uniform(self):\n logger.info('===... | [
"0.806636",
"0.806636",
"0.77669495",
"0.77669495",
"0.7344358",
"0.73425686",
"0.71655196",
"0.7065156",
"0.69970345",
"0.69540745",
"0.69540745",
"0.68392104",
"0.6785259",
"0.6736141",
"0.6662863",
"0.662158",
"0.6493551",
"0.64513046",
"0.6444853",
"0.64176935",
"0.639197... | 0.73276925 | 6 |
Initialize with Xavier uniform distribution. | def init_with_xavier_uniform(n, p):
if p.dim() == 1:
nn.init.constant_(p, 0.0)
logger.info('Initialize %s with %s / %.3f' % (n, 'constant', 0.0))
elif p.dim() in [2, 3, 4]:
nn.init.xavier_uniform_(p)
logger.info('Initialize %s with %s' % (n, 'xavier_uniform'))
else:
r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reset_parameters_xavier_uniform(self):\n logger.info('===== Initialize %s with Xavier uniform distribution =====' % self.__class__.__name__)\n for n, p in self.named_parameters():\n init_with_xavier_uniform(n, p)",
"def reset_parameters_xavier_uniform(self):\n logger.info('===... | [
"0.73114765",
"0.73114765",
"0.70178",
"0.6979872",
"0.6942541",
"0.6915022",
"0.6809539",
"0.6734401",
"0.6734401",
"0.6731584",
"0.67279124",
"0.6694438",
"0.6639862",
"0.6539736",
"0.6529281",
"0.6510215",
"0.6510215",
"0.6463352",
"0.6366236",
"0.63384086",
"0.6295389",
... | 0.64772546 | 17 |
Initialize parameters with Xavier uniform distribution. | def reset_parameters_xavier_uniform(self, bias):
logger.info('===== Initialize %s with Xavier uniform distribution =====' % self.__class__.__name__)
nn.init.xavier_uniform_(self.w_key.weight, gain=1 / math.sqrt(2))
nn.init.xavier_uniform_(self.w_query.weight, gain=1 / math.sqrt(2))
if bi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def reset_parameters_xavier_uniform(self):\n logger.info('===== Initialize %s with Xavier uniform distribution =====' % self.__class__.__name__)\n for n, p in self.named_parameters():\n init_with_xavier_uniform(n, p)",
"def reset_parameters_xavier_uniform(self):\n logger.info('===... | [
"0.806636",
"0.806636",
"0.77669495",
"0.77669495",
"0.7344358",
"0.73425686",
"0.73276925",
"0.7065156",
"0.69970345",
"0.69540745",
"0.69540745",
"0.68392104",
"0.6785259",
"0.6736141",
"0.6662863",
"0.662158",
"0.6493551",
"0.64513046",
"0.6444853",
"0.64176935",
"0.639197... | 0.71655196 | 7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.