Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Charcoal-SE/SmokeDetector
/ functions
Functions
744 in github.com/Charcoal-SE/SmokeDetector
⨍
Functions
744
◇
Types & classes
45
↳
Endpoints
21
↓ 166 callers
Function
log
(log_level, *args, and_file=False, no_exception=False)
helpers.py:186
↓ 102 callers
Method
get
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 callers
Function
create_rule
(reason, regex=None, func=None, *, all=True, sites=[], title=True, body=True, body_summary=Fal
findspam.py:715
↓ 29 callers
Method
do
(cls, func, *args, **kwargs)
tasks.py:19
↓ 29 callers
Method
get
Get post scanning statistics from a stat set, including derived data, start and lock timestamps.
globalvars.py:250
↓ 26 callers
Method
add
(cls, time, classname, message, traceback)
helpers.py:111
↓ 25 callers
Function
exit_mode
(*args, code=0)
helpers.py:28
↓ 25 callers
Method
parse
(self)
blacklists.py:436
↓ 24 callers
Function
dump_pickle
(path, item, protocol=pickle.HIGHEST_PROTOCOL)
datahandling.py:88
↓ 24 callers
Function
log_current_exception
(and_file=False, log_level=None)
helpers.py:247
↓ 20 callers
Function
load_pickle
(path, encoding='utf-8')
datahandling.py:63
↓ 20 callers
Method
match
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 callers
Function
has_pickle
(path)
datahandling.py:109
↓ 18 callers
Method
remove
(self, item)
blacklists.py:442
↓ 17 callers
Method
send
(self, url, msg)
classes/feedback.py:20
↓ 14 callers
Function
fetch_post_id_and_site_from_url
(url: Optional[str])
parsing.py:104
↓ 14 callers
Function
tell_rooms_with
(prop, msg, notify_site="", report_data=None)
chatcommunicate.py:384
↓ 13 callers
Method
add
(self, item)
blacklists.py:439
↓ 12 callers
Function
check_if_spam
(post, dont_ignore_for=None)
spamhandling.py:47
↓ 12 callers
Method
is_down
Query if metasmoke status is down
globalvars.py:383
↓ 10 callers
Method
copy
Copies the contents of a stat set to another stat set key
globalvars.py:303
↓ 10 callers
Method
reload
(cls)
globalvars.py:483
↓ 10 callers
Method
update
(*args, **kwargs)
_Git_Windows.py:57
↓ 9 callers
Function
get_user_from_url
(url: Optional[str])
parsing.py:18
↓ 9 callers
Function
log
(message)
nocrash.py:51
↓ 9 callers
Method
reset
Resets/clears/creates post scanning data in a stats set
globalvars.py:279
↓ 9 callers
Method
stage
(self, name, site, post_id, data=None)
flovis.py:70
↓ 9 callers
Function
strip_urls_and_tags
(s)
findspam.py:1827
↓ 8 callers
Method
dump
(cls)
datahandling.py:740
↓ 8 callers
Function
only_blacklists_changed
(diff)
helpers.py:311
↓ 8 callers
Function
redact_passwords
(value)
helpers.py:172
↓ 8 callers
Method
reload_blacklists
(cls)
findspam.py:614
↓ 7 callers
Function
dns_query
(label, qtype)
findspam.py:1394
↓ 7 callers
Function
get_report_data
(message)
chatcommunicate.py:472
↓ 7 callers
Function
get_se_api_url_for_route
(route)
helpers.py:531
↓ 7 callers
Function
handle_spam
(post, reasons, why)
spamhandling.py:107
↓ 7 callers
Function
is_code_privileged
(site, user_id)
datahandling.py:240
↓ 7 callers
Method
later
(cls, func, *args, after=None, **kwargs)
tasks.py:26
↓ 7 callers
Function
normalize
(number)
phone_numbers.py:88
↓ 7 callers
Function
regex_compile_no_cache
(regex_text, flags=0, ignore_unused=False, **kwargs)
helpers.py:489
↓ 7 callers
Function
remove_pickle
(path)
datahandling.py:97
↓ 7 callers
Function
similar_ratio
(a, b)
findspam.py:1764
↓ 7 callers
Function
tell_rooms
(msg, has, hasnt, notify_site="", report_data=None)
chatcommunicate.py:392
↓ 6 callers
Function
_call_process
(execcmd, _ok_code=None, return_data=True, return_tuple=False)
_Git_Windows.py:14
↓ 6 callers
Method
fetch
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 callers
Method
func
(url, *args, ignore_down=False, ms_ajax_timestamp=0, **kwargs)
metasmoke.py:682
↓ 6 callers
Function
get_pattern_from_content_source
Returns a string containing the raw chat message content, except for the !!/command . :return: A string
chatcommands.py:218
↓ 6 callers
Function
get_user_from_list_command
(cmd: str)
parsing.py:190
↓ 6 callers
Function
git
(alias_used="git")
chatcommands.py:1273
↓ 6 callers
Function
keyword_bookend_regex_text
(regex_text)
helpers.py:577
↓ 6 callers
Method
load
(cls, s, merge=False)
datahandling.py:776
↓ 6 callers
Method
match_infos
(matches)
findspam.py:688
↓ 6 callers
Function
minimally_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 callers
Function
add_blacklisted_user
(user, message_url, post_url)
datahandling.py:295
↓ 5 callers
Function
color
(text, color, attrs=None)
helpers.py:493
↓ 5 callers
Method
exists
(self, item)
blacklists.py:448
↓ 5 callers
Function
get_bookended_keyword_regex_text_from_entries
(entries)
helpers.py:581
↓ 5 callers
Method
get_origin_or_auth
()
gitmanager.py:99
↓ 5 callers
Method
get_remote_diff
()
gitmanager.py:468
↓ 5 callers
Function
get_se_api_default_params_questions_answers_posts_add_site
(site)
helpers.py:525
↓ 5 callers
Function
is_privileged
(user, room)
chatcommunicate.py:485
↓ 5 callers
Method
is_up
Query if metasmoke status is up
globalvars.py:376
↓ 5 callers
Method
pull_remote
()
gitmanager.py:483
↓ 5 callers
Function
rebuild_str
(s: str)
parsing.py:10
↓ 5 callers
Function
redact_text
(text, redact_str, replace_with)
helpers.py:164
↓ 5 callers
Function
sub_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 callers
Method
test_post
(post)
findspam.py:638
↓ 5 callers
Function
wrap_watch
(pattern, force=False)
test/test_chatcommands.py:293
↓ 5 callers
Function
yaml_validate_existing
(filename, cls)
test/test_blacklists.py:143
↓ 4 callers
Method
_parse
(self, keep_disabled=False)
blacklists.py:178
↓ 4 callers
Method
_update_a_blacklist_dual_rule
(rule_list, regex_text_generator, entries)
findspam.py:591
↓ 4 callers
Method
acquire_site_processing_lock
(self, site, thread_stats)
bodyfetcher.py:255
↓ 4 callers
Method
add_call_to_metasmoke_queue
(method_name, ms_ajax_timestamp, data)
metasmoke.py:328
↓ 4 callers
Function
add_whitelisted_user
(user)
datahandling.py:288
↓ 4 callers
Function
create_multiple_rules
(*args, rule_quantity=1, rule_id=None, **kwargs)
findspam.py:778
↓ 4 callers
Method
delete
Delete a cached value. :param key: The cache key to delete. :returns: None
metasmoke_cache.py:143
↓ 4 callers
Method
each
(self, with_info=False)
blacklists.py:445
↓ 4 callers
Function
files_changed
(diff, file_set)
helpers.py:264
↓ 4 callers
Function
get_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 callers
Method
get_local_diff
()
gitmanager.py:476
↓ 4 callers
Method
insert
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 callers
Function
log_exception
(exctype, value, traceback_or_message, and_file=False, *, log_level=None)
helpers.py:236
↓ 4 callers
Method
periodic
(cls, func, *args, interval=None, **kwargs)
tasks.py:33
↓ 4 callers
Function
post_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 callers
Method
release_site_processing_lock
(self, site)
bodyfetcher.py:280
↓ 4 callers
Function
send_reply_if_not_blank
(room_ident, reply_to_id, message)
chatcommunicate.py:319
↓ 4 callers
Method
subscribe
(self, post_url=None, hostname=None, site_id=None, question_id=None, timeout=DEFAULT_TIMEOUT
editwatcher.py:104
↓ 4 callers
Function
to_metasmoke_link
(post_url: str, protocol: bool = True)
parsing.py:75
↓ 4 callers
Function
url_to_shortlink
(url: str)
parsing.py:218
↓ 3 callers
Method
_init_websocket
(self)
flovis.py:23
↓ 3 callers
Function
_save_problem_pickle
(path)
datahandling.py:50
↓ 3 callers
Method
add
Add post scanning data
globalvars.py:218
↓ 3 callers
Function
add_to_global_bodyfetcher_queue_in_new_thread
(hostname, question_id, should_check_site=False, source=None)
helpers.py:436
↓ 3 callers
Function
api_parameter_from_link
(link: str)
parsing.py:44
↓ 3 callers
Function
apply_timestamps_to_entry_from_post_and_time_if_newer
(post, scanned_entry)
recently_scanned_posts.py:48
↓ 3 callers
Function
check_if_spam_json
(json_data)
spamhandling.py:95
↓ 3 callers
Function
check_set_and_add_matches
(reported_match_type, these_candidates, number_detection_list)
findspam.py:1087
↓ 3 callers
Function
check_site_and_get_full_name
(site)
datahandling.py:540
↓ 3 callers
Function
chunk_list
Split a list into chunks.
helpers.py:409
↓ 3 callers
Function
clear_in_process_if_more_than_limit_alpha
()
phone_numbers.py:200
next →
1–100 of 744, ranked by callers