<commit_before>acme-site
=========

###Overarching user interface for the acme project
**init**

    git clone <EMAIL>:acme-oui/acme-web-fe.git
    cd acme-web-fe
    sudo pip install virtualenv
    virtualenv env
    source env/bin/activate
    pip install -r requirements.txt

**local settings**
    
    vim local_settings.py

**add this**

    import os.path

    STATICFILES_DIRS = (
        '/path/to/acme-web-fe/acme_site/static/',
    )

    DATABASES = {
      'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': os.path.join(os.path.abspath("."), 'db.sqlite3'),
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
      }
    }

    #Get a key from the google registration page
    RECAPTCHA_PUBLIC_KEY = ''
    RECAPTCHA_PRIVATE_KEY = ''

**static files**

    mkdir acme_site/static
    python manage.py collectstatic

**Velo API**

    Open VeloAPI.py and change /Users/baldwin32/projects/acme-web-fe/acme_site/static/java/VeloAPI.jar to the location of your .jar file
    source env/bin/activate
    git clone https://github.com/originell/jpype.git
    cd jpype
    python setup.py install 

**setup db**

    python manage.py syncdb
    
**setup admin**

    yes
    admin
    <EMAIL>
    password
    password

**update db**

    python mange.py migrate

**running**

    python manage.py runserver 

If you have turned on websharing on your mac you can display it using your machines url, eg 

    python manage.py runserver boxname.domain:8000

then from your browser you can view the site at 

* users front end
  * *boxname.domain*:8000/acme
  * 127.0.0.1:8000/acme<commit_msg>Updates jpype install instructions<commit_after>acme-site
=========

###Overarching user interface for the acme project
**init**

    git clone <EMAIL>:acme-oui/acme-web-fe.git
    cd acme-web-fe
    sudo pip install virtualenv
    virtualenv env
    source env/bin/activate
    pip install -r requirements.txt

**local settings**
    
    vim local_settings.py

**add this**

    import os.path

    STATICFILES_DIRS = (
        '/path/to/acme-web-fe/acme_site/static/',
    )

    DATABASES = {
      'default': {
        'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
        'NAME': os.path.join(os.path.abspath("."), 'db.sqlite3'),
        'USER': '',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
      }
    }

    #Get a key from the google registration page
    RECAPTCHA_PUBLIC_KEY = ''
    RECAPTCHA_PRIVATE_KEY = ''

**static files**

    mkdir acme_site/static
    python manage.py collectstatic

**Velo API**

    Open VeloAPI.py and change /Users/baldwin32/projects/acme-web-fe/acme_site/static/java/VeloAPI.jar to the location of your .jar file
    source env/bin/activate
    git clone https://github.com/originell/jpype.git
    cd jpype
    python setup.py install 
    cd ..
    rm -rf jpype
    
    _Note_
    If the Jpype install fails because of missing Python.h, you're missing the python dev tools. 
    Simply: sudo apt-get install python-dev

**setup db**

    python manage.py syncdb
    
**setup admin**

    yes
    admin
    <EMAIL>
    password
    password

**update db**

    python mange.py migrate

**running**

    python manage.py runserver 

If you have turned on websharing on your mac you can display it using your machines url, eg 

    python manage.py runserver boxname.domain:8000

then from your browser you can view the site at 

* users front end
  * *boxname.domain*:8000/acme
  * 127.0.0.1:8000/acme
{'fraction_non_alphanumeric': 0.11716171617161716, 'fraction_numerical': 0.013201320132013201, 'mean_word_length': 2.611717974180735, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '5842892', 'n_tokens_mistral': 1293, 'n_tokens_neox': 1204, 'n_words': 331}