<commit_before>ruby-ssh
========

Wrapper around 'net/ssh' to make it easier to use - uses password for sudo automatically, and gives back an array of [stdout, stderr], each an array of lines.

Usage
=====
$:.push(File.expand_path(File.join(__FILE__, '..')))

require 'ssh'

ssh = SSH.new(hostname, user, password)

stdout, stderr = ssh.run('sudo apt-get update')
raise "Error updating package lists: #{stderr}" unless stderr.empty?

stdout.select{ |x| x.match(/Reading package lists/) }<commit_msg>Formatting<commit_after>ruby-ssh
========

Wrapper around 'net/ssh' to make it easier to use - uses password for sudo automatically, and gives back an array of [stdout, stderr], each an array of lines.

Usage
=====

```
$:.push(File.expand_path(File.join(__FILE__, '..')))

require 'ssh'

ssh = SSH.new(hostname, user, password)

stdout, stderr = ssh.run('sudo apt-get update')
raise "Error updating package lists: #{stderr}" unless stderr.empty?

stdout.select{ |x| x.match(/Reading package lists/) }
```
{'fraction_non_alphanumeric': 0.1593625498007968, 'fraction_numerical': 0.0, 'mean_word_length': 4.911764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1581128', 'n_tokens_mistral': 333, 'n_tokens_neox': 310, 'n_words': 108}