Datasets:
Dataset Viewer
project_name
string | class_name
string | class_modifiers
string | class_implements
int64 | class_extends
int64 | function_name
string | function_body
string | cyclomatic_complexity
int64 | NLOC
int64 | num_parameter
int64 | num_token
int64 | num_variable
int64 | start_line
int64 | end_line
int64 | function_index
int64 | function_params
string | function_variable
string | function_return_type
string | function_body_line_type
string | function_num_functions
int64 | function_num_lines
int64 | outgoing_function_count
int64 | outgoing_function_names
string | incoming_function_count
int64 | incoming_function_names
string | lexical_representation
string |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
run_rpc
|
def run_rpc():exec(open('plugins/discordrpc.py').read())
| 1
| 2
| 0
| 15
| 0
| 82
| 83
| 82
|
[]
|
None
|
{"Expr": 1}
| 3
| 2
| 3
|
["exec", "read", "open"]
| 0
|
[]
|
The function (run_rpc) defined within the public class called public.The function start at line 82 and ends at 83. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["exec", "read", "open"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
generate_encryption_key
|
def generate_encryption_key():"""Generates a random encryption key for Fernet cipher."""return Fernet.generate_key()
| 1
| 2
| 0
| 11
| 0
| 13
| 15
| 13
|
[]
|
Returns
|
{"Expr": 1, "Return": 1}
| 1
| 3
| 1
|
["Fernet.generate_key"]
| 0
|
[]
|
The function (generate_encryption_key) defined within the public class called public.The function start at line 13 and ends at 15. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["Fernet.generate_key"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
create_cipher
|
def create_cipher(key):"""Creates a Fernet cipher suite using the specified key."""return Fernet(key)
| 1
| 2
| 1
| 11
| 0
| 18
| 20
| 18
|
key
|
[]
|
Returns
|
{"Expr": 1, "Return": 1}
| 1
| 3
| 1
|
["Fernet"]
| 0
|
[]
|
The function (create_cipher) defined within the public class called public.The function start at line 18 and ends at 20. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, and It has 1.0 function called inside which is ["Fernet"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
encrypt_text
|
def encrypt_text(cipher_suite, text):"""Encrypts the given text using the Fernet cipher suite."""return cipher_suite.encrypt(text.encode())
| 1
| 2
| 2
| 19
| 0
| 23
| 25
| 23
|
cipher_suite,text
|
[]
|
Returns
|
{"Expr": 1, "Return": 1}
| 2
| 3
| 2
|
["cipher_suite.encrypt", "text.encode"]
| 0
|
[]
|
The function (encrypt_text) defined within the public class called public.The function start at line 23 and ends at 25. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [23.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["cipher_suite.encrypt", "text.encode"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
decrypt_text
|
def decrypt_text(cipher_suite, encrypted_text):"""Decrypts the encrypted text using the Fernet cipher suite."""return cipher_suite.decrypt(encrypted_text).decode()
| 1
| 2
| 2
| 19
| 0
| 28
| 30
| 28
|
cipher_suite,encrypted_text
|
[]
|
Returns
|
{"Expr": 1, "Return": 1}
| 2
| 3
| 2
|
["decode", "cipher_suite.decrypt"]
| 0
|
[]
|
The function (decrypt_text) defined within the public class called public.The function start at line 28 and ends at 30. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [28.0], and this function return a value. It declares 2.0 functions, and It has 2.0 functions called inside which are ["decode", "cipher_suite.decrypt"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
print_encrypted_and_decrypted
|
def print_encrypted_and_decrypted(encrypted_text, ):"""Prints the encrypted and decrypted versions of the text."""print("Encrypted text:", encrypted_text)
| 1
| 2
| 1
| 13
| 0
| 33
| 35
| 33
|
encrypted_text
|
[]
|
None
|
{"Expr": 2}
| 1
| 3
| 1
|
["print"]
| 0
|
[]
|
The function (print_encrypted_and_decrypted) defined within the public class called public.The function start at line 33 and ends at 35. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
save_encryption_info
|
def save_encryption_info(config, private_key, sys_encrypted_key):"""Saves the private key and system encrypted key to the configuration file."""config.set("main", "privatekey", str(private_key))config.set("main", "syscrypt", str(sys_encrypted_key))with open("./config/config.ini", "w") as configfile:config.write(configfile)
| 1
| 5
| 3
| 52
| 0
| 39
| 44
| 39
|
config,private_key,sys_encrypted_key
|
[]
|
None
|
{"Expr": 4, "With": 1}
| 6
| 6
| 6
|
["config.set", "str", "config.set", "str", "open", "config.write"]
| 0
|
[]
|
The function (save_encryption_info) defined within the public class called public.The function start at line 39 and ends at 44. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [39.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["config.set", "str", "config.set", "str", "open", "config.write"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
load_language
|
def load_language(language_code):try:language_path = f"{LANG_PATH}{language_code}.py"spec = importlib.util.spec_from_file_location(language_code, language_path)language_module = importlib.util.module_from_spec(spec)spec.loader.exec_module(language_module)return language_moduleexcept FileNotFoundError:print(f"Language file not found for {language_code}. Using default.")return None
| 2
| 10
| 1
| 53
| 3
| 12
| 22
| 12
|
language_code
|
['language_module', 'language_path', 'spec']
|
Returns
|
{"Assign": 3, "Expr": 2, "Return": 2, "Try": 1}
| 4
| 11
| 4
|
["importlib.util.spec_from_file_location", "importlib.util.module_from_spec", "spec.loader.exec_module", "print"]
| 0
|
[]
|
The function (load_language) defined within the public class called public.The function start at line 12 and ends at 22. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["importlib.util.spec_from_file_location", "importlib.util.module_from_spec", "spec.loader.exec_module", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
get_language
|
def get_language(config):try:with open(CONFIG_INI_PATH, "r") as config_file:config.read_file(config_file)lang = config.get("main", "language")except FileNotFoundError:print("The configuration file was not found.")raiseexcept KeyError:print("Language File Error. Please Restart tookie-osint To Fix This")raisereturn lang
| 3
| 12
| 1
| 51
| 1
| 25
| 36
| 25
|
config
|
['lang']
|
Returns
|
{"Assign": 1, "Expr": 3, "Return": 1, "Try": 1, "With": 1}
| 5
| 12
| 5
|
["open", "config.read_file", "config.get", "print", "print"]
| 15
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.example.article.views_py.ArticleListView.get_queryset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.admin_py.BaseTranslatableAdmin.get_queryset_language", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.forms_py.BaseTranslatableModelForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.managers_py.TranslatableQuerySet.translated", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.models_py.TranslatableModelMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.models_py.TranslatableModelMixin.set_current_language", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.templatetags.parler_tags_py.ObjectLanguageNode.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.templatetags.parler_tags_py.get_translated_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.tests.test_utils_py.UtilTestCase.test_get_language_no_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.tests.test_utils_py.UtilTestCase.test_get_language_with_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.conf_py.LanguagesSetting.get_active_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.context_py.smart_override.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.context_py.switch_language.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.i18n_py.get_null_language_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.sitetreeapp_py.SiteTree.init"]
|
The function (get_language) defined within the public class called public.The function start at line 25 and ends at 36. It contains 12 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["open", "config.read_file", "config.get", "print", "print"], It has 15.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.example.article.views_py.ArticleListView.get_queryset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.admin_py.BaseTranslatableAdmin.get_queryset_language", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.forms_py.BaseTranslatableModelForm.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.managers_py.TranslatableQuerySet.translated", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.models_py.TranslatableModelMixin.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.models_py.TranslatableModelMixin.set_current_language", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.templatetags.parler_tags_py.ObjectLanguageNode.render", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.templatetags.parler_tags_py.get_translated_field", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.tests.test_utils_py.UtilTestCase.test_get_language_no_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.tests.test_utils_py.UtilTestCase.test_get_language_with_fallback", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.conf_py.LanguagesSetting.get_active_choices", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.context_py.smart_override.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.context_py.switch_language.__init__", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3692573_django_parler_django_parler.parler.utils.i18n_py.get_null_language_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3719314_idlesign_django_sitetree.src.sitetree.sitetreeapp_py.SiteTree.init"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
redirects1
|
def redirects1(modes, input1):input2 = input(" β€· ")if input2 == "":lol = 1if input2 != "":modes += input1try:ars = bool(input2)return input1, modesexcept ValueError:print("Timeout Must Be A Number")if "-d" in input2:input1.replace("-d", "")
| 5
| 13
| 2
| 61
| 3
| 30
| 42
| 30
|
modes,input1
|
['ars', 'input2', 'lol']
|
Returns
|
{"Assign": 3, "AugAssign": 1, "Expr": 2, "If": 3, "Return": 1, "Try": 1}
| 4
| 13
| 4
|
["input", "bool", "print", "input1.replace"]
| 0
|
[]
|
The function (redirects1) defined within the public class called public.The function start at line 30 and ends at 42. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [30.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["input", "bool", "print", "input1.replace"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
list_proxys
|
def list_proxys(colorScheme):# Dictionary to map proxy types to file namesproxy_types = {"http": "http.txt","socks4": "socks4.txt","socks5": "socks5.txt",}input2 = input("TYPE:β€· ")if input2 == "":lol = 1# Retrieve file name from dictionaryfile_name = proxy_types.get(input2)if file_name:file_path = f"./proxys/{file_name}"if os.path.exists(file_path):with open(file_path, "r") as file:Lines = file.readlines()for count, line in enumerate(Lines, 1):print(f"Proxy {count}: {line.strip()}")else:print(colorScheme + f"Cant Find The Proxy File for {input2}!")print(Fore.RESET)else:# Case for invalid typeprint(colorScheme + "Invalid proxy type!") print(Fore.RESET)
| 5
| 23
| 1
| 123
| 6
| 45
| 71
| 45
|
colorScheme
|
['input2', 'Lines', 'proxy_types', 'file_name', 'lol', 'file_path']
|
None
|
{"Assign": 6, "Expr": 5, "For": 1, "If": 3, "With": 1}
| 12
| 27
| 12
|
["input", "proxy_types.get", "os.path.exists", "open", "file.readlines", "enumerate", "print", "line.strip", "print", "print", "print", "print"]
| 0
|
[]
|
The function (list_proxys) defined within the public class called public.The function start at line 45 and ends at 71. It contains 23 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 12.0 functions, and It has 12.0 functions called inside which are ["input", "proxy_types.get", "os.path.exists", "open", "file.readlines", "enumerate", "print", "line.strip", "print", "print", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
read_save
|
def read_save(colorScheme, slectpath):# Determine file path based on the select_path inputfile_path = Path.home() / "Downloads" / "usernames.tookie-osint" if slectpath == "" else slectpath# Check if the file exists and read itif os.path.exists(file_path):with open(file_path, "r") as file:lines = file.readlines()for line_number, line in enumerate(lines, start=1):print(f"Captured {line_number}: {line.strip()}")else:print(colorScheme + "Can't Find The Save File!")print(Fore.RESET)
| 4
| 10
| 2
| 84
| 2
| 74
| 87
| 74
|
colorScheme,slectpath
|
['file_path', 'lines']
|
None
|
{"Assign": 2, "Expr": 3, "For": 1, "If": 1, "With": 1}
| 9
| 14
| 9
|
["Path.home", "os.path.exists", "open", "file.readlines", "enumerate", "print", "line.strip", "print", "print"]
| 0
|
[]
|
The function (read_save) defined within the public class called public.The function start at line 74 and ends at 87. It contains 10 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [74.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["Path.home", "os.path.exists", "open", "file.readlines", "enumerate", "print", "line.strip", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
ping
|
def ping(colorScheme):headers = {"User-Agent": config["Personalizations"]["useragent"]}print(colorScheme + "Defaults to HTTPS.")print(Fore.RESET + " ")reqSite = input("Enter the URL of the site you want to ping: ")if not reqSite.startswith("https://") and not reqSite.startswith("http://"):urlFix = reqSite.split("//", 1)reqSite = urlFix[len(urlFix) - 1]# Account for people doing weird stuff like ftp:// insteadreqSite = f"https://{reqSite}"try:test = requests.get(reqSite, headers=headers)code = http.client.responses[test.status_code]print(Fore.RESET + f"Status code: {test.status_code} ({code})")except requests.ConnectionError as e:print(colorScheme + f"Connection error: {e}" + Fore.RESET)except Exception as e:print(colorScheme + f"Unknown error: {e}" + Fore.RESET)
| 5
| 19
| 1
| 149
| 5
| 90
| 112
| 90
|
colorScheme
|
['reqSite', 'test', 'code', 'headers', 'urlFix']
|
None
|
{"Assign": 7, "Expr": 5, "If": 1, "Try": 1}
| 11
| 23
| 11
|
["print", "print", "input", "reqSite.startswith", "reqSite.startswith", "reqSite.split", "len", "requests.get", "print", "print", "print"]
| 3
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695233_trigger_trigger.tests.test_utils_py.test_ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677179_matrixtm_mhddos.start_py.ToolsConsole.runConsole", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70288406_bigscience_workshop_petals.src.petals.utils.ping_py.ping_parallel"]
|
The function (ping) defined within the public class called public.The function start at line 90 and ends at 112. It contains 19 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["print", "print", "input", "reqSite.startswith", "reqSite.startswith", "reqSite.split", "len", "requests.get", "print", "print", "print"], It has 3.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3695233_trigger_trigger.tests.test_utils_py.test_ping", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69677179_matrixtm_mhddos.start_py.ToolsConsole.runConsole", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70288406_bigscience_workshop_petals.src.petals.utils.ping_py.ping_parallel"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
qexit
|
def qexit():exitInput = input("Exit? [Y/N]").lower()if exitInput == "y":exit(0)if exitInput == "n":print("Continuing....")
| 3
| 6
| 0
| 32
| 1
| 115
| 120
| 115
|
['exitInput']
|
None
|
{"Assign": 1, "Expr": 2, "If": 2}
| 4
| 6
| 4
|
["lower", "input", "exit", "print"]
| 0
|
[]
|
The function (qexit) defined within the public class called public.The function start at line 115 and ends at 120. It contains 6 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters and does not return any value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["lower", "input", "exit", "print"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
proxyCheck
|
def proxyCheck(colorScheme, modes, input1):typeInput = input("TYPE: β€· ")if typeInput != "":input2 = input("IP: β€·")if input2 == "":print("You need an IP, silly!")lol = 1if input2 != "":modes += input1input3 = input(" PORT: β€·")if input3 != "":try:# finish adding connectton optionsprxs = input2 + ":" + input3proxies = {"{typeInput}": prxs}#print("Proxy: " + input2 + ":" + input3)except requests.exceptions.ProxyError:print(colorScheme + "Proxy Error!" + Fore.RESET)print("")print(" Save Proxy To File?")saveProxy = input(" [Y/n]?β€· ").lower()if saveProxy == "y":with open("proxyList.txt", "a") as fp:fp.write(" \n" + input2 + ":" + input3)fp.close()elif saveProxy == "n":print("Continuing"+ Fore.RED+ "."+ Fore.GREEN+ "."+ Fore.YELLOW+ "."+ Fore.RESET)if input3 == "":print(" Where's the port?!")lol = 1return lolif typeInput == "":print("Needs Proxy Type!")if "-c" in input1:input1.replace("-c", "")
| 11
| 42
| 3
| 207
| 7
| 123
| 171
| 123
|
colorScheme,modes,input1
|
['input2', 'input3', 'saveProxy', 'prxs', 'lol', 'typeInput', 'proxies']
|
Returns
|
{"Assign": 8, "AugAssign": 1, "Expr": 10, "If": 9, "Return": 1, "Try": 1, "With": 1}
| 16
| 49
| 16
|
["input", "input", "print", "input", "print", "print", "print", "lower", "input", "open", "fp.write", "fp.close", "print", "print", "print", "input1.replace"]
| 0
|
[]
|
The function (proxyCheck) defined within the public class called public.The function start at line 123 and ends at 171. It contains 42 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [123.0], and this function return a value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["input", "input", "print", "input", "print", "print", "print", "lower", "input", "open", "fp.write", "fp.close", "print", "print", "print", "input1.replace"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
timeoutC
|
def timeoutC(modes, input1):input2 = input(" β€· ")if input2 == "":lol = 1return lolif input2 != "":modes += input1try:timeout = int(input2)return timeoutexcept ValueError:print("Timeout Must Be A Number")if "-t" in input2:input1.replace("-t", "")
| 5
| 14
| 2
| 61
| 3
| 174
| 188
| 174
|
modes,input1
|
['input2', 'lol', 'timeout']
|
Returns
|
{"Assign": 3, "AugAssign": 1, "Expr": 2, "If": 3, "Return": 2, "Try": 1}
| 4
| 15
| 4
|
["input", "int", "print", "input1.replace"]
| 0
|
[]
|
The function (timeoutC) defined within the public class called public.The function start at line 174 and ends at 188. It contains 14 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [174.0], and this function return a value. It declares 4.0 functions, and It has 4.0 functions called inside which are ["input", "int", "print", "input1.replace"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
darktookie
|
def darktookie(colorScheme, console, uname):# clears the terminal when Dark tookie-osint is ranos.system("cls" if os.name == "nt" else "clear")test = Falselol = 0inputnum = 0start = FalsesiteList = []modes = ""iptext = ""try:rp = requests.get("http://ipecho.net/plain")iptext = rp.textexcept ConnectionError:print("Connection Error! Cant Get Ip Address.")print(Fore.BLACK+ """,βββ¦β¦β¦βββββ β β©βββ"ββββ¬β ββ¦,,Ξ¦β β©" ,ββββ,β@β β© *βββββββββββ, β¬β¬, β¬β ββΒ΅ββββ β¬β Β΅β β β©ββββββ β©ββ β¬β¦βββ β β β β jβββ β β©ββ βββββ β ββ β ββββ β¬β β β©ββββ β βββ Οβββ ββ¬β β β β©`βββ,β β¬ β β β¦ββββ,,,β,β β ββ¬` ββββββββββββ #β β© ,@β¦ ββββ@β β©`"ββ β ββΟΟΟΟ@ββ β β©βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ """)print("Searching The DarkWeb For Usernames With: " + uname + ".")print("Your Ip Is: " + iptext)print(colorScheme+ "===================================================================="+ Fore.RESET)print("""Caution! By Using This Might ExposeYou To Dangerous Websites Or Content.Read More On The Doc's https://github.com/alfredredbird/tookie-osint/wiki""")print(colorScheme+ "===================================================================="+ Fore.RESET)input1 = input("β€·")while test != True:if input1 != "":# if there is a problem with this code its prob thisif "-tp" in input1:torPassword = input("Tor Password:β€·").lower()if "-s" in input1:input2 = input("Are You Sure? [Y/N]? β€· ").lower()if input2 == "":lol = 1if input2 != "":if input2 == "y":input3 = input("100% Sure? [Y/N]? β€· ").lower()if input2 != "":if input2 == "y":#modes += input1#inputnum += input2print("Ok..")start = Trueif input2 == "n":test = Falseinput1 = ""print("Ok! Returing To tookie-osint.")time.sleep(2)return testif input2 == "n":test = Falseinput1 = ""print("Ok! Returing To tookie-osint.")time.sleep(2)return testif "" in input1 and inputnum != "":test = Trueinputnum = ""if start:try:with open("sites.json", "r") as f:for jsonObj in f:siteDic = json.loads(jsonObj)siteList.append(siteDic)except FileNotFoundError:print(colorScheme + "Cant Find Site File")exit(-1)except json.JSONDecodeError:print(colorScheme + "Error With Site File" + Fore.RESET)exit(-9)dir_path = Path.home() / "Downloads"file_name = "usernames.txt"file_path = os.path.join(dir_path, file_name)# check if the directory existsif os.path.exists(dir_path):# create the fileprint(" ")print("Creating / Overwriting Save File.")else:print("Directory doesn't exist.")with open(file_path, "w") as f:for site in siteList:with console.status("Working....") as status:siteN = site["site"]try:tr = TorRequest(password=torPassword)tr.reset_identity()response = tr.get(siteN + uname)if (TorRequest.status_code >= 200and TorRequest.status_code >= 300):print("["+ Fore.GREEN+ "+"+ Fore.RESET+ "] "+ siteN+ uname)f.write("[" + "+" + "] " + siteN + uname + "\n")except ConnectionError:print("Connection Error!")
| 25
| 130
| 3
| 495
| 19
| 191
| 334
| 191
|
colorScheme,console,uname
|
['siteDic', 'test', 'input3', 'lol', 'file_path', 'siteList', 'dir_path', 'rp', 'iptext', 'inputnum', 'input2', 'input1', 'response', 'siteN', 'torPassword', 'start', 'modes', 'tr', 'file_name']
|
Returns
|
{"Assign": 28, "Expr": 25, "For": 2, "If": 14, "Return": 2, "Try": 3, "While": 1, "With": 3}
| 42
| 144
| 42
|
["os.system", "requests.get", "print", "print", "print", "print", "print", "print", "print", "input", "lower", "input", "lower", "input", "lower", "input", "print", "print", "time.sleep", "print", "time.sleep", "open", "json.loads", "siteList.append", "print", "exit", "print", "exit", "Path.home", "os.path.join", "os.path.exists", "print", "print", "print", "open", "console.status", "TorRequest", "tr.reset_identity", "tr.get", "print", "f.write", "print"]
| 0
|
[]
|
The function (darktookie) defined within the public class called public.The function start at line 191 and ends at 334. It contains 130 lines of code and it has a cyclomatic complexity of 25. It takes 3 parameters, represented as [191.0], and this function return a value. It declares 42.0 functions, and It has 42.0 functions called inside which are ["os.system", "requests.get", "print", "print", "print", "print", "print", "print", "print", "input", "lower", "input", "lower", "input", "lower", "input", "print", "print", "time.sleep", "print", "time.sleep", "open", "json.loads", "siteList.append", "print", "exit", "print", "exit", "Path.home", "os.path.join", "os.path.exists", "print", "print", "print", "open", "console.status", "TorRequest", "tr.reset_identity", "tr.get", "print", "f.write", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
printFiles
|
def printFiles():# ha ha Only Files. Sounds like something else, I wonder what? (Only Fans)onlyfiles = [f for f in listdir("./") if isfile(join("./", f))]return onlyfiles
| 3
| 3
| 0
| 28
| 1
| 337
| 340
| 337
|
['onlyfiles']
|
Returns
|
{"Assign": 1, "Return": 1}
| 3
| 4
| 3
|
["listdir", "isfile", "join"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.dirList"]
|
The function (printFiles) defined within the public class called public.The function start at line 337 and ends at 340. It contains 3 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["listdir", "isfile", "join"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.dirList"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
dirList
|
def dirList():# gets the files in ./tookie-osintmy_list = printFiles()columns = 3spaces = ""# prints the files neetlyfor first, second, third in zip(my_list[::columns], my_list[1::columns], my_list[2::columns]):print(f"{Fore.RED + first: <10}{spaces}{Fore.GREEN + second: <10}{spaces}{Fore.BLUE + third + Fore.RESET}")
| 2
| 10
| 0
| 50
| 3
| 343
| 354
| 343
|
['spaces', 'my_list', 'columns']
|
None
|
{"Assign": 3, "Expr": 1, "For": 1}
| 3
| 12
| 3
|
["printFiles", "zip", "print"]
| 0
|
[]
|
The function (dirList) defined within the public class called public.The function start at line 343 and ends at 354. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters and does not return any value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["printFiles", "zip", "print"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
catFile
|
def catFile(colorScheme):file_path = input("Filname:β€· ")try:with open(file_path, "r") as f:for jsonObj in f:siteDic = json.loads(jsonObj)print(siteDic)except FileNotFoundError:print(colorScheme + "Cant Find Site File")except json.JSONDecodeError:print(colorScheme + "Error With Site File" + Fore.RESET)
| 4
| 11
| 1
| 64
| 2
| 357
| 368
| 357
|
colorScheme
|
['file_path', 'siteDic']
|
None
|
{"Assign": 2, "Expr": 3, "For": 1, "Try": 1, "With": 1}
| 6
| 12
| 6
|
["input", "open", "json.loads", "print", "print", "print"]
| 0
|
[]
|
The function (catFile) defined within the public class called public.The function start at line 357 and ends at 368. It contains 11 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["input", "open", "json.loads", "print", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
scriptDownloader
|
def scriptDownloader(sitePaths, extinsion, count):file1 = open(sitePaths, "r")Lines = file1.readlines()L = [Lines]for line in Lines:count += 1# downloads the file from the siteprint("Downloading File: " + line)url = liner = requests.get(url, allow_redirects=True)try:open(globalPath(config) + "file" + str(count) + extinsion, "wb").write(r.content)except FileNotFoundError:print("Cant Find Site! " + "Skiping!")except OSError:print("Permission Error")
| 4
| 17
| 3
| 101
| 5
| 371
| 388
| 371
|
sitePaths,extinsion,count
|
['Lines', 'r', 'L', 'url', 'file1']
|
None
|
{"Assign": 5, "AugAssign": 1, "Expr": 4, "For": 1, "Try": 1}
| 10
| 18
| 10
|
["open", "file1.readlines", "print", "requests.get", "write", "open", "globalPath", "str", "print", "print"]
| 0
|
[]
|
The function (scriptDownloader) defined within the public class called public.The function start at line 371 and ends at 388. It contains 17 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [371.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["open", "file1.readlines", "print", "requests.get", "write", "open", "globalPath", "str", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
errorCodes
|
def errorCodes(ec):ec = 1return ec
| 1
| 3
| 1
| 10
| 1
| 391
| 393
| 391
|
ec
|
['ec']
|
Returns
|
{"Assign": 1, "Return": 1}
| 0
| 3
| 0
|
[]
| 0
|
[]
|
The function (errorCodes) defined within the public class called public.The function start at line 391 and ends at 393. It contains 3 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
download_images
|
def download_images(image_urls, output_directory):for url in image_urls:try:image_filename = os.path.join(output_directory, os.path.basename(url))wget.download(url, image_filename)print(f"Downloaded: {image_filename}")except Exception as e:print(f"Error downloading image: {e}")
| 3
| 8
| 2
| 56
| 1
| 397
| 404
| 397
|
image_urls,output_directory
|
['image_filename']
|
None
|
{"Assign": 1, "Expr": 3, "For": 1, "Try": 1}
| 5
| 8
| 5
|
["os.path.join", "os.path.basename", "wget.download", "print", "print"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod"]
|
The function (download_images) defined within the public class called public.The function start at line 397 and ends at 404. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [397.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["os.path.join", "os.path.basename", "wget.download", "print", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
download_videos
|
def download_videos(video_urls, output_directory):for url in video_urls:try:video_filename = os.path.join(output_directory, os.path.basename(url))wget.download(url, video_filename)print(f"Downloaded: {video_filename}")except Exception as e:print(f"Error downloading video: {e}")
| 3
| 8
| 2
| 56
| 1
| 408
| 415
| 408
|
video_urls,output_directory
|
['video_filename']
|
None
|
{"Assign": 1, "Expr": 3, "For": 1, "Try": 1}
| 5
| 8
| 5
|
["os.path.join", "os.path.basename", "wget.download", "print", "print"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod"]
|
The function (download_videos) defined within the public class called public.The function start at line 408 and ends at 415. It contains 8 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [408.0] and does not return any value. It declares 5.0 functions, It has 5.0 functions called inside which are ["os.path.join", "os.path.basename", "wget.download", "print", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
globalPath
|
def globalPath(config):config.read("./config/config.ini")path = config.get("main", "defaultDlPath")return path
| 1
| 4
| 1
| 23
| 1
| 418
| 421
| 418
|
config
|
['path']
|
Returns
|
{"Assign": 1, "Expr": 1, "Return": 1}
| 2
| 4
| 2
|
["config.read", "config.get"]
| 4
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.scriptDownloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.scanmodules_py.siteDownloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.siteListGen_py.siteListGen"]
|
The function (globalPath) defined within the public class called public.The function start at line 418 and ends at 421. It contains 4 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 2.0 functions, It has 2.0 functions called inside which are ["config.read", "config.get"], It has 4.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.imgandVidDownlaod", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.modules_py.scriptDownloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.scanmodules_py.siteDownloader", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.siteListGen_py.siteListGen"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
imgandVidDownlaod
|
def imgandVidDownlaod(input2):url = input2output_directory = globalPath(config)# Create the output directory if it doesn't existos.makedirs(output_directory, exist_ok=True)# Send an HTTP GET request to the URLresponse = requests.get(url)if response.status_code == 200:soup = BeautifulSoup(response.text, "html.parser")# Find and download imagesimg_tags = soup.find_all("img")img_urls = [img["src"] for img in img_tags if "src" in img.attrs]download_images(img_urls, output_directory)# Find and download videos (you might need to adjust this for specific websites)video_tags = soup.find_all("video")video_urls = [video["src"] for video in video_tags if "src" in video.attrs]download_videos(video_urls, output_directory)else:print(f"Failed to fetch the URL. Status code: {response.status_code}")
| 6
| 15
| 1
| 120
| 8
| 424
| 446
| 424
|
input2
|
['soup', 'output_directory', 'video_tags', 'url', 'img_urls', 'response', 'video_urls', 'img_tags']
|
None
|
{"Assign": 8, "Expr": 4, "If": 1}
| 9
| 23
| 9
|
["globalPath", "os.makedirs", "requests.get", "BeautifulSoup", "soup.find_all", "download_images", "soup.find_all", "download_videos", "print"]
| 0
|
[]
|
The function (imgandVidDownlaod) defined within the public class called public.The function start at line 424 and ends at 446. It contains 15 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["globalPath", "os.makedirs", "requests.get", "BeautifulSoup", "soup.find_all", "download_images", "soup.find_all", "download_videos", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
get_random_string
|
def get_random_string(length):# choose from all lowercase letterletters = string.ascii_lowercaseresult_str = "".join(random.choice(letters) for i in range(length))return result_str
| 2
| 4
| 1
| 32
| 2
| 449
| 453
| 449
|
length
|
['letters', 'result_str']
|
Returns
|
{"Assign": 2, "Return": 1}
| 3
| 5
| 3
|
["join", "random.choice", "range"]
| 5
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70017200_azure_az_hop.playbooks.roles.ood_applications.files.bc_amlsdk.template.amlwrapperfunctions_py.runjob", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_distinct_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_distinct_signatures_not_in_maintainers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_non_distinct_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.siteListGen_py.siteListGen"]
|
The function (get_random_string) defined within the public class called public.The function start at line 449 and ends at 453. It contains 4 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["join", "random.choice", "range"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70017200_azure_az_hop.playbooks.roles.ood_applications.files.bc_amlsdk.template.amlwrapperfunctions_py.runjob", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_distinct_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_distinct_signatures_not_in_maintainers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94501511_fepitre_qubes_builderv2.tests.test_scripts_py.test_repository_with_multiple_non_distinct_signatures", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.siteListGen_py.siteListGen"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
emptyModule
|
def emptyModule():"""This Module is empty and does nothing. Its for when tookie-osint needs to return something"""return True
| 1
| 2
| 0
| 7
| 0
| 456
| 460
| 456
|
[]
|
Returns
|
{"Expr": 1, "Return": 1}
| 0
| 5
| 0
|
[]
| 0
|
[]
|
The function (emptyModule) defined within the public class called public.The function start at line 456 and ends at 460. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
parse_args
|
def parse_args():parser = argparse.ArgumentParser(description="tookie-osint OSINT Tool (Command-Line)")parser.add_argument("-s", "--scan",action="store_true",help="Run tookie-osint scan")parser.add_argument("-u", "--username", type=str,help="Specify target username(s) (comma-separated)")parser.add_argument("-f", "--fast",action="store_true",help="Run tookie-osint with a fast scan")parser.add_argument("-w", "--webscrape",action="store_true",help="Run tookie-osint with the webscraper")parser.add_argument("-o", "--otherfile", type=str,help="Specify custom site list")parser.add_argument("-a", "--all",action="store_true",help="Shows all scanned sites")parser.add_argument("-d", "--debug",action="store_true",help="Runs tookie-osint In Debug Mode")return parser.parse_args()
| 1
| 37
| 0
| 132
| 1
| 463
| 499
| 463
|
['parser']
|
Returns
|
{"Assign": 1, "Expr": 7, "Return": 1}
| 9
| 37
| 9
|
["argparse.ArgumentParser", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.parse_args"]
| 19
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.extract_figures_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.lesson_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.repo_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917252_pwman3_pwman3.pwman.ui.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928026_paul_nameless_tg.tg.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951972_ekalinin_nodeenv.nodeenv_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.FmtStr.from_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.fmtstr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.pysep_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.recsec_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76294275_zeek_package_manager.zkg_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80534283_globality_corp_microcosm_flask.microcosm_flask.runserver_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.81555999_fetchcord_fetchcord.fetch_cord.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.tookie_osint.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95136588_UoA_CARES_cares_reinforcement_learning.cares_reinforcement_learning.util.plotter_py.plot_evaluations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.gw_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevel.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevelChained.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95345540_smokin_salmon_smoked_salmon.salmon.converter.m3ercat_py.main"]
|
The function (parse_args) defined within the public class called public.The function start at line 463 and ends at 499. It contains 37 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 9.0 functions, It has 9.0 functions called inside which are ["argparse.ArgumentParser", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.add_argument", "parser.parse_args"], It has 19.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.extract_figures_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.lesson_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.repo_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917252_pwman3_pwman3.pwman.ui.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928026_paul_nameless_tg.tg.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951972_ekalinin_nodeenv.nodeenv_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.FmtStr.from_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.fmtstr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.pysep_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.recsec_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76294275_zeek_package_manager.zkg_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80534283_globality_corp_microcosm_flask.microcosm_flask.runserver_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.81555999_fetchcord_fetchcord.fetch_cord.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.tookie_osint.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95136588_UoA_CARES_cares_reinforcement_learning.cares_reinforcement_learning.util.plotter_py.plot_evaluations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.gw_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevel.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevelChained.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95345540_smokin_salmon_smoked_salmon.salmon.converter.m3ercat_py.main"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
csvmaker
|
def csvmaker(input_file, output_file, string_list):# Open the input text file for readingwith open(input_file, 'r') as txt_file:# Read lines from the text filelines = txt_file.readlines()# Remove newline characters from each linelines = [line.strip() for line in lines]# Split each line into date and URLdata = [(line[:10], line[12:]) for line in lines]# Open the output CSV file for writingwith open(output_file, 'w', newline='') as csv_file:#checks and counts how many sites work and dontminus_count = 0plus_count = 0for s in string_list:minus_count += s.count('-')plus_count += s.count('+')# Create a CSV writercsv_writer = csv.writer(csv_file)# Write header to the CSV filecsv_writer.writerow(['Date', 'URL'])# Write data to the CSV filecsv_writer.writerows(data)print("Done With CSV!")print("Working: " + str(plus_count) + " Not Working: " + str(minus_count))
| 4
| 16
| 3
| 145
| 5
| 503
| 533
| 503
|
input_file,output_file,string_list
|
['lines', 'plus_count', 'minus_count', 'csv_writer', 'data']
|
None
|
{"Assign": 6, "AugAssign": 2, "Expr": 4, "For": 1, "With": 2}
| 13
| 31
| 13
|
["open", "txt_file.readlines", "line.strip", "open", "s.count", "s.count", "csv.writer", "csv_writer.writerow", "csv_writer.writerows", "print", "print", "str", "str"]
| 0
|
[]
|
The function (csvmaker) defined within the public class called public.The function start at line 503 and ends at 533. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [503.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called inside which are ["open", "txt_file.readlines", "line.strip", "open", "s.count", "s.count", "csv.writer", "csv_writer.writerow", "csv_writer.writerows", "print", "print", "str", "str"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
loadHeaders
|
def loadHeaders(config):headers = []try: with open("proxys/headers.txt") as h:for line in h:headers.append(line.strip()) return headersexcept Exception as e:try: install = input("Looks Like You Dont Have A User Agent File! Want To Download One? (948kb) [y/n]: ") if install.lower() == "y":response = requests.get("https://raw.githubusercontent.com/alfredredbird/user-agentl-ist/main/header.txt")# Check if the request was successful (status code 200)if response.status_code == 200:# Extract text content from the responsetext_content = response.textlines = text_content.splitlines()text_content = '\n'.join(lines)# Create the directory if it doesn't existdirectory = os.path.dirname("proxys/")if not os.path.exists(directory):os.makedirs(directory)# Write the text content to the filewith open("proxys/headers.txt", 'w', encoding='utf-8') as file:file.write(text_content)print(f"Agent File Saved To proxys/headers.txt")time.sleep(3)else:print(f"Failed to fetch content from https://raw.githubusercontent.com/alfredredbird/user-agentl-ist/main/header.txt. Status code: {response.status_code}") else:print("Ok! Now Using User Agent In Config File.")return config.get("main","userandomuseragents")except KeyboardInterrupt:print("Ok! Now Using User Agent In Config File.")return config.get("main","userandomuseragents")
| 7
| 31
| 1
| 189
| 6
| 537
| 574
| 537
|
config
|
['directory', 'headers', 'install', 'response', 'lines', 'text_content']
|
Returns
|
{"Assign": 7, "Expr": 8, "For": 1, "If": 3, "Return": 3, "Try": 2, "With": 2}
| 20
| 38
| 20
|
["open", "headers.append", "line.strip", "input", "install.lower", "requests.get", "text_content.splitlines", "join", "os.path.dirname", "os.path.exists", "os.makedirs", "open", "file.write", "print", "time.sleep", "print", "print", "config.get", "print", "config.get"]
| 0
|
[]
|
The function (loadHeaders) defined within the public class called public.The function start at line 537 and ends at 574. It contains 31 lines of code and it has a cyclomatic complexity of 7. The function does not take any parameters, and this function return a value. It declares 20.0 functions, and It has 20.0 functions called inside which are ["open", "headers.append", "line.strip", "input", "install.lower", "requests.get", "text_content.splitlines", "join", "os.path.dirname", "os.path.exists", "os.makedirs", "open", "file.write", "print", "time.sleep", "print", "print", "config.get", "print", "config.get"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
get_local_ip
|
def get_local_ip():try:# Create a socket objects = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)# Connect to a public DNS server (Google's)s.connect(("8.8.8.8", 80))# Get the socket's own addressip = s.getsockname()[0]s.close()return ipexcept Exception as e:print(f"Error: {e}")return None
| 2
| 10
| 0
| 59
| 2
| 576
| 588
| 576
|
['s', 'ip']
|
Returns
|
{"Assign": 2, "Expr": 3, "Return": 2, "Try": 1}
| 5
| 13
| 5
|
["socket.socket", "s.connect", "s.getsockname", "s.close", "print"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.printmodules_py.logo", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95285740_lightinglibs_flux_led.examples.mockdevice_py.MagicHomeDiscoveryProtocol.__init__"]
|
The function (get_local_ip) defined within the public class called public.The function start at line 576 and ends at 588. It contains 10 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It declares 5.0 functions, It has 5.0 functions called inside which are ["socket.socket", "s.connect", "s.getsockname", "s.close", "print"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.printmodules_py.logo", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95285740_lightinglibs_flux_led.examples.mockdevice_py.MagicHomeDiscoveryProtocol.__init__"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
get_site_names
|
def get_site_names(json_path="sites/emailsites.json"):try:with open(json_path, "r") as file:data = json.load(file)# Return the keys of the JSON object as a listreturn list(data.keys())except FileNotFoundError:print(f"File not found: {json_path}")return []except json.JSONDecodeError:print("Error decoding JSON.")return []
| 3
| 11
| 1
| 59
| 1
| 590
| 601
| 590
|
json_path
|
['data']
|
Returns
|
{"Assign": 1, "Expr": 2, "Return": 3, "Try": 1, "With": 1}
| 6
| 12
| 6
|
["open", "json.load", "list", "data.keys", "print", "print"]
| 0
|
[]
|
The function (get_site_names) defined within the public class called public.The function start at line 590 and ends at 601. It contains 11 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["open", "json.load", "list", "data.keys", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
pluginUpdater
|
def pluginUpdater():config_path = 'config/config.ini'config = configparser.ConfigParser()config.read(config_path)# Ensure 'Plugins' section exists, create it if notif not config.has_section('Plugins'):config.add_section('Plugins')# List files in the /plugins/ directoryplugins_dir = 'plugins'plugin_files = [f for f in os.listdir(plugins_dir) if os.path.isfile(os.path.join(plugins_dir, f))]# Update the 'Plugins' section in the configfor plugin_name in config.options('Plugins'):# Check if the corresponding file exists, remove entry if not foundif f"{plugin_name}.py" not in plugin_files:config.remove_option('Plugins', plugin_name)# Add or update entries for existing filesfor plugin_file in plugin_files:# Remove file extension (assuming .py extension for plugins)plugin_name = os.path.splitext(plugin_file)[0]# Check if the variable is already defined, if not, set 'true'if not config.has_option('Plugins', plugin_name):config.set('Plugins', plugin_name, 'true')# Save the updated config to filewith open(config_path, 'w') as config_file:config.write(config_file)print("Config updated")
| 8
| 18
| 0
| 154
| 5
| 6
| 38
| 6
|
['config', 'plugin_files', 'plugins_dir', 'config_path', 'plugin_name']
|
None
|
{"Assign": 5, "Expr": 6, "For": 2, "If": 3, "With": 1}
| 15
| 33
| 15
|
["configparser.ConfigParser", "config.read", "config.has_section", "config.add_section", "os.listdir", "os.path.isfile", "os.path.join", "config.options", "config.remove_option", "os.path.splitext", "config.has_option", "config.set", "open", "config.write", "print"]
| 0
|
[]
|
The function (pluginUpdater) defined within the public class called public.The function start at line 6 and ends at 38. It contains 18 lines of code and it has a cyclomatic complexity of 8. The function does not take any parameters and does not return any value. It declares 15.0 functions, and It has 15.0 functions called inside which are ["configparser.ConfigParser", "config.read", "config.has_section", "config.add_section", "os.listdir", "os.path.isfile", "os.path.join", "config.options", "config.remove_option", "os.path.splitext", "config.has_option", "config.set", "open", "config.write", "print"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
toggle_plugin_status
|
def toggle_plugin_status(plugin_name, new_status):# Read config.iniconfig_path = 'config/config.ini'config = configparser.ConfigParser()config.read(config_path)# Ensure 'Plugins' section exists, create it if notif not config.has_section('Plugins'):config.add_section('Plugins')# Check if the plugin exists in the configif config.has_option('Plugins', plugin_name):# Update the status of the plugin only if it is not already definedif not config.getboolean('Plugins', plugin_name, fallback=False):config.set('Plugins', plugin_name, str(new_status).lower())print(f"Status of {plugin_name} toggled to {new_status}")# Save the updated config to filewith open(config_path, 'w') as config_file:config.write(config_file)else:print(f"Plugin {plugin_name} is already defined in the config")else:print(f"Plugin {plugin_name} not found in the config")
| 4
| 16
| 2
| 115
| 2
| 41
| 64
| 41
|
plugin_name,new_status
|
['config', 'config_path']
|
None
|
{"Assign": 2, "Expr": 7, "If": 3, "With": 1}
| 14
| 24
| 14
|
["configparser.ConfigParser", "config.read", "config.has_section", "config.add_section", "config.has_option", "config.getboolean", "config.set", "lower", "str", "print", "open", "config.write", "print", "print"]
| 0
|
[]
|
The function (toggle_plugin_status) defined within the public class called public.The function start at line 41 and ends at 64. It contains 16 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [41.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions called inside which are ["configparser.ConfigParser", "config.read", "config.has_section", "config.add_section", "config.has_option", "config.getboolean", "config.set", "lower", "str", "print", "open", "config.write", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
list_plugin_status
|
def list_plugin_status():# Read config.iniconfig_path = 'config/config.ini'config = configparser.ConfigParser()config.read(config_path)# Ensure 'Plugins' section existsif config.has_section('Plugins'):# Check if all plugins are disabledall_disabled = all(not config.getboolean('Plugins', plugin_name, fallback=False) for plugin_name in config.options('Plugins'))if all_disabled:print("All plugins are disabled.")else:# Print names and statuses of plugins that are enabledfor plugin_name in config.options('Plugins'):plugin_status = config.getboolean('Plugins', plugin_name, fallback=False)if plugin_status:print(f"{plugin_name}: {'Enabled'}")else:print("No 'Plugins' section found in the config")
| 6
| 15
| 0
| 102
| 4
| 67
| 87
| 67
|
['config', 'config_path', 'plugin_status', 'all_disabled']
|
None
|
{"Assign": 4, "Expr": 4, "For": 1, "If": 3}
| 11
| 21
| 11
|
["configparser.ConfigParser", "config.read", "config.has_section", "all", "config.getboolean", "config.options", "print", "config.options", "config.getboolean", "print", "print"]
| 0
|
[]
|
The function (list_plugin_status) defined within the public class called public.The function start at line 67 and ends at 87. It contains 15 lines of code and it has a cyclomatic complexity of 6. The function does not take any parameters and does not return any value. It declares 11.0 functions, and It has 11.0 functions called inside which are ["configparser.ConfigParser", "config.read", "config.has_section", "all", "config.getboolean", "config.options", "print", "config.options", "config.getboolean", "print", "print"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
print_and_run_plugins
|
def print_and_run_plugins():# Read config.iniconfig_path = 'config/config.ini'config = configparser.ConfigParser()config.read(config_path)# Ensure 'Plugins' section existsif config.has_section('Plugins'):enabled_plugins = [plugin_name for plugin_name in config.options('Plugins') if config.getboolean('Plugins', plugin_name, fallback=False)]if not enabled_plugins:print("All plugins are disabled.")returnprint()print("Choose a plugin to run:")for index, plugin_name in enumerate(enabled_plugins, start=1):print(f"[{index}] {plugin_name}")try:choice = int(input("Enter the number of the plugin to run: "))if 1 <= choice <= len(enabled_plugins):selected_plugin = enabled_plugins[choice - 1]plugin_dir = config.get('main', 'pluginfolder')print(f"Running plugin: {selected_plugin}")if os.name == 'nt': process = subprocess.Popen(['python.exe', f'{plugin_dir}/{selected_plugin}.py'])else: process = subprocess.Popen(['python3', f'{plugin_dir}/{selected_plugin}.py']) process.wait()else:print("Invalid choice. Please enter a valid number.")except ValueError:print("Invalid input. Please enter a number.")else:print("No 'Plugins' section found in the config")
| 9
| 31
| 0
| 193
| 7
| 90
| 126
| 90
|
['config', 'enabled_plugins', 'config_path', 'selected_plugin', 'plugin_dir', 'choice', 'process']
|
None
|
{"Assign": 8, "Expr": 10, "For": 1, "If": 4, "Return": 1, "Try": 1}
| 21
| 37
| 21
|
["configparser.ConfigParser", "config.read", "config.has_section", "config.options", "config.getboolean", "print", "print", "print", "enumerate", "print", "int", "input", "len", "config.get", "print", "subprocess.Popen", "subprocess.Popen", "process.wait", "print", "print", "print"]
| 0
|
[]
|
The function (print_and_run_plugins) defined within the public class called public.The function start at line 90 and ends at 126. It contains 31 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters and does not return any value. It declares 21.0 functions, and It has 21.0 functions called inside which are ["configparser.ConfigParser", "config.read", "config.has_section", "config.options", "config.getboolean", "print", "print", "print", "enumerate", "print", "int", "input", "len", "config.get", "print", "subprocess.Popen", "subprocess.Popen", "process.wait", "print", "print", "print"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
logo
|
def logo(colorScheme, uname, version, config):config.read("./config/config.ini")browser = config.get("main", "browser")prerelease = config.get("main", "prerelease")line1 = config.get("Personalizations", "showline1")line2 = config.get("Personalizations", "showline2")line3 = config.get("Personalizations", "showline3")os.system("cls" if os.name == "nt" else "clear")print(colorScheme+ """ ,,,,, βββββββββββββββββββββ₯ ββββββββ¨ββ ββββββββββββββββ¨β ,βββββββββββ₯,ββββββ Ξ¦ββββ¨β ββββββββ,,,,,,,βββββββββββ βββββ βββββ,=ββββββββββββββΒ»βββββββββ ,ββββ¨Γ¦ βββββ€βββββββ£β£ββ£β£ββββββββββββ ββββ ββββ,βββ¬βββββββ«ββββββββββ¬β β β«βββ ββββ^βββββββ βββββ£β¬βββββ«βββ]ββ«βββ«βββ¬βββ βββ ββββββββββββ¬ββββββ β«βQ'βββββ«ββββββββ ββββ]βββΟβββββββββ βΒ»,βββ¬βββββββββββββββββββββββ«ββΞ βββ βββββββ βββ¬β¬β©ββ«βββ ββββββ«ββββββ«ββΒ΅β«ββββββββββββββββ£β¬βββ ββββββββ ββββ βββ«ββββββ" βββββ¬ββββββββββββ©βββββ ββββββββ βΏ βββ βββ~ .βββ¬βββββββββββββββ£ββββββββββ,ΒͺΓ]βββ ββββ,β«βββββββ¬βββββββββββββ β¬ββββββββΒ΅βΒ΅ βββ ββββ β` βββββββββββββββββββββββββββββββ΄ββββββββββββββββββ¬βββ¬β¬β£βββββββββββββββββΒ΅ ,βββββββββ¬ββββββββββββββββββββββββββββββββ ββββΞββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ """+ Fore.RESET+ """By Alfredredbird"""+ """Twiter: @alfredredbird1"""+ colorScheme+ """ """+ Fore.RESET+ f"""{language_module.title1}""")## prints os infomationprint(Fore.RESET+ "===========================================================================")print("")print(colorScheme + language_module.disclamer)print(Fore.RESET + " ")if line1 == "yes":print(" "+ "OS:"+ f"Tookie {language_module.version}:")print(" "+ platform.system()+ " "+ platform.release()+ " "+ version)print("")if line2 == "yes":print(" " + "Host:" + "Prerelease:")print(" "+ str(platform.node())+ ""+ prerelease)print("")print("")if line3 == "yes":print(" "+ "Browser:"+ f" Python {language_module.version}:")print(" "+ browser+ ""+ platform.python_version()+ " "+ "")print("")print(" " + "Local IP:" + "")print(" "+ get_local_ip())print("")if uname != "":print(f"{language_module.targetusernames} " + uname + Fore.RESET)print(Fore.RESET+ "===========================================================================")print(" ")
| 6
| 104
| 4
| 296
| 5
| 18
| 126
| 18
|
colorScheme,uname,version,config
|
['line2', 'line1', 'line3', 'prerelease', 'browser']
|
None
|
{"Assign": 5, "Expr": 23, "If": 4}
| 34
| 109
| 34
|
["config.read", "config.get", "config.get", "config.get", "config.get", "config.get", "os.system", "print", "print", "print", "print", "print", "print", "print", "platform.system", "platform.release", "print", "print", "print", "str", "platform.node", "print", "print", "print", "print", "platform.python_version", "print", "print", "print", "get_local_ip", "print", "print", "print", "print"]
| 0
|
[]
|
The function (logo) defined within the public class called public.The function start at line 18 and ends at 126. It contains 104 lines of code and it has a cyclomatic complexity of 6. It takes 4 parameters, represented as [18.0] and does not return any value. It declares 34.0 functions, and It has 34.0 functions called inside which are ["config.read", "config.get", "config.get", "config.get", "config.get", "config.get", "os.system", "print", "print", "print", "print", "print", "print", "print", "platform.system", "platform.release", "print", "print", "print", "str", "platform.node", "print", "print", "print", "print", "platform.python_version", "print", "print", "print", "get_local_ip", "print", "print", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
print_help
|
def print_help():print("""βββ βββββββββββ βββββββββββββ βββββββββββ βββββββββββββββββββββββββββ βββββββββββ βββββββββββββββββββββββββββββββββββ ββββββββββββββββββββββ βββββββββββββββββββββββββββββββββββββββββββββββββ βββββββ ββββββββββββββ βββββββ ββββββββ\\(o>(o>Usage: [USERNAME] //\//\[OPTIONS]V_/V_/ ================================================================|| |||| || [COMMAND][ALIAS][INFO]------------+--------+-------------------------------------------h| --help | (Shows This Menu)------------+--------+------------------------------------------ [GENERAL]:|-s|| (Starts The Program)-N| --nsfw | (Points NSFW Sites)-ec || (Prints The Returned Status Code)-a|| (Shows Everything) || Error ID's:|| || E β₯΄ Connection Error, Etc||-p| --ping | (pings website)--Clear |Clear | Clears The Terminal-q| --quit | (Quits)------------+--------+------------------------------------------ [FILES]:|-r| --read | (Reads Last Search Results) -ls | ls | Prints The Files In ./tookie-osint -Cat || Reads The Inputed File --Config || Edits The Config.--Wiki || Prints Wiki Pages -gsl|| (Generates Random Sites And Tests Them)||Ussage:|| [LENGTH]||[AMOUNT]|| [TYPE] ||[OPTIONS]------------+--------+------------------------------------------ [SCANS]:|-f|| Runs A Fast Scan -w|| (Uses The WebScrapper On Scan Start)-m|| Runs A Scan From The Big Site List-O|| Checks Accounts From A List-d|| (Allows Redirects "Might Not Be Accutate")-w|| (Allows tookie-osint To Webscrape)------------+--------+------------------------------------------ [PROXIES]:|-c|| (Connects To A Proxy Server) ||Format [Type] [Ip] [Port] ||-lp || (Gives A List Of Installed Proxys) || (Proxies Must Be In The Format Of IP:Port)|| (Proxy Files Must Be Named Acordingly)|||| Types:|||| http β₯΄ proxys/http.txt || socks4 β₯΄ proxys/socks4.txt || socks5 β₯΄ proxys/socks5.txt ||------------+--------+------------------------------------------ [OTHER]:|-FS || Runs A Simple Network File Share-S|| Downloads A Webpage's HTML File-u|| Prints The Requested Username------------+--------+------------------------------------------ [MODES]:| Modes are used when running python3 tookie-osint|| Example: python3 tookie-osint -w||-w|| Runs The tookie-osint WebUI ------------+--------+------------------------------------------""")
| 1
| 81
| 0
| 8
| 0
| 129
| 209
| 129
|
[]
|
None
|
{"Expr": 1}
| 1
| 81
| 1
|
["print"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.cli.main_py.Help.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967133_openstack_python_troveclient.troveclient.shell_py.OpenStackTroveShell.do_help"]
|
The function (print_help) defined within the public class called public.The function start at line 129 and ends at 209. It contains 81 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, It has 1.0 function called inside which is ["print"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3546011_hashdist_hashdist.hashdist.cli.main_py.Help.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3967133_openstack_python_troveclient.troveclient.shell_py.OpenStackTroveShell.do_help"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
wiki
|
def wiki(language_module):os.system("cls" if os.name == "nt" else "clear")print("""ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ""")# Read options from the INI fileconfig = configparser.ConfigParser()config.read("config/config.ini")for i, (option, link) in enumerate(config.items("Links"), start=1):custom_label = {"link1": "Instalations","link2": "Ussage/Options","link3": "Errors","link4": "Dark-Tookie","link5": "Modules",}.get(option.lower(), "Unknown")print(f"{i}. {custom_label}")search = input("What Are You Looking For?β€·")try:option_index = int(search) - 1selected_option = list(config.items("Links"))[option_index]print(f"{language_module.wikilist}{selected_option[1]}")except (ValueError, IndexError):print(f"{language_module.idk3} https://github.com/alfredredbird1/tookie-osint/wiki/")returntotookie(5, language_module)return True
| 4
| 28
| 1
| 154
| 5
| 212
| 246
| 212
|
language_module
|
['config', 'custom_label', 'search', 'selected_option', 'option_index']
|
Returns
|
{"Assign": 5, "Expr": 7, "For": 1, "Return": 1, "Try": 1}
| 16
| 35
| 16
|
["os.system", "print", "configparser.ConfigParser", "config.read", "enumerate", "config.items", "get", "option.lower", "print", "input", "int", "list", "config.items", "print", "print", "returntotookie"]
| 0
|
[]
|
The function (wiki) defined within the public class called public.The function start at line 212 and ends at 246. It contains 28 lines of code and it has a cyclomatic complexity of 4. The function does not take any parameters, and this function return a value. It declares 16.0 functions, and It has 16.0 functions called inside which are ["os.system", "print", "configparser.ConfigParser", "config.read", "enumerate", "config.items", "get", "option.lower", "print", "input", "int", "list", "config.items", "print", "print", "returntotookie"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
returntotookie
|
def returntotookie(seconds, language_module):print(language_module.status4)time.sleep(seconds)
| 1
| 3
| 2
| 19
| 0
| 249
| 251
| 249
|
seconds,language_module
|
[]
|
None
|
{"Expr": 2}
| 2
| 3
| 2
|
["print", "time.sleep"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.printmodules_py.wiki"]
|
The function (returntotookie) defined within the public class called public.The function start at line 249 and ends at 251. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [249.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["print", "time.sleep"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.printmodules_py.wiki"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
unameinfo
|
def unameinfo(uname, language_module):print(language_module.rqUname + uname)
| 1
| 2
| 2
| 15
| 0
| 254
| 255
| 254
|
uname,language_module
|
[]
|
None
|
{"Expr": 1}
| 1
| 2
| 1
|
["print"]
| 0
|
[]
|
The function (unameinfo) defined within the public class called public.The function start at line 254 and ends at 255. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [254.0] and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
emailinfo
|
def emailinfo(uname):print(uname)
| 1
| 2
| 1
| 9
| 0
| 257
| 258
| 257
|
uname
|
[]
|
None
|
{"Expr": 1}
| 1
| 2
| 1
|
["print"]
| 0
|
[]
|
The function (emailinfo) defined within the public class called public.The function start at line 257 and ends at 258. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declare 1.0 function, and It has 1.0 function called inside which is ["print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
report
|
def report(urls,uname):# Ensure the reports directory existsif not os.path.exists('./reports'):os.makedirs('./reports')# Define the report file pathreport_file_path = f'./reports/{uname}.txt'with open(report_file_path, 'w', encoding='utf-8') as report_file:for url in urls:# Headers to mimic a browser requestcurrent_date = datetime.now().strftime("%a, %d %b %Y %H:%M:%S %Z")device_type = "mobile"headers = {"User-Agent": "Your User Agent String","Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept-Language": "en-US,en;q=0.5","Accept-Encoding": "gzip, deflate","Connection": "keep-alive","Referer": "http://example.com","Cache-Control": "max-age=0","Content-Type": "application/x-www-form-urlencoded","Date": current_date,"Device-Type": device_type,}try: # Make a request to the website response = requests.get(url, headers=headers) # Check if the request was successful if response.status_code == 200 or response.status_code == 403: # Parse the HTML content using BeautifulSoup soup = BeautifulSoup(response.content, 'lxml') if "facebook" in url: title_tag = soup.find('title') if title_tag: title_text = title_tag.get_text(strip=True) report_file.write(f"Username for Facebook: {title_text}\n") else: report_file.write(f"The specified <title> tag was not found for {url}.\n") elif "instagram" in url: title_tag = soup.find('title') if title_tag: title_text = title_tag.get_text(strip=True) report_file.write(f"Username for Instagram: {title_text.replace('β’ Instagram photos and videos', '')}\n") else: report_file.write(f"The specified <title> tag was not found for {url}.\n") elif "youtube" in url: title_tag = soup.find('title') if title_tag: title_text = title_tag.get_text(strip=True) report_file.write(f"Username for YouTube: {title_text.replace('- YouTube', '')}\n") else: report_file.write(f"The specified <title> tag was not found for {url}.\n") script_tags = soup.find_all('script') for script in script_tags: if 'ytInitialData' in script.text: json_str = re.search(r'ytInitialData\s*=\s*({.*?});', script.text).group(1) data = json.loads(json_str) try: subscriber_count = data['header']['c4TabbedHeaderRenderer']['subscriberCountText']['simpleText'] report_file.write(f"Subscriber Count: {subscriber_count}\n") except KeyError: report_file.write("Subscriber count not found in the JSON data.\n") try: videos_count = data['header']['c4TabbedHeaderRenderer']['videosCountText']['runs'][0]['text'] report_file.write(f"Videos Count: {videos_count}\n") except KeyError: report_file.write("Videos count not found in the JSON data.\n") break elif "x" in url: name_tag = soup.find('span', class_='css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3') handle_tag = soup.find('span', class_='css-1jxf684 r-bcqeeo r-1ttztb7 r-qvutc0 r-poiln3') if name_tag and handle_tag: name_text = name_tag.get_text(strip=True) handle_text = handle_tag.get_text(strip=True) report_file.write(f"Twitter Name: {name_text}\n") report_file.write(f"Twitter Handle: {handle_text}\n") else: report_file.write("The specified tags were not found for Twitter.\n") if "twitch.tv" in url: twitch_title_meta = soup.find('meta', attrs={'name': "twitter:title"}) if twitch_title_meta and 'content' in twitch_title_meta.attrs: report_file.write(f"Twitch name: {twitch_title_meta['content'].replace('- Twitch', '')}\n") else: report_file.write(f"Could not find the specified twitter title tag for {url}.\n") description_meta = soup.find('meta', attrs={'property': "og:description"}) if description_meta and 'content' in description_meta.attrs: report_file.write(f"Twitch Bio: {description_meta['content']}\n") else: report_file.write(f"Could not find the specified meta description tag for {url}.\n") else: report_file.write(f"Failed to retrieve the webpage. Status code: {response.status_code} for {url}\n") report_file.write("================\n")except Exception as e:print("Error occurred with this site, skipping.....")
| 24
| 87
| 2
| 575
| 19
| 9
| 115
| 9
|
urls,uname
|
['script_tags', 'subscriber_count', 'description_meta', 'report_file_path', 'name_text', 'handle_text', 'current_date', 'title_text', 'title_tag', 'soup', 'device_type', 'headers', 'handle_tag', 'response', 'name_tag', 'videos_count', 'json_str', 'twitch_title_meta', 'data']
|
None
|
{"Assign": 23, "Expr": 21, "For": 2, "If": 14, "Try": 3, "With": 1}
| 46
| 107
| 46
|
["os.path.exists", "os.makedirs", "open", "strftime", "datetime.now", "requests.get", "BeautifulSoup", "soup.find", "title_tag.get_text", "report_file.write", "report_file.write", "soup.find", "title_tag.get_text", "report_file.write", "title_text.replace", "report_file.write", "soup.find", "title_tag.get_text", "report_file.write", "title_text.replace", "report_file.write", "soup.find_all", "group", "re.search", "json.loads", "report_file.write", "report_file.write", "report_file.write", "report_file.write", "soup.find", "soup.find", "name_tag.get_text", "handle_tag.get_text", "report_file.write", "report_file.write", "report_file.write", "soup.find", "report_file.write", "replace", "report_file.write", "soup.find", "report_file.write", "report_file.write", "report_file.write", "report_file.write", "print"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906168_bjlittle_geovista._github.scripts.changelog_py.main"]
|
The function (report) defined within the public class called public.The function start at line 9 and ends at 115. It contains 87 lines of code and it has a cyclomatic complexity of 24. It takes 2 parameters, represented as [9.0] and does not return any value. It declares 46.0 functions, It has 46.0 functions called inside which are ["os.path.exists", "os.makedirs", "open", "strftime", "datetime.now", "requests.get", "BeautifulSoup", "soup.find", "title_tag.get_text", "report_file.write", "report_file.write", "soup.find", "title_tag.get_text", "report_file.write", "title_text.replace", "report_file.write", "soup.find", "title_tag.get_text", "report_file.write", "title_text.replace", "report_file.write", "soup.find_all", "group", "re.search", "json.loads", "report_file.write", "report_file.write", "report_file.write", "report_file.write", "soup.find", "soup.find", "name_tag.get_text", "handle_tag.get_text", "report_file.write", "report_file.write", "report_file.write", "soup.find", "report_file.write", "replace", "report_file.write", "soup.find", "report_file.write", "report_file.write", "report_file.write", "report_file.write", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69906168_bjlittle_geovista._github.scripts.changelog_py.main"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
extract_urls
|
def extract_urls(file_path):urls = []url_pattern = re.compile(r'https?://[^\s]+')with open(file_path, 'r') as file:for line in file:match = url_pattern.search(line)if match:urls.append(match.group())return urls
| 3
| 9
| 1
| 56
| 3
| 117
| 126
| 117
|
file_path
|
['match', 'url_pattern', 'urls']
|
Returns
|
{"Assign": 3, "Expr": 1, "For": 1, "If": 1, "Return": 1, "With": 1}
| 5
| 10
| 5
|
["re.compile", "open", "url_pattern.search", "urls.append", "match.group"]
| 0
|
[]
|
The function (extract_urls) defined within the public class called public.The function start at line 117 and ends at 126. It contains 9 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["re.compile", "open", "url_pattern.search", "urls.append", "match.group"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
Startscan
|
def Startscan(modes,siteN,uname,cError,ec,f,siteProgcounter,siteNSFW,ars,webscrape,siteErrors,date,language_module,randomheaders,webhook_url):try:if config["main"]["userandomuseragents"] == "no":header = {"User-Agent": config["Personalizations"]["useragent"]}elif config["main"]["userandomuseragents"] == "yes" and os.path.exists("proxys/headers.txt"):header = {"User-Agent": str(random.choice(randomheaders))}if "-a" in modes:print(header)elif not os.path.exists("proxys/headers.txt"):header = {"User-Agent": config["Personalizations"]["useragent"]}# Timeout and proxies settings based on the mode flagstimeout_setting = 1.5allow_redirects_setting = ars if "-d" in modes else Falseproxies_setting = None if "-c" not in modes or "-t" in modes else proxiesresponse = requests.get(siteN + uname,headers=header,timeout=timeout_setting,allow_redirects=allow_redirects_setting,proxies=proxies_setting,json=False, # Assuming json=False is default for all requests)if not webscrape:result = ""if webscrape:# error message to finderror_to_find = siteErrors# combineds to make urlwebsite_url = siteN + unameif selected_webdriver:result = scraper.scrape(website_url, error_to_find, language_module)# print(result)if ec == 1:print(response.status_code)if response.status_code == 200 and result == "No":siteProgcounter += 1if webscrape:if response.status_code >= 200 and response.status_code <= 399 and result == "No":print("[" + Fore.GREEN + "+" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "+" + "] " + siteN + uname + "\n")return str(date) + "[" + "+" + "] " + siteN + unameif response.status_code >= 400 and response.status_code <= 500 and result == "Yes":print("[" + Fore.RED + "-" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "-" + "] " + siteN + uname + "\n")return str(date) + "[" + "-" + "] " + siteN + uname if not webscrape:if response.status_code >= 200 and "-N" not in modes and response.status_code <= 399:print("[" + Fore.GREEN + "+" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "+" + "] " + siteN + uname + "\n")if webhook_url != "none": send_webhook_message(webhook_url, uname, f"{siteN}{uname}")return str(date) + "[" + "+" + "] " + siteN + unameif response.status_code >= 400 and response.status_code <= 500 and "-a" in modes:print("[" + Fore.RED + "-" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "-" + "] " + siteN + uname + "\n")return str(date) + "[" + "-" + "] " + siteN + unameif "-N" in modes:if response.status_code == 200 and siteNSFW == "true":print("["+ Fore.LIGHTMAGENTA_EX+ "NSFW"+ Fore.RESET+ "] "+ siteN+ uname+ " "+ Fore.RESET)f.write(str(date)+ "["+ "+"+ "] "+ siteN+ uname+ " NSFW"+ "\n") return str(date)+"["+"+"+ "] "+ siteN + uname + " NSFW"elif response.status_code == 200 and siteNSFW == "Unknown":print("["+ Fore.BLACK+ "NSFW?"+ Fore.RESET+ "] "+ siteN+ uname+ " "+ Fore.RESET)f.write(str(date)+ "["+ "+"+ "] "+ siteN+ uname+ " NSFW?"+ "\n")return str(date)+"["+"+"+ "] "+ siteN + uname + " NSFW?"elif response.status_code == 200 and siteNSFW == "false":print("[" + Fore.GREEN + "+" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "+" + "] " + siteN + uname + "\n")return str(date) + "[" + "+" + "] " + siteN + uname except (requests.exceptions.SSLError,requests.exceptions.HTTPError,requests.exceptions.ConnectTimeout,requests.exceptions.ReadTimeout,requests.exceptions.RetryError,requests.exceptions.ProxyError,requests.exceptions.ConnectionError,requests.exceptions.InvalidHeader,requests.exceptions.InvalidURL,requests.exceptions.TooManyRedirects,requests.exceptions.ChunkedEncodingError,requests.exceptions.ContentDecodingError,):connection_error = 1if "-a" in modes:print("[" + Fore.YELLOW + "E" + Fore.RESET + "] " + siteN + uname)f.write(str(date) + "[" + "E" + "] " + siteN + uname + "\n")return str(date) + "[" + "E" + "] " + siteN + unameexcept KeyboardInterrupt:print("""===========================================================""")print(language_module.status7)f.closeprint(language_module.save2)exit(99)
| 40
| 146
| 15
| 950
| 9
| 31
| 197
| 31
|
modes,siteN,uname,cError,ec,f,siteProgcounter,siteNSFW,ars,webscrape,siteErrors,date,language_module,randomheaders,webhook_url
|
['header', 'proxies_setting', 'error_to_find', 'allow_redirects_setting', 'website_url', 'connection_error', 'response', 'timeout_setting', 'result']
|
Returns
|
{"Assign": 12, "AugAssign": 1, "Expr": 24, "If": 21, "Return": 8, "Try": 1}
| 45
| 167
| 45
|
["os.path.exists", "str", "random.choice", "print", "os.path.exists", "requests.get", "scraper.scrape", "print", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "send_webhook_message", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "print", "print", "exit"]
| 0
|
[]
|
The function (Startscan) defined within the public class called public.The function start at line 31 and ends at 197. It contains 146 lines of code and it has a cyclomatic complexity of 40. It takes 15 parameters, represented as [31.0], and this function return a value. It declares 45.0 functions, and It has 45.0 functions called inside which are ["os.path.exists", "str", "random.choice", "print", "os.path.exists", "requests.get", "scraper.scrape", "print", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "send_webhook_message", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "f.write", "str", "str", "print", "print", "print", "exit"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
scanFileList
|
def scanFileList(siteList, slectpath, language_module):try:with open(slectpath, "r") as f:for jsonObj in f:siteDic = json.loads(jsonObj)siteList.append(siteDic)return siteListexcept FileNotFoundError:print(Fore.RED + language_module.error7)exit(-1)except json.JSONDecodeError:print(Fore.RED + language_module.error9 + Fore.RESET)exit(-9)
| 4
| 13
| 3
| 84
| 1
| 201
| 213
| 201
|
siteList,slectpath,language_module
|
['siteDic']
|
Returns
|
{"Assign": 1, "Expr": 5, "For": 1, "Return": 1, "Try": 1, "With": 1}
| 7
| 13
| 7
|
["open", "json.loads", "siteList.append", "print", "exit", "print", "exit"]
| 0
|
[]
|
The function (scanFileList) defined within the public class called public.The function start at line 201 and ends at 213. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [201.0], and this function return a value. It declares 7.0 functions, and It has 7.0 functions called inside which are ["open", "json.loads", "siteList.append", "print", "exit", "print", "exit"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
fileShare
|
def fileShare(language_module):host = input(language_module.fs1)if "Y" in host or "y" in host:print(language_module.fs2)exec(open("modules/recive.py").read())elif "N" in host or "n" in host:print(language_module.fs3)exec(open("modules/sender.py").read())else:print(language_module.idk1)
| 5
| 10
| 1
| 73
| 1
| 216
| 226
| 216
|
language_module
|
['host']
|
None
|
{"Assign": 1, "Expr": 5, "If": 2}
| 10
| 11
| 10
|
["input", "print", "exec", "read", "open", "print", "exec", "read", "open", "print"]
| 0
|
[]
|
The function (fileShare) defined within the public class called public.The function start at line 216 and ends at 226. It contains 10 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 10.0 functions, and It has 10.0 functions called inside which are ["input", "print", "exec", "read", "open", "print", "exec", "read", "open", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
siteDownloader
|
def siteDownloader(language_module):input2 = input("SITE: β€· ")if input2 == "":lol = 1if input2 != "":try:url = str(input2)# initialize a sessionsession = requests.Session()# set the User-agent as a regular browsersession.headers["User-Agent"] = config["Personalizations"]["useragent"]# get the HTML contenthtml = session.get(url).content# parse HTML using beautiful soupsoup = bs(html, "html.parser")# get the JavaScript filesscript_files = []for script in soup.find_all("script"):if script.attrs.get("src"):# if the tag has the attribute 'src'script_url = urljoin(url, script.attrs.get("src"))script_files.append(script_url)# get the CSS filescss_files = []for css in soup.find_all("link"):if css.attrs.get("href"):# if the link tag has the 'href' attributecss_url = urljoin(url, css.attrs.get("href"))css_files.append(css_url)print(language_module.siteDl1, len(script_files))print(language_module.siteDl2, len(css_files))# write file links into fileswith open(globalPath(config) + "javascript_files.txt", "w") as f:for js_file in script_files:print(js_file, file=f)with open(globalPath(config) + "css_files.txt", "w") as f:for css_file in css_files:print(css_file, file=f)except requests.exceptions.ConnectionError:print(language_module.error8)except requests.exceptions.RetryError:print(language_module.error8)except requests.exceptions.HTTPError:print(language_module.error8)except requests.exceptions.InvalidURL:print(language_module.error8)except ConnectionError:print(language_module.error8)except requests.exceptions.RequestException:print(language_module.error8)except ValueError:print(language_module.error8)
| 16
| 43
| 1
| 322
| 10
| 229
| 291
| 229
|
language_module
|
['css_files', 'input2', 'soup', 'script_url', 'css_url', 'url', 'lol', 'script_files', 'session', 'html']
|
None
|
{"Assign": 11, "Expr": 13, "For": 4, "If": 4, "Try": 1, "With": 2}
| 32
| 63
| 32
|
["input", "str", "requests.Session", "session.get", "bs", "soup.find_all", "script.attrs.get", "urljoin", "script.attrs.get", "script_files.append", "soup.find_all", "css.attrs.get", "urljoin", "css.attrs.get", "css_files.append", "print", "len", "print", "len", "open", "globalPath", "print", "open", "globalPath", "print", "print", "print", "print", "print", "print", "print", "print"]
| 0
|
[]
|
The function (siteDownloader) defined within the public class called public.The function start at line 229 and ends at 291. It contains 43 lines of code and it has a cyclomatic complexity of 16. The function does not take any parameters and does not return any value. It declares 32.0 functions, and It has 32.0 functions called inside which are ["input", "str", "requests.Session", "session.get", "bs", "soup.find_all", "script.attrs.get", "urljoin", "script.attrs.get", "script_files.append", "soup.find_all", "css.attrs.get", "urljoin", "css.attrs.get", "css_files.append", "print", "len", "print", "len", "open", "globalPath", "print", "open", "globalPath", "print", "print", "print", "print", "print", "print", "print", "print"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
send_file
|
def send_file(filename, host, port, SEPARATOR, BUFFER_SIZE, language_module):# get the file sizefilesize = os.path.getsize(filename)# create the client sockets = socket.socket()print(f"{language_module.sender1} {host}:{port}")s.connect((host, port))print(language_module.sender2)# send the filename and filesizes.send(f"{filename}{SEPARATOR}{filesize}".encode())# start sending the fileprogress = tqdm.tqdm(range(filesize),f"{language_module.sender3} {filename}",unit="B",unit_scale=True,unit_divisor=1024,)with open(filename, "rb") as f:while True:# read the bytes from the filebytes_read = f.read(BUFFER_SIZE)if not bytes_read:# file transmitting is donebreak# we use sendall to assure transimission in# busy networkss.sendall(bytes_read)# update the progress barprogress.update(len(bytes_read))# close the sockets.close()
| 3
| 22
| 6
| 137
| 4
| 24
| 58
| 24
|
filename,host,port,SEPARATOR,BUFFER_SIZE,language_module
|
['s', 'progress', 'filesize', 'bytes_read']
|
None
|
{"Assign": 4, "Expr": 7, "If": 1, "While": 1, "With": 1}
| 15
| 35
| 15
|
["os.path.getsize", "socket.socket", "print", "s.connect", "print", "s.send", "encode", "tqdm.tqdm", "range", "open", "f.read", "s.sendall", "progress.update", "len", "s.close"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3655408_simpleai_team_simpleai.simpleai.search.web_viewer_server_py.run_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.routes_py.serve_image"]
|
The function (send_file) defined within the public class called public.The function start at line 24 and ends at 58. It contains 22 lines of code and it has a cyclomatic complexity of 3. It takes 6 parameters, represented as [24.0] and does not return any value. It declares 15.0 functions, It has 15.0 functions called inside which are ["os.path.getsize", "socket.socket", "print", "s.connect", "print", "s.send", "encode", "tqdm.tqdm", "range", "open", "f.read", "s.sendall", "progress.update", "len", "s.close"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3655408_simpleai_team_simpleai.simpleai.search.web_viewer_server_py.run_server", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3966919_archivy_archivy.archivy.routes_py.serve_image"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
siteListGen
|
def siteListGen(console, testall, get_random_string, domain_extensions, uname, language_module):input2 = input("CHAR: β€· ")trys = input("TRYS: β€· ")siteType = input(" TYPE: β€· ")siteGenOPtions = input(" OPTIONS: β€· ")if siteGenOPtions == "":lol = 1if siteGenOPtions != "":if "-a" in siteGenOPtions:testall = Trueif "-d" in siteGenOPtions:domain_extensions = Trueif input2 == "":lol = 1if input2 != "":with console.status(language_module.status5) as status:siteLst = []b = 0if testall == False:if siteType != "":while b != int(trys):b += 1siteLst.append("https://"+ str(get_random_string(int(input2)))+ str(siteType))if siteType == "":while b != int(trys):b += 1gen = get_random_string(int(input2))siteLst.append("https://" + str(gen) + ".com")# generates a combo of sitesif testall == True:if siteType != "":for _ in range(int(trys)):siteLst.append("https://"+ str(get_random_string(int(input2)))+ str(siteType))if siteType == "":domains = [".com",".net",".org",".xyz",".edu",".co",".us",".uk",]for _ in range(int(trys)):gen = get_random_string(int(input2))siteLst += [f"https://{gen}{dom}" for dom in domains]passif domain_extensions == True:if siteType != "":for _ in range(int(trys)):siteLst.append("https://"+ str(get_random_string(int(input2)))+ str(siteType))if siteType == "":domains = [".com/u/",".net/u/",".org/u/",".xyz/u/",".edu/u/",".co/u/",".us/u/",".uk/u/",".com/user/",".net/user/",".org/user/",".xyz/user/",".edu/user/",".co/user/",".us/user/",".uk/user/",".com/profile/",".net/profile/",".org/profile/",".xyz/profile/",".edu/profile/",".co/profile/",".us/profile/",".uk/profile/",]for _ in range(int(trys)):gen = get_random_string(int(input2))siteLst += [f"https://{gen}{dom}{uname}" for dom in domains]passsiteError = 0# print(siteLst)i = 0f = open(globalPath(config, 1) + "working.txt", "w")while i != len(siteLst):try:r = requests.get(siteLst[i], timeout=1)print("["+ Fore.GREEN+ "+"+ Fore.RESET+ "] "+ str(siteLst[i])+ " "+ str(i)+ "/"+ str(trys))if r.status_code >= 200 and r.status_code <= 500:f.write('{"site": "'+ str(siteLst[i])+ "/"+ '", "nsfw": "Unknown"}'+ "\n")except (requests.exceptions.ConnectionError,requests.exceptions.Timeout,IndexError,requests.exceptions.HTTPError,requests.exceptions.BaseHTTPError,requests.exceptions.SSLError,requests.exceptions.TooManyRedirects,requests.exceptions.RetryError,TypeError,requests.exceptions.ChunkedEncodingError,):siteError += 1print("["+ Fore.RED+ "-"+ Fore.RESET+ "] "+ "?"+ " "+ str(i)+ "/"+ str(trys))except KeyboardInterrupt:print(language_module.status6)# tbh its 11 at night rn and idk what i+=1 doesi += 1print(str(siteError) + language_module.prompt6)
| 29
| 151
| 6
| 642
| 15
| 25
| 182
| 25
|
console,testall,get_random_string,domain_extensions,uname,language_module
|
['input2', 'siteType', 'r', 'siteLst', 'domain_extensions', 'i', 'domains', 'testall', 'siteError', 'b', 'lol', 'f', 'gen', 'siteGenOPtions', 'trys']
|
None
|
{"Assign": 19, "AugAssign": 6, "Expr": 9, "For": 4, "If": 16, "Try": 1, "While": 3, "With": 1}
| 54
| 158
| 54
|
["input", "input", "input", "input", "console.status", "int", "siteLst.append", "str", "get_random_string", "int", "str", "int", "get_random_string", "int", "siteLst.append", "str", "range", "int", "siteLst.append", "str", "get_random_string", "int", "str", "range", "int", "get_random_string", "int", "range", "int", "siteLst.append", "str", "get_random_string", "int", "str", "range", "int", "get_random_string", "int", "open", "globalPath", "len", "requests.get", "print", "str", "str", "str", "f.write", "str", "print", "str", "str", "print", "print", "str"]
| 0
|
[]
|
The function (siteListGen) defined within the public class called public.The function start at line 25 and ends at 182. It contains 151 lines of code and it has a cyclomatic complexity of 29. It takes 6 parameters, represented as [25.0] and does not return any value. It declares 54.0 functions, and It has 54.0 functions called inside which are ["input", "input", "input", "input", "console.status", "int", "siteLst.append", "str", "get_random_string", "int", "str", "int", "get_random_string", "int", "siteLst.append", "str", "range", "int", "siteLst.append", "str", "get_random_string", "int", "str", "range", "int", "get_random_string", "int", "range", "int", "siteLst.append", "str", "get_random_string", "int", "str", "range", "int", "get_random_string", "int", "open", "globalPath", "len", "requests.get", "print", "str", "str", "str", "f.write", "str", "print", "str", "str", "print", "print", "str"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
send_webhook_message
|
def send_webhook_message(webhook_url, link, uname, username="Tookie-OSINT Bot", color=0x3498db):"""Send a message to a Discord webhook with an embed.:param webhook_url: The URL of the Discord webhook:param link: The URL found during OSINT:param uname: The username found during OSINT:param avatar_url: The URL of the image to use as the bot's profile picture:param username: The username of the webhook sender (default: Tookie-OSINT Bot):param color: The color of the embed (default: blue)"""if not webhook_url.startswith('http://') and not webhook_url.startswith('https://'):raise ValueError("Invalid webhook URL. The URL must start with http:// or https://")title = "Tookie-OSINT Discovery"description = "***Some Information Might Be Inaccurate***"avatar_url = "https://private-user-images.githubusercontent.com/105014217/323384298-67bab5b4-f537-4f05-8a7b-c9fc3a16d256.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA5ODk3ODMsIm5iZiI6MTcyMDk4OTQ4MywicGF0aCI6Ii8xMDUwMTQyMTcvMzIzMzg0Mjk4LTY3YmFiNWI0LWY1MzctNGYwNS04YTdiLWM5ZmMzYTE2ZDI1Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNzE0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDcxNFQyMDM4MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zOWVkNGVmZjNmMDBmM2E5OWI3NjVjYTkyNjM2Njk4MTM2OWNlNjA3ZDM1NmE0MWJiYWFiZWQwMjI4ZTAzODg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.seCrh2vZi8OF38_kTcNt4Jiu4iy8uk5Z2uhng6Socnw"data = {"username": username,"avatar_url": avatar_url,"embeds": [{"title": title,"description": description,"color": color,"fields": [{"name": "Target","value": link,"inline": False},{"name": "Found","value": uname,"inline": False}]}]}headers = {"Content-Type": "application/json"}try:response = requests.post(webhook_url, json=data, headers=headers)response.raise_for_status()# Raises an error for bad status codesif response.status_code != 204:print(f"Unexpected status code from webhook: {response.status_code}, {response.text}")except requests.exceptions.RequestException as e:print(f"Failed to send message: {e}")
| 5
| 39
| 5
| 166
| 6
| 3
| 54
| 3
|
webhook_url,link,uname,username,color
|
['title', 'description', 'headers', 'avatar_url', 'response', 'data']
|
None
|
{"Assign": 6, "Expr": 4, "If": 2, "Try": 1}
| 7
| 52
| 7
|
["webhook_url.startswith", "webhook_url.startswith", "ValueError", "requests.post", "response.raise_for_status", "print", "print"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.scanmodules_py.Startscan"]
|
The function (send_webhook_message) defined within the public class called public.The function start at line 3 and ends at 54. It contains 39 lines of code and it has a cyclomatic complexity of 5. It takes 5 parameters, represented as [3.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["webhook_url.startswith", "webhook_url.startswith", "ValueError", "requests.post", "response.raise_for_status", "print", "print"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.modules.scanmodules_py.Startscan"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
get_header
|
def get_header():headers = []try: with open("proxys/headers.txt") as h:for line in h:headers.append(line.strip()) return headersexcept Exception: print("Problem With User Agents. Please Download The User Agent File!") exit(1)
| 3
| 10
| 0
| 46
| 1
| 5
| 14
| 5
|
['headers']
|
Returns
|
{"Assign": 1, "Expr": 3, "For": 1, "Return": 1, "Try": 1, "With": 1}
| 5
| 10
| 5
|
["open", "headers.append", "line.strip", "print", "exit"]
| 0
|
[]
|
The function (get_header) defined within the public class called public.The function start at line 5 and ends at 14. It contains 10 lines of code and it has a cyclomatic complexity of 3. The function does not take any parameters, and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["open", "headers.append", "line.strip", "print", "exit"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
replace_all_placeholders
|
def replace_all_placeholders(url_pattern, i):"""Replace all placeholders in the URL pattern with appropriate values."""# Replace {i} with the generated numberurl_pattern = url_pattern.replace('{i}', str(i))# Generate random text for {t}random_text = ''.join(random.choices(string.ascii_letters + string.digits, k=8))url_pattern = url_pattern.replace('{t}', random_text)return url_pattern
| 1
| 5
| 2
| 56
| 2
| 17
| 28
| 17
|
url_pattern,i
|
['url_pattern', 'random_text']
|
Returns
|
{"Assign": 3, "Expr": 1, "Return": 1}
| 5
| 12
| 5
|
["url_pattern.replace", "str", "join", "random.choices", "url_pattern.replace"]
| 0
|
[]
|
The function (replace_all_placeholders) defined within the public class called public.The function start at line 17 and ends at 28. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [17.0], and this function return a value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["url_pattern.replace", "str", "join", "random.choices", "url_pattern.replace"].
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
parse_args
|
def parse_args():parser = argparse.ArgumentParser(description="tookie-osint OSINT Tool (Command-Line)")parser.add_argument("-w", "--webui",action="store_true",help="Run tookie-osint with the webui")return parser.parse_args()
| 1
| 8
| 0
| 36
| 1
| 11
| 19
| 11
|
['parser']
|
Returns
|
{"Assign": 1, "Expr": 1, "Return": 1}
| 3
| 9
| 3
|
["argparse.ArgumentParser", "parser.add_argument", "parser.parse_args"]
| 19
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.extract_figures_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.lesson_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.repo_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917252_pwman3_pwman3.pwman.ui.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928026_paul_nameless_tg.tg.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951972_ekalinin_nodeenv.nodeenv_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.FmtStr.from_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.fmtstr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.pysep_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.recsec_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76294275_zeek_package_manager.zkg_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80534283_globality_corp_microcosm_flask.microcosm_flask.runserver_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.81555999_fetchcord_fetchcord.fetch_cord.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.tookie_osint.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95136588_UoA_CARES_cares_reinforcement_learning.cares_reinforcement_learning.util.plotter_py.plot_evaluations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.gw_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevel.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevelChained.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95345540_smokin_salmon_smoked_salmon.salmon.converter.m3ercat_py.main"]
|
The function (parse_args) defined within the public class called public.The function start at line 11 and ends at 19. It contains 8 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declares 3.0 functions, It has 3.0 functions called inside which are ["argparse.ArgumentParser", "parser.add_argument", "parser.parse_args"], It has 19.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.extract_figures_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.lesson_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527106_swcarpentry_modern_scientific_authoring.bin.repo_check_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3917252_pwman3_pwman3.pwman.ui.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928026_paul_nameless_tg.tg.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3951972_ekalinin_nodeenv.nodeenv_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.FmtStr.from_str", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955705_bpython_curtsies.curtsies.formatstring_py.fmtstr", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.pysep_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69794339_uafgeotools_pysep.pysep.recsec_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.76294275_zeek_package_manager.zkg_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.80534283_globality_corp_microcosm_flask.microcosm_flask.runserver_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.81555999_fetchcord_fetchcord.fetch_cord.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95046086_Alfredredbird_tookie_osint.tookie_osint.__main___py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95136588_UoA_CARES_cares_reinforcement_learning.cares_reinforcement_learning.util.plotter_py.plot_evaluations", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.gw_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevel.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95140340_epics_base_p4p.src.p4p.test.test_gw_py.TestHighLevelChained.setUpGW", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95345540_smokin_salmon_smoked_salmon.salmon.converter.m3ercat_py.main"].
|
|
Alfredredbird_tookie-osint
|
public
|
public
| 0
| 0
|
main
|
def main():print("tookie-osint is starting...")args = parse_args()# Check if the user is using the correct version of Pythonpython_version = sys.version.split()[0]if sys.version_info < (3, 10):print(f"tookie-osint requires Python 3.10+\nYou are using Python {python_version}, which is not supported by tookie-osint")sys.exit(1)print(os.path.abspath(__file__))if args.webui: if os.name == "nt":os.system("python.exe webui/webui.py") else:os.system("python3 webui/webui.py")else: if os.name == "nt":os.system("python.exe brib.py") else:os.system("python3 brib.py")
| 5
| 20
| 0
| 107
| 2
| 22
| 44
| 22
|
['args', 'python_version']
|
None
|
{"Assign": 2, "Expr": 8, "If": 4}
| 11
| 23
| 11
|
["print", "parse_args", "sys.version.split", "print", "sys.exit", "print", "os.path.abspath", "os.system", "os.system", "os.system", "os.system"]
| 62
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.ablog_build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673367_spyder_ide_spyder_unittest.spyder_unittest.backend.workers.tests.test_pytestworker_py.test_pytestworker_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673367_spyder_ide_spyder_unittest.spyder_unittest.backend.workers.tests.test_unittestworker_py.test_unittestworker_main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916980_sethmmorton_natsort.tests.test_main_py.test_main_passes_arguments_with_all_command_line_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916980_sethmmorton_natsort.tests.test_main_py.test_main_passes_default_arguments_with_no_command_line_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_v", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_badegg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_bytesio", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_noentrypoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922684_pytest_dev_pytest_xdist.src.xdist.looponfail_py.init_worker_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.jug_py.main_execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925449_gabrielrf_rastreiobot.rastreio.workers.update_packages_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test_exit_code_1_on_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test_exit_code_2_on_failure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957958_pycqa_pyflakes.pyflakes.test.test_api_py.TestMain.runPyflakes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963099_pgjones_hypercorn.src.hypercorn.asyncio.run_py._run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.extension.test_main_py.test_extension_stopper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_happy_flow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_session_init_wrapper_misused_traces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.http.test_sync_http_wrappers_threads_py.test_run_in_executor"]
|
The function (main) defined within the public class called public.The function start at line 22 and ends at 44. It contains 20 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters and does not return any value. It declares 11.0 functions, It has 11.0 functions called inside which are ["print", "parse_args", "sys.version.split", "print", "sys.exit", "print", "os.path.abspath", "os.system", "os.system", "os.system", "os.system"], It has 62.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3494570_keirf_greaseweazle.src.greaseweazle.cli_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3554290_abakan_zz_ablog.ablog.commands_py.ablog_build", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673367_spyder_ide_spyder_unittest.spyder_unittest.backend.workers.tests.test_pytestworker_py.test_pytestworker_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3673367_spyder_ide_spyder_unittest.spyder_unittest.backend.workers.tests.test_unittestworker_py.test_unittestworker_main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916980_sethmmorton_natsort.tests.test_main_py.test_main_passes_arguments_with_all_command_line_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3916980_sethmmorton_natsort.tests.test_main_py.test_main_passes_default_arguments_with_no_command_line_options", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_help", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_v", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_main_py.test_version", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_badegg", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_bytesio", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922308_scrapy_scrapyd.tests.test_runner_py.test_noentrypoint", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3922684_pytest_dev_pytest_xdist.src.xdist.looponfail_py.init_worker_session", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3923947_luispedro_jug.jug.jug_py.main_execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3925449_gabrielrf_rastreiobot.rastreio.workers.update_packages_py.run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test_exit_code_1_on_error", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3955680_mgedmin_check_manifest.tests_py.TestMain.test_exit_code_2_on_failure", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3957958_pycqa_pyflakes.pyflakes.test.test_api_py.TestMain.runPyflakes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963099_pgjones_hypercorn.src.hypercorn.asyncio.run_py._run", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.extension.test_main_py.test_extension_stopper", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_exception", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_happy_flow", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.aiohttp.test_aiohttp_wrapper_py.test_aiohttp_session_init_wrapper_misused_traces", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963232_lumigo_io_python_tracer.src.test.unit.wrappers.http.test_sync_http_wrappers_threads_py.test_run_in_executor"].
|
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_bot_default_locale_lang_simple
|
def get_bot_default_locale_lang_simple():return default_language
| 1
| 2
| 0
| 6
| 0
| 4
| 5
| 4
|
[]
|
Returns
|
{"Return": 1}
| 0
| 2
| 0
|
[]
| 0
|
[]
|
The function (get_bot_default_locale_lang_simple) defined within the public class called public.The function start at line 4 and ends at 5. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
|
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_bot_locale_categories_simple
|
def get_bot_locale_categories_simple():return bot_locales_categories_names_list
| 1
| 2
| 0
| 6
| 0
| 4
| 5
| 4
|
[]
|
Returns
|
{"Return": 1}
| 0
| 2
| 0
|
[]
| 0
|
[]
|
The function (get_bot_locale_categories_simple) defined within the public class called public.The function start at line 4 and ends at 5. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
|
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_bot_locale_langs_simple
|
def get_bot_locale_langs_simple():return enabled_locales
| 1
| 2
| 0
| 6
| 0
| 4
| 5
| 4
|
[]
|
Returns
|
{"Return": 1}
| 0
| 2
| 0
|
[]
| 0
|
[]
|
The function (get_bot_locale_langs_simple) defined within the public class called public.The function start at line 4 and ends at 5. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value..
|
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_bot_locale_string_simple
|
def get_bot_locale_string_simple(category: str,string_name: str,language: Optional[str] = default_language,):strings = partial(get_locale_string,langdict[language].get(category, langdict[default_language][category]),language,category,)res = strings(string_name)return res
| 1
| 13
| 3
| 58
| 2
| 6
| 18
| 6
|
category,string_name,language
|
['strings', 'res']
|
Returns
|
{"Assign": 2, "Return": 1}
| 3
| 13
| 3
|
["partial", "get", "strings"]
| 0
|
[]
|
The function (get_bot_locale_string_simple) defined within the public class called public.The function start at line 6 and ends at 18. It contains 13 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [6.0], and this function return a value. It declares 3.0 functions, and It has 3.0 functions called inside which are ["partial", "get", "strings"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
init_database
|
async def init_database():await Tortoise.init(db_url="sqlite://alisu/database/alisudb.db", modules={"models": [__name__]})await Tortoise.generate_schemas()
| 1
| 5
| 0
| 29
| 0
| 55
| 59
| 55
|
[]
|
None
|
{"Expr": 2}
| 2
| 5
| 2
|
["Tortoise.init", "Tortoise.generate_schemas"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.__main___py.main"]
|
The function (init_database) defined within the public class called public.The function start at line 55 and ends at 59. It contains 5 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["Tortoise.init", "Tortoise.generate_schemas"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.__main___py.main"].
|
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_reason_text
|
async def get_reason_text(c: Client,m: Message,) -> Message:reply = m.reply_to_messagespilt_text = m.text.splitif not reply and len(spilt_text()) >= 3:reason = spilt_text(None, 2)[2]elif reply and len(spilt_text()) >= 2:reason = spilt_text(None, 1)[1]else:reason = Nonereturn reason
| 5
| 13
| 2
| 80
| 3
| 25
| 37
| 25
|
c,m
|
['spilt_text', 'reason', 'reply']
|
Message
|
{"Assign": 5, "If": 2, "Return": 1}
| 6
| 13
| 6
|
["len", "spilt_text", "spilt_text", "len", "spilt_text", "spilt_text"]
| 5
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute"]
|
The function (get_reason_text) defined within the public class called public.The function start at line 25 and ends at 37. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 2 parameters, represented as [25.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside which are ["len", "spilt_text", "spilt_text", "len", "spilt_text", "spilt_text"], It has 5.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
mention_or_unknowen
|
async def mention_or_unknowen(m: Message):if m.from_user:return m.from_user.mentionelse:return "Β―\_(γ)_/Β―"
| 2
| 5
| 1
| 22
| 0
| 40
| 44
| 40
|
m
|
[]
|
Returns
|
{"If": 1, "Return": 2}
| 0
| 5
| 0
|
[]
| 7
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tmute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute"]
|
The function (mention_or_unknowen) defined within the public class called public.The function start at line 40 and ends at 44. It contains 5 lines of code and it has a cyclomatic complexity of 2. The function does not take any parameters, and this function return a value. It has 7.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tmute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
check_if_antichannelpin
|
async def check_if_antichannelpin(chat_id: int):return (await groups.get(chat_id=chat_id)).antichannelpin
| 1
| 2
| 1
| 21
| 0
| 47
| 48
| 47
|
chat_id
|
[]
|
Returns
|
{"Return": 1}
| 1
| 2
| 1
|
["groups.get"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.acp_action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.setantichannelpin"]
|
The function (check_if_antichannelpin) defined within the public class called public.The function start at line 47 and ends at 48. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["groups.get"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.acp_action", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.setantichannelpin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
toggle_antichannelpin
|
async def toggle_antichannelpin(chat_id: int,mode: Optional[bool],):await groups.filter(chat_id=chat_id).update(antichannelpin=mode)
| 1
| 5
| 2
| 31
| 0
| 51
| 55
| 51
|
chat_id,mode
|
[]
|
None
|
{"Expr": 1}
| 2
| 5
| 2
|
["update", "groups.filter"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.setantichannelpin"]
|
The function (toggle_antichannelpin) defined within the public class called public.The function start at line 51 and ends at 55. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [51.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["update", "groups.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.setantichannelpin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
check_if_del_service
|
async def check_if_del_service(chat_id: int):return (await groups.get(chat_id=chat_id)).delservicemsgs
| 1
| 2
| 1
| 21
| 0
| 58
| 59
| 58
|
chat_id
|
[]
|
Returns
|
{"Return": 1}
| 1
| 2
| 1
|
["groups.get"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice_action"]
|
The function (check_if_del_service) defined within the public class called public.The function start at line 58 and ends at 59. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["groups.get"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice_action"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
toggle_del_service
|
async def toggle_del_service(chat_id: int,mode: Optional[bool],):await groups.filter(chat_id=chat_id).update(delservicemsgs=mode)
| 1
| 5
| 2
| 31
| 0
| 62
| 66
| 62
|
chat_id,mode
|
[]
|
None
|
{"Expr": 1}
| 2
| 5
| 2
|
["update", "groups.filter"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice"]
|
The function (toggle_del_service) defined within the public class called public.The function start at line 62 and ends at 66. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [62.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["update", "groups.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delservice"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
check_if_del_anon_channel_messages
|
async def check_if_del_anon_channel_messages(chat_id: int):return (await groups.get(chat_id=chat_id)).del_anon_channel_messages
| 1
| 2
| 1
| 21
| 0
| 69
| 70
| 69
|
chat_id
|
[]
|
Returns
|
{"Return": 1}
| 1
| 2
| 1
|
["groups.get"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel_action"]
|
The function (check_if_del_anon_channel_messages) defined within the public class called public.The function start at line 69 and ends at 70. It contains 2 lines of code and it has a cyclomatic complexity of 1. The function does not take any parameters, and this function return a value. It declare 1.0 function, It has 1.0 function called inside which is ["groups.get"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel_action"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
toggle_del_anon_channel_messages
|
async def toggle_del_anon_channel_messages(chat_id: int,mode: Optional[bool],):await groups.filter(chat_id=chat_id).update(del_anon_channel_messages=mode)
| 1
| 5
| 2
| 31
| 0
| 73
| 77
| 73
|
chat_id,mode
|
[]
|
None
|
{"Expr": 1}
| 2
| 5
| 2
|
["update", "groups.filter"]
| 1
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel"]
|
The function (toggle_del_anon_channel_messages) defined within the public class called public.The function start at line 73 and ends at 77. It contains 5 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [73.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called inside which are ["update", "groups.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.delanonchannel"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_target_user
|
async def get_target_user(c: Client,m: Message,strings=None,) -> User:try:if m.reply_to_message:if m.reply_to_message.sender_chat:raise Exceptiontarget_user = m.reply_to_message.from_userelse:msg_entities = m.entities[1] if m.text.startswith("/") else m.entities[0]target_user = await c.get_users(msg_entities.user.idif msg_entities.type == enums.MessageEntityType.TEXT_MENTIONelse int(m.command[1])if m.command[1].isdecimal()else m.command[1])return target_userexcept:if strings:raise target_user_not_found_custom_exception(strings("target_user_not_found_err_str", context="admin"))else:raise target_user_not_found_custom_exception("The user is not found.")
| 8
| 27
| 3
| 144
| 2
| 80
| 107
| 80
|
c,m,strings
|
['target_user', 'msg_entities']
|
User
|
{"Assign": 3, "If": 3, "Return": 1, "Try": 1}
| 7
| 28
| 7
|
["m.text.startswith", "c.get_users", "isdecimal", "int", "target_user_not_found_custom_exception", "strings", "target_user_not_found_custom_exception"]
| 8
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.get_user_warns_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.unwarn_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.warn_user"]
|
The function (get_target_user) defined within the public class called public.The function start at line 80 and ends at 107. It contains 27 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [80.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside which are ["m.text.startswith", "c.get_users", "isdecimal", "int", "target_user_not_found_custom_exception", "strings", "target_user_not_found_custom_exception"], It has 8.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.ban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.kick", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.mute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.unmute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.get_user_warns_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.unwarn_user", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.warns_py.warn_user"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
get_target_user_and_time_and_reason
|
async def get_target_user_and_time_and_reason(c: Client,m: Message,strings,):reason = Noneif m.reply_to_message:if m.reply_to_message.sender_chat:returntarget_user = m.reply_to_message.from_userif len(m.text.split()) > 1:the_time_string = m.command[1]else:the_time_string = Noneif len(m.text.split()) > 2:reason = m.text.split(None, 2)[2]else:reason = Noneelse:try:msg_entities = m.entities[1] if m.text.startswith("/") else m.entities[0]except:returntarget_user = await c.get_users(msg_entities.user.idif msg_entities.type == enums.MessageEntityType.TEXT_MENTIONelse int(m.command[1])if m.command[1].isdecimal()else m.command[1])if len(m.text.split()) > 2:the_time_string = m.command[2]else:the_time_string = Noneif len(m.text.split()) > 3:reason = m.text.split(None, 3)[3]else:reason = Noneif not the_time_string:return await m.reply_text(strings("error_must_specify_time").format(command=m.command[0]))else:try:the_time, time_unix_now = await time_extract(m, the_time_string)except InvalidTimeUnitStringSpecifiedError as invalidtimeerrmsg:await m.reply_text(invalidtimeerrmsg)returnreturn target_user, the_time, the_time_string, reason, time_unix_now
| 13
| 49
| 3
| 306
| 4
| 110
| 158
| 110
|
c,m,strings
|
['reason', 'target_user', 'msg_entities', 'the_time_string']
|
Returns
|
{"Assign": 13, "Expr": 1, "If": 7, "Return": 5, "Try": 2}
| 19
| 49
| 19
|
["len", "m.text.split", "len", "m.text.split", "m.text.split", "m.text.startswith", "c.get_users", "isdecimal", "int", "len", "m.text.split", "len", "m.text.split", "m.text.split", "m.reply_text", "format", "strings", "time_extract", "m.reply_text"]
| 2
|
["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tmute"]
|
The function (get_target_user_and_time_and_reason) defined within the public class called public.The function start at line 110 and ends at 158. It contains 49 lines of code and it has a cyclomatic complexity of 13. It takes 3 parameters, represented as [110.0], and this function return a value. It declares 19.0 functions, It has 19.0 functions called inside which are ["len", "m.text.split", "len", "m.text.split", "m.text.split", "m.text.startswith", "c.get_users", "isdecimal", "int", "len", "m.text.split", "len", "m.text.split", "m.text.split", "m.reply_text", "format", "strings", "time_extract", "m.reply_text"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tban", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.admin_py.tmute"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
admin_echo_cmd
|
async def admin_echo_cmd(c: Client, m: Message):if len(m.text.split()) > 1:if m.reply_to_message:await m.reply_to_message.reply_text(m.text.split(None, 1)[1])else:await m.reply_text(m.text.split(None, 1)[1], quote=False)
| 3
| 6
| 2
| 76
| 0
| 163
| 168
| 163
|
c,m
|
[]
|
None
|
{"Expr": 2, "If": 2}
| 9
| 6
| 9
|
["len", "m.text.split", "m.reply_to_message.reply_text", "m.text.split", "m.reply_text", "m.text.split", "Client.on_message", "filters.command", "require_admin"]
| 0
|
[]
|
The function (admin_echo_cmd) defined within the public class called public.The function start at line 163 and ends at 168. It contains 6 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [163.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called inside which are ["len", "m.text.split", "m.reply_to_message.reply_text", "m.text.split", "m.reply_text", "m.text.split", "Client.on_message", "filters.command", "require_admin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
del_message
|
async def del_message(c: Client, m: Message):try:await c.delete_messages(m.chat.id,m.reply_to_message.id,)except:passtry:await c.delete_messages(m.chat.id, m.id)except:pass
| 3
| 12
| 2
| 54
| 0
| 180
| 191
| 180
|
c,m
|
[]
|
None
|
{"Expr": 2, "Try": 2}
| 6
| 12
| 6
|
["c.delete_messages", "c.delete_messages", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"]
| 0
|
[]
|
The function (del_message) defined within the public class called public.The function start at line 180 and ends at 191. It contains 12 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [180.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions called inside which are ["c.delete_messages", "c.delete_messages", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
pin
|
async def pin(c: Client, m: Message):if m.reply_to_message:await c.pin_chat_message(m.chat.id,m.reply_to_message.id,disable_notification=True,both_sides=True,)
| 2
| 8
| 2
| 42
| 0
| 204
| 211
| 204
|
c,m
|
[]
|
None
|
{"Expr": 1, "If": 1}
| 5
| 8
| 5
|
["c.pin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"]
| 0
|
[]
|
The function (pin) defined within the public class called public.The function start at line 204 and ends at 211. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [204.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["c.pin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
pinloud
|
async def pinloud(c: Client, m: Message):if m.reply_to_message:await c.pin_chat_message(m.chat.id,m.reply_to_message.id,disable_notification=False,both_sides=True,)
| 2
| 8
| 2
| 42
| 0
| 224
| 231
| 224
|
c,m
|
[]
|
None
|
{"Expr": 1, "If": 1}
| 5
| 8
| 5
|
["c.pin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"]
| 0
|
[]
|
The function (pinloud) defined within the public class called public.The function start at line 224 and ends at 231. It contains 8 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [224.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["c.pin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
unpin
|
async def unpin(c: Client, m: Message):if m.reply_to_message:await c.unpin_chat_message(m.chat.id, m.reply_to_message.id)
| 2
| 3
| 2
| 33
| 0
| 244
| 246
| 244
|
c,m
|
[]
|
None
|
{"Expr": 1, "If": 1}
| 5
| 3
| 5
|
["c.unpin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"]
| 0
|
[]
|
The function (unpin) defined within the public class called public.The function start at line 244 and ends at 246. It contains 3 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [244.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["c.unpin_chat_message", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"].
|
iiiiii1wepfj_alisurobot
|
public
|
public
| 0
| 0
|
unpinall
|
async def unpinall(c: Client, m: Message):await c.unpin_all_chat_messages(m.chat.id)
| 1
| 2
| 2
| 22
| 0
| 259
| 260
| 259
|
c,m
|
[]
|
None
|
{"Expr": 1}
| 5
| 2
| 5
|
["c.unpin_all_chat_messages", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"]
| 0
|
[]
|
The function (unpinall) defined within the public class called public.The function start at line 259 and ends at 260. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [259.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions called inside which are ["c.unpin_all_chat_messages", "Client.on_message", "filters.command", "require_admin", "bot_require_admin"].
|
End of preview. Expand
in Data Studio
π Python Function-Level AST and Lexical Features Dataset
π Dataset Summary
This dataset integrates function-level static analysis data from Python repositories.
It merges three data sources:
- Lizard Cyclomatic Analysis: provides complexity, NLOC, and basic function metadata.
- AST Extracted Features: includes detailed abstract syntax tree information such as token counts, parameters, variable extraction, and function bodies.
- Lexical Features: captures lexical and structural features of each function (e.g., class structure, modifiers, incoming/outgoing calls, and statement types) and presents it in natural language.
The resulting Dataset represents each Python function as a unified row combining complexity metrics, lexical information, and AST structure β enabling advanced research in:
- Code comprehension
- Automated refactoring
- Software quality analysis
- Function-level code search
- Maintainability prediction
- ML model training for software engineering tasks
π§ Intended Uses
- Feature extraction for code comprehension and maintainability modeling.
- Supervised learning for:
- Maintainability prediction (regression / ordinal classification).
- Refactoring-need ranking (learning-to-rank).
- Benchmarking code-representation learning or graph-based refactoring tools.
- Downstream tasks such as clone detection, defect prediction, and code search.
π Dataset Structure
Each row corresponds to one Python function identified across open-source repositories.
Columns
| Column name | Description |
|---|---|
project_name |
Repository name |
class_name |
Class name containing the function (if applicable) |
class_modifiers |
Access modifiers of the class |
class_implements |
Interfaces implemented |
class_extends |
Class inheritance |
function_name |
Function name |
function_body |
Raw function body code |
cyclomatic_complexity |
Cyclomatic complexity measure |
NLOC |
Number of lines of code |
num_parameter |
Number of function parameters |
num_token |
Number of tokens |
num_variable |
Number of variables detected in function |
start_line / end_line |
Start and end line of the function in the file |
function_index |
Function index in AST parsing |
function_params |
Parameter names |
function_variable |
Variable names extracted |
function_return_type |
Return type (if inferred) |
function_body_line_type |
Mapping of statement types inside the function (e.g., Assign, If, Return) |
function_num_functions |
Number of functions declared inside |
function_num_lines |
Number of lines of function (lexical) |
outgoing_function_count / outgoing_function_names |
Number and names of functions called inside this function |
incoming_function_count / incoming_function_names |
Number and names of functions calling this function |
lexical_representation |
Present the code features as natural language. |
βοΈ Data Sources
- Static analysis performed on public Python repositories cloned from GitHub that apply the following characteristics (python language projects, commits > 500, and contributors > 10).
- Function-level analysis uses:
lizardfor cyclomatic complexity.- Python AST (https://docs.python.org/3/library/ast.html) parsing for structural features.
- Lexical presentation driven by structural and 15 extract code features.
π§ͺ Dataset Creation
Collection
- Clone open-source Python repositories.
- Run Lizard static analysis to generate base metrics.
- Parse source files to extract AST and 15 code features.
- Convert code features to natural language using rule-based code.
- Merge the three sources
π‘ How to Load
from datasets import load_dataset
data = load_dataset("rehaidib/PyFuncAST-Lex", split="train")
or manually:
import pandas as pd
df = pd.read_parquet("PyFuncAST-Lex.parquet")
Citation
If you use this dataset, please cite:
@dataset{PyFuncAST-Lex,
title = {PyFuncAST-Lex: Python Function-Level AST and Lexical Features Dataset},
author = {Reem Al-Ehaidib},
year = {2025},
month = {11},
publisher = {Hugging Face Datasets},
version = {1.0},
url = {https://huggingface.co/datasets/rehaidib/pyfunc_code_features}
}
- Downloads last month
- 12