<commit_before># -*- coding: utf-8 -*-
import click

from ircb.lib.async import coroutinize
from ircb.storeclient import UserStore


@click.group(name='users')
def user_cli():
    """Manager users"""
    pass


@click.command(name='create')
@click.argument('username')
@click.argument('email')
@click.argument('password', required=False)
@coroutinize
def user_create(username, email, password):
    """Create a user"""
    yield from UserStore.create(dict(
        username=username,
        email=email,
        password=password
    ))


user_cli.add_command(user_create)<commit_msg>Do not save NoneType password for a user during create.<commit_after># -*- coding: utf-8 -*-
import click

from ircb.lib.async import coroutinize
from ircb.storeclient import UserStore


@click.group(name='users')
def user_cli():
    """Manager users"""
    pass


@click.command(name='create')
@click.argument('username')
@click.argument('email')
@click.argument('password', required=False, default='')
@coroutinize
def user_create(username, email, password):
    """Create a user"""
    yield from UserStore.create(dict(
        username=username,
        email=email,
        password=password
    ))


user_cli.add_command(user_create)
{'fraction_non_alphanumeric': 0.13970588235294118, 'fraction_numerical': 0.0016339869281045752, 'mean_word_length': 4.420353982300885, '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': '5853157', 'n_tokens_mistral': 376, 'n_tokens_neox': 372, 'n_words': 87}