<commit_before>GroupBy Search API
=======

[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/groupby/api-php.svg)](https://scrutinizer-ci.com/g/groupby/api-php/?branch=develop)
[![Build Status](https://img.shields.io/travis/groupby/api-php.svg)](https://travis-ci.org/groupby/api-php)
[![Packagist Version](https://img.shields.io/packagist/v/groupby/api.svg)](https://packagist.org/packages/groupby/api)
[![Packagist Downloads](https://img.shields.io/packagist/dt/groupby/api.svg)](https://packagist.org/packages/groupby/api)
![license](https://img.shields.io/github/license/groupby/api-php.svg)

### Setup Instructions

For more on robo php taskrunner see [here](http://codegyre.github.io/Robo/).

### To install

    robo install
  
### To test

    robo test

### To add a dependency to this project

#### Composer
Add the following to the `require` block of your composer.json

```json
"groupby/api": "2.0.246"
```

or run

    composer require groupby/api:2.0.246

### Examples

#### Searching

```php
$bridge = new CloudBridge('<client key', 'myCustomerId');
$query = new Query();
$query->setQuery('dvd');
/** @var Results $results */<commit_msg>Prepared for next version release<commit_after>GroupBy Search API
=======

[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/groupby/api-php.svg)](https://scrutinizer-ci.com/g/groupby/api-php/?branch=develop)
[![Build Status](https://img.shields.io/travis/groupby/api-php.svg)](https://travis-ci.org/groupby/api-php)
[![Packagist Version](https://img.shields.io/packagist/v/groupby/api.svg)](https://packagist.org/packages/groupby/api)
[![Packagist Downloads](https://img.shields.io/packagist/dt/groupby/api.svg)](https://packagist.org/packages/groupby/api)
![license](https://img.shields.io/github/license/groupby/api-php.svg)

### Setup Instructions

For more on robo php taskrunner see [here](http://codegyre.github.io/Robo/).

### To install

    robo install
  
### To test

    robo test

### To add a dependency to this project

#### Composer
Add the following to the `require` block of your composer.json

```json
"groupby/api": "2.0.247"
```

or run

    composer require groupby/api:2.0.247

### Examples

#### Searching

```php
$bridge = new CloudBridge('<client key', 'myCustomerId');
$query = new Query();
$query->setQuery('dvd');
/** @var Results $results */
{'fraction_non_alphanumeric': 0.1926994906621392, 'fraction_numerical': 0.008488964346349746, 'mean_word_length': 4.679518072289157, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 18, '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': '2572707', 'n_tokens_mistral': 876, 'n_tokens_neox': 833, 'n_words': 148}