<commit_before>module Veewee
  module Builder
    module Core
      module BuilderCommand

        def build(definition_name,box_name,options)

          # If no box_name was given, let's give the box the same name as the definition
          if box_name.nil?
            box_name=definition_name
          end

          env.ui.info "Building #{definition_name} #{box_name} #{options}"

          definition=get_definition(definition_name)
<commit_msg>if the definition does not exist, bail out<commit_after>module Veewee
  module Builder
    module Core
      module BuilderCommand

        def build(definition_name,box_name,options)

          definition=get_definition(definition_name)
          
          if definition.nil?
            env.ui.error "The definition #{definition_name} does not exist. Sorry"
            exit -1
          end
          
          # If no box_name was given, let's give the box the same name as the definition
          if box_name.nil?
            box_name=definition_name
          end
          
          env.ui.info "Building #{definition_name} #{box_name} #{options}"
          
{'fraction_non_alphanumeric': 0.062388591800356503, 'fraction_numerical': 0.00089126559714795, 'mean_word_length': 2.110803324099723, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5311930', 'n_tokens_mistral': 300, 'n_tokens_neox': 289, 'n_words': 90}