<commit_before>#!/usr/bin/env python
"""
ping.py - jenni Ping Module
Author: <NAME>, inamidst.com
About: http://inamidst.com/phenny/
"""

import re

def netsplit(jenni, input):
    network = jenni.config.host.lstrip('irc')#A fair guess, I'd say.
    server = '\S+?'+network
    
    if not re.match(server+' '+server, input.group(1)): return
    jenni.msg('#Embo', 'Yarg, netsplit!')
netsplit.event = 'QUIT'
netsplit.rule = '(.*)'

if __name__ == '__main__': 
    print __doc__.strip()<commit_msg>Fix header, update args to netsplit module<commit_after>#!/usr/bin/env python
"""
netsplit.py - Message the debug channel on a netsplit.
Author: <NAME> - embolalia.net

http://willie.dftba.net
"""

import re

def netsplit(willie, trigger):
    network = willie.config.host.lstrip('irc')#A fair guess, I'd say.
    server = '\S+?'+network
    
    if not re.match(server+' '+server, trigger.group(1)): return
    willie.debug('Netsplit', 'Yarg, netsplit!', 'warning')
netsplit.event = 'QUIT'
netsplit.rule = '(.*)'

if __name__ == '__main__': 
    print __doc__.strip()
{'fraction_non_alphanumeric': 0.1784037558685446, 'fraction_numerical': 0.0018779342723004694, 'mean_word_length': 3.935185185185185, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7617086', 'n_tokens_mistral': 417, 'n_tokens_neox': 391, 'n_words': 91}