<commit_before>echo running tests for ruby
UUID=$(cat /proc/sys/kernel/random/uuid)

pass "unable to start the $VERSION container" docker run --privileged=true -d --name $UUID nanobox/build-ruby sleep 365d

defer docker kill $UUID

pass "create db dir for pkgsrc" docker exec $UUID mkdir -p /data/var/db

pass "create dir for environment variables" docker exec $UUID mkdir -p /data/etc/env.d 

pass "Failed to update pkgsrc" docker exec $UUID /data/bin/pkgin up -y

pass "Failed to run prepare script" docker exec $UUID bash -c "cd /opt/engines/ruby/bin; PATH=/data/sbin:/data/bin:\$PATH ./prepare '$(payload default-prepare)'"<commit_msg>add Gemfile to prepare test<commit_after>echo running tests for ruby
UUID=$(cat /proc/sys/kernel/random/uuid)

pass "unable to start the $VERSION container" docker run --privileged=true -d --name $UUID nanobox/build-ruby sleep 365d

defer docker kill $UUID

pass "create db dir for pkgsrc" docker exec $UUID mkdir -p /data/var/db

pass "create dir for environment variables" docker exec $UUID mkdir -p /data/etc/env.d 

pass "Failed to update pkgsrc" docker exec $UUID /data/bin/pkgin up -y

pass "Failed to create code directory" docker exec $UUID mkdir -p /opt/code

pass "Failed to create Gemfile" docker exec $UUID bash -c "echo \"source 'https://rubygems.org'\n\ngem 'sinatra'\ngem 'puma'\" > /opt/code/Gemfile"

pass "Failed to run prepare script" docker exec $UUID bash -c "cd /opt/engines/ruby/bin; PATH=/data/sbin:/data/bin:\$PATH ./prepare '$(payload default-prepare)'"
{'fraction_non_alphanumeric': 0.12055335968379446, 'fraction_numerical': 0.003952569169960474, 'mean_word_length': 4.114478114478114, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '474911', 'n_tokens_mistral': 526, 'n_tokens_neox': 494, 'n_words': 189}