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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | coub | async def coub(c: Client, m: Message, strings):text = m.text[6:]r = await http.get("https://coub.com/api/v2/search/coubs", params=dict(q=text))rjson = r.json()try:content = random.choice(rjson["coubs"])links = content["permalink"]title = content["title"]except IndexError:await m.reply_text(strings("no_results", context... | 2 | 12 | 3 | 99 | 6 | 16 | 27 | 16 | c,m,strings | ['links', 'title', 'r', 'content', 'rjson', 'text'] | None | {"Assign": 6, "Expr": 2, "Try": 1} | 10 | 12 | 10 | ["http.get", "dict", "r.json", "random.choice", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (coub) defined within the public class called public.The function start at line 16 and ends at 27. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [16.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functions called ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | add_filter | async def add_filter(chat_id: int,trigger,filter_type,raw_data: Optional[str] = None,file_id: Optional[str] = None,):await filtersdb.create(chat_id=chat_id,filter_name=trigger,raw_data=raw_data,file_id=file_id,filter_type=filter_type,) | 1 | 14 | 5 | 56 | 0 | 19 | 32 | 19 | chat_id,trigger,filter_type,raw_data,file_id | [] | None | {"Expr": 1} | 1 | 14 | 1 | ["filtersdb.create"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918618_moveangel_one4ubot.userbot.modules.filter_py.add_new_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.filter_py.add_new_filter", "_.content.gdrive.MyDrive... | The function (add_filter) defined within the public class called public.The function start at line 19 and ends at 32. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [19.0] and does not return any value. It declare 1.0 function, It has 1.0 function called insi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | update_filter | async def update_filter(chat_id: int,trigger,filter_type,raw_data: Optional[str] = None,file_id: Optional[str] = None,):await filtersdb.filter(chat_id=chat_id, filter_name=trigger).update(raw_data=raw_data, file_id=file_id, filter_type=filter_type) | 1 | 10 | 5 | 58 | 0 | 35 | 44 | 35 | chat_id,trigger,filter_type,raw_data,file_id | [] | None | {"Expr": 1} | 2 | 10 | 2 | ["update", "filtersdb.filter"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.save_filter"] | The function (update_filter) defined within the public class called public.The function start at line 35 and ends at 44. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [35.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions calle... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | rm_filter | async def rm_filter(chat_id: int, trigger):await filtersdb.filter(chat_id=chat_id, filter_name=trigger).delete() | 1 | 2 | 2 | 26 | 0 | 47 | 48 | 47 | chat_id,trigger | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["delete", "filtersdb.filter"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.delete_filter"] | The function (rm_filter) 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. It takes 2 parameters, represented as [47.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called ins... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_all_filters | async def get_all_filters(chat_id: int):return await filtersdb.filter(chat_id=chat_id) | 1 | 2 | 1 | 17 | 0 | 51 | 52 | 51 | chat_id | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["filtersdb.filter"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.check_for_filters", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.get_all_filter", "_... | The function (get_all_filters) defined within the public class called public.The function start at line 51 and ends at 52. 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... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | check_for_filters | async def check_for_filters(chat_id: int, trigger):all_filters = await get_all_filters(chat_id)for keywords in all_filters:keyword = keywords.filter_nameif trigger == keyword:return Truereturn False | 3 | 7 | 2 | 35 | 2 | 55 | 61 | 55 | chat_id,trigger | ['keyword', 'all_filters'] | Returns | {"Assign": 2, "For": 1, "If": 1, "Return": 2} | 1 | 7 | 1 | ["get_all_filters"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.delete_filter", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.save_filter"] | The function (check_for_filters) defined within the public class called public.The function start at line 55 and ends at 61. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [55.0], and this function return a value. It declare 1.0 function, It has 1.0 function c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | save_filter | async def save_filter(c: Client, m: Message, strings):if len(m.text.split()) > 1:args = m.text.markdown.split(maxsplit=1)else:returnsplit_text = split_quotes(args[1])trigger = split_text[0].lower()if m.reply_to_message is None and len(split_text) < 2:await m.reply_text(strings("add_filter_empty"), quote=True)returnif m... | 23 | 80 | 3 | 464 | 8 | 76 | 158 | 76 | c,m,strings | ['args', 'chat_id', 'filter_type', 'file_id', 'raw_data', 'check_filter', 'trigger', 'split_text'] | None | {"Assign": 26, "Expr": 4, "If": 9, "Return": 2} | 19 | 83 | 19 | ["len", "m.text.split", "m.text.markdown.split", "split_quotes", "lower", "len", "m.reply_text", "strings", "len", "check_for_filters", "update_filter", "add_filter", "m.reply_text", "format", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (save_filter) defined within the public class called public.The function start at line 76 and ends at 158. It contains 80 lines of code and it has a cyclomatic complexity of 23. It takes 3 parameters, represented as [76.0] and does not return any value. It declares 19.0 functions, and It has 19.0 function... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | delete_filter | async def delete_filter(c: Client, m: Message, strings):if len(m.text.split()) > 1:args = m.text.markdown.split(maxsplit=1)else:returntrigger = args[1].lower()chat_id = m.chat.idcheck_filter = await check_for_filters(chat_id=chat_id,trigger=trigger,)if check_filter:await rm_filter(chat_id=chat_id,trigger=trigger,)await... | 3 | 23 | 3 | 134 | 4 | 174 | 196 | 174 | c,m,strings | ['chat_id', 'check_filter', 'args', 'trigger'] | None | {"Assign": 4, "Expr": 3, "If": 2, "Return": 1} | 16 | 23 | 16 | ["len", "m.text.split", "m.text.markdown.split", "lower", "check_for_filters", "rm_filter", "m.reply_text", "format", "strings", "m.reply_text", "format", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (delete_filter) defined within the public class called public.The function start at line 174 and ends at 196. It contains 23 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [174.0] and does not return any value. It declares 16.0 functions, and It has 16.0 funct... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_all_filter | async def get_all_filter(c: Client, m: Message, strings):chat_id = m.chat.idreply_text = strings("filters_list")all_filters = await get_all_filters(chat_id=chat_id)for filter_s in all_filters:keyword = filter_s.filter_namereply_text += f" - {keyword} \n"if not all_filters:await m.reply_text(strings("filters_list_empty"... | 3 | 11 | 3 | 80 | 4 | 202 | 213 | 202 | c,m,strings | ['reply_text', 'chat_id', 'keyword', 'all_filters'] | None | {"Assign": 4, "AugAssign": 1, "Expr": 2, "For": 1, "If": 1} | 8 | 12 | 8 | ["strings", "get_all_filters", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (get_all_filter) defined within the public class called public.The function start at line 202 and ends at 213. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [202.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | serve_filter | async def serve_filter(c: Client, m: Message):chat_id = m.chat.idtext = m.texttargeted_message = m.reply_to_message or mall_filters = await get_all_filters(chat_id=chat_id)for filter_s in all_filters:keyword = filter_s.filter_namepattern = r"( |^|[^\w])" + re.escape(keyword) + r"( |$|[^\w])"if re.search(pattern, text, ... | 23 | 77 | 2 | 439 | 6 | 223 | 300 | 223 | c,m | ['chat_id', 'pattern', 'targeted_message', 'text', 'keyword', 'all_filters'] | None | {"Assign": 7, "Expr": 7, "For": 1, "If": 8} | 26 | 78 | 26 | ["get_all_filters", "re.escape", "re.search", "button_parser", "targeted_message.reply_text", "len", "InlineKeyboardMarkup", "targeted_message.reply_photo", "len", "InlineKeyboardMarkup", "targeted_message.reply_document", "len", "InlineKeyboardMarkup", "targeted_message.reply_video", "len", "InlineKeyboardMarkup", "ta... | 0 | [] | The function (serve_filter) defined within the public class called public.The function start at line 223 and ends at 300. It contains 77 lines of code and it has a cyclomatic complexity of 23. It takes 2 parameters, represented as [223.0] and does not return any value. It declares 26.0 functions, and It has 26.0 funct... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | dice | async def dice(c: Client, m: Message, strings):dicen = await c.send_dice(m.chat.id,reply_to_message_id=m.id,)await dicen.reply_text(strings("result").format(number=dicen.dice.value,),quote=True,) | 1 | 11 | 3 | 60 | 1 | 21 | 31 | 21 | c,m,strings | ['dicen'] | None | {"Assign": 1, "Expr": 1} | 7 | 11 | 7 | ["c.send_dice", "dicen.reply_text", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3658120_dedupeio_hcluster.tests.test_distance_py.TestPdist.test_pdist_dice_mtica1", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3658120_dedupeio_hcluster.tests.test_distance_py.TestPdist.test_pdist_dice_mtica2"] | The function (dice) defined within the public class called public.The function start at line 21 and ends at 31. It contains 11 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [21.0] and does not return any value. It declares 7.0 functions, It has 7.0 functions called inside ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | dog | async def dog(c: Client, m: Message, strings):r = await http.get("https://random.dog/woof.json")rj = r.json()await m.reply_photo(rj["url"], caption=strings("woof")) | 1 | 4 | 3 | 46 | 2 | 14 | 18 | 14 | c,m,strings | ['r', 'rj'] | None | {"Assign": 2, "Expr": 1} | 7 | 5 | 7 | ["http.get", "r.json", "m.reply_photo", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (dog) defined within the public class called public.The function start at line 14 and ends at 18. It contains 4 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [14.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions called insi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | gif | async def gif(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("gif_usage"))text = m.text.split(maxsplit=1)[1]r = await http.get("https://api.tenor.com/v1/random",params=dict(q=text, key=TENOR_API_KEY, limit=1),)rjson = r.json()if rjson["results"]:res = rjson["results"][0]["media... | 3 | 14 | 3 | 133 | 4 | 21 | 35 | 21 | c,m,strings | ['rjson', 'res', 'text', 'r'] | Returns | {"Assign": 4, "Expr": 2, "If": 2, "Return": 1} | 13 | 15 | 13 | ["len", "m.reply_text", "strings", "m.text.split", "http.get", "dict", "r.json", "m.reply_animation", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (gif) defined within the public class called public.The function start at line 21 and ends at 35. It contains 14 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [21.0], and this function return a value. It declares 13.0 functions, and It has 13.0 functions call... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | git | async def git(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("no_username_err"), reply_to_message_id=m.id)text = m.text.split(maxsplit=1)[1]req = await http.get(f"https://api.github.com/users/{text}")res = req.json()if not res.get("login"):return await m.reply_text(strings("not... | 3 | 26 | 3 | 188 | 6 | 16 | 45 | 16 | c,m,strings | ['res', 'caption_text', 'text', 'req', 'avatar', 'anticache'] | Returns | {"Assign": 6, "Expr": 1, "If": 2, "Return": 2} | 17 | 30 | 17 | ["len", "m.reply_text", "strings", "m.text.split", "http.get", "req.json", "res.get", "m.reply_text", "strings", "quote_plus", "http.head", "strings", "m.reply_photo", "caption_text.format", "Client.on_message", "filters.command", "use_chat_lang"] | 25 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3679762_claranet_cloud_deploy.libs.provisioners.provisioner_py.FeaturesProvisioner._get_provisioner_repo", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._au_files"... | The function (git) defined within the public class called public.The function start at line 16 and ends at 45. It contains 26 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [16.0], and this function return a value. It declares 17.0 functions, It has 17.0 functions called in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | hastebin | async def hastebin(c: Client, m: Message, strings):if m.reply_to_message:if m.reply_to_message.document:tfile = m.reply_to_messageto_file = await tfile.download()with open(to_file, "rb") as fd:mean = fd.read().decode("UTF-8")if m.reply_to_message.text:mean = m.reply_to_message.texturl: str = "https://hastebin.com/docum... | 4 | 15 | 3 | 126 | 4 | 14 | 29 | 14 | c,m,strings | ['mean', 'to_file', 'r', 'tfile'] | None | {"AnnAssign": 2, "Assign": 5, "Expr": 2, "If": 3, "With": 1} | 13 | 16 | 13 | ["tfile.download", "open", "decode", "fd.read", "http.post", "mean.encode", "r.json", "m.reply_text", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (hastebin) defined within the public class called public.The function start at line 14 and ends at 29. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [14.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions cal... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | ids_private | async def ids_private(c: Client, m: Message, strings):if len(m.command) == 2:try:user_data = await c.get_users(int(m.command[1]) if m.command[1].isdecimal() else m.command[1])except BadRequest:return await m.reply_text(strings("user_not_found").format(user=m.command[1]))else:user_data = m.from_userawait m.reply_text(st... | 8 | 25 | 3 | 174 | 1 | 16 | 40 | 16 | c,m,strings | ['user_data'] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1, "Try": 1} | 16 | 25 | 16 | ["len", "c.get_users", "isdecimal", "int", "m.reply_text", "format", "strings", "m.reply_text", "format", "strings", "strings", "strings", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (ids_private) defined within the public class called public.The function start at line 16 and ends at 40. It contains 25 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [16.0], and this function return a value. It declares 16.0 functions, and It has 16.0 functi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | ids | async def ids(c: Client, m: Message, strings):if len(m.command) == 2:try:user_data = await c.get_users(int(m.command[1]) if m.command[1].isdecimal() else m.command[1])except BadRequest:return await m.reply_text(strings("user_not_found").format(user=m.command[1]))elif m.reply_to_message:user_data = m.reply_to_message.fr... | 12 | 35 | 3 | 262 | 1 | 46 | 81 | 46 | c,m,strings | ['user_data'] | Returns | {"Assign": 3, "Expr": 1, "If": 3, "Return": 2, "Try": 1} | 20 | 36 | 20 | ["len", "c.get_users", "isdecimal", "int", "m.reply_text", "format", "strings", "m.reply_text", "format", "strings", "html.escape", "html.escape", "strings", "strings", "strings", "strings", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (ids) defined within the public class called public.The function start at line 46 and ends at 81. It contains 35 lines of code and it has a cyclomatic complexity of 12. It takes 3 parameters, represented as [46.0], and this function return a value. It declares 20.0 functions, and It has 20.0 functions cal... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | user_info | async def user_info(c: Client, m: Message, strings):if len(m.command) == 2:try:user = await c.get_users(int(m.command[1]) if m.command[1].isdecimal() else m.command[1])except BadRequest:return await m.reply_text(strings("user_not_found").format(user=m.command[1]))elif m.reply_to_message:user = m.reply_to_message.from_u... | 11 | 34 | 3 | 294 | 3 | 14 | 53 | 14 | c,m,strings | ['member', 'user', 'text'] | Returns | {"Assign": 5, "AugAssign": 7, "Expr": 1, "If": 7, "Return": 2, "Try": 2} | 29 | 40 | 29 | ["len", "c.get_users", "isdecimal", "int", "m.reply_text", "format", "strings", "strings", "format", "strings", "format", "strings", "html.escape", "format", "strings", "html.escape", "format", "strings", "html.escape", "format", "strings", "user.mention", "c.get_chat_member", "strings", "strings", "m.reply_text", "Cli... | 0 | [] | The function (user_info) defined within the public class called public.The function start at line 14 and ends at 53. It contains 34 lines of code and it has a cyclomatic complexity of 11. It takes 3 parameters, represented as [14.0], and this function return a value. It declares 29.0 functions, and It has 29.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | faces_inline | async def faces_inline(c: Client,q: InlineQuery,):faces_list: List[str] = ["¯\\_(ツ)_/¯","( ͡° ͜ʖ ͡°)","( ͡~ ͜ʖ ͡°)","( ͡◐ ͜ʖ ͡◑))","( ͡◔ ͜ʖ ͡◔)","( ͡⚆ ͜ʖ ͡⚆)","( ͡ʘ ͜ʖ ͡ʘ)","ヽ༼ຈل͜ຈ༽ノ","༼ʘ̚ل͜ʘ̚༽","(╯°□°)╯","(ノ◕ヮ◕)ノ","(ノ◕ヮ◕)ノ*:・゚✧","(◕‿◕)","(。◕‿‿◕。)","(っ◕‿◕)っ","(づ。◕‿‿◕。)づ","༼ つ ◕_◕ ༽つ","(ง ͠° ͟ل͜ ͡°)ง","(ง'̀-'́)ง","ᕙ(⇀‸↼... | 2 | 50 | 2 | 129 | 0 | 21 | 70 | 21 | c,q | [] | None | {"AnnAssign": 2, "Expr": 2, "For": 1} | 6 | 50 | 6 | ["results.append", "InlineQueryResultArticle", "InputTextMessageContent", "q.answer", "Client.on_inline_query", "filters.regex"] | 0 | [] | The function (faces_inline) defined within the public class called public.The function start at line 21 and ends at 70. It contains 50 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [21.0] and does not return any value. It declares 6.0 functions, and It has 6.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | markdown_inline | async def markdown_inline(c: Client,q: InlineQuery,strings,):queryinputres = q.query.split(None, 1)[1]querytxt, querybuttons = button_parser(queryinputres)await q.answer([InlineQueryResultArticle(title=strings("markdown_send_inline"),input_message_content=InputTextMessageContent(querytxt, parse_mode=enums.ParseMode.MAR... | 2 | 22 | 3 | 88 | 1 | 75 | 96 | 75 | c,q,strings | ['queryinputres'] | None | {"Assign": 2, "Expr": 1} | 11 | 22 | 11 | ["q.query.split", "button_parser", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "len", "InlineKeyboardMarkup", "Client.on_inline_query", "filters.regex", "use_chat_lang"] | 0 | [] | The function (markdown_inline) defined within the public class called public.The function start at line 75 and ends at 96. It contains 22 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [75.0] and does not return any value. It declares 11.0 functions, and It has 11.0 functi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | html_inline | async def html_inline(c: Client,q: InlineQuery,strings,):queryinputres = q.query.split(None, 1)[1]querytxt, querybuttons = button_parser(queryinputres)await q.answer([InlineQueryResultArticle(title=strings("html_send_inline"),input_message_content=InputTextMessageContent(querytxt, parse_mode=enums.ParseMode.HTML),reply... | 2 | 22 | 3 | 88 | 1 | 101 | 122 | 101 | c,q,strings | ['queryinputres'] | None | {"Assign": 2, "Expr": 1} | 11 | 22 | 11 | ["q.query.split", "button_parser", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "len", "InlineKeyboardMarkup", "Client.on_inline_query", "filters.regex", "use_chat_lang"] | 0 | [] | The function (html_inline) defined within the public class called public.The function start at line 101 and ends at 122. It contains 22 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [101.0] and does not return any value. It declares 11.0 functions, and It has 11.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | info_inline | async def info_inline(c: Client,q: InlineQuery,strings,):try:if q.query == "info":user = q.from_userelif q.query.lower().split(None, 1)[1]:txt = q.query.lower().split(None, 1)[1]user = await c.get_users(txt)except (PeerIdInvalid, UsernameInvalid, UserIdInvalid):await q.answer([InlineQueryResultArticle(title=strings("us... | 4 | 37 | 3 | 171 | 2 | 127 | 163 | 127 | c,q,strings | ['user', 'txt'] | None | {"Assign": 3, "Expr": 2, "If": 2, "Try": 1} | 20 | 37 | 20 | ["split", "q.query.lower", "split", "q.query.lower", "c.get_users", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "strings", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "format", "strings", "user.mention", "Client.on_inline_query", "filters.regex", "use_... | 0 | [] | The function (info_inline) defined within the public class called public.The function start at line 127 and ends at 163. It contains 37 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [127.0] and does not return any value. It declares 20.0 functions, and It has 20.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | ip_cmd | async def ip_cmd(c: Client, m: Message, strings):if len(m.text.split()) > 1:text = m.text.split(maxsplit=1)[1]if text.startswith("http"):url = re.sub("http(s|)://", "", text)else:url = textr = await http.get("http://ip-api.com/json/" + url)req = r.json()x: str = ""for i in req:x += "<b>{}</b>: <code>{}</code>\n".format... | 4 | 15 | 3 | 139 | 4 | 20 | 34 | 20 | c,m,strings | ['req', 'url', 'text', 'r'] | None | {"AnnAssign": 1, "Assign": 5, "AugAssign": 1, "Expr": 2, "For": 1, "If": 2} | 15 | 15 | 15 | ["len", "m.text.split", "m.text.split", "text.startswith", "re.sub", "http.get", "r.json", "format", "i.title", "m.reply_text", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (ip_cmd) defined within the public class called public.The function start at line 20 and ends at 34. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [20.0] and does not return any value. It declares 15.0 functions, and It has 15.0 functions calle... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | ip_inline | async def ip_inline(c: Client, q: InlineQuery):if len(q.query.split()) > 1:text = q.query.split(maxsplit=1)[1]if text.startswith("http"):url = re.sub("http(s|)://", "", text)else:url = textr = await http.get("http://ip-api.com/json/" + url)req = r.json()x: str = ""for i in req:x += "<b>{}</b>: <code>{}</code>\n".format... | 4 | 32 | 2 | 175 | 4 | 38 | 69 | 38 | c,q | ['req', 'url', 'text', 'r'] | None | {"AnnAssign": 1, "Assign": 5, "AugAssign": 1, "Expr": 2, "For": 1, "If": 2} | 17 | 32 | 17 | ["len", "q.query.split", "q.query.split", "text.startswith", "re.sub", "http.get", "r.json", "format", "i.title", "q.answer", "InlineQueryResultArticle", "InputTextMessageContent", "q.answer", "InlineQueryResultArticle", "InputTextMessageContent", "Client.on_inline_query", "filters.regex"] | 0 | [] | The function (ip_inline) defined within the public class called public.The function start at line 38 and ends at 69. It contains 32 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [38.0] and does not return any value. It declares 17.0 functions, and It has 17.0 functions ca... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | jsondump | async def jsondump(c: Client, m: Message):params = m.text.split()# Remove the command and -f flag from list.params.pop(0)if "-f" in params:params.remove("-f")# Strip all things like _client and bound methods from Message.obj = json.loads(str(m))for param in params:param = int(param) if param.lstrip("-").isdecimal() els... | 8 | 22 | 2 | 172 | 5 | 15 | 44 | 15 | c,m | ['obj', 'send_as_file', 'param', 'params', 'bio'] | Returns | {"AnnAssign": 1, "Assign": 7, "Expr": 4, "For": 1, "If": 3, "Return": 1, "Try": 1} | 18 | 30 | 18 | ["m.text.split", "params.pop", "params.remove", "json.loads", "str", "isdecimal", "param.lstrip", "int", "m.reply_text", "json.dumps", "len", "io.BytesIO", "obj.encode", "m.reply_document", "m.reply_text", "html.escape", "Client.on_message", "filters.command"] | 0 | [] | The function (jsondump) defined within the public class called public.The function start at line 15 and ends at 44. It contains 22 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [15.0], and this function return a value. It declares 18.0 functions, and It has 18.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | gen_langs_kb | def gen_langs_kb():langs = list(langdict)kb: list = []while langs:lang = langdict[langs[0]]["main"]a = [InlineKeyboardButton(f"{lang['language_flag']} {lang['language_name']}",callback_data="set_lang " + langs[0],)]langs.pop(0)if langs:lang = langdict[langs[0]]["main"]a.append(InlineKeyboardButton(f"{lang['language_fla... | 3 | 23 | 0 | 105 | 3 | 23 | 45 | 23 | ['lang', 'a', 'langs'] | Returns | {"AnnAssign": 1, "Assign": 4, "Expr": 4, "If": 1, "Return": 1, "While": 1} | 7 | 23 | 7 | ["list", "InlineKeyboardButton", "langs.pop", "a.append", "InlineKeyboardButton", "langs.pop", "kb.append"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.langs_py.chlang"] | The function (gen_langs_kb) defined within the public class called public.The function start at line 23 and ends at 45. It contains 23 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 7.0 functions, It has 7.0 functions calle... | |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | chlang | async def chlang(c: Client, m: Union[CallbackQuery, Message], strings):keyboard = InlineKeyboardMarkup(inline_keyboard=[*gen_langs_kb(),[InlineKeyboardButton(strings("back_btn", context="general"), callback_data="start_back")],])if isinstance(m, CallbackQuery):msg = m.messagesender = msg.edit_textelse:msg = msender = m... | 3 | 23 | 3 | 112 | 4 | 61 | 86 | 61 | c,m,strings | ['msg', 'res', 'sender', 'keyboard'] | None | {"Assign": 6, "Expr": 1, "If": 1} | 14 | 26 | 14 | ["InlineKeyboardMarkup", "gen_langs_kb", "InlineKeyboardButton", "strings", "isinstance", "strings", "strings", "sender", "Client.on_callback_query", "filters.regex", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (chlang) defined within the public class called public.The function start at line 61 and ends at 86. It contains 23 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [61.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions calle... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | set_chat_lang | async def set_chat_lang(c: Client, m: CallbackQuery, strings):lang = m.data.split()[1]await set_db_lang(m.message.chat.id, m.message.chat.type, lang)strings = partial(get_locale_string,langdict[lang].get("langs", langdict[default_language]["langs"]),lang,"langs",)if m.message.chat.type == enums.ChatType.PRIVATE:keyboar... | 2 | 25 | 3 | 138 | 3 | 92 | 118 | 92 | c,m,strings | ['strings', 'lang', 'keyboard'] | None | {"Assign": 4, "Expr": 2, "If": 1} | 13 | 27 | 13 | ["m.data.split", "set_db_lang", "partial", "get", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "m.message.edit_text", "strings", "Client.on_callback_query", "filters.regex", "require_admin", "use_chat_lang"] | 0 | [] | The function (set_chat_lang) defined within the public class called public.The function start at line 92 and ends at 118. It contains 25 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [92.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | mark | async def mark(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("mark_usage"))txt = m.text.split(None, 1)[1]msgtxt, buttons = button_parser(txt)await m.reply(msgtxt,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=(InlineKeyboardMarkup(buttons) if len(buttons) != 0 else None),) | 3 | 10 | 3 | 91 | 1 | 20 | 29 | 20 | c,m,strings | ['txt'] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1} | 11 | 10 | 11 | ["len", "m.reply_text", "strings", "m.text.split", "button_parser", "m.reply", "len", "InlineKeyboardMarkup", "Client.on_message", "filters.command", "use_chat_lang"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86374841_meco_group_rockit.rockit.external.acados.method_py.AcadosMethod.transcribe_phase2"] | The function (mark) defined within the public class called public.The function start at line 20 and ends at 29. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [20.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called i... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | html | async def html(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("html_usage"))txt = m.text.split(None, 1)[1]msgtxt, buttons = button_parser(txt)await m.reply(msgtxt,parse_mode=enums.ParseMode.HTML,reply_markup=(InlineKeyboardMarkup(buttons) if len(buttons) != 0 else None),) | 3 | 10 | 3 | 91 | 1 | 35 | 44 | 35 | c,m,strings | ['txt'] | Returns | {"Assign": 2, "Expr": 1, "If": 1, "Return": 1} | 11 | 10 | 11 | ["len", "m.reply_text", "strings", "m.text.split", "button_parser", "m.reply", "len", "InlineKeyboardMarkup", "Client.on_message", "filters.command", "use_chat_lang"] | 22 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.arith.misc_py.xkcd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.bisection_method", "_.content.gdrive.MyDr... | The function (html) defined within the public class called public.The function start at line 35 and ends at 44. It contains 10 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [35.0], and this function return a value. It declares 11.0 functions, It has 11.0 functions called i... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | mentionadmins | async def mentionadmins(c: Client, m: Message, strings):mention: str = ""async for i in m.chat.get_members(m.chat.id, filter=enums.ChatMembersFilter.ADMINISTRATORS):if not (i.user.is_deleted or i.privileges.is_anonymous):mention += f"{i.user.mention}\n"await c.send_message(m.chat.id,strings("admins_list").format(chat_t... | 4 | 9 | 3 | 95 | 0 | 50 | 58 | 50 | c,m,strings | [] | None | {"AnnAssign": 1, "AugAssign": 1, "Expr": 1, "If": 1} | 7 | 9 | 7 | ["m.chat.get_members", "c.send_message", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (mentionadmins) defined within the public class called public.The function start at line 50 and ends at 58. It contains 9 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [50.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | reportadmins | async def reportadmins(c: Client, m: Message, strings):if m.reply_to_message.from_user:check_admin = await c.get_chat_member(m.chat.id, m.reply_to_message.from_user.id)if check_admin.status not in admin_status:mention = ""async for i in m.chat.get_members(filter=enums.ChatMembersFilter.ADMINISTRATORS):if not (i.user.is... | 7 | 16 | 3 | 130 | 2 | 68 | 83 | 68 | c,m,strings | ['check_admin', 'mention'] | None | {"Assign": 2, "AugAssign": 1, "Expr": 1, "If": 3} | 10 | 16 | 10 | ["c.get_chat_member", "m.chat.get_members", "m.reply_to_message.reply_text", "format", "strings", "m.reply_to_message.from_user.mention", "Client.on_message", "filters.command", "filters.regex", "use_chat_lang"] | 0 | [] | The function (reportadmins) defined within the public class called public.The function start at line 68 and ends at 83. It contains 16 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [68.0] and does not return any value. It declares 10.0 functions, and It has 10.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | getbotinfo | async def getbotinfo(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("no_bot_token"), reply_to_message_id=m.id)text = m.text.split(maxsplit=1)[1]req = await http.get(f"https://api.telegram.org/bot{text}/getme")fullres = req.json()if not fullres["ok"]:await m.reply(strings("bot_t... | 3 | 19 | 3 | 141 | 5 | 88 | 106 | 88 | c,m,strings | ['res', 'get_bot_info_text', 'text', 'req', 'fullres'] | Returns | {"Assign": 5, "Expr": 2, "If": 2, "Return": 1} | 14 | 19 | 14 | ["len", "m.reply_text", "strings", "m.text.split", "http.get", "req.json", "m.reply", "strings", "strings", "m.reply", "get_bot_info_text.format", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (getbotinfo) defined within the public class called public.The function start at line 88 and ends at 106. It contains 19 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [88.0], and this function return a value. It declares 14.0 functions, and It has 14.0 functi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | rtcommand | async def rtcommand(c: Client, m: Message):rt_text = Noneif m.reply_to_message.media:rt_text = m.reply_to_message.captionelse:rt_text = m.reply_to_message.textif rt_text is None:returnif m.from_user:from_rt_user = m.from_user.first_nameelif m.sender_chat:from_rt_user = m.sender_chat.titleelse:returnif m.reply_to_messag... | 8 | 29 | 2 | 148 | 3 | 116 | 146 | 116 | c,m | ['from_rt_user', 'rt_text', 'from_reply_rt_user'] | None | {"AnnAssign": 1, "Assign": 7, "AugAssign": 2, "Expr": 1, "If": 7, "Return": 3} | 7 | 31 | 7 | ["re.match", "escape", "escape", "escape", "m.reply_to_message.reply_text", "Client.on_message", "filters.regex"] | 0 | [] | The function (rtcommand) defined within the public class called public.The function start at line 116 and ends at 146. It contains 29 lines of code and it has a cyclomatic complexity of 8. It takes 2 parameters, represented as [116.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | urlencodecmd | async def urlencodecmd(c: Client, m: Message):await m.reply_text(quote(m.text.split(None, 1)[1])) | 1 | 2 | 2 | 33 | 0 | 152 | 153 | 152 | c,m | [] | None | {"Expr": 1} | 5 | 2 | 5 | ["m.reply_text", "quote", "m.text.split", "Client.on_message", "filters.command"] | 0 | [] | The function (urlencodecmd) defined within the public class called public.The function start at line 152 and ends at 153. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [152.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | urldecodecmd | async def urldecodecmd(c: Client, m: Message):await m.reply_text(unquote(m.text.split(None, 1)[1])) | 1 | 2 | 2 | 33 | 0 | 159 | 160 | 159 | c,m | [] | None | {"Expr": 1} | 5 | 2 | 5 | ["m.reply_text", "unquote", "m.text.split", "Client.on_message", "filters.command"] | 0 | [] | The function (urldecodecmd) defined within the public class called public.The function start at line 159 and ends at 160. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [159.0] and does not return any value. It declares 5.0 functions, and It has 5.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | bug_report_cmd | async def bug_report_cmd(c: Client, m: Message, strings):if not m.from_user:returnif len(m.text.split()) > 1:try:bug_report = ("<b>Bug Report</b>\n"f"User: {m.from_user.mention}\n"f"ID: <code>{m.from_user.id}</code>\n\n""The content of the report:\n"f"<code>{escape(m.text.split(None, 1)[1])}</code>")await c.send_messag... | 4 | 22 | 3 | 101 | 1 | 166 | 187 | 166 | c,m,strings | ['bug_report'] | None | {"Assign": 1, "Expr": 4, "If": 2, "Return": 1, "Try": 1} | 14 | 22 | 14 | ["len", "m.text.split", "escape", "m.text.split", "c.send_message", "m.reply_text", "strings", "m.reply_text", "strings", "m.reply", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (bug_report_cmd) defined within the public class called public.The function start at line 166 and ends at 187. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [166.0] and does not return any value. It declares 14.0 functions, and It has 14.0 func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | request_cmd | async def request_cmd(c: Client, m: Message):if len(m.text.split()) > 1:text = m.text.split(maxsplit=1)[1]if re.match(r"^(https?)://", text):url = textelse:url = "http://" + textreq = await http.get(url)headers = "<b>{}</b> <code>{} {}</code>\n".format(req.extensions.get("http_version").decode(),req.status_code,req.ext... | 4 | 22 | 2 | 168 | 4 | 192 | 213 | 192 | c,m | ['headers', 'url', 'text', 'req'] | None | {"Assign": 5, "AugAssign": 1, "Expr": 2, "If": 2} | 18 | 22 | 18 | ["len", "m.text.split", "m.text.split", "re.match", "http.get", "format", "decode", "req.extensions.get", "decode", "req.extensions.get", "join", "format", "x.title", "escape", "m.reply_text", "m.reply_text", "Client.on_message", "filters.command"] | 0 | [] | The function (request_cmd) defined within the public class called public.The function start at line 192 and ends at 213. It contains 22 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [192.0] and does not return any value. It declares 18.0 functions, and It has 18.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | button_parse_helper | async def button_parse_helper(c: Client, m: Message, strings):if len(m.text.split()) > 2:await m.reply_text(f"[{m.text.split(None, 2)[2]}](buttonurl:{m.command[1]})", parse_mode=enums.ParseMode.DISABLED)else:await m.reply_text(strings("parsebtn_err")) | 2 | 7 | 3 | 55 | 0 | 219 | 225 | 219 | c,m,strings | [] | None | {"Expr": 2, "If": 1} | 9 | 7 | 9 | ["len", "m.text.split", "m.reply_text", "m.text.split", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (button_parse_helper) defined within the public class called public.The function start at line 219 and ends at 225. It contains 7 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [219.0] and does not return any value. It declares 9.0 functions, and It has 9.0 fu... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | donate_to_owner_cmd | async def donate_to_owner_cmd(c: Client, m: Message):await m.reply_text("https://paypal.me/itayki") | 1 | 2 | 2 | 18 | 0 | 230 | 231 | 230 | c,m | [] | None | {"Expr": 1} | 3 | 2 | 3 | ["m.reply_text", "Client.on_message", "filters.command"] | 0 | [] | The function (donate_to_owner_cmd) defined within the public class called public.The function start at line 230 and ends at 231. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [230.0] and does not return any value. It declares 3.0 functions, and It has 3.0 fu... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | nekobin | async def nekobin(c: Client, m: Message, strings):if m.reply_to_message:if m.reply_to_message.document:tfile = m.reply_to_messageto_file = await tfile.download()with open(to_file, "rb") as fd:mean = fd.read().decode("UTF-8")if m.reply_to_message.text:mean = m.reply_to_message.texturl: str = "https://nekobin.com/api/doc... | 4 | 15 | 3 | 125 | 4 | 14 | 29 | 14 | c,m,strings | ['mean', 'to_file', 'r', 'tfile'] | None | {"AnnAssign": 2, "Assign": 5, "Expr": 2, "If": 3, "With": 1} | 12 | 16 | 12 | ["tfile.download", "open", "decode", "fd.read", "http.post", "r.json", "m.reply_text", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (nekobin) defined within the public class called public.The function start at line 14 and ends at 29. It contains 15 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [14.0] and does not return any value. It declares 12.0 functions, and It has 12.0 functions call... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | add_note | async def add_note(chat_id: int,trigger,note_type,raw_data: Optional[str] = None,file_id: Optional[str] = None,):await notes.create(chat_id=chat_id,note_name=trigger,raw_data=raw_data,file_id=file_id,note_type=note_type,) | 1 | 14 | 5 | 56 | 0 | 19 | 32 | 19 | chat_id,trigger,note_type,raw_data,file_id | [] | None | {"Expr": 1} | 1 | 14 | 1 | ["notes.create"] | 6 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918618_moveangel_one4ubot.userbot.modules.notes_py.add_note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.notes_py.add_note", "_.content.gdrive.MyDrive.Phd_Thesis.Da... | The function (add_note) defined within the public class called public.The function start at line 19 and ends at 32. It contains 14 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [19.0] and does not return any value. It declare 1.0 function, It has 1.0 function called inside... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | update_note | async def update_note(chat_id: int,trigger,note_type,raw_data: Optional[str] = None,file_id: Optional[str] = None,):await notes.filter(chat_id=chat_id, note_name=trigger).update(raw_data=raw_data, file_id=file_id, note_type=note_type) | 1 | 10 | 5 | 58 | 0 | 35 | 44 | 35 | chat_id,trigger,note_type,raw_data,file_id | [] | None | {"Expr": 1} | 2 | 10 | 2 | ["update", "notes.filter"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"] | The function (update_note) defined within the public class called public.The function start at line 35 and ends at 44. It contains 10 lines of code and it has a cyclomatic complexity of 1. It takes 5 parameters, represented as [35.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | rm_note | async def rm_note(chat_id: int, trigger):await notes.filter(chat_id=chat_id, note_name=trigger).delete() | 1 | 2 | 2 | 26 | 0 | 47 | 48 | 47 | chat_id,trigger | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["delete", "notes.filter"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918618_moveangel_one4ubot.userbot.modules.notes_py.remove_notes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.notes_py.remove_notes", "_.content.gdrive.MyDrive.Phd_T... | The function (rm_note) 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. It takes 2 parameters, represented as [47.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called insid... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_all_notes | async def get_all_notes(chat_id: int):return await notes.filter(chat_id=chat_id) | 1 | 2 | 1 | 17 | 0 | 51 | 52 | 51 | chat_id | [] | Returns | {"Return": 1} | 1 | 2 | 1 | ["notes.filter"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.check_for_notes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.get_all_chat_note", "_.content.gdrive.M... | The function (get_all_notes) defined within the public class called public.The function start at line 51 and ends at 52. 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 i... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | check_for_notes | async def check_for_notes(chat_id: int, trigger):all_notes = await get_all_notes(chat_id)for keywords in all_notes:keyword = keywords.note_nameif trigger == keyword:return Truereturn False | 3 | 7 | 2 | 35 | 2 | 55 | 61 | 55 | chat_id,trigger | ['keyword', 'all_notes'] | Returns | {"Assign": 2, "For": 1, "If": 1, "Return": 2} | 1 | 7 | 1 | ["get_all_notes"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.delete_note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"] | The function (check_for_notes) defined within the public class called public.The function start at line 55 and ends at 61. It contains 7 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [55.0], and this function return a value. It declare 1.0 function, It has 1.0 function cal... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | save_note | async def save_note(c: Client, m: Message, strings):if len(m.text.split()) > 1:args = m.text.html.split(maxsplit=1)else:returnsplit_text = split_quotes(args[1])trigger = split_text[0].lower()if m.reply_to_message is None and len(split_text) < 2:await m.reply_text(strings("add_note_empty"), quote=True)returnif m.reply_t... | 23 | 77 | 3 | 463 | 8 | 76 | 155 | 76 | c,m,strings | ['args', 'chat_id', 'note_type', 'check_note', 'file_id', 'raw_data', 'trigger', 'split_text'] | None | {"Assign": 26, "Expr": 4, "If": 9, "Return": 2} | 19 | 80 | 19 | ["len", "m.text.split", "m.text.html.split", "split_quotes", "lower", "len", "m.reply_text", "strings", "len", "check_for_notes", "update_note", "add_note", "m.reply_text", "format", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (save_note) defined within the public class called public.The function start at line 76 and ends at 155. It contains 77 lines of code and it has a cyclomatic complexity of 23. It takes 3 parameters, represented as [76.0] and does not return any value. It declares 19.0 functions, and It has 19.0 functions ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | delete_note | async def delete_note(c: Client, m: Message, strings):if len(m.text.split()) > 1:args = m.text.html.split(maxsplit=1)else:returntrigger = args[1].lower()chat_id = m.chat.idcheck_note = await check_for_notes(chat_id=chat_id, trigger=trigger)if check_note:await rm_note(chat_id=chat_id, trigger=trigger)await m.reply_text(... | 3 | 17 | 3 | 132 | 4 | 170 | 186 | 170 | c,m,strings | ['chat_id', 'check_note', 'args', 'trigger'] | None | {"Assign": 4, "Expr": 3, "If": 2, "Return": 1} | 16 | 17 | 16 | ["len", "m.text.split", "m.text.html.split", "lower", "check_for_notes", "rm_note", "m.reply_text", "format", "strings", "m.reply_text", "format", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (delete_note) defined within the public class called public.The function start at line 170 and ends at 186. It contains 17 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [170.0] and does not return any value. It declares 16.0 functions, and It has 16.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_all_chat_note | async def get_all_chat_note(c: Client,m: Message,strings,):chat_id = m.chat.idreply_text = strings("notes_list")all_notes = await get_all_notes(chat_id=chat_id)for note_s in all_notes:keyword = note_s.note_namereply_text += f" - {keyword} \n"if not all_notes:await m.reply_text(strings("notes_list_empty"), quote=True)el... | 3 | 15 | 3 | 81 | 4 | 192 | 207 | 192 | c,m,strings | ['reply_text', 'chat_id', 'keyword', 'all_notes'] | None | {"Assign": 4, "AugAssign": 1, "Expr": 2, "For": 1, "If": 1} | 8 | 16 | 8 | ["strings", "get_all_notes", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (get_all_chat_note) defined within the public class called public.The function start at line 192 and ends at 207. It contains 15 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [192.0] and does not return any value. It declares 8.0 functions, and It has 8.0 fun... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | serve_note | async def serve_note(c: Client,m: Message,txt,):chat_id = m.chat.idtext = txtall_notes = await get_all_notes(chat_id=chat_id)for note_s in all_notes:keyword = note_s.note_namepattern = r"( |^|[^\w])" + re.escape(keyword) + r"( |$|[^\w])"if re.search(pattern, text, flags=re.IGNORECASE):data, button = button_parser(note_... | 22 | 80 | 3 | 434 | 5 | 210 | 290 | 210 | c,m,txt | ['chat_id', 'pattern', 'text', 'keyword', 'all_notes'] | None | {"Assign": 6, "Expr": 7, "For": 1, "If": 8} | 25 | 81 | 25 | ["get_all_notes", "re.escape", "re.search", "button_parser", "m.reply_text", "len", "InlineKeyboardMarkup", "m.reply_photo", "len", "InlineKeyboardMarkup", "m.reply_document", "len", "InlineKeyboardMarkup", "m.reply_video", "len", "InlineKeyboardMarkup", "m.reply_audio", "len", "InlineKeyboardMarkup", "m.reply_animatio... | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.note_by_get_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.note_by_hashtag"] | The function (serve_note) defined within the public class called public.The function start at line 210 and ends at 290. It contains 80 lines of code and it has a cyclomatic complexity of 22. It takes 3 parameters, represented as [210.0] and does not return any value. It declares 25.0 functions, It has 25.0 functions ca... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | note_by_hashtag | async def note_by_hashtag(c: Client,m: Message,):note_data = m.text[1:]targeted_message = m.reply_to_message or mawait serve_note(c,targeted_message,txt=note_data,) | 2 | 11 | 2 | 40 | 2 | 301 | 311 | 301 | c,m | ['targeted_message', 'note_data'] | None | {"Assign": 2, "Expr": 1} | 3 | 11 | 3 | ["serve_note", "Client.on_message", "filters.regex"] | 0 | [] | The function (note_by_hashtag) defined within the public class called public.The function start at line 301 and ends at 311. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [301.0] and does not return any value. It declares 3.0 functions, and It has 3.0 funct... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | note_by_get_command | async def note_by_get_command(c: Client,m: Message,):note_data = " ".join(m.command[1:])targeted_message = m.reply_to_message or mawait serve_note(c,targeted_message,txt=note_data,) | 2 | 11 | 2 | 45 | 2 | 322 | 332 | 322 | c,m | ['targeted_message', 'note_data'] | None | {"Assign": 2, "Expr": 1} | 4 | 11 | 4 | ["join", "serve_note", "Client.on_message", "filters.command"] | 0 | [] | The function (note_by_get_command) defined within the public class called public.The function start at line 322 and ends at 332. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 2 parameters, represented as [322.0] and does not return any value. It declares 4.0 functions, and It has 4.0 f... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | ping | async def ping(c: Client, m: Message):first = datetime.now()sent = await m.reply_text("<b>Pong!</b>")second = datetime.now()await sent.edit_text(f"<b>Pong!</b> <code>{(second - first).microseconds / 1000}</code>ms") | 1 | 7 | 2 | 42 | 3 | 13 | 19 | 13 | c,m | ['second', 'sent', 'first'] | None | {"Assign": 3, "Expr": 1} | 6 | 7 | 6 | ["datetime.now", "m.reply_text", "datetime.now", "sent.edit_text", "Client.on_message", "filters.command"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3961794_aikaterna_aikaterna_cogs.otherbot.otherbot_py.Otherbot.pingrole", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94656748_elastic_connectors.connectors.sources.gmail_py.GMailDataSource._validate_gmail_auth", ... | The function (ping) defined within the public class called public.The function start at line 13 and ends at 19. It contains 7 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [13.0] and does not return any value. It declares 6.0 functions, It has 6.0 functions called inside w... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | prints | async def prints(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("print_usage"), reply_to_message_id=m.id)sent = await m.reply_text(strings("taking_screenshot"))text = m.text.split(maxsplit=1)[1]r = await http.get("https://api.itayki.com/print", params=dict(url=text))bio = Bytes... | 2 | 12 | 3 | 115 | 4 | 16 | 27 | 16 | c,m,strings | ['bio', 'sent', 'text', 'r'] | Returns | {"AnnAssign": 1, "Assign": 4, "Expr": 2, "If": 1, "Return": 1} | 15 | 12 | 15 | ["len", "m.reply_text", "strings", "m.reply_text", "strings", "m.text.split", "http.get", "dict", "BytesIO", "r.read", "m.reply_photo", "sent.delete", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (prints) defined within the public class called public.The function start at line 16 and ends at 27. It contains 12 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [16.0], and this function return a value. It declares 15.0 functions, and It has 15.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | cleanhtml | def cleanhtml(raw_html):cleanr = re.compile("<.*?>")cleantext = re.sub(cleanr, "", raw_html)return cleantext | 1 | 4 | 1 | 27 | 2 | 14 | 17 | 14 | raw_html | ['cleanr', 'cleantext'] | Returns | {"Assign": 2, "Return": 1} | 2 | 4 | 2 | ["re.compile", "re.sub"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.pypi_py.escape_definition"] | The function (cleanhtml) defined within the public class called public.The function start at line 14 and ends at 17. 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 in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | escape_definition | def escape_definition(definition):for key, value in definition.items():if isinstance(value, str):definition[key] = html.escape(cleanhtml(value))return definition | 3 | 5 | 1 | 40 | 0 | 20 | 24 | 20 | definition | [] | Returns | {"Assign": 1, "For": 1, "If": 1, "Return": 1} | 4 | 5 | 4 | ["definition.items", "isinstance", "html.escape", "cleanhtml"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.pypi_py.pypi"] | The function (escape_definition) defined within the public class called public.The function start at line 20 and ends at 24. It contains 5 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 4.0 functions, It has 4.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | pypi | async def pypi(c: Client, m: Message, strings):if len(m.command) == 1:return await m.reply_text(strings("pypi_usage"))text = m.text.split(maxsplit=1)[1]r = await http.get(f"https://pypi.org/pypi/{text}/json")if r.status_code == 200:json = r.json()pypi_info = escape_definition(json["info"])message = strings("package_det... | 8 | 43 | 3 | 243 | 6 | 30 | 75 | 30 | c,m,strings | ['r', 'json', 'pypi_info', 'text', 'kb', 'message'] | Returns | {"Assign": 7, "Expr": 2, "If": 3, "Return": 1} | 21 | 46 | 21 | ["len", "m.reply_text", "strings", "m.text.split", "http.get", "r.json", "escape_definition", "format", "strings", "strings", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "m.reply_text", "m.reply_text", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (pypi) defined within the public class called public.The function start at line 30 and ends at 75. It contains 43 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [30.0], and this function return a value. It declares 21.0 functions, and It has 21.0 functions cal... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | genqrcodecmd | async def genqrcodecmd(c: Client, m: Message):if m.reply_to_message:if m.reply_to_message.caption:qrcodetext = m.reply_to_message.captionelif m.reply_to_message.text:qrcodetext = m.reply_to_message.textelif len(m.text.split()) > 1:qrcodetext = m.text.split(None, 1)[1]else:returnelse:if len(m.text.split()) > 1:qrcodetex... | 6 | 20 | 2 | 146 | 4 | 13 | 32 | 13 | c,m | ['make_qr_code', 'qrcodetext', 'bytes_qr_code', 'qr_code_result'] | None | {"Assign": 7, "Expr": 2, "If": 5, "Return": 2} | 14 | 20 | 14 | ["len", "m.text.split", "m.text.split", "len", "m.text.split", "m.text.split", "qrcode.make", "BytesIO", "make_qr_code.save", "BytesIO", "bytes_qr_code.getvalue", "m.reply_photo", "Client.on_message", "filters.command"] | 0 | [] | The function (genqrcodecmd) defined within the public class called public.The function start at line 13 and ends at 32. It contains 20 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [13.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_message_sender_id | async def get_message_sender_id(m: Message):if m.forward_date:if m.forward_sender_name:return 1elif m.forward_from:return m.forward_from.idelif m.forward_from_chat:return m.forward_from_chat.idelse:return 1else:if m.from_user:return m.from_user.idelif m.sender_chat:return m.sender_chat.idelse:return 1 | 7 | 17 | 1 | 73 | 0 | 16 | 32 | 16 | m | [] | Returns | {"If": 6, "Return": 7} | 0 | 17 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"] | The function (get_message_sender_id) defined within the public class called public.The function start at line 16 and ends at 32. It contains 17 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 has 1.0 function calling this function wh... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_message_sender_name | async def get_message_sender_name(m: Message):if m.forward_date:if m.forward_sender_name:return m.forward_sender_nameelif m.forward_from:if m.forward_from.last_name:return f"{m.forward_from.first_name} {m.forward_from.last_name}"else:return m.forward_from.first_nameelif m.forward_from_chat:return m.forward_from_chat.ti... | 9 | 23 | 1 | 99 | 0 | 35 | 57 | 35 | m | [] | Returns | {"If": 8, "Return": 9} | 0 | 23 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"] | The function (get_message_sender_name) defined within the public class called public.The function start at line 35 and ends at 57. It contains 23 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It has 1.0 function calling this function ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_message_sender_username | async def get_message_sender_username(m: Message):if m.forward_date:if m.forward_sender_name:return ""elif m.forward_from:if m.forward_from.username:return m.forward_from.usernameelse:return ""elif m.forward_from_chat:if m.forward_from_chat.username:return m.forward_from_chat.usernameelse:return ""else:return ""else:if... | 11 | 29 | 1 | 117 | 0 | 60 | 88 | 60 | m | [] | Returns | {"If": 10, "Return": 11} | 0 | 29 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"] | The function (get_message_sender_username) defined within the public class called public.The function start at line 60 and ends at 88. It contains 29 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters, and this function return a value. It has 1.0 function calling this func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_message_sender_photo | async def get_message_sender_photo(m: Message):if m.forward_date:if m.forward_sender_name:return ""elif m.forward_from:if m.forward_from.photo:return {"small_file_id": m.forward_from.photo.small_file_id,"small_photo_unique_id": m.forward_from.photo.small_photo_unique_id,"big_file_id": m.forward_from.photo.big_file_id,"... | 11 | 49 | 1 | 265 | 0 | 91 | 139 | 91 | m | [] | Returns | {"If": 10, "Return": 11} | 0 | 49 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"] | The function (get_message_sender_photo) defined within the public class called public.The function start at line 91 and ends at 139. It contains 49 lines of code and it has a cyclomatic complexity of 11. The function does not take any parameters, and this function return a value. It has 1.0 function calling this functi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_text_or_caption | async def get_text_or_caption(m: Message):if m.text:return m.textelif m.caption:return m.captionelse:return "" | 3 | 7 | 1 | 29 | 0 | 142 | 148 | 142 | m | [] | Returns | {"If": 2, "Return": 3} | 0 | 7 | 0 | [] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"] | The function (get_text_or_caption) defined within the public class called public.The function start at line 142 and ends at 148. It contains 7 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 has 1.0 function calling this function whi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | hydrogram_to_quotly | async def hydrogram_to_quotly(messages):if not isinstance(messages, list):messages = [messages]payload = {"type": "quote","format": "png","backgroundColor": "#1b1429","messages": [],}for message in messages:the_message_dict_to_append = {}if message.entities:the_message_dict_to_append["entities"] = [{"type": entity.type... | 9 | 60 | 1 | 347 | 4 | 151 | 211 | 151 | messages | ['messages', 'r', 'payload', 'the_message_dict_to_append'] | Returns | {"Assign": 18, "Expr": 1, "For": 1, "If": 5, "Return": 1} | 18 | 61 | 18 | ["isinstance", "entity.type.name.lower", "entity.type.name.lower", "get_message_sender_id", "get_text_or_caption", "get_message_sender_id", "get_message_sender_name", "get_message_sender_username", "message.chat.type.name.lower", "get_message_sender_photo", "get_message_sender_name", "get_text_or_caption", "get_message... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.msg_quotly_cmd"] | The function (hydrogram_to_quotly) defined within the public class called public.The function start at line 151 and ends at 211. It contains 60 lines of code and it has a cyclomatic complexity of 9. The function does not take any parameters, and this function return a value. It declares 18.0 functions, It has 18.0 func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | isArgInt | def isArgInt(txt) -> list:count = txttry:count = int(count)return [True, count]except ValueError:return [False, 0] | 2 | 7 | 1 | 33 | 1 | 214 | 220 | 214 | txt | ['count'] | list | {"Assign": 2, "Return": 2, "Try": 1} | 1 | 7 | 1 | ["int"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.msg_quotly_cmd"] | The function (isArgInt) defined within the public class called public.The function start at line 214 and ends at 220. It contains 7 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 declare 1.0 function, It has 1.0 function called inside w... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | msg_quotly_cmd | async def msg_quotly_cmd(c: Client, m: Message, strings):if len(m.text.split()) > 1:check_arg = isArgInt(m.command[1])if check_arg[0]:if check_arg[1] < 2 or check_arg[1] > 10:return await m.reply_text(strings("quotly_range_inavlid_string"))else:try:messages = [ifor i in await c.get_messages(chat_id=m.chat.id,message_id... | 12 | 45 | 3 | 272 | 5 | 226 | 270 | 226 | c,m,strings | ['messages', 'check_arg', 'make_quotly', 'bio_sticker', 'messages_one'] | Returns | {"Assign": 10, "If": 3, "Return": 7, "Try": 4} | 21 | 45 | 21 | ["len", "m.text.split", "isArgInt", "m.reply_text", "strings", "c.get_messages", "range", "m.reply_text", "hydrogram_to_quotly", "BytesIO", "m.reply_sticker", "m.reply_text", "c.get_messages", "m.reply_text", "hydrogram_to_quotly", "BytesIO", "m.reply_sticker", "m.reply_text", "Client.on_message", "filters.command", "u... | 0 | [] | The function (msg_quotly_cmd) defined within the public class called public.The function start at line 226 and ends at 270. It contains 45 lines of code and it has a cyclomatic complexity of 12. It takes 3 parameters, represented as [226.0], and this function return a value. It declares 21.0 functions, and It has 21.0... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_rules | async def get_rules(chat_id: int):try:return (await groups.get(chat_id=chat_id)).rulesexcept IndexError:return None | 2 | 5 | 1 | 28 | 0 | 20 | 24 | 20 | chat_id | [] | Returns | {"Return": 2, "Try": 1} | 1 | 5 | 1 | ["groups.get"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.show_rules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.show_rules_pvt"] | The function (get_rules) defined within the public class called public.The function start at line 20 and ends at 24. 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 declare 1.0 function, It has 1.0 function called insid... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | set_rules | async def set_rules(chat_id: int, rules):await groups.filter(chat_id=chat_id).update(rules=rules) | 1 | 2 | 2 | 25 | 0 | 27 | 28 | 27 | chat_id,rules | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["update", "groups.filter"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.delete_rules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.settherules"] | The function (set_rules) defined within the public class called public.The function start at line 27 and ends at 28. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [27.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions called ins... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | toggle_private_rules | async def toggle_private_rules(chat_id: int, mode: bool):await groups.filter(chat_id=chat_id).update(private_rules=mode) | 1 | 2 | 2 | 27 | 0 | 31 | 32 | 31 | chat_id,mode | [] | None | {"Expr": 1} | 2 | 2 | 2 | ["update", "groups.filter"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.set_pvt_rules_cmd"] | The function (toggle_private_rules) defined within the public class called public.The function start at line 31 and ends at 32. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [31.0] and does not return any value. It declares 2.0 functions, It has 2.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | check_private_rules_status | async def check_private_rules_status(chat_id: int):res = (await groups.get(chat_id=chat_id)).private_rulesreturn True if res is True else False | 2 | 3 | 1 | 30 | 1 | 35 | 37 | 35 | chat_id | ['res'] | Returns | {"Assign": 1, "Return": 1} | 1 | 3 | 1 | ["groups.get"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.check_pvt_rules_cmd", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.show_rules"] | The function (check_private_rules_status) defined within the public class called public.The function start at line 35 and ends at 37. It contains 3 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 declare 1.0 function, It has 1.0 func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | settherules | async def settherules(c: Client, m: Message, strings):if len(m.text.split()) > 1:await set_rules(m.chat.id, m.text.split(None, 1)[1])await m.reply_text(strings("rules_set_success").format(chat_title=m.chat.title))else:await m.reply_text(strings("rules_set_empty")) | 2 | 6 | 3 | 83 | 0 | 46 | 51 | 46 | c,m,strings | [] | None | {"Expr": 3, "If": 1} | 13 | 6 | 13 | ["len", "m.text.split", "set_rules", "m.text.split", "m.reply_text", "format", "strings", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (settherules) defined within the public class called public.The function start at line 46 and ends at 51. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [46.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions c... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | set_pvt_rules_cmd | async def set_pvt_rules_cmd(c: Client, m: Message, strings):if len(m.text.split()) > 1:if m.command[1] in ("on", "off"):if m.command[1] == "on":await toggle_private_rules(m.chat.id, True)return await m.reply_text(strings("pvt_rules_set_msg_enabled"))else:await toggle_private_rules(m.chat.id, False)return await m.reply_... | 4 | 13 | 3 | 121 | 0 | 60 | 72 | 60 | c,m,strings | [] | Returns | {"Expr": 4, "If": 3, "Return": 2} | 16 | 13 | 16 | ["len", "m.text.split", "toggle_private_rules", "m.reply_text", "strings", "toggle_private_rules", "m.reply_text", "strings", "m.reply_text", "strings", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (set_pvt_rules_cmd) defined within the public class called public.The function start at line 60 and ends at 72. It contains 13 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [60.0], and this function return a value. It declares 16.0 functions, and It has 16.0 ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | check_pvt_rules_cmd | async def check_pvt_rules_cmd(c: Client, m: Message, strings):get_pvt_rules_mode = await check_private_rules_status(m.chat.id)if get_pvt_rules_mode:await m.reply_text(strings("check_pvt_rules_mode_enabled"))else:await m.reply_text(strings("check_pvt_rules_mode_disabled")) | 2 | 6 | 3 | 49 | 1 | 81 | 86 | 81 | c,m,strings | ['get_pvt_rules_mode'] | None | {"Assign": 1, "Expr": 2, "If": 1} | 9 | 6 | 9 | ["check_private_rules_status", "m.reply_text", "strings", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (check_pvt_rules_cmd) defined within the public class called public.The function start at line 81 and ends at 86. It contains 6 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [81.0] and does not return any value. It declares 9.0 functions, and It has 9.0 funct... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | delete_rules | async def delete_rules(c: Client, m: Message, strings):await set_rules(m.chat.id, None)await m.reply_text(strings("rules_deleted")) | 1 | 3 | 3 | 34 | 0 | 95 | 97 | 95 | c,m,strings | [] | None | {"Expr": 2} | 7 | 3 | 7 | ["set_rules", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"] | 0 | [] | The function (delete_rules) defined within the public class called public.The function start at line 95 and ends at 97. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [95.0] and does not return any value. It declares 7.0 functions, and It has 7.0 functions ca... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | show_rules | async def show_rules(c: Client, m: Message, strings):check_if_pvt_rules_db = await check_private_rules_status(m.chat.id)if check_if_pvt_rules_db:return await m.reply_text(strings("rules_pvt_message_group_text"),reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton(strings("rules_pvt_message_group_button"),url=f"http... | 4 | 32 | 3 | 143 | 2 | 103 | 134 | 103 | c,m,strings | ['gettherules', 'check_if_pvt_rules_db'] | Returns | {"Assign": 3, "Expr": 2, "If": 2, "Return": 1} | 18 | 32 | 18 | ["check_private_rules_status", "m.reply_text", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "get_rules", "button_parser", "m.reply_text", "format", "strings", "len", "InlineKeyboardMarkup", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (show_rules) defined within the public class called public.The function start at line 103 and ends at 134. It contains 32 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [103.0], and this function return a value. It declares 18.0 functions, and It has 18.0 func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | show_rules_pvt | async def show_rules_pvt(c: Client, m: Message, strings):try:cid_one = m.text.split("_")[1]gettherules = await get_rules(cid_one if cid_one.startswith("-") else f"-{cid_one}")rulestxt, rules_buttons = button_parser(gettherules)except ValueError:returnif rulestxt:await m.reply_text(rulestxt,reply_markup=(InlineKeyboardM... | 5 | 19 | 3 | 104 | 2 | 141 | 160 | 141 | c,m,strings | ['gettherules', 'cid_one'] | None | {"Assign": 3, "Expr": 3, "If": 1, "Return": 1, "Try": 1} | 13 | 20 | 13 | ["m.text.split", "get_rules", "cid_one.startswith", "button_parser", "m.reply_text", "len", "InlineKeyboardMarkup", "m.reply_text", "strings", "m.stop_propagation", "Client.on_message", "filters.regex", "use_chat_lang"] | 0 | [] | The function (show_rules_pvt) defined within the public class called public.The function start at line 141 and ends at 160. It contains 19 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [141.0] and does not return any value. It declares 13.0 functions, and It has 13.0 func... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | sed | async def sed(c: Client, m: Message, strings):exp = regex.split(r"(?<![^\\]\\)/", m.text)pattern = exp[1]replace_with = exp[2].replace(r"\/", "/")flags = exp[3] if len(exp) > 3 else ""count = 1rflags = 0if "g" in flags:count = 0if "i" in flags and "s" in flags:rflags = regex.I | regex.Selif "i" in flags:rflags = regex.... | 12 | 40 | 3 | 223 | 8 | 15 | 59 | 15 | c,m,strings | ['res', 'pattern', 'count', 'rflags', 'text', 'replace_with', 'exp', 'flags'] | None | {"Assign": 12, "Expr": 3, "If": 5, "Return": 1, "Try": 2} | 13 | 45 | 13 | ["regex.split", "replace", "len", "regex.sub", "m.reply_text", "strings", "m.reply_text", "str", "c.send_message", "html.escape", "Client.on_message", "filters.regex", "use_chat_lang"] | 0 | [] | The function (sed) defined within the public class called public.The function start at line 15 and ends at 59. It contains 40 lines of code and it has a cyclomatic complexity of 12. It takes 3 parameters, represented as [15.0] and does not return any value. It declares 13.0 functions, and It has 13.0 functions called ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | start | async def start(c: Client, m: Union[Message, CallbackQuery], strings):if isinstance(m, CallbackQuery):msg = m.messagemethod = msg.edit_textelse:msg = mmethod = msg.reply_textif msg.chat.type == enums.ChatType.PRIVATE:keyboard = InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(strings("commands_btn"), callbac... | 3 | 46 | 3 | 198 | 3 | 28 | 74 | 28 | c,m,strings | ['method', 'msg', 'keyboard'] | None | {"Assign": 6, "Expr": 2, "If": 2} | 25 | 47 | 25 | ["isinstance", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "method", "format", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "method", "format", "strings", "Client.on_message",... | 134 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3527343_frigg_frigg_hq.frigg.projects.views_py.approve_projects", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.ModifyStepperAttribute.start", "_.content.gdrive.MyDrive.P... | The function (start) defined within the public class called public.The function start at line 28 and ends at 74. It contains 46 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [28.0] and does not return any value. It declares 25.0 functions, It has 25.0 functions called insi... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | infos | async def infos(c: Client, m: CallbackQuery, strings):res = strings("info_page").format(myname=c.me.first_name,version=alisu.__version__,version_code=c.version_code,codelink=bot_repo_link,bot_chat=bot_chat,)keyboard = InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(strings("back_btn", context="general"),cal... | 1 | 23 | 3 | 96 | 2 | 79 | 101 | 79 | c,m,strings | ['res', 'keyboard'] | None | {"Assign": 2, "Expr": 1} | 9 | 23 | 9 | ["format", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "m.message.edit_text", "Client.on_callback_query", "filters.regex", "use_chat_lang"] | 0 | [] | The function (infos) defined within the public class called public.The function start at line 79 and ends at 101. It contains 23 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [79.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions called ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | kang_sticker | async def kang_sticker(c: Client,m: Message,strings,):if not m.from_user:returnprog_msg = await m.reply_text(strings("kanging_sticker_msg"))bot_username = c.me.usernamesticker_emoji: str = "🤔"packnum: int = 0packname_found: bool = Falseresize: bool = Falseanimated: bool = Falsereply = m.reply_to_messageuser = await c.... | 44 | 199 | 3 | 1,072 | 21 | 51 | 258 | 51 | c,m,strings | ['kanged_success_msg', 'markup', 'user', 'stickerset', 'prog_msg', 'animated', 'media', 'stkr_file', 'sticker_emoji', 'filename', 'r', 'file', 'pack_prefix', 'max_stickers', 'reply', 'packname', 'u_name', 'img_url', 'msg_', 'bot_username', 'packnum'] | Returns | {"AnnAssign": 19, "Assign": 27, "AugAssign": 4, "Expr": 11, "For": 1, "If": 27, "Return": 8, "Try": 5, "While": 1, "With": 1} | 78 | 208 | 78 | ["m.reply_text", "strings", "c.resolve_peer", "prog_msg.edit_text", "strings", "reply.sticker.file_name.endswith", "prog_msg.edit_text", "strings", "len", "isdigit", "int", "m.command.pop", "len", "join", "set", "EMOJI_PATTERN.findall", "join", "c.download_media", "prog_msg.delete", "len", "prog_msg.delete", "http.get"... | 0 | [] | The function (kang_sticker) defined within the public class called public.The function start at line 51 and ends at 258. It contains 199 lines of code and it has a cyclomatic complexity of 44. It takes 3 parameters, represented as [51.0], and this function return a value. It declares 78.0 functions, and It has 78.0 fu... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | resize_image | def resize_image(filename: str) -> str:im = Image.open(filename)maxsize: int = 512scale = maxsize / max(im.width, im.height)sizenew = (int(im.width * scale), int(im.height * scale))im = im.resize(sizenew, Image.NEAREST)downpath, f_name = os.path.split(filename)# not hardcoding png_image as "sticker.png"png_image = os.p... | 2 | 12 | 1 | 115 | 4 | 261 | 273 | 261 | filename | ['scale', 'im', 'png_image', 'sizenew'] | str | {"AnnAssign": 1, "Assign": 6, "Expr": 2, "If": 1, "Return": 1} | 10 | 13 | 10 | ["Image.open", "max", "int", "int", "im.resize", "os.path.split", "os.path.join", "f_name.split", "im.save", "os.remove"] | 3 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3918618_moveangel_one4ubot.userbot.modules.telegraph_py.telegraphs", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.modules.telegraph_py.telegraphs", "_.content.gdrive.MyDrive.P... | The function (resize_image) defined within the public class called public.The function start at line 261 and ends at 273. It contains 12 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 10.0 functions, It has 10.0 functions calle... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | getstickerid | async def getstickerid(c: Client,m: Message,strings,):if m.reply_to_message.sticker:await m.reply_text(strings("get_sticker_id_string").format(stickerid=m.reply_to_message.sticker.file_id)) | 2 | 11 | 3 | 44 | 0 | 279 | 289 | 279 | c,m,strings | [] | None | {"Expr": 1, "If": 1} | 6 | 11 | 6 | ["m.reply_text", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (getstickerid) defined within the public class called public.The function start at line 279 and ends at 289. It contains 11 lines of code and it has a cyclomatic complexity of 2. It takes 3 parameters, represented as [279.0] and does not return any value. It declares 6.0 functions, and It has 6.0 function... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | getstickeraspng | async def getstickeraspng(c: Client,m: Message,strings,):sticker = m.reply_to_message.stickerif sticker:if sticker.is_animated:await m.reply_text(strings("animated_not_supported"))elif not sticker.is_animated:with tempfile.TemporaryDirectory() as tempdir:path = os.path.join(tempdir, "getsticker")sticker_file = await c.... | 4 | 25 | 3 | 141 | 3 | 295 | 319 | 295 | c,m,strings | ['path', 'sticker', 'sticker_file'] | None | {"Assign": 3, "Expr": 4, "If": 3, "With": 1} | 14 | 25 | 14 | ["m.reply_text", "strings", "tempfile.TemporaryDirectory", "os.path.join", "c.download_media", "m.reply_to_message.reply_document", "format", "strings", "shutil.rmtree", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (getstickeraspng) defined within the public class called public.The function start at line 295 and ends at 319. It contains 25 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [295.0] and does not return any value. It declares 14.0 functions, and It has 14.0 fun... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | restartbot | async def restartbot(c: Client):await c.stop()args = [sys.executable, "-m", "alisu"]os.execv(sys.executable, args) | 1 | 4 | 1 | 34 | 1 | 45 | 48 | 45 | c | ['args'] | None | {"Assign": 1, "Expr": 2} | 2 | 4 | 2 | ["c.stop", "os.execv"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.sudos_py.restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.sudos_py.upgrade"] | The function (restartbot) defined within the public class called public.The function start at line 45 and ends at 48. It contains 4 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 insid... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | sudos | async def sudos(c: Client, m: Message):await m.reply_text("Test") | 1 | 2 | 2 | 18 | 0 | 52 | 53 | 52 | c,m | [] | None | {"Expr": 1} | 3 | 2 | 3 | ["m.reply_text", "Client.on_message", "filters.command"] | 0 | [] | The function (sudos) defined within the public class called public.The function start at line 52 and ends at 53. It contains 2 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [52.0] and does not return any value. It declares 3.0 functions, and It has 3.0 functions called in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | run_cmd | async def run_cmd(c: Client, m: Message, strings):cmd = m.text.split(maxsplit=1)[1]if re.match("(?i)poweroff|halt|shutdown|reboot", cmd):res = strings("forbidden_command")else:proc = await asyncio.create_subprocess_shell(cmd, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE)stdout, stderr = await proc.com... | 4 | 23 | 3 | 141 | 3 | 58 | 80 | 58 | c,m,strings | ['res', 'proc', 'cmd'] | None | {"Assign": 5, "Expr": 1, "If": 1} | 17 | 23 | 17 | ["m.text.split", "re.match", "strings", "asyncio.create_subprocess_shell", "proc.communicate", "format", "html.escape", "strip", "stdout.decode", "format", "html.escape", "strip", "stderr.decode", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"] | 8 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.backup.rucio_datasets_stats_backfill_py.process_monthly", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.56769247_dmwm_cmsspark.src.python.CMSSpark.backup.rucio_datasets_sta... | The function (run_cmd) defined within the public class called public.The function start at line 58 and ends at 80. It contains 23 lines of code and it has a cyclomatic complexity of 4. It takes 3 parameters, represented as [58.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions called in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | upgrade | async def upgrade(c: Client, m: Message, strings):sm = await m.reply_text("Upgrading sources...")proc = await asyncio.create_subprocess_shell("git pull --no-edit",stdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.STDOUT,)stdout = (await proc.communicate())[0]if proc.returncode == 0:if "Already up to date." in st... | 3 | 20 | 3 | 134 | 3 | 85 | 104 | 85 | c,m,strings | ['stdout', 'sm', 'proc'] | None | {"Assign": 4, "Expr": 5, "If": 2} | 17 | 20 | 17 | ["m.reply_text", "asyncio.create_subprocess_shell", "proc.communicate", "stdout.decode", "sm.edit_text", "sm.edit_text", "strings", "create_task", "asyncio.get_event_loop", "restartbot", "sm.edit_text", "stdout.decode", "asyncio.create_subprocess_shell", "proc.communicate", "Client.on_message", "filters.command", "use_... | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.utils_py._match_types"] | The function (upgrade) defined within the public class called public.The function start at line 85 and ends at 104. It contains 20 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [85.0] and does not return any value. It declares 17.0 functions, It has 17.0 functions called i... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | evals | async def evals(c: Client, m: Message):text = m.text.split(maxsplit=1)[1]try:res = await meval(text, globals(), **locals())except:# skipcqev = traceback.format_exc()output_eval_one = f"<code>{html.escape(ev)}</code>"if len(output_eval_one) > c.tg_max_text_msg_len:bio = io.BytesIO(str(ev).encode())bio.name: str = "eval.... | 6 | 30 | 2 | 220 | 7 | 108 | 137 | 108 | c,m | ['res', 'output_eval_one', 'ev', 'output_eval_e', 'text', 'output_eval_msg_two_txt', 'bio'] | None | {"AnnAssign": 3, "Assign": 9, "Expr": 6, "If": 3, "Try": 2} | 29 | 30 | 29 | ["m.text.split", "meval", "globals", "locals", "traceback.format_exc", "html.escape", "len", "io.BytesIO", "encode", "str", "m.reply_document", "m.reply_text", "html.escape", "str", "len", "io.BytesIO", "encode", "str", "m.reply_document", "m.reply_text", "str", "len", "io.BytesIO", "encode", "str", "m.reply_document",... | 0 | [] | The function (evals) defined within the public class called public.The function start at line 108 and ends at 137. It contains 30 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [108.0] and does not return any value. It declares 29.0 functions, and It has 29.0 functions cal... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | execs | async def execs(c: Client, m: Message):strio = io.StringIO()code = m.text.split(maxsplit=1)[1]exec("async def __ex(c, m): " + " ".join("\n " + l for l in code.split("\n")))# skipcq: PYL-W0122with redirect_stdout(strio):try:await locals()["__ex"](c, m)except:# skipcqtrace_format_exc_exec_cmd = traceback.format_exc()msg_... | 6 | 30 | 2 | 220 | 7 | 141 | 171 | 141 | c,m | ['out', 'strio', 'code', 'trace_format_exc_exec_cmd', 'out_one', 'msg_out_one', 'bio'] | Returns | {"AnnAssign": 2, "Assign": 10, "Expr": 4, "If": 3, "Return": 2, "Try": 1, "With": 1} | 27 | 31 | 27 | ["io.StringIO", "m.text.split", "exec", "join", "code.split", "redirect_stdout", "locals", "traceback.format_exc", "html.escape", "len", "io.BytesIO", "encode", "str", "m.reply_document", "m.reply_text", "strip", "strio.getvalue", "strio.getvalue", "html.escape", "len", "io.BytesIO", "encode", "str", "m.reply_document"... | 0 | [] | The function (execs) defined within the public class called public.The function start at line 141 and ends at 171. It contains 30 lines of code and it has a cyclomatic complexity of 6. It takes 2 parameters, represented as [141.0], and this function return a value. It declares 27.0 functions, and It has 27.0 functions... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | test_speed | async def test_speed(c: Client, m: Message, strings):string = strings("speedtest")sent = await m.reply_text(string.format(host="", ping="", download="", upload=""))s = speedtest.Speedtest()bs = s.get_best_server()await sent.edit_text(string.format(host=bs["sponsor"], ping=int(bs["latency"]), download="", upload=""))dl ... | 1 | 22 | 3 | 198 | 6 | 176 | 197 | 176 | c,m,strings | ['dl', 'string', 'ul', 'sent', 'bs', 's'] | None | {"Assign": 6, "Expr": 3} | 21 | 22 | 21 | ["strings", "m.reply_text", "string.format", "speedtest.Speedtest", "s.get_best_server", "sent.edit_text", "string.format", "int", "round", "s.download", "sent.edit_text", "string.format", "int", "round", "s.upload", "sent.edit_text", "string.format", "int", "Client.on_message", "filters.command", "use_chat_lang"] | 0 | [] | The function (test_speed) defined within the public class called public.The function start at line 176 and ends at 197. It contains 22 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [176.0] and does not return any value. It declares 21.0 functions, and It has 21.0 function... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | restart | async def restart(c: Client, m: Message, strings):sent = await m.reply_text(strings("restarting"))asyncio.get_event_loop().create_task(restartbot(c)) | 1 | 3 | 3 | 38 | 1 | 202 | 204 | 202 | c,m,strings | ['sent'] | None | {"Assign": 1, "Expr": 1} | 8 | 3 | 8 | ["m.reply_text", "strings", "create_task", "asyncio.get_event_loop", "restartbot", "Client.on_message", "filters.command", "use_chat_lang"] | 14 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_backtrace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_breakpoints", "_.content.gdrive.MyDrive.Phd_Thesis.Data... | The function (restart) defined within the public class called public.The function start at line 202 and ends at 204. It contains 3 lines of code and it has a cyclomatic complexity of 1. It takes 3 parameters, represented as [202.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | leave_chat | async def leave_chat(c: Client, m: Message):if len(m.command) == 1:try:await c.leave_chat(m.chat.id)except RPCError as e:print(e)else:chat_id = m.text.split(maxsplit=1)[1]try:await c.leave_chat(int(chat_id))except RPCError as e:print(e) | 4 | 12 | 2 | 81 | 1 | 208 | 219 | 208 | c,m | ['chat_id'] | None | {"Assign": 1, "Expr": 4, "If": 1, "Try": 2} | 9 | 12 | 9 | ["len", "c.leave_chat", "print", "m.text.split", "c.leave_chat", "int", "print", "Client.on_message", "filters.command"] | 0 | [] | The function (leave_chat) defined within the public class called public.The function start at line 208 and ends at 219. It contains 12 lines of code and it has a cyclomatic complexity of 4. It takes 2 parameters, represented as [208.0] and does not return any value. It declares 9.0 functions, and It has 9.0 functions ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | getbotstats | async def getbotstats(c: Client, m: Message):users_count = await users.all().count()groups_count = await groups.all().count()filters_count = await dbfilters.all().count()notes_count = await notes.all().count()bot_uptime = round(time.time() - c.start_time)bot_uptime = humanfriendly.format_timespan(bot_uptime)await m.rep... | 1 | 17 | 2 | 102 | 5 | 225 | 242 | 225 | c,m | ['users_count', 'bot_uptime', 'groups_count', 'filters_count', 'notes_count'] | None | {"Assign": 6, "Expr": 1} | 14 | 18 | 14 | ["count", "users.all", "count", "groups.all", "count", "dbfilters.all", "count", "notes.all", "round", "time.time", "humanfriendly.format_timespan", "m.reply_text", "Client.on_message", "filters.command"] | 0 | [] | The function (getbotstats) defined within the public class called public.The function start at line 225 and ends at 242. It contains 17 lines of code and it has a cyclomatic complexity of 1. It takes 2 parameters, represented as [225.0] and does not return any value. It declares 14.0 functions, and It has 14.0 functio... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | getchatcmd | async def getchatcmd(c: Client, m: Message):if len(m.text.split()) > 1:targetchat = await c.get_chat(m.command[1])if targetchat.type != enums.ChatType.PRIVATE:await m.reply_text(f"<b>Title:</b> {targetchat.title}\n<b>Username:</b> {targetchat.username}\n<b>Link:</b> {targetchat.invite_link}\n<b>Members:</b> {targetchat... | 3 | 11 | 2 | 76 | 1 | 246 | 256 | 246 | c,m | ['targetchat'] | None | {"Assign": 1, "Expr": 3, "If": 2} | 8 | 11 | 8 | ["len", "m.text.split", "c.get_chat", "m.reply_text", "m.reply_text", "m.reply_text", "Client.on_message", "filters.command"] | 0 | [] | The function (getchatcmd) defined within the public class called public.The function start at line 246 and ends at 256. It contains 11 lines of code and it has a cyclomatic complexity of 3. It takes 2 parameters, represented as [246.0] and does not return any value. It declares 8.0 functions, and It has 8.0 functions ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | telegraph | async def telegraph(c: Client, m: Message, strings):if m.reply_to_message:if (m.reply_to_message.photoor m.reply_to_message.videoor m.reply_to_message.animation):d_file = await m.reply_to_message.download()media_urls = upload_file(d_file)tele_link = "https://telegra.ph" + media_urls[0]await m.reply_text(tele_link)else:... | 5 | 13 | 3 | 82 | 3 | 13 | 25 | 13 | c,m,strings | ['tele_link', 'd_file', 'media_urls'] | None | {"Assign": 3, "Expr": 2, "If": 2} | 8 | 13 | 8 | ["m.reply_to_message.download", "upload_file", "m.reply_text", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"] | 2 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.utils.misc_py._format_quote", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69709534_toni880_tonic_userbot.userbot.utils.tools_py._format_quote"] | The function (telegraph) defined within the public class called public.The function start at line 13 and ends at 25. It contains 13 lines of code and it has a cyclomatic complexity of 5. It takes 3 parameters, represented as [13.0] and does not return any value. It declares 8.0 functions, It has 8.0 functions called in... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | exec_tio_run_code | async def exec_tio_run_code(c: Client,m: Message,strings,):try:execlanguage = m.command[1]codetoexec = m.text.split(None, 2)[2]except IndexError:return await m.reply_text(strings("code_lang_not_specified_err"))if execlanguage in langslist:tioreq = TioRequest(lang=execlanguage, code=codetoexec)loop = asyncio.get_event_l... | 7 | 41 | 3 | 234 | 8 | 27 | 67 | 27 | c,m,strings | ['tioreq', 'tiores', 'loop', 'execlanguage', 'sendtioreq', 'tioresstats', 'tioerrres', 'codetoexec'] | Returns | {"Assign": 8, "Expr": 3, "If": 2, "Return": 1, "Try": 1} | 24 | 41 | 24 | ["m.text.split", "m.reply_text", "strings", "TioRequest", "asyncio.get_event_loop", "loop.run_in_executor", "sendtioreq.debug.decode", "m.reply_text", "format", "strings", "html.escape", "html.escape", "m.reply_text", "format", "strings", "html.escape", "html.escape", "html.escape", "m.reply_text", "format", "strings",... | 0 | [] | The function (exec_tio_run_code) defined within the public class called public.The function start at line 27 and ends at 67. It contains 41 lines of code and it has a cyclomatic complexity of 7. It takes 3 parameters, represented as [27.0], and this function return a value. It declares 24.0 functions, and It has 24.0 ... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | exec_tio_run_code_inline | async def exec_tio_run_code_inline(c: Client,q: InlineQuery,strings,):codetoexec = q.query.split(None, 2)[2]execlanguage = q.query.lower().split()[1]if execlanguage in langslist:tioreq = TioRequest(lang=execlanguage, code=codetoexec)loop = asyncio.get_event_loop()sendtioreq = await loop.run_in_executor(None, tio.send, ... | 6 | 69 | 3 | 319 | 8 | 72 | 140 | 72 | c,q,strings | ['tioreq', 'tiores', 'loop', 'execlanguage', 'sendtioreq', 'tioresstats', 'tioerrres', 'codetoexec'] | None | {"Assign": 8, "Expr": 3, "If": 2} | 36 | 69 | 36 | ["q.query.split", "split", "q.query.lower", "TioRequest", "asyncio.get_event_loop", "loop.run_in_executor", "sendtioreq.debug.decode", "q.answer", "InlineQueryResultArticle", "format", "strings", "InputTextMessageContent", "format", "strings", "html.escape", "html.escape", "q.answer", "InlineQueryResultArticle", "forma... | 0 | [] | The function (exec_tio_run_code_inline) defined within the public class called public.The function start at line 72 and ends at 140. It contains 69 lines of code and it has a cyclomatic complexity of 6. It takes 3 parameters, represented as [72.0] and does not return any value. It declares 36.0 functions, and It has 3... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | get_tr_lang | def get_tr_lang(text):if len(text.split()) > 0:lang = text.split()[0]if lang.split("-")[0] not in LANGUAGES:lang = "en"if len(lang.split("-")) > 1 and lang.split("-")[1] not in LANGUAGES:lang = "en"else:lang = "en"return lang | 5 | 10 | 1 | 80 | 1 | 48 | 57 | 48 | text | ['lang'] | Returns | {"Assign": 4, "If": 3, "Return": 1} | 7 | 10 | 7 | ["len", "text.split", "text.split", "lang.split", "len", "lang.split", "lang.split"] | 1 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.translate_py.translate"] | The function (get_tr_lang) defined within the public class called public.The function start at line 48 and ends at 57. It contains 10 lines of code and it has a cyclomatic complexity of 5. The function does not take any parameters, and this function return a value. It declares 7.0 functions, It has 7.0 functions called... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | translate | async def translate(c: Client,m: Message,strings,):text = m.text[4:]lang = get_tr_lang(text)text = text.replace(lang, "", 1).strip() if text.startswith(lang) else textif not text and m.reply_to_message:text = m.reply_to_message.text or m.reply_to_message.captionif not text:return await m.reply_text(strings("translate_u... | 8 | 38 | 3 | 246 | 6 | 63 | 107 | 63 | c,m,strings | ['res', 'sent', 'lang', 'text', 'trres', 'langs'] | Returns | {"Assign": 12, "Expr": 2, "If": 3, "Return": 2, "Try": 1} | 23 | 45 | 23 | ["get_tr_lang", "text.startswith", "strip", "text.replace", "m.reply_text", "strings", "m.reply_text", "strings", "len", "lang.split", "lang.split", "lang.split", "tr.translate", "html.escape", "sent.edit_text", "format", "strings", "sent.delete", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_... | 53 | ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.historypanel_py.HistoryPanel._versionTitle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.sharing_py.SharingView.r... | The function (translate) defined within the public class called public.The function start at line 63 and ends at 107. It contains 38 lines of code and it has a cyclomatic complexity of 8. It takes 3 parameters, represented as [63.0], and this function return a value. It declares 23.0 functions, It has 23.0 functions ca... |
iiiiii1wepfj_alisurobot | public | public | 0 | 0 | tr_inline | async def tr_inline(c: Client,q: InlineQuery,strings,):try:to_tr = q.query.split(None, 2)[2]source_language = await tr.detect(q.query.split(None, 2)[2])to_language = q.query.lower().split()[1]translation = await tr(to_tr,sourcelang=source_language,targetlang=to_language,)await q.answer([InlineQueryResultArticle(title=s... | 3 | 40 | 3 | 162 | 4 | 112 | 151 | 112 | c,q,strings | ['source_language', 'to_language', 'to_tr', 'translation'] | Returns | {"Assign": 4, "Expr": 1, "Return": 2, "Try": 1} | 19 | 40 | 19 | ["q.query.split", "tr.detect", "q.query.split", "split", "q.query.lower", "tr", "q.answer", "InlineQueryResultArticle", "format", "strings", "InputTextMessageContent", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "strings", "Client.on_inline_query", "filters.regex", "use_chat_lang"] | 0 | [] | The function (tr_inline) defined within the public class called public.The function start at line 112 and ends at 151. It contains 40 lines of code and it has a cyclomatic complexity of 3. It takes 3 parameters, represented as [112.0], and this function return a value. It declares 19.0 functions, and It has 19.0 funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.