<commit_before><ul class='breadcrumb'>
  <li class='active'><a href='<%= @doc[:doc_url] %><%= @doc[:link_extension] %>'><%= @doc[:name] %> <%= @doc[:resources].values.first && @doc[:resources].values.first[:version] %></a></li>
  <%= render(:partial => "languages", :locals => {:doc_url => @doc[:doc_url]}) %>
  <% if @versions && @versions.size > 1 %>
  <li class='pull-right'>
    <%= @versions.collect { |v| link_to v, Apipie.full_url(v+@doc[:link_extension]) }.join(' / ').html_safe %>
  </li>
  <% end %>
</ul>

<div><%= raw @doc[:info] %></div>

<h1>Getting Started</h1>

<h3>Signing up for API access</h3>
<p>You can sign up for an API account <%= link_to 'here', new_user_path(:lang => (params[:lang]||"en")) %>. Once you have signed up, visit <%= link_to 'Sign in', new_user_session_path %> to log in to the API Dashboard and retrieve your generated token.</p>

<h3>Authenticating your requests</h3>
<p>Your authentication token needs to be passed into every request you make via the HTTP header <code>X-Authentication-Token</code>.</p>

<p>Tokens can be obtained and regenerated from the API Dashboard.</p>

<h3>Tools for testing the API</h3>
<p>There are a number of free tools available that allow you to test the API before you start integrating it in your systems. For example, <code>curl</code> is a popular command-line tool that could be used for this purpose:</p>

<p>
<code>curl -i "http://ors-api-host/api/v1/taxon_concepts.xml" -H "X-Authentication-Token:<PASSWORD>_TOKEN_HERE"</code>
</p>

<p>There are also a number of tools that can be installed as an add-on to your browser; they can be found for example by searching for "rest client" in the add-ons repository for your browser.</p>

<h3>Formats</h3>
<p>All endpoint can return both JSON and XML data. The default is JSON, if you would like to receive XML data, you can add .xml to the endpoint as below:</p>

<p><commit_msg>fixed links<commit_after><ul class='breadcrumb'>
  <li class='active'><a href='<%= @doc[:doc_url] %><%= @doc[:link_extension] %>'><%= @doc[:name] %> <%= @doc[:resources].values.first && @doc[:resources].values.first[:version] %></a></li>
  <%= render(:partial => "languages", :locals => {:doc_url => @doc[:doc_url]}) %>
  <% if @versions && @versions.size > 1 %>
  <li class='pull-right'>
    <%= @versions.collect { |v| link_to v, Apipie.full_url(v+@doc[:link_extension]) }.join(' / ').html_safe %>
  </li>
  <% end %>
</ul>

<div><%= raw @doc[:info] %></div>

<h1>Getting Started</h1>

<h3>Signing up for API access</h3>
<p>You can <%= link_to 'sign up for an API account here', new_user_path(:lang => (params[:lang]||"en")) %>. Once you have signed up, <%= link_to 'sign in', new_user_session_path %> to access your user profile and retrieve your generated token.</p>

<h3>Authenticating your requests</h3>
<p>Your authentication token needs to be passed into every request you make via the HTTP header <code>X-Authentication-Token</code>.</p>

<p>Tokens can be obtained and regenerated from your user profile.</p>

<h3>Tools for testing the API</h3>
<p>There are a number of free tools available that allow you to test the API before you start integrating it in your systems. For example, <code>curl</code> is a popular command-line tool that could be used for this purpose:</p>

<p>
<code>curl -i "http://ors-api-host/api/v1/questionnaires.xml" -H "X-Authentication-Token:YOUR_TOKEN_HERE"</code>
</p>

<p>There are also a number of tools that can be installed as an add-on to your browser; they can be found for example by searching for "rest client" in the add-ons repository for your browser.</p>

<h3>Formats</h3>
<p>All endpoint can return both JSON and XML data. The default is JSON, if you would like to receive XML data, you can add .xml to the endpoint as below:</p>

<p>
{'fraction_non_alphanumeric': 0.1653896961690885, 'fraction_numerical': 0.006340819022457068, 'mean_word_length': 4.745068285280729, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 118, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '353528', 'n_tokens_mistral': 1294, 'n_tokens_neox': 1243, 'n_words': 445}