<commit_before>from fabric.api import local,run
import os
from os import path

#Add settings module so fab file can see it
os.environ['DJANGO_SETTINGS_MODULE'] = "adl_lrs.settings"
from django.conf import settings

adldir = settings.MEDIA_ROOT
actor_profile = 'actor_profile'
activity_profile = 'activity_profile'
activity_state = 'activity_state'

INSTALL_STEPS = ['yes | sudo apt-get install libmysqlclient-dev	 python-dev python-mysqldb python-virtualenv',
                 'virtualenv --no-site-packages env',
                 '. env/bin/activate;pip install -r requirements.txt']
def deps_local():
    for step in INSTALL_STEPS:
    	local(step)

    #Create media directories and give them open permissions
	if not os.path.exists(path.join(adldir,activity_profile)):
		os.makedirs(path.join(adldir,activity_profile))
		os.chmod(path.join(adldir,activity_profile), 0777)

	if not os.path.exists(path.join(adldir,activity_state)):
		os.makedirs(path.join(adldir,activity_state))
		os.chmod(path.join(adldir,activity_state), 0777)

	if not os.path.exists(path.join(adldir,actor_profile)):
		os.makedirs(path.join(adldir,actor_profile))
		os.chmod(path.join(adldir,actor_profile), 0777)

def deps_remote():
    for step in INSTALL_STEPS:
    	run(step)	<commit_msg>Update fabfile.py<commit_after>from fabric.api import local,run
import os
from os import path

#Add settings module so fab file can see it
os.environ['DJANGO_SETTINGS_MODULE'] = "adl_lrs.settings"
from django.conf import settings

adldir = settings.MEDIA_ROOT
actor_profile = 'actor_profile'
activity_profile = 'activity_profile'
activity_state = 'activity_state'

INSTALL_STEPS = ['yes | sudo apt-get install python-setuptools libmysqlclient-dev python-dev python-mysqldb python-libxml2 python-libxslt1 libxml2-dev libxslt1-dev',
                 'sudo easy_install pip',
                 'pip install -r requirements.txt']
def deps_local():
    for step in INSTALL_STEPS:
    	local(step)

def create_dirs():
    #Create media directories and give them open permissions
    if not os.path.exists(path.join(adldir,activity_profile)):
	os.makedirs(path.join(adldir,activity_profile))
	os.chmod(path.join(adldir,activity_profile), 0777)

    if not os.path.exists(path.join(adldir,activity_state)):
	os.makedirs(path.join(adldir,activity_state))
	os.chmod(path.join(adldir,activity_state), 0777)

    if not os.path.exists(path.join(adldir,actor_profile)):
	os.makedirs(path.join(adldir,actor_profile))
	os.chmod(path.join(adldir,actor_profile), 0777)

def deps_remote():
    for step in INSTALL_STEPS:
    	run(step)	
{'fraction_non_alphanumeric': 0.10758513931888544, 'fraction_numerical': 0.010835913312693499, 'mean_word_length': 4.888382687927107, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6216302', 'n_tokens_mistral': 935, 'n_tokens_neox': 890, 'n_words': 185}