<commit_before># Prysless

[![Build Status](https://travis-ci.org/yazgoo/prysless.svg?branch=master)](https://travis-ci.org/yazgoo/prysless)
[![Test Coverage](https://codeclimate.com/github/yazgoo/prysless/coverage.png)](https://codeclimate.com/github/yazgoo/prysless)
[![Code Climate](https://codeclimate.com/github/yazgoo/prysless.png)](https://codeclimate.com/github/yazgoo/prysless)
[![Inline docs](http://inch-ci.org/github/yazgoo/prysless.png?branch=master)](http://inch-ci.org/github/yazgoo/prysless)
[![Gem Version](https://badge.fury.io/rb/prysless.svg)](http://badge.fury.io/rb/prysless)

prysless aims to integrate ruby programs in terminal sessions with lowest harm.

It is based on pry REPL, hence the name.

## Installation

Add this line to your application's Gemfile:

    gem 'prysless'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install prysless

## Configuring

All the configuring is done via environment variables,
so to me it adds up to editing my bashrc

*  PRYSLESS\_LIBRARY\_PATH: path to load additional libraries, ":"-separated
*  PRYSLESS\_REQUIRE: variable definitions
*  PRYSLESS\_ALIASES: shell command aliases

For example:

    export PRYSLESS_ALIASES='l=ls:c=cd'
    export PRYSLESS_LIBRARY_PATH="$HOME/dev/ec2l/lib"
    export PRYSLESS_REQUIRE="e=ec2l/Ec2l/Client.new:a=pry/[]"

PRYSLESS\_REQUIRE tells prysless what objects to preload and how to name them.

So, for example:

    e=ec2l/Ec2l/Client.new

Will load into the variable named e Ec2l::Client.new after requiring 'ec2l'.

Because I use the development version of ec2l and not the gem directly,
I added my ec2l development library directory to PRYSLESS\_LIBRARY\_PATH.

Also, I like to add an aliases to prysless\_store command:

    alias p=prysless_store

## Using

Just run
    <commit_msg>editing readme, version is now 0.0.2<commit_after># Prysless

[![Build Status](https://travis-ci.org/yazgoo/prysless.svg?branch=master)](https://travis-ci.org/yazgoo/prysless)
[![Test Coverage](https://codeclimate.com/github/yazgoo/prysless/coverage.png)](https://codeclimate.com/github/yazgoo/prysless)
[![Code Climate](https://codeclimate.com/github/yazgoo/prysless.png)](https://codeclimate.com/github/yazgoo/prysless)
[![Inline docs](http://inch-ci.org/github/yazgoo/prysless.png?branch=master)](http://inch-ci.org/github/yazgoo/prysless)
[![Gem Version](https://badge.fury.io/rb/prysless.svg)](http://badge.fury.io/rb/prysless)

prysless aims to integrate ruby programs in terminal sessions with lowest harm.

It is based on pry REPL, hence the name.

## Installation

Add this line to your application's Gemfile:

    gem 'prysless'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install prysless

## Configuring

All the configuring is done via environment variables,
so to me it adds up to editing my bashrc

*  PRYSLESS\_LIBRARY\_PATH: path to load additional libraries, ":"-separated
*  PRYSLESS\_REQUIRE: variable definitions
*  PRYSLESS\_ALIASES: shell command aliases

For example:

    export PRYSLESS_ALIASES='l=ls:c=cd'
    export PRYSLESS_LIBRARY_PATH="$HOME/dev/ec2l/lib"
    export PRYSLESS_REQUIRE="e=ec2l/Ec2l/Client.new:a=pry/[]"

PRYSLESS\_REQUIRE tells prysless what objects to preload and how to name them.

So, for example:

    e=ec2l/Ec2l/Client.new

Will load into the variable named e Ec2l::Client.new after requiring 'ec2l'.

Because I use the development version of ec2l and not the gem directly,
I added my ec2l development library directory to PRYSLESS\_LIBRARY\_PATH.

Also, I like to add an aliase to prysless\_store command:

    alias p=prysless_store

## Using

Just run
    
{'fraction_non_alphanumeric': 0.11679431072210066, 'fraction_numerical': 0.0057439824945295405, 'mean_word_length': 4.574695121951219, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 14, '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': '3033643', 'n_tokens_mistral': 1360, 'n_tokens_neox': 1308, 'n_words': 325}