<commit_before># Batt

Read the battery status from your laptop. Designed to be used in `tmux`'s status line.

Currently only supports OSX.

## Installation

Add this line to your application's Gemfile:

    gem 'batt'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install batt

## Usage

There is a full API that I'm working on, but it's not complete. Gem docs will come
at the time that the code is implemented.

You can use the commandline program, in OSX only for now:

    batt <action>

Where `action` is one of the following:

 * `all` -- prints out all status of the battery
 * `status` -- 'charging' or 'discharging'
 * `source` -- 'AC Power' or 'Battery Power'
 * `remaining` -- amount of time remaining til complete discharge or complete charge
 * `capacity` -- a percentage of how charged the battery is

 ## tmux

 Example `tmux` status line configuration:

    tmux set-option status-right-length 120
    tmux set-option status-right "[ #(batt source) #(batt remaining) ] #(date \"+%Y-%m-%d %H:%M:%S\")"

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request
<commit_msg>fixed an extra space.<commit_after># Batt

Read the battery status from your laptop. Designed to be used in `tmux`'s status line.

Currently only supports OSX.

## Installation

Add this line to your application's Gemfile:

    gem 'batt'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install batt

## Usage

There is a full API that I'm working on, but it's not complete. Gem docs will come
at the time that the code is implemented.

You can use the commandline program, in OSX only for now:

    batt <action>

Where `action` is one of the following:

 * `all` -- prints out all status of the battery
 * `status` -- 'charging' or 'discharging'
 * `source` -- 'AC Power' or 'Battery Power'
 * `remaining` -- amount of time remaining til complete discharge or complete charge
 * `capacity` -- a percentage of how charged the battery is

 ## tmux

Example `tmux` status line configuration:

    tmux set-option status-right-length 120
    tmux set-option status-right "[ #(batt source) #(batt remaining) ] #(date \"+%Y-%m-%d %H:%M:%S\")"

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

{'fraction_non_alphanumeric': 0.10204081632653061, 'fraction_numerical': 0.0061609549480169425, 'mean_word_length': 3.4793103448275864, 'pattern_counts': {'":': 0, '<': 5, '<?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': '275194', 'n_tokens_mistral': 814, 'n_tokens_neox': 772, 'n_words': 371}