section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
plugins
static_optimizers
# coding:utf-8 from cactus.contrib.external.closure import ClosureJSOptimizer from cactus.contrib.external.yui import YUICSSOptimizer def preBuild(site): """ Registers optimizers as requested by the configuration. Be sure to read the plugin to understand and use it. """ # Inspect the site configu...
engines
microsoft_academic
# SPDX-License-Identifier: AGPL-3.0-or-later """ Microsoft Academic (Science) """ from json import dumps, loads from searx.utils import html_to_text # about about = { "website": "https://academic.microsoft.com", "wikidata_id": "Q28136779", "official_api_documentation": "http://ma-graph.org/", "use_o...
database
file_database
# -*- coding: utf-8 -*- from ..datatypes.pyfile import PyFile from ..datatypes.pypackage import PyPackage from ..utils import format from ..utils.struct.style import style from ..utils.web import parse class FileDatabaseMethods: @style.queue def filecount(self, queue): """ returns number of f...
clientScripts
archivematicaCreateMETSTrim
#!/usr/bin/env python # # This file is part of Archivematica. # # Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com> # # Archivematica 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, ...
utils
pyinst_support
""" Slightly modified version of function taken from here: https://github.com/pyinstaller/pyinstaller/issues/1905#issuecomment-525221546 """ import pkgutil def iterNamespace(name, path): """Pyinstaller-compatible namespace iteration. Yields the name of all modules found at a given Fully-qualified path. ...
migrations
0111_plugin_storage
# Generated by Django 3.0.11 on 2021-01-05 14:29 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0110_sessionrecordingeventbyteamandtimestamp"), ] operations = [ migrations.CreateModel( ...
negotiate
server_speedtest
# neubot/negotiate/server_speedtest.py # # Copyright (c) 2011 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU...
externals
xmltodict
#!/usr/bin/env python import xml.parsers.expat __author__ = "Martin Blech" __version__ = "0.1.dev" __license__ = "MIT" class ParsingInterrupted(Exception): pass class DictSAXHandler: def __init__( self, item_depth=0, xml_attribs=True, item_callback=lambda *args: True, ...
PyObjCTest
test_nsstream
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class TestNSStreamHelper(NSObject): def stream_handleEvent_(self, a, b): pass class TestNSStreamUsage(TestCase): def testUsage(self): # Test the usage of methods that require ...
extractor
dailymail
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import determine_protocol, int_or_none, try_get, unescapeHTML from .common import InfoExtractor class DailyMailIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?dailymail\.co\.uk/(?:video/[^/]+/vide...
vocoder
qa_cvsd_vocoder
#!/usr/bin/env python # # Copyright 2007,2010,2011,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import blocks, filter, gr, gr_unittest, vocoder from gnuradio.vocoder import cvsd class test_cvsd_vocoder(gr_unittest.TestCase): ...
migrations
0001_squashed_initial
# Generated by Django 3.2.5 on 2022-05-31 14:46 import datetime import apps.alerts.escalation_snapshot.escalation_snapshot_mixin import apps.alerts.integration_options_mixin import apps.alerts.models.alert import apps.alerts.models.alert_group import apps.alerts.models.alert_receive_channel import apps.alerts.models....
draftmake
make_bspline
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
PhotoCollage
setup
#!/usr/bin/env python # Copyright (C) 2013 Adrien Vergé # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This progr...
extractor
streamsb
# coding: utf-8 from __future__ import unicode_literals import binascii import random import re import string from ..utils import url_basename, urljoin from .common import InfoExtractor def to_ascii_hex(str1): return binascii.hexlify(str1.encode("utf-8")).decode("ascii") def generate_random_string(length): ...
util
http
# Copyright 2013 Simonas Kazlauskas # 2016-22 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. im...
PyObjCTest
test_cfusernotification
from CoreFoundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str try: long except NameError: long = int class TestUserNotification(TestCase): def testTypes(self): self.assertIsCFType(CFUserNotificationRef) def testTypeID(self): ...
gpodder
minidb
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # gPodder - A media aggregator and podcast client # Copyright (c) 2005-2018 The gPodder Team # # gPodder is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either ...
views
hashtag
""" listing statuses for a given hashtag """ from bookwyrm import models from bookwyrm.settings import PAGE_LENGTH from bookwyrm.views.helpers import maybe_redirect_local_path from django.core.paginator import Paginator from django.db.models import Q from django.shortcuts import get_object_or_404 from django.template.r...
scenarios
notified_user_not_in_channel
import logging import typing from apps.slack.scenarios import scenario_step from apps.slack.types import BlockActionType, EventPayload, PayloadType, ScenarioRoute if typing.TYPE_CHECKING: from apps.slack.models import SlackTeamIdentity, SlackUserIdentity logger = logging.getLogger(__name__) class NotifiedUserN...
octoprint
webcams
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License" import logging import octoprint.plugin from octoprint.plugin import plugin_manager from octoprint.schema.webcam import Webcam ...
commands
housekeeping
import os from pathlib import Path from shutil import rmtree from time import sleep from django.conf import settings from django.core.management.base import BaseCommand from photonix.photos.models import Photo, Task from photonix.photos.utils.thumbnails import THUMBNAILER_VERSION from photonix.web.utils import logger ...
Web
InitGui
# *************************************************************************** # * Copyright (c) 2002,2003 Jürgen Riegel <juergen.riegel@web.de> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
plugins
telefe
""" $description Video content from Telefe, an Argentine TV station. $url mitelefe.com $type live $metadata title $region Argentina """ import logging import re from urllib.parse import urljoin from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream.hls im...
gui
banditems
# Copyright 2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # try: from PyQt5 import Qt, QtCore, QtGui, QtWidgets except ImportError: raise SystemExit( "Please install PyQt5 to run this script (http://www.riverbankcomputing.co.uk/s...
vidcutter
videoconsole
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # # VidCutter - media cutter & joiner # # copyright © 2018 Pete Alexandrou # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
fitEcmBurstScanresDamps
graph
# ============================================================================= # Copyright (C) 2010 Diego Duclos # # This file is part of pyfa. # # pyfa is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
extractor
voxmedia
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_urllib_parse_unquote from ..utils import ExtractorError, int_or_none, try_get, unified_timestamp from .common import InfoExtractor from .once import OnceIE class VoxMediaVolumeIE(OnceIE): _VALID_URL = r"https?://volume\.vox-cdn\....
util
yaml
from typing import Any, Dict, Hashable, TextIO, Union def load_from_file( file: TextIO = None, path: str = None ) -> Union[Dict[Hashable, Any], list, None]: """ Safely and performantly loads yaml data from the given source. Either a path or a file must be passed in. """ if path is not None: ...
lib
processing
import os from django.conf import settings as django_settings DEFAULT_PROCESSING_CONFIG = """<processingMCP> <preconfiguredChoices> <!-- Select compression level --> <preconfiguredChoice> <appliesTo>01c651cb-c174-4ba4-b985-1d87a44d6754</appliesTo> <goToChain>414da421-b83f-4648-895f-a34840e3c3f5<...
archivebox
config_stubs
from pathlib import Path from typing import Any, Callable, Dict, List, Optional, Pattern, Tuple, Type, Union from mypy_extensions import TypedDict SimpleConfigValue = Union[str, bool, int, None, Pattern, Dict[str, Any]] SimpleConfigValueDict = Dict[str, SimpleConfigValue] SimpleConfigValueGetter = Callable[[], Simple...
draftmake
make_bezcurve
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
extractor
openload
# coding: utf-8 from __future__ import unicode_literals import json import os import subprocess import tempfile from ..compat import compat_kwargs from ..compat import compat_open as open from ..compat import compat_urlparse from ..utils import ( ExtractorError, check_executable, encodeArgument, get_e...
deluge-label
core
# # Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com> # # Basic plugin template created by: # Copyright (C) 2008 Martijn Voncken <mvoncken@gmail.com> # Copyright (C) 2007-2008 Andrew Resch <andrewresch@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with ...
docs
framedocs
#!/usr/bin/env python3 """An iframe wrapper for a set of Google Docs documents. This script is intended to be used to output static HTML files that wrap a set of Google Docs. The idea is that you should be able to refer to these documents with a nice URL, e.g., to share with others, and retain that URL at the top of t...
Arch
exportIFCHelper
# *************************************************************************** # * Copyright (c) 2019 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
extractor
sprout
# coding: utf-8 from __future__ import unicode_literals from ..utils import int_or_none, smuggle_url, update_url_query from .adobepass import AdobePassIE class SproutIE(AdobePassIE): _VALID_URL = r"https?://(?:www\.)?(?:sproutonline|universalkids)\.com/(?:watch|(?:[^/]+/)*videos)/(?P<id>[^/?#]+)" _TESTS = [ ...
mobile-app
alert_rendering
from apps.alerts.incident_appearance.templaters.alert_templater import AlertTemplater from common.utils import str_or_backup from emoji import emojize class AlertMobileAppTemplater(AlertTemplater): def _render_for(self): return "MOBILE_APP" def get_push_notification_subtitle(alert_group): alert = al...
tokens
serializer
# -*- coding: utf -*- """ flaskbb.tokens.serializer ~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2018 the FlaskBB Team. :license: BSD, see LICENSE for more details """ from datetime import datetime, timedelta import jwt from ..core import tokens _DEFAULT_EXPIRY = timedelta(hours=1) class FlaskBBToke...
migrations
0011_nullable_fields
# Generated by Django 2.2.1 on 2019-05-15 09:27 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("deposit", "0010_email_on_preferences"), ] operations = [ migrations.AlterField( model_name="depo...
trends
trends_event_query_base
from typing import Any, Dict, Tuple from posthog.constants import ( MONTHLY_ACTIVE, UNIQUE_USERS, WEEKLY_ACTIVE, PropertyOperatorType, ) from posthog.models import Entity from posthog.models.entity.util import get_entity_filtering_params from posthog.models.filters.filter import Filter from posthog.mod...
engines
startpage
# SPDX-License-Identifier: AGPL-3.0-or-later # lint: pylint """Startpage (Web) """ import re from datetime import datetime, timedelta from time import time from unicodedata import combining, normalize from urllib.parse import urlencode from babel import Locale from babel.localedata import locale_identifiers from dat...
examples
pyqt_example_c
#!/usr/bin/env python # # Copyright 2011,2012,2015 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import sys from gnuradio import blocks, filter, gr from gnuradio.fft import window try: import sip from gnuradio import qtgui from PyQt5 i...
utils
test_utils
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
utils
fs
# -*- coding: utf-8 -*- import hashlib import io import os import shutil # import portalocker # import psutil from ... import exc_logger from .convert import to_bytes, to_str try: import send2trash except ImportError: send2trash = None try: import magic def guess_mime(filename): return magic...
views
tutorial
""" @file @brief This file contains the tutorial dialogs, which are used to explain certain features to new users @author Jonathan Thomas <jonathan@openshot.org> @section LICENSE Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://w...
dashboards
dashboard
import json from typing import Any, Dict, List, Optional, Type, cast import structlog from django.db.models import Prefetch, QuerySet from django.shortcuts import get_object_or_404 from django.utils.timezone import now from posthog.api.dashboards.dashboard_template_json_schema_parser import ( DashboardTemplateCrea...
PartDesignTests
TestPolarPattern
# *************************************************************************** # * Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
tools
update_copyright
#!/usr/bin/env python3 """Process all source code and update the license and copyright headers to be current. hg log --template '{date|isodate} {desc}\n' beancount/core/inventory.py """ __copyright__ = "Copyright (C) 2016-2017 Martin Blais" __license__ = "GNU GPLv2" import argparse import contextlib import datetime ...
flaskbb
markup
# -*- coding: utf-8 -*- """ flaskbb.utils.markup ~~~~~~~~~~~~~~~~~~~~ A module for all markup related stuff. :copyright: (c) 2016 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ import logging import mistune from flask import url_for from markupsafe import Markup from mistun...
serializers
schedule_ical
from apps.api.serializers.schedule_base import ScheduleBaseSerializer from apps.schedules.models import OnCallScheduleICal from apps.schedules.tasks import ( schedule_notify_about_empty_shifts_in_schedule, schedule_notify_about_gaps_in_schedule, ) from apps.slack.models import SlackChannel, SlackUserGroup from ...
draftobjects
shapestring
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
windows
keyboardlayout
# -*- coding: utf-8 -*- import codecs import ctypes import sys from collections import defaultdict, namedtuple from ctypes import windll, wintypes from plover.key_combo import CHAR_TO_KEYNAME, add_modifiers_aliases from plover.misc import popcount_8 from .wmctrl import GetForegroundWindow GetKeyboardLayout = windll...
plugins
streamable
""" $description Global video hosting platform. $url streamable.com $type vod """ import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream.http import HTTPStream from streamlink.utils.url import update_scheme @pluginmatcher( re.compile( ...
cmd
daemon
from __future__ import absolute_import import fcntl import getopt import os import select import socket import subprocess import sys from bup import options, path from bup.helpers import debug1, log optspec = """ bup daemon [options...] -- [bup-server options...] -- l,listen ip address to listen on, defaults to * p...
extractor
behindkink
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import url_basename from .common import InfoExtractor class BehindKinkIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?behindkink\.com/(?P<year>[0-9]{4})/(?P<month>[0-9]{2})/(?P<day>[0-9]{2})/(?P<id>[^/#?_]+)" _TEST = { ...
config
validators
from __future__ import annotations from typing import TYPE_CHECKING, Any, Optional, Protocol, TypeVar if TYPE_CHECKING: from abc import abstractmethod from collections.abc import Iterable class Comparable(Protocol): @abstractmethod def __lt__(self: CT, other: CT, /) -> bool: ....
sunflower
_main_
#!/usr/bin/env python3 # # Sunflower File Manager # http://sunflower-fm.org # # Copyright (c) 2011. by Mladen (MeanEYE) Mijatov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either ...
ConcurrentLogHandler
portalocker
# portalocker.py - Cross-platform (posix/nt) API for flock-style file locking. # Requires python 1.5.2 or better. """Cross-platform (posix/nt) API for flock-style file locking. Synopsis: import portalocker file = open("somefile", "r+") portalocker.lock(file, portalocker.LOCK_EX) file.seek...
transform-plugin
indicator
# -*- coding: utf-8 -*- # # Copyright (C) 2015 by Ihor E. Novikov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
utils
shape_utils
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
migrations
0005_person_replacing_by_version
import json from functools import cached_property from typing import Dict, List, Tuple import structlog from django.conf import settings from django.utils.timezone import now from posthog.async_migrations.definition import ( AsyncMigrationDefinition, AsyncMigrationOperation, AsyncMigrationOperationSQL, ) f...
plugins
check_commodity_test
__copyright__ = "Copyright (C) 2015-2017 Martin Blais" __license__ = "GNU GPLv2" import textwrap import unittest from beancount import loader from beancount.plugins import check_commodity class TestCheckCommodity(unittest.TestCase): @loader.load_doc() def test_get_commodity_map_ex(self, entries, _, __): ...
xlgui
icons
# Copyright (C) 2008-2010 Adam Olsen # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2, or (at your option) # any later version. # # This program is distributed in the hope that...
update
update_external_bangs
#!/usr/bin/env python """ Update searx/data/external_bangs.json using the duckduckgo bangs. https://duckduckgo.com/newbang loads * a javascript which provides the bang version ( https://duckduckgo.com/bv1.js ) * a JSON file which contains the bangs ( https://duckduckgo.com/bang.v260.js for example ) This script loads...
web
parse
# -*- coding: utf-8 -*- # import hashlib # import mimetypes # import re import urllib.parse from ..purge import name as safe_nm from . import format, purge # import tld # from ..check import isiterable # from .check import is_host, is_port # from .convert import host_to_ip, ip_to_host, splitaddress # def socket(...
vimode
insert
# vimode -- Vi Mode package for QPlainTextEdit # # Copyright (c) 2012 by Wilbert Berendsen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option...
core
views
__package__ = "archivebox.core" from contextlib import redirect_stdout from io import StringIO from core.forms import AddLinkForm from core.models import Snapshot from django.contrib.auth.mixins import UserPassesTestMixin from django.db.models import Q from django.http import Http404, HttpResponse from django.shortcu...
widgets
completer
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2011 - 2014 by Wilbert Berendsen # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 ...
plugins
pluzz
""" $description Live TV channels and video on-demand service from france.tv, a French public, state-owned broadcaster. $url france.tv $url francetvinfo.fr $type live, vod $metadata title $region France, Andorra, Monaco """ import logging import re from urllib.parse import urlparse from streamlink.plugin import Plugi...
qltk
image
# Copyright 2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. """Some helper function for loading...
readability
cleaners
# strip out a set of nuisance html attributes that can mess up rendering in RSS feeds import re from lxml.html.clean import Cleaner bad_attrs = ["width", "height", "style", "[-a-z]*color", "background[-a-z]*", "on*"] single_quoted = "'[^']+'" double_quoted = '"[^"]+"' non_space = "[^ \"'>]+" htmlstrip = re.compile( ...
Ui
UiWebsocket
import copy import json import logging import os import re import shutil import stat import sys import time import gevent from Config import config from Content.ContentManager import SignError, VerifyError from Crypt import CryptBitcoin from Debug import Debug from Plugin import PluginManager from Site import SiteMana...
Ui
UiServer
import importlib import logging import socket import time import urllib import gevent from Config import config from Debug import Debug from gevent.pywsgi import WSGIServer from lib.gevent_ws import WebSocketHandler from Site import SiteManager from .UiRequest import UiRequest # Skip websocket handler if not necess...
decrypters
QuickshareCzFolder
# -*- coding: utf-8 -*- import re from ..base.decrypter import BaseDecrypter class QuickshareCzFolder(BaseDecrypter): __name__ = "QuickshareCzFolder" __type__ = "decrypter" __version__ = "0.17" __status__ = "testing" __pattern__ = r"http://(?:www\.)?quickshare\.cz/slozka-\d+" __config__ = [ ...
projectedFit
changeProjectionRange
import wx from gui.fitCommands.helpers import restoreCheckedStates from logbook import Logger from service.fit import Fit pyfalog = Logger(__name__) class CalcChangeProjectedFitProjectionRangeCommand(wx.Command): def __init__(self, fitID, projectedFitID, projectionRange): wx.Command.__init__(self, True, ...
versions
b5551cd26764_add_captain_column_to_teams
"""Add captain column to Teams Revision ID: b5551cd26764 Revises: 4e4d5a9ea000 Create Date: 2019-04-12 00:29:08.021141 """ import sqlalchemy as sa from alembic import op from CTFd.models import db from sqlalchemy.sql import column, table # revision identifiers, used by Alembic. revision = "b5551cd26764" down_revisio...
gui
curve
# This file is part of MyPaint. # Copyright (C) 2007-2011 by Martin Renold <martinxyz@gmx.ch> # Copyright (C) 2011-2013 by Andrew Chadwick <a.t.chadwick@gmail.com> # Copyright (C) 2014-2019 by The MyPaint Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Gener...
channels
distortion_2_gen
#!/usr/bin/env python ################################################## # Gnuradio Python Flow Graph # Title: Second Order Distortion # Author: mettus # Generated: Thu Aug 1 12:30:23 2013 ################################################## import math from gnuradio import blocks, gr from gnuradio.filter import firde...
styling
selectors
"""Parser for CSS selectors, based on cssselect2. Changes compared to cssselect2: * The parser has been adapted to support statements like `class[subject.ownedAttribute=foo]`. * :not is treated as a normal pseudo-class. It's a `FunctionalPseudoClassSelector`. Original module: cssselect2.parser :copyright: (c) 2012 b...
doc
conf
# -*- coding: utf-8 -*- # # Friture documentation build configuration file, created by # sphinx-quickstart on Thu May 17 16:53:22 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # All...
downloader
fragment
from __future__ import division, unicode_literals import json import os import time from ..utils import ( encodeFilename, error_to_compat_str, sanitize_open, sanitized_Request, ) from .common import FileDownloader from .http import HttpFD class HttpQuietDownloader(HttpFD): def to_screen(self, *a...
classes
qt_types
""" @file @brief This file contains helper functions for Qt types (string to base64) @author Noah Figg <eggmunkee@hotmail.com> @author Jonathan Thomas <jonathan@openshot.org> @author Olivier Girard <eolinwen@gmail.com> @section LICENSE Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudi...
plugins
mitele
""" $description Spanish live TV channels from Mediaset Group, including Boing, Cuatro, Divinity, Energy, FDF and Telecinco. $url mitele.es $type live $region Spain """ import logging import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream.hls im...
versions
017_1250b2ff3e36_add_pkg_relationships
# encoding: utf-8 """017 Add pkg_relationships Revision ID: 1250b2ff3e36 Revises: 37ada738328e Create Date: 2018-09-04 18:48:53.963557 """ import sqlalchemy as sa from alembic import op from ckan.migration import skip_based_on_legacy_engine_version # revision identifiers, used by Alembic. revision = "1250b2ff3e36" d...
Sketcher
Init
# *************************************************************************** # * Copyright (c) 2001,2002 Juergen Riegel <juergen.riegel@web.de> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
js2py
evaljs
# coding=utf-8 """ This module is still experimental! """ import codecs import hashlib import json import os import sys import time import pyjs import six from .translators import DEFAULT_HEADER, translate_js __all__ = [ "EvalJs", "translate_js", "import_js", "eval_js", "translate_file", "run...
auth
authentication
# -*- coding: utf-8 -*- """ flaskbb.core.auth.authentication ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2014-2018 the FlaskBB Team :license: BSD, see LICENSE for more details """ from abc import ABC, abstractmethod from ..exceptions import BaseFlaskBBError class StopAuthentication(BaseFlaskBBE...
ui
filedialog
"""This module has a generic file dialog functions that are used to open or save files.""" from __future__ import annotations import sys from pathlib import Path from gaphor.i18n import gettext from gi.repository import Gio, Gtk GAPHOR_FILTER = [(gettext("All Gaphor Models"), "*.gaphor", "application/x-gaphor")] ...
parser
cmptest
"""Support utilities for testing scripts. """ __copyright__ = "Copyright (C) 2014-2017 Martin Blais" __license__ = "GNU GPLv2" import io import textwrap import unittest from beancount.core import amount, compare, data, position from beancount.core.number import MISSING, ZERO from beancount.parser import booking, par...
TemplatePyMod
MengerSponge
# Script to create a Menger sponge # (c) 2012 Werner Mayer LGPL # The script is based on the work of daxmick at # http://forum.freecad.org/viewtopic.php?f=3&t=2307 import threading import Mesh # Create a global mesh and make copies of them # This makes the algorithm faster by ~60%. box = Mesh.createBox(1, 1, 1) #...
funnels
funnel_strict_persons
from typing import List, Optional from posthog.models.filters.filter import Filter from posthog.models.filters.mixins.utils import cached_property from posthog.queries.actor_base_query import ActorBaseQuery from posthog.queries.funnels.funnel_strict import ClickhouseFunnelStrict from posthog.queries.funnels.sql import...
gamedata
dynamicAttributes
# =============================================================================== # Copyright (C) 2010 Diego Duclos # # This file is part of eos. # # eos is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, ...
polar
decoder
#!/usr/bin/env python # # Copyright 2015 Free Software Foundation, Inc. # # SPDX-License-Identifier: GPL-3.0-or-later # # import numpy as np from matplotlib import pyplot as plt from .common import PolarCommon # for dev from .encoder import PolarEncoder class PolarDecoder(PolarCommon): def __init__(self, n, k...
Gui
MeshFlatteningCommand
# *************************************************************************** # * Copyright (c) 2017 Lorenz Lechner * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
core
timeline
# -*- coding: utf-8 -*- from datetime import timedelta from core.models import DiaperChange, Feeding, Note, Sleep, Temperature, TummyTime from django.urls import reverse from django.utils import timesince, timezone from django.utils.translation import gettext as _ def get_objects(date, child=None): """ Creat...
sgui
sgqt
import os import sys import textwrap import time from typing import Optional from sglib.constants import IS_MACOS from sglib.log import LOG if True: # PyQt try: import PyQt6 # default to PyQt5 _PYQT5_ONLY = False except ImportError: try: import PyQt5 excep...
meshes
mesh_thermomech_spine_tetra10
def create_nodes(femmesh): # nodes femmesh.addNode(203.2, 25.4, 0.0, 1) femmesh.addNode(203.2, 25.4, 25.4, 2) femmesh.addNode(203.2, 0.0, 0.0, 3) femmesh.addNode(203.2, 0.0, 25.4, 4) femmesh.addNode(0.0, 25.4, 0.0, 5) femmesh.addNode(0.0, 25.4, 25.4, 6) femmesh.addNode(0.0, 0.0, 0.0, 7) ...
config-integrations
zabbix
# Main enabled = True title = "Zabbix" slug = "zabbix" short_description = None description = None is_displayed_on_web = True is_featured = False is_able_to_autoresolve = True is_demo_alert_enabled = True description = None # Default templates slack_title = """\ *<{{ grafana_oncall_link }}|#{{ grafana_oncall_incident...
chardet
big5prober
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...