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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6,200 | __main__.py | getpelican_pelican/pelican/__main__.py | """
python -m pelican module entry point to run via python -m
"""
from . import main
if __name__ == "__main__":
main()
| 125 | Python | .py | 6 | 18.833333 | 57 | 0.623932 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,201 | paginator.py | getpelican_pelican/pelican/paginator.py | import functools
import logging
import os
from collections import namedtuple
from math import ceil
logger = logging.getLogger(__name__)
PaginationRule = namedtuple( # noqa: PYI024
"PaginationRule",
"min_page URL SAVE_AS",
)
class Paginator:
def __init__(self, name, url, object_list, settings, per_page=N... | 5,556 | Python | .py | 141 | 30.304965 | 79 | 0.602043 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,202 | settings.py | getpelican_pelican/pelican/settings.py | import copy
import importlib.util
import inspect
import locale
import logging
import os
import re
import sys
from os.path import isabs
from pathlib import Path
from types import ModuleType
from typing import Any, Dict, Optional
from pelican.log import LimitFilter
def load_source(name: str, path: str) -> ModuleType:
... | 26,023 | Python | .py | 662 | 30.243202 | 88 | 0.578379 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,203 | utils.py | getpelican_pelican/pelican/utils.py | from __future__ import annotations
import datetime
import fnmatch
import locale
import logging
import os
import pathlib
import re
import shutil
import sys
import traceback
import urllib
from collections.abc import Hashable
from contextlib import contextmanager
from functools import partial
from html import entities
fr... | 31,088 | Python | .py | 773 | 31.311772 | 103 | 0.602808 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,204 | cache.py | getpelican_pelican/pelican/cache.py | import hashlib
import logging
import os
import pickle
from pelican.utils import mkdir_p
logger = logging.getLogger(__name__)
class FileDataCacher:
"""Class that can cache data contained in files"""
def __init__(self, settings, cache_name, caching_policy, load_policy):
"""Load the specified cache wi... | 4,960 | Python | .py | 115 | 31.408696 | 87 | 0.575726 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,205 | __init__.py | getpelican_pelican/pelican/__init__.py | import argparse
import importlib.metadata
import json
import logging
import multiprocessing
import os
import pprint
import sys
import time
import traceback
from collections.abc import Iterable
# Combines all paths to `pelican` package accessible from `sys.path`
# Makes it possible to install `pelican` and namespace pl... | 22,040 | Python | .py | 585 | 27.694017 | 222 | 0.58418 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,206 | log.py | getpelican_pelican/pelican/log.py | import logging
from collections import defaultdict
from rich.console import Console
from rich.logging import RichHandler
__all__ = ["init"]
console = Console()
class LimitFilter(logging.Filter):
"""
Remove duplicates records, and limit the number of records in the same
group.
Groups are specified ... | 5,136 | Python | .py | 133 | 30.932331 | 78 | 0.650343 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,207 | contents.py | getpelican_pelican/pelican/contents.py | import copy
import datetime
import locale
import logging
import os
import re
from datetime import timezone
from html import unescape
from typing import Any, Dict, Optional, Set, Tuple
from urllib.parse import ParseResult, unquote, urljoin, urlparse, urlunparse
try:
from zoneinfo import ZoneInfo
except ModuleNotFou... | 25,242 | Python | .py | 571 | 33.005254 | 87 | 0.578941 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,208 | readers.py | getpelican_pelican/pelican/readers.py | import datetime
import logging
import os
import re
from collections import OrderedDict
from html import escape
from html.parser import HTMLParser
from io import StringIO
import docutils
import docutils.core
import docutils.io
from docutils.parsers.rst.languages import get_language as get_docutils_lang
from docutils.wr... | 28,847 | Python | .py | 671 | 32.038748 | 88 | 0.578257 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,209 | server.py | getpelican_pelican/pelican/server.py | import argparse
import logging
import os
import posixpath
import ssl
import sys
import urllib
from http import server
try:
from magic import from_file as magic_from_file
except ImportError:
magic_from_file = None
from pelican.log import console # noqa: F401
from pelican.log import init as init_logging
logge... | 5,568 | Python | .py | 144 | 30.625 | 88 | 0.621622 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,210 | rstdirectives.py | getpelican_pelican/pelican/rstdirectives.py | import re
from docutils import nodes, utils
from docutils.parsers.rst import Directive, directives, roles
from pygments import highlight
from pygments.formatters import HtmlFormatter
from pygments.lexers import TextLexer, get_lexer_by_name
import pelican.settings as pys
class Pygments(Directive):
"""Source code... | 2,942 | Python | .py | 71 | 33.338028 | 79 | 0.647141 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,211 | generators.py | getpelican_pelican/pelican/generators.py | import calendar
import errno
import fnmatch
import logging
import os
from collections import defaultdict
from functools import partial
from itertools import chain, groupby
from operator import attrgetter
from typing import List, Optional, Set
from jinja2 import (
BaseLoader,
ChoiceLoader,
Environment,
... | 42,508 | Python | .py | 986 | 29.511156 | 88 | 0.547184 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,212 | pelican_import.py | getpelican_pelican/pelican/tools/pelican_import.py | #!/usr/bin/env python
import argparse
import datetime
import logging
import os
import re
import subprocess
import sys
import tempfile
import time
from collections import defaultdict
from html import unescape
from urllib.error import URLError
from urllib.parse import quote, urlparse, urlsplit, urlunsplit
from urllib.re... | 42,802 | Python | .py | 1,119 | 27.92672 | 101 | 0.542318 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,213 | pelican_themes.py | getpelican_pelican/pelican/tools/pelican_themes.py | #!/usr/bin/env python
import argparse
import os
import shutil
import sys
def err(msg, die=None):
"""Print an error message and exits if an exit code is given"""
sys.stderr.write(msg + "\n")
if die:
sys.exit(die if isinstance(die, int) else 1)
try:
import pelican
except ImportError:
err(... | 8,188 | Python | .py | 247 | 23.287449 | 85 | 0.526722 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,214 | pelican_quickstart.py | getpelican_pelican/pelican/tools/pelican_quickstart.py | #!/usr/bin/env python
import argparse
import locale
import os
from typing import Mapping
from jinja2 import Environment, FileSystemLoader
try:
import zoneinfo
except ModuleNotFoundError:
from backports import zoneinfo
try:
import readline # NOQA
except ImportError:
pass
try:
import tzlocal
... | 11,886 | Python | .py | 342 | 25.184211 | 88 | 0.545233 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,215 | publishconf.py.jinja2 | getpelican_pelican/pelican/tools/templates/publishconf.py.jinja2 | # This file is only used if you use `make publish` or
# explicitly specify it as your config file.
import os
import sys
sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = "{{siteurl}}"
RELATIVE_URLS = False
FEED_ALL_ATOM = "fe... | 515 | Python | .py | 15 | 32.866667 | 77 | 0.764706 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,216 | tasks.py.jinja2 | getpelican_pelican/pelican/tools/templates/tasks.py.jinja2 | import os
import shlex
import shutil
import sys
{% if github %}
import datetime
{% endif %}
from invoke import task
from invoke.main import program
{% if cloudfiles %}
from invoke.util import cd
{% endif %}
from pelican import main as pelican_main
from pelican.server import ComplexHTTPRequestHandler, RootedHTTPServer
... | 5,216 | Python | .py | 158 | 28.196203 | 86 | 0.646227 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,217 | pelicanconf.py.jinja2 | getpelican_pelican/pelican/tools/templates/pelicanconf.py.jinja2 | AUTHOR = {{author}}
SITENAME = {{sitename}}
SITEURL = ""
PATH = "content"
TIMEZONE = {{timezone}}
DEFAULT_LANG = {{lang}}
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LI... | 801 | Python | .py | 27 | 27.481481 | 77 | 0.697128 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,218 | test_contents.py | getpelican_pelican/pelican/tests/test_contents.py | import datetime
import locale
import logging
import os.path
from posixpath import join as posix_join
from sys import platform
from jinja2.utils import generate_lorem_ipsum
from pelican.contents import Article, Author, Category, Page, Static
from pelican.plugins.signals import content_object_init
from pelican.settings... | 41,368 | Python | .py | 952 | 33.246849 | 87 | 0.580811 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,219 | test_rstdirectives.py | getpelican_pelican/pelican/tests/test_rstdirectives.py | from unittest.mock import Mock
from pelican.tests.support import unittest
class Test_abbr_role(unittest.TestCase):
def call_it(self, text):
from pelican.rstdirectives import abbr_role
rawtext = text
lineno = 42
inliner = Mock(name="inliner")
nodes, system_messages = abbr_... | 1,057 | Python | .py | 24 | 36.416667 | 82 | 0.651072 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,220 | test_testsuite.py | getpelican_pelican/pelican/tests/test_testsuite.py | import warnings
from pelican.tests.support import unittest
class TestSuiteTest(unittest.TestCase):
def test_error_on_warning(self):
with self.assertRaises(UserWarning):
warnings.warn("test warning") # noqa: B028
| 240 | Python | .py | 6 | 34.5 | 55 | 0.744589 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,221 | test_paginator.py | getpelican_pelican/pelican/tests/test_paginator.py | import locale
from jinja2.utils import generate_lorem_ipsum
from pelican.contents import Article, Author
from pelican.paginator import Paginator
from pelican.settings import DEFAULT_CONFIG
from pelican.tests.support import get_settings, unittest
# generate one paragraph, enclosed with <p>
TEST_CONTENT = str(generate... | 4,194 | Python | .py | 99 | 32.525253 | 80 | 0.58652 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,222 | test_cli.py | getpelican_pelican/pelican/tests/test_cli.py | import unittest
from pelican import get_config, parse_arguments
class TestParseOverrides(unittest.TestCase):
def test_flags(self):
for flag in ["-e", "--extra-settings"]:
args = parse_arguments([flag, "k=1"])
self.assertDictEqual(args.overrides, {"k": 1})
def test_parse_multi... | 2,603 | Python | .py | 71 | 25.71831 | 71 | 0.511895 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,223 | test_log.py | getpelican_pelican/pelican/tests/test_log.py | import logging
import unittest
from collections import defaultdict
from contextlib import contextmanager
from pelican import log
from pelican.tests.support import LogCountHandler
class TestLog(unittest.TestCase):
def setUp(self):
super().setUp()
self.logger = logging.getLogger(__name__)
s... | 2,535 | Python | .py | 64 | 29.4375 | 84 | 0.594309 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,224 | test_utils.py | getpelican_pelican/pelican/tests/test_utils.py | import locale
import logging
import os
import shutil
from datetime import timezone
from sys import platform
from tempfile import mkdtemp
try:
from zoneinfo import ZoneInfo
except ModuleNotFoundError:
from backports.zoneinfo import ZoneInfo
from pelican import utils
from pelican.generators import TemplatePages... | 35,426 | Python | .py | 863 | 29.341831 | 88 | 0.539629 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,225 | default_conf.py | getpelican_pelican/pelican/tests/default_conf.py | AUTHOR = "Alexis Métaireau"
SITENAME = "Alexis' log"
SITEURL = "http://blog.notmyidea.org"
TIMEZONE = "UTC"
GITHUB_URL = "http://github.com/ametaireau/"
DISQUS_SITENAME = "blog-notmyidea"
PDF_GENERATOR = False
REVERSE_CATEGORY_ORDER = True
DEFAULT_PAGINATION = 2
FEED_RSS = "feeds/all.rss.xml"
CATEGORY_FEED_RSS = "fee... | 1,263 | Python | .py | 39 | 29.871795 | 75 | 0.68343 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,226 | test_cache.py | getpelican_pelican/pelican/tests/test_cache.py | import os
from shutil import rmtree
from tempfile import mkdtemp
from unittest.mock import MagicMock
from pelican.generators import ArticlesGenerator, PagesGenerator
from pelican.tests.support import get_context, get_settings, unittest
CUR_DIR = os.path.dirname(__file__)
CONTENT_DIR = os.path.join(CUR_DIR, "content")... | 12,381 | Python | .py | 312 | 29.560897 | 81 | 0.612954 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,227 | test_importer.py | getpelican_pelican/pelican/tests/test_importer.py | import os
import re
from posixpath import join as posix_join
from unittest.mock import patch
from pelican.settings import DEFAULT_CONFIG
from pelican.tests.support import (
TestCaseWithCLocale,
mute,
skipIfNoExecutable,
temporary_folder,
unittest,
)
from pelican.tools.pelican_import import (
bl... | 28,066 | Python | .py | 714 | 26.788515 | 107 | 0.519706 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,228 | __init__.py | getpelican_pelican/pelican/tests/__init__.py | import logging
import warnings
from pelican.log import log_warnings
# redirect warnings module to use logging instead
log_warnings()
# setup warnings to log DeprecationWarning's and error on
# warnings in pelican's codebase
warnings.simplefilter("default", DeprecationWarning)
warnings.filterwarnings("error", ".*", W... | 461 | Python | .py | 11 | 40.545455 | 66 | 0.825112 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,229 | test_plugins.py | getpelican_pelican/pelican/tests/test_plugins.py | import os
from contextlib import contextmanager
from pelican.plugins._utils import (
get_namespace_plugins,
get_plugin_name,
load_plugins,
plugin_enabled,
)
from pelican.plugins.signals import signal
from pelican.tests.dummy_plugins.normal_plugin import normal_plugin
from pelican.tests.support import u... | 11,374 | Python | .py | 244 | 34.721311 | 86 | 0.59614 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,230 | test_generators.py | getpelican_pelican/pelican/tests/test_generators.py | import os
import sys
from shutil import copy, rmtree
from tempfile import mkdtemp
from unittest.mock import MagicMock
from pelican.generators import (
ArticlesGenerator,
Generator,
PagesGenerator,
PelicanTemplateNotFound,
StaticGenerator,
TemplatePagesGenerator,
)
from pelican.tests.support imp... | 62,599 | Python | .py | 1,495 | 31.010702 | 88 | 0.58134 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,231 | test_server.py | getpelican_pelican/pelican/tests/test_server.py | import os
from io import BytesIO
from shutil import rmtree
from tempfile import mkdtemp
from pelican.server import ComplexHTTPRequestHandler
from pelican.tests.support import unittest
class MockRequest:
def makefile(self, *args, **kwargs):
return BytesIO(b"")
class MockServer:
pass
class TestServ... | 1,943 | Python | .py | 44 | 35.704545 | 78 | 0.638343 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,232 | test_settings.py | getpelican_pelican/pelican/tests/test_settings.py | import copy
import locale
import os
from os.path import abspath, dirname, join
from pelican.settings import (
DEFAULT_CONFIG,
DEFAULT_THEME,
_printf_s_to_format_field,
configure_settings,
handle_deprecated_settings,
read_settings,
)
from pelican.tests.support import unittest
class TestSetting... | 12,755 | Python | .py | 272 | 37.558824 | 85 | 0.625965 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,233 | test_urlwrappers.py | getpelican_pelican/pelican/tests/test_urlwrappers.py | from pelican.tests.support import unittest
from pelican.urlwrappers import Author, Category, Tag, URLWrapper
class TestURLWrapper(unittest.TestCase):
def test_ordering(self):
# URLWrappers are sorted by name
wrapper_a = URLWrapper(name="first", settings={})
wrapper_b = URLWrapper(name="las... | 3,409 | Python | .py | 82 | 31.158537 | 65 | 0.577563 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,234 | test_pelican.py | getpelican_pelican/pelican/tests/test_pelican.py | import contextlib
import io
import locale
import logging
import os
import subprocess
import sys
import unittest
from collections.abc import Sequence
from shutil import rmtree
from tempfile import TemporaryDirectory, mkdtemp
from unittest.mock import PropertyMock, patch
from rich.console import Console
import pelican.... | 12,649 | Python | .py | 294 | 32.673469 | 88 | 0.598929 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,235 | support.py | getpelican_pelican/pelican/tests/support.py | import locale
import logging
import os
import re
import subprocess
import sys
import unittest
from contextlib import contextmanager
from functools import wraps
from io import StringIO
from logging.handlers import BufferingHandler
from shutil import rmtree
from tempfile import mkdtemp
from pelican.contents import Artic... | 7,270 | Python | .py | 219 | 25.780822 | 80 | 0.61007 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,236 | test_readers.py | getpelican_pelican/pelican/tests/test_readers.py | import os
from unittest.mock import PropertyMock, patch
from pelican import readers
from pelican.tests.support import get_settings, unittest
from pelican.utils import SafeDatetime
CUR_DIR = os.path.dirname(__file__)
CONTENT_PATH = os.path.join(CUR_DIR, "content")
def _path(*args):
return os.path.join(CONTENT_PA... | 36,563 | Python | .py | 815 | 33.580368 | 88 | 0.572604 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,237 | __init__.py | getpelican_pelican/pelican/tests/dummy_plugins/normal_plugin/normal_plugin/__init__.py | from .submodule import noop # noqa: F401
def register():
pass
| 69 | Python | .py | 3 | 20 | 41 | 0.71875 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,238 | conftest.py | getpelican_pelican/pelican/tests/build_test/conftest.py | def pytest_addoption(parser):
parser.addoption(
"--check-build",
action="store",
default=False,
help="Check wheel contents.",
)
| 168 | Python | .py | 7 | 17.285714 | 37 | 0.583851 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,239 | test_build_files.py | getpelican_pelican/pelican/tests/build_test/test_build_files.py | import importlib.metadata
import tarfile
from pathlib import Path
from re import match
from zipfile import ZipFile
import pytest
version = importlib.metadata.version("pelican")
@pytest.mark.skipif(
"not config.getoption('--check-build')",
reason="Only run when --check-build is given",
)
def test_wheel_conte... | 2,201 | Python | .py | 61 | 29.901639 | 80 | 0.655722 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,240 | signals.py | getpelican_pelican/pelican/plugins/signals.py | from blinker import Signal, signal
from ordered_set import OrderedSet
# Signals will call functions in the order of connection, i.e. plugin order
Signal.set_class = OrderedSet
# Run-level signals:
initialized = signal("pelican_initialized")
get_generators = signal("get_generators")
all_generators_finalized = signal(... | 1,839 | Python | .py | 37 | 48.27027 | 75 | 0.808511 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,241 | _utils.py | getpelican_pelican/pelican/plugins/_utils.py | import importlib
import importlib.machinery
import importlib.util
import inspect
import logging
import pkgutil
import sys
logger = logging.getLogger(__name__)
def iter_namespace(ns_pkg):
# Specifying the second argument (prefix) to iter_modules makes the
# returned name an absolute name instead of a relative... | 4,432 | Python | .py | 113 | 30.318584 | 81 | 0.628319 | getpelican/pelican | 12,478 | 1,806 | 72 | AGPL-3.0 | 9/5/2024, 5:09:45 PM (Europe/Amsterdam) |
6,242 | setup.py | shinken-solutions_shinken/setup.py | #!/usr/bin/python2
# -*- coding: utf-8 -*-
# We can't use future unicode_litteral in setup.py because versions of
# setuptools <= 41.1.0 do not manage unicode values in package_data.
# See https://github.com/pypa/setuptools/pull/1769 for details.
# from __future__ import absolute_import, division, print_function, uni... | 24,931 | Python | .py | 677 | 28.525849 | 101 | 0.525136 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,243 | .pylintrc | shinken-solutions_shinken/.pylintrc | [MASTER]
# Specify a configuration file.
#rcfile=
# Python code to execute, usually for sys.path manipulation such as
# pygtk.require().
#init-hook=
# Profiled execution.
profile=no
# Add files or directories to the blacklist. They should be base names, not
# paths.
ignore=CVS
# Pickle collected data for later com... | 9,986 | Python | .py | 226 | 42.699115 | 266 | 0.780415 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,244 | test_timeperiods.py | shinken-solutions_shinken/test/test_timeperiods.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 21,783 | Python | .py | 440 | 40.765909 | 96 | 0.60692 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,245 | test_conflict_policy.py | shinken-solutions_shinken/test/test_conflict_policy.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,823 | Python | .py | 39 | 43.128205 | 82 | 0.722097 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,246 | test_nocontacts.py | shinken-solutions_shinken/test/test_nocontacts.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,588 | Python | .py | 37 | 39.837838 | 91 | 0.735409 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,247 | test_servicetpl_no_hostname.py | shinken-solutions_shinken/test/test_servicetpl_no_hostname.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,134 | Python | .py | 48 | 39.854167 | 134 | 0.688974 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,248 | test_reversed_list.py | shinken-solutions_shinken/test/test_reversed_list.py | #!/usr/bin/env python
from __future__ import absolute_import, division, print_function, unicode_literals
from shinken_test import ShinkenTest, unittest
from shinken.misc.regenerator import Regenerator
from shinken.brok import Brok
class TestReversedList(ShinkenTest):
def setUp(self):
self.setup_with_fil... | 2,005 | Python | .py | 37 | 45.621622 | 116 | 0.680328 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,249 | test_get_checks.py | shinken-solutions_shinken/test/test_get_checks.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,700 | Python | .py | 69 | 31.884058 | 82 | 0.651608 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,250 | test_dot_virg_in_command.py | shinken-solutions_shinken/test/test_dot_virg_in_command.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,020 | Python | .py | 47 | 38.468085 | 91 | 0.693992 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,251 | test_passive_pollers.py | shinken-solutions_shinken/test/test_passive_pollers.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 10,617 | Python | .py | 249 | 34.827309 | 100 | 0.677144 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,252 | test_bad_notification_period.py | shinken-solutions_shinken/test/test_bad_notification_period.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,339 | Python | .py | 32 | 39.5625 | 82 | 0.756549 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,253 | test_protect_esclamation_point.py | shinken-solutions_shinken/test/test_protect_esclamation_point.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,006 | Python | .py | 47 | 38.191489 | 91 | 0.700154 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,254 | test_definition_order.py | shinken-solutions_shinken/test/test_definition_order.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,884 | Python | .py | 40 | 43.275 | 108 | 0.740033 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,255 | test_business_correlator_output.py | shinken-solutions_shinken/test/test_business_correlator_output.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 7,678 | Python | .py | 139 | 46.805755 | 108 | 0.654194 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,256 | test_servicedependency_implicit_hostgroup.py | shinken-solutions_shinken/test/test_servicedependency_implicit_hostgroup.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 4,033 | Python | .py | 79 | 44.632911 | 103 | 0.678953 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,257 | test_clean_sched_queues.py | shinken-solutions_shinken/test/test_clean_sched_queues.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 3,528 | Python | .py | 81 | 36.975309 | 91 | 0.667735 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,258 | test_notifway.py | shinken-solutions_shinken/test/test_notifway.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 6,013 | Python | .py | 102 | 51.117647 | 137 | 0.68802 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,259 | test_timeperiod_inheritance.py | shinken-solutions_shinken/test/test_timeperiod_inheritance.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,798 | Python | .py | 46 | 34.304348 | 82 | 0.691734 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,260 | test_problem_impact.py | shinken-solutions_shinken/test/test_problem_impact.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 17,718 | Python | .py | 320 | 45.490625 | 138 | 0.559222 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,261 | test_spaces_in_commands.py | shinken-solutions_shinken/test/test_spaces_in_commands.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,118 | Python | .py | 51 | 36.627451 | 93 | 0.680097 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,262 | test_nested_hostgroups.py | shinken-solutions_shinken/test/test_nested_hostgroups.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,883 | Python | .py | 58 | 44.5 | 98 | 0.707785 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,263 | test_notification_warning.py | shinken-solutions_shinken/test/test_notification_warning.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,206 | Python | .py | 49 | 40.306122 | 161 | 0.697718 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,264 | test_update_output_ext_command.py | shinken-solutions_shinken/test/test_update_output_ext_command.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,919 | Python | .py | 45 | 38.266667 | 99 | 0.697749 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,265 | test_reactionner_tag_get_notif.py | shinken-solutions_shinken/test/test_reactionner_tag_get_notif.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 6,883 | Python | .py | 127 | 45.141732 | 139 | 0.635904 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,266 | test_poller_addition.py | shinken-solutions_shinken/test/test_poller_addition.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 11,338 | Python | .py | 263 | 35.429658 | 100 | 0.684832 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,267 | test_bad_contact_call.py | shinken-solutions_shinken/test/test_bad_contact_call.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,451 | Python | .py | 34 | 39.882353 | 90 | 0.738636 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,268 | test_star_in_hostgroups.py | shinken-solutions_shinken/test/test_star_in_hostgroups.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,117 | Python | .py | 49 | 38.755102 | 97 | 0.69694 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,269 | test_macroresolver.py | shinken-solutions_shinken/test/test_macroresolver.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 8,366 | Python | .py | 183 | 38.081967 | 250 | 0.652131 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,270 | test_notifications.py | shinken-solutions_shinken/test/test_notifications.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 27,919 | Python | .py | 502 | 46.986056 | 133 | 0.528063 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,271 | test_bad_sat_realm_conf.py | shinken-solutions_shinken/test/test_bad_sat_realm_conf.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,254 | Python | .py | 31 | 38.258065 | 82 | 0.755354 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,272 | test_notification_master.py | shinken-solutions_shinken/test/test_notification_master.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Sebastien Coavoux, s.coavoux@free.fr
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero Gene... | 3,549 | Python | .py | 67 | 46.328358 | 134 | 0.669839 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,273 | test_python_crash_with_recursive_bp_rules.py | shinken-solutions_shinken/test/test_python_crash_with_recursive_bp_rules.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,634 | Python | .py | 39 | 38.307692 | 101 | 0.713115 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,274 | test_satellites.py | shinken-solutions_shinken/test/test_satellites.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 3,068 | Python | .py | 75 | 34.426667 | 126 | 0.648758 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,275 | test_regenerator.py | shinken-solutions_shinken/test/test_regenerator.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 7,423 | Python | .py | 174 | 32.862069 | 136 | 0.578649 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,276 | test_antivirg.py | shinken-solutions_shinken/test/test_antivirg.py | #!/usr/bin/env python
# -*- coding: utf-8 -*
from __future__ import absolute_import, division, print_function, unicode_literals
from shinken_test import *
class TestConfig(ShinkenTest):
def setUp(self):
# load the configuration from file
self.setup_with_file('etc/shinken_antivirg.cfg')
def ... | 2,699 | Python | .py | 49 | 46.795918 | 104 | 0.655369 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,277 | test_bad_notification_character.py | shinken-solutions_shinken/test/test_bad_notification_character.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License... | 2,409 | Python | .py | 56 | 37.464286 | 134 | 0.664389 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,278 | test_contactgroup_nomembers.py | shinken-solutions_shinken/test/test_contactgroup_nomembers.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,581 | Python | .py | 37 | 39.648649 | 84 | 0.743322 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,279 | test_service_description_inheritance.py | shinken-solutions_shinken/test/test_service_description_inheritance.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Sebastien Coavoux, s.coavoux@free.fr
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 ... | 2,357 | Python | .py | 50 | 41.6 | 88 | 0.708624 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,280 | test_bad_template.py | shinken-solutions_shinken/test/test_bad_template.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from shinken_test import ShinkenTest
class TestConfig(ShinkenTest):
def setUp(self):
pass # force no setUp for this class.
def test_bad_template_use_itself(self):
self.setup_with_file('etc/bad_template_use_i... | 842 | Python | .py | 13 | 55.846154 | 148 | 0.706813 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,281 | test_resultmodulation.py | shinken-solutions_shinken/test/test_resultmodulation.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,760 | Python | .py | 56 | 44.142857 | 107 | 0.698661 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,282 | test_service_withhost_exclude.py | shinken-solutions_shinken/test/test_service_withhost_exclude.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,699 | Python | .py | 39 | 40 | 107 | 0.733051 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,283 | test_complex_hostgroups.py | shinken-solutions_shinken/test/test_complex_hostgroups.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 5,622 | Python | .py | 109 | 43.889908 | 199 | 0.64752 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,284 | test_missing_object_value.py | shinken-solutions_shinken/test/test_missing_object_value.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,047 | Python | .py | 47 | 39.021277 | 90 | 0.7 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,285 | test_strange_characters_commands.py | shinken-solutions_shinken/test/test_strange_characters_commands.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License... | 3,046 | Python | .py | 71 | 36.915493 | 135 | 0.663848 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,286 | test_commands_perfdata.py | shinken-solutions_shinken/test/test_commands_perfdata.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 6,459 | Python | .py | 125 | 44.936 | 165 | 0.611841 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,287 | test_inheritance_and_plus.py | shinken-solutions_shinken/test/test_inheritance_and_plus.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 3,152 | Python | .py | 66 | 41.454545 | 93 | 0.681966 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,288 | test_no_notification_period.py | shinken-solutions_shinken/test/test_no_notification_period.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,584 | Python | .py | 54 | 42.851852 | 133 | 0.68745 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,289 | test_host_missing_adress.py | shinken-solutions_shinken/test/test_host_missing_adress.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,518 | Python | .py | 36 | 39.055556 | 82 | 0.733379 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,290 | test_srv_badhost.py | shinken-solutions_shinken/test/test_srv_badhost.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,405 | Python | .py | 35 | 37.085714 | 82 | 0.742291 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,291 | test_business_rules_with_bad_realm_conf.py | shinken-solutions_shinken/test/test_business_rules_with_bad_realm_conf.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,275 | Python | .py | 31 | 38.967742 | 82 | 0.758091 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,292 | test_groups_with_no_alias.py | shinken-solutions_shinken/test/test_groups_with_no_alias.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,739 | Python | .py | 44 | 35.295455 | 82 | 0.707418 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,293 | test_action.py | shinken-solutions_shinken/test/test_action.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 8,877 | Python | .py | 224 | 30.875 | 101 | 0.596909 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,294 | test_safe_pickle.py | shinken-solutions_shinken/test/test_safe_pickle.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 4,071 | Python | .py | 108 | 31.518519 | 94 | 0.669552 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,295 | test_service_without_host.py | shinken-solutions_shinken/test/test_service_without_host.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,647 | Python | .py | 40 | 36.025 | 94 | 0.687539 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,296 | test_checkmodulations.py | shinken-solutions_shinken/test/test_checkmodulations.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 1,842 | Python | .py | 46 | 35.391304 | 82 | 0.709641 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,297 | test_escalations.py | shinken-solutions_shinken/test/test_escalations.py | #!/usr/bin/env python
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 30,301 | Python | .py | 527 | 48.383302 | 127 | 0.590725 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,298 | test_contactgroups_plus_inheritance.py | shinken-solutions_shinken/test/test_contactgroups_plus_inheritance.py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License... | 4,371 | Python | .py | 84 | 45.452381 | 98 | 0.659315 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |
6,299 | test_groups_pickle.py | shinken-solutions_shinken/test/test_groups_pickle.py | #!/usr/bin/env python
# Copyright (C) 2009-2010:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the F... | 2,093 | Python | .py | 52 | 34.519231 | 82 | 0.663866 | shinken-solutions/shinken | 1,133 | 337 | 226 | AGPL-3.0 | 9/5/2024, 5:09:53 PM (Europe/Amsterdam) |