<commit_before>#!/bin/bash
# Copyright (c) <NAME>, <NAME> and <NAME>, 2014.
# This script first checks if certain folders and files exist. It first builds kivy and then the whole app (after kivy is set) because of some error with binaries.
# The main and build functions should be reviewed first.

# Load variables
source buildconfig.conf

while getopts ":p:a:" opt; do
	case $opt in
		p)
			PY4APATH=$OPTARG
			;;
		a)
			APPNAME=$OPTARG
			;;
	esac
done

if [ "X$PY4APATH" == "X" ]; then
	echo -e "${yellow}༼ ▀̿̿Ĺ̯̿̿▀̿ ̿ ༽_•︻̷̿┻̿═━一༼ຈل͜ຈ༽ give the path of python-for-android using the -p flag or the donger dies${NC}"
	exit 1
fi

function checkDirectoryExist() {
	# If the specified app folder does not exist, we throw an error.
	if [ ! -e "${CURRENTFOLDERPATH}/${APPNAME}/" ]; then
		# Throw an error since folders are missing
		echo -e "${red}You need to have a folder ${CURRENTFOLDERPATH}, aborting.${NC}"
		exit 1
	fi
}

function generateFolders() {<commit_msg>Added a check for the appname flag<commit_after>#!/bin/bash
# Copyright (c) <NAME>, <NAME> and <NAME>, 2014.
# This script first checks if certain folders and files exist. It first builds kivy and then the whole app (after kivy is set) because of some error with binaries.
# The main and build functions should be reviewed first.

# Load variables
source buildconfig.conf

while getopts ":p:a:" opt; do
	case $opt in
		p)
			PY4APATH=$OPTARG
			;;
		a)
			APPNAME=$OPTARG
			;;
	esac
done

if [ "X$PY4APATH" == "X" ]; then
	echo -e "${yellow}༼ ▀̿̿Ĺ̯̿̿▀̿ ̿ ༽_•︻̷̿┻̿═━一༼ຈل͜ຈ༽ give the path of python-for-android using the -p flag or the donger dies${NC}"
	exit 1
fi

if [ "X$APPNAME" == "X" ]; then
	echo -e "${yellow}༼ ▀̿̿Ĺ̯̿̿▀̿ ̿ ༽_•︻̷̿┻̿═━一༼ຈل͜ຈ༽ give the appname using the -a flag or the donger dies${NC}"
	exit 1
fi

function checkDirectoryExist() {
	# If the specified app folder does not exist, we throw an error.
	if [ ! -e "${CURRENTFOLDERPATH}/${APPNAME}/" ]; then
		# Throw an error since folders are missing
		echo -e "${red}You need to have a folder ${CURRENTFOLDERPATH}, aborting.${NC}"
		exit 1
	fi
}

function generateFolders() {
{'fraction_non_alphanumeric': 0.14218009478672985, 'fraction_numerical': 0.008056872037914692, 'mean_word_length': 3.8752886836027716, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 9, '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': '7257592', 'n_tokens_mistral': 889, 'n_tokens_neox': 839, 'n_words': 290}