<commit_before>#!/usr/bin/ruby

#Test constants
NETPERF_CLIENT_WINDOWS = "netperf_x86.exe"  # Name of the test app executable
#NETPERF_CLIENT_WINDOWS = "netclient.exe"  # Name of the test app executable
NETPERF_CLIENT_LINUX = "netperf"  # Name of the test app executable
TEST_CASES = [" -t TCP_STREAM", " -t UDP_STREAM"] # Test cases (UDP|TCP)
HOST_PREFIX = " -H "                    # Server address prefix
TEST_TIME_PREFIX = " -l "            # Test time prefix
ADDITIONAL_PARAMS = " -- "          # Additional test params go after this prefix
PACKET_SIZE_PREFIX = " -m "         # Packet size prefix
PACKET_SIZES = [32, 64, 128, 256, 512, 1024, 2048, 4096, 16384] # packer sizes


def Log(log_file)
  print yield           # print to screen 
  log_file.print yield # print to log file
end

#Default values for command line parameters
test_loops = 3                            # How many time to execute each test case
test_time = 10                            #  time to run each test
test_server = "10.35.16.57"       # Server address

# First parameter to the script is a server host
if (ARGV[0].to_s.strip() != "")
  test_server = ARGV[0]
end

# Second parameter to the script is a time to run each test
if (ARGV[1].to_s.strip() != "")
  test_time = ARGV[1].to_i
end

#Third parameter how much times to run each test
if (ARGV[2].to_s.strip() != "")
  test_loops = ARGV[2].to_i
end
<commit_msg>[NetKVM] Test sccript - add additional packet sizes.<commit_after>#!/usr/bin/ruby

#Test constants
NETPERF_CLIENT_WINDOWS = "netperf_x86.exe"  # Name of the test app executable
#NETPERF_CLIENT_WINDOWS = "netclient.exe"  # Name of the test app executable
NETPERF_CLIENT_LINUX = "netperf"  # Name of the test app executable
TEST_CASES = [" -t TCP_STREAM", " -t UDP_STREAM"] # Test cases (UDP|TCP)
HOST_PREFIX = " -H "                    # Server address prefix
TEST_TIME_PREFIX = " -l "            # Test time prefix
ADDITIONAL_PARAMS = " -- "          # Additional test params go after this prefix
PACKET_SIZE_PREFIX = " -m "         # Packet size prefix
PACKET_SIZES = [32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536] # packer sizes


def Log(log_file)
  print yield           # print to screen 
  log_file.print yield # print to log file
end

#Default values for command line parameters
test_loops = 3                            # How many time to execute each test case
test_time = 10                            #  time to run each test
test_server = "10.35.16.57"       # Server address

# First parameter to the script is a server host
if (ARGV[0].to_s.strip() != "")
  test_server = ARGV[0]
end

# Second parameter to the script is a time to run each test
if (ARGV[1].to_s.strip() != "")
  test_time = ARGV[1].to_i
end

#Third parameter how much times to run each test
if (ARGV[2].to_s.strip() != "")
  test_loops = ARGV[2].to_i
end

{'fraction_non_alphanumeric': 0.09905495274763738, 'fraction_numerical': 0.0392019600980049, 'mean_word_length': 2.825970548862115, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3843553', 'n_tokens_mistral': 1036, 'n_tokens_neox': 929, 'n_words': 321}