<commit_before><% if current_user %>
<pre>GET <%= link_to api_v1_divisions_url(format: "json", key: current_user.api_key), api_v1_divisions_url(format: "json", key: current_user.api_key) %></pre>
<% else %>
<pre>GET <%= api_v1_divisions_url(format: "json", key: "api_key2").gsub("api_key2", "[api_key]") %></pre>
<% end %>

This returns basic information about the **most recent 100** divisions including

Parameter          | Description
------------------ | -----------------------------------------------------------
`id`               | A unique identifier for this division. Use the `id` to get more information about this division
`house`            | Whether this division took place in the House of Representatives or the Senate
`name`             | Short name
`date`             | Date in the format `yyyy-mm-dd`
`number`           | The first division on a particular day and in a particular house is 1. Each following division is numbered consecutively
`clock_time`       | The time of the division in the format `hh:mm AM` or `hh:mm PM` or `null` if not available
`aye_votes`        | The number of people who voted "aye"
`no_votes`         | The number of people who voted "no"
`possible_turnout` | The number of people who could potentially have voted based on the current number of members
`rebellions`       | The number of votes that went against the majority vote of their party
`edited`           | `true` if the summary of the division has been edited

To get more results or divisions within a particular date range you can do

<% if current_user %>
<pre>GET <%= link_to api_v1_divisions_url(format: "json", start_date: "2014-08-01", end_date: "2014-09-01", house: "senate", key: current_user.api_key), api_v1_divisions_url(format: "json", start_date: "2014-08-01", end_date: "2014-09-01", house: "senate", key: current_user.api_key) %></pre>
<% else %>
<p>Fix this!</p>
<% end %>

Again this will return **at most 100** results. It is your responsibility to ensure that you are
getting all the data you expect. In practise if you receive 100 results narrow the date range or just look
at the specific house you are interested in.
<commit_msg>Add missing API example<commit_after><% if current_user %>
<pre>GET <%= link_to api_v1_divisions_url(format: "json", key: current_user.api_key), api_v1_divisions_url(format: "json", key: current_user.api_key) %></pre>
<% else %>
<pre>GET <%= api_v1_divisions_url(format: "json", key: "api_key2").gsub("api_key2", "[api_key]") %></pre>
<% end %>

This returns basic information about the **most recent 100** divisions including

Parameter          | Description
------------------ | -----------------------------------------------------------
`id`               | A unique identifier for this division. Use the `id` to get more information about this division
`house`            | Whether this division took place in the House of Representatives or the Senate
`name`             | Short name
`date`             | Date in the format `yyyy-mm-dd`
`number`           | The first division on a particular day and in a particular house is 1. Each following division is numbered consecutively
`clock_time`       | The time of the division in the format `hh:mm AM` or `hh:mm PM` or `null` if not available
`aye_votes`        | The number of people who voted "aye"
`no_votes`         | The number of people who voted "no"
`possible_turnout` | The number of people who could potentially have voted based on the current number of members
`rebellions`       | The number of votes that went against the majority vote of their party
`edited`           | `true` if the summary of the division has been edited

To get more results or divisions within a particular date range you can do

<% if current_user %>
<pre>GET <%= link_to api_v1_divisions_url(format: "json", start_date: "2014-08-01", end_date: "2014-09-01", house: "senate", key: current_user.api_key), api_v1_divisions_url(format: "json", start_date: "2014-08-01", end_date: "2014-09-01", house: "senate", key: current_user.api_key) %></pre>
<% else %>
<pre>GET <%= api_v1_divisions_url(format: "json", start_date: "2014-08-01", end_date: "2014-09-01", house: "senate") + '&key=[api_key]' %></pre>
<% end %>

Again this will return **at most 100** results. It is your responsibility to ensure that you are
getting all the data you expect. In practise if you receive 100 results narrow the date range or just look
at the specific house you are interested in.

{'fraction_non_alphanumeric': 0.13837886251679354, 'fraction_numerical': 0.02575011195700851, 'mean_word_length': 3.366568914956012, 'pattern_counts': {'":': 0, '<': 38, '<?xml version=': 0, '>': 38, 'https://': 0, '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': '6069923', 'n_tokens_mistral': 1387, 'n_tokens_neox': 1267, 'n_words': 536}