<commit_before>PHP RESTWrapper
================

A PHP REST wrapper using pluggable API definitions

* [Usage](#usage)
* [Definitions](#definitions)
* [Example](#examples)

## Usage

## Definitions

[link](definitions)

## Examples

### Creating a Gist

```php
include 'restwrapper.php';

$api = new RESTWrapper('https://api.github.com', 'gist.json');

$gist = $api->Gist->create([
    "public" => false,
    "description" => "Hello World",
    "files" => [
      "file1.txt" =>
        ["content" => "Hello"],
      "file2.txt" =>
        ["content" => "World"],
    ]
]);
```

```
stdClass Object (
    [url] => https://api.github.com/gists/bb5bdd95ed24cdac95f2
    [forks_url] => .../forks
    [commits_url] => .../commits
    [id] => bb5bdd95ed24cdac95f2
    [git_pull_url] => .../bb5bdd95ed24cdac95f2.git
    [git_push_url] => .../bb5bdd95ed24cdac95f2.git
    [html_url] => .../bb5bdd95ed24cdac95f2
    [files] => stdClass Object (
        [file1.txt] => stdClass Object (
            [filename] => file1.txt
            [type] => text/plain
            [language] =>
            [raw_url] => ...
            [size] => 5
            [truncated] =>
            [content] => Hello
        )
        ...
    [public] =>
    [created_at] => 2014-07-23T21:27:48Z
    [updated_at] => 2014-07-23T21:27:48Z
    [description] => Hello World
    [comments] => 0
    [user] =>
    [comments_url] => .../comments
    [forks] => Array (...)
    [history] => Array (...)
)
```
<commit_msg>Tweaked README<commit_after>PHP RESTWrapper
================

A PHP REST wrapper using pluggable API definitions

* [Usage](#usage)
* [Definitions](#definitions)
* [Examples](#examples)

## Usage

## Definitions

[README](definitions)

## Examples

### Creating a Gist

```php
include 'restwrapper.php';

$api = new RESTWrapper('https://api.github.com', 'gist.json');

$gist = $api->Gist->create([
    "public" => false,
    "description" => "Hello World",
    "files" => [
      "file1.txt" =>
        ["content" => "Hello"],
      "file2.txt" =>
        ["content" => "World"],
    ]
]);
```

```
stdClass Object (
    [url] => https://api.github.com/gists/bb5bdd95ed24cdac95f2
    [forks_url] => .../forks
    [commits_url] => .../commits
    [id] => bb5bdd95ed24cdac95f2
    [git_pull_url] => .../bb5bdd95ed24cdac95f2.git
    [git_push_url] => .../bb5bdd95ed24cdac95f2.git
    [html_url] => .../bb5bdd95ed24cdac95f2
    [files] => stdClass Object (
        [file1.txt] => stdClass Object (
            [filename] => file1.txt
            [type] => text/plain
            [language] =>
            [raw_url] => ...
            [size] => 5
            [truncated] =>
            [content] => Hello
        )
        ...
    [public] =>
    [created_at] => 2014-07-23T21:27:48Z
    [updated_at] => 2014-07-23T21:27:48Z
    [description] => Hello World
    [comments] => 0
    [user] =>
    [comments_url] => .../comments
    [forks] => Array (...)
    [history] => Array (...)
)
```

{'fraction_non_alphanumeric': 0.2058029689608637, 'fraction_numerical': 0.04993252361673414, 'mean_word_length': 2.3616780045351473, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 71, 'https://': 4, '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': '1904187', 'n_tokens_mistral': 1183, 'n_tokens_neox': 1073, 'n_words': 183}