<commit_before># early-voting

This project is generated with [yo angular generator](https://github.com/yeoman/generator-angular)
version 0.12.1.

## Build & development

Run `grunt` for building and `grunt serve` for preview.

## Testing

Running `grunt test` will run the unit tests with karma.<commit_msg>Adds documentation on how to update the site with data for a new election<commit_after># early-voting

This project is generated with [yo angular generator](https://github.com/yeoman/generator-angular)
version 0.12.1.

## Build & development

Run `grunt` for building and `grunt serve` for preview.

## Testing

Running `grunt test` will run the unit tests with karma.

## Update site for a new election
1. Run the scraper (follow instructions in `scraper/README.md`.
2. Copy `scraper/scraped/processed-DATE.geojson` to `angular/app/data/elections/DATE-locations.geojson`.
3. Change the dates in `.constant` in `angular/app/scripts/app.js` to the relevant election dates. Verify that the election date matches the date in the filename from step 2.
4. Run `grunt serve` and the site will update with the new data.
5. Deploy.
{'fraction_non_alphanumeric': 0.09460654288240496, 'fraction_numerical': 0.01237842617152962, 'mean_word_length': 4.3649289099526065, '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': '6297035', 'n_tokens_mistral': 342, 'n_tokens_neox': 333, 'n_words': 141}