<commit_before>linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"

class LinterPyflakes extends Linter
  # The syntax that the linter handles. May be a string or
  # list/tuple of strings. Names should be all lowercase.
  @syntax: 'source.python'

  # A string, list, tuple or callable that returns a string, list or tuple,
  # containing the command line (with arguments) used to lint.
  cmd: 'pyflakes'

  executablePath: null

  linterName: 'pyflakes'

  # A regex pattern used to extract information from the executable's output.
  # regex: ""/path/to/python/file.py:28: redefinition of unused 'models' from line 5"
  regex: ':(?<line>\\d+): (?<message>.*?)\n'

  constructor: (editorView)->
    @executablePath = atom.config.get 'linter-pyflakes.pyflakesExecutablePath'

module.exports = LinterPyflakes<commit_msg>Call constructor to initialize @cwd<commit_after>linterPath = atom.packages.getLoadedPackage("linter").path
Linter = require "#{linterPath}/lib/linter"

class LinterPyflakes extends Linter
  # The syntax that the linter handles. May be a string or
  # list/tuple of strings. Names should be all lowercase.
  @syntax: 'source.python'

  # A string, list, tuple or callable that returns a string, list or tuple,
  # containing the command line (with arguments) used to lint.
  cmd: 'pyflakes'

  executablePath: null

  linterName: 'pyflakes'

  # A regex pattern used to extract information from the executable's output.
  # regex: ""/path/to/python/file.py:28: redefinition of unused 'models' from line 5"
  regex: ':(?<line>\\d+): (?<message>.*?)\n'

  constructor: (editor)->
    super editor
    @executablePath = atom.config.get 'linter-pyflakes.pyflakesExecutablePath'

module.exports = LinterPyflakes
{'fraction_non_alphanumeric': 0.11311198649409117, 'fraction_numerical': 0.0033764772087788407, 'mean_word_length': 4.404255319148936, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7190160', 'n_tokens_mistral': 578, 'n_tokens_neox': 555, 'n_words': 181}