<commit_before>require 'specinfra'

class Syllabus::Core
  extend SpecInfra::Helper::Backend
  extend SpecInfra::Helper::DetectOS

  def self.run(args)
    # XXX
    extend SpecInfra::Helper.const_get(args[:type])

    backend = backend_for(args[:type])
    config  = Syllabus::Config.new_from_file(file: args[:file], backend: backend)
    logger  = Syllabus::Logger.new(level: args[:level])

    config.commands.each do |command|<commit_msg>Remove unnecessary statement along with the update of specinfra<commit_after>require 'specinfra'

class Syllabus::Core
  extend SpecInfra::Helper::Backend
  extend SpecInfra::Helper::DetectOS

  def self.run(args)
    backend = backend_for(args[:type])
    config  = Syllabus::Config.new_from_file(file: args[:file], backend: backend)
    logger  = Syllabus::Logger.new(level: args[:level])

    config.commands.each do |command|
{'fraction_non_alphanumeric': 0.1251435132032147, 'fraction_numerical': 0.0, 'mean_word_length': 5.364963503649635, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5483369', 'n_tokens_mistral': 287, 'n_tokens_neox': 277, 'n_words': 56}