<commit_before># retrofit-logansquare

A `Converter` implementation using BlueLine Labs' [LoganSquare][logansquare] JSON serialization for Square's [Retrofit][retrofit] REST library.  
**Please note** that this library is solely intended for usage with **version 2 of Retrofit** (*2.0.0-beta2* and up)! It won't work with 1.9 or earlier. Please refer [to this section of the README](#retro1) for instructions on how to include LoganSquare serialization on these versions.

## Download

Get it on `jcenter()`:

```groovy
compile "com.github.aurae.retrofit:converter-logansquare:1.1.0"
```

Don't forget to include LoganSquare's dependencies as well. Check [their repo](logansquare) for the latest version:

```groovy
apt "com.bluelinelabs:logansquare-compiler:<latest-logansquare-version>"
compile "com.bluelinelabs:logansquare::<latest-logansquare-version>"
```

## Usage

Plug in the `LoganSquareConverterFactory` like any other converter upon creating your `Retrofit` instance:

```java
Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://your.server.com/api/")
    .addConverterFactory(LoganSquareConverterFactory.create())
    .build();
```<commit_msg>Fixed wrong brackets for hyperlink in readme<commit_after># retrofit-logansquare

A `Converter` implementation using BlueLine Labs' [LoganSquare][logansquare] JSON serialization for Square's [Retrofit][retrofit] REST library.  
**Please note** that this library is solely intended for usage with **version 2 of Retrofit** (*2.0.0-beta2* and up)! It won't work with 1.9 or earlier. Please refer [to this section of the README](#retro1) for instructions on how to include LoganSquare serialization on these versions.

## Download

Get it on `jcenter()`:

```groovy
compile "com.github.aurae.retrofit:converter-logansquare:1.1.0"
```

Don't forget to include LoganSquare's dependencies as well. Check [their repo][logansquare] for the latest version:

```groovy
apt "com.bluelinelabs:logansquare-compiler:<latest-logansquare-version>"
compile "com.bluelinelabs:logansquare::<latest-logansquare-version>"
```

## Usage

Plug in the `LoganSquareConverterFactory` like any other converter upon creating your `Retrofit` instance:

```java
Retrofit retrofit = new Retrofit.Builder()
    .baseUrl("https://your.server.com/api/")
    .addConverterFactory(LoganSquareConverterFactory.create())
    .build();
```
{'fraction_non_alphanumeric': 0.11734909244406923, 'fraction_numerical': 0.009286618826509076, 'mean_word_length': 5.7908309455587395, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '5336167', 'n_tokens_mistral': 767, 'n_tokens_neox': 714, 'n_words': 226}