id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
36,900
FilterHelper.py
coala_coala/coalib/parsing/FilterHelper.py
from collections import OrderedDict from coalib.parsing.InvalidFilterException import InvalidFilterException from coalib.parsing.filters import available_filters from coalib.parsing.DefaultArgParser import default_arg_parser def is_valid_filter(filter_name): return filter_name in available_filters def _filter_...
4,992
Python
.py
127
32.732283
79
0.6677
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,901
LineParser.py
coala_coala/coalib/parsing/LineParser.py
import logging import re from coala_utils.string_processing.StringConverter import StringConverter from coala_utils.string_processing import (unescape, convert_to_raw, position_is_escaped, unescaped_rstrip) class LineParser: d...
9,973
Python
.py
191
35.921466
79
0.522252
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,902
CanDetectFilter.py
coala_coala/coalib/parsing/filters/CanDetectFilter.py
from coalib.parsing.filters.decorators import typed_filter @typed_filter('bearclass') def can_detect_filter(bear, args): """ Filters the bears by ``CAN_DETECT``. :param bear: Bear object. :param args: Set of detectable issue types on which ``bear`` is to be filtered. :return: ...
494
Python
.py
12
34.75
73
0.651357
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,903
SectionTagsFilter.py
coala_coala/coalib/parsing/filters/SectionTagsFilter.py
from coalib.parsing.filters.decorators import typed_filter @typed_filter(('bearclass', 'Bear', 'Section')) def section_tags_filter(section_or_bear, args): """ Filters the bears or sections by ``tags``. :param section_or_bear: A section or bear instance on which filtering needs...
1,130
Python
.py
25
37.56
74
0.632393
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,904
__init__.py
coala_coala/coalib/parsing/filters/__init__.py
""" This package holds filter functions. Filter objects are used to get a list of bears with specific properties. """ from .LanguageFilter import language_filter from .CanDetectFilter import can_detect_filter from .CanFixFilter import can_fix_filter from .SectionTagsFilter import section_tags_filter available_filters...
536
Python
.py
13
33.615385
63
0.679463
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,905
LanguageFilter.py
coala_coala/coalib/parsing/filters/LanguageFilter.py
from coalib.parsing.filters.decorators import typed_filter @typed_filter('bearclass') def language_filter(bear, args): """ Filters the bears by ``LANGUAGES``. :param bear: Bear object. :param args: Set of languages on which ``bear`` is to be filtered. :return: ``True`` if this bear matches th...
468
Python
.py
11
37.181818
77
0.65859
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,906
CanFixFilter.py
coala_coala/coalib/parsing/filters/CanFixFilter.py
from coalib.parsing.filters.decorators import typed_filter @typed_filter('bearclass') def can_fix_filter(bear, args): """ Filters the bears by ``CAN_FIX``. :param bear: Bear object. :param args: Set of fixable issue types on which ``bear`` is to be filtered. :return: ``True``...
476
Python
.py
12
33.25
72
0.637744
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,907
decorators.py
coala_coala/coalib/parsing/filters/decorators.py
from inspect import getmro from functools import wraps def typed_filter(type_classes, msg=None): """ Used to enforce type of the first argument of a method by its class name as string. Raises NotImplementedError if the type does not match. Primarily used to enforce type of a filter. :param ty...
1,399
Python
.py
32
31.46875
71
0.56701
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,908
LogPrinterThread.py
coala_coala/coalib/processes/LogPrinterThread.py
import logging import queue import threading from coalib.processes.communication.LogMessage import LogMessage class LogPrinterThread(threading.Thread): """ This is the Thread object that outputs all log messages it gets from its message_queue. Setting obj.running = False will stop within the next 0.1...
856
Python
.py
24
26.625
76
0.62636
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,909
CONTROL_ELEMENT.py
coala_coala/coalib/processes/CONTROL_ELEMENT.py
from coalib.misc.Enum import enum CONTROL_ELEMENT = enum('LOCAL', 'GLOBAL', 'LOCAL_FINISHED', 'GLOBAL_FINISHED')
114
Python
.py
2
55.5
78
0.756757
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,910
BearRunning.py
coala_coala/coalib/processes/BearRunning.py
import queue import traceback from coalib.bears.BEAR_KIND import BEAR_KIND from coalib.bears.GlobalBear import GlobalBear from coalib.bears.LocalBear import LocalBear from coalib.misc import Constants from coalib.processes.communication.LogMessage import LOG_LEVEL, LogMessage from coalib.processes.CONTROL_ELEMENT impo...
24,443
Python
.py
495
33.757576
79
0.545999
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,911
Processing.py
coala_coala/coalib/processes/Processing.py
from itertools import chain import logging import os import platform import queue import subprocess from coala_utils.string_processing.StringConverter import StringConverter from coalib.collecting.Collectors import collect_files from coalib.misc.Exceptions import log_exception from coalib.output.printers.LOG_LEVEL im...
35,958
Python
.py
750
32.862667
80
0.549782
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,912
DebugProcessing.py
coala_coala/coalib/processes/DebugProcessing.py
""" Replacement for ``multiprocessing`` library in coala's debug mode. """ import logging import sys import queue from functools import partial from coalib.processes.communication.LogMessage import LogMessage __all__ = ['Manager', 'Process', 'Queue'] class Manager: """ A debug replacement for ``multiproces...
2,139
Python
.py
62
27.903226
78
0.635306
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,913
LogMessage.py
coala_coala/coalib/processes/communication/LogMessage.py
from datetime import datetime from coalib.output.printers.LOG_LEVEL import LOG_LEVEL class LogMessage: def __init__(self, log_level, *messages, delimiter=' ', timestamp=None): if log_level not in LOG_LEVEL.reverse: raise Val...
1,633
Python
.py
37
33.72973
77
0.596336
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,914
FileProxy.py
coala_coala/coalib/io/FileProxy.py
import logging from os import path from coala_utils.FileUtils import detect_encoding from coala_utils.decorators import (enforce_signature, generate_eq) @generate_eq('filename') class FileProxy: """ ``FileProxy`` is responsible for providing access to contents of files and also provides methods to update...
10,811
Python
.py
298
27.134228
78
0.607232
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,915
File.py
coala_coala/coalib/io/File.py
import os from coala_utils.decorators import generate_eq from cached_property import cached_property @generate_eq('name', 'timestamp') class File: """ The ``File`` is a class to provide different views on a file. It contains the following information about the file: * The filename (absolute file...
3,629
Python
.py
121
22.090909
77
0.570155
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,916
Directory.py
coala_coala/coalib/io/Directory.py
import os from coalib.parsing.Globbing import relative_recursive_glob from coala_utils.decorators import generate_eq @generate_eq('path', 'timestamp') class Directory: """ The ``Directory`` class acts as an interface to directories and provides useful information about them such as: * The direct...
2,208
Python
.py
69
24.623188
71
0.616328
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,917
Collectors.py
coala_coala/coalib/collecting/Collectors.py
import functools import logging import os import pkg_resources import itertools import re from types import ModuleType from coalib.bears.BEAR_KIND import BEAR_KIND from coalib.collecting.Importers import iimport_objects from coala_utils.decorators import yield_once from coalib.misc.Exceptions import log_exception from...
18,280
Python
.py
389
36.465296
80
0.605826
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,918
Importers.py
coala_coala/coalib/collecting/Importers.py
from contextlib import ExitStack import inspect import os import platform import sys from coala_utils.ContextManagers import suppress_stdout from coala_utils.decorators import arguments_to_lists, yield_once def _import_module(file_path): if not os.path.exists(file_path): raise ImportError module_nam...
6,342
Python
.py
146
35.363014
78
0.649302
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,919
Dependencies.py
coala_coala/coalib/collecting/Dependencies.py
from coalib.core.CircularDependencyError import CircularDependencyError def _resolve(bears, resolved_bears, seen): for bear in bears: if bear in resolved_bears: continue missing = bear.missing_dependencies(resolved_bears) if not missing: resolved_bears.append(bear)...
1,046
Python
.py
26
32.038462
76
0.666667
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,920
Section.py
coala_coala/coalib/settings/Section.py
import copy import os import sys from collections import OrderedDict from coalib.bearlib.aspects import AspectList from coalib.collecting.Collectors import collect_registered_bears_dirs from coala_utils.decorators import enforce_signature, generate_repr from coalib.misc.DictUtilities import update_ordered_dict_key fro...
13,609
Python
.py
320
32.534375
79
0.584241
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,921
FunctionMetadata.py
coala_coala/coalib/settings/FunctionMetadata.py
from collections import OrderedDict from copy import copy from inspect import getfullargspec, ismethod from coala_utils.decorators import enforce_signature from coalib.settings.DocstringMetadata import DocstringMetadata class FunctionMetadata: str_nodesc = 'No description given.' str_optional = "Optional, de...
11,746
Python
.py
264
32.727273
80
0.571553
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,922
ConfigurationGathering.py
coala_coala/coalib/settings/ConfigurationGathering.py
import os import sys import logging from coalib.collecting.Collectors import ( collect_all_bears_from_sections, filter_section_bears_by_languages) from coalib.bearlib.languages.Language import Language, UnknownLanguageError from coalib.misc import Constants from coalib.output.ConfWriter import ConfWriter from coal...
20,172
Python
.py
420
36.388095
80
0.598881
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,923
DocstringMetadata.py
coala_coala/coalib/settings/DocstringMetadata.py
import inspect from collections import OrderedDict from coalib.misc.Enum import enum class DocstringMetadata: _ParseMode = enum('DESCRIPTION', 'PARAM', 'RETVAL') def __init__(self, desc, param_dict, retval_desc): """ Represents a docstring of a python class or function. :param desc:...
2,505
Python
.py
60
29.05
79
0.533361
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,924
Annotations.py
coala_coala/coalib/settings/Annotations.py
def typechain(*args): # Start ignoring LineContinuationBear """ Returns function which applies the first transformation it can from args and returns transformed value, or the value itself if it is in args. >>> function = typechain(int, 'a', ord, None) >>> function("10") 10 >>> function(...
1,634
Python
.py
48
25.375
79
0.58976
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,925
SectionFilling.py
coala_coala/coalib/settings/SectionFilling.py
import copy from inspect import signature import logging from coalib.bears.BEAR_KIND import BEAR_KIND from coalib.collecting import Dependencies from coalib.collecting.Collectors import ( collect_bears, collect_bears_by_aspects) from coalib.settings.Setting import Setting def fill_section(section, acquire_settin...
5,282
Python
.py
107
36.065421
79
0.584028
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,926
Setting.py
coala_coala/coalib/settings/Setting.py
import os from collections import Iterable, OrderedDict from coala_utils.decorators import ( enforce_signature, generate_repr, ) from coala_utils.string_processing.StringConverter import StringConverter from coalib.bearlib.languages.Language import Language, UnknownLanguageError from coalib.parsing.Globbing im...
12,018
Python
.py
262
33.774809
79
0.570401
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,927
Constants.py
coala_coala/coalib/misc/Constants.py
# -*- coding: utf-8 -*- __all__ = ( 'VERSION', ) import os import re import logging # Do not import any libraries here, directly or via other coalib modules. from coalib import VERSION THIS_IS_A_BUG = ('This is a bug. We are sorry for the inconvenience. ' 'Please contact the developers for ass...
4,645
Python
.py
124
23.362903
77
0.450994
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,928
Exceptions.py
coala_coala/coalib/misc/Exceptions.py
import logging import traceback from coalib.misc import Constants from coalib.output.printers.LOG_LEVEL import LOG_LEVEL from pkg_resources import VersionConflict def get_exitcode(exception, log_printer=None): if isinstance(exception, KeyboardInterrupt): # Ctrl+C print('Program terminated by user.') ...
1,262
Python
.py
31
32.83871
77
0.680556
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,929
Asyncio.py
coala_coala/coalib/misc/Asyncio.py
"""Asyncio backports for Python 3.4.3 compatibility.""" import concurrent.futures import threading import logging from asyncio import coroutines from asyncio.futures import Future try: # pylint: disable=ungrouped-imports from asyncio import ensure_future except ImportError: # Python 3.4.3 and earlier has t...
5,833
Python
.py
141
34.191489
78
0.675977
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,930
BuildManPage.py
coala_coala/coalib/misc/BuildManPage.py
import argparse import datetime from distutils.core import Command from distutils.errors import DistutilsOptionError class BuildManPage(Command): # Start ignoring LineContinuationBear """ Add a ``build_manpage`` command to your setup.py. To use this Command class add a command to call this class:: ...
7,235
Python
.py
176
29.767045
76
0.564709
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,931
CachingUtilities.py
coala_coala/coalib/misc/CachingUtilities.py
import hashlib import logging import os import pickle import appdirs from coalib.misc import Constants from coalib import VERSION USER_DATA_DIR = appdirs.user_data_dir('coala', version=VERSION) # USER_DATA_DIR was originally defined in Constants, and is set for backwards # compatibility, however access outside of Ca...
7,119
Python
.py
163
34.98773
79
0.630293
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,932
Compatibility.py
coala_coala/coalib/misc/Compatibility.py
import json try: # JSONDecodeError class is available since Python 3.5.x. JSONDecodeError = json.decoder.JSONDecodeError except AttributeError: # pragma Python 3.5,3.6: no cover JSONDecodeError = ValueError try: from asyncio import run_coroutine_threadsafe except ImportError: # pragma: no cover f...
446
Python
.py
14
28.714286
60
0.762791
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,933
IterUtilities.py
coala_coala/coalib/misc/IterUtilities.py
from itertools import tee def partition(iterable, predicate): """ Partitions the iterable into two iterables based on the given predicate. :param predicate: A function that takes an item of the iterable and returns a boolean :return: Two iterators pointing to the ...
508
Python
.py
11
39
76
0.657201
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,934
Shell.py
coala_coala/coalib/misc/Shell.py
from contextlib import contextmanager import platform import shlex from subprocess import PIPE, Popen from shutil import which class ShellCommandResult(tuple): """ The result of a :func:`coalib.misc.run_shell_command` call. It is based on a ``(stdout, stderr)`` string tuple like it is returned form `...
5,259
Python
.py
123
35.406504
79
0.622774
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,935
DeprecationUtilities.py
coala_coala/coalib/misc/DeprecationUtilities.py
import logging def check_deprecation(param_list): """ Shows a deprecation warning message if the parameters passed are not ``None``. :param param_list: A dictionary of parameters with their names mapped to their values being checked for deprecation. >>> from testfixtures import L...
903
Python
.py
24
31.791667
68
0.617143
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,936
Caching.py
coala_coala/coalib/misc/Caching.py
import logging import time import os from coala_utils.decorators import enforce_signature from coalib.misc.CachingUtilities import ( pickle_load, pickle_dump, delete_files) from coalib.misc.Exceptions import log_exception from coalib.processes.Processing import get_file_dict from coalib.io.FileProxy import ( F...
10,411
Python
.py
248
31.504032
80
0.593128
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,937
Enum.py
coala_coala/coalib/misc/Enum.py
def enum(*sequential, **named): enums = dict(zip(sequential, range(len(sequential))), **named) str_dict = enums.copy() enums['reverse'] = dict((value, key) for key, value in enums.items()) enums['str_dict'] = str_dict return type('Enum', (), enums)
270
Python
.py
6
40.5
73
0.638783
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,938
DictUtilities.py
coala_coala/coalib/misc/DictUtilities.py
from collections import defaultdict, Iterable, OrderedDict def inverse_dicts(*dicts): """ Inverts the dicts, e.g. {1: 2, 3: 4} and {2: 3, 4: 4} will be inverted {2: [1], 3: [2], 4: [3, 4]}. This also handles dictionaries with Iterable items as values e.g. {1: [1, 2, 3], 2: [3, 4, 5]} and {2: [1], ...
1,139
Python
.py
27
33.962963
76
0.574141
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,939
Interactions.py
coala_coala/coalib/output/Interactions.py
import logging def fail_acquire_settings(log_printer, settings_names_dict): """ This method throws an exception if any setting needs to be acquired. :param log_printer: Printer responsible for logging the messages. :param settings_names_dict: A dictionary with the settings name as key and ...
1,259
Python
.py
24
40.416667
78
0.600488
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,940
JSONEncoder.py
coala_coala/coalib/output/JSONEncoder.py
import collections import json import re from datetime import datetime from coala_utils.decorators import get_public_members from coalib.settings.FunctionMetadata import FunctionMetadata def create_json_encoder(**kwargs): class JSONEncoder(json.JSONEncoder): @classmethod def _filter_params(cls, ...
1,348
Python
.py
31
32.225806
71
0.598017
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,941
ConsoleInteraction.py
coala_coala/coalib/output/ConsoleInteraction.py
import copy import logging import platform import os from collections import OrderedDict from termcolor import colored try: # This import has side effects and is needed to make input() behave nicely import readline # pylint: disable=unused-import except ImportError: # pragma: no cover pass from coalib....
43,543
Python
.py
929
32.296017
80
0.549696
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,942
Logging.py
coala_coala/coalib/output/Logging.py
from datetime import datetime from collections import Counter import json import io import logging import logging.config class CounterHandler(logging.Handler): """ A logging handler which counts the number of calls for each logging level. """ _call_counter = Counter() @classmethod def res...
3,221
Python
.py
112
19.071429
79
0.504202
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,943
ConfWriter.py
coala_coala/coalib/output/ConfWriter.py
from itertools import chain import os from types import MappingProxyType from pyprint.ClosableObject import ClosableObject from coala_utils.string_processing import escape from coalib.settings.Section import Section class ConfWriter(ClosableObject): def __init__(self, file_name, ...
6,681
Python
.py
147
30.945578
79
0.524285
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,944
LogPrinter.py
coala_coala/coalib/output/printers/LogPrinter.py
import traceback import logging from coalib.output.printers.LOG_LEVEL import LOG_LEVEL from coalib.processes.communication.LogMessage import LogMessage class LogPrinterMixin: """ Provides access to the logging interfaces (e.g. err, warn, info) by routing them to the log_message method, which should be im...
6,097
Python
.py
136
30.419118
80
0.548947
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,945
ListLogPrinter.py
coala_coala/coalib/output/printers/ListLogPrinter.py
from pyprint.Printer import Printer from coalib.output.printers.LOG_LEVEL import LOG_LEVEL from coalib.output.printers.LogPrinter import LogPrinterMixin from coalib.processes.communication.LogMessage import LogMessage class ListLogPrinter(Printer, LogPrinterMixin): """ A ListLogPrinter is a log printer which...
978
Python
.py
23
34.956522
78
0.678647
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,946
__init__.py
coala_coala/coalib/output/printers/__init__.py
""" This package holds printer objects. Printer objects are general purpose and not tied to coala. If you need logging capabilities please take a look at the LogPrinter object which adds logging capabilities "for free" if used as base class for any other printer. """
269
Python
.py
7
37.285714
79
0.812261
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,947
LOG_LEVEL.py
coala_coala/coalib/output/printers/LOG_LEVEL.py
import logging from coalib.misc.Enum import enum LOG_LEVEL = enum(DEBUG=logging.DEBUG, INFO=logging.INFO, WARNING=logging.WARNING, ERROR=logging.ERROR) LOG_LEVEL_COLORS = {LOG_LEVEL.ERROR: 'red', LOG_LEVEL.WARNING: 'yellow', LOG...
387
Python
.py
10
26.5
48
0.553191
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,948
LocalBearTestHelper.py
coala_coala/coalib/testing/LocalBearTestHelper.py
import logging import queue import unittest from contextlib import contextmanager, ExitStack from unittest.mock import patch from coalib.bearlib.abstractions.LinterClass import LinterClass from coalib.testing.BearTestHelper import generate_skip_decorator from coalib.bears.LocalBear import LocalBear from coala_utils.Co...
19,188
Python
.py
373
31.536193
79
0.492356
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,949
BearTestHelper.py
coala_coala/coalib/testing/BearTestHelper.py
from unittest.case import skip, skipIf def generate_skip_decorator(bear): """ Creates a skip decorator for a `unittest` module test from a bear. `check_prerequisites` is used to determine a test skip. :param bear: The bear whose prerequisites determine the test skip. :return: A decorator tha...
513
Python
.py
11
41.181818
70
0.708249
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,950
BaseTestHelper.py
coala_coala/coalib/testing/BaseTestHelper.py
from coala_utils.Comparable import Comparable def _assert_comparable_equal(observed_result, expected_result): """ Compares individual fields of the result objects using `__compare_fields__` of `coala_utils.Comparable` class and yields messages in case of an attribute mismatch. """ if not len(...
1,999
Python
.py
43
34.116279
73
0.585303
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,951
__init__.py
coala_coala/coalib/bearlib/__init__.py
""" The bearlib is an optional library designed to ease the task of any Bear. Just as the rest of coala the bearlib is designed to be as easy to use as possible while offering the best possible flexibility. """ import logging from functools import wraps from coalib.settings.FunctionMetadata import FunctionMetadata ...
7,220
Python
.py
161
34.310559
78
0.57786
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,952
Linter.py
coala_coala/coalib/bearlib/abstractions/Linter.py
from contextlib import contextmanager from functools import partial, partialmethod import logging import inspect from itertools import chain import re import shutil from subprocess import check_call, CalledProcessError, DEVNULL from types import MappingProxyType from cli_helpers.utils import strip_ansi from coalib.bea...
45,591
Python
.py
906
35.551876
80
0.548807
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,953
LinterClass.py
coala_coala/coalib/bearlib/abstractions/LinterClass.py
from abc import ABCMeta class LinterClass(metaclass=ABCMeta): """ Every ``linter`` is also a subclass of the ``LinterClass`` class. """
150
Python
.py
5
26.2
69
0.692308
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,954
ExternalBearWrap.py
coala_coala/coalib/bearlib/abstractions/ExternalBearWrap.py
import json import inspect from functools import partial from collections import OrderedDict from coalib.bears.LocalBear import LocalBear from coala_utils.decorators import enforce_signature from coalib.misc.Shell import run_shell_command from coalib.results.Result import Result from coalib.results.SourceRange import ...
7,473
Python
.py
174
28.856322
79
0.545079
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,955
__init__.py
coala_coala/coalib/bearlib/abstractions/__init__.py
""" The abstractions package contains classes that serve as interfaces for helper classes in the bearlib. """
110
Python
.py
4
26.5
70
0.811321
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,956
SectionCreatable.py
coala_coala/coalib/bearlib/abstractions/SectionCreatable.py
from coalib.settings.FunctionMetadata import FunctionMetadata class SectionCreatable: """ A SectionCreatable is an object that is creatable out of a section object. Thus this is the class for many helper objects provided by the bearlib. If you want to use an object that inherits from this class the f...
2,611
Python
.py
58
37.258621
79
0.688266
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,957
__init__.py
coala_coala/coalib/bearlib/naming_conventions/__init__.py
import re def to_camelcase(string): """ Converts the given string to camel-case. >>> to_camelcase('Hello_world') 'helloWorld' >>> to_camelcase('__Init__file__') '__initFile__' >>> to_camelcase('') '' >>> to_camelcase('alreadyCamelCase') 'alreadyCamelCase' >>> to_camelcase(...
5,194
Python
.py
157
23.121019
74
0.458533
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,958
SpacingHelper.py
coala_coala/coalib/bearlib/spacing/SpacingHelper.py
from coalib.bearlib.abstractions.SectionCreatable import SectionCreatable from coala_utils.decorators import enforce_signature class SpacingHelper(SectionCreatable): DEFAULT_TAB_WIDTH = 4 def __init__(self, tab_width: int = DEFAULT_TAB_WIDTH): """ Creates a helper object for spacing operation...
3,827
Python
.py
96
28.0625
78
0.545724
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,959
Metadata.py
coala_coala/coalib/bearlib/aspects/Metadata.py
from coalib.bearlib.aspects import Root, Taste @Root.subaspect class Metadata: """ This describes any aspect that is related to metadata that is not inside your source code. """ class Docs: example = """ Commit message, commit message shortlog, commit message body, etc... "...
9,026
Python
.py
256
27.863281
80
0.639414
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,960
Smell.py
coala_coala/coalib/bearlib/aspects/Smell.py
from coalib.bearlib.aspects import Taste, Root @Root.subaspect class Smell: """ Symptom in a piece of code that possibly indicates a deeper problem. `Smells` are certain structures in a code that indicate violation of fundamental design principles. They are usually not bugs; they are not technica...
20,460
Python
.py
545
28.244037
80
0.603536
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,961
Formatting.py
coala_coala/coalib/bearlib/aspects/Formatting.py
from coalib.bearlib.aspects import Root, Taste @Root.subaspect class Formatting: """ The visual appearance of source code. """ class Docs: example = """ # Here is an example of Python code with lots of # formatting issues including: trailing spaces, missing spaces # aro...
12,556
Python
.py
353
27.628895
79
0.612176
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,962
meta.py
coala_coala/coalib/bearlib/aspects/meta.py
import re from inspect import getmembers, signature from coala_utils.decorators import generate_repr from .base import aspectbase from .docs import Documentation from .exceptions import AspectTypeError from .taste import Taste class aspectclass(type): """ Metaclass for aspectclasses. Root aspectclass ...
3,297
Python
.py
88
29.375
78
0.617896
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,963
Security.py
coala_coala/coalib/bearlib/aspects/Security.py
from coalib.bearlib.aspects import Root @Root.subaspect class Security: """ This aspects checks for code with flaws (or security weaknesses) in your codebase. """ class Docs: example = """ char buf[1024]; ssizet_t len; if ((len = readlink("/modules/pass1", buf, size...
1,132
Python
.py
29
30.931034
80
0.633969
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,964
root.py
coala_coala/coalib/bearlib/aspects/root.py
from .base import aspectbase from .meta import aspectclass class Root(aspectbase, metaclass=aspectclass): """ The root aspectclass. Define sub-aspectclasses with class-bound ``.subaspect`` decorator. Definition string is taken from doc-string of decorated class. Remaining docs are taken from a ne...
4,070
Python
.py
105
33.295238
75
0.603807
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,965
collections.py
coala_coala/coalib/bearlib/aspects/collections.py
import itertools import coalib.bearlib.aspects from coalib.bearlib.aspects.meta import isaspect, issubaspect from coalib.bearlib.aspects.base import aspectbase class AspectList(list): """ List-derived container to hold aspects. """ def __init__(self, seq=(), exclude=None, languages=None): ""...
3,629
Python
.py
81
34.17284
78
0.607932
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,966
Redundancy.py
coala_coala/coalib/bearlib/aspects/Redundancy.py
from coalib.bearlib.languages import Language from coalib.bearlib.aspects import Root, Taste @Root.subaspect class Redundancy: """ This aspect describes redundancy in your source code. """ class Docs: example = """ int foo(int iX) { int iY = iX*2; retur...
7,319
Python
.py
237
23.046414
80
0.591257
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,967
__init__.py
coala_coala/coalib/bearlib/aspects/__init__.py
import re import sys from importlib import import_module from inspect import getmembers from pkgutil import iter_modules from types import ModuleType from .base import aspectbase from .decorators import ( map_setting_to_aspect, map_ambiguous_setting_to_aspect, ) from .exceptions import (AspectTypeError, Aspect...
3,712
Python
.py
89
33.426966
78
0.653344
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,968
taste.py
coala_coala/coalib/bearlib/aspects/taste.py
from coala_utils.decorators import enforce_signature from coalib.bearlib.languages import Languages class TasteError(AttributeError): """ A taste is not allowed to be accessed. """ class TasteMeta(type): """ Metaclass for :class:`coalib.bearlib.aspects.Taste` Allows defining taste cast typ...
3,322
Python
.py
78
33.666667
77
0.600062
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,969
base.py
coala_coala/coalib/bearlib/aspects/base.py
import functools import re from coalib.bearlib.languages import Language import coalib.bearlib.aspects from .taste import TasteError def get_subaspect(parent, subaspect): """ Get a subaspect from an aspectclass or aspectclass instance. >>> import coalib.bearlib.aspects as coala_aspects >>> metadata...
6,123
Python
.py
145
34.441379
77
0.656055
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,970
exceptions.py
coala_coala/coalib/bearlib/aspects/exceptions.py
class AspectTypeError(TypeError): """ This error is raised when an object is not an ``aspectclass`` or an instance of ``aspectclass`` """ def __init__(self, item): self.item = item message = ('{} is not an aspectclass or an instance of an ' 'aspectclass'.format(re...
1,390
Python
.py
37
29.972973
71
0.613552
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,971
Spelling.py
coala_coala/coalib/bearlib/aspects/Spelling.py
from coalib.bearlib.aspects import Root, Taste @Root.subaspect class Spelling: """ How words should be written. """ class Docs: example = """ 'Tihs si surly som incoreclt speling. `Coala` is always written with a lowercase `c`. """ example_language = 'reStructur...
2,014
Python
.py
61
25.688525
76
0.623523
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,972
decorators.py
coala_coala/coalib/bearlib/aspects/decorators.py
from functools import wraps from .taste import Taste from .meta import aspectclass from coalib.settings.FunctionMetadata import FunctionMetadata def map_setting_to_aspect(**aspectable_setting): """ Map function arguments with aspect and override it if appropriate. This decorator can be used by ``Bear.r...
3,913
Python
.py
80
37.7125
79
0.634812
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,973
docs.py
coala_coala/coalib/bearlib/aspects/docs.py
from inspect import cleandoc from coala_utils.decorators import ( enforce_signature, generate_consistency_check) @generate_consistency_check('definition', 'example', 'example_language', 'importance_reason', 'fix_suggestions') class Documentation: """ This class contains docume...
1,532
Python
.py
33
38.636364
73
0.642331
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,974
LanguageDefinition.py
coala_coala/coalib/bearlib/languages/LanguageDefinition.py
import logging from coala_utils.string_processing import escape from coalib.bearlib.abstractions.SectionCreatable import SectionCreatable from coalib.bearlib.languages import Language from coalib.bearlib.languages.Language import UnknownLanguageError from coalib.settings.Setting import Setting class LanguageDefinit...
3,649
Python
.py
79
37.822785
79
0.647788
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,975
Language.py
coala_coala/coalib/bearlib/languages/Language.py
from collections import OrderedDict from itertools import chain from inspect import isclass, getmembers import operator import re import logging from operator import itemgetter from packaging.version import Version, InvalidVersion from coalib.settings.Annotations import typechain class UnknownLanguageError(Attribut...
18,101
Python
.py
432
33.1875
80
0.597004
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,976
__init__.py
coala_coala/coalib/bearlib/languages/__init__.py
""" This directory holds means to get generic information for specific languages. """ # Start ignoring PyUnusedCodeBear from .Language import Language from .Language import Languages from .definitions.Unknown import Unknown from .definitions.antlr import antlr from .definitions.Bash import Bash from .definitions.C i...
1,843
Python
.py
50
35.78
77
0.861375
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,977
PHP.py
coala_coala/coalib/bearlib/languages/definitions/PHP.py
from coalib.bearlib.languages.Language import Language @Language class PHP: aliases = 'php', extensions = '.php', comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"', "'": "'"} keywords = [ '__halt_compiler', 'abstract', 'and', 'array', ...
1,001
Python
.py
20
43.55
79
0.550562
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,978
CSS.py
coala_coala/coalib/bearlib/languages/definitions/CSS.py
from coalib.bearlib.languages.Language import Language @Language class CSS: extensions = '.css', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"', "'": "'"} multiline_string_delimiters = {} indent_types = {'{': '}'} encapsulators = {'(': ')', '[': ']'} string_delim...
359
Python
.py
10
31.9
54
0.544669
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,979
Java.py
coala_coala/coalib/bearlib/languages/definitions/Java.py
from coalib.bearlib.languages.Language import Language @Language class Java: extensions = '.java', comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"'} multiline_string_delimiters = {} indent_types = {'{': '}'} encapsulators = {'(': ')', '['...
370
Python
.py
11
29.545455
54
0.582633
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,980
PLSQL.py
coala_coala/coalib/bearlib/languages/definitions/PLSQL.py
from coalib.bearlib.languages.Language import Language @Language class PLSQL: aliases = 'PL/SQL',
104
Python
.py
4
23.5
54
0.795918
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,981
m4.py
coala_coala/coalib/bearlib/languages/definitions/m4.py
from coalib.bearlib.languages.Language import Language @Language class m4: extensions = '.m4', comment_delimiters = '#', encapsulators = {'(': ')', '{': '}'}
172
Python
.py
6
25.333333
54
0.640244
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,982
Tcl.py
coala_coala/coalib/bearlib/languages/definitions/Tcl.py
from coalib.bearlib.languages.Language import Language @Language class Tcl: aliases = 'Tcl/Tk', extensions = '.tcl', string_delimiters = {'"': '"'} multiline_string_delimiters = {'"': '"'} encapsulators = {'(': ')', '[': ']', '{': '}'} string_delimiter_escape = {'"': '\\"'}
301
Python
.py
9
29.555556
54
0.565517
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,983
Dart.py
coala_coala/coalib/bearlib/languages/definitions/Dart.py
from coalib.bearlib.languages.Language import Language @Language class Dart: extensions = '.dart', comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"', "'": "'"} multiline_string_delimiters = {'"""': '"""', "'''": "'''"} encapsulators = {'(': ')...
993
Python
.py
20
43.15
79
0.509784
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,984
JSP.py
coala_coala/coalib/bearlib/languages/definitions/JSP.py
from coalib.bearlib.languages.Language import Language @Language class JSP: __qualname__ = 'JavaServer Pages'
116
Python
.py
4
26.5
54
0.790909
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,985
Bash.py
coala_coala/coalib/bearlib/languages/definitions/Bash.py
from coalib.bearlib.languages.Language import Language @Language class Bash: extensions = '.bash', comment_delimiters = '#', multiline_comment_delimiters = {": '": "'"} string_delimiters = {'"': '"', "'": "'", '`': '`'} multiline_string_delimiters = string_delimiters encapsulators = {'[': ']',...
549
Python
.py
15
31.2
62
0.524436
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,986
Haskell.py
coala_coala/coalib/bearlib/languages/definitions/Haskell.py
from coalib.bearlib.languages.Language import Language @Language class Haskell: extensions = '.hs', versions = 1.0, 1.1, 1.2, 1.3, 1.4, 98, 2010 special_chars = list('!#$%&;*:+.,/<=>?@\\^_|-~') comment_delimiters = '--', multiline_comment_delimiters = {'{-': '-}'} keywords = [ 'case', ...
639
Python
.py
16
33.8125
56
0.52818
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,987
antlr.py
coala_coala/coalib/bearlib/languages/definitions/antlr.py
from coalib.bearlib.languages.Language import Language @Language class antlr: aliases = 'antlr3', 'antlr4' versions = 3, 4 extensions = '.g', '.g4' comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {"'": "'"} multiline_string_delimiters = {} in...
681
Python
.py
21
26.904762
57
0.520548
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,988
CPP.py
coala_coala/coalib/bearlib/languages/definitions/CPP.py
from coalib.bearlib.languages.Language import Language @Language class CPP: aliases = 'C++', 'C Plus Plus', 'CPlusPlus', 'CXX' extensions = '.c', '.cpp', '.h', '.hpp' comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"'} multiline_string_delimite...
1,625
Python
.py
29
49.310345
78
0.523212
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,989
SCSS.py
coala_coala/coalib/bearlib/languages/definitions/SCSS.py
from coalib.bearlib.languages.Language import Language @Language class SCSS: extensions = '.scss', comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"', "'": "'"} multiline_string_delimiters = {} encapsulators = {'(': ')', '[': ']'} versions ...
384
Python
.py
11
30.818182
54
0.563342
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,990
DOT.py
coala_coala/coalib/bearlib/languages/definitions/DOT.py
from coalib.bearlib.languages.Language import Language @Language class DOT: aliases = 'DOT', extensions = '.gv', '.dot', comment_delimiters = '//', '#', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"', '<': '>'} indent_types = {'{': '}'} encapsulators = {'(': ')',...
542
Python
.py
17
26.529412
54
0.510516
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,991
TinyBasic.py
coala_coala/coalib/bearlib/languages/definitions/TinyBasic.py
from coalib.bearlib.languages.Language import Language @Language class TinyBasic: aliases = 'tb', extensions = '.tb', comment_delimiters = 'REM', "'" string_delimiters = {'"': '"', "'": "'"} encapsulators = {'(': ')'} versions = {1.0, 2.0} keywords = [ 'PRINT', 'IF', 'THEN', ...
488
Python
.py
17
23.117647
54
0.496802
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,992
Python.py
coala_coala/coalib/bearlib/languages/definitions/Python.py
from coalib.bearlib.languages.Language import Language @Language class Python: aliases = 'py', versions = 2.7, 3.3, 3.4, 3.5, 3.6 extensions = '.py', comment_delimiters = '#', multiline_comment_delimiters = {} string_delimiters = {'"': '"', "'": "'"} multiline_string_delimiters = {'"""': ...
500
Python
.py
14
31.357143
62
0.519669
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,993
Vala.py
coala_coala/coalib/bearlib/languages/definitions/Vala.py
from coalib.bearlib.languages.Language import Language @Language class Vala: extensions = '.vala', '.vapi' comment_delimiters = '//', multiline_comment_delimiters = {'/*': '*/'} string_delimiters = {'"': '"'} multiline_string_delimiters = {'"""': '"""'} indent_types = {'{': '}'} encapsulat...
347
Python
.py
10
30.7
54
0.570149
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,994
D.py
coala_coala/coalib/bearlib/languages/definitions/D.py
from coalib.bearlib.languages.Language import Language @Language class D: extensions = '.d', comment_delimiters = '//', string_delimiters = {'"': '"'} multiline_comment_delimiters = {'/*': '*/'} indent_types = {'{': '}'} encapsulators = {'(': ')', '[': ']'} keywords = [ 'abstract',...
1,653
Python
.py
30
48.166667
79
0.514497
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,995
Fortran.py
coala_coala/coalib/bearlib/languages/definitions/Fortran.py
from coalib.bearlib.languages.Language import Language @Language class Fortran: extensions = '.f90', '.f95', '.f03', '.f', '.for' comment_delimiters = '!', string_delimiter_escape = {'"': '""', "'": "''"}
219
Python
.py
6
33.166667
54
0.611374
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,996
GraphQL.py
coala_coala/coalib/bearlib/languages/definitions/GraphQL.py
from coalib.bearlib.languages.Language import Language @Language class GraphQL: aliases = 'graphql', extensions = '.graphql', comment_delimiters = '#', string_delimiters = {'"': '"'}, encapsulators = {'[': ']', '(': ')'}, indent_types = {'{': '}'}, keywords = [ 'type', 'enum', 'ret...
456
Python
.py
13
29.923077
72
0.562358
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,997
VisualBasic.py
coala_coala/coalib/bearlib/languages/definitions/VisualBasic.py
from coalib.bearlib.languages.Language import Language @Language class VisualBasic: aliases = 'vb', extensions = '.vb', '.bas' comment_delimiter = "'", 'REM' string_delimiters = {'"': '"'} # Multiline strings are only supported by Visual Basic 14.0 and above multiline_string_delimiters = strin...
444
Python
.py
12
32.833333
73
0.651163
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,998
Shell.py
coala_coala/coalib/bearlib/languages/definitions/Shell.py
from coalib.bearlib.languages.Language import Language @Language class Shell: extensions = '.sh', comment_delimiters = '#', multiline_comment_delimiters = {": '": "'"} string_delimiters = {'"': '"', "'": "'", '`': '`'} multiline_string_delimiters = string_delimiters encapsulators = {'[': ']', ...
540
Python
.py
14
33.428571
69
0.534351
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)
36,999
Jinja2.py
coala_coala/coalib/bearlib/languages/definitions/Jinja2.py
from coalib.bearlib.languages.Language import Language @Language class Jinja2: extensions = '.jj2', '.j2', '.jinja', '.jinja2' multiline_comment_delimiters = {'{#': '#}'}
181
Python
.py
5
33.2
54
0.683908
coala/coala
3,548
1,308
834
AGPL-3.0
9/5/2024, 5:15:29 PM (Europe/Amsterdam)