<commit_before># NetAppManageability

Ruby binding to NetApp Manageability SDK.

[![Gem Version](https://badge.fury.io/rb/net_app_manageability.svg)](http://badge.fury.io/rb/net_app_manageability)
[![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/net_app_manageability.svg)](https://codeclimate.com/github/ManageIQ/net_app_manageability)
[![Dependency Status](https://gemnasium.com/ManageIQ/net_app_manageability.svg)](https://gemnasium.com/ManageIQ/net_app_manageability)

## Installation

First, install the NetApp Manageability SDK.  This is only provided by NetApp
directly.  For the next steps, we will assume these files are located in
`$INSTALL_DIR`.

Next, if using bundler

- Add this line to your application's Gemfile:

  ```ruby
  gem 'net_app_manageability'
  ```

- If the NetApp Manageability SDK is not available on the normal compile paths, then execute:

  ```sh
  bundle config build.net_app_manageability --with-netapp-manageability-sdk-include=$INSTALL_DIR/include --with-netapp-manageability-sdk-lib=$INSTALL_DIR/lib/linux-64
  ```

- And finally execute:

  ```sh<commit_msg>Add documentation about symlinks if compilation fails.<commit_after># NetAppManageability

Ruby binding to NetApp Manageability SDK.

[![Gem Version](https://badge.fury.io/rb/net_app_manageability.svg)](http://badge.fury.io/rb/net_app_manageability)
[![Code Climate](http://img.shields.io/codeclimate/github/ManageIQ/net_app_manageability.svg)](https://codeclimate.com/github/ManageIQ/net_app_manageability)
[![Dependency Status](https://gemnasium.com/ManageIQ/net_app_manageability.svg)](https://gemnasium.com/ManageIQ/net_app_manageability)

## Installation

First, install the NetApp Manageability SDK.

- This is only provided by NetApp directly.  For the next steps, we will assume these files are located in `$INSTALL_DIR`.

- Create symlinks for libssl and libcrypto, if necessary.

  ```sh
  ln -s libssl.so $INSTALL_DIR/lib/linux-64/libssl.so.0.9.8
  ln -s libcrypto.so $INSTALL_DIR/lib/linux-64/libcrypto.so.0.9.8
  ```

Next, if using bundler

- Add this line to your application's Gemfile:

  ```ruby
  gem 'net_app_manageability'
  ```

- If the NetApp Manageability SDK is not available on the normal compile paths, then execute:

  ```sh
  bundle config build.net_app_manageability --with-netapp-manageability-sdk-include=$INSTALL_DIR/include --with-netapp-manageability-sdk-lib=$INSTALL_DIR/lib/linux-64
  ```

- And finally execute:

  ```sh
{'fraction_non_alphanumeric': 0.12171451678123736, 'fraction_numerical': 0.005661140315406389, 'mean_word_length': 5.019464720194647, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '4567030', 'n_tokens_mistral': 879, 'n_tokens_neox': 811, 'n_words': 182}