<commit_before>xci
===

#### Merging the xAPI, Learning Registry and Medbiquitous competency and performance frameworks. Tested with Ubuntu 12.04.3 and Python 2.7.3

## Installation

Software Installation

	sudo apt-get install build-essential python-dev python-virtualenv mongodb git
	sudo easy_install pip
	sudo pip install virtualenv

After you pull down your repo in the directory of your choice, create your virtual environment (don't include it in this project)

	virtualenv env

Setup Mongo (The app uses xci as the name as the database, but you can change that in the app if you wish)
	
	mongo
	use xci
	db.addUser("username", "password")
	db.auth("username", "password")

Install packages (inside of the virtualenv you created first)

	. ./env/bin/activate
	pip install -r requirements.txt

Add index

	mongo xci
	db.competency.ensureIndex({"title": 1})

Run

	python runserver.py

	(If you want to run the mongo shell run: mongo xci)

Note About Common Core
	
	Common Core took down the xml versions of their competencies. The app will try to load the xml 
	if it exists on the file system.

	To do this, download the cc zip (here)[http://www.corestandards.org/wp-content/uploads/ccssi.zip]. Extract and save one level above the project (at the same level as the env folder).
<commit_msg>added way to load cc from file<commit_after>xci
===

#### Merging the xAPI, Learning Registry and Medbiquitous competency and performance frameworks. Tested with Ubuntu 12.04.3 and Python 2.7.3

## Installation

Software Installation

	sudo apt-get install build-essential python-dev python-virtualenv mongodb git
	sudo easy_install pip
	sudo pip install virtualenv

After you pull down your repo in the directory of your choice, create your virtual environment (don't include it in this project)

	virtualenv env

Setup Mongo (The app uses xci as the name as the database, but you can change that in the app if you wish)
	
	mongo
	use xci
	db.addUser("username", "password")
	db.auth("username", "password")

Install packages (inside of the virtualenv you created first)

	. ./env/bin/activate
	pip install -r requirements.txt

Add index

	mongo xci
	db.competency.ensureIndex({"title": 1})

Run

	python runserver.py

	(If you want to run the mongo shell run: mongo xci)

Note About Common Core
	
Common Core took down the xml versions of their competencies. The app will try to load the xml if it exists on the file system.

To do this, download the cc zip (here)[http://www.corestandards.org/wp-content/uploads/ccssi.zip]. Extract and save one level above the project (at the same level as the env folder).

{'fraction_non_alphanumeric': 0.06745879647374473, 'fraction_numerical': 0.006899195093905711, 'mean_word_length': 4.107632093933463, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6357792', 'n_tokens_mistral': 804, 'n_tokens_neox': 738, 'n_words': 362}