<commit_before>class OrigenTestersApplication < Origen::Application
  # See http://origen.freescale.net/origen/latest/api/Origen/Application/Configuration.html
  # for a full list of the configuration options available

  config.shared = {
    :command_launcher => "config/shared_commands.rb"
  }

  # This information is used in headers and email templates, set it specific
  # to your application
  config.name     = 'Origen Testers'
  config.initials = 'OrigenTesters'
  self.name = 'origen_testers'
  self.namespace = 'OrigenTesters'
  config.rc_url   = "<EMAIL>:Origen-SDK/origen_testers.git"
  config.release_externally = true

  # Added list of directory to exclude when run running origen rc unman
  config.unmanaged_dirs = %w[spec/patterns/bin]

  config.unmanaged_files = %w[]

  config.web_directory = "<EMAIL>:Origen-SDK/Origen-SDK.github.io.git/testers"
  config.web_domain = "http://origen-sdk.org/testers"

  # When false Origen will be less strict about checking for some common coding errors,
  # it is recommended that you leave this to true for better feedback and easier debug.
  # This will be the default setting in Origen v3.
  config.strict_errors = true

  config.semantically_version = true

  # By default all generated output will end up in ./output.
  # Here you can specify an alternative directory entirely, or make it dynamic such that
  # the output ends up in a setup specific directory.
  config.output_directory do
    "#{Origen.root}/output/#{$tester.name}"
  end

  # Similary for the reference files, generally you want to setup the reference directory
  # structure to mirror that of your output directory structure.
  config.reference_directory do
    "#{Origen.root}/.ref/#{$tester.name}"
  end
  
  # Setting this to the spec area for testing of compiler
  config.pattern_output_directory do
    "#{Origen.root}/spec/patterns/atp"
  end

  # Run the tests before deploying to generate test coverage numbers
  def before_deploy_site
    Dir.chdir Origen.root do
      system 'origen examples -c'
      system 'origen specs -c'
      dir = "#{Origen.root}/web/output/coverage"
      FileUtils.remove_dir(dir, true) if File.exist?(dir)
      system "mv #{Origen.root}/coverage #{dir}"
    end
  end

  # This will automatically deploy your documentation after every tag
  def after_release_email(tag, note, type, selector, options)
    command = 'origen web compile --remote --api'<commit_msg>Updated the application configuration to check if running on UNIX or Windows  - Updates needed else origen examples/origen test will fail on Windows<commit_after>class OrigenTestersApplication < Origen::Application
  # See http://origen.freescale.net/origen/latest/api/Origen/Application/Configuration.html
  # for a full list of the configuration options available

  config.shared = {
    :command_launcher => "config/shared_commands.rb"
  }

  # This information is used in headers and email templates, set it specific
  # to your application
  config.name     = 'Origen Testers'
  config.initials = 'OrigenTesters'
  self.name = 'origen_testers'
  self.namespace = 'OrigenTesters'
  config.rc_url   = "<EMAIL>:Origen-SDK/origen_testers.git"
  config.release_externally = true

  # Added list of directory to exclude when run running origen rc unman
  config.unmanaged_dirs = %w[spec/patterns/bin]

  config.unmanaged_files = %w[]

  config.web_directory = "<EMAIL>:Origen-SDK/Origen-SDK.github.io.git/testers"
  config.web_domain = "http://origen-sdk.org/testers"

  # When false Origen will be less strict about checking for some common coding errors,
  # it is recommended that you leave this to true for better feedback and easier debug.
  # This will be the default setting in Origen v3.
  config.strict_errors = true

  config.semantically_version = true

  # By default all generated output will end up in ./output.
  # Here you can specify an alternative directory entirely, or make it dynamic such that
  # the output ends up in a setup specific directory.
  config.output_directory do
   dir =  "#{Origen.root}/output/#{$tester.name}"
   dir.gsub!("::","_") if Origen.os.windows?
   dir
  end

  # Similary for the reference files, generally you want to setup the reference directory
  # structure to mirror that of your output directory structure.
  config.reference_directory do
    dir = "#{Origen.root}/.ref/#{$tester.name}"
    dir.gsub!("::","_") if Origen.os.windows?
    dir
  end
  
  # Setting this to the spec area for testing of compiler
  config.pattern_output_directory do
   dir = "#{Origen.root}/spec/patterns/atp"
   dir.gsub!("::","_") if Origen.os.windows?
   dir
  end

  # Run the tests before deploying to generate test coverage numbers
  def before_deploy_site
    Dir.chdir Origen.root do
      system 'origen examples -c'
      system 'origen specs -c'
      dir = "#{Origen.root}/web/output/coverage"
      FileUtils.remove_dir(dir, true) if File.exist?(dir)
      system "mv #{Origen.root}/coverage #{dir}"
    end
  end

  # This will automatically deploy your documentation after every tag
  def after_release_email(tag, note, type, selector, options)
    command = 'origen web compile --remote --api'
{'fraction_non_alphanumeric': 0.09099690880989181, 'fraction_numerical': 0.0003863987635239567, 'mean_word_length': 3.7235401459854014, 'pattern_counts': {'":': 3, '<': 9, '<?xml version=': 0, '>': 9, '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': '5792104', 'n_tokens_mistral': 1567, 'n_tokens_neox': 1525, 'n_words': 515}