<commit_before>from base_publisher import BasePublisher
from pprint import pprint as pp
from wu_client import WuClient
from shared.path import Path

def get_password(conf):
    password = conf.get("pass", None) or conf.get("password", None)
    if not password:
        print "Password for wubytes:",
        password = raw_input().strip()
    return password

class WubytesPublisher(BasePublisher):
    def __init__(self, conf):
        BasePublisher.__init__(self, conf)

        self.wc = WuClient(conf["client_id"], conf["client_secret"], conf["host"])
        if not self.wc.auth(conf["username"], get_password(conf)):
            exit()

        for key in self.project.project:
            self.wc.new_wu({'data': 0, 'title': key, 'slug': key})

    def publish(self, message):<commit_msg>remove unnecesary extra code in wuclient<commit_after>from base_publisher import BasePublisher
from pprint import pprint as pp
from wu_client import WuClient
from shared.path import Path


class WubytesPublisher(BasePublisher):
    def __init__(self, conf):
        BasePublisher.__init__(self, conf)

        self.wc = WuClient(conf["client_id"], conf["client_secret"], conf["host"])
        if not self.wc.auth(conf["username"], conf["pass"]):
            exit()

        for key in self.project.project:
            self.wc.new_wu({'data': 0, 'title': key, 'slug': key})

    def publish(self, message):
{'fraction_non_alphanumeric': 0.12196861626248216, 'fraction_numerical': 0.0014265335235378032, 'mean_word_length': 3.5551948051948052, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4417064', 'n_tokens_mistral': 434, 'n_tokens_neox': 405, 'n_words': 117}