<commit_before>#!/usr/bin/python2

"""imclient.py: Allows users to connect to a specified server and chat."""

__author__ = '<EMAIL> (<NAME>)'

import im
from os import system
from sys import argv
from sys import platform

class IMClient:
    def __init__(self, url):
        self.server = im.IMServerProxy(url)
        self.is_connected = False

    def update(self):
        """Updates the chat."""

        # Fetches the messages.
        messages = filter(lambda key: '_message_' in key, self.server.keys())

        # Clears the screen.
        if platform.startswith('win'):
            system('cls')
        else:
            system('clear')

        # Shows the messages.
        for message in messages:
            # Gets the name of the user.
            name = message[0 : message.find('_')]

            print name + ': ' + self.server[message]

    def send_message(self, message):
        """Sends a message to the server."""
<commit_msg>Changed some imports<commit_after>#!/usr/bin/python2

"""imclient.py: Allows users to connect to a specified server and chat."""

__author__ = '<EMAIL> (<NAME>)'

from imserverproxy import IMServerProxy
from os import system
from sys import argv
from sys import platform

class IMClient:
    def __init__(self, url):
        self.server = IMServerProxy(url)
        self.is_connected = False

    def update(self):
        """Updates the chat."""

        # Fetches the messages.
        messages = filter(lambda key: '_message_' in key, self.server.keys())

        # Clears the screen.
        if platform.startswith('win'):
            system('cls')
        else:
            system('clear')

        # Shows the messages.
        for message in messages:
            # Gets the name of the user.
            name = message[0 : message.find('_')]

            print name + ': ' + self.server[message]

    def send_message(self, message):
        """Sends a message to the server."""

{'fraction_non_alphanumeric': 0.11391752577319587, 'fraction_numerical': 0.002061855670103093, 'mean_word_length': 2.3010204081632653, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '649650', 'n_tokens_mistral': 557, 'n_tokens_neox': 540, 'n_words': 182}