This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
import time | |
import typing | |
def create_random_list(iterator_length: int) -> list[str]: | |
random_list = [] | |
for i in range(iterator_length): | |
random_list.append( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _walk_through(node: astroid.NodeNG): | |
for symbol in node.get_children(): | |
match symbol: | |
# check all classes | |
case astroid.ClassDef(): | |
_check_classes(symbol) | |
# check all functions with name "some_function_name" | |
case astroid.FunctionDef(name="some_function_name"): | |
_check_some_function_name(symbol) | |
case astroid.Expr( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
import time | |
values = [] | |
for i in range(10): | |
values.append("".join(random.choices(string.ascii_letters + string.digits, k=10))) | |
n = 500000 | |
print(f"Construct {n=} strings with these random values: {values=}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import string | |
import time | |
values = [] | |
for i in range(10): | |
values.append("".join(random.choices(string.ascii_letters + string.digits, k=10))) | |
n = 500000 | |
print(f"Construct {n=} dicts with these random values: {values=}") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter { | |
if [type] == "odoo" { | |
grok { | |
match => { "message" => "%{ODOOLOG}" } | |
} | |
date { | |
match => [ "timestamp", "yyyy-MM-dd HH:mm:ss,SSS" ] | |
} | |
} | |
} |