MCPcopy Create free account

hub / github.com/Charcoal-SE/SmokeDetector / functions

Functions744 in github.com/Charcoal-SE/SmokeDetector

↓ 166 callersFunctionlog
(log_level, *args, and_file=False, no_exception=False)
helpers.py:186
↓ 102 callersMethodget
Retrieve a cached value. Will not re-generate expired values - if that's the behaviour you need, use MetasmokeCache.fetch. :
metasmoke_cache.py:16
↓ 79 callersFunctioncreate_rule
(reason, regex=None, func=None, *, all=True, sites=[], title=True, body=True, body_summary=Fal
findspam.py:715
↓ 29 callersMethoddo
(cls, func, *args, **kwargs)
tasks.py:19
↓ 29 callersMethodget
Get post scanning statistics from a stat set, including derived data, start and lock timestamps.
globalvars.py:250
↓ 26 callersMethodadd
(cls, time, classname, message, traceback)
helpers.py:111
↓ 25 callersFunctionexit_mode
(*args, code=0)
helpers.py:28
↓ 25 callersMethodparse
(self)
blacklists.py:436
↓ 24 callersFunctiondump_pickle
(path, item, protocol=pickle.HIGHEST_PROTOCOL)
datahandling.py:88
↓ 24 callersFunctionlog_current_exception
(and_file=False, log_level=None)
helpers.py:247
↓ 20 callersFunctionload_pickle
(path, encoding='utf-8')
datahandling.py:63
↓ 20 callersMethodmatch
Run this rule against a post. Returns a list of 3 tuples for [result_title, result_username, result_body], each in (match, r
findspam.py:459
↓ 19 callersFunctionhas_pickle
(path)
datahandling.py:109
↓ 18 callersMethodremove
(self, item)
blacklists.py:442
↓ 17 callersMethodsend
(self, url, msg)
classes/feedback.py:20
↓ 14 callersFunctionfetch_post_id_and_site_from_url
(url: Optional[str])
parsing.py:104
↓ 14 callersFunctiontell_rooms_with
(prop, msg, notify_site="", report_data=None)
chatcommunicate.py:384
↓ 13 callersMethodadd
(self, item)
blacklists.py:439
↓ 12 callersFunctioncheck_if_spam
(post, dont_ignore_for=None)
spamhandling.py:47
↓ 12 callersMethodis_down
Query if metasmoke status is down
globalvars.py:383
↓ 10 callersMethodcopy
Copies the contents of a stat set to another stat set key
globalvars.py:303
↓ 10 callersMethodreload
(cls)
globalvars.py:483
↓ 10 callersMethodupdate
(*args, **kwargs)
_Git_Windows.py:57
↓ 9 callersFunctionget_user_from_url
(url: Optional[str])
parsing.py:18
↓ 9 callersFunctionlog
(message)
nocrash.py:51
↓ 9 callersMethodreset
Resets/clears/creates post scanning data in a stats set
globalvars.py:279
↓ 9 callersMethodstage
(self, name, site, post_id, data=None)
flovis.py:70
↓ 9 callersFunctionstrip_urls_and_tags
(s)
findspam.py:1827
↓ 8 callersMethoddump
(cls)
datahandling.py:740
↓ 8 callersFunctiononly_blacklists_changed
(diff)
helpers.py:311
↓ 8 callersFunctionredact_passwords
(value)
helpers.py:172
↓ 8 callersMethodreload_blacklists
(cls)
findspam.py:614
↓ 7 callersFunctiondns_query
(label, qtype)
findspam.py:1394
↓ 7 callersFunctionget_report_data
(message)
chatcommunicate.py:472
↓ 7 callersFunctionget_se_api_url_for_route
(route)
helpers.py:531
↓ 7 callersFunctionhandle_spam
(post, reasons, why)
spamhandling.py:107
↓ 7 callersFunctionis_code_privileged
(site, user_id)
datahandling.py:240
↓ 7 callersMethodlater
(cls, func, *args, after=None, **kwargs)
tasks.py:26
↓ 7 callersFunctionnormalize
(number)
phone_numbers.py:88
↓ 7 callersFunctionregex_compile_no_cache
(regex_text, flags=0, ignore_unused=False, **kwargs)
helpers.py:489
↓ 7 callersFunctionremove_pickle
(path)
datahandling.py:97
↓ 7 callersFunctionsimilar_ratio
(a, b)
findspam.py:1764
↓ 7 callersFunctiontell_rooms
(msg, has, hasnt, notify_site="", report_data=None)
chatcommunicate.py:392
↓ 6 callersFunction_call_process
(execcmd, _ok_code=None, return_data=True, return_tuple=False)
_Git_Windows.py:14
↓ 6 callersMethodfetch
Retrieve a cached value. Will re-generate expired values according to the supplied generator function. :param key: The cache k
metasmoke_cache.py:40
↓ 6 callersMethodfunc
(url, *args, ignore_down=False, ms_ajax_timestamp=0, **kwargs)
metasmoke.py:682
↓ 6 callersFunctionget_pattern_from_content_source
Returns a string containing the raw chat message content, except for the !!/command . :return: A string
chatcommands.py:218
↓ 6 callersFunctionget_user_from_list_command
(cmd: str)
parsing.py:190
↓ 6 callersFunctiongit
(alias_used="git")
chatcommands.py:1273
↓ 6 callersFunctionkeyword_bookend_regex_text
(regex_text)
helpers.py:577
↓ 6 callersMethodload
(cls, s, merge=False)
datahandling.py:776
↓ 6 callersMethodmatch_infos
(matches)
findspam.py:688
↓ 6 callersFunctionminimally_validate_content_source
Raises a CmdException if the msg.content and msg.content_source don't match to the first space (i.e. same command).
chatcommands.py:203
↓ 5 callersFunctionadd_blacklisted_user
(user, message_url, post_url)
datahandling.py:295
↓ 5 callersFunctioncolor
(text, color, attrs=None)
helpers.py:493
↓ 5 callersMethodexists
(self, item)
blacklists.py:448
↓ 5 callersFunctionget_bookended_keyword_regex_text_from_entries
(entries)
helpers.py:581
↓ 5 callersMethodget_origin_or_auth
()
gitmanager.py:99
↓ 5 callersMethodget_remote_diff
()
gitmanager.py:468
↓ 5 callersFunctionget_se_api_default_params_questions_answers_posts_add_site
(site)
helpers.py:525
↓ 5 callersFunctionis_privileged
(user, room)
chatcommunicate.py:485
↓ 5 callersMethodis_up
Query if metasmoke status is up
globalvars.py:376
↓ 5 callersMethodpull_remote
()
gitmanager.py:483
↓ 5 callersFunctionrebuild_str
(s: str)
parsing.py:10
↓ 5 callersFunctionredact_text
(text, redact_str, replace_with)
helpers.py:164
↓ 5 callersFunctionsub_to_unchanged
Applies a regex substitution as many times as is needed to no longer make a change. :param regex: :param replace: :param text: :p
chatcommands.py:294
↓ 5 callersMethodtest_post
(post)
findspam.py:638
↓ 5 callersFunctionwrap_watch
(pattern, force=False)
test/test_chatcommands.py:293
↓ 5 callersFunctionyaml_validate_existing
(filename, cls)
test/test_blacklists.py:143
↓ 4 callersMethod_parse
(self, keep_disabled=False)
blacklists.py:178
↓ 4 callersMethod_update_a_blacklist_dual_rule
(rule_list, regex_text_generator, entries)
findspam.py:591
↓ 4 callersMethodacquire_site_processing_lock
(self, site, thread_stats)
bodyfetcher.py:255
↓ 4 callersMethodadd_call_to_metasmoke_queue
(method_name, ms_ajax_timestamp, data)
metasmoke.py:328
↓ 4 callersFunctionadd_whitelisted_user
(user)
datahandling.py:288
↓ 4 callersFunctioncreate_multiple_rules
(*args, rule_quantity=1, rule_id=None, **kwargs)
findspam.py:778
↓ 4 callersMethoddelete
Delete a cached value. :param key: The cache key to delete. :returns: None
metasmoke_cache.py:143
↓ 4 callersMethodeach
(self, with_info=False)
blacklists.py:445
↓ 4 callersFunctionfiles_changed
(diff, file_set)
helpers.py:264
↓ 4 callersFunctionget_candidates
:param test: Text from which to extract number candidates :param also_normalized: Also return the normalized list :return: canidate_list
phone_numbers.py:147
↓ 4 callersMethodget_local_diff
()
gitmanager.py:476
↓ 4 callersMethodinsert
Insert a new value into the cache. Will overwrite existing value, if there is one. :param key: The cache key under which to inser
metasmoke_cache.py:126
↓ 4 callersFunctionlog_exception
(exctype, value, traceback_or_message, and_file=False, *, log_level=None)
helpers.py:236
↓ 4 callersMethodperiodic
(cls, func, *args, interval=None, **kwargs)
tasks.py:33
↓ 4 callersFunctionpost_hosts
Return list of hostnames from the post_links() output. With check_tld=True, check if the links have valid TLDs; abandon and return an em
findspam.py:1681
↓ 4 callersMethodrelease_site_processing_lock
(self, site)
bodyfetcher.py:280
↓ 4 callersFunctionsend_reply_if_not_blank
(room_ident, reply_to_id, message)
chatcommunicate.py:319
↓ 4 callersMethodsubscribe
(self, post_url=None, hostname=None, site_id=None, question_id=None, timeout=DEFAULT_TIMEOUT
editwatcher.py:104
↓ 4 callersFunctionto_metasmoke_link
(post_url: str, protocol: bool = True)
parsing.py:75
↓ 4 callersFunctionurl_to_shortlink
(url: str)
parsing.py:218
↓ 3 callersMethod_init_websocket
(self)
flovis.py:23
↓ 3 callersFunction_save_problem_pickle
(path)
datahandling.py:50
↓ 3 callersMethodadd
Add post scanning data
globalvars.py:218
↓ 3 callersFunctionadd_to_global_bodyfetcher_queue_in_new_thread
(hostname, question_id, should_check_site=False, source=None)
helpers.py:436
↓ 3 callersFunctionapi_parameter_from_link
(link: str)
parsing.py:44
↓ 3 callersFunctionapply_timestamps_to_entry_from_post_and_time_if_newer
(post, scanned_entry)
recently_scanned_posts.py:48
↓ 3 callersFunctioncheck_if_spam_json
(json_data)
spamhandling.py:95
↓ 3 callersFunctioncheck_set_and_add_matches
(reported_match_type, these_candidates, number_detection_list)
findspam.py:1087
↓ 3 callersFunctioncheck_site_and_get_full_name
(site)
datahandling.py:540
↓ 3 callersFunctionchunk_list
Split a list into chunks.
helpers.py:409
↓ 3 callersFunctionclear_in_process_if_more_than_limit_alpha
()
phone_numbers.py:200
next →1–100 of 744, ranked by callers