<commit_before># Who Can I Vote For?

This project contains a Python script to generate an XML file of open
elections data about the [November 2015 Municipal Election][sfelections]
in San Francisco.  The XML file conforms to version 5.0 of the
[Voting Information Project's][vip] election data spec, which is nearly
finalized.

The Voting Information Project is a partnership between Pew Charitable
Trusts and Google.  Google uses the VIP format when pulling in data
about jurisdictions to power its Google Civic API.


Setup
-----

Pull the repo.  Also pull any submodules:

    $ git submodule update --init --recursive

Use Python 3.4.

To regenerate the XML, from the repo root:

    $ python scripts/make_xml.py

To check the XML, from the repo root (you need `xmllint` installed):

    $ ./check-xml.sh


[sfelections]: http://www.sfgov2.org/index.aspx?page=599
[vip]: https://github.com/votinginfoproject/vip-specification<commit_msg>Add disclaimer.<commit_after># Who Can I Vote For?

This project contains a Python script to generate an XML file of open
elections data about the [November 2015 Municipal Election][sfelections]
in San Francisco.  The XML file conforms to version 5.0 of the
[Voting Information Project's][vip] election data spec, which is nearly
finalized.

The Voting Information Project is a partnership between Pew Charitable
Trusts and Google.  Google uses the VIP format when pulling in data
about jurisdictions to power its Google Civic API.

**Note:** The data in this project is not official data and should not
be relied upon as an official source.  Also, it could be outdated.


Setup
-----

Pull the repo.  Also pull any submodules:

    $ git submodule update --init --recursive

Use Python 3.4.

To regenerate the XML, from the repo root:

    $ python scripts/make_xml.py

To check the XML, from the repo root (you need `xmllint` installed):

    $ ./check-xml.sh


[sfelections]: http://www.sfgov2.org/index.aspx?page=599
[vip]: https://github.com/votinginfoproject/vip-specification
{'fraction_non_alphanumeric': 0.07563025210084033, 'fraction_numerical': 0.011863568956994563, 'mean_word_length': 3.9607843137254903, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 6}, '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': '5841623', 'n_tokens_mistral': 626, 'n_tokens_neox': 569, 'n_words': 269}