<commit_before>Gilt-Java
=========
A simple Java client library for the Gilt API(v1). Currently this library is in development and will provide basic support for fetching current and upcoming
sales. gilt-java has minimal dependencies and is aimed to be easy to use.

Android
-------
Android platform to be tested soon!

Build & Use
-----------
Please check [Gilt API documentation](http://api.gilt.com) for the official API descriptions and to get your private API key (required for use).
To build:

    $ ant

Examples:

    GiltAPI gilt = new GiltAPI(API_KEY);

    // Get active sales for all Gilt stores
    gilt.getSales(null, Sale.ACTIVE, null);
    
    // Get active sales for the Kids store
    gilt.getSales(Store.KIDS, Sale.ACTIVE, null);

    // Building a map option parameters
    Map<String,String> options = new HashMap<String,String>();
    options.put("product_detail", "true");
    
    // Get active sales for the Kids store with full product details (requires options)
    gilt.getSales(Store.KIDS, Sale.ACTIVE, options);

Currently each API endpoint returns a String object representing the json response. gilt-java also includes software from [json.org/java](http://json.org/java/).

Contribute
------------
Submit well documented code with unit tests and I will merge your changes in as long as your code does not break the build

Gilt API Endpoints
--------------------
Currently there is 1 API endpoint available with the base url being `https://api.gilt.com/v1/`.

- sales
  - Retrieve Gilt sales
  - `https://api.gilt.com/v1/sales`
  - `String getSales(String store, String action, Map<String,String> params)`

Copyright
---------<commit_msg>added java styling to readme examples<commit_after>Gilt-Java
=========
A simple Java client library for the Gilt API(v1). Currently this library is in development and will provide basic support for fetching current and upcoming
sales. gilt-java has minimal dependencies and is aimed to be easy to use.

Android
-------
Android platform to be tested soon!

Build & Use
-----------
Please check [Gilt API documentation](http://api.gilt.com) for the official API descriptions and to get your private API key (required for use).
To build:

    $ ant

Examples:

``` java
GiltAPI gilt = new GiltAPI(API_KEY);

// Get active sales for all Gilt stores
gilt.getSales(null, Sale.ACTIVE, null);

// Get active sales for the Kids store
gilt.getSales(Store.KIDS, Sale.ACTIVE, null);

// Building a map option parameters
Map<String,String> options = new HashMap<String,String>();
options.put("product_detail", "true");

// Get active sales for the Kids store with full product details (requires options)
gilt.getSales(Store.KIDS, Sale.ACTIVE, options);
```

Currently each API endpoint returns a String object representing the json response. gilt-java also includes software from [json.org/java](http://json.org/java/).

Contribute
------------
Submit well documented code with unit tests and I will merge your changes in as long as your code does not break the build

Gilt API Endpoints
--------------------
Currently there is 1 API endpoint available with the base url being `https://api.gilt.com/v1/`.

- sales
  - Retrieve Gilt sales
  - `https://api.gilt.com/v1/sales`
  - `String getSales(String store, String action, Map<String,String> params)`

Copyright
---------
{'fraction_non_alphanumeric': 0.12075698407930309, 'fraction_numerical': 0.0024031240612796636, 'mean_word_length': 3.410596026490066, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6729996', 'n_tokens_mistral': 931, 'n_tokens_neox': 904, 'n_words': 396}