<commit_before>= Unreliable Network Simulator (Ruby)

Author:: <NAME> (<EMAIL>)
Copyright:: Copyright 2011 <NAME>
License:: Distributed under the MIT License, see LICENSE.

This is a Ruby implementation of the Unreliable Network Simulator for Dr. Shaneck's reliable data transfer protocol project for CSCI 355 at Liberty University.<commit_msg>Added $global variables to the README.<commit_after>= Unreliable Network Simulator (Ruby)

Author:: <NAME> (<EMAIL>)
Copyright:: Copyright 2011 <NAME>
License:: Distributed under the MIT License, see LICENSE.

This is a Ruby implementation of the Unreliable Network Simulator for Dr. Shaneck's reliable data transfer protocol project for CSCI 355 at Liberty University.

Note: This library uses global variables to match the original implementation. These are accessible via
$bidirectional:: Boolean holds the flag which specifies if traffic is bidirectional
$corruption:: Float holds the chance of single byte or single flag corruption (0 <= $corruption <= 1)
$loss:: Float holds the chance of packet loss (0 <= $loss <= 1)
$delay:: Fixnum holds the simulated average delay between packets
$current_time:: Fixnum holds the simulated time
{'fraction_non_alphanumeric': 0.07021996615905245, 'fraction_numerical': 0.015228426395939087, 'mean_word_length': 5.721590909090909, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, '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': '3333916', 'n_tokens_mistral': 314, 'n_tokens_neox': 272, 'n_words': 159}