<commit_before>'use babel';

export default {
  config: {
    vagrantExecutablePath: {
      title: 'Vagrant Executable Path',
      type: 'string',
      description: 'Path to Vagrant executable (e.g. /usr/bin/vagrant) if not in shell env path.',
      default: 'vagrant',
    }
  },

  provideLinter() {
    return {<commit_msg>check for vagrant version without validate<commit_after>'use babel';

export default {
  config: {
    vagrantExecutablePath: {
      title: 'Vagrant Executable Path',
      type: 'string',
      description: 'Path to Vagrant executable (e.g. /usr/bin/vagrant) if not in shell env path.',
      default: 'vagrant',
    }
  },

  // activate linter to check for proper version
  activate() {
    const helpers = require("atom-linter");

    // check for vagrant >= minimum version
    helpers.exec(atom.config.get('linter-vagrant-validate.vagrantExecutablePath'), ['validate']).then(output => {
      if (/Usage: vagrant/.exec(output)) {
        atom.notifications.addError(
          'The vagrant installed in your path is too old to support the vagrant validate command.',
          {
            detail: "Please upgrade your version of vagrant to >= 1.9.4.\n"
          }
        );
      }
    });
  },

  provideLinter() {
    return {
{'fraction_non_alphanumeric': 0.12371946414499606, 'fraction_numerical': 0.002364066193853428, 'mean_word_length': 2.5977337110481584, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '5120491', 'n_tokens_mistral': 393, 'n_tokens_neox': 386, 'n_words': 109}