<commit_before>#!/usr/bin/env python2

# Two arguments, channel and message.
# EG: "nudge.py #adminchannel ADMINHELP, people are killing me!"

import sys,pickle,socket

def pack():
    ip = sys.argv[1]
    try:
        data = sys.argv[2:] #The rest of the arguments is data
    except:
        data = "NO DATA SPECIFIED"
    dictionary = {"ip":ip,"data":data}
    pickled = pickle.dumps(dictionary)
    nudge(pickled)
def nudge(data):
       HOST = "IRCBOT IP HERE"
       PORT = 45678
       size = 1024
       s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
       s.connect((HOST,PORT))
       s.send(data)
       s.close()
    
if __name__ == "__main__" and len(sys.argv) > 1: # If not imported and more than one argument
    pack()
    <commit_msg>Made ircbot_message.py use a password.<commit_after>#!/usr/bin/env python2

# Two arguments, channel and message.
# EG: "ircbot_message.py #adminchannel ADMINHELP, people are killing me!"

import sys,pickle,socket

def pack():
    ip = sys.argv[1]
    try:
        data = sys.argv[2:] #The rest of the arguments is data
    except:
        data = "NO DATA SPECIFIED"
    dictionary = {"ip":ip,"data":["PASSWORD"] + data}
    pickled = pickle.dumps(dictionary)
    nudge(pickled)
def nudge(data):
    HOST = "IRCBOT IP"
    PORT = 45678
    size = 1024
    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    s.connect((HOST,PORT))
    s.send(data)
    s.close()

if __name__ == "__main__" and len(sys.argv) > 1: # If not imported and more than one argument
    pack()
{'fraction_non_alphanumeric': 0.1272845953002611, 'fraction_numerical': 0.016971279373368148, 'mean_word_length': 2.9307692307692306, 'pattern_counts': {'":': 4, '<': 3, '<?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': '2328300', 'n_tokens_mistral': 561, 'n_tokens_neox': 526, 'n_words': 148}