<commit_before>'''
Created on Feb 15, 2013

@author: Emily, Tyranic-Moron
'''

from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
from GlobalVars import *

import re

class Instantiate(Function):
    Help = 'Responds with a link to the DB torrents'

    def GetResponse(self, message):
        if message.Type != 'PRIVMSG':
            return
        
        match = re.search('^torrent$', message.Command, re.IGNORECASE)
        if not match:
            return
        
        return IRCResponse(ResponseType.Say,
                           #'DB6: http://fugiman.com/DesertBus6.torrent | DB5: http://fugiman.com/De5ertBus.torrent',
                           'Torrent Files: http://static.fugiman.com/ | Magnet Links: http://mgnet.me/.DB6 http://mgnet.me/.DB5',
                           message.ReplyTo)<commit_msg>Add DB7 torrent links to Torrent<commit_after>'''
Created on Feb 15, 2013

@author: Emily, Tyranic-Moron
'''

from IRCMessage import IRCMessage
from IRCResponse import IRCResponse, ResponseType
from Function import Function
from GlobalVars import *

import re

class Instantiate(Function):
    Help = 'Responds with a link to the DB torrents'

    def GetResponse(self, message):
        if message.Type != 'PRIVMSG':
            return
        
        match = re.search('^torrent$', message.Command, re.IGNORECASE)
        if not match:
            return
        
        return IRCResponse(ResponseType.Say,
                           #'DB6: http://fugiman.com/DesertBus6.torrent | DB5: http://fugiman.com/De5ertBus.torrent',
                           'Torrent Files: http://www.laserdino.com/db7.torrent http://static.fugiman.com/ | Magnet Links: http://mgnet.me/.DB7 http://mgnet.me/.DB6 http://mgnet.me/.DB5',
                           message.ReplyTo)
{'fraction_non_alphanumeric': 0.1078590785907859, 'fraction_numerical': 0.014634146341463415, 'mean_word_length': 2.2672566371681415, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2599967', 'n_tokens_mistral': 577, 'n_tokens_neox': 554, 'n_words': 140}