<commit_before>$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'ass_launcher'

module Examples
  MIN_PLATFORM_VERSION = '8.3.10'

  PLATFORM_VER = "~> #{MIN_PLATFORM_VERSION}"
  PLATFORM_ARCH = 'i386'
  fail "\nRuby i386 require!\n" if RbConfig::CONFIG['arch'] =~ %r{x86_64}
  OLE_V8 = '83'

  # Examples executing control
  # Be careful with them!!!!
  module TROUBLES_EXECUTE_CONTROL
    # Will be executed examples which show GUI dialogs.
    # It is require human interaction!!!
    SHOW_STUPID_GUI = !ENV['SHOW_STUPID_GUI'].nil?
    # Will be executed examples which create infobases not where you need
    SHOW_TROBLES_WITH_CREATEINFOBASE = !ENV['SHOW_TROBLES_WITH_CREATEINFOBASE'].nil?
  end

  module PLATFORM
    extend AssLauncher::Support::Platforms
    LINUX = linux?
    CYGWIN = cygwin?
    WINDOWS = windows?
  end

  module CLIENTS
    extend AssLauncher::Api
    THICK = thicks_i386(Examples::PLATFORM_VER).last
    fail "1C:Enterprise thick client i386 v.#{Examples::PLATFORM_VER} not found" if\
      THICK.nil?
    THIN = thins_i386(Examples::PLATFORM_VER).last
    fail "1C:Enterprise thin client i386 v.#{Examples::PLATFORM_VER} not found" if\
      THIN.nil?
    WEB = web_client('http://example.org', MIN_PLATFORM_VERSION)
  end

  module TEMPLATES
    CF = File.expand_path('../templates/example_template.cf', __FILE__)
    V8I = File.expand_path('../templates/example_template.v8i', __FILE__)
    HELLO_EPF = File.expand_path('../templates/hello.epf', __FILE__)
  end

  module IbMaker<commit_msg>remove "run_examples require i386 ruby with i386 1C platform"<commit_after>$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'ass_launcher'

module Examples
  MIN_PLATFORM_VERSION = '8.3.10'

  PLATFORM_VER = "~> #{MIN_PLATFORM_VERSION}"
  OLE_V8 = '83'

  # Examples executing control
  # Be careful with them!!!!
  module TROUBLES_EXECUTE_CONTROL
    # Will be executed examples which show GUI dialogs.
    # It is require human interaction!!!
    SHOW_STUPID_GUI = !ENV['SHOW_STUPID_GUI'].nil?
    # Will be executed examples which create infobases not where you need
    SHOW_TROBLES_WITH_CREATEINFOBASE = !ENV['SHOW_TROBLES_WITH_CREATEINFOBASE'].nil?
  end

  module PLATFORM
    extend AssLauncher::Support::Platforms
    LINUX = linux?
    CYGWIN = cygwin?
    WINDOWS = windows?
  end

  module CLIENTS
    extend AssLauncher::Api
    THICK = thicks(Examples::PLATFORM_VER).last
    fail "1C:Enterprise thick client  v.#{Examples::PLATFORM_VER} not found" if\
      THICK.nil?
    THIN = thins(Examples::PLATFORM_VER).last
    fail "1C:Enterprise thin client  v.#{Examples::PLATFORM_VER} not found" if\
      THIN.nil?
    WEB = web_client('http://example.org', MIN_PLATFORM_VERSION)
  end

  module TEMPLATES
    CF = File.expand_path('../templates/example_template.cf', __FILE__)
    V8I = File.expand_path('../templates/example_template.v8i', __FILE__)
    HELLO_EPF = File.expand_path('../templates/hello.epf', __FILE__)
  end

  module IbMaker
{'fraction_non_alphanumeric': 0.11177446102819237, 'fraction_numerical': 0.01691542288557214, 'mean_word_length': 4.009966777408638, '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': '210118', 'n_tokens_mistral': 1118, 'n_tokens_neox': 1046, 'n_words': 230}