hexsha stringlengths 40 40 | repo stringlengths 7 114 | path stringlengths 4 124 | license listlengths 1 9 | language stringclasses 1
value | identifier stringlengths 1 71 | return_type stringlengths 1 749 ⌀ | original_string stringlengths 76 22.7k | original_docstring stringlengths 16 7.61k | docstring stringlengths 16 2.47k | docstring_tokens listlengths 6 477 | code stringlengths 14 10.2k | code_tokens listlengths 6 996 | short_docstring stringlengths 2 644 | short_docstring_tokens listlengths 1 116 | comment listlengths 1 89 | parameters listlengths 0 64 | docstring_params dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e1761e1b67ea120f71447b8c6eb6a3c550241643 | sumnerevans/advent-of-code | 2020/13.py | [
"MIT"
] | Python | mul_inv | <not_specific> | def mul_inv(a, b):
"""
I claim no copyright on this function. I copied it from the internet.
"""
b0 = b
x0, x1 = 0, 1
if b == 1:
return 1
while a > 1:
q = a // b
a, b = b, a % b
x0, x1 = x1 - q * x0, x0
if x1 < 0:
x1 += b0
return x1 |
I claim no copyright on this function. I copied it from the internet.
| I claim no copyright on this function. I copied it from the internet. | [
"I",
"claim",
"no",
"copyright",
"on",
"this",
"function",
".",
"I",
"copied",
"it",
"from",
"the",
"internet",
"."
] | def mul_inv(a, b):
b0 = b
x0, x1 = 0, 1
if b == 1:
return 1
while a > 1:
q = a // b
a, b = b, a % b
x0, x1 = x1 - q * x0, x0
if x1 < 0:
x1 += b0
return x1 | [
"def",
"mul_inv",
"(",
"a",
",",
"b",
")",
":",
"b0",
"=",
"b",
"x0",
",",
"x1",
"=",
"0",
",",
"1",
"if",
"b",
"==",
"1",
":",
"return",
"1",
"while",
"a",
">",
"1",
":",
"q",
"=",
"a",
"//",
"b",
"a",
",",
"b",
"=",
"b",
",",
"a",
... | I claim no copyright on this function. | [
"I",
"claim",
"no",
"copyright",
"on",
"this",
"function",
"."
] | [
"\"\"\"\n I claim no copyright on this function. I copied it from the internet.\n \"\"\""
] | [
{
"param": "a",
"type": null
},
{
"param": "b",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "a",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "b",
"type": null,
"docstring": null,
"docstring_tokens": [],
... |
e1761e1b67ea120f71447b8c6eb6a3c550241643 | sumnerevans/advent-of-code | 2020/13.py | [
"MIT"
] | Python | part2 | <not_specific> | def part2():
"""
Final attempt at part 2. At this point I had struggled through enough that I
understood what I needed to do with the Chinese Remainder Theorem. I copied an
implementation of it (above) and then just created the necessary arrays for it.
One key is the ``indicies.append(-i)`` line. I... |
Final attempt at part 2. At this point I had struggled through enough that I
understood what I needed to do with the Chinese Remainder Theorem. I copied an
implementation of it (above) and then just created the necessary arrays for it.
One key is the ``indicies.append(-i)`` line. It needs to be negati... | Final attempt at part 2. At this point I had struggled through enough that I
understood what I needed to do with the Chinese Remainder Theorem. I copied an
implementation of it (above) and then just created the necessary arrays for it.
One key is the ``indicies.append(-i)`` line. | [
"Final",
"attempt",
"at",
"part",
"2",
".",
"At",
"this",
"point",
"I",
"had",
"struggled",
"through",
"enough",
"that",
"I",
"understood",
"what",
"I",
"needed",
"to",
"do",
"with",
"the",
"Chinese",
"Remainder",
"Theorem",
".",
"I",
"copied",
"an",
"im... | def part2():
busses = []
indicies = []
for i, b in enumerate(lines[1].split(",")):
if b != "x":
busses.append(int(b))
indicies.append(-i)
n = busses
a = indicies
return chinese_remainder(n, a) | [
"def",
"part2",
"(",
")",
":",
"busses",
"=",
"[",
"]",
"indicies",
"=",
"[",
"]",
"for",
"i",
",",
"b",
"in",
"enumerate",
"(",
"lines",
"[",
"1",
"]",
".",
"split",
"(",
"\",\"",
")",
")",
":",
"if",
"b",
"!=",
"\"x\"",
":",
"busses",
".",
... | Final attempt at part 2. | [
"Final",
"attempt",
"at",
"part",
"2",
"."
] | [
"\"\"\"\n Final attempt at part 2. At this point I had struggled through enough that I\n understood what I needed to do with the Chinese Remainder Theorem. I copied an\n implementation of it (above) and then just created the necessary arrays for it.\n\n One key is the ``indicies.append(-i)`` line. It ne... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
5f509b63fac368f897b44344746f124ac15230f3 | sumnerevans/advent-of-code | 2021/11.py | [
"MIT"
] | Python | grid_adjs | Iterable[Tuple[int, ...]] | def grid_adjs(
coord: Tuple[int, ...],
bounds: Tuple[Tuple[int, int], ...] = None,
adjs_type: AdjacenciesType = AdjacenciesType.COMPASS,
bounds_type: BoundsType = BoundsType.RANGE,
) -> Iterable[Tuple[int, ...]]:
"""
Compute the compass adjacencies for a given :math:`n`-dimensional point. Bounds... |
Compute the compass adjacencies for a given :math:`n`-dimensional point. Bounds can
be specified, and only adjacent coordinates within those bounds will be returned.
Bounds can be specified as any one of the :class:`BoundsType`s.
:param coord: coordinate to calculate the adjacencies of
:param boun... | Compute the compass adjacencies for a given :math:`n`-dimensional point. Bounds can
be specified, and only adjacent coordinates within those bounds will be returned.
Bounds can be specified as any one of the :class:`BoundsType`s. | [
"Compute",
"the",
"compass",
"adjacencies",
"for",
"a",
"given",
":",
"math",
":",
"`",
"n",
"`",
"-",
"dimensional",
"point",
".",
"Bounds",
"can",
"be",
"specified",
"and",
"only",
"adjacent",
"coordinates",
"within",
"those",
"bounds",
"will",
"be",
"re... | def grid_adjs(
coord: Tuple[int, ...],
bounds: Tuple[Tuple[int, int], ...] = None,
adjs_type: AdjacenciesType = AdjacenciesType.COMPASS,
bounds_type: BoundsType = BoundsType.RANGE,
) -> Iterable[Tuple[int, ...]]:
for delta in it.product((-1, 0, 1), repeat=len(coord)):
if all(d == 0 for d in ... | [
"def",
"grid_adjs",
"(",
"coord",
":",
"Tuple",
"[",
"int",
",",
"...",
"]",
",",
"bounds",
":",
"Tuple",
"[",
"Tuple",
"[",
"int",
",",
"int",
"]",
",",
"...",
"]",
"=",
"None",
",",
"adjs_type",
":",
"AdjacenciesType",
"=",
"AdjacenciesType",
".",
... | Compute the compass adjacencies for a given :math:`n`-dimensional point. | [
"Compute",
"the",
"compass",
"adjacencies",
"for",
"a",
"given",
":",
"math",
":",
"`",
"n",
"`",
"-",
"dimensional",
"point",
"."
] | [
"\"\"\"\n Compute the compass adjacencies for a given :math:`n`-dimensional point. Bounds can\n be specified, and only adjacent coordinates within those bounds will be returned.\n Bounds can be specified as any one of the :class:`BoundsType`s.\n\n :param coord: coordinate to calculate the adjacencies of... | [
{
"param": "coord",
"type": "Tuple[int, ...]"
},
{
"param": "bounds",
"type": "Tuple[Tuple[int, int], ...]"
},
{
"param": "adjs_type",
"type": "AdjacenciesType"
},
{
"param": "bounds_type",
"type": "BoundsType"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "coord",
"type": "Tuple[int, ...]",
"docstring": "coordinate to calculate the adjacencies of",
"docstring_tokens": [
"coordinate",
"to",
"calculate",
"the",
"adjacencies",
"of"
... |
5f509b63fac368f897b44344746f124ac15230f3 | sumnerevans/advent-of-code | 2021/11.py | [
"MIT"
] | Python | part_1_original_approach | int | def part_1_original_approach(lines: List[str]) -> int:
"""
This was my original approach. I missed a few critical details that really bit me in
the ass.
1. Operator precedence for modulo.
"""
ans = 0
seq = [[int(c) for c in x] for x in lines]
for _ in range(100):
ns = [[(a + 1)... |
This was my original approach. I missed a few critical details that really bit me in
the ass.
1. Operator precedence for modulo.
| This was my original approach. I missed a few critical details that really bit me in
the ass.
1. Operator precedence for modulo. | [
"This",
"was",
"my",
"original",
"approach",
".",
"I",
"missed",
"a",
"few",
"critical",
"details",
"that",
"really",
"bit",
"me",
"in",
"the",
"ass",
".",
"1",
".",
"Operator",
"precedence",
"for",
"modulo",
"."
] | def part_1_original_approach(lines: List[str]) -> int:
ans = 0
seq = [[int(c) for c in x] for x in lines]
for _ in range(100):
ns = [[(a + 1) % 10 for a in r] for r in seq]
to_flash = {
(r, c) for r in range(len(seq)) for c in range(len(seq[0])) if ns[r][c] == 0
}
... | [
"def",
"part_1_original_approach",
"(",
"lines",
":",
"List",
"[",
"str",
"]",
")",
"->",
"int",
":",
"ans",
"=",
"0",
"seq",
"=",
"[",
"[",
"int",
"(",
"c",
")",
"for",
"c",
"in",
"x",
"]",
"for",
"x",
"in",
"lines",
"]",
"for",
"_",
"in",
"... | This was my original approach. | [
"This",
"was",
"my",
"original",
"approach",
"."
] | [
"\"\"\"\n This was my original approach. I missed a few critical details that really bit me in\n the ass.\n\n 1. Operator precedence for modulo.\n \"\"\"",
"# Here was my operator precedence error. I originally had",
"# ns[r][c] = 0 if ns[r][c] == 0 else ns[r][c] + 1 % 10",
"# which is wrong since... | [
{
"param": "lines",
"type": "List[str]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "lines",
"type": "List[str]",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
afa03a3c2ef698b9bcf19a3df2815905c4d630b3 | sumnerevans/advent-of-code | 2020/24.py | [
"MIT"
] | Python | pos | <not_specific> | def pos(directions):
"""
Given a set of directions, figure out the actual index on the (x,y) coordinate grid.
"""
x, y = 0, 0
for dx, dy in directions:
x, y = x + dx, y + dy
return x, y |
Given a set of directions, figure out the actual index on the (x,y) coordinate grid.
| Given a set of directions, figure out the actual index on the (x,y) coordinate grid. | [
"Given",
"a",
"set",
"of",
"directions",
"figure",
"out",
"the",
"actual",
"index",
"on",
"the",
"(",
"x",
"y",
")",
"coordinate",
"grid",
"."
] | def pos(directions):
x, y = 0, 0
for dx, dy in directions:
x, y = x + dx, y + dy
return x, y | [
"def",
"pos",
"(",
"directions",
")",
":",
"x",
",",
"y",
"=",
"0",
",",
"0",
"for",
"dx",
",",
"dy",
"in",
"directions",
":",
"x",
",",
"y",
"=",
"x",
"+",
"dx",
",",
"y",
"+",
"dy",
"return",
"x",
",",
"y"
] | Given a set of directions, figure out the actual index on the (x,y) coordinate grid. | [
"Given",
"a",
"set",
"of",
"directions",
"figure",
"out",
"the",
"actual",
"index",
"on",
"the",
"(",
"x",
"y",
")",
"coordinate",
"grid",
"."
] | [
"\"\"\"\n Given a set of directions, figure out the actual index on the (x,y) coordinate grid.\n \"\"\""
] | [
{
"param": "directions",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "directions",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
afa03a3c2ef698b9bcf19a3df2815905c4d630b3 | sumnerevans/advent-of-code | 2020/24.py | [
"MIT"
] | Python | part1 | int | def part1() -> int:
"""
All we do is count the number of `True`s in the values of the flipped dictionary.
"""
return list(INITIAL_FLIPPED.values()).count(True) |
All we do is count the number of `True`s in the values of the flipped dictionary.
| All we do is count the number of `True`s in the values of the flipped dictionary. | [
"All",
"we",
"do",
"is",
"count",
"the",
"number",
"of",
"`",
"True",
"`",
"s",
"in",
"the",
"values",
"of",
"the",
"flipped",
"dictionary",
"."
] | def part1() -> int:
return list(INITIAL_FLIPPED.values()).count(True) | [
"def",
"part1",
"(",
")",
"->",
"int",
":",
"return",
"list",
"(",
"INITIAL_FLIPPED",
".",
"values",
"(",
")",
")",
".",
"count",
"(",
"True",
")"
] | All we do is count the number of `True`s in the values of the flipped dictionary. | [
"All",
"we",
"do",
"is",
"count",
"the",
"number",
"of",
"`",
"True",
"`",
"s",
"in",
"the",
"values",
"of",
"the",
"flipped",
"dictionary",
"."
] | [
"\"\"\"\n All we do is count the number of `True`s in the values of the flipped dictionary.\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
afa03a3c2ef698b9bcf19a3df2815905c4d630b3 | sumnerevans/advent-of-code | 2020/24.py | [
"MIT"
] | Python | adjs | <not_specific> | def adjs(x, y):
"""Get the adjacent tiles to the given coordinate."""
return (
(x + 2, y), # e
(x - 2, y), # w
(x + 1, y + 1), # ne
(x + 1, y - 1), # se
(x - 1, y + 1), # nw
(x - 1, y - 1), # sw
) | Get the adjacent tiles to the given coordinate. | Get the adjacent tiles to the given coordinate. | [
"Get",
"the",
"adjacent",
"tiles",
"to",
"the",
"given",
"coordinate",
"."
] | def adjs(x, y):
return (
(x + 2, y),
(x - 2, y),
(x + 1, y + 1),
(x + 1, y - 1),
(x - 1, y + 1),
(x - 1, y - 1),
) | [
"def",
"adjs",
"(",
"x",
",",
"y",
")",
":",
"return",
"(",
"(",
"x",
"+",
"2",
",",
"y",
")",
",",
"(",
"x",
"-",
"2",
",",
"y",
")",
",",
"(",
"x",
"+",
"1",
",",
"y",
"+",
"1",
")",
",",
"(",
"x",
"+",
"1",
",",
"y",
"-",
"1",
... | Get the adjacent tiles to the given coordinate. | [
"Get",
"the",
"adjacent",
"tiles",
"to",
"the",
"given",
"coordinate",
"."
] | [
"\"\"\"Get the adjacent tiles to the given coordinate.\"\"\"",
"# e",
"# w",
"# ne",
"# se",
"# nw",
"# sw"
] | [
{
"param": "x",
"type": null
},
{
"param": "y",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "x",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "y",
"type": null,
"docstring": null,
"docstring_tokens": [],
... |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | printtile | null | def printtile(tile):
"""Print a tile. If a tile ID is passed, look it up in the TILES dictionary."""
if isinstance(tile, int):
tile = TILES[tile]
for row in tile:
for col in row:
print("#" if col else ".", end="")
print() | Print a tile. If a tile ID is passed, look it up in the TILES dictionary. | Print a tile. If a tile ID is passed, look it up in the TILES dictionary. | [
"Print",
"a",
"tile",
".",
"If",
"a",
"tile",
"ID",
"is",
"passed",
"look",
"it",
"up",
"in",
"the",
"TILES",
"dictionary",
"."
] | def printtile(tile):
if isinstance(tile, int):
tile = TILES[tile]
for row in tile:
for col in row:
print("#" if col else ".", end="")
print() | [
"def",
"printtile",
"(",
"tile",
")",
":",
"if",
"isinstance",
"(",
"tile",
",",
"int",
")",
":",
"tile",
"=",
"TILES",
"[",
"tile",
"]",
"for",
"row",
"in",
"tile",
":",
"for",
"col",
"in",
"row",
":",
"print",
"(",
"\"#\"",
"if",
"col",
"else",... | Print a tile. | [
"Print",
"a",
"tile",
"."
] | [
"\"\"\"Print a tile. If a tile ID is passed, look it up in the TILES dictionary.\"\"\""
] | [
{
"param": "tile",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "tile",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | print_assignments | null | def print_assignments(assignments):
"""
Print an entire assignments array. This can be used at the very end to print the
picture.
"""
for r in assignments:
print(r)
for row in assignments:
print()
sidelen = len(TILES[row[0][0]])
rowlines = ["" for _ in range(sidel... |
Print an entire assignments array. This can be used at the very end to print the
picture.
| Print an entire assignments array. This can be used at the very end to print the
picture. | [
"Print",
"an",
"entire",
"assignments",
"array",
".",
"This",
"can",
"be",
"used",
"at",
"the",
"very",
"end",
"to",
"print",
"the",
"picture",
"."
] | def print_assignments(assignments):
for r in assignments:
print(r)
for row in assignments:
print()
sidelen = len(TILES[row[0][0]])
rowlines = ["" for _ in range(sidelen)]
for col, rotation, flip in row:
for i in range(len(rowlines)):
rowlines[i... | [
"def",
"print_assignments",
"(",
"assignments",
")",
":",
"for",
"r",
"in",
"assignments",
":",
"print",
"(",
"r",
")",
"for",
"row",
"in",
"assignments",
":",
"print",
"(",
")",
"sidelen",
"=",
"len",
"(",
"TILES",
"[",
"row",
"[",
"0",
"]",
"[",
... | Print an entire assignments array. | [
"Print",
"an",
"entire",
"assignments",
"array",
"."
] | [
"\"\"\"\n Print an entire assignments array. This can be used at the very end to print the\n picture.\n \"\"\""
] | [
{
"param": "assignments",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "assignments",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | solve | Optional[Placements] | def solve(placements: Placements, d=0) -> Optional[Placements]:
"""
This is a recursive function which, given a set of placements, returns a valid
configuration of valid placements if it exists, and ``None`` otherwise.
"""
indent = " " * d
if debug:
print(indent, "solve")
for ro... |
This is a recursive function which, given a set of placements, returns a valid
configuration of valid placements if it exists, and ``None`` otherwise.
| This is a recursive function which, given a set of placements, returns a valid
configuration of valid placements if it exists, and ``None`` otherwise. | [
"This",
"is",
"a",
"recursive",
"function",
"which",
"given",
"a",
"set",
"of",
"placements",
"returns",
"a",
"valid",
"configuration",
"of",
"valid",
"placements",
"if",
"it",
"exists",
"and",
"`",
"`",
"None",
"`",
"`",
"otherwise",
"."
] | def solve(placements: Placements, d=0) -> Optional[Placements]:
indent = " " * d
if debug:
print(indent, "solve")
for row in placements:
print(indent, [x[0] for x in row])
if len(placements) == SIDELEN and all(len(x) == SIDELEN for x in placements):
return placements
... | [
"def",
"solve",
"(",
"placements",
":",
"Placements",
",",
"d",
"=",
"0",
")",
"->",
"Optional",
"[",
"Placements",
"]",
":",
"indent",
"=",
"\" \"",
"*",
"d",
"if",
"debug",
":",
"print",
"(",
"indent",
",",
"\"solve\"",
")",
"for",
"row",
"in",
... | This is a recursive function which, given a set of placements, returns a valid
configuration of valid placements if it exists, and ``None`` otherwise. | [
"This",
"is",
"a",
"recursive",
"function",
"which",
"given",
"a",
"set",
"of",
"placements",
"returns",
"a",
"valid",
"configuration",
"of",
"valid",
"placements",
"if",
"it",
"exists",
"and",
"`",
"`",
"None",
"`",
"`",
"otherwise",
"."
] | [
"\"\"\"\n This is a recursive function which, given a set of placements, returns a valid\n configuration of valid placements if it exists, and ``None`` otherwise.\n \"\"\"",
"# This is the base case of the recursion. If we have filled up the picture, then we",
"# can return all of the placements.",
"... | [
{
"param": "placements",
"type": "Placements"
},
{
"param": "d",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "placements",
"type": "Placements",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "d",
"type": null,
"docstring": null,
"docstring... |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | part1 | int | def part1() -> int:
"""
I had a bug here that cost me at least an hour? maybe more? No idea. I had the index
on the second one of these wrong (I hard-coded it as 1, instead of -1)
"""
return (
assignments[0][0][0]
* assignments[0][-1][0]
* assignments[-1][0][0]
* assi... |
I had a bug here that cost me at least an hour? maybe more? No idea. I had the index
on the second one of these wrong (I hard-coded it as 1, instead of -1)
| I had a bug here that cost me at least an hour. maybe more. No idea. I had the index
on the second one of these wrong (I hard-coded it as 1, instead of -1) | [
"I",
"had",
"a",
"bug",
"here",
"that",
"cost",
"me",
"at",
"least",
"an",
"hour",
".",
"maybe",
"more",
".",
"No",
"idea",
".",
"I",
"had",
"the",
"index",
"on",
"the",
"second",
"one",
"of",
"these",
"wrong",
"(",
"I",
"hard",
"-",
"coded",
"it... | def part1() -> int:
return (
assignments[0][0][0]
* assignments[0][-1][0]
* assignments[-1][0][0]
* assignments[-1][-1][0]
) | [
"def",
"part1",
"(",
")",
"->",
"int",
":",
"return",
"(",
"assignments",
"[",
"0",
"]",
"[",
"0",
"]",
"[",
"0",
"]",
"*",
"assignments",
"[",
"0",
"]",
"[",
"-",
"1",
"]",
"[",
"0",
"]",
"*",
"assignments",
"[",
"-",
"1",
"]",
"[",
"0",
... | I had a bug here that cost me at least an hour? | [
"I",
"had",
"a",
"bug",
"here",
"that",
"cost",
"me",
"at",
"least",
"an",
"hour?"
] | [
"\"\"\"\n I had a bug here that cost me at least an hour? maybe more? No idea. I had the index\n on the second one of these wrong (I hard-coded it as 1, instead of -1)\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | part2 | int | def part2() -> int:
"""
I used a very inefficient and stupid algorithm for this. For each orientation, I am
just checking every single possible start (row, col) pair of a monster (which is
really highly unnecessary because monsters cannot overlap).
"""
sidelen = len(list(TILES.values())[0])
... |
I used a very inefficient and stupid algorithm for this. For each orientation, I am
just checking every single possible start (row, col) pair of a monster (which is
really highly unnecessary because monsters cannot overlap).
| I used a very inefficient and stupid algorithm for this. For each orientation, I am
just checking every single possible start (row, col) pair of a monster (which is
really highly unnecessary because monsters cannot overlap). | [
"I",
"used",
"a",
"very",
"inefficient",
"and",
"stupid",
"algorithm",
"for",
"this",
".",
"For",
"each",
"orientation",
"I",
"am",
"just",
"checking",
"every",
"single",
"possible",
"start",
"(",
"row",
"col",
")",
"pair",
"of",
"a",
"monster",
"(",
"wh... | def part2() -> int:
sidelen = len(list(TILES.values())[0])
if debug:
for row in assignments:
print(row)
seamonster = [
" # ",
"# ## ## ###",
" # # # # # # ",
]
seamonster_r = len(seamonster)
seamonster_c = len(seamonste... | [
"def",
"part2",
"(",
")",
"->",
"int",
":",
"sidelen",
"=",
"len",
"(",
"list",
"(",
"TILES",
".",
"values",
"(",
")",
")",
"[",
"0",
"]",
")",
"if",
"debug",
":",
"for",
"row",
"in",
"assignments",
":",
"print",
"(",
"row",
")",
"seamonster",
... | I used a very inefficient and stupid algorithm for this. | [
"I",
"used",
"a",
"very",
"inefficient",
"and",
"stupid",
"algorithm",
"for",
"this",
"."
] | [
"\"\"\"\n I used a very inefficient and stupid algorithm for this. For each orientation, I am\n just checking every single possible start (row, col) pair of a monster (which is\n really highly unnecessary because monsters cannot overlap).\n \"\"\"",
"# This part just stitches together the picture. Mak... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
66e598277520c805bb823548e343ff5ef57165b0 | sumnerevans/advent-of-code | 2020/20.py | [
"MIT"
] | Python | turbulence | Optional[int] | def turbulence(lines) -> Optional[int]:
"""
Returns the turbulence if there are monsters in this orientation. It's
guaranteed that there will be only one configuration that has monsters, so if
there are no monsters, then this is not the correct orientation.
"""
R = len(li... |
Returns the turbulence if there are monsters in this orientation. It's
guaranteed that there will be only one configuration that has monsters, so if
there are no monsters, then this is not the correct orientation.
| Returns the turbulence if there are monsters in this orientation. It's
guaranteed that there will be only one configuration that has monsters, so if
there are no monsters, then this is not the correct orientation. | [
"Returns",
"the",
"turbulence",
"if",
"there",
"are",
"monsters",
"in",
"this",
"orientation",
".",
"It",
"'",
"s",
"guaranteed",
"that",
"there",
"will",
"be",
"only",
"one",
"configuration",
"that",
"has",
"monsters",
"so",
"if",
"there",
"are",
"no",
"m... | def turbulence(lines) -> Optional[int]:
R = len(lines)
C = len(lines[0])
for r0 in range(R):
for c0 in range(C):
is_seamonster = True
for r, c in it.product(range(seamonster_r), range(seamonster_c)):
if debug:
... | [
"def",
"turbulence",
"(",
"lines",
")",
"->",
"Optional",
"[",
"int",
"]",
":",
"R",
"=",
"len",
"(",
"lines",
")",
"C",
"=",
"len",
"(",
"lines",
"[",
"0",
"]",
")",
"for",
"r0",
"in",
"range",
"(",
"R",
")",
":",
"for",
"c0",
"in",
"range",... | Returns the turbulence if there are monsters in this orientation. | [
"Returns",
"the",
"turbulence",
"if",
"there",
"are",
"monsters",
"in",
"this",
"orientation",
"."
] | [
"\"\"\"\n Returns the turbulence if there are monsters in this orientation. It's\n guaranteed that there will be only one configuration that has monsters, so if\n there are no monsters, then this is not the correct orientation.\n \"\"\""
] | [
{
"param": "lines",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "lines",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
ef2cbcffd822cad15085c9fffe91206c50b00980 | sumnerevans/advent-of-code | 2021/06.py | [
"MIT"
] | Python | calculate_lanternfish | int | def calculate_lanternfish(start_seq: List[int], iterations: int) -> int:
"""
This calculate function aggregates all of the lanternfish at the same stage in life
together to keep track of them.
Each day, all lanternfish at ``0`` days before they create a new lanternfish become
a ``6`` and starts a n... |
This calculate function aggregates all of the lanternfish at the same stage in life
together to keep track of them.
Each day, all lanternfish at ``0`` days before they create a new lanternfish become
a ``6`` and starts a new lanternfish initialized at ``8`` to the end of the list,
while each other... | This calculate function aggregates all of the lanternfish at the same stage in life
together to keep track of them.
| [
"This",
"calculate",
"function",
"aggregates",
"all",
"of",
"the",
"lanternfish",
"at",
"the",
"same",
"stage",
"in",
"life",
"together",
"to",
"keep",
"track",
"of",
"them",
"."
] | def calculate_lanternfish(start_seq: List[int], iterations: int) -> int:
number_of_laternfish = defaultdict(int)
for x in start_seq:
number_of_laternfish[x] += 1
for _ in range(iterations):
new_number_of_lanternfish = defaultdict(int)
for k, v in number_of_laternfish.items():
... | [
"def",
"calculate_lanternfish",
"(",
"start_seq",
":",
"List",
"[",
"int",
"]",
",",
"iterations",
":",
"int",
")",
"->",
"int",
":",
"number_of_laternfish",
"=",
"defaultdict",
"(",
"int",
")",
"for",
"x",
"in",
"start_seq",
":",
"number_of_laternfish",
"["... | This calculate function aggregates all of the lanternfish at the same stage in life
together to keep track of them. | [
"This",
"calculate",
"function",
"aggregates",
"all",
"of",
"the",
"lanternfish",
"at",
"the",
"same",
"stage",
"in",
"life",
"together",
"to",
"keep",
"track",
"of",
"them",
"."
] | [
"\"\"\"\n This calculate function aggregates all of the lanternfish at the same stage in life\n together to keep track of them.\n\n Each day, all lanternfish at ``0`` days before they create a new lanternfish become\n a ``6`` and starts a new lanternfish initialized at ``8`` to the end of the list,\n ... | [
{
"param": "start_seq",
"type": "List[int]"
},
{
"param": "iterations",
"type": "int"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "start_seq",
"type": "List[int]",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "iterations",
"type": "int",
"docstring": null,
"d... |
7333341ee11c9809ae9e731b5a3203f9ec394d55 | sumnerevans/advent-of-code | 2020/14.py | [
"MIT"
] | Python | sizezip | Generator[Tuple, None, None] | def sizezip(*iterables: Iterable) -> Generator[Tuple, None, None]:
"""
Same as the :class:`zip` function, but verifies that the lengths of the
:class:`list`s or :class:`set`s are the same.
"""
assert len(set(len(x) for x in iterables)) == 1 # type: ignore
yield from zip(*iterables) |
Same as the :class:`zip` function, but verifies that the lengths of the
:class:`list`s or :class:`set`s are the same.
| Same as the :class:`zip` function, but verifies that the lengths of the | [
"Same",
"as",
"the",
":",
"class",
":",
"`",
"zip",
"`",
"function",
"but",
"verifies",
"that",
"the",
"lengths",
"of",
"the"
] | def sizezip(*iterables: Iterable) -> Generator[Tuple, None, None]:
assert len(set(len(x) for x in iterables)) == 1
yield from zip(*iterables) | [
"def",
"sizezip",
"(",
"*",
"iterables",
":",
"Iterable",
")",
"->",
"Generator",
"[",
"Tuple",
",",
"None",
",",
"None",
"]",
":",
"assert",
"len",
"(",
"set",
"(",
"len",
"(",
"x",
")",
"for",
"x",
"in",
"iterables",
")",
")",
"==",
"1",
"yield... | Same as the :class:`zip` function, but verifies that the lengths of the | [
"Same",
"as",
"the",
":",
"class",
":",
"`",
"zip",
"`",
"function",
"but",
"verifies",
"that",
"the",
"lengths",
"of",
"the"
] | [
"\"\"\"\n Same as the :class:`zip` function, but verifies that the lengths of the\n :class:`list`s or :class:`set`s are the same.\n \"\"\"",
"# type: ignore"
] | [
{
"param": "iterables",
"type": "Iterable"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "iterables",
"type": "Iterable",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": [
{
"identifier": "class",
"docstring":... |
7333341ee11c9809ae9e731b5a3203f9ec394d55 | sumnerevans/advent-of-code | 2020/14.py | [
"MIT"
] | Python | part1 | <not_specific> | def part1():
"""
Part 1, I did some bit-hacking instead of doing it stringly typed which was a
mistake as it screwed me for part 2, and it was also way more difficult than it was
worth.
I also need to be better at Python's built-in integer conversion libraries.
"""
# Using a dict to store m... |
Part 1, I did some bit-hacking instead of doing it stringly typed which was a
mistake as it screwed me for part 2, and it was also way more difficult than it was
worth.
I also need to be better at Python's built-in integer conversion libraries.
| Part 1, I did some bit-hacking instead of doing it stringly typed which was a
mistake as it screwed me for part 2, and it was also way more difficult than it was
worth.
I also need to be better at Python's built-in integer conversion libraries. | [
"Part",
"1",
"I",
"did",
"some",
"bit",
"-",
"hacking",
"instead",
"of",
"doing",
"it",
"stringly",
"typed",
"which",
"was",
"a",
"mistake",
"as",
"it",
"screwed",
"me",
"for",
"part",
"2",
"and",
"it",
"was",
"also",
"way",
"more",
"difficult",
"than"... | def part1():
mem = {}
andmask = 1
ormask = 0
for line in lines:
if rematch("mask.*", line):
andmask = 1
ormask = 0
for x in rematch("mask = (.*)", line).group(1):
andmask = andmask << 1
ormask = ormask << 1
if x ... | [
"def",
"part1",
"(",
")",
":",
"mem",
"=",
"{",
"}",
"andmask",
"=",
"1",
"ormask",
"=",
"0",
"for",
"line",
"in",
"lines",
":",
"if",
"rematch",
"(",
"\"mask.*\"",
",",
"line",
")",
":",
"andmask",
"=",
"1",
"ormask",
"=",
"0",
"for",
"x",
"in... | Part 1, I did some bit-hacking instead of doing it stringly typed which was a
mistake as it screwed me for part 2, and it was also way more difficult than it was
worth. | [
"Part",
"1",
"I",
"did",
"some",
"bit",
"-",
"hacking",
"instead",
"of",
"doing",
"it",
"stringly",
"typed",
"which",
"was",
"a",
"mistake",
"as",
"it",
"screwed",
"me",
"for",
"part",
"2",
"and",
"it",
"was",
"also",
"way",
"more",
"difficult",
"than"... | [
"\"\"\"\n Part 1, I did some bit-hacking instead of doing it stringly typed which was a\n mistake as it screwed me for part 2, and it was also way more difficult than it was\n worth.\n\n I also need to be better at Python's built-in integer conversion libraries.\n \"\"\"",
"# Using a dict to store ... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
7333341ee11c9809ae9e731b5a3203f9ec394d55 | sumnerevans/advent-of-code | 2020/14.py | [
"MIT"
] | Python | part2 | <not_specific> | def part2():
"""
In this one, I converted to use stringly typed masks instead of the crazy bithacking
that I did in Part 1.
"""
mem = {}
max_count_x = 0
# this is just here to make my linter happy because it doesn't know that curmask is
# going to be set on the first iteration of the loo... |
In this one, I converted to use stringly typed masks instead of the crazy bithacking
that I did in Part 1.
| In this one, I converted to use stringly typed masks instead of the crazy bithacking
that I did in Part 1. | [
"In",
"this",
"one",
"I",
"converted",
"to",
"use",
"stringly",
"typed",
"masks",
"instead",
"of",
"the",
"crazy",
"bithacking",
"that",
"I",
"did",
"in",
"Part",
"1",
"."
] | def part2():
mem = {}
max_count_x = 0
curmask = ""
for line in lines:
if rematch("mask.*", line):
curmask = rematch("mask = (.*)", line).group(1)
else:
loc, val = map(int, rematch(r"mem\[(\d+)\] = (\d+)", line).groups())
access = pbits(loc, len(curmask... | [
"def",
"part2",
"(",
")",
":",
"mem",
"=",
"{",
"}",
"max_count_x",
"=",
"0",
"curmask",
"=",
"\"\"",
"for",
"line",
"in",
"lines",
":",
"if",
"rematch",
"(",
"\"mask.*\"",
",",
"line",
")",
":",
"curmask",
"=",
"rematch",
"(",
"\"mask = (.*)\"",
","... | In this one, I converted to use stringly typed masks instead of the crazy bithacking
that I did in Part 1. | [
"In",
"this",
"one",
"I",
"converted",
"to",
"use",
"stringly",
"typed",
"masks",
"instead",
"of",
"the",
"crazy",
"bithacking",
"that",
"I",
"did",
"in",
"Part",
"1",
"."
] | [
"\"\"\"\n In this one, I converted to use stringly typed masks instead of the crazy bithacking\n that I did in Part 1.\n \"\"\"",
"# this is just here to make my linter happy because it doesn't know that curmask is",
"# going to be set on the first iteration of the loop.",
"# Pad the memory access lo... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
9d61fe6ba8de9c0df12f71835e0eab6ceb129d62 | sumnerevans/advent-of-code | .vim-template:.py | [
"MIT"
] | Python | int_points_between | Generator[Tuple[int, int], None, None] | def int_points_between(
start: Tuple[int, int], end: Tuple[int, int]
) -> Generator[Tuple[int, int], None, None]:
"""
Return a generator of all of the integer points between two given points. Note that
you are *not* guaranteed that the points will be given from `start` to `end`, but
all points will ... |
Return a generator of all of the integer points between two given points. Note that
you are *not* guaranteed that the points will be given from `start` to `end`, but
all points will be included.
| Return a generator of all of the integer points between two given points. Note that
you are *not* guaranteed that the points will be given from `start` to `end`, but
all points will be included. | [
"Return",
"a",
"generator",
"of",
"all",
"of",
"the",
"integer",
"points",
"between",
"two",
"given",
"points",
".",
"Note",
"that",
"you",
"are",
"*",
"not",
"*",
"guaranteed",
"that",
"the",
"points",
"will",
"be",
"given",
"from",
"`",
"start",
"`",
... | def int_points_between(
start: Tuple[int, int], end: Tuple[int, int]
) -> Generator[Tuple[int, int], None, None]:
x1, y1 = start
x2, y2 = end
if x1 == x2:
yield from ((x1, y) for y in dirange(y1, y2))
elif y1 == y2:
yield from ((x, y1) for x in dirange(x1, x2))
else:
if x... | [
"def",
"int_points_between",
"(",
"start",
":",
"Tuple",
"[",
"int",
",",
"int",
"]",
",",
"end",
":",
"Tuple",
"[",
"int",
",",
"int",
"]",
")",
"->",
"Generator",
"[",
"Tuple",
"[",
"int",
",",
"int",
"]",
",",
"None",
",",
"None",
"]",
":",
... | Return a generator of all of the integer points between two given points. | [
"Return",
"a",
"generator",
"of",
"all",
"of",
"the",
"integer",
"points",
"between",
"two",
"given",
"points",
"."
] | [
"\"\"\"\n Return a generator of all of the integer points between two given points. Note that\n you are *not* guaranteed that the points will be given from `start` to `end`, but\n all points will be included.\n \"\"\"",
"# If `x1 > x2`, that means that `start` is to the right of `end`, so we need to",... | [
{
"param": "start",
"type": "Tuple[int, int]"
},
{
"param": "end",
"type": "Tuple[int, int]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "start",
"type": "Tuple[int, int]",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "end",
"type": "Tuple[int, int]",
"docstring": null,
... |
9d61fe6ba8de9c0df12f71835e0eab6ceb129d62 | sumnerevans/advent-of-code | .vim-template:.py | [
"MIT"
] | Python | sizezip | Iterable[Tuple] | def sizezip(*iterables: Union[List, Set]) -> Iterable[Tuple]:
"""
Same as the :class:`zip` function, but verifies that the lengths of the
:class:`list`s or :class:`set`s are the same.
"""
assert len(set(len(x) for x in iterables)) == 1
yield from zip(*iterables) |
Same as the :class:`zip` function, but verifies that the lengths of the
:class:`list`s or :class:`set`s are the same.
| Same as the :class:`zip` function, but verifies that the lengths of the | [
"Same",
"as",
"the",
":",
"class",
":",
"`",
"zip",
"`",
"function",
"but",
"verifies",
"that",
"the",
"lengths",
"of",
"the"
] | def sizezip(*iterables: Union[List, Set]) -> Iterable[Tuple]:
assert len(set(len(x) for x in iterables)) == 1
yield from zip(*iterables) | [
"def",
"sizezip",
"(",
"*",
"iterables",
":",
"Union",
"[",
"List",
",",
"Set",
"]",
")",
"->",
"Iterable",
"[",
"Tuple",
"]",
":",
"assert",
"len",
"(",
"set",
"(",
"len",
"(",
"x",
")",
"for",
"x",
"in",
"iterables",
")",
")",
"==",
"1",
"yie... | Same as the :class:`zip` function, but verifies that the lengths of the | [
"Same",
"as",
"the",
":",
"class",
":",
"`",
"zip",
"`",
"function",
"but",
"verifies",
"that",
"the",
"lengths",
"of",
"the"
] | [
"\"\"\"\n Same as the :class:`zip` function, but verifies that the lengths of the\n :class:`list`s or :class:`set`s are the same.\n \"\"\""
] | [
{
"param": "iterables",
"type": "Union[List, Set]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "iterables",
"type": "Union[List, Set]",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": [
{
"identifier": "class",
"doc... |
e9c1ddd2f62171fa2263dfd42c6b0b19cf898429 | sumnerevans/advent-of-code | 2021/05.py | [
"MIT"
] | Python | dirange | Generator[int, None, None] | def dirange(start, end=None, step=1) -> Generator[int, None, None]:
"""
Directional, inclusive range. This range function is an inclusive version of
:class:`range` that figures out the correct step direction to make sure that it goes
from `start` to `end`, even if `end` is before `start`.
>>> diran... |
Directional, inclusive range. This range function is an inclusive version of
:class:`range` that figures out the correct step direction to make sure that it goes
from `start` to `end`, even if `end` is before `start`.
>>> dirange(2, -2)
[2, 1, 0, -1, -2]
>>> dirange(-2)
[0, -1, -2]
>>>... | Directional, inclusive range. This range function is an inclusive version of | [
"Directional",
"inclusive",
"range",
".",
"This",
"range",
"function",
"is",
"an",
"inclusive",
"version",
"of"
] | def dirange(start, end=None, step=1) -> Generator[int, None, None]:
assert step > 0
if end is None:
start, end = 0, start
if end >= start:
yield from irange(start, end, step)
else:
yield from range(start, end - 1, step=-step) | [
"def",
"dirange",
"(",
"start",
",",
"end",
"=",
"None",
",",
"step",
"=",
"1",
")",
"->",
"Generator",
"[",
"int",
",",
"None",
",",
"None",
"]",
":",
"assert",
"step",
">",
"0",
"if",
"end",
"is",
"None",
":",
"start",
",",
"end",
"=",
"0",
... | Directional, inclusive range. | [
"Directional",
"inclusive",
"range",
"."
] | [
"\"\"\"\n Directional, inclusive range. This range function is an inclusive version of\n :class:`range` that figures out the correct step direction to make sure that it goes\n from `start` to `end`, even if `end` is before `start`.\n\n >>> dirange(2, -2)\n [2, 1, 0, -1, -2]\n >>> dirange(-2)\n ... | [
{
"param": "start",
"type": null
},
{
"param": "end",
"type": null
},
{
"param": "step",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "start",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "end",
"type": null,
"docstring": null,
"docstring_tokens": [... |
e9c1ddd2f62171fa2263dfd42c6b0b19cf898429 | sumnerevans/advent-of-code | 2021/05.py | [
"MIT"
] | Python | part1 | int | def part1(lines: List[str]) -> int:
"""
For part 1, you only have to consider horizontal and vertical lines. That is, lines
where either x1 = x2 or y1 = y2.
"""
G = defaultdict(int)
for (x1, y1), (x2, y2) in parselines(lines):
if x1 != x2 and y1 != y2:
# This technique works ... |
For part 1, you only have to consider horizontal and vertical lines. That is, lines
where either x1 = x2 or y1 = y2.
| For part 1, you only have to consider horizontal and vertical lines. That is, lines
where either x1 = x2 or y1 = y2. | [
"For",
"part",
"1",
"you",
"only",
"have",
"to",
"consider",
"horizontal",
"and",
"vertical",
"lines",
".",
"That",
"is",
"lines",
"where",
"either",
"x1",
"=",
"x2",
"or",
"y1",
"=",
"y2",
"."
] | def part1(lines: List[str]) -> int:
G = defaultdict(int)
for (x1, y1), (x2, y2) in parselines(lines):
if x1 != x2 and y1 != y2:
continue
for x, y in int_points_between((x1, y1), (x2, y2)):
G[(x, y)] += 1
return sum([1 for x in G.values() if x > 1]) | [
"def",
"part1",
"(",
"lines",
":",
"List",
"[",
"str",
"]",
")",
"->",
"int",
":",
"G",
"=",
"defaultdict",
"(",
"int",
")",
"for",
"(",
"x1",
",",
"y1",
")",
",",
"(",
"x2",
",",
"y2",
")",
"in",
"parselines",
"(",
"lines",
")",
":",
"if",
... | For part 1, you only have to consider horizontal and vertical lines. | [
"For",
"part",
"1",
"you",
"only",
"have",
"to",
"consider",
"horizontal",
"and",
"vertical",
"lines",
"."
] | [
"\"\"\"\n For part 1, you only have to consider horizontal and vertical lines. That is, lines\n where either x1 = x2 or y1 = y2.\n \"\"\"",
"# This technique works for part 1 because x1 = x2 or y1 = y2 so sorting will",
"# actually do what we want (which is to put the one that is smaller first,",
"# ... | [
{
"param": "lines",
"type": "List[str]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "lines",
"type": "List[str]",
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
80be964914a249eab62e62b2d9e2f073406dd478 | sumnerevans/advent-of-code | 2020/22.py | [
"MIT"
] | Python | part1 | int | def part1() -> int:
"""
I decided to use lists for this instead of a queue, because I'm really unfamiliar
with the stdlib for queues in Python, so it is faster for me to think about lists.
Also, using a queue in Part 2 would have been a disaster.
"""
dp1 = deepcopy(DECKP1)
dp2 = deepcopy(DEC... |
I decided to use lists for this instead of a queue, because I'm really unfamiliar
with the stdlib for queues in Python, so it is faster for me to think about lists.
Also, using a queue in Part 2 would have been a disaster.
| I decided to use lists for this instead of a queue, because I'm really unfamiliar
with the stdlib for queues in Python, so it is faster for me to think about lists.
Also, using a queue in Part 2 would have been a disaster. | [
"I",
"decided",
"to",
"use",
"lists",
"for",
"this",
"instead",
"of",
"a",
"queue",
"because",
"I",
"'",
"m",
"really",
"unfamiliar",
"with",
"the",
"stdlib",
"for",
"queues",
"in",
"Python",
"so",
"it",
"is",
"faster",
"for",
"me",
"to",
"think",
"abo... | def part1() -> int:
dp1 = deepcopy(DECKP1)
dp2 = deepcopy(DECKP2)
tot = len(dp1) + len(dp2)
while len(dp1) < tot and len(dp2) < tot:
c1, *dp1r = dp1
c2, *dp2r = dp2
if c1 < c2:
dp1 = dp1r
dp2 = dp2r + [c2, c1]
elif c2 < c1:
dp1 = dp1r +... | [
"def",
"part1",
"(",
")",
"->",
"int",
":",
"dp1",
"=",
"deepcopy",
"(",
"DECKP1",
")",
"dp2",
"=",
"deepcopy",
"(",
"DECKP2",
")",
"tot",
"=",
"len",
"(",
"dp1",
")",
"+",
"len",
"(",
"dp2",
")",
"while",
"len",
"(",
"dp1",
")",
"<",
"tot",
... | I decided to use lists for this instead of a queue, because I'm really unfamiliar
with the stdlib for queues in Python, so it is faster for me to think about lists. | [
"I",
"decided",
"to",
"use",
"lists",
"for",
"this",
"instead",
"of",
"a",
"queue",
"because",
"I",
"'",
"m",
"really",
"unfamiliar",
"with",
"the",
"stdlib",
"for",
"queues",
"in",
"Python",
"so",
"it",
"is",
"faster",
"for",
"me",
"to",
"think",
"abo... | [
"\"\"\"\n I decided to use lists for this instead of a queue, because I'm really unfamiliar\n with the stdlib for queues in Python, so it is faster for me to think about lists.\n Also, using a queue in Part 2 would have been a disaster.\n \"\"\"",
"# Loop until one player has all the cards.",
"# Pul... | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
b0e90d2a81a450bec59d528bb4fba249ca16fd27 | qube-rt/quail | modules/backend/lambda-src/utils.py | [
"Apache-2.0"
] | Python | exception_handler | <not_specific> | def exception_handler(handler):
"""
Wrapper for handling exceptions raised by the applications and converting them to error messages.
"""
@functools.wraps(handler)
def inner(*args, **kwargs):
try:
return handler(*args, **kwargs)
except APIException as e:
retu... |
Wrapper for handling exceptions raised by the applications and converting them to error messages.
| Wrapper for handling exceptions raised by the applications and converting them to error messages. | [
"Wrapper",
"for",
"handling",
"exceptions",
"raised",
"by",
"the",
"applications",
"and",
"converting",
"them",
"to",
"error",
"messages",
"."
] | def exception_handler(handler):
@functools.wraps(handler)
def inner(*args, **kwargs):
try:
return handler(*args, **kwargs)
except APIException as e:
return {
"statusCode": e.status_code,
"body": json.dumps({"message": e.message}),
... | [
"def",
"exception_handler",
"(",
"handler",
")",
":",
"@",
"functools",
".",
"wraps",
"(",
"handler",
")",
"def",
"inner",
"(",
"*",
"args",
",",
"**",
"kwargs",
")",
":",
"try",
":",
"return",
"handler",
"(",
"*",
"args",
",",
"**",
"kwargs",
")",
... | Wrapper for handling exceptions raised by the applications and converting them to error messages. | [
"Wrapper",
"for",
"handling",
"exceptions",
"raised",
"by",
"the",
"applications",
"and",
"converting",
"them",
"to",
"error",
"messages",
"."
] | [
"\"\"\"\n Wrapper for handling exceptions raised by the applications and converting them to error messages.\n \"\"\""
] | [
{
"param": "handler",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "handler",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
b0e90d2a81a450bec59d528bb4fba249ca16fd27 | qube-rt/quail | modules/backend/lambda-src/utils.py | [
"Apache-2.0"
] | Python | audit_logging_handler | <not_specific> | def audit_logging_handler(handler):
"""
Wrapper for logging calls parameters and results.
"""
@functools.wraps(handler)
def inner(*args, **kwargs):
# Ignoring the Lambda context for logging purposes
try:
result = handler(*args, **kwargs)
logger.info({"event":... |
Wrapper for logging calls parameters and results.
| Wrapper for logging calls parameters and results. | [
"Wrapper",
"for",
"logging",
"calls",
"parameters",
"and",
"results",
"."
] | def audit_logging_handler(handler):
@functools.wraps(handler)
def inner(*args, **kwargs):
try:
result = handler(*args, **kwargs)
logger.info({"event": args[0], "response": result, "type": "SUCCESS", "audit": 1})
return result
except Exception as e:
... | [
"def",
"audit_logging_handler",
"(",
"handler",
")",
":",
"@",
"functools",
".",
"wraps",
"(",
"handler",
")",
"def",
"inner",
"(",
"*",
"args",
",",
"**",
"kwargs",
")",
":",
"try",
":",
"result",
"=",
"handler",
"(",
"*",
"args",
",",
"**",
"kwargs... | Wrapper for logging calls parameters and results. | [
"Wrapper",
"for",
"logging",
"calls",
"parameters",
"and",
"results",
"."
] | [
"\"\"\"\n Wrapper for logging calls parameters and results.\n \"\"\"",
"# Ignoring the Lambda context for logging purposes"
] | [
{
"param": "handler",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "handler",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
b0e90d2a81a450bec59d528bb4fba249ca16fd27 | qube-rt/quail | modules/backend/lambda-src/utils.py | [
"Apache-2.0"
] | Python | annotate_with_instance_state | <not_specific> | def annotate_with_instance_state(instances):
"""Get the status of each instance"""
# Get the region of each instance
region_to_instances = defaultdict(list)
for item in instances:
if "instance_id" in item:
region_to_instances[item["region"]].append(item["instance_id"])
# Describ... | Get the status of each instance | Get the status of each instance | [
"Get",
"the",
"status",
"of",
"each",
"instance"
] | def annotate_with_instance_state(instances):
region_to_instances = defaultdict(list)
for item in instances:
if "instance_id" in item:
region_to_instances[item["region"]].append(item["instance_id"])
state_dict = {}
for region, instance_ids in region_to_instances.items():
ec2_c... | [
"def",
"annotate_with_instance_state",
"(",
"instances",
")",
":",
"region_to_instances",
"=",
"defaultdict",
"(",
"list",
")",
"for",
"item",
"in",
"instances",
":",
"if",
"\"instance_id\"",
"in",
"item",
":",
"region_to_instances",
"[",
"item",
"[",
"\"region\""... | Get the status of each instance | [
"Get",
"the",
"status",
"of",
"each",
"instance"
] | [
"\"\"\"Get the status of each instance\"\"\"",
"# Get the region of each instance",
"# Describe instances per region to get their current state",
"# Annotate the instances with their state"
] | [
{
"param": "instances",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "instances",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7b640e83f67d75cf5c65f4b067d1b0e823bc47d5 | RushitSaliya/Barcode-and-QRcode-generator | main.py | [
"MIT"
] | Python | generate_barcode | null | def generate_barcode(self):
"""This method generates barcode on the bases of string that user has entered"""
image = barcode.get_barcode_class('ean13') # selecting appropriate format for generating barcode
image_bar = image(u'{}'.format(self.lineEdit.text())) # for formatting enter... | This method generates barcode on the bases of string that user has entered | This method generates barcode on the bases of string that user has entered | [
"This",
"method",
"generates",
"barcode",
"on",
"the",
"bases",
"of",
"string",
"that",
"user",
"has",
"entered"
] | def generate_barcode(self):
image = barcode.get_barcode_class('ean13')
image_bar = image(u'{}'.format(self.lineEdit.text()))
file = open('barcode.svg', 'wb')
image_bar.write(file) | [
"def",
"generate_barcode",
"(",
"self",
")",
":",
"image",
"=",
"barcode",
".",
"get_barcode_class",
"(",
"'ean13'",
")",
"image_bar",
"=",
"image",
"(",
"u'{}'",
".",
"format",
"(",
"self",
".",
"lineEdit",
".",
"text",
"(",
")",
")",
")",
"file",
"="... | This method generates barcode on the bases of string that user has entered | [
"This",
"method",
"generates",
"barcode",
"on",
"the",
"bases",
"of",
"string",
"that",
"user",
"has",
"entered"
] | [
"\"\"\"This method generates barcode on the bases of string that user has entered\"\"\"",
"# selecting appropriate format for generating barcode\r",
"# for formatting entered string to pass it into method\r",
"# to save generated barcode\r"
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7b640e83f67d75cf5c65f4b067d1b0e823bc47d5 | RushitSaliya/Barcode-and-QRcode-generator | main.py | [
"MIT"
] | Python | generate_qrcode | null | def generate_qrcode(self):
"""This method generates qrcode on the bases of string that user has entered"""
qr = pyqrcode.create(self.lineEdit.text()) # to pass entered string by user which is located in lineEdit
qr.png("qr_code.png", scale=3) | This method generates qrcode on the bases of string that user has entered | This method generates qrcode on the bases of string that user has entered | [
"This",
"method",
"generates",
"qrcode",
"on",
"the",
"bases",
"of",
"string",
"that",
"user",
"has",
"entered"
] | def generate_qrcode(self):
qr = pyqrcode.create(self.lineEdit.text())
qr.png("qr_code.png", scale=3) | [
"def",
"generate_qrcode",
"(",
"self",
")",
":",
"qr",
"=",
"pyqrcode",
".",
"create",
"(",
"self",
".",
"lineEdit",
".",
"text",
"(",
")",
")",
"qr",
".",
"png",
"(",
"\"qr_code.png\"",
",",
"scale",
"=",
"3",
")"
] | This method generates qrcode on the bases of string that user has entered | [
"This",
"method",
"generates",
"qrcode",
"on",
"the",
"bases",
"of",
"string",
"that",
"user",
"has",
"entered"
] | [
"\"\"\"This method generates qrcode on the bases of string that user has entered\"\"\"",
"# to pass entered string by user which is located in lineEdit\r"
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d9110b8d5a0332a52bb7bde87f7584bea99aed9a | manishanker/octopuslabs-test | webapp/scrape.py | [
"MIT"
] | Python | fetch_url | <not_specific> | def fetch_url(url):
""" Tries to fetch the url that user has given.
IF the url cannot be downloaded, alert will be shown
"""
try:
soup = bs(urlopen(url).read(), 'html.parser')
return soup
except:
print "Couldnot download the content from the URL", url
return "" | Tries to fetch the url that user has given.
IF the url cannot be downloaded, alert will be shown
| Tries to fetch the url that user has given.
IF the url cannot be downloaded, alert will be shown | [
"Tries",
"to",
"fetch",
"the",
"url",
"that",
"user",
"has",
"given",
".",
"IF",
"the",
"url",
"cannot",
"be",
"downloaded",
"alert",
"will",
"be",
"shown"
] | def fetch_url(url):
try:
soup = bs(urlopen(url).read(), 'html.parser')
return soup
except:
print "Couldnot download the content from the URL", url
return "" | [
"def",
"fetch_url",
"(",
"url",
")",
":",
"try",
":",
"soup",
"=",
"bs",
"(",
"urlopen",
"(",
"url",
")",
".",
"read",
"(",
")",
",",
"'html.parser'",
")",
"return",
"soup",
"except",
":",
"print",
"\"Couldnot download the content from the URL\"",
",",
"ur... | Tries to fetch the url that user has given. | [
"Tries",
"to",
"fetch",
"the",
"url",
"that",
"user",
"has",
"given",
"."
] | [
"\"\"\" Tries to fetch the url that user has given. \n IF the url cannot be downloaded, alert will be shown\n \"\"\""
] | [
{
"param": "url",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "url",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d9110b8d5a0332a52bb7bde87f7584bea99aed9a | manishanker/octopuslabs-test | webapp/scrape.py | [
"MIT"
] | Python | text_from_html | <not_specific> | def text_from_html(soup):
"""Function to extract the text from the html"""
texts = soup.findAll(text=True)
visible_texts = filter(tag_visible, texts)
return u" ".join(t.strip() for t in visible_texts) | Function to extract the text from the html | Function to extract the text from the html | [
"Function",
"to",
"extract",
"the",
"text",
"from",
"the",
"html"
] | def text_from_html(soup):
texts = soup.findAll(text=True)
visible_texts = filter(tag_visible, texts)
return u" ".join(t.strip() for t in visible_texts) | [
"def",
"text_from_html",
"(",
"soup",
")",
":",
"texts",
"=",
"soup",
".",
"findAll",
"(",
"text",
"=",
"True",
")",
"visible_texts",
"=",
"filter",
"(",
"tag_visible",
",",
"texts",
")",
"return",
"u\" \"",
".",
"join",
"(",
"t",
".",
"strip",
"(",
... | Function to extract the text from the html | [
"Function",
"to",
"extract",
"the",
"text",
"from",
"the",
"html"
] | [
"\"\"\"Function to extract the text from the html\"\"\""
] | [
{
"param": "soup",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "soup",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d9110b8d5a0332a52bb7bde87f7584bea99aed9a | manishanker/octopuslabs-test | webapp/scrape.py | [
"MIT"
] | Python | pos_text | <not_specific> | def pos_text(text):
""" This function uses Spacy, open source NLP
toolkit to find the most frequent words
and parts of speech and return only nouns and
verbs for word cloud
"""
nlp = spacy.load('en')
doc = nlp(text)
# all tokens that arent stop words or punctuations
word... | This function uses Spacy, open source NLP
toolkit to find the most frequent words
and parts of speech and return only nouns and
verbs for word cloud
| This function uses Spacy, open source NLP
toolkit to find the most frequent words
and parts of speech and return only nouns and
verbs for word cloud | [
"This",
"function",
"uses",
"Spacy",
"open",
"source",
"NLP",
"toolkit",
"to",
"find",
"the",
"most",
"frequent",
"words",
"and",
"parts",
"of",
"speech",
"and",
"return",
"only",
"nouns",
"and",
"verbs",
"for",
"word",
"cloud"
] | def pos_text(text):
nlp = spacy.load('en')
doc = nlp(text)
words = [token.text.encode('ascii', 'ignore') for token in doc if token.is_stop != True and token.is_punct != True]
final_tokens = [token.text.encode('ascii', 'ignore') for token in doc if token.is_stop != True and \
token.is... | [
"def",
"pos_text",
"(",
"text",
")",
":",
"nlp",
"=",
"spacy",
".",
"load",
"(",
"'en'",
")",
"doc",
"=",
"nlp",
"(",
"text",
")",
"words",
"=",
"[",
"token",
".",
"text",
".",
"encode",
"(",
"'ascii'",
",",
"'ignore'",
")",
"for",
"token",
"in",... | This function uses Spacy, open source NLP
toolkit to find the most frequent words
and parts of speech and return only nouns and
verbs for word cloud | [
"This",
"function",
"uses",
"Spacy",
"open",
"source",
"NLP",
"toolkit",
"to",
"find",
"the",
"most",
"frequent",
"words",
"and",
"parts",
"of",
"speech",
"and",
"return",
"only",
"nouns",
"and",
"verbs",
"for",
"word",
"cloud"
] | [
"\"\"\" This function uses Spacy, open source NLP\n toolkit to find the most frequent words\n and parts of speech and return only nouns and \n verbs for word cloud\n \"\"\"",
"# all tokens that arent stop words or punctuations",
"# noun tokens that arent stop words or punctuations",
"#... | [
{
"param": "text",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "text",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
d9110b8d5a0332a52bb7bde87f7584bea99aed9a | manishanker/octopuslabs-test | webapp/scrape.py | [
"MIT"
] | Python | parse | <not_specific> | def parse(url):
""" Parses the data fetched from fetch_url
If its not empty, frequency, POS, sentiment of the text are
returned back to front-end.
"""
soup = fetch_url(url)
result = {}
if soup:
text = text_from_html(soup)
text = re.sub(' +', ' ', text)
result_... | Parses the data fetched from fetch_url
If its not empty, frequency, POS, sentiment of the text are
returned back to front-end.
| Parses the data fetched from fetch_url
If its not empty, frequency, POS, sentiment of the text are
returned back to front-end. | [
"Parses",
"the",
"data",
"fetched",
"from",
"fetch_url",
"If",
"its",
"not",
"empty",
"frequency",
"POS",
"sentiment",
"of",
"the",
"text",
"are",
"returned",
"back",
"to",
"front",
"-",
"end",
"."
] | def parse(url):
soup = fetch_url(url)
result = {}
if soup:
text = text_from_html(soup)
text = re.sub(' +', ' ', text)
result_list = pos_text(text)
word_tuple = []
for x in result_list:
res = hash_word(x)
word_tuple.append(res)
print "word_tuple", word_tuple
url_hashed =... | [
"def",
"parse",
"(",
"url",
")",
":",
"soup",
"=",
"fetch_url",
"(",
"url",
")",
"result",
"=",
"{",
"}",
"if",
"soup",
":",
"text",
"=",
"text_from_html",
"(",
"soup",
")",
"text",
"=",
"re",
".",
"sub",
"(",
"' +'",
",",
"' '",
",",
"text",
"... | Parses the data fetched from fetch_url
If its not empty, frequency, POS, sentiment of the text are
returned back to front-end. | [
"Parses",
"the",
"data",
"fetched",
"from",
"fetch_url",
"If",
"its",
"not",
"empty",
"frequency",
"POS",
"sentiment",
"of",
"the",
"text",
"are",
"returned",
"back",
"to",
"front",
"-",
"end",
"."
] | [
"\"\"\" Parses the data fetched from fetch_url\n If its not empty, frequency, POS, sentiment of the text are\n returned back to front-end.\n \"\"\"",
"#print \"result_list\", result_list"
] | [
{
"param": "url",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "url",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
54f2aa444ba6e5d9f58d508736aebfde933357c3 | alexdelorenzo/anyio | src/anyio/_core/_signals.py | [
"MIT"
] | Python | open_signal_receiver | AsyncContextManager[AsyncIterator[int]] | def open_signal_receiver(*signals: int) -> AsyncContextManager[AsyncIterator[int]]:
"""
Start receiving operating system signals.
:param signals: signals to receive (e.g. ``signal.SIGINT``)
:return: an asynchronous context manager for an asynchronous iterator which yields signal
numbers
..... |
Start receiving operating system signals.
:param signals: signals to receive (e.g. ``signal.SIGINT``)
:return: an asynchronous context manager for an asynchronous iterator which yields signal
numbers
.. warning:: Windows does not support signals natively so it is best to avoid relying on this... | Start receiving operating system signals. | [
"Start",
"receiving",
"operating",
"system",
"signals",
"."
] | def open_signal_receiver(*signals: int) -> AsyncContextManager[AsyncIterator[int]]:
return get_asynclib().open_signal_receiver(*signals) | [
"def",
"open_signal_receiver",
"(",
"*",
"signals",
":",
"int",
")",
"->",
"AsyncContextManager",
"[",
"AsyncIterator",
"[",
"int",
"]",
"]",
":",
"return",
"get_asynclib",
"(",
")",
".",
"open_signal_receiver",
"(",
"*",
"signals",
")"
] | Start receiving operating system signals. | [
"Start",
"receiving",
"operating",
"system",
"signals",
"."
] | [
"\"\"\"\n Start receiving operating system signals.\n\n :param signals: signals to receive (e.g. ``signal.SIGINT``)\n :return: an asynchronous context manager for an asynchronous iterator which yields signal\n numbers\n\n .. warning:: Windows does not support signals natively so it is best to avo... | [
{
"param": "signals",
"type": "int"
}
] | {
"returns": [
{
"docstring": "an asynchronous context manager for an asynchronous iterator which yields signal\nnumbers\n\n: Windows does not support signals natively so it is best to avoid relying on this\nin cross-platform applications.",
"docstring_tokens": [
"an",
"asynchronous",
... |
b9414f7bd38956744db5123a4bcf4ca0e0376f43 | alexdelorenzo/anyio | src/anyio/_core/_resources.py | [
"MIT"
] | Python | aclose_forcefully | None | async def aclose_forcefully(resource: AsyncResource) -> None:
"""
Close an asynchronous resource in a cancelled scope.
Doing this closes the resource without waiting on anything.
:param resource: the resource to close
"""
with CancelScope() as scope:
scope.cancel()
await resou... |
Close an asynchronous resource in a cancelled scope.
Doing this closes the resource without waiting on anything.
:param resource: the resource to close
| Close an asynchronous resource in a cancelled scope.
Doing this closes the resource without waiting on anything. | [
"Close",
"an",
"asynchronous",
"resource",
"in",
"a",
"cancelled",
"scope",
".",
"Doing",
"this",
"closes",
"the",
"resource",
"without",
"waiting",
"on",
"anything",
"."
] | async def aclose_forcefully(resource: AsyncResource) -> None:
with CancelScope() as scope:
scope.cancel()
await resource.aclose() | [
"async",
"def",
"aclose_forcefully",
"(",
"resource",
":",
"AsyncResource",
")",
"->",
"None",
":",
"with",
"CancelScope",
"(",
")",
"as",
"scope",
":",
"scope",
".",
"cancel",
"(",
")",
"await",
"resource",
".",
"aclose",
"(",
")"
] | Close an asynchronous resource in a cancelled scope. | [
"Close",
"an",
"asynchronous",
"resource",
"in",
"a",
"cancelled",
"scope",
"."
] | [
"\"\"\"\n Close an asynchronous resource in a cancelled scope.\n\n Doing this closes the resource without waiting on anything.\n\n :param resource: the resource to close\n\n \"\"\""
] | [
{
"param": "resource",
"type": "AsyncResource"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "resource",
"type": "AsyncResource",
"docstring": "the resource to close",
"docstring_tokens": [
"the",
"resource",
"to",
"close"
],
"default": null,
"is_optional": null
}
... |
d2f958314eea98d8218479d5e0975cf1ffb1a7b5 | alexdelorenzo/anyio | src/anyio/abc/_subprocesses.py | [
"MIT"
] | Python | wait | int | async def wait(self) -> int:
"""
Wait until the process exits.
:return: the exit code of the process
""" |
Wait until the process exits.
:return: the exit code of the process
| Wait until the process exits. | [
"Wait",
"until",
"the",
"process",
"exits",
"."
] | async def wait(self) -> int: | [
"async",
"def",
"wait",
"(",
"self",
")",
"->",
"int",
":"
] | Wait until the process exits. | [
"Wait",
"until",
"the",
"process",
"exits",
"."
] | [
"\"\"\"\n Wait until the process exits.\n\n :return: the exit code of the process\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [
{
"docstring": "the exit code of the process",
"docstring_tokens": [
"the",
"exit",
"code",
"of",
"the",
"process"
],
"type": null
}
],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
... |
d2f958314eea98d8218479d5e0975cf1ffb1a7b5 | alexdelorenzo/anyio | src/anyio/abc/_subprocesses.py | [
"MIT"
] | Python | send_signal | None | def send_signal(self, signal: int) -> None:
"""
Send a signal to the subprocess.
.. seealso:: :meth:`subprocess.Popen.send_signal`
:param signal: the signal number (e.g. :data:`signal.SIGHUP`)
""" |
Send a signal to the subprocess.
.. seealso:: :meth:`subprocess.Popen.send_signal`
:param signal: the signal number (e.g. :data:`signal.SIGHUP`)
| Send a signal to the subprocess. | [
"Send",
"a",
"signal",
"to",
"the",
"subprocess",
"."
] | def send_signal(self, signal: int) -> None: | [
"def",
"send_signal",
"(",
"self",
",",
"signal",
":",
"int",
")",
"->",
"None",
":"
] | Send a signal to the subprocess. | [
"Send",
"a",
"signal",
"to",
"the",
"subprocess",
"."
] | [
"\"\"\"\n Send a signal to the subprocess.\n\n .. seealso:: :meth:`subprocess.Popen.send_signal`\n\n :param signal: the signal number (e.g. :data:`signal.SIGHUP`)\n \"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "signal",
"type": "int"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "signal",
"type": "int",
"docstring": "the signal number",
"do... |
647821d1f90e3b87afca688723b5d22c88caf22d | jijarf/ahihi | plugin.video.kminus/urlfetch.py | [
"Apache-2.0"
] | Python | read | <not_specific> | def read(self, chunk_size=8192):
''' read content (for streaming and large files)
chunk_size: size of chunk, default: 8192
'''
chunk = self._r.read(chunk_size)
return chunk | read content (for streaming and large files)
chunk_size: size of chunk, default: 8192
| read content (for streaming and large files)
chunk_size: size of chunk, default: 8192 | [
"read",
"content",
"(",
"for",
"streaming",
"and",
"large",
"files",
")",
"chunk_size",
":",
"size",
"of",
"chunk",
"default",
":",
"8192"
] | def read(self, chunk_size=8192):
chunk = self._r.read(chunk_size)
return chunk | [
"def",
"read",
"(",
"self",
",",
"chunk_size",
"=",
"8192",
")",
":",
"chunk",
"=",
"self",
".",
"_r",
".",
"read",
"(",
"chunk_size",
")",
"return",
"chunk"
] | read content (for streaming and large files)
chunk_size: size of chunk, default: 8192 | [
"read",
"content",
"(",
"for",
"streaming",
"and",
"large",
"files",
")",
"chunk_size",
":",
"size",
"of",
"chunk",
"default",
":",
"8192"
] | [
"''' read content (for streaming and large files)\n \n chunk_size: size of chunk, default: 8192 \n '''"
] | [
{
"param": "self",
"type": null
},
{
"param": "chunk_size",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "chunk_size",
"type": null,
"docstring": null,
"docstring_toke... |
647821d1f90e3b87afca688723b5d22c88caf22d | jijarf/ahihi | plugin.video.kminus/urlfetch.py | [
"Apache-2.0"
] | Python | random_useragent | <not_specific> | def random_useragent(filename=None, *filenames):
'''Returns a User-Agent string randomly from file.
>>> ua = random_useragent('file1')
>>> ua = random_useragent('file1', 'file2')
>>> ua = random_useragent(['file1', 'file2'])
>>> ua = random_useragent(['file1', 'file2'], 'file3')
:param fi... | Returns a User-Agent string randomly from file.
>>> ua = random_useragent('file1')
>>> ua = random_useragent('file1', 'file2')
>>> ua = random_useragent(['file1', 'file2'])
>>> ua = random_useragent(['file1', 'file2'], 'file3')
:param filename: path to the file from which a random useragent
... | Returns a User-Agent string randomly from file. | [
"Returns",
"a",
"User",
"-",
"Agent",
"string",
"randomly",
"from",
"file",
"."
] | def random_useragent(filename=None, *filenames):
import random
from time import time
filenames = list(filenames)
if filename is None:
filenames.extend([
os.path.join(os.path.abspath(os.path.dirname(__file__)),
'urlfetch.useragents.list'),
os.path.... | [
"def",
"random_useragent",
"(",
"filename",
"=",
"None",
",",
"*",
"filenames",
")",
":",
"import",
"random",
"from",
"time",
"import",
"time",
"filenames",
"=",
"list",
"(",
"filenames",
")",
"if",
"filename",
"is",
"None",
":",
"filenames",
".",
"extend"... | Returns a User-Agent string randomly from file. | [
"Returns",
"a",
"User",
"-",
"Agent",
"string",
"randomly",
"from",
"file",
"."
] | [
"'''Returns a User-Agent string randomly from file.\n \n >>> ua = random_useragent('file1')\n >>> ua = random_useragent('file1', 'file2')\n >>> ua = random_useragent(['file1', 'file2'])\n >>> ua = random_useragent(['file1', 'file2'], 'file3')\n\n\n :param filename: path to the file from which a ra... | [
{
"param": "filename",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "filename",
"type": null,
"docstring": "path to the file from which a random useragent\nis generated",
"docstring_tokens": [
"path",
"to",
"the",
"file",
"from",
"which",
... |
9843774d95ff5567913dec43c41be330e9884cbb | adriangb/migri | migri/main.py | [
"MIT"
] | Python | run_initialization | null | async def run_initialization(*args, **kwargs):
"""No longer supported but left here for compatibility"""
message = (
"Command `init` and run_initialization() are no longer supported and are now "
"handled automatically by `migrate` and run_migrations(). See README."
)
deprecated(message,... | No longer supported but left here for compatibility | No longer supported but left here for compatibility | [
"No",
"longer",
"supported",
"but",
"left",
"here",
"for",
"compatibility"
] | async def run_initialization(*args, **kwargs):
message = (
"Command `init` and run_initialization() are no longer supported and are now "
"handled automatically by `migrate` and run_migrations(). See README."
)
deprecated(message, LEGACY_FUNCTIONALITY_END_OF_LIFE)
Echo.info(message) | [
"async",
"def",
"run_initialization",
"(",
"*",
"args",
",",
"**",
"kwargs",
")",
":",
"message",
"=",
"(",
"\"Command `init` and run_initialization() are no longer supported and are now \"",
"\"handled automatically by `migrate` and run_migrations(). See README.\"",
")",
"deprecat... | No longer supported but left here for compatibility | [
"No",
"longer",
"supported",
"but",
"left",
"here",
"for",
"compatibility"
] | [
"\"\"\"No longer supported but left here for compatibility\"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
761a5ee358a3de7cca3dc0aedd50437bd379b070 | adriangb/migri | migri/migration.py | [
"MIT"
] | Python | _apply_migrations | AsyncGenerator[MigrationResult, None] | async def _apply_migrations(
self, migrations: List[Migration], dry_run: bool
) -> AsyncGenerator[MigrationResult, None]:
"""Apply migrations and yield names of migrations that were applied"""
# If a migration fails, fail subsequent ones automatically w/out applying them
migration_f... | Apply migrations and yield names of migrations that were applied | Apply migrations and yield names of migrations that were applied | [
"Apply",
"migrations",
"and",
"yield",
"names",
"of",
"migrations",
"that",
"were",
"applied"
] | async def _apply_migrations(
self, migrations: List[Migration], dry_run: bool
) -> AsyncGenerator[MigrationResult, None]:
migration_failed = False
async with self._optional_transaction(dry_run):
for migration in migrations:
if migration_failed:
... | [
"async",
"def",
"_apply_migrations",
"(",
"self",
",",
"migrations",
":",
"List",
"[",
"Migration",
"]",
",",
"dry_run",
":",
"bool",
")",
"->",
"AsyncGenerator",
"[",
"MigrationResult",
",",
"None",
"]",
":",
"migration_failed",
"=",
"False",
"async",
"with... | Apply migrations and yield names of migrations that were applied | [
"Apply",
"migrations",
"and",
"yield",
"names",
"of",
"migrations",
"that",
"were",
"applied"
] | [
"\"\"\"Apply migrations and yield names of migrations that were applied\"\"\"",
"# If a migration fails, fail subsequent ones automatically w/out applying them"
] | [
{
"param": "self",
"type": null
},
{
"param": "migrations",
"type": "List[Migration]"
},
{
"param": "dry_run",
"type": "bool"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "migrations",
"type": "List[Migration]",
"docstring": null,
"d... |
761a5ee358a3de7cca3dc0aedd50437bd379b070 | adriangb/migri | migri/migration.py | [
"MIT"
] | Python | _migrations_to_apply | List[Migration] | async def _migrations_to_apply(
self, migrations: List[Migration]
) -> List[Migration]:
"""Takes migration paths and uses migration file names to search for entries in
'applied_migration' table
"""
to_apply = []
for migration in migrations:
query = Query(... | Takes migration paths and uses migration file names to search for entries in
'applied_migration' table
| Takes migration paths and uses migration file names to search for entries in
'applied_migration' table | [
"Takes",
"migration",
"paths",
"and",
"uses",
"migration",
"file",
"names",
"to",
"search",
"for",
"entries",
"in",
"'",
"applied_migration",
"'",
"table"
] | async def _migrations_to_apply(
self, migrations: List[Migration]
) -> List[Migration]:
to_apply = []
for migration in migrations:
query = Query(
f"SELECT id FROM {MIGRATION_TABLE_NAME} WHERE name = $migration_name",
values={"migration_name": migra... | [
"async",
"def",
"_migrations_to_apply",
"(",
"self",
",",
"migrations",
":",
"List",
"[",
"Migration",
"]",
")",
"->",
"List",
"[",
"Migration",
"]",
":",
"to_apply",
"=",
"[",
"]",
"for",
"migration",
"in",
"migrations",
":",
"query",
"=",
"Query",
"(",... | Takes migration paths and uses migration file names to search for entries in
'applied_migration' table | [
"Takes",
"migration",
"paths",
"and",
"uses",
"migration",
"file",
"names",
"to",
"search",
"for",
"entries",
"in",
"'",
"applied_migration",
"'",
"table"
] | [
"\"\"\"Takes migration paths and uses migration file names to search for entries in\n 'applied_migration' table\n \"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "migrations",
"type": "List[Migration]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "migrations",
"type": "List[Migration]",
"docstring": null,
"d... |
451b678349c68840695284251aff775981492528 | adriangb/migri | migri/utils.py | [
"MIT"
] | Python | deprecated | null | def deprecated(message: str, end_of_life: Optional[str] = None):
"""Use to warn of deprecation. If end_of_life is provided,
will append message with version in which functionality will be deprecated.
:param message: Deprecation message
:type message: str
:param end_of_life: Version in which functio... | Use to warn of deprecation. If end_of_life is provided,
will append message with version in which functionality will be deprecated.
:param message: Deprecation message
:type message: str
:param end_of_life: Version in which functionality will be deprecated
:type end_of_life: str, optional
| Use to warn of deprecation. If end_of_life is provided,
will append message with version in which functionality will be deprecated. | [
"Use",
"to",
"warn",
"of",
"deprecation",
".",
"If",
"end_of_life",
"is",
"provided",
"will",
"append",
"message",
"with",
"version",
"in",
"which",
"functionality",
"will",
"be",
"deprecated",
"."
] | def deprecated(message: str, end_of_life: Optional[str] = None):
if end_of_life:
message = f"{message} Will be removed in {end_of_life}."
warning = DeprecationWarning
else:
warning = DeprecationWarning
warnings.warn(message, warning, stacklevel=2) | [
"def",
"deprecated",
"(",
"message",
":",
"str",
",",
"end_of_life",
":",
"Optional",
"[",
"str",
"]",
"=",
"None",
")",
":",
"if",
"end_of_life",
":",
"message",
"=",
"f\"{message} Will be removed in {end_of_life}.\"",
"warning",
"=",
"DeprecationWarning",
"else"... | Use to warn of deprecation. | [
"Use",
"to",
"warn",
"of",
"deprecation",
"."
] | [
"\"\"\"Use to warn of deprecation. If end_of_life is provided,\n will append message with version in which functionality will be deprecated.\n\n :param message: Deprecation message\n :type message: str\n :param end_of_life: Version in which functionality will be deprecated\n :type end_of_life: str, o... | [
{
"param": "message",
"type": "str"
},
{
"param": "end_of_life",
"type": "Optional[str]"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "message",
"type": "str",
"docstring": null,
"docstring_tokens": [
"None"
],
"default": null,
"is_optional": null
},
{
"identifier": "end_of_life",
"type": "Optional[str]",
"d... |
53aa9449023a5d7077360a499a42ae676b9cab0c | kylesezhi/alfred-jisho | src/jisho.py | [
"MIT"
] | Python | wrapper | <not_specific> | def wrapper():
"""`cached_data` can only take a bare callable
(no args),
so we need to wrap callables needing arguments
with a function that needs no arguments.
"""
return get_words(query) | `cached_data` can only take a bare callable
(no args),
so we need to wrap callables needing arguments
with a function that needs no arguments.
| `cached_data` can only take a bare callable
(no args),
so we need to wrap callables needing arguments
with a function that needs no arguments. | [
"`",
"cached_data",
"`",
"can",
"only",
"take",
"a",
"bare",
"callable",
"(",
"no",
"args",
")",
"so",
"we",
"need",
"to",
"wrap",
"callables",
"needing",
"arguments",
"with",
"a",
"function",
"that",
"needs",
"no",
"arguments",
"."
] | def wrapper():
return get_words(query) | [
"def",
"wrapper",
"(",
")",
":",
"return",
"get_words",
"(",
"query",
")"
] | `cached_data` can only take a bare callable
(no args),
so we need to wrap callables needing arguments
with a function that needs no arguments. | [
"`",
"cached_data",
"`",
"can",
"only",
"take",
"a",
"bare",
"callable",
"(",
"no",
"args",
")",
"so",
"we",
"need",
"to",
"wrap",
"callables",
"needing",
"arguments",
"with",
"a",
"function",
"that",
"needs",
"no",
"arguments",
"."
] | [
"\"\"\"`cached_data` can only take a bare callable\n (no args),\n so we need to wrap callables needing arguments\n with a function that needs no arguments.\n \"\"\""
] | [] | {
"returns": [],
"raises": [],
"params": [],
"outlier_params": [],
"others": []
} |
de270a12d62c30e7692df82b02056eef912a3326 | mmatl/influxdb-client-python | influxdb_client/client/queryable_api.py | [
"MIT"
] | Python | _to_tables | List[FluxTable] | def _to_tables(self, response: HTTPResponse, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full) -> List[FluxTable]:
"""Parse HTTP response to FluxTables."""
_parser = FluxCsvParser(response=response, serialization_mode=FluxSerializati... | Parse HTTP response to FluxTables. | Parse HTTP response to FluxTables. | [
"Parse",
"HTTP",
"response",
"to",
"FluxTables",
"."
] | def _to_tables(self, response: HTTPResponse, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full) -> List[FluxTable]:
_parser = FluxCsvParser(response=response, serialization_mode=FluxSerializationMode.tables,
qu... | [
"def",
"_to_tables",
"(",
"self",
",",
"response",
":",
"HTTPResponse",
",",
"query_options",
"=",
"None",
",",
"response_metadata_mode",
":",
"FluxResponseMetadataMode",
"=",
"FluxResponseMetadataMode",
".",
"full",
")",
"->",
"List",
"[",
"FluxTable",
"]",
":",
... | Parse HTTP response to FluxTables. | [
"Parse",
"HTTP",
"response",
"to",
"FluxTables",
"."
] | [
"\"\"\"Parse HTTP response to FluxTables.\"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "response",
"type": "HTTPResponse"
},
{
"param": "query_options",
"type": null
},
{
"param": "response_metadata_mode",
"type": "FluxResponseMetadataMode"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "response",
"type": "HTTPResponse",
"docstring": null,
"docstr... |
de270a12d62c30e7692df82b02056eef912a3326 | mmatl/influxdb-client-python | influxdb_client/client/queryable_api.py | [
"MIT"
] | Python | _to_flux_record_stream | Generator['FluxRecord', Any, None] | def _to_flux_record_stream(self, response, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full) -> \
Generator['FluxRecord', Any, None]:
"""Parse HTTP response to FluxRecord stream."""
_parser = FluxCsvParser(res... | Parse HTTP response to FluxRecord stream. | Parse HTTP response to FluxRecord stream. | [
"Parse",
"HTTP",
"response",
"to",
"FluxRecord",
"stream",
"."
] | def _to_flux_record_stream(self, response, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full) -> \
Generator['FluxRecord', Any, None]:
_parser = FluxCsvParser(response=response, serialization_mode=FluxSerializationMode... | [
"def",
"_to_flux_record_stream",
"(",
"self",
",",
"response",
",",
"query_options",
"=",
"None",
",",
"response_metadata_mode",
":",
"FluxResponseMetadataMode",
"=",
"FluxResponseMetadataMode",
".",
"full",
")",
"->",
"Generator",
"[",
"'FluxRecord'",
",",
"Any",
"... | Parse HTTP response to FluxRecord stream. | [
"Parse",
"HTTP",
"response",
"to",
"FluxRecord",
"stream",
"."
] | [
"\"\"\"Parse HTTP response to FluxRecord stream.\"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "response",
"type": null
},
{
"param": "query_options",
"type": null
},
{
"param": "response_metadata_mode",
"type": "FluxResponseMetadataMode"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "response",
"type": null,
"docstring": null,
"docstring_tokens... |
de270a12d62c30e7692df82b02056eef912a3326 | mmatl/influxdb-client-python | influxdb_client/client/queryable_api.py | [
"MIT"
] | Python | _to_data_frame_stream | <not_specific> | def _to_data_frame_stream(self, data_frame_index, response, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full):
"""Parse HTTP response to DataFrame stream."""
_parser = FluxCsvParser(response=response, serialization_mode=Fl... | Parse HTTP response to DataFrame stream. | Parse HTTP response to DataFrame stream. | [
"Parse",
"HTTP",
"response",
"to",
"DataFrame",
"stream",
"."
] | def _to_data_frame_stream(self, data_frame_index, response, query_options=None,
response_metadata_mode: FluxResponseMetadataMode = FluxResponseMetadataMode.full):
_parser = FluxCsvParser(response=response, serialization_mode=FluxSerializationMode.dataFrame,
... | [
"def",
"_to_data_frame_stream",
"(",
"self",
",",
"data_frame_index",
",",
"response",
",",
"query_options",
"=",
"None",
",",
"response_metadata_mode",
":",
"FluxResponseMetadataMode",
"=",
"FluxResponseMetadataMode",
".",
"full",
")",
":",
"_parser",
"=",
"FluxCsvPa... | Parse HTTP response to DataFrame stream. | [
"Parse",
"HTTP",
"response",
"to",
"DataFrame",
"stream",
"."
] | [
"\"\"\"Parse HTTP response to DataFrame stream.\"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "data_frame_index",
"type": null
},
{
"param": "response",
"type": null
},
{
"param": "query_options",
"type": null
},
{
"param": "response_metadata_mode",
"type": "FluxResponseMetadataMode"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "data_frame_index",
"type": null,
"docstring": null,
"docstrin... |
de270a12d62c30e7692df82b02056eef912a3326 | mmatl/influxdb-client-python | influxdb_client/client/queryable_api.py | [
"MIT"
] | Python | _to_data_frames | <not_specific> | def _to_data_frames(self, _generator):
"""Parse stream of DataFrames into expected type."""
from ..extras import pd
_dataFrames = list(_generator)
if len(_dataFrames) == 0:
return pd.DataFrame(columns=[], index=None)
elif len(_dataFrames) == 1:
return _dat... | Parse stream of DataFrames into expected type. | Parse stream of DataFrames into expected type. | [
"Parse",
"stream",
"of",
"DataFrames",
"into",
"expected",
"type",
"."
] | def _to_data_frames(self, _generator):
from ..extras import pd
_dataFrames = list(_generator)
if len(_dataFrames) == 0:
return pd.DataFrame(columns=[], index=None)
elif len(_dataFrames) == 1:
return _dataFrames[0]
else:
return _dataFrames | [
"def",
"_to_data_frames",
"(",
"self",
",",
"_generator",
")",
":",
"from",
".",
".",
"extras",
"import",
"pd",
"_dataFrames",
"=",
"list",
"(",
"_generator",
")",
"if",
"len",
"(",
"_dataFrames",
")",
"==",
"0",
":",
"return",
"pd",
".",
"DataFrame",
... | Parse stream of DataFrames into expected type. | [
"Parse",
"stream",
"of",
"DataFrames",
"into",
"expected",
"type",
"."
] | [
"\"\"\"Parse stream of DataFrames into expected type.\"\"\""
] | [
{
"param": "self",
"type": null
},
{
"param": "_generator",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "_generator",
"type": null,
"docstring": null,
"docstring_toke... |
cda86de332c94921babe3634eff023bf13f30aea | mmatl/influxdb-client-python | influxdb_client/client/query_api.py | [
"MIT"
] | Python | query_csv | <not_specific> | def query_csv(self, query: str, org=None, dialect: Dialect = default_dialect, params: dict = None):
"""
Execute the Flux query and return results as a CSV iterator. Each iteration returns a row of the CSV file.
:param query: a Flux query
:param str, Organization org: specifies the organ... |
Execute the Flux query and return results as a CSV iterator. Each iteration returns a row of the CSV file.
:param query: a Flux query
:param str, Organization org: specifies the organization for executing the query;
Take the ``ID``, ``Name`` or ``Organizat... | Execute the Flux query and return results as a CSV iterator. Each iteration returns a row of the CSV file. | [
"Execute",
"the",
"Flux",
"query",
"and",
"return",
"results",
"as",
"a",
"CSV",
"iterator",
".",
"Each",
"iteration",
"returns",
"a",
"row",
"of",
"the",
"CSV",
"file",
"."
] | def query_csv(self, query: str, org=None, dialect: Dialect = default_dialect, params: dict = None):
org = self._org_param(org)
response = self._query_api.post_query(org=org, query=self._create_query(query, dialect, params),
async_req=False, _preload_content=... | [
"def",
"query_csv",
"(",
"self",
",",
"query",
":",
"str",
",",
"org",
"=",
"None",
",",
"dialect",
":",
"Dialect",
"=",
"default_dialect",
",",
"params",
":",
"dict",
"=",
"None",
")",
":",
"org",
"=",
"self",
".",
"_org_param",
"(",
"org",
")",
"... | Execute the Flux query and return results as a CSV iterator. | [
"Execute",
"the",
"Flux",
"query",
"and",
"return",
"results",
"as",
"a",
"CSV",
"iterator",
"."
] | [
"\"\"\"\n Execute the Flux query and return results as a CSV iterator. Each iteration returns a row of the CSV file.\n\n :param query: a Flux query\n :param str, Organization org: specifies the organization for executing the query;\n Take the ``ID``, ``Name`... | [
{
"param": "self",
"type": null
},
{
"param": "query",
"type": "str"
},
{
"param": "org",
"type": null
},
{
"param": "dialect",
"type": "Dialect"
},
{
"param": "params",
"type": "dict"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "query",
"type": "str",
"docstring": null,
"docstring_tokens":... |
cda86de332c94921babe3634eff023bf13f30aea | mmatl/influxdb-client-python | influxdb_client/client/query_api.py | [
"MIT"
] | Python | query_raw | <not_specific> | def query_raw(self, query: str, org=None, dialect=default_dialect, params: dict = None):
"""
Execute synchronous Flux query and return result as raw unprocessed result as a str.
:param query: a Flux query
:param str, Organization org: specifies the organization for executing the query;
... |
Execute synchronous Flux query and return result as raw unprocessed result as a str.
:param query: a Flux query
:param str, Organization org: specifies the organization for executing the query;
Take the ``ID``, ``Name`` or ``Organization``.
... | Execute synchronous Flux query and return result as raw unprocessed result as a str. | [
"Execute",
"synchronous",
"Flux",
"query",
"and",
"return",
"result",
"as",
"raw",
"unprocessed",
"result",
"as",
"a",
"str",
"."
] | def query_raw(self, query: str, org=None, dialect=default_dialect, params: dict = None):
org = self._org_param(org)
result = self._query_api.post_query(org=org, query=self._create_query(query, dialect, params), async_req=False,
_preload_content=False)
... | [
"def",
"query_raw",
"(",
"self",
",",
"query",
":",
"str",
",",
"org",
"=",
"None",
",",
"dialect",
"=",
"default_dialect",
",",
"params",
":",
"dict",
"=",
"None",
")",
":",
"org",
"=",
"self",
".",
"_org_param",
"(",
"org",
")",
"result",
"=",
"s... | Execute synchronous Flux query and return result as raw unprocessed result as a str. | [
"Execute",
"synchronous",
"Flux",
"query",
"and",
"return",
"result",
"as",
"raw",
"unprocessed",
"result",
"as",
"a",
"str",
"."
] | [
"\"\"\"\n Execute synchronous Flux query and return result as raw unprocessed result as a str.\n\n :param query: a Flux query\n :param str, Organization org: specifies the organization for executing the query;\n Take the ``ID``, ``Name`` or ``Organization``.... | [
{
"param": "self",
"type": null
},
{
"param": "query",
"type": "str"
},
{
"param": "org",
"type": null
},
{
"param": "dialect",
"type": null
},
{
"param": "params",
"type": "dict"
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
},
{
"identifier": "query",
"type": "str",
"docstring": null,
"docstring_tokens":... |
798a78b1a789e4b66e351347e9874b60391da187 | ddiguy/verisign | get-verisign-zones.py | [
"MIT"
] | Python | keyfunc | <not_specific> | def keyfunc(s):
"""
Sorts sets based on numbers so that zones appear in order in output file
Common usage is:
sorted(my_set, key=keyfunc)
"""
return [int(''.join(g)) if k else ''.join(g) for k, g in groupby('\0'+s, str.isdigit)] |
Sorts sets based on numbers so that zones appear in order in output file
Common usage is:
sorted(my_set, key=keyfunc)
| Sorts sets based on numbers so that zones appear in order in output file
Common usage is:
sorted(my_set, key=keyfunc) | [
"Sorts",
"sets",
"based",
"on",
"numbers",
"so",
"that",
"zones",
"appear",
"in",
"order",
"in",
"output",
"file",
"Common",
"usage",
"is",
":",
"sorted",
"(",
"my_set",
"key",
"=",
"keyfunc",
")"
] | def keyfunc(s):
return [int(''.join(g)) if k else ''.join(g) for k, g in groupby('\0'+s, str.isdigit)] | [
"def",
"keyfunc",
"(",
"s",
")",
":",
"return",
"[",
"int",
"(",
"''",
".",
"join",
"(",
"g",
")",
")",
"if",
"k",
"else",
"''",
".",
"join",
"(",
"g",
")",
"for",
"k",
",",
"g",
"in",
"groupby",
"(",
"'\\0'",
"+",
"s",
",",
"str",
".",
"... | Sorts sets based on numbers so that zones appear in order in output file
Common usage is:
sorted(my_set, key=keyfunc) | [
"Sorts",
"sets",
"based",
"on",
"numbers",
"so",
"that",
"zones",
"appear",
"in",
"order",
"in",
"output",
"file",
"Common",
"usage",
"is",
":",
"sorted",
"(",
"my_set",
"key",
"=",
"keyfunc",
")"
] | [
"\"\"\"\n Sorts sets based on numbers so that zones appear in order in output file\n Common usage is:\n sorted(my_set, key=keyfunc)\n \"\"\""
] | [
{
"param": "s",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "s",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
6058eaff7b1df27b438fec85bdb9c19386059a89 | rapzo/pulumi-aws | sdk/python/pulumi_aws/cloudtrail/get_function.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | last_modified_time | str | def last_modified_time(self) -> str:
"""
When this resource was last modified.
"""
return pulumi.get(self, "last_modified_time") |
When this resource was last modified.
| When this resource was last modified. | [
"When",
"this",
"resource",
"was",
"last",
"modified",
"."
] | def last_modified_time(self) -> str:
return pulumi.get(self, "last_modified_time") | [
"def",
"last_modified_time",
"(",
"self",
")",
"->",
"str",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"last_modified_time\"",
")"
] | When this resource was last modified. | [
"When",
"this",
"resource",
"was",
"last",
"modified",
"."
] | [
"\"\"\"\n When this resource was last modified.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
6058eaff7b1df27b438fec85bdb9c19386059a89 | rapzo/pulumi-aws | sdk/python/pulumi_aws/cloudtrail/get_function.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | runtime | str | def runtime(self) -> str:
"""
Identifier of the function's runtime.
"""
return pulumi.get(self, "runtime") |
Identifier of the function's runtime.
| Identifier of the function's runtime. | [
"Identifier",
"of",
"the",
"function",
"'",
"s",
"runtime",
"."
] | def runtime(self) -> str:
return pulumi.get(self, "runtime") | [
"def",
"runtime",
"(",
"self",
")",
"->",
"str",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"runtime\"",
")"
] | Identifier of the function's runtime. | [
"Identifier",
"of",
"the",
"function",
"'",
"s",
"runtime",
"."
] | [
"\"\"\"\n Identifier of the function's runtime.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | email | pulumi.Input[str] | def email(self) -> pulumi.Input[str]:
"""
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
"""
return pulumi.get(self, "email") |
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
| The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
".",
"This",
"email",
"address",
"must",
"not",
"already",
"be",
"associated",
"with",
"another",
"AWS",
"account",
"."
] | def email(self) -> pulumi.Input[str]:
return pulumi.get(self, "email") | [
"def",
"email",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"email\"",
")"
] | The email address of the owner to assign to the new member account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
"."
] | [
"\"\"\"\n The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | iam_user_access_to_billing | Optional[pulumi.Input[str]] | def iam_user_access_to_billing(self) -> Optional[pulumi.Input[str]]:
"""
If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.
... |
If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.
| If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information. | [
"If",
"set",
"to",
"`",
"ALLOW",
"`",
"the",
"new",
"account",
"enables",
"IAM",
"users",
"to",
"access",
"account",
"billing",
"information",
"if",
"they",
"have",
"the",
"required",
"permissions",
".",
"If",
"set",
"to",
"`",
"DENY",
"`",
"then",
"only... | def iam_user_access_to_billing(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "iam_user_access_to_billing") | [
"def",
"iam_user_access_to_billing",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"iam_user_access_to_billing\"",
")"
] | If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. | [
"If",
"set",
"to",
"`",
"ALLOW",
"`",
"the",
"new",
"account",
"enables",
"IAM",
"users",
"to",
"access",
"account",
"billing",
"information",
"if",
"they",
"have",
"the",
"required",
"permissions",
"."
] | [
"\"\"\"\n If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | parent_id | Optional[pulumi.Input[str]] | def parent_id(self) -> Optional[pulumi.Input[str]]:
"""
Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
"""
return pulumi.get(self, "parent_id") |
Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
| Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. | [
"Parent",
"Organizational",
"Unit",
"ID",
"or",
"Root",
"ID",
"for",
"the",
"account",
".",
"Defaults",
"to",
"the",
"Organization",
"default",
"Root",
"ID",
".",
"A",
"configuration",
"must",
"be",
"present",
"for",
"this",
"argument",
"to",
"perform",
"dri... | def parent_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "parent_id") | [
"def",
"parent_id",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"parent_id\"",
")"
] | Parent Organizational Unit ID or Root ID for the account. | [
"Parent",
"Organizational",
"Unit",
"ID",
"or",
"Root",
"ID",
"for",
"the",
"account",
"."
] | [
"\"\"\"\n Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | role_name | Optional[pulumi.Input[str]] | def role_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The ro... |
The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The... | The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The Organiza... | [
"The",
"name",
"of",
"an",
"IAM",
"role",
"that",
"Organizations",
"automatically",
"preconfigures",
"in",
"the",
"new",
"member",
"account",
".",
"This",
"role",
"trusts",
"the",
"master",
"account",
"allowing",
"users",
"in",
"the",
"master",
"account",
"to"... | def role_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "role_name") | [
"def",
"role_name",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"role_name\"",
")"
] | The name of an IAM role that Organizations automatically preconfigures in the new member account. | [
"The",
"name",
"of",
"an",
"IAM",
"role",
"that",
"Organizations",
"automatically",
"preconfigures",
"in",
"the",
"new",
"member",
"account",
"."
] | [
"\"\"\"\n The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member ... | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | arn | Optional[pulumi.Input[str]] | def arn(self) -> Optional[pulumi.Input[str]]:
"""
The ARN for this account.
"""
return pulumi.get(self, "arn") |
The ARN for this account.
| The ARN for this account. | [
"The",
"ARN",
"for",
"this",
"account",
"."
] | def arn(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "arn") | [
"def",
"arn",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"arn\"",
")"
] | The ARN for this account. | [
"The",
"ARN",
"for",
"this",
"account",
"."
] | [
"\"\"\"\n The ARN for this account.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | email | Optional[pulumi.Input[str]] | def email(self) -> Optional[pulumi.Input[str]]:
"""
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
"""
return pulumi.get(self, "email") |
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
| The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
".",
"This",
"email",
"address",
"must",
"not",
"already",
"be",
"associated",
"with",
"another",
"AWS",
"account",
"."
] | def email(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "email") | [
"def",
"email",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"email\"",
")"
] | The email address of the owner to assign to the new member account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
"."
] | [
"\"\"\"\n The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | tags_all | Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] | def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
"""
A map of tags assigned to the resource, including those inherited from the provider.
"""
return pulumi.get(self, "tags_all") |
A map of tags assigned to the resource, including those inherited from the provider.
| A map of tags assigned to the resource, including those inherited from the provider. | [
"A",
"map",
"of",
"tags",
"assigned",
"to",
"the",
"resource",
"including",
"those",
"inherited",
"from",
"the",
"provider",
"."
] | def tags_all(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
return pulumi.get(self, "tags_all") | [
"def",
"tags_all",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"Mapping",
"[",
"str",
",",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"tags_all\"",
")"
... | A map of tags assigned to the resource, including those inherited from the provider. | [
"A",
"map",
"of",
"tags",
"assigned",
"to",
"the",
"resource",
"including",
"those",
"inherited",
"from",
"the",
"provider",
"."
] | [
"\"\"\"\n A map of tags assigned to the resource, including those inherited from the provider.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | email | pulumi.Output[str] | def email(self) -> pulumi.Output[str]:
"""
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
"""
return pulumi.get(self, "email") |
The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.
| The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
".",
"This",
"email",
"address",
"must",
"not",
"already",
"be",
"associated",
"with",
"another",
"AWS",
"account",
"."
] | def email(self) -> pulumi.Output[str]:
return pulumi.get(self, "email") | [
"def",
"email",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"email\"",
")"
] | The email address of the owner to assign to the new member account. | [
"The",
"email",
"address",
"of",
"the",
"owner",
"to",
"assign",
"to",
"the",
"new",
"member",
"account",
"."
] | [
"\"\"\"\n The email address of the owner to assign to the new member account. This email address must not already be associated with another AWS account.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | iam_user_access_to_billing | pulumi.Output[Optional[str]] | def iam_user_access_to_billing(self) -> pulumi.Output[Optional[str]]:
"""
If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.... |
If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.
| If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information. | [
"If",
"set",
"to",
"`",
"ALLOW",
"`",
"the",
"new",
"account",
"enables",
"IAM",
"users",
"to",
"access",
"account",
"billing",
"information",
"if",
"they",
"have",
"the",
"required",
"permissions",
".",
"If",
"set",
"to",
"`",
"DENY",
"`",
"then",
"only... | def iam_user_access_to_billing(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "iam_user_access_to_billing") | [
"def",
"iam_user_access_to_billing",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Optional",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"iam_user_access_to_billing\"",
")"
] | If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. | [
"If",
"set",
"to",
"`",
"ALLOW",
"`",
"the",
"new",
"account",
"enables",
"IAM",
"users",
"to",
"access",
"account",
"billing",
"information",
"if",
"they",
"have",
"the",
"required",
"permissions",
"."
] | [
"\"\"\"\n If set to `ALLOW`, the new account enables IAM users to access account billing information if they have the required permissions. If set to `DENY`, then only the root user of the new account can access account billing information.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | parent_id | pulumi.Output[str] | def parent_id(self) -> pulumi.Output[str]:
"""
Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
"""
return pulumi.get(self, "parent_id") |
Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.
| Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection. | [
"Parent",
"Organizational",
"Unit",
"ID",
"or",
"Root",
"ID",
"for",
"the",
"account",
".",
"Defaults",
"to",
"the",
"Organization",
"default",
"Root",
"ID",
".",
"A",
"configuration",
"must",
"be",
"present",
"for",
"this",
"argument",
"to",
"perform",
"dri... | def parent_id(self) -> pulumi.Output[str]:
return pulumi.get(self, "parent_id") | [
"def",
"parent_id",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"parent_id\"",
")"
] | Parent Organizational Unit ID or Root ID for the account. | [
"Parent",
"Organizational",
"Unit",
"ID",
"or",
"Root",
"ID",
"for",
"the",
"account",
"."
] | [
"\"\"\"\n Parent Organizational Unit ID or Root ID for the account. Defaults to the Organization default Root ID. A configuration must be present for this argument to perform drift detection.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | role_name | pulumi.Output[Optional[str]] | def role_name(self) -> pulumi.Output[Optional[str]]:
"""
The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The r... |
The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The... | The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member account. The Organiza... | [
"The",
"name",
"of",
"an",
"IAM",
"role",
"that",
"Organizations",
"automatically",
"preconfigures",
"in",
"the",
"new",
"member",
"account",
".",
"This",
"role",
"trusts",
"the",
"master",
"account",
"allowing",
"users",
"in",
"the",
"master",
"account",
"to"... | def role_name(self) -> pulumi.Output[Optional[str]]:
return pulumi.get(self, "role_name") | [
"def",
"role_name",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Optional",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"role_name\"",
")"
] | The name of an IAM role that Organizations automatically preconfigures in the new member account. | [
"The",
"name",
"of",
"an",
"IAM",
"role",
"that",
"Organizations",
"automatically",
"preconfigures",
"in",
"the",
"new",
"member",
"account",
"."
] | [
"\"\"\"\n The name of an IAM role that Organizations automatically preconfigures in the new member account. This role trusts the master account, allowing users in the master account to assume the role, as permitted by the master account administrator. The role has administrator permissions in the new member ... | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
605da011c2f7c639be70bc79650e78bc500954c3 | rapzo/pulumi-aws | sdk/python/pulumi_aws/organizations/account.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | tags_all | pulumi.Output[Mapping[str, str]] | def tags_all(self) -> pulumi.Output[Mapping[str, str]]:
"""
A map of tags assigned to the resource, including those inherited from the provider.
"""
return pulumi.get(self, "tags_all") |
A map of tags assigned to the resource, including those inherited from the provider.
| A map of tags assigned to the resource, including those inherited from the provider. | [
"A",
"map",
"of",
"tags",
"assigned",
"to",
"the",
"resource",
"including",
"those",
"inherited",
"from",
"the",
"provider",
"."
] | def tags_all(self) -> pulumi.Output[Mapping[str, str]]:
return pulumi.get(self, "tags_all") | [
"def",
"tags_all",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Mapping",
"[",
"str",
",",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"tags_all\"",
")"
] | A map of tags assigned to the resource, including those inherited from the provider. | [
"A",
"map",
"of",
"tags",
"assigned",
"to",
"the",
"resource",
"including",
"those",
"inherited",
"from",
"the",
"provider",
"."
] | [
"\"\"\"\n A map of tags assigned to the resource, including those inherited from the provider.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | routes | pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]] | def routes(self) -> pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]]:
"""
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
"""
return pulumi.get(self, "routes") |
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
| Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
".",
"See",
"route",
"below",
"for",
"more",
"details",
".",
"Minimum",
"of",
"1",
".",
"Maximum",
"of",
"20",
"."
] | def routes(self) -> pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]]:
return pulumi.get(self, "routes") | [
"def",
"routes",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"Sequence",
"[",
"pulumi",
".",
"Input",
"[",
"'VoiceConnectorOrganizationRouteArgs'",
"]",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"routes\"",
")"
] | Set of call distribution properties defined for your SIP hosts. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
"."
] | [
"\"\"\"\n Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | voice_connector_id | pulumi.Input[str] | def voice_connector_id(self) -> pulumi.Input[str]:
"""
The Amazon Chime Voice Connector ID.
"""
return pulumi.get(self, "voice_connector_id") |
The Amazon Chime Voice Connector ID.
| The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | def voice_connector_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "voice_connector_id") | [
"def",
"voice_connector_id",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"voice_connector_id\"",
")"
] | The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | [
"\"\"\"\n The Amazon Chime Voice Connector ID.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | disabled | Optional[pulumi.Input[bool]] | def disabled(self) -> Optional[pulumi.Input[bool]]:
"""
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
"""
return pulumi.get(self, "disabled") |
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
| When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. | [
"When",
"origination",
"settings",
"are",
"disabled",
"inbound",
"calls",
"are",
"not",
"enabled",
"for",
"your",
"Amazon",
"Chime",
"Voice",
"Connector",
"."
] | def disabled(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "disabled") | [
"def",
"disabled",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"bool",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"disabled\"",
")"
] | When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. | [
"When",
"origination",
"settings",
"are",
"disabled",
"inbound",
"calls",
"are",
"not",
"enabled",
"for",
"your",
"Amazon",
"Chime",
"Voice",
"Connector",
"."
] | [
"\"\"\"\n When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | routes | Optional[pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]]] | def routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]]]:
"""
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
"""
return pulumi.get(self, "routes") |
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
| Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
".",
"See",
"route",
"below",
"for",
"more",
"details",
".",
"Minimum",
"of",
"1",
".",
"Maximum",
"of",
"20",
"."
] | def routes(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['VoiceConnectorOrganizationRouteArgs']]]]:
return pulumi.get(self, "routes") | [
"def",
"routes",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"Sequence",
"[",
"pulumi",
".",
"Input",
"[",
"'VoiceConnectorOrganizationRouteArgs'",
"]",
"]",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"ro... | Set of call distribution properties defined for your SIP hosts. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
"."
] | [
"\"\"\"\n Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | voice_connector_id | Optional[pulumi.Input[str]] | def voice_connector_id(self) -> Optional[pulumi.Input[str]]:
"""
The Amazon Chime Voice Connector ID.
"""
return pulumi.get(self, "voice_connector_id") |
The Amazon Chime Voice Connector ID.
| The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | def voice_connector_id(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "voice_connector_id") | [
"def",
"voice_connector_id",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"voice_connector_id\"",
")"
] | The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | [
"\"\"\"\n The Amazon Chime Voice Connector ID.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | disabled | pulumi.Output[Optional[bool]] | def disabled(self) -> pulumi.Output[Optional[bool]]:
"""
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
"""
return pulumi.get(self, "disabled") |
When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.
| When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. | [
"When",
"origination",
"settings",
"are",
"disabled",
"inbound",
"calls",
"are",
"not",
"enabled",
"for",
"your",
"Amazon",
"Chime",
"Voice",
"Connector",
"."
] | def disabled(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "disabled") | [
"def",
"disabled",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Optional",
"[",
"bool",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"disabled\"",
")"
] | When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector. | [
"When",
"origination",
"settings",
"are",
"disabled",
"inbound",
"calls",
"are",
"not",
"enabled",
"for",
"your",
"Amazon",
"Chime",
"Voice",
"Connector",
"."
] | [
"\"\"\"\n When origination settings are disabled, inbound calls are not enabled for your Amazon Chime Voice Connector.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | routes | pulumi.Output[Sequence['outputs.VoiceConnectorOrganizationRoute']] | def routes(self) -> pulumi.Output[Sequence['outputs.VoiceConnectorOrganizationRoute']]:
"""
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
"""
return pulumi.get(self, "routes") |
Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.
| Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
".",
"See",
"route",
"below",
"for",
"more",
"details",
".",
"Minimum",
"of",
"1",
".",
"Maximum",
"of",
"20",
"."
] | def routes(self) -> pulumi.Output[Sequence['outputs.VoiceConnectorOrganizationRoute']]:
return pulumi.get(self, "routes") | [
"def",
"routes",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Sequence",
"[",
"'outputs.VoiceConnectorOrganizationRoute'",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"routes\"",
")"
] | Set of call distribution properties defined for your SIP hosts. | [
"Set",
"of",
"call",
"distribution",
"properties",
"defined",
"for",
"your",
"SIP",
"hosts",
"."
] | [
"\"\"\"\n Set of call distribution properties defined for your SIP hosts. See route below for more details. Minimum of 1. Maximum of 20.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
568c262380d65ffd165d89c3bb4f355ba5393450 | rapzo/pulumi-aws | sdk/python/pulumi_aws/chime/voice_connector_organization.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | voice_connector_id | pulumi.Output[str] | def voice_connector_id(self) -> pulumi.Output[str]:
"""
The Amazon Chime Voice Connector ID.
"""
return pulumi.get(self, "voice_connector_id") |
The Amazon Chime Voice Connector ID.
| The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | def voice_connector_id(self) -> pulumi.Output[str]:
return pulumi.get(self, "voice_connector_id") | [
"def",
"voice_connector_id",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"voice_connector_id\"",
")"
] | The Amazon Chime Voice Connector ID. | [
"The",
"Amazon",
"Chime",
"Voice",
"Connector",
"ID",
"."
] | [
"\"\"\"\n The Amazon Chime Voice Connector ID.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | force_destroy | Optional[pulumi.Input[bool]] | def force_destroy(self) -> Optional[pulumi.Input[bool]]:
"""
Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
"""
return pulumi.get(self, "force_destroy") |
Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
| Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion. | [
"Whether",
"to",
"destroy",
"all",
"associated",
"clusters",
"with",
"this",
"snapshot",
"schedule",
"on",
"deletion",
".",
"Must",
"be",
"enabled",
"and",
"applied",
"before",
"attempting",
"deletion",
"."
] | def force_destroy(self) -> Optional[pulumi.Input[bool]]:
return pulumi.get(self, "force_destroy") | [
"def",
"force_destroy",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"bool",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"force_destroy\"",
")"
] | Whether to destroy all associated clusters with this snapshot schedule on deletion. | [
"Whether",
"to",
"destroy",
"all",
"associated",
"clusters",
"with",
"this",
"snapshot",
"schedule",
"on",
"deletion",
"."
] | [
"\"\"\"\n Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | identifier | Optional[pulumi.Input[str]] | def identifier(self) -> Optional[pulumi.Input[str]]:
"""
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
"""
return pulumi.get(self, "identifier") |
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
| The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier. | [
"The",
"snapshot",
"schedule",
"identifier",
".",
"If",
"omitted",
"this",
"provider",
"will",
"assign",
"a",
"random",
"unique",
"identifier",
"."
] | def identifier(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "identifier") | [
"def",
"identifier",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"identifier\"",
")"
] | The snapshot schedule identifier. | [
"The",
"snapshot",
"schedule",
"identifier",
"."
] | [
"\"\"\"\n The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | identifier_prefix | Optional[pulumi.Input[str]] | def identifier_prefix(self) -> Optional[pulumi.Input[str]]:
"""
Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`.
"""
return pulumi.get(self, "identifier_prefix") |
Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`.
| Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`. | [
"Creates",
"a",
"unique",
"identifier",
"beginning",
"with",
"the",
"specified",
"prefix",
".",
"Conflicts",
"with",
"`",
"identifier",
"`",
"."
] | def identifier_prefix(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "identifier_prefix") | [
"def",
"identifier_prefix",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"identifier_prefix\"",
")"
] | Creates a unique
identifier beginning with the specified prefix. | [
"Creates",
"a",
"unique",
"identifier",
"beginning",
"with",
"the",
"specified",
"prefix",
"."
] | [
"\"\"\"\n Creates a unique\n identifier beginning with the specified prefix. Conflicts with `identifier`.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | force_destroy | pulumi.Output[Optional[bool]] | def force_destroy(self) -> pulumi.Output[Optional[bool]]:
"""
Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
"""
return pulumi.get(self, "force_destroy") |
Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.
| Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion. | [
"Whether",
"to",
"destroy",
"all",
"associated",
"clusters",
"with",
"this",
"snapshot",
"schedule",
"on",
"deletion",
".",
"Must",
"be",
"enabled",
"and",
"applied",
"before",
"attempting",
"deletion",
"."
] | def force_destroy(self) -> pulumi.Output[Optional[bool]]:
return pulumi.get(self, "force_destroy") | [
"def",
"force_destroy",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"Optional",
"[",
"bool",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"force_destroy\"",
")"
] | Whether to destroy all associated clusters with this snapshot schedule on deletion. | [
"Whether",
"to",
"destroy",
"all",
"associated",
"clusters",
"with",
"this",
"snapshot",
"schedule",
"on",
"deletion",
"."
] | [
"\"\"\"\n Whether to destroy all associated clusters with this snapshot schedule on deletion. Must be enabled and applied before attempting deletion.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | identifier | pulumi.Output[str] | def identifier(self) -> pulumi.Output[str]:
"""
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
"""
return pulumi.get(self, "identifier") |
The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.
| The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier. | [
"The",
"snapshot",
"schedule",
"identifier",
".",
"If",
"omitted",
"this",
"provider",
"will",
"assign",
"a",
"random",
"unique",
"identifier",
"."
] | def identifier(self) -> pulumi.Output[str]:
return pulumi.get(self, "identifier") | [
"def",
"identifier",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"identifier\"",
")"
] | The snapshot schedule identifier. | [
"The",
"snapshot",
"schedule",
"identifier",
"."
] | [
"\"\"\"\n The snapshot schedule identifier. If omitted, this provider will assign a random, unique identifier.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
7360c1e7421799199cddedafb531948a2b3025b4 | rapzo/pulumi-aws | sdk/python/pulumi_aws/redshift/snapshot_schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | identifier_prefix | pulumi.Output[str] | def identifier_prefix(self) -> pulumi.Output[str]:
"""
Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`.
"""
return pulumi.get(self, "identifier_prefix") |
Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`.
| Creates a unique
identifier beginning with the specified prefix. Conflicts with `identifier`. | [
"Creates",
"a",
"unique",
"identifier",
"beginning",
"with",
"the",
"specified",
"prefix",
".",
"Conflicts",
"with",
"`",
"identifier",
"`",
"."
] | def identifier_prefix(self) -> pulumi.Output[str]:
return pulumi.get(self, "identifier_prefix") | [
"def",
"identifier_prefix",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"identifier_prefix\"",
")"
] | Creates a unique
identifier beginning with the specified prefix. | [
"Creates",
"a",
"unique",
"identifier",
"beginning",
"with",
"the",
"specified",
"prefix",
"."
] | [
"\"\"\"\n Creates a unique\n identifier beginning with the specified prefix. Conflicts with `identifier`.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | autoscaling_group_name | pulumi.Input[str] | def autoscaling_group_name(self) -> pulumi.Input[str]:
"""
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
"""
return pulumi.get(self, "autoscaling_group_name") |
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
| The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | def autoscaling_group_name(self) -> pulumi.Input[str]:
return pulumi.get(self, "autoscaling_group_name") | [
"def",
"autoscaling_group_name",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"autoscaling_group_name\"",
")"
] | The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The name or Amazon Resource Name (ARN) of the Auto Scaling group.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | scheduled_action_name | pulumi.Input[str] | def scheduled_action_name(self) -> pulumi.Input[str]:
"""
The name of this scaling action.
"""
return pulumi.get(self, "scheduled_action_name") |
The name of this scaling action.
| The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | def scheduled_action_name(self) -> pulumi.Input[str]:
return pulumi.get(self, "scheduled_action_name") | [
"def",
"scheduled_action_name",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"scheduled_action_name\"",
")"
] | The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | [
"\"\"\"\n The name of this scaling action.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | desired_capacity | Optional[pulumi.Input[int]] | def desired_capacity(self) -> Optional[pulumi.Input[int]]:
"""
The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.
"""
return pulumi.get(self, "desired_capacity") |
The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.
| The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time. | [
"The",
"number",
"of",
"EC2",
"instances",
"that",
"should",
"be",
"running",
"in",
"the",
"group",
".",
"Default",
"0",
".",
"Set",
"to",
"-",
"1",
"if",
"you",
"don",
"'",
"t",
"want",
"to",
"change",
"the",
"desired",
"capacity",
"at",
"the",
"sch... | def desired_capacity(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "desired_capacity") | [
"def",
"desired_capacity",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"int",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"desired_capacity\"",
")"
] | The number of EC2 instances that should be running in the group. | [
"The",
"number",
"of",
"EC2",
"instances",
"that",
"should",
"be",
"running",
"in",
"the",
"group",
"."
] | [
"\"\"\"\n The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | min_size | Optional[pulumi.Input[int]] | def min_size(self) -> Optional[pulumi.Input[int]]:
"""
The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time.
"""
return pulumi.get(self, "min_size") |
The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time.
| The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time. | [
"The",
"minimum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
".",
"Default",
"0",
".",
"Set",
"to",
"-",
"1",
"if",
"you",
"don",
"'",
"t",
"want",
"to",
"change",
"the",
"minimum",
"size",
"at",
"the",
"scheduled",
"time",
"."
] | def min_size(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "min_size") | [
"def",
"min_size",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"int",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"min_size\"",
")"
] | The minimum size for the Auto Scaling group. | [
"The",
"minimum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The minimum size for the Auto Scaling group. Default 0.\n Set to -1 if you don't want to change the minimum size at the scheduled time.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | recurrence | Optional[pulumi.Input[str]] | def recurrence(self) -> Optional[pulumi.Input[str]]:
"""
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.
"""
return pulumi.get(self, "recurrence") |
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.
| The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. | [
"The",
"time",
"when",
"recurring",
"future",
"actions",
"will",
"start",
".",
"Start",
"time",
"is",
"specified",
"by",
"the",
"user",
"following",
"the",
"Unix",
"cron",
"syntax",
"format",
"."
] | def recurrence(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "recurrence") | [
"def",
"recurrence",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"recurrence\"",
")"
] | The time when recurring future actions will start. | [
"The",
"time",
"when",
"recurring",
"future",
"actions",
"will",
"start",
"."
] | [
"\"\"\"\n The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | time_zone | Optional[pulumi.Input[str]] | def time_zone(self) -> Optional[pulumi.Input[str]]:
"""
The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).
"""
return pulumi.get(self, "time_zone") |
The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).
| The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti). | [
"The",
"timezone",
"for",
"the",
"cron",
"expression",
".",
"Valid",
"values",
"are",
"the",
"canonical",
"names",
"of",
"the",
"IANA",
"time",
"zones",
"(",
"such",
"as",
"Etc",
"/",
"GMT",
"+",
"9",
"or",
"Pacific",
"/",
"Tahiti",
")",
"."
] | def time_zone(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "time_zone") | [
"def",
"time_zone",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"time_zone\"",
")"
] | The timezone for the cron expression. | [
"The",
"timezone",
"for",
"the",
"cron",
"expression",
"."
] | [
"\"\"\"\n The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | autoscaling_group_name | Optional[pulumi.Input[str]] | def autoscaling_group_name(self) -> Optional[pulumi.Input[str]]:
"""
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
"""
return pulumi.get(self, "autoscaling_group_name") |
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
| The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | def autoscaling_group_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "autoscaling_group_name") | [
"def",
"autoscaling_group_name",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"autoscaling_group_name\"",
")"
] | The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The name or Amazon Resource Name (ARN) of the Auto Scaling group.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | scheduled_action_name | Optional[pulumi.Input[str]] | def scheduled_action_name(self) -> Optional[pulumi.Input[str]]:
"""
The name of this scaling action.
"""
return pulumi.get(self, "scheduled_action_name") |
The name of this scaling action.
| The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | def scheduled_action_name(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "scheduled_action_name") | [
"def",
"scheduled_action_name",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"scheduled_action_name\"",
")"
] | The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | [
"\"\"\"\n The name of this scaling action.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | autoscaling_group_name | pulumi.Output[str] | def autoscaling_group_name(self) -> pulumi.Output[str]:
"""
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
"""
return pulumi.get(self, "autoscaling_group_name") |
The name or Amazon Resource Name (ARN) of the Auto Scaling group.
| The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | def autoscaling_group_name(self) -> pulumi.Output[str]:
return pulumi.get(self, "autoscaling_group_name") | [
"def",
"autoscaling_group_name",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"autoscaling_group_name\"",
")"
] | The name or Amazon Resource Name (ARN) of the Auto Scaling group. | [
"The",
"name",
"or",
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The name or Amazon Resource Name (ARN) of the Auto Scaling group.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | desired_capacity | pulumi.Output[int] | def desired_capacity(self) -> pulumi.Output[int]:
"""
The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.
"""
return pulumi.get(self, "desired_capacity") |
The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.
| The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time. | [
"The",
"number",
"of",
"EC2",
"instances",
"that",
"should",
"be",
"running",
"in",
"the",
"group",
".",
"Default",
"0",
".",
"Set",
"to",
"-",
"1",
"if",
"you",
"don",
"'",
"t",
"want",
"to",
"change",
"the",
"desired",
"capacity",
"at",
"the",
"sch... | def desired_capacity(self) -> pulumi.Output[int]:
return pulumi.get(self, "desired_capacity") | [
"def",
"desired_capacity",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"int",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"desired_capacity\"",
")"
] | The number of EC2 instances that should be running in the group. | [
"The",
"number",
"of",
"EC2",
"instances",
"that",
"should",
"be",
"running",
"in",
"the",
"group",
"."
] | [
"\"\"\"\n The number of EC2 instances that should be running in the group. Default 0. Set to -1 if you don't want to change the desired capacity at the scheduled time.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | max_size | pulumi.Output[int] | def max_size(self) -> pulumi.Output[int]:
"""
The maximum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the maximum size at the scheduled time.
"""
return pulumi.get(self, "max_size") |
The maximum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the maximum size at the scheduled time.
| The maximum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the maximum size at the scheduled time. | [
"The",
"maximum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
".",
"Default",
"0",
".",
"Set",
"to",
"-",
"1",
"if",
"you",
"don",
"'",
"t",
"want",
"to",
"change",
"the",
"maximum",
"size",
"at",
"the",
"scheduled",
"time",
"."
] | def max_size(self) -> pulumi.Output[int]:
return pulumi.get(self, "max_size") | [
"def",
"max_size",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"int",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"max_size\"",
")"
] | The maximum size for the Auto Scaling group. | [
"The",
"maximum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The maximum size for the Auto Scaling group. Default 0.\n Set to -1 if you don't want to change the maximum size at the scheduled time.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | min_size | pulumi.Output[int] | def min_size(self) -> pulumi.Output[int]:
"""
The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time.
"""
return pulumi.get(self, "min_size") |
The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time.
| The minimum size for the Auto Scaling group. Default 0.
Set to -1 if you don't want to change the minimum size at the scheduled time. | [
"The",
"minimum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
".",
"Default",
"0",
".",
"Set",
"to",
"-",
"1",
"if",
"you",
"don",
"'",
"t",
"want",
"to",
"change",
"the",
"minimum",
"size",
"at",
"the",
"scheduled",
"time",
"."
] | def min_size(self) -> pulumi.Output[int]:
return pulumi.get(self, "min_size") | [
"def",
"min_size",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"int",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"min_size\"",
")"
] | The minimum size for the Auto Scaling group. | [
"The",
"minimum",
"size",
"for",
"the",
"Auto",
"Scaling",
"group",
"."
] | [
"\"\"\"\n The minimum size for the Auto Scaling group. Default 0.\n Set to -1 if you don't want to change the minimum size at the scheduled time.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | recurrence | pulumi.Output[str] | def recurrence(self) -> pulumi.Output[str]:
"""
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.
"""
return pulumi.get(self, "recurrence") |
The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.
| The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format. | [
"The",
"time",
"when",
"recurring",
"future",
"actions",
"will",
"start",
".",
"Start",
"time",
"is",
"specified",
"by",
"the",
"user",
"following",
"the",
"Unix",
"cron",
"syntax",
"format",
"."
] | def recurrence(self) -> pulumi.Output[str]:
return pulumi.get(self, "recurrence") | [
"def",
"recurrence",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"recurrence\"",
")"
] | The time when recurring future actions will start. | [
"The",
"time",
"when",
"recurring",
"future",
"actions",
"will",
"start",
"."
] | [
"\"\"\"\n The time when recurring future actions will start. Start time is specified by the user following the Unix cron syntax format.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | scheduled_action_name | pulumi.Output[str] | def scheduled_action_name(self) -> pulumi.Output[str]:
"""
The name of this scaling action.
"""
return pulumi.get(self, "scheduled_action_name") |
The name of this scaling action.
| The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | def scheduled_action_name(self) -> pulumi.Output[str]:
return pulumi.get(self, "scheduled_action_name") | [
"def",
"scheduled_action_name",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"scheduled_action_name\"",
")"
] | The name of this scaling action. | [
"The",
"name",
"of",
"this",
"scaling",
"action",
"."
] | [
"\"\"\"\n The name of this scaling action.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
021c2f3d89d36b00d585d8e3cbdcdf8acc96e4ad | rapzo/pulumi-aws | sdk/python/pulumi_aws/autoscaling/schedule.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | time_zone | pulumi.Output[str] | def time_zone(self) -> pulumi.Output[str]:
"""
The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).
"""
return pulumi.get(self, "time_zone") |
The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).
| The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti). | [
"The",
"timezone",
"for",
"the",
"cron",
"expression",
".",
"Valid",
"values",
"are",
"the",
"canonical",
"names",
"of",
"the",
"IANA",
"time",
"zones",
"(",
"such",
"as",
"Etc",
"/",
"GMT",
"+",
"9",
"or",
"Pacific",
"/",
"Tahiti",
")",
"."
] | def time_zone(self) -> pulumi.Output[str]:
return pulumi.get(self, "time_zone") | [
"def",
"time_zone",
"(",
"self",
")",
"->",
"pulumi",
".",
"Output",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"time_zone\"",
")"
] | The timezone for the cron expression. | [
"The",
"timezone",
"for",
"the",
"cron",
"expression",
"."
] | [
"\"\"\"\n The timezone for the cron expression. Valid values are the canonical names of the IANA time zones (such as Etc/GMT+9 or Pacific/Tahiti).\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | hosted_zone_id | pulumi.Input[str] | def hosted_zone_id(self) -> pulumi.Input[str]:
"""
Identifier of the Route 53 Hosted Zone.
"""
return pulumi.get(self, "hosted_zone_id") |
Identifier of the Route 53 Hosted Zone.
| Identifier of the Route 53 Hosted Zone. | [
"Identifier",
"of",
"the",
"Route",
"53",
"Hosted",
"Zone",
"."
] | def hosted_zone_id(self) -> pulumi.Input[str]:
return pulumi.get(self, "hosted_zone_id") | [
"def",
"hosted_zone_id",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"hosted_zone_id\"",
")"
] | Identifier of the Route 53 Hosted Zone. | [
"Identifier",
"of",
"the",
"Route",
"53",
"Hosted",
"Zone",
"."
] | [
"\"\"\"\n Identifier of the Route 53 Hosted Zone.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | key_management_service_arn | pulumi.Input[str] | def key_management_service_arn(self) -> pulumi.Input[str]:
"""
Amazon Resource Name (ARN) of the Key Management Service (KMS) Key. This must be unique for each key-signing key (KSK) in a single hosted zone. This key must be in the `us-east-1` Region and meet certain requirements, which are described in ... |
Amazon Resource Name (ARN) of the Key Management Service (KMS) Key. This must be unique for each key-signing key (KSK) in a single hosted zone. This key must be in the `us-east-1` Region and meet certain requirements, which are described in the [Route 53 Developer Guide](https://docs.aws.amazon.com/Route53/lat... | Amazon Resource Name (ARN) of the Key Management Service (KMS) Key. This must be unique for each key-signing key (KSK) in a single hosted zone. This key must be in the `us-east-1` Region and meet certain requirements, which are described in the [Route 53 Developer Guide] and [Route 53 API Reference]. | [
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Key",
"Management",
"Service",
"(",
"KMS",
")",
"Key",
".",
"This",
"must",
"be",
"unique",
"for",
"each",
"key",
"-",
"signing",
"key",
"(",
"KSK",
")",
"in",
"a",
"single",
"hosted",
"zon... | def key_management_service_arn(self) -> pulumi.Input[str]:
return pulumi.get(self, "key_management_service_arn") | [
"def",
"key_management_service_arn",
"(",
"self",
")",
"->",
"pulumi",
".",
"Input",
"[",
"str",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"key_management_service_arn\"",
")"
] | Amazon Resource Name (ARN) of the Key Management Service (KMS) Key. | [
"Amazon",
"Resource",
"Name",
"(",
"ARN",
")",
"of",
"the",
"Key",
"Management",
"Service",
"(",
"KMS",
")",
"Key",
"."
] | [
"\"\"\"\n Amazon Resource Name (ARN) of the Key Management Service (KMS) Key. This must be unique for each key-signing key (KSK) in a single hosted zone. This key must be in the `us-east-1` Region and meet certain requirements, which are described in the [Route 53 Developer Guide](https://docs.aws.amazon.com... | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | digest_algorithm_mnemonic | Optional[pulumi.Input[str]] | def digest_algorithm_mnemonic(self) -> Optional[pulumi.Input[str]]:
"""
A string used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).
"""
return pulumi.get(self... |
A string used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).
| A string used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3]. | [
"A",
"string",
"used",
"to",
"represent",
"the",
"delegation",
"signer",
"digest",
"algorithm",
".",
"This",
"value",
"must",
"follow",
"the",
"guidelines",
"provided",
"by",
"[",
"RFC",
"-",
"8624",
"Section",
"3",
".",
"3",
"]",
"."
] | def digest_algorithm_mnemonic(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "digest_algorithm_mnemonic") | [
"def",
"digest_algorithm_mnemonic",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"digest_algorithm_mnemonic\"",
")"
] | A string used to represent the delegation signer digest algorithm. | [
"A",
"string",
"used",
"to",
"represent",
"the",
"delegation",
"signer",
"digest",
"algorithm",
"."
] | [
"\"\"\"\n A string used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | digest_algorithm_type | Optional[pulumi.Input[int]] | def digest_algorithm_type(self) -> Optional[pulumi.Input[int]]:
"""
An integer used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).
"""
return pulumi.get(self, ... |
An integer used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).
| An integer used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3]. | [
"An",
"integer",
"used",
"to",
"represent",
"the",
"delegation",
"signer",
"digest",
"algorithm",
".",
"This",
"value",
"must",
"follow",
"the",
"guidelines",
"provided",
"by",
"[",
"RFC",
"-",
"8624",
"Section",
"3",
".",
"3",
"]",
"."
] | def digest_algorithm_type(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "digest_algorithm_type") | [
"def",
"digest_algorithm_type",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"int",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"digest_algorithm_type\"",
")"
] | An integer used to represent the delegation signer digest algorithm. | [
"An",
"integer",
"used",
"to",
"represent",
"the",
"delegation",
"signer",
"digest",
"algorithm",
"."
] | [
"\"\"\"\n An integer used to represent the delegation signer digest algorithm. This value must follow the guidelines provided by [RFC-8624 Section 3.3](https://tools.ietf.org/html/rfc8624#section-3.3).\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | digest_value | Optional[pulumi.Input[str]] | def digest_value(self) -> Optional[pulumi.Input[str]]:
"""
A cryptographic digest of a DNSKEY resource record (RR). DNSKEY records are used to publish the public key that resolvers can use to verify DNSSEC signatures that are used to secure certain kinds of information provided by the DNS system.
... |
A cryptographic digest of a DNSKEY resource record (RR). DNSKEY records are used to publish the public key that resolvers can use to verify DNSSEC signatures that are used to secure certain kinds of information provided by the DNS system.
| A cryptographic digest of a DNSKEY resource record (RR). DNSKEY records are used to publish the public key that resolvers can use to verify DNSSEC signatures that are used to secure certain kinds of information provided by the DNS system. | [
"A",
"cryptographic",
"digest",
"of",
"a",
"DNSKEY",
"resource",
"record",
"(",
"RR",
")",
".",
"DNSKEY",
"records",
"are",
"used",
"to",
"publish",
"the",
"public",
"key",
"that",
"resolvers",
"can",
"use",
"to",
"verify",
"DNSSEC",
"signatures",
"that",
... | def digest_value(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "digest_value") | [
"def",
"digest_value",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"digest_value\"",
")"
] | A cryptographic digest of a DNSKEY resource record (RR). | [
"A",
"cryptographic",
"digest",
"of",
"a",
"DNSKEY",
"resource",
"record",
"(",
"RR",
")",
"."
] | [
"\"\"\"\n A cryptographic digest of a DNSKEY resource record (RR). DNSKEY records are used to publish the public key that resolvers can use to verify DNSSEC signatures that are used to secure certain kinds of information provided by the DNS system.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | dnskey_record | Optional[pulumi.Input[str]] | def dnskey_record(self) -> Optional[pulumi.Input[str]]:
"""
A string that represents a DNSKEY record.
"""
return pulumi.get(self, "dnskey_record") |
A string that represents a DNSKEY record.
| A string that represents a DNSKEY record. | [
"A",
"string",
"that",
"represents",
"a",
"DNSKEY",
"record",
"."
] | def dnskey_record(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "dnskey_record") | [
"def",
"dnskey_record",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"dnskey_record\"",
")"
] | A string that represents a DNSKEY record. | [
"A",
"string",
"that",
"represents",
"a",
"DNSKEY",
"record",
"."
] | [
"\"\"\"\n A string that represents a DNSKEY record.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | ds_record | Optional[pulumi.Input[str]] | def ds_record(self) -> Optional[pulumi.Input[str]]:
"""
A string that represents a delegation signer (DS) record.
"""
return pulumi.get(self, "ds_record") |
A string that represents a delegation signer (DS) record.
| A string that represents a delegation signer (DS) record. | [
"A",
"string",
"that",
"represents",
"a",
"delegation",
"signer",
"(",
"DS",
")",
"record",
"."
] | def ds_record(self) -> Optional[pulumi.Input[str]]:
return pulumi.get(self, "ds_record") | [
"def",
"ds_record",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"str",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"ds_record\"",
")"
] | A string that represents a delegation signer (DS) record. | [
"A",
"string",
"that",
"represents",
"a",
"delegation",
"signer",
"(",
"DS",
")",
"record",
"."
] | [
"\"\"\"\n A string that represents a delegation signer (DS) record.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
023207a66816b3da60908332a12259eef6b370be | rapzo/pulumi-aws | sdk/python/pulumi_aws/route53/key_signing_key.py | [
"ECL-2.0",
"Apache-2.0"
] | Python | flag | Optional[pulumi.Input[int]] | def flag(self) -> Optional[pulumi.Input[int]]:
"""
An integer that specifies how the key is used. For key-signing key (KSK), this value is always 257.
"""
return pulumi.get(self, "flag") |
An integer that specifies how the key is used. For key-signing key (KSK), this value is always 257.
| An integer that specifies how the key is used. For key-signing key (KSK), this value is always 257. | [
"An",
"integer",
"that",
"specifies",
"how",
"the",
"key",
"is",
"used",
".",
"For",
"key",
"-",
"signing",
"key",
"(",
"KSK",
")",
"this",
"value",
"is",
"always",
"257",
"."
] | def flag(self) -> Optional[pulumi.Input[int]]:
return pulumi.get(self, "flag") | [
"def",
"flag",
"(",
"self",
")",
"->",
"Optional",
"[",
"pulumi",
".",
"Input",
"[",
"int",
"]",
"]",
":",
"return",
"pulumi",
".",
"get",
"(",
"self",
",",
"\"flag\"",
")"
] | An integer that specifies how the key is used. | [
"An",
"integer",
"that",
"specifies",
"how",
"the",
"key",
"is",
"used",
"."
] | [
"\"\"\"\n An integer that specifies how the key is used. For key-signing key (KSK), this value is always 257.\n \"\"\""
] | [
{
"param": "self",
"type": null
}
] | {
"returns": [],
"raises": [],
"params": [
{
"identifier": "self",
"type": null,
"docstring": null,
"docstring_tokens": [],
"default": null,
"is_optional": null
}
],
"outlier_params": [],
"others": []
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.