<commit_before>require 'rake'
require 'rspec/core/rake_task'
require 'yaml'

task :default => [:help]

desc 'Check if all dependency version is explicitely set'
task :check_deps_version do
  fixtures = YAML.load_file('.fixtures.yml')
  fixtures['fixtures']['repositories'].select { |k, v| fail "You must explicitely set ref for module #{k} in .fixtures.yml for a reproductible build." unless v.is_a?(Hash) and v.has_key?('ref') }
end<commit_msg>Check if ref is not empty in :check_deps_version<commit_after>require 'rake'
require 'rspec/core/rake_task'
require 'yaml'

task :default => [:help]

desc 'Check if all dependency version is explicitely set'
task :check_deps_version do
  fixtures = YAML.load_file('.fixtures.yml')
  fixtures['fixtures']['repositories'].select { |k, v| fail "You must explicitely set ref for module #{k} in .fixtures.yml for a reproductible build." unless v.is_a?(Hash) and v.has_key?('ref') and !v['ref'].nil? }
end
{'fraction_non_alphanumeric': 0.13559322033898305, 'fraction_numerical': 0.0, 'mean_word_length': 5.608391608391608, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '975197', 'n_tokens_mistral': 322, 'n_tokens_neox': 315, 'n_words': 100}