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

if [ -z "$COMPOSER_HOME" ]; then
    export COMPOSER_HOME="$HOME/.composer"
fi

pathmunge "$COMPOSER_HOME/vendor/bin"
pathmunge ./vendor/bin

function composer() {
    tty=
    tty -s && tty=--tty
    docker run $tty \
        --interactive \
        --rm \
        --user $(id -u):$(id -g) \
        --volume /etc/passwd:/etc/passwd:ro \
        --volume /etc/group:/etc/group:ro \
        --volume $COMPOSER_HOME/.composer:/tmp \
        --volume $(pwd):/app \
        composer "$@"
}

function homestead() {
    ( cd ~/Homestead && vagrant $* )
}<commit_msg>update composer docker image via composer self-update<commit_after>#!/usr/bin/env bash

if [ -z "$COMPOSER_HOME" ]; then
    export COMPOSER_HOME="$HOME/.composer"
fi

pathmunge "$COMPOSER_HOME/vendor/bin"
pathmunge ./vendor/bin

function composer() {
    if [ "self-update" == "$1" ]; then
        docker pull composer
        return
    fi

    tty=
    tty -s && tty=--tty
    docker run $tty \
        --interactive \
        --rm \
        --user $(id -u):$(id -g) \
        --volume /etc/passwd:/etc/passwd:ro \
        --volume /etc/group:/etc/group:ro \
        --volume $COMPOSER_HOME/.composer:/tmp \
        --volume $(pwd):/app \
        composer "$@"
}

function homestead() {
    ( cd ~/Homestead && vagrant $* )
}
{'fraction_non_alphanumeric': 0.1750943396226415, 'fraction_numerical': 0.0007547169811320754, 'mean_word_length': 1.9730941704035874, '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': '713396', 'n_tokens_mistral': 488, 'n_tokens_neox': 461, 'n_words': 99}