<commit_before># frozen_string_literal: true
class HoundConfig
  LINTERS = [
    Linter::CoffeeScript,
    Linter::Credo,
    Linter::Eslint,
    Linter::Flog,
    Linter::Go,
    Linter::Haml,
    Linter::Jshint,
    Linter::Remark,
    Linter::Python,
    Linter::Reek,
    Linter::Ruby,
    Linter::Scss,
    Linter::Swift,
  ].freeze
  LINTER_NAMES = LINTERS.map { |klass| klass.name.demodulize.underscore }.freeze
  BETA_LINTERS = %w(
    credo
    eslint
    flog
    reek
    remark
    python
    tslint
  ).freeze
  CONFIG_FILE = ".hound.yml"

  attr_reader_initialize :commit

  def content
    @_content ||= default_config.deep_merge(resolved_conflicts_config)
  end

  def linter_enabled?(name)
    key = name.downcase
    config = options_for(key)

    !!config["enabled"]
  end<commit_msg>Add TSLint to the list of linters to run<commit_after># frozen_string_literal: true
class HoundConfig
  LINTERS = [
    Linter::CoffeeScript,
    Linter::Credo,
    Linter::Eslint,
    Linter::Flog,
    Linter::Go,
    Linter::Haml,
    Linter::Jshint,
    Linter::Remark,
    Linter::Python,
    Linter::Reek,
    Linter::Ruby,
    Linter::Scss,
    Linter::Swift,
    Linter::Tslint,
  ].freeze
  LINTER_NAMES = LINTERS.map { |klass| klass.name.demodulize.underscore }.freeze
  BETA_LINTERS = %w(
    credo
    eslint
    flog
    reek
    remark
    python
    tslint
  ).freeze
  CONFIG_FILE = ".hound.yml"

  attr_reader_initialize :commit

  def content
    @_content ||= default_config.deep_merge(resolved_conflicts_config)
  end

  def linter_enabled?(name)
    key = name.downcase
    config = options_for(key)

    !!config["enabled"]
  end
{'fraction_non_alphanumeric': 0.11070780399274047, 'fraction_numerical': 0.0, 'mean_word_length': 3.135, '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': '2613123', 'n_tokens_mistral': 647, 'n_tokens_neox': 624, 'n_words': 112}