<commit_before>#!/usr/bin/env ruby

require "rbconfig"
require "pathname"
require "fileutils"

current_dir_path    = Pathname.pwd
base_dir_path       = Pathname(__FILE__).dirname
source_top_dir_path = base_dir_path.parent.parent
build_top_dir_path  = current_dir_path
build_base_dir_path = build_top_dir_path + "test/query_optimizer"

rroonga_built_revision_path = build_base_dir_path + "rroonga.built"
rroonga_built_revision = nil<commit_msg>test query_optimizer: build before running tests<commit_after>#!/usr/bin/env ruby

require "rbconfig"
require "pathname"
require "fileutils"

current_dir_path    = Pathname.pwd
base_dir_path       = Pathname(__FILE__).dirname
source_top_dir_path = base_dir_path.parent.parent
build_top_dir_path  = current_dir_path
build_base_dir_path = build_top_dir_path + "test/query_optimizer"

Dir.chdir(build_top_dir_path.to_s) do
  system("make -j8 > /dev/null") or exit(false)
end

rroonga_built_revision_path = build_base_dir_path + "rroonga.built"
rroonga_built_revision = nil
{'fraction_non_alphanumeric': 0.08399209486166008, 'fraction_numerical': 0.0009881422924901185, 'mean_word_length': 6.732824427480916, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '3607278', 'n_tokens_mistral': 383, 'n_tokens_neox': 378, 'n_words': 60}