<commit_before>#!/bin/bash
#
# Creates a new Django app.  Note that this command can be run on top of
# existing apps to create any potentially missing directories.
#

DIR="$( builtin cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
source $DIR/load_config.sh

if [ $# -lt 1 ]; then
	echo "Usage: $0 <app_name>"
	exit 1
fi

builtin cd $SRC_DIR
if [ ! -d $1 ]; then
	$VENV_DIR/bin/python manage.py startapp $1
else
	echo "App $1 already exists"
fi

# set up the directory for management commands
mkdir -p $1/management/commands
touch $1/management/__init__.py
touch $1/management/commands/__init__.py
ln -sf management/commands $1/cmd<commit_msg>working on box task<commit_after>#!/bin/bash
#
# Creates a new Django app.  Note that this command can be run on top of
# existing apps to create any potentially missing directories.
#

DIR="$( builtin cd "$( dirname "$( readlink -f "${BASH_SOURCE[0]}" )" )" && pwd )"
source $DIR/load_config.sh

if [ $# -lt 1 ]; then
	echo "Usage: $0 <app_name>"
	exit 1
fi

builtin cd $SRC_DIR
if [ ! -d $1 ]; then
	$VENV_DIR/bin/python manage.py startapp $1
else
	echo "App $1 already exists"
fi

# set up migrations
mkdir -p $1/migrations
touch $1/migrations/__init__.py

# set up the directory for management commands
mkdir -p $1/management/commands
touch $1/management/__init__.py
touch $1/management/commands/__init__.py
ln -sf management/commands $1/cmd
{'fraction_non_alphanumeric': 0.12926136363636365, 'fraction_numerical': 0.017045454545454544, 'mean_word_length': 4.01423487544484, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3700890', 'n_tokens_mistral': 502, 'n_tokens_neox': 479, 'n_words': 172}