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="general"))else:await m.reply_text(f'<b><a href="https://coub.com/v/{links}">{title}</a></b>')
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 inside which are ["http.get", "dict", "r.json", "random.choice", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"].
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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.save_filter"]
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 inside which is ["filtersdb.create"], It has 3.0 functions calling this function which are ["_.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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.save_filter"].
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 called inside which are ["update", "filtersdb.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.save_filter"].
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 inside which are ["delete", "filtersdb.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.delete_filter"].
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.serve_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 inside which is ["filtersdb.filter"], It has 3.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.custom_filters_py.serve_filter"].
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 called inside which is ["get_all_filters"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.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"].
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.reply_to_message and m.reply_to_message.photo:file_id = m.reply_to_message.photo.file_idraw_data = (m.reply_to_message.caption.markdownif m.reply_to_message.caption is not Noneelse None)filter_type = "photo"elif m.reply_to_message and m.reply_to_message.document:file_id = m.reply_to_message.document.file_idraw_data = (m.reply_to_message.caption.markdownif m.reply_to_message.caption is not Noneelse None)filter_type = "document"elif m.reply_to_message and m.reply_to_message.video:file_id = m.reply_to_message.video.file_idraw_data = (m.reply_to_message.caption.markdownif m.reply_to_message.caption is not Noneelse None)filter_type = "video"elif m.reply_to_message and m.reply_to_message.audio:file_id = m.reply_to_message.audio.file_idraw_data = (m.reply_to_message.caption.markdownif m.reply_to_message.caption is not Noneelse None)filter_type = "audio"elif m.reply_to_message and m.reply_to_message.animation:file_id = m.reply_to_message.animation.file_idraw_data = (m.reply_to_message.caption.markdownif m.reply_to_message.caption is not Noneelse None)filter_type = "animation"elif m.reply_to_message and m.reply_to_message.sticker:file_id = m.reply_to_message.sticker.file_idraw_data = split_text[1] if len(split_text) > 1 else Nonefilter_type = "sticker"else:file_id = Noneraw_data = split_text[1]filter_type = "text"chat_id = m.chat.idcheck_filter = await check_for_filters(chat_id=chat_id, trigger=trigger)if check_filter:await update_filter(chat_id=chat_id,trigger=trigger,raw_data=raw_data,file_id=file_id,filter_type=filter_type,)else:await add_filter(chat_id=chat_id,trigger=trigger,raw_data=raw_data,file_id=file_id,filter_type=filter_type,)await m.reply_text(strings("add_filter_success").format(trigger=trigger),quote=True,)
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 functions called inside which are ["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"].
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 m.reply_text(strings("remove_filter_success").format(trigger=trigger), quote=True)else:await m.reply_text(strings("no_filter_with_name").format(trigger=trigger), quote=True)
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 functions called inside which are ["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"].
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"), quote=True)else:await m.reply_text(reply_text, quote=True)
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 functions called inside which are ["strings", "get_all_filters", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"].
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, flags=re.IGNORECASE):data, button = button_parser(filter_s.raw_data)if filter_s.filter_type == "text":await targeted_message.reply_text(data,quote=True,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "photo":await targeted_message.reply_photo(filter_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "document":await targeted_message.reply_document(filter_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "video":await targeted_message.reply_video(filter_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "audio":await targeted_message.reply_audio(filter_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "animation":await targeted_message.reply_animation(filter_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif filter_s.filter_type == "sticker":await targeted_message.reply_sticker(filter_s.file_id,quote=True,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)
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", "targeted_message.reply_audio", "len", "InlineKeyboardMarkup", "targeted_message.reply_animation", "len", "InlineKeyboardMarkup", "targeted_message.reply_sticker", "len", "InlineKeyboardMarkup", "Client.on_message"]
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 functions called inside which are ["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", "targeted_message.reply_audio", "len", "InlineKeyboardMarkup", "targeted_message.reply_animation", "len", "InlineKeyboardMarkup", "targeted_message.reply_sticker", "len", "InlineKeyboardMarkup", "Client.on_message"].
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 which are ["c.send_dice", "dicen.reply_text", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"], It has 2.0 functions calling this function which are ["_.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"].
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 inside which are ["http.get", "r.json", "m.reply_photo", "strings", "Client.on_message", "filters.command", "use_chat_lang"].
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"][0]["mediumgif"]["url"]await m.reply_animation(res)else:await m.reply_text(strings("no_results", context="general"))
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 called inside which are ["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"].
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_found_user"), reply_to_message_id=m.id)avatar = res["avatar_url"]anticache = quote_plus((await http.head(avatar)).headers["Last-Modified"])caption_text = strings("info_git_user")await m.reply_photo(avatar + anticache,caption=caption_text.format(name=res["name"],username=res["login"],location=res["location"],type=res["type"],bio=res["bio"],),reply_to_message_id=m.id,)
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._safe_reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._safe_restore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._status_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.abort_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.track_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.untrack_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.create_branch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.create_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.listall_branches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.listall_tags", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.lookup_branches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.lookup_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteBranch._update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteBranch.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteCollection.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteTag.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Repository.switch_current_branch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Tag.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py._stash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.init_repository", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.tests.utils_py.set_test_config"]
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 inside which are ["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"], It has 25.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._safe_reset", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._safe_restore", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch._status_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.abort_merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.merge", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.track_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Branch.untrack_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.create_branch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.create_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.listall_branches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.listall_tags", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.lookup_branches", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Remote.lookup_tag", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteBranch._update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteBranch.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteCollection.create", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.RemoteTag.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Repository.switch_current_branch", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.Tag.delete", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py._stash", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.core_py.init_repository", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.73978396_goldstar611_gitless.gitless.tests.utils_py.set_test_config"].
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/documents"r = await http.post(url, data=mean.encode("UTF-8"))url: str = f"https://hastebin.com/{r.json()['key']}"await m.reply_text(url, disable_web_page_preview=True)else:await m.reply_text(strings("reply_to_document_or_text"))
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 called inside which are ["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"].
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(strings("info_private").format(first_name=user_data.first_name,last_name=user_data.last_name or "",username="@" + user_data.usernameif user_data.usernameelse strings("none"),user_id=user_data.id,user_dc=user_data.dc_id or strings("unknown"),lang=user_data.language_code or strings("unknown"),chat_type=m.chat.type,))
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 functions called inside which are ["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"].
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.from_userelse:if m.from_user:user_data = m.from_userelse:returnawait m.reply_text(strings("info_group").format(first_name=html.escape(user_data.first_name),last_name=html.escape(user_data.last_name or ""),username="@" + user_data.usernameif user_data.usernameelse strings("none"),user_id=user_data.id,user_dc=user_data.dc_id or strings("unknown"),lang=user_data.language_code or strings("unknown"),chat_title=m.chat.title,chat_username="@" + m.chat.username if m.chat.username else strings("none"),chat_id=m.chat.id,chat_dc=m.chat.dc_id or strings("unknown"),chat_type=m.chat.type,message_id=m.id + 1,))
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 called inside which are ["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"].
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_userelse:if m.from_user:user = m.from_userelse:returntext = strings("info_header")text += strings("info_id").format(id=user.id)text += strings("info_first_name").format(first_name=html.escape(user.first_name))if user.last_name:text += strings("info_last_name").format(last_name=html.escape(user.last_name))if user.username:text += strings("info_username").format(username=html.escape(user.username))text += strings("info_userlink").format(link=user.mention("link"))try:member = await c.get_chat_member(chat_id=m.chat.id, user_id=user.id)if member.status == enums.ChatMemberStatus.ADMINISTRATOR:text += strings("info_chat_admin")elif member.status == enums.ChatMemberStatus.OWNER:text += strings("info_chat_creator")except (UserNotParticipant, ValueError):passawait m.reply_text(text)
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", "Client.on_message", "filters.command", "use_chat_lang"]
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 functions called inside which are ["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", "Client.on_message", "filters.command", "use_chat_lang"].
iiiiii1wepfj_alisurobot
public
public
0
0
faces_inline
async def faces_inline(c: Client,q: InlineQuery,):faces_list: List[str] = ["¯\\_(ツ)_/¯","( ͡° ͜ʖ ͡°)","( ͡~ ͜ʖ ͡°)","( ͡◐ ͜ʖ ͡◑))","( ͡◔ ͜ʖ ͡◔)","( ͡⚆ ͜ʖ ͡⚆)","( ͡ʘ ͜ʖ ͡ʘ)","ヽ༼ຈل͜ຈ༽ノ","༼ʘ̚ل͜ʘ̚༽","(╯°□°)╯","(ノ◕ヮ◕)ノ","(ノ◕ヮ◕)ノ*:・゚✧","(◕‿◕)","(。◕‿‿◕。)","(っ◕‿◕)っ","(づ。◕‿‿◕。)づ","༼ つ ◕_◕ ༽つ","(ง ͠° ͟ل͜ ͡°)ง","(ง'̀-'́)ง","ᕙ(⇀‸↼‶)ᕗ","(҂⌣̀_⌣́)","ᕦ(ò_óˇ)ᕤ","╚(ಠ_ಠ)=┐","ლ(ಠ益ಠლ)","\\_(ʘ_ʘ)_/","( ⚆ _ ⚆ )","(ಥ﹏ಥ)","﴾͡๏̯͡๏﴿","(◔̯◔)","(ಠ_ಠ)","(ಠ‿ಠ)","(¬_¬)","(¬‿¬)","\\ (•◡•) /","(◕‿◕✿)","( ͡°( ͡° ͜ʖ( ͡° ͜ʖ ͡°)ʖ ͡°) ͡°)",]results: Dict = []for i in faces_list:results.append(InlineQueryResultArticle(title=i, input_message_content=InputTextMessageContent(i)))await q.answer(results)
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 called inside which are ["results.append", "InlineQueryResultArticle", "InputTextMessageContent", "q.answer", "Client.on_inline_query", "filters.regex"].
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.MARKDOWN),reply_markup=(InlineKeyboardMarkup(querybuttons)if len(querybuttons) != 0else None),)])
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 functions called inside which are ["q.query.split", "button_parser", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "len", "InlineKeyboardMarkup", "Client.on_inline_query", "filters.regex", "use_chat_lang"].
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_markup=(InlineKeyboardMarkup(querybuttons)if len(querybuttons) != 0else None),)])
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 functions called inside which are ["q.query.split", "button_parser", "q.answer", "InlineQueryResultArticle", "strings", "InputTextMessageContent", "len", "InlineKeyboardMarkup", "Client.on_inline_query", "filters.regex", "use_chat_lang"].
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("user_info_inline_cant_found_user"),input_message_content=InputTextMessageContent(strings("user_info_inline_cant_found_user")),)])await q.answer([InlineQueryResultArticle(title=strings("user_info_inline_send"),input_message_content=InputTextMessageContent(strings("user_info_inline_string").format(usernameformat=user.username,useridformat=user.id,userdcformat=user.dc_id,usermentionformat=user.mention(),),),)])
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_chat_lang"]
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 functions called inside which are ["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_chat_lang"].
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(i.title(), req[i])await m.reply_text(x, parse_mode=enums.ParseMode.HTML)else:await m.reply_text(strings("ip_err_no_ip"))
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 called inside which are ["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"].
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(i.title(), req[i])await q.answer([InlineQueryResultArticle(title=f"click here to see the ip of {text}",input_message_content=InputTextMessageContent(x, parse_mode=enums.ParseMode.HTML),)])else:await q.answer([InlineQueryResultArticle(title="You must specify the url",input_message_content=InputTextMessageContent(f"You must specify the url, E.g.: <code>@{c.me.username} ip example.com</code>",parse_mode=enums.ParseMode.HTML,),)])
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 called inside which are ["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"].
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() else paramtry:obj = obj[param]except (IndexError, KeyError) as e:return await m.reply_text(f"{e.__class__.__name__}: {e}")# There is nothing to get anymore.if obj is None:breakobj = json.dumps(obj, indent=4, ensure_ascii=False)send_as_file = len(obj) > 3000 or "-f" in paramsif send_as_file:bio = io.BytesIO(obj.encode())bio.name: str = f"dump-{m.chat.id}.json"await m.reply_document(bio)else:await m.reply_text(f"<code>{html.escape(obj)}</code>")
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 called inside which are ["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"].
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_flag']} {lang['language_name']}",callback_data="set_lang " + langs[0],))langs.pop(0)kb.append(a)return kb
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 called inside which are ["list", "InlineKeyboardButton", "langs.pop", "a.append", "InlineKeyboardButton", "langs.pop", "kb.append"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.langs_py.chlang"].
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 = msg.reply_textres = (strings("language_changer_private")if msg.chat.type == enums.ChatType.PRIVATEelse strings("language_changer_chat"))await sender(res, reply_markup=keyboard)
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 called inside which are ["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"].
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:keyboard = InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(strings("back_btn", context="general"),callback_data="start_back",)]])else:keyboard = Noneawait m.message.edit_text(strings("language_changed_successfully"), reply_markup=keyboard)
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 functions called inside which are ["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"].
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 inside which are ["len", "m.reply_text", "strings", "m.text.split", "button_parser", "m.reply", "len", "InlineKeyboardMarkup", "Client.on_message", "filters.command", "use_chat_lang"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.86374841_meco_group_rockit.rockit.external.acados.method_py.AcadosMethod.transcribe_phase2"].
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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.cellular_automaton", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.definite_integral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.difference_quotient", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.function_derivative", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.function_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.julia", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.mandelbrot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.newton_method", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.polar_prime_spiral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.quadratic_equation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.riemann_sum", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.secant_method", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.simpson_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.taylor_polynomial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.trapezoid_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.trigonometric_properties_triangle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.unit_circle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.media.wav_py.Wave.listen", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.repl.rich_output.backend_base_py.BackendBase.latex_formatter"]
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 inside which are ["len", "m.reply_text", "strings", "m.text.split", "button_parser", "m.reply", "len", "InlineKeyboardMarkup", "Client.on_message", "filters.command", "use_chat_lang"], It has 22.0 functions calling this function which are ["_.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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.cellular_automaton", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.definite_integral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.difference_quotient", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.function_derivative", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.function_tool", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.html", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.julia", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.mandelbrot", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.newton_method", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.polar_prime_spiral", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.quadratic_equation", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.riemann_sum", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.secant_method", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.simpson_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.taylor_polynomial", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.trapezoid_integration", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.trigonometric_properties_triangle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.interacts.library_py.unit_circle", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.media.wav_py.Wave.listen", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.78400723_sagemath_sagetrac_mirror.src.sage.repl.rich_output.backend_base_py.BackendBase.latex_formatter"].
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_title=m.chat.title, admins_list=mention),)
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 called inside which are ["m.chat.get_members", "c.send_message", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"].
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_deleted or i.privileges.is_anonymous or i.user.is_bot):mention += f"<a href='tg://user?id={i.user.id}'>\u2063</a>"await m.reply_to_message.reply_text(strings("report_admns").format(admins_list=mention,reported_user=m.reply_to_message.from_user.mention(),),)
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 called inside which are ["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"].
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_token_invalid"))else:res = fullres["result"]get_bot_info_text = strings("bot_token_info")await m.reply(get_bot_info_text.format(botname=res["first_name"], botusername=res["username"], botid=res["id"]),reply_to_message_id=m.id,)
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 functions called inside which are ["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"].
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_message.from_user:from_reply_rt_user = m.reply_to_message.from_user.first_nameelif m.reply_to_message.sender_chat:from_reply_rt_user = m.reply_to_message.sender_chat.titleelse:returnif not re.match("🔃 .* retweeted:\n\n👤 .*", rt_text):text: str = f"🔃 <b>{escape(from_rt_user)}</b> retweeted:\n\n"text += f"👤 <b>{escape(from_reply_rt_user)}</b>:"text += f" <i>{escape(rt_text)}</i>"await m.reply_to_message.reply_text(text,disable_web_page_preview=True,disable_notification=True,)
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 called inside which are ["re.match", "escape", "escape", "escape", "m.reply_to_message.reply_text", "Client.on_message", "filters.regex"].
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 called inside which are ["m.reply_text", "quote", "m.text.split", "Client.on_message", "filters.command"].
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 called inside which are ["m.reply_text", "unquote", "m.text.split", "Client.on_message", "filters.command"].
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_message(chat_id=log_chat,text=bug_report,disable_web_page_preview=True,)await m.reply_text(strings("bug_reported_success_to_bot_admins"))except BadRequest:await m.reply_text(strings("err_cant_send_bug_report_to_bot_admins"))else:await m.reply(strings("err_no_bug_to_report"))
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 functions called inside which are ["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"].
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.extensions.get("reason_phrase", b"").decode(),)headers += "\n".join("<b>{}:</b> <code>{}</code>".format(x.title(), escape(req.headers[x]))for x in req.headers)await m.reply_text(f"<b>Headers:</b>\n{headers}", parse_mode=enums.ParseMode.HTML)else:await m.reply_text("You must specify the url, E.g.: <code>/request https://example.com</code>")
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 functions called inside which are ["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"].
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 functions called inside which are ["len", "m.text.split", "m.reply_text", "m.text.split", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"].
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 functions called inside which are ["m.reply_text", "Client.on_message", "filters.command"].
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/documents"r = await http.post(url, json={"content": mean})url: str = f"https://nekobin.com/{r.json()['result']['key']}"await m.reply_text(url, disable_web_page_preview=True)else:await m.reply_text(strings("reply_to_document_or_text"))
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 called inside which are ["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"].
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.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.embeddings.base_py.EmbeddingFunction.__resolveVariables", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.table_py.AsyncTable.create_index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.table_py.AsyncTable.search", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"]
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 which is ["notes.create"], It has 6.0 functions calling this function which are ["_.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.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.embeddings.base_py.EmbeddingFunction.__resolveVariables", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.table_py.AsyncTable.create_index", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94533096_lancedb_lancedb.python.python.lancedb.table_py.AsyncTable.search", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"].
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 inside which are ["update", "notes.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"].
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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.delete_note"]
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 inside which are ["delete", "notes.filter"], It has 3.0 functions calling this function which are ["_.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_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.delete_note"].
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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.serve_note"]
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 inside which is ["notes.filter"], It has 3.0 functions calling this function which are ["_.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.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.serve_note"].
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 called inside which is ["get_all_notes"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.delete_note", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.notes_py.save_note"].
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_to_message and m.reply_to_message.photo:file_id = m.reply_to_message.photo.file_idraw_data = (m.reply_to_message.caption.htmlif m.reply_to_message.caption is not Noneelse None)note_type = "photo"elif m.reply_to_message and m.reply_to_message.document:file_id = m.reply_to_message.document.file_idraw_data = (m.reply_to_message.caption.htmlif m.reply_to_message.caption is not Noneelse None)note_type = "document"elif m.reply_to_message and m.reply_to_message.video:file_id = m.reply_to_message.video.file_idraw_data = (m.reply_to_message.caption.htmlif m.reply_to_message.caption is not Noneelse None)note_type = "video"elif m.reply_to_message and m.reply_to_message.audio:file_id = m.reply_to_message.audio.file_idraw_data = (m.reply_to_message.caption.htmlif m.reply_to_message.caption is not Noneelse None)note_type = "audio"elif m.reply_to_message and m.reply_to_message.animation:file_id = m.reply_to_message.animation.file_idraw_data = (m.reply_to_message.caption.htmlif m.reply_to_message.caption is not Noneelse None)note_type = "animation"elif m.reply_to_message and m.reply_to_message.sticker:file_id = m.reply_to_message.sticker.file_idraw_data = split_text[1] if len(split_text) > 1 else Nonenote_type = "sticker"else:file_id = Noneraw_data = split_text[1]note_type = "text"chat_id = m.chat.idcheck_note = await check_for_notes(chat_id=chat_id, trigger=trigger)if check_note:await update_note(chat_id=chat_id,trigger=trigger,raw_data=raw_data,file_id=file_id,note_type=note_type,)else:await add_note(chat_id=chat_id,trigger=trigger,raw_data=raw_data,file_id=file_id,note_type=note_type,)await m.reply_text(strings("add_note_success").format(trigger=trigger), quote=True)
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 called inside which are ["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"].
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(strings("remove_note_success").format(trigger=trigger), quote=True)else:await m.reply_text(strings("no_note_with_name").format(trigger=trigger), quote=True)
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 functions called inside which are ["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"].
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)else:await m.reply_text(reply_text, quote=True)
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 functions called inside which are ["strings", "get_all_notes", "m.reply_text", "strings", "m.reply_text", "Client.on_message", "filters.command", "use_chat_lang"].
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_s.raw_data)if note_s.note_type == "text":await m.reply_text(data,quote=True,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s.note_type == "photo":await m.reply_photo(note_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s.note_type == "document":await m.reply_document(note_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s.note_type == "video":await m.reply_video(note_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s[4] == "audio":await m.reply_audio(note_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s.note_type == "animation":await m.reply_animation(note_s.file_id,quote=True,caption=data if not None else None,parse_mode=enums.ParseMode.MARKDOWN,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)elif note_s.note_type == "sticker":await m.reply_sticker(note_s.file_id,quote=True,reply_markup=InlineKeyboardMarkup(button)if len(button) != 0else None,)
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_animation", "len", "InlineKeyboardMarkup", "m.reply_sticker", "len", "InlineKeyboardMarkup"]
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 called inside which are ["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_animation", "len", "InlineKeyboardMarkup", "m.reply_sticker", "len", "InlineKeyboardMarkup"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.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"].
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 functions called inside which are ["serve_note", "Client.on_message", "filters.regex"].
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 functions called inside which are ["join", "serve_note", "Client.on_message", "filters.command"].
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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94656748_elastic_connectors.connectors.sources.google_drive_py.GoogleDriveDataSource.ping"]
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 which are ["datetime.now", "m.reply_text", "datetime.now", "sent.edit_text", "Client.on_message", "filters.command"], It has 3.0 functions calling this function which are ["_.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", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.94656748_elastic_connectors.connectors.sources.google_drive_py.GoogleDriveDataSource.ping"].
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 = BytesIO(r.read())bio.name: str = "screenshot.png"await m.reply_photo(bio)await sent.delete()
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 called inside which are ["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"].
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 inside which are ["re.compile", "re.sub"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.pypi_py.escape_definition"].
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 called inside which are ["definition.items", "isinstance", "html.escape", "cleanhtml"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.pypi_py.pypi"].
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_details").format(package_name=pypi_info["name"],author_name=pypi_info["author"],author_email=f"&lt;{pypi_info['author_email']}&gt;"if pypi_info["author_email"]else "",platform=pypi_info["platform"] or strings("not_specified"),version=pypi_info["version"],license=pypi_info["license"] or strings("not_specified"),summary=pypi_info["summary"],)if pypi_info["home_page"] and pypi_info["home_page"] != "UNKNOWN":kb = InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(text=strings("package_home_page"),url=pypi_info["home_page"],)]])else:kb = Noneawait m.reply_text(message,disable_web_page_preview=True,reply_markup=kb,)else:await m.reply_text(strings("package_not_found").format(package_name=text, http_status=r.status_code))
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 called inside which are ["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"].
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:qrcodetext = m.text.split(None, 1)[1]else:returnmake_qr_code = qrcode.make(qrcodetext)bytes_qr_code = BytesIO()make_qr_code.save(bytes_qr_code)qr_code_result = BytesIO(bytes_qr_code.getvalue())await m.reply_photo(qr_code_result)
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 called inside which are ["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"].
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 which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"].
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.titleelse:return ""else:if m.from_user:if m.from_user.last_name:return f"{m.from_user.first_name} {m.from_user.last_name}"else:return m.from_user.first_nameelif m.sender_chat:return m.sender_chat.titleelse:return ""
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 which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"].
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 m.from_user:if m.from_user.username:return m.from_user.usernameelse:return ""elif m.sender_chat:if m.sender_chat.username:return m.sender_chat.usernameelse:return ""else:return ""
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 function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"].
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,"big_photo_unique_id": m.forward_from.photo.big_photo_unique_id,}else:return ""elif m.forward_from_chat:if m.forward_from_chat.photo:return {"small_file_id": m.forward_from_chat.photo.small_file_id,"small_photo_unique_id": m.forward_from_chat.photo.small_photo_unique_id,"big_file_id": m.forward_from_chat.photo.big_file_id,"big_photo_unique_id": m.forward_from_chat.photo.big_photo_unique_id,}else:return ""else:return ""else:if m.from_user:if m.from_user.photo:return {"small_file_id": m.from_user.photo.small_file_id,"small_photo_unique_id": m.from_user.photo.small_photo_unique_id,"big_file_id": m.from_user.photo.big_file_id,"big_photo_unique_id": m.from_user.photo.big_photo_unique_id,}else:return ""elif m.sender_chat:if m.sender_chat.photo:return {"small_file_id": m.sender_chat.photo.small_file_id,"small_photo_unique_id": m.sender_chat.photo.small_photo_unique_id,"big_file_id": m.sender_chat.photo.big_file_id,"big_photo_unique_id": m.sender_chat.photo.big_photo_unique_id,}else:return ""else:return ""
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 function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"].
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 which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.hydrogram_to_quotly"].
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.name.lower(),"offset": entity.offset,"length": entity.length,}for entity in message.entities]elif message.caption_entities:the_message_dict_to_append["entities"] = [{"type": entity.type.name.lower(),"offset": entity.offset,"length": entity.length,}for entity in message.caption_entities]else:the_message_dict_to_append["entities"] = []the_message_dict_to_append["chatId"] = await get_message_sender_id(message)the_message_dict_to_append["text"] = await get_text_or_caption(message)the_message_dict_to_append["avatar"] = Truethe_message_dict_to_append["from"] = {}the_message_dict_to_append["from"]["id"] = await get_message_sender_id(message)the_message_dict_to_append["from"]["name"] = await get_message_sender_name(message)the_message_dict_to_append["from"]["username"] = await get_message_sender_username(message)the_message_dict_to_append["from"]["type"] = message.chat.type.name.lower()the_message_dict_to_append["from"]["photo"] = await get_message_sender_photo(message)if message.reply_to_message:the_message_dict_to_append["replyMessage"] = {"name": await get_message_sender_name(message.reply_to_message),"text": await get_text_or_caption(message.reply_to_message),"chatId": await get_message_sender_id(message.reply_to_message),}else:the_message_dict_to_append["replyMessage"] = {}payload["messages"].append(the_message_dict_to_append)r = await http.post(f"https://bot.lyo.su/quote/generate.png", json=payload)if not r.is_error:return r.read()else:raise QuotlyException(r.json())
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_sender_id", "append", "http.post", "r.read", "QuotlyException", "r.json"]
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 functions called inside which are ["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_sender_id", "append", "http.post", "r.read", "QuotlyException", "r.json"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.msg_quotly_cmd"].
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 which is ["int"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.quotly_maker_py.msg_quotly_cmd"].
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_ids=range(m.reply_to_message.id,m.reply_to_message.id + (check_arg[1] + 5),),replies=-1,)if not i.empty and not i.media]except:return await m.reply_text("¯\\_(ツ)_/¯")try:make_quotly = await hydrogram_to_quotly(messages)bio_sticker = BytesIO(make_quotly)bio_sticker.name = "biosticker.webp"return await m.reply_sticker(bio_sticker)except:return await m.reply_text("¯\\_(ツ)_/¯")else:passtry:messages_one = await c.get_messages(chat_id=m.chat.id, message_ids=m.reply_to_message.id, replies=-1)messages = [messages_one]except:return await m.reply_text("¯\\_(ツ)_/¯")try:make_quotly = await hydrogram_to_quotly(messages)bio_sticker = BytesIO(make_quotly)bio_sticker.name = "biosticker.webp"return await m.reply_sticker(bio_sticker)except:return await m.reply_text("¯\\_(ツ)_/¯")
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", "use_chat_lang"]
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 functions called inside which are ["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", "use_chat_lang"].
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 inside which is ["groups.get"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.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"].
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 inside which are ["update", "groups.filter"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.delete_rules", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.settherules"].
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 called inside which are ["update", "groups.filter"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.rules_py.set_pvt_rules_cmd"].
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 function called inside which is ["groups.get"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.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"].
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 called inside which are ["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"].
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_text(strings("pvt_rules_set_msg_disabled"))else:await m.reply_text(strings("set_pvt_rules_invalid_arg"))else:await m.reply_text(strings("set_pvt_rules_invalid_arg"))
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 functions called inside which are ["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"].
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 functions called inside which are ["check_private_rules_status", "m.reply_text", "strings", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"].
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 called inside which are ["set_rules", "m.reply_text", "strings", "Client.on_message", "filters.command", "require_admin", "use_chat_lang"].
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"https://t.me/{c.me.username}?start=rules_{m.chat.id}",)],]),)else:gettherules = await get_rules(m.chat.id)rulestxt, rules_buttons = button_parser(gettherules)if rulestxt:await m.reply_text(strings("rules_message").format(chat_title=m.chat.title, rules=rulestxt),reply_markup=(InlineKeyboardMarkup(rules_buttons)if len(rules_buttons) != 0else None),)else:await m.reply_text(strings("rules_empty"))
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 functions called inside which are ["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"].
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=(InlineKeyboardMarkup(rules_buttons) if len(rules_buttons) != 0 else None),)else:await m.reply_text(strings("rules_empty"))await m.stop_propagation()
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 functions called inside which are ["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"].
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.Ielif "s" in flags:rflags = regex.Stext = m.reply_to_message.text or m.reply_to_message.captionif not text:returntry:res = regex.sub(pattern,replace_with,text,count=count,flags=rflags,timeout=1,)except TimeoutError:await m.reply_text(strings("regex_timeout"))except regex.error as e:await m.reply_text(str(e))else:try:await c.send_message(m.chat.id,f"<pre>{html.escape(res)}</pre>",reply_to_message_id=m.reply_to_message.id,)except (MessageTooLong, MessageEmpty):pass
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 inside which are ["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"].
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"), callback_data="commands"),InlineKeyboardButton(strings("infos_btn"), callback_data="infos"),],[InlineKeyboardButton(strings("language_btn"), callback_data="chlang"),InlineKeyboardButton(strings("add_chat_btn"),url=f"https://t.me/{c.me.username}?startgroup=new",),],])await method(strings("private").format(myname=c.me.first_name),reply_markup=keyboard,)else:keyboard = InlineKeyboardMarkup(inline_keyboard=[[InlineKeyboardButton(strings("start_chat"),url=f"https://t.me/{c.me.username}?start=start",)]])await method(strings("group").format(myname=c.me.first_name),reply_markup=keyboard,)
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", "filters.command", "filters.regex", "Client.on_callback_query", "filters.regex", "use_chat_lang"]
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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.MonitorLoss.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.MonitorScores.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.StopOnSigQuit.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.training.steppers_py.MomentumStepper.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.training.steppers_py.SgdStepper.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537618_mirantis_mos_integration_tests.mos_tests.ironic.proxy_py.TheServer.on_accept", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3550711_cocaine_cocaine_tools.cocaine.proxy.proxy_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.crossdock.server.server_py.serve", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.agent_py.AgentProcess.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.common_py.after", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.common_py.repeat", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.nameserver_py.NameServerProcess.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.nameserver_py.run_nameserver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_agent_py.test_agent_inheritance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_agent_py.test_early_agent_proxy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_helper_py.test_wait_condition", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_helper_py.test_wait_condition_negate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_nameserver_py.test_nameserver_proxy_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_proxy_py.test_agent_proxy_wait_running", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_proxy_py.test_agent_proxy_wait_running_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653826_zalando_zmon_zmon_worker.zmon_worker_monitor.process_controller_py.ProcessPlus.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653826_zalando_zmon_zmon_worker.zmon_worker_monitor.workflow_py.start_worker_for_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660028_openprocurement_openprocurement_auction.openprocurement.auction.helpers.chronograph_py.AuctionExecutor.start"]
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 inside which are ["isinstance", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "InlineKeyboardButton", "strings", "method", "format", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "method", "format", "strings", "Client.on_message", "filters.command", "filters.regex", "Client.on_callback_query", "filters.regex", "use_chat_lang"], It has 134.0 functions calling this function which are ["_.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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.MonitorLoss.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.MonitorScores.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.hooks_py.StopOnSigQuit.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.training.steppers_py.MomentumStepper.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3535398_idsia_brainstorm.brainstorm.training.steppers_py.SgdStepper.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3537618_mirantis_mos_integration_tests.mos_tests.ironic.proxy_py.TheServer.on_accept", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3550711_cocaine_cocaine_tools.cocaine.proxy.proxy_py.main", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3625043_uber_tchannel_python.crossdock.server.server_py.serve", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.agent_py.AgentProcess.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.common_py.after", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.common_py.repeat", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.nameserver_py.NameServerProcess.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.nameserver_py.run_nameserver", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_agent_py.test_agent_inheritance", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_agent_py.test_early_agent_proxy", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_helper_py.test_wait_condition", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_helper_py.test_wait_condition_negate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_nameserver_py.test_nameserver_proxy_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_proxy_py.test_agent_proxy_wait_running", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3629712_opensistemas_hub_osbrain.osbrain.tests.test_proxy_py.test_agent_proxy_wait_running_timeout", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653826_zalando_zmon_zmon_worker.zmon_worker_monitor.process_controller_py.ProcessPlus.start", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653826_zalando_zmon_zmon_worker.zmon_worker_monitor.workflow_py.start_worker_for_queue", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660028_openprocurement_openprocurement_auction.openprocurement.auction.helpers.chronograph_py.AuctionExecutor.start"].
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"),callback_data="start_back",)]])await m.message.edit_text(res,reply_markup=keyboard,disable_web_page_preview=True,)
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 inside which are ["format", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "m.message.edit_text", "Client.on_callback_query", "filters.regex", "use_chat_lang"].
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.resolve_peer(m.from_user.username or m.from_user.id)if reply and reply.media:if reply.photo:resize: bool = Trueelif reply.document:if "image" in reply.document.mime_type:# mime_type: image/webpresize: bool = Trueelif "tgsticker" in reply.document.mime_type:# mime_type: application/x-tgstickeranimated: bool = Trueelif reply.sticker:if not reply.sticker.file_name:return await prog_msg.edit_text(strings("err_sticker_no_file_name"))if reply.sticker.emoji:sticker_emoji = reply.sticker.emojianimated = reply.sticker.is_animatedif not reply.sticker.file_name.endswith(".tgs"):resize: bool = Trueelse:return await prog_msg.edit_text(strings("invalid_media_string"))pack_prefix = "anim" if animated else "a"packname: str = f"{pack_prefix}_{m.from_user.id}_by_{bot_username}"if len(m.command) > 1:if m.command[1].isdigit() and int(m.command[1]) > 0:# provide pack number to kang in desired packpacknum = m.command.pop(1)packname: str = (f"{pack_prefix}{packnum}_{m.from_user.id}_by_{bot_username}")if len(m.command) > 1:# matches all valid emojis in inputsticker_emoji = ("".join(set(EMOJI_PATTERN.findall("".join(m.command[1:]))))or sticker_emoji)filename = await c.download_media(m.reply_to_message)if not filename:# Failed to downloadawait prog_msg.delete()returnelif m.entities and len(m.entities) > 1:packname: str = f"a_{m.from_user.id}_by_{bot_username}"pack_prefix: str = "a"# searching if image_url is givenimg_url = Nonefilename: str = "sticker.png"for y in m.entities:if y.type == enums.MessageEntityType.URL:img_url = m.text[y.offset : (y.offset + y.length)]breakif not img_url:await prog_msg.delete()returntry:r = await http.get(img_url)if r.status_code == 200:with open(filename, mode="wb") as f:f.write(r.read())except Exception as r_e:return await prog_msg.edit_text(f"{r_e.__class__.__name__} : {r_e}")if len(m.command) > 2:# m.command[1] is image_urlif m.command[2].isdigit() and int(m.command[2]) > 0:packnum = m.command.pop(2)packname = f"a{packnum}_{m.from_user.id}_by_{bot_username}"if len(m.command) > 2:sticker_emoji = ("".join(set(EMOJI_PATTERN.findall("".join(m.command[2:]))))or sticker_emoji)resize: bool = Trueelse:return await prog_msg.delete()try:if resize:filename = resize_image(filename)max_stickers = 50 if animated else 120while not packname_found:try:stickerset = await c.invoke(GetStickerSet(stickerset=InputStickerSetShortName(short_name=packname), hash=0))if stickerset.set.count >= max_stickers:packnum += 1packname: str = (f"{pack_prefix}_{packnum}_{m.from_user.id}_by_{bot_username}")else:packname_found: bool = Trueexcept StickersetInvalid:breakfile = await c.save_file(filename)media = await c.invoke(SendMedia(peer=(await c.resolve_peer(log_chat)),media=InputMediaUploadedDocument(file=file,mime_type=c.guess_mime_type(filename),attributes=[DocumentAttributeFilename(file_name=filename)],),message=f"#Sticker kang by UserID -> {m.from_user.id}",random_id=c.rnd_id(),))msg_ = media.updates[-1].messagestkr_file = msg_.media.documentif packname_found:await prog_msg.edit_text(strings("use_existing_pack"))await c.invoke(AddStickerToSet(stickerset=InputStickerSetShortName(short_name=packname),sticker=InputStickerSetItem(document=InputDocument(id=stkr_file.id,access_hash=stkr_file.access_hash,file_reference=stkr_file.file_reference,),emoji=sticker_emoji,),))else:await prog_msg.edit_text(strings("create_new_pack_string"))u_name = m.from_user.usernameif u_name:u_name: str = f"@{u_name}"else:u_name = str(m.from_user.id)stkr_title: str = f"{u_name}'s "if animated:stkr_title += "Anim. "stkr_title += "AlisuPack"if packnum != 0:stkr_title += f" v{packnum}"try:await c.invoke(CreateStickerSet(user_id=user,title=stkr_title,short_name=packname,stickers=[InputStickerSetItem(document=InputDocument(id=stkr_file.id,access_hash=stkr_file.access_hash,file_reference=stkr_file.file_reference,),emoji=sticker_emoji,)],animated=animated,))except PeerIdInvalid:return await prog_msg.edit_text(strings("cant_create_sticker_pack_string"),reply_markup=InlineKeyboardMarkup([[InlineKeyboardButton("/start", url=f"https://t.me/{bot_username}?start")]]),)except Exception as all_e:await prog_msg.edit_text(f"{all_e.__class__.__name__} : {all_e}")else:markup = InlineKeyboardMarkup([[InlineKeyboardButton(strings("view_sticker_pack_btn"),url=f"t.me/addstickers/{packname}",)]])kanged_success_msg = strings("sticker_kanged_string")await prog_msg.edit_text(kanged_success_msg.format(sticker_emoji=sticker_emoji), reply_markup=markup)# Cleanupawait c.delete_messages(chat_id=log_chat, message_ids=msg_.id, revoke=True)try:os.remove(filename)except OSError:pass
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", "open", "f.write", "r.read", "prog_msg.edit_text", "len", "isdigit", "int", "m.command.pop", "len", "join", "set", "EMOJI_PATTERN.findall", "join", "prog_msg.delete", "resize_image", "c.invoke", "GetStickerSet", "InputStickerSetShortName", "c.save_file", "c.invoke", "SendMedia", "c.resolve_peer", "InputMediaUploadedDocument", "c.guess_mime_type", "DocumentAttributeFilename", "c.rnd_id", "prog_msg.edit_text", "strings", "c.invoke", "AddStickerToSet", "InputStickerSetShortName", "InputStickerSetItem", "InputDocument", "prog_msg.edit_text", "strings", "str", "c.invoke", "CreateStickerSet", "InputStickerSetItem", "InputDocument", "prog_msg.edit_text", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "prog_msg.edit_text", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "strings", "prog_msg.edit_text", "kanged_success_msg.format", "c.delete_messages", "os.remove", "Client.on_message", "filters.command", "use_chat_lang"]
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 functions called inside which are ["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", "open", "f.write", "r.read", "prog_msg.edit_text", "len", "isdigit", "int", "m.command.pop", "len", "join", "set", "EMOJI_PATTERN.findall", "join", "prog_msg.delete", "resize_image", "c.invoke", "GetStickerSet", "InputStickerSetShortName", "c.save_file", "c.invoke", "SendMedia", "c.resolve_peer", "InputMediaUploadedDocument", "c.guess_mime_type", "DocumentAttributeFilename", "c.rnd_id", "prog_msg.edit_text", "strings", "c.invoke", "AddStickerToSet", "InputStickerSetShortName", "InputStickerSetItem", "InputDocument", "prog_msg.edit_text", "strings", "str", "c.invoke", "CreateStickerSet", "InputStickerSetItem", "InputDocument", "prog_msg.edit_text", "strings", "InlineKeyboardMarkup", "InlineKeyboardButton", "prog_msg.edit_text", "InlineKeyboardMarkup", "InlineKeyboardButton", "strings", "strings", "prog_msg.edit_text", "kanged_success_msg.format", "c.delete_messages", "os.remove", "Client.on_message", "filters.command", "use_chat_lang"].
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.path.join(downpath, f"{f_name.split('.', 1)[0]}.png")im.save(png_image, "PNG")if png_image != filename:os.remove(filename)return png_image
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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.stickers_py.kang_sticker"]
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 called inside which are ["Image.open", "max", "int", "int", "im.resize", "os.path.split", "os.path.join", "f_name.split", "im.save", "os.remove"], It has 3.0 functions calling this function which are ["_.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.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.stickers_py.kang_sticker"].
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 functions called inside which are ["m.reply_text", "format", "strings", "Client.on_message", "filters.command", "use_chat_lang"].
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.download_media(message=m.reply_to_message,file_name=f"{path}/{sticker.set_name}.png",)await m.reply_to_message.reply_document(document=sticker_file,caption=strings("sticker_info").format(emoji=sticker.emoji, id=sticker.file_id),)shutil.rmtree(tempdir, ignore_errors=True)else:await m.reply_text(strings("not_sticker"))
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 functions called inside which are ["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"].
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 inside which are ["c.stop", "os.execv"], It has 2.0 functions calling this function which are ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.sudos_py.restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.sudos_py.upgrade"].
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 inside which are ["m.reply_text", "Client.on_message", "filters.command"].
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.communicate()res = ("<b>Output:</b>\n<code>{}</code>".format(html.escape(stdout.decode().strip()))if stdoutelse "") + ("\n<b>Errors:</b>\n<code>{}</code>".format(html.escape(stderr.decode().strip()))if stderrelse "")await m.reply_text(res)
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_stats_backfill_py.process_weekly", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.build_wheel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.scan_headers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.update_init", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.update_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.util_py.run_pip"]
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 inside which are ["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"], It has 8.0 functions calling this function which are ["_.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_stats_backfill_py.process_weekly", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.build_wheel", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.scan_headers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.test", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.update_init", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.subproject_py.Subproject.update_yaml", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95197708_robotpy_mostrobotpy.devtools.util_py.run_pip"].
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 stdout.decode():await sm.edit_text("There's nothing to upgrade.")else:await sm.edit_text(strings("restarting"))asyncio.get_event_loop().create_task(restartbot(c))else:await sm.edit_text(f"Upgrade failed (process exited with {proc.returncode}):\n{stdout.decode()}")proc = await asyncio.create_subprocess_shell("git merge --abort")await proc.communicate()
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_chat_lang"]
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 inside which are ["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_chat_lang"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.69485146_mgaido91_fbk_fairseq_st.fairseq.utils_py._match_types"].
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.txt"await m.reply_document(bio)else:await m.reply_text(output_eval_one)else:try:output_eval_msg_two_txt = f"<code>{html.escape(str(res))}</code>"if len(output_eval_msg_two_txt) > c.tg_max_text_msg_len:bio = io.BytesIO(str(res).encode())bio.name: str = "eval.txt"await m.reply_document(bio)else:await m.reply_text(output_eval_msg_two_txt)except Exception as e:# skipcqoutput_eval_e = str(e)if len(output_eval_e) > c.tg_max_text_msg_len:bio = io.BytesIO(str(output_eval_e).encode())bio.name: str = "eval.txt"await m.reply_document(bio)else:await m.reply_text(output_eval_e)
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", "m.reply_text", "Client.on_message", "filters.command"]
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 called inside which are ["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", "m.reply_text", "Client.on_message", "filters.command"].
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_out_one = html.escape(trace_format_exc_exec_cmd)if len(msg_out_one) > c.tg_max_text_msg_len:bio = io.BytesIO(str(trace_format_exc_exec_cmd).encode())bio.name: str = "exec.txt"return await m.reply_document(bio)else:return await m.reply_text(msg_out_one)if strio.getvalue().strip():out_one = strio.getvalue()out = f"<code>{html.escape(out_one)}</code>"else:out_one = "Command executed."out = "Command executed."if len(out) > c.tg_max_text_msg_len:bio = io.BytesIO(str(out_one).encode())bio.name: str = "exec.txt"await m.reply_document(bio)else:await m.reply_text(out)
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", "m.reply_text", "Client.on_message", "filters.command"]
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 called inside which are ["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", "m.reply_text", "Client.on_message", "filters.command"].
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 = round(s.download() / 1024 / 1024, 2)await sent.edit_text(string.format(host=bs["sponsor"], ping=int(bs["latency"]), download=dl, upload=""))ul = round(s.upload() / 1024 / 1024, 2)await sent.edit_text(string.format(host=bs["sponsor"], ping=int(bs["latency"]), download=dl, upload=ul))
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 functions called inside which are ["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"].
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.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_capabilities", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_dereference", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_disassemble", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_memory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_registers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_stack", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_state_stopped", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_targets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962499_nginx_proxy_nginx_proxy.test.test_unreachable_network.test_unreachable_network_py.test_reverseproxy_survive_restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962499_nginx_proxy_nginx_proxy.test.test_vhost_in_multiple_networks.test_vhost_in_multiple_networks_py.test_nginx_config_remains_the_same_after_restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70411340_rhos_infra_cibyl.tripleo.insights.git_py.GitCLIDownloader._get_repo"]
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 inside which are ["m.reply_text", "strings", "create_task", "asyncio.get_event_loop", "restartbot", "Client.on_message", "filters.command", "use_chat_lang"], It has 14.0 functions calling this function which are ["_.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.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_capabilities", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_command", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_dereference", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_disassemble", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_memory", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_registers", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_stack", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_state_stopped", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3660682_snare_voltron.tests.lldb_cli_tests_py.test_targets", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962499_nginx_proxy_nginx_proxy.test.test_unreachable_network.test_unreachable_network_py.test_reverseproxy_survive_restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3962499_nginx_proxy_nginx_proxy.test.test_vhost_in_multiple_networks.test_vhost_in_multiple_networks_py.test_nginx_config_remains_the_same_after_restart", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.70411340_rhos_infra_cibyl.tripleo.insights.git_py.GitCLIDownloader._get_repo"].
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 called inside which are ["len", "c.leave_chat", "print", "m.text.split", "c.leave_chat", "int", "print", "Client.on_message", "filters.command"].
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.reply_text("<b>Bot statistics:</b>\n\n"f"<b>Users:</b> {users_count}\n"f"<b>Groups:</b> {groups_count}\n"f"<b>Filters:</b> {filters_count}\n"f"<b>Notes:</b> {notes_count}\n"f"<b>Hydrogram Version:</b> {hydrogram_version} (Layer {hydrogram_layer})\n"f"<b>Bot Version:</b> {alisu_version} ({c.version_code})\n"f"<b>Uptime:</b> {bot_uptime}")
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 functions called inside which are ["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"].
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.members_count}")else:await m.reply_text("This is a private Chat.")else:await m.reply_text("You must specify the Chat.")
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 called inside which are ["len", "m.text.split", "c.get_chat", "m.reply_text", "m.reply_text", "m.reply_text", "Client.on_message", "filters.command"].
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:await m.reply_text(strings("telegraph_err_no_reply"))
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 inside which are ["m.reply_to_message.download", "upload_file", "m.reply_text", "m.reply_text", "strings", "Client.on_message", "filters.command", "use_chat_lang"], It has 2.0 functions calling this function which are ["_.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"].
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_loop()sendtioreq = await loop.run_in_executor(None, tio.send, tioreq)tioerrres = sendtioreq.error or "None"tiores = sendtioreq.result or "None"tioresstats = sendtioreq.debug.decode() or "None"if sendtioreq.error is None:await m.reply_text(strings("code_exec_tio_res_string_no_err").format(langformat=execlanguage,codeformat=html.escape(codetoexec),resformat=html.escape(tiores),statsformat=tioresstats,))else:await m.reply_text(strings("code_exec_tio_res_string_err").format(langformat=execlanguage,codeformat=html.escape(codetoexec),resformat=html.escape(tiores),errformat=html.escape(tioerrres),))else:await m.reply_text(strings("code_exec_err_string").format(langformat=execlanguage, langslistlink=langs_list_link))
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", "Client.on_message", "filters.command", "use_chat_lang"]
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 functions called inside which are ["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", "Client.on_message", "filters.command", "use_chat_lang"].
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, tioreq)tioerrres = sendtioreq.error or "None"tiores = sendtioreq.result or "None"tioresstats = sendtioreq.debug.decode() or "None"if sendtioreq.error is None:await q.answer([InlineQueryResultArticle(title=strings("code_exec_inline_send").format(langformat=execlanguage),description=tiores,input_message_content=InputTextMessageContent(strings("code_exec_tio_res_string_no_err").format(langformat=execlanguage,codeformat=html.escape(codetoexec),resformat=html.escape(tiores),statsformat=tioresstats,)),)],cache_time=0,)else:await q.answer([InlineQueryResultArticle(title=strings("code_exec_inline_send").format(langformat=execlanguage),description=tiores,input_message_content=InputTextMessageContent(strings("code_exec_tio_res_string_err").format(langformat=execlanguage,codeformat=html.escape(codetoexec),resformat=html.escape(tiores),errformat=html.escape(tioerrres),)),)],cache_time=0,)else:await q.answer([InlineQueryResultArticle(title=strings("code_exec_err_inline_send_string").format(langformat=execlanguage),input_message_content=InputTextMessageContent(strings("code_exec_err_string").format(langformat=execlanguage, langslistlink=langs_list_link)),)])
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", "format", "strings", "InputTextMessageContent", "format", "strings", "html.escape", "html.escape", "html.escape", "q.answer", "InlineQueryResultArticle", "format", "strings", "InputTextMessageContent", "format", "strings", "Client.on_inline_query", "filters.regex", "use_chat_lang"]
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 36.0 functions called inside which are ["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", "format", "strings", "InputTextMessageContent", "format", "strings", "html.escape", "html.escape", "html.escape", "q.answer", "InlineQueryResultArticle", "format", "strings", "InputTextMessageContent", "format", "strings", "Client.on_inline_query", "filters.regex", "use_chat_lang"].
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 inside which are ["len", "text.split", "text.split", "lang.split", "len", "lang.split", "lang.split"], It has 1.0 function calling this function which is ["_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.95050229_iiiiii1wepfj_alisurobot.alisu.plugins.translate_py.translate"].
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_usage"), reply_to_message_id=m.id)sent = await m.reply_text(strings("translating"),reply_to_message_id=m.id,)try:langs = {}if len(lang.split("-")) > 1:langs["sourcelang"] = lang.split("-")[0]langs["targetlang"] = lang.split("-")[1]else:langs["targetlang"] = langtrres = await tr.translate(text, **langs)text = trres.textres = html.escape(text)await sent.edit_text(strings("translation").format(from_lang=trres.lang,to_lang=langs["targetlang"],translation=res,))except TranslationError:await sent.delete()return await m.reply_text(strings("google_tr_err_string"))
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_chat_lang"]
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.roles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.structure_py.StructureView.folderItems", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3532062_projectara_greybus_spec.source.extensions.latex_mods_py.DocTranslator.visit_caption", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640866_pelagicore_qface.qface.helper.doc_py.DocObject._call_translate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653267_trolldbois_ctypeslib.test.test_macro_py.Macro.test_enum_macro", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653267_trolldbois_ctypeslib.test.test_macro_py.Macro.test_enum_token_pasting", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.upymysql.converters_py._escape_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.upymysql.converters_py.escape_bytes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928358_rubisco_sfa_ilamb.src.ILAMB.point_result_py.is_binary_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3959317_sh4nks_flask_caching.src.flask_caching.utils_py.function_namespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963159_pre_commit_identify.identify.identify_py.is_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.AsmElement.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.AsmRelationGroup.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.Assembly._fromLinkGroup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.Assembly.getConstraints", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.constraintFunc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.getMenuText", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.getToolTip", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.BaseCascade.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.BaseMulti.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Constraint.getFixedParts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.ConstraintCommand._toolbarName", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py._n", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.gui_py.AsmCmdManager.getMenuText"]
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 called inside which are ["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_chat_lang"], It has 53.0 functions calling this function which are ["_.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.roles", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3468756_plone_plone_app_cmsui.src.plone.app.cmsui.structure_py.StructureView.folderItems", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3532062_projectara_greybus_spec.source.extensions.latex_mods_py.DocTranslator.visit_caption", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3640866_pelagicore_qface.qface.helper.doc_py.DocObject._call_translate", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653267_trolldbois_ctypeslib.test.test_macro_py.Macro.test_enum_macro", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3653267_trolldbois_ctypeslib.test.test_macro_py.Macro.test_enum_token_pasting", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.upymysql.converters_py._escape_unicode", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3657321_dvrhax_upymysql.upymysql.converters_py.escape_bytes", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3928358_rubisco_sfa_ilamb.src.ILAMB.point_result_py.is_binary_file", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3959317_sh4nks_flask_caching.src.flask_caching.utils_py.function_namespace", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3963159_pre_commit_identify.identify.identify_py.is_text", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.AsmElement.execute", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.AsmRelationGroup.update", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.Assembly._fromLinkGroup", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.assembly_py.Assembly.getConstraints", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.constraintFunc", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.getMenuText", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Base.getToolTip", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.BaseCascade.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.BaseMulti.prepare", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.Constraint.getFixedParts", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py.ConstraintCommand._toolbarName", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.constraint_py._n", "_.content.gdrive.MyDrive.Phd_Thesis.Dataset_Creation.Output.Cloned_Repo_3.3964720_realthunder_freecad_assembly3.freecad.asm3.gui_py.AsmCmdManager.getMenuText"].
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=strings("translate_inline_send").format(srclangformat=source_language, tolangformat=to_language),description=f"{translation.text}",input_message_content=InputTextMessageContent(f"{translation.text}"),)])except IndexError:returnexcept TranslationError:return await q.answer([InlineQueryResultArticle(title=strings("google_tr_err_string"),input_message_content=InputTextMessageContent(strings("google_tr_err_string")),)])
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 functions called inside which are ["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"].