<commit_before>Probably
=============

Probably is an extremely lightweight and simple tool. It only exists for one reason: to avoid checking for nil or exception in a calls chain. So, instead of writing like this:
```ruby
visitors.most_recent.try(:last).first_name || "NoSuchAnUser"
```
you write like this
```ruby
visitors.probably.most_recent.last.first_name.or("NoSuchAnUser")
```
or in a more natural way:
```ruby
probably(visitors).most_recent.last.first_name.or("NoSuchAnUser")
```

Install
===============

gem install probably

or in your Gemfile:

gem "probably"

or like this

gem "probably", :git => "git://github.com/zeninpalm/probably.git"

Usage
================

The simplest scenario<commit_msg>Change formatting<commit_after>Probably
=============

Probably is an extremely lightweight and simple tool. It only exists for one reason: to avoid checking for nil or exception in a calls chain. So, instead of writing like this:
```ruby
visitors.most_recent.try(:last).first_name || "NoSuchAnUser"
```
you write like this
```ruby
visitors.probably.most_recent.last.first_name.or("NoSuchAnUser")
```
or in a more natural way:
```ruby
probably(visitors).most_recent.last.first_name.or("NoSuchAnUser")
```

Install
===============
```ruby
gem install probably
```

or in your Gemfile:
```ruby
gem "probably"
```

or like this
```ruby
gem "probably", :git => "git://github.com/zeninpalm/probably.git"
```

Usage
================

The simplest scenario
{'fraction_non_alphanumeric': 0.17385352498288842, 'fraction_numerical': 0.0, 'mean_word_length': 5.7373271889400925, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, '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': '5335665', 'n_tokens_mistral': 488, 'n_tokens_neox': 431, 'n_words': 143}