<commit_before>stoarray
========

Library for making api calls to storage arrays with Ruby.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'stoarray'
```

And then execute:

    $ gem install stoarray

## Usage

In your script:

```ruby
require 'stoarray'
```

EMC's Xtremio and Pure's storage arrays are currently supported.

Both api's use json for parameters and the examples below follow suit.
I prefer to set variables that will not change in a json configuration file.
It is very easy to then build from there.

## Clone refresh using Pure
---------------------------

###First the json configuration file:

    {
      "authorization":"123li123o90yourapitoken2h1hi3",
      "base_url":"https:///purearray01.something.net/api/1.4/",
      "headers": { "Content-Type": "application/json" },
      "params_snap_u23": {<commit_msg>UIS-2070: Fix json example in README<commit_after>stoarray
========

Library for making api calls to storage arrays with Ruby.

## Installation

Add this line to your application's Gemfile:

```ruby
gem 'stoarray'
```

And then execute:

    $ gem install stoarray

## Usage

In your script:

```ruby
require 'stoarray'
```

EMC's Xtremio and Pure's storage arrays are currently supported.

Both api's use json for parameters and the examples below follow suit.
I prefer to set variables that will not change in a json configuration file.
It is very easy to then build from there.

## Clone refresh using Pure
---------------------------

###First the json configuration file:

    {
      "authorization": "123li123o90yourapitoken2h1hi3",
      "base_url": "https://purearray01.something.net/api/1.4/",
      "headers": { "Content-Type": "application/json" },
      "params_snap_u23": {
{'fraction_non_alphanumeric': 0.13428571428571429, 'fraction_numerical': 0.021714285714285714, 'mean_word_length': 3.4217171717171717, 'pattern_counts': {'":': 10, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '6755496', 'n_tokens_mistral': 555, 'n_tokens_neox': 504, 'n_words': 195}