MCPcopy Create free account

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

Endpoints21 in github.com/Charcoal-SE/SmokeDetector

Routebody_starts_with_title
create_rule("body starts with title and ends in URL", whole_post=True, answer=False, sites=["code
findspam.py:None
Routecharacter_utilization_ratio
create_rule("single character over used in post", max_rep=22, body_summary=True, all=False, sites
findspam.py:None
Routeis_offensive_post
create_rule("offensive {} detected", body_summary=True, max_rep=101, max_score=2, stripcodeblocks=True,
findspam.py:None
Routemostly_img
create_rule("post is mostly images", title=False, max_rep=201, max_score=2)
findspam.py:None
Routetest_allspam
patch("chatcommands.handle_spam")
test/test_chatcommands.py:None
Routetest_approve
rewrap_for_monkeypatch_argument()
test/test_chatcommands.py:None
Routetest_bisect
pytest.mark.parametrize("command, test_text, expected_result", [ # The expected_result can have the follow
test/test_chatcommands.py:None
Routetest_check_if_spam
pytest.mark.parametrize("title, body, username, site, match", [ ('18669786819 gmail customer service numbe
test/test_spamhandling.py:None
Routetest_check_if_spam_json
pytest.mark.parametrize("data, match", [ (test_data_inputs[0], False) ])
test/test_spamhandling.py:None
Routetest_findspam
pytest.mark.parametrize("title, body, username, site, body_is_summary, is_answer, expected_spam", [ # Thes
test/test_findspam.py:None
Routetest_init
patch("chatcommunicate.threading.Thread")
test/test_chatcommunicate.py:None
Routetest_message_sender
patch("chatcommunicate._pickle_run")
test/test_chatcommunicate.py:None
Routetest_on_msg
patch("chatcommunicate._msg_queue.put")
test/test_chatcommunicate.py:None
Routetest_parsing
pytest.mark.parametrize("input_data, parse_method, expected", [ ('Testing * escaping of ] special [ charac
test/test_parsing.py:None
Routetest_pickle_rick
patch("datahandling.dump_pickle")
test/test_chatcommunicate.py:None
Routetest_reject
rewrap_for_monkeypatch_argument()
test/test_chatcommands.py:None
Routetest_report
patch("chatcommands.handle_spam")
test/test_chatcommands.py:None
Routetest_to_metasmoke_link
pytest.mark.parametrize('link, expected', [ ('https://stackoverflow.com/zzzz/1234567', 'https://m.erwaysof
test/test_parsing.py:None
Routetest_watch
rewrap_for_monkeypatch_argument()
test/test_chatcommands.py:None
Routeturkey2
create_rule("himalayan pink salt detected", whole_post=True, disabled=True)
findspam.py:None
Routeusername_similar_website
create_rule("username similar to website in {}", title=False, body_summary=True, question=False, whole_post=Tr
findspam.py:None