<commit_before>{CompositeDisposable} = require('atom')

module.exports =
  activate: ->
    require('atom-package-deps').install('starbound-linter-lua');
    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.config.observe 'starbound-linter-lua.executablePath', (executablePath) =>
      @executablePath = executablePath
  deactivate: ->
    @subscriptions.dispose()
  provideLinter: ->
    helpers = require('atom-linter')
    regex = \
    '^.+?:.+?:' +
      '(?<line>\\d+):\\s+' +
      '(?<message>.+?' +
      '(?:near (?<near>.+)|$))'
    provider =
      grammarScopes: ['source.lua']
      scope: 'file'
      lintOnFly: true
      lint: (textEditor) =>
        parameters = []
        parameters.push('-bl')
        parameters.push('-') # to indicate that the input is in stdin
        execOpts =
          stdin: textEditor.getText()
          stream: 'stderr'
          allowEmptyStderr: true

        return helpers.exec(__dirname + "\\luajit\\luajit.exe", parameters, execOpts).then (output) ->
          return helpers.parse(output, regex, filePath: textEditor.getPath()).map (error) ->
            error.type = 'Error'<commit_msg>pusing the fix that was supposed to be pushed yesterday<commit_after>{CompositeDisposable} = require('atom')

module.exports =
  activate: ->
    require('atom-package-deps').install('starbound-linter-lua');
    @subscriptions = new CompositeDisposable
    @subscriptions.add atom.config.observe 'starbound-linter-lua.executablePath', (executablePath) =>
      @executablePath = executablePath
  deactivate: ->
    @subscriptions.dispose()
  provideLinter: ->
    helpers = require('atom-linter')
    regex = \
    '^.+?:.+?:' +
      '(?<line>\\d+):\\s+' +
      '(?<message>.+?' +
      '(?:near (?<near>.+)|$))'
    provider =
      grammarScopes: ['source.lua']
      scope: 'file'
      lintOnFly: true
      lint: (textEditor) =>
        parameters = []
        parameters.push('-bl')
        parameters.push('-') # to indicate that the input is in stdin
        execOpts =
          stdin: textEditor.getText()
          stream: 'stderr'
          allowEmptyStderr: true

        return helpers.exec(__dirname + "..\\..\\..\\\luajit\\luajit.exe", parameters, execOpts).then (output) ->
          return helpers.parse(output, regex, filePath: textEditor.getPath()).map (error) ->
            error.type = 'Error'
{'fraction_non_alphanumeric': 0.16827528325639948, 'fraction_numerical': 0.0, 'mean_word_length': 2.6733436055469952, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '3167109', 'n_tokens_mistral': 763, 'n_tokens_neox': 738, 'n_words': 138}