<commit_before># Viddy

An application that fetches, analyzes, and displays Divvy usage data.

## Usage

### Prerequsites

* [Leinengen 2](https://github.com/technomancy/leiningen)
* [Posgresql 9.2.1]((http://www.postgresql.org)) (other versions may work)

### Creating the database

This app depends on a Posgresql instance.The schema is defined at
[https://github.com/gensym/viddy/blob/master/resources/ddl/viddy.sql]

Here is one way you can create the database. Before taking this steps,
you should have a running Postgresql instance.:

    createdb viddy
    psql -f resources/ddl/viddy.sql viddy



### Environment variables

This app depends on the environment variable DATABASE_URL being set to
the URL of the running Postgresql instance. For example, my
development database URL  is set to "postgresql://localhost:5432/viddy"

You can also set the PORT environment variable to an open port for the
web application if you do not want to use the default of 8080.

### To run tests

    lein test

### To run the application (web app and data fetcher)

    lein run

### To run just the data fetcher
    
    lein run workerrun

### To run just the web application

    lein run webrun

## License

Copyright © 2013 <NAME>

Distributed under the Eclipse Public License, the same as Clojure.
<commit_msg>Fixed typo<commit_after># Viddy

An application that fetches, analyzes, and displays Divvy usage data.

## Usage

### Prerequsites

* [Leinengen 2](https://github.com/technomancy/leiningen)
* [Posgresql 9.2.1](http://www.postgresql.org) (other versions may work)

### Creating the database

This app depends on a Posgresql instance.The schema is defined at
[https://github.com/gensym/viddy/blob/master/resources/ddl/viddy.sql]

Here is one way you can create the database. Before taking this steps,
you should have a running Postgresql instance.:

    createdb viddy
    psql -f resources/ddl/viddy.sql viddy



### Environment variables

This app depends on the environment variable DATABASE_URL being set to
the URL of the running Postgresql instance. For example, my
development database URL  is set to "postgresql://localhost:5432/viddy"

You can also set the PORT environment variable to an open port for the
web application if you do not want to use the default of 8080.

### To run tests

    lein test

### To run the application (web app and data fetcher)

    lein run

### To run just the data fetcher
    
    lein run workerrun

### To run just the web application

    lein run webrun

## License

Copyright © 2013 <NAME>

Distributed under the Eclipse Public License, the same as Clojure.

{'fraction_non_alphanumeric': 0.07500956754688098, 'fraction_numerical': 0.012246460007654038, 'mean_word_length': 3.8407407407407406, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, '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': '4950016', 'n_tokens_mistral': 830, 'n_tokens_neox': 759, 'n_words': 339}