<commit_before>Jekyll Static API
==========

A static API plugin for Jekyll.

Installation
============
1. `gem install json`
2. Download `api.rb`
3. Place `api.rb` in Jekyll's `_plugins` directory.
4. Rebuild your site (e.g. `jekyll build`).

Schema
======
All API access is over HTTP, and accessed from the `yourdomain.com/api/v1`. All data is sent as JSON.

Posts
-----
### List all posts
This provides a dump of all posts, in the order that they were created.

```
GET /posts.json
```

#### Response
```
[
  {
    "url": "http://www.tannersmith.me/2010/08/26/blog-host/",
    "title": "Blog Host",
    "excerpt": "Think I may use one of my servers for hosting this blog. Wordpress.com does not give me enough options. And I like to have options and the ability to customize whatever I want.\n\n\n",
    "index": 0,<commit_msg>No version numbers in the URL (not yet at least).<commit_after>Jekyll Static API
==========

A static API plugin for Jekyll.

Installation
============
1. `gem install json`
2. Download `api.rb`
3. Place `api.rb` in Jekyll's `_plugins` directory.
4. Rebuild your site (e.g. `jekyll build`).

Schema
======
All API access is over HTTP, and accessed from the `yourdomain.com/api/`. All data is sent as JSON.

Posts
-----
### List all posts
This provides a dump of all posts, in the order that they were created.

```
GET /posts.json
```

#### Response
```
[
  {
    "url": "http://www.tannersmith.me/2010/08/26/blog-host/",
    "title": "Blog Host",
    "excerpt": "Think I may use one of my servers for hosting this blog. Wordpress.com does not give me enough options. And I like to have options and the ability to customize whatever I want.\n\n\n",
    "index": 0,
{'fraction_non_alphanumeric': 0.1552538370720189, 'fraction_numerical': 0.015938606847697757, 'mean_word_length': 3.425587467362924, 'pattern_counts': {'":': 8, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5054467', 'n_tokens_mistral': 580, 'n_tokens_neox': 541, 'n_words': 230}