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

from genes.posix.traits import only_posix
from genes.process.commands import run


@only_posix()
def chgrp(path, group):
    run(['chgrp', group, path])


@only_posix()
def chown(path, user):
    run(['chown', user, path])


@only_posix()
def groupadd(*args):
    run(['groupadd'] + list(*args))


@only_posix()
def mkdir(path, mode=None):
    if mode:
        run(['mkdir', '-m', mode, path])
    else:
        run(['mkdir', path])


@only_posix()
def useradd(*args):
    # FIXME: this is a bad way to do things
    # FIXME: sigh. this is going to be a pain to make it idempotent<commit_msg>Add link to gnu coreutils<commit_after>#!/usr/bin/env python

from genes.posix.traits import only_posix
from genes.process.commands import run


@only_posix()
def chgrp(path, group):
    run(['chgrp', group, path])


@only_posix()
def chown(path, user):
    run(['chown', user, path])


@only_posix()
def groupadd(*args):
    run(['groupadd'] + list(*args))


@only_posix()
def ln(*args):
    run(['ln'] + list(*args))


@only_posix()
def mkdir(path, mode=None):
    if mode:
        run(['mkdir', '-m', mode, path])
    else:
        run(['mkdir', path])


@only_posix()
def useradd(*args):
    # FIXME: this is a bad way to do things
    # FIXME: sigh. this is going to be a pain to make it idempotent
{'fraction_non_alphanumeric': 0.16279069767441862, 'fraction_numerical': 0.0, 'mean_word_length': 3.7137809187279154, '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': '4416821', 'n_tokens_mistral': 492, 'n_tokens_neox': 477, 'n_words': 142}