<commit_before># Django Aliases

schemamigration() {
    # Django South schemamigration
    ./manage.py schemamigration $@ --auto
}

migrate() {
    # Django South migrate
    ./manage.py migrate $@
}

_runserver() {
    production="${1}"

    if "${production}" 2> /dev/null; then
        export PRODUCTION=1
    else
        export PRODUCTION=0
    fi

    python manage.py runserver 0.0.0.0:8000
}

alias dbshell="python manage.py dbshell"
alias devrunserver="_runserver false"
alias runserver="_runserver true"
alias shell="python manage.py shell"
alias sqlall="python manage.py sqlall"
alias startapp="python manage.py startapp"
alias syncdb="python manage.py syncdb --no-initial-data"
alias validate="python manage.py validate"<commit_msg>Update alias shell to use debugsqlshell when available<commit_after># Django Aliases

schemamigration() {
    # Django South schemamigration
    ./manage.py schemamigration $@ --auto
}

migrate() {
    # Django South migrate
    ./manage.py migrate $@
}

_runserver() {
    production="${1}"

    if "${production}" 2> /dev/null; then
        export PRODUCTION=1
    else
        export PRODUCTION=0
    fi

    python manage.py runserver 0.0.0.0:8000
}

alias dbshell="python manage.py dbshell"
alias devrunserver="_runserver false"
alias runserver="_runserver true"

shell() {
    python manage.py debugsqlshell 2> /dev/null
    if [ ! $? -eq 0 ]; then
        python manage.py shell
    fi
}

alias sqlall="python manage.py sqlall"
alias startapp="python manage.py startapp"
alias syncdb="python manage.py syncdb --no-initial-data"
alias validate="python manage.py validate"
{'fraction_non_alphanumeric': 0.11344019728729964, 'fraction_numerical': 0.016029593094944512, 'mean_word_length': 3.5083333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '3053338', 'n_tokens_mistral': 539, 'n_tokens_neox': 502, 'n_words': 144}