<commit_before>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by <NAME>
# Copyright (c) 2015 <NAME>
#
# License: MIT
#

"""This module exports the Tlec plugin class."""

import sublime
from SublimeLinter.lint import Linter, util

class Tlec(Linter):

    """Provides an interface to tlec."""

    def cmd(self):
        return [self.executable_path, sublime.load_settings('Epages6.sublime-settings').get('path'), '--vm=' + self.view.settings().get('ep6_vm'), '--lint', '@'];

    executable = 'perl'
    syntax = ('html', 'tle')
    regex = r'(?P<message>.+?) at line (?P<line>\d+)(, near (?P<near>.+?))?'
    error_stream = util.STREAM_BOTH
    tempfile_suffix = 'html'<commit_msg>Make linter executable for python/changed epages6 sublime plugin<commit_after>#
# linter.py
# Linter for SublimeLinter3, a code checking framework for Sublime Text 3
#
# Written by <NAME>
# Copyright (c) 2015 <NAME>
#
# License: MIT
#

"""This module exports the Tlec plugin class."""

import sublime
from SublimeLinter.lint import Linter, util

class Tlec(Linter):

    """Provides an interface to tlec."""

    def cmd(self):
        return [self.executable_path, sublime.packages_path() +  '/Epages6/ep6-tools.py', '--vm', self.view.settings().get('ep6vm')['vm'], '--lint', '--file', self.view.file_name(), '--user', 'root', '--password', '<PASSWORD>', '--ignore-me', '@'];

    executable = 'python3'
    syntax = ('html', 'tle')
    regex = r'(?P<message>.+?) at line (?P<line>\d+)(, near (?P<near>.+?))?'
    error_stream = util.STREAM_BOTH
    tempfile_suffix = 'html'
{'fraction_non_alphanumeric': 0.18509316770186335, 'fraction_numerical': 0.011801242236024845, 'mean_word_length': 4.098101265822785, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '279251', 'n_tokens_mistral': 596, 'n_tokens_neox': 565, 'n_words': 148}