<commit_before>hdo-budget
==========

A simple application that loads the Norwegian state budget (and its alternatives) as CSVs and display them. It can also be used to compare budgets.

Setup
-----

The application is a [node.js](http://nodejs.org/) project, and uses [npm](https://npmjs.org/) to manage its backend components and [Bower](http://bower.io/) for its frontend components. In addition it uses [Grunt](http://gruntjs.com/) to as a task runner. In order to use these with the commands described below, you need to install them globally (but grunt and bower is also available locally in the `node_modules` folder).

	// install node.js from http://nodejs.org/
	npm install -g bower
	npm install -g grunt

Components required to run the application are installed with the following:

	npm install
	bower install

To run the webserver:

	grunt

To run the tests:

	grunt test

To compile less:

	grunt less

To autocompile less upon saving files:

	grunt watch

Models
------

The application starts by loading a `data/budgets.json`. The JSON contains a list of budgets, and the application will load the first budget by default.
<commit_msg>A fault in README fixed<commit_after>hdo-budget
==========

A simple application that loads the Norwegian state budget (and its alternatives) as CSVs and display them. It can also be used to compare budgets.

Setup
-----

The application is a [node.js](http://nodejs.org/) project, and uses [npm](https://npmjs.org/) to manage its backend components and [Bower](http://bower.io/) for its frontend components. In addition it uses [Grunt](http://gruntjs.com/) to as a task runner. In order to use these with the commands described below, you need to install them globally (but grunt and bower is also available locally in the `node_modules` folder).

	// install node.js from http://nodejs.org/
	npm install -g bower
	npm install -g grunt-cli

Components required to run the application are installed with the following:

	npm install
	bower install

To run the webserver:

	grunt

To run the tests:

	grunt test

To compile less:

	grunt less

To autocompile less upon saving files:

	grunt watch

Models
------

The application starts by loading a `data/budgets.json`. The JSON contains a list of budgets, and the application will load the first budget by default.

{'fraction_non_alphanumeric': 0.08419689119170984, 'fraction_numerical': 0.0, 'mean_word_length': 3.8270833333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2781441', 'n_tokens_mistral': 668, 'n_tokens_neox': 629, 'n_words': 326}