section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
fighter
localToggleStates
import eos.db import wx from logbook import Logger from service.fit import Fit pyfalog = Logger(__name__) class CalcToggleLocalFighterStatesCommand(wx.Command): def __init__(self, fitID, mainPosition, positions, forceStates=None): wx.Command.__init__(self, True, "Toggle Local Fighter States") sel...
migrations
0078_username_check
"""Ensures that the username attribute does not exceed maximum expected length. Column ``auth_user.username`` has a max_length of 150 characters since Django brought migration ``auth.0012_alter_user_first_name_max_length``. Archivematica v1.11 users should have a higher limit (250 characters), brought by a Django ap...
QT
PantallaVisualiza
import os.path import time import LCEngine4 as LCEngine from Code import ControlPosicion, Util from Code.QT import ( Colocacion, Columnas, Controles, FormLayout, Grid, Iconos, QTUtil2, QTVarios, Tablero, ) from PyQt4 import QtCore class WControl(QTVarios.WDialogo): def __init_...
app
test_cache
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022-2023 FreeCAD Project Association * # * ...
src
helper_bitcoin
""" Calculates bitcoin and testnet address from pubkey """ import hashlib from debug import logger from pyelliptic import arithmetic def calculateBitcoinAddressFromPubkey(pubkey): """Calculate bitcoin address from given pubkey (65 bytes long hex string)""" if len(pubkey) != 65: logger.error( ...
UltimakerCloud
UltimakerCloudConstants
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. # --------- # Constants used for the Cloud API # --------- DEFAULT_CLOUD_API_ROOT = "https://api.ultimaker.com" # type: str DEFAULT_CLOUD_API_VERSION = "1" # type: str DEFAULT_CLOUD_ACCOUNT_API_ROOT = "https://account.ult...
clientScripts
set_maildir_file_grp_use_and_file_ids
#!/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, ei...
soapy
qa_soapy_types
#!/usr/bin/env python # # Copyright 2021 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later from gnuradio import blocks, gr, gr_unittest, soapy class test_soapy_types(gr_unittest.TestCase): def test_range(self): test_range = soapy.range_t() ...
cli
definition
from __future__ import annotations import os import textwrap from argparse import FileType from httpie import __doc__, __version__ from httpie.cli.argtypes import ( KeyValueArgType, SessionNameValidator, SSLCredentials, readable_file_arg, response_charset_type, response_mime_type, ) from httpi...
lib
hardcachebackend
# The contents of this file are subject to the Common Public Attribution # License Version 1.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://code.reddit.com/LICENSE. The License is based on the Mozilla Public # License Version 1.1, ...
QT
POLBoard
import collections from Code import Jugada, Partida, TrListas from Code.QT import Colocacion, Controles, Iconos, PantallaColores, QTVarios, Tablero from PyQt4 import QtCore, QtGui SIN_VALORACION, MUY_MALO, MALO, BUENO, MUY_BUENO, INTERESANTE, DUDOSA = ( 0, 4, 2, 1, 3, 5, 6, ) ( V_SIN, ...
controllers
editor_ellipse
# -*- 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....
tools
SFNTLayoutTypes
import CoreText # https://developer.apple.com/fonts/TrueType-Reference-Manual/RM09/AppendixF.html # https://github.com/behdad/harfbuzz/blob/master/src/hb-coretext.cc#L381 # as taken from SFNTLayoutTypes.h # Feature types kAllTypographicFeaturesType = 0 kLigaturesType = 1 kCursiveConnectionType = 2 kLetterCaseType = ...
extractors
mercury
__package__ = "archivebox.extractors" import json from pathlib import Path from subprocess import CompletedProcess from typing import List, Optional from ..config import DEPENDENCIES, MERCURY_VERSION, SAVE_MERCURY, TIMEOUT from ..index.schema import ArchiveError, ArchiveResult, Link from ..logging_util import TimedPr...
commands
command
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Contains the Command class, a skeleton for a command.""" import collections import dataclasses import inspect import traceback import typing from typing import ( Any, Callable, L...
decrypters
GoogledriveComFolder
# -*- coding: utf-8 -* import json from pyload.core.network.http.exceptions import BadHeader from ..base.decrypter import BaseDecrypter class GoogledriveComFolder(BaseDecrypter): __name__ = "GoogledriveComFolder" __type__ = "decrypter" __version__ = "0.14" __status__ = "testing" __pattern__ = ...
profiles
profilestoolbox
"""The definition for the profiles section of the toolbox.""" from gaphas.item import SE from gaphor import UML from gaphor.core import gettext from gaphor.diagram.diagramtoolbox import ToolDef, ToolSection, new_item_factory from gaphor.UML import diagramitems from gaphor.UML.toolboxconfig import namespace_config de...
internal
validation
from __future__ import annotations import urllib.parse from collections.abc import Iterable, Mapping from typing import Any, Literal, Optional, TypeVar, Union, get_args from mopidy import exceptions from mopidy.audio.constants import PlaybackState from mopidy.types import DistinctField, Query, QueryValue, SearchField...
decrypters
MediafireComFolder
# -*- coding: utf-8 -*- import json from ..base.decrypter import BaseDecrypter class MediafireComFolder(BaseDecrypter): __name__ = "MediafireComFolder" __type__ = "decrypter" __version__ = "0.25" __status__ = "testing" __pattern__ = ( r"https?://(?:www\.)?mediafire\.com/(?:folder/|\?sha...
i18n
mofile
""" This module contains a loader for MO files, written in 2011 by Wilbert Berendsen. The module is heavily inspired by the Python gettext library, but allows for reading all contents of a MO file, also the msgid2's, which are not needed for translating but are useful e.g. when checking messages and translations for w...
filter
qa_freq_xlating_fir_filter
#!/usr/bin/env python # # Copyright 2008,2010,2012,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import cmath import math from gnuradio import blocks, filter, gr, gr_unittest def fir_filter(x, taps, decim=1): y = [] x2 = (len(taps) ...
cartoonify
run
from __future__ import division import datetime import importlib import logging import sys import time from os.path import join from pathlib import Path import click from app.drawing_dataset import DrawingDataset from app.gui import WebGui from app.image_processor import ImageProcessor, model_path, tensorflow_model_n...
engrave
autocompile
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2013 - 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 ...
Code
PGN
import collections import os import Code.SQL.Base as SQLBase from Code import ControlPosicion, Jugada, Partida, PGNreader, Util from Code.QT import QTUtil2 class UnPGN: def __init__(self, dic=None): self.reset(dic) def reset(self, dic=None): self.dic = Util.SymbolDict(dic) self.texto...
userguide
whatsthis
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2008 - 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 ...
femguiutils
selection_widgets
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * Copyright (c) 2018 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
libsecp256k1message
libsecp256k1message
import base64 import hashlib from hmac import compare_digest from base58 import b58decode_check, b58encode_check from coincurve import PrivateKey, PublicKey from util.Electrum import format as zero_format RECID_MIN = 0 RECID_MAX = 3 RECID_UNCOMPR = 27 LEN_COMPACT_SIG = 65 class SignatureError(ValueError): pass ...
queries
session_query
from typing import Dict, Optional, Tuple, Union from posthog.models import Filter from posthog.models.filters.path_filter import PathFilter from posthog.models.filters.retention_filter import RetentionFilter from posthog.models.filters.stickiness_filter import StickinessFilter from posthog.models.team import Team from...
listenbrainz
listenbrainz
# Copyright (c) 2018 Philipp Wolfer <ph.wolfer@gmail.com> # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify...
scripting
window
# Copyright (C) 2011 Chris Dekter # # 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. # # This program is distributed in t...
browser
greasemonkey
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Load, parse and make available Greasemonkey scripts.""" import dataclasses import fnmatch import functools import glob import json import os import re import textwrap from typing import List...
grc
qtgui_time_sink_x_block_yml
#!/usr/bin/env python import math import re EVERYTHING_BEFORE_PARAMS = """id: qtgui_time_sink_x label: QT GUI Time Sink parameters: - id: type label: Type dtype: enum default: complex options: [complex, float, msg_complex, msg_float] option_labels: [Complex, Float, Complex Message, Float Messag...
migrations
upgrade8
""" Migration 8 - Converts modules based on Carnyx Module Tiericide Some modules have been unpublished (and unpublished module attributes are removed from database), which causes pyfa to crash. We therefore replace these modules with their new replacements """ CONVERSIONS = { 8529: ( # Large F-S9 Reg...
conf
defaults
""" raven.conf.defaults ~~~~~~~~~~~~~~~~~~~ Represents the default values for all Sentry settings. :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import os import os.path import socket ROOT = os.path...
utils
forms
# -*- coding: utf-8 -*- """ flaskbb.utils.forms ~~~~~~~~~~~~~~~~~~~ This module contains stuff for forms. :copyright: (c) 2017 by the FlaskBB Team. :license: BSD, see LICENSE for more details. """ from enum import Enum from flask_wtf import FlaskForm from wtforms import ( BooleanField, Fl...
api
organization_resource_access
from ee.api.role import RolePermissions from ee.models.organization_resource_access import OrganizationResourceAccess from posthog.api.routing import StructuredViewSetMixin from posthog.permissions import OrganizationMemberPermissions from rest_framework import mixins, serializers, viewsets from rest_framework.permissi...
drawBot
drawBotPackage
import os import plistlib import shutil import tempfile import attr from drawBot.drawBotDrawingTools import _drawBotDrawingTool from drawBot.drawBotSettings import __version__ from drawBot.scriptTools import ScriptRunner from packaging import version """ DrawBot support for .drawbot packages. * Read and build packag...
builtinAdditionPanes
notesView
# noinspection PyPackageRequirements import gui.globalEvents as GE import gui.mainFrame import wx from gui.utils.helpers_wxPython import HandleCtrlBackspace from gui.utils.numberFormatter import formatAmount from service.fit import Fit class NotesView(wx.Panel): def __init__(self, parent): wx.Panel.__init...
models
util
# SPDX-FileCopyrightText: Ryan Roden-Corrent (rcorre) <ryan@rcorre.net> # # SPDX-License-Identifier: GPL-3.0-or-later """Utility functions for completion models.""" from typing import Callable, Sequence from qutebrowser.misc import objects from qutebrowser.utils import usertypes DeleteFuncType = Callable[[Sequence[...
panel
flatplaylist
# 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...
parser
lexer
"""Beancount syntax lexer. """ __copyright__ = "Copyright (C) 2014-2016 Martin Blais" __license__ = "GNU GPLv2" import collections import contextlib import io from beancount.core.data import new_metadata from beancount.parser import _parser LexerError = collections.namedtuple("LexerError", "source message entry") ...
main
models
# 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, either version 3 of the ...
Lib
test_cftree
import unittest from CoreFoundation import * class TestCFTree(unittest.TestCase): def testCreation(self): context = (1, 2, 3) tree = CFTreeCreate(None, context) self.assert_(isinstance(tree, CFTreeRef)) for child in ("aap", "noot", "mies"): node = CFTreeCreate(None, ...
raven
context
""" raven.context ~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import try: from collections import abc except ImportError: import collections as abc # type: ignore from threading impo...
canto-curses
main
# -*- coding: utf-8 -*- # Canto-curses - ncurses RSS reader # Copyright (C) 2016 Jack Miller <jack@codezen.org> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 as # published by the Free Software Foundation. CANTO_PROTOCO...
meta-architectures
rfcn_meta_arch
# 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...
commands
partition
import os from django.core.management.base import BaseCommand from django.db import connection def load_sql(filename): path = os.path.join(os.path.dirname(__file__), "../sql/", filename) with open(path, "r", encoding="utf_8") as f: return f.read() class Command(BaseCommand): help = "Migrate dat...
metadata
tta
# 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...
core
number_test
__copyright__ = "Copyright (C) 2015-2016 Martin Blais" __license__ = "GNU GPLv2" import decimal import random import unittest from decimal import Decimal from beancount.core import number from beancount.core.number import ZERO, D, round_to, same_sign class TestDecimalPrecision(unittest.TestCase): def test_form...
downloaders
StreamCz
# -*- coding: utf-8 -*- import hashlib import json import os import time import urllib.parse from ..base.simple_downloader import SimpleDownloader def get_api_password(episode): api_key = "fb5f58a820353bd7095de526253c14fd" timestamp = int(round(time.time() // 24 // 3600)) api_pass = api_key + "/episode...
TechDrawTools
CommandHoleShaftFit
# *************************************************************************** # * Copyright (c) 2023 edi <edi271@a1.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
landing
password
""" class views for password management """ from bookwyrm import forms, models from bookwyrm.emailing import password_reset_email from django.contrib.auth import login from django.core.exceptions import PermissionDenied from django.shortcuts import redirect from django.template.response import TemplateResponse from dja...
equations
flux_writer
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * # * Copyright (c) 2022 Uwe Stöhr <uwestoehr@lyx.org> * # * ...
dashboard
views
# -*- coding: utf-8 -*- from babybuddy.mixins import LoginRequiredMixin, PermissionRequiredMixin from core.models import Child from django.http import HttpResponseRedirect from django.urls import reverse from django.views.generic.base import TemplateView from django.views.generic.detail import DetailView class Dashbo...
draftobjects
base
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2019 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> * # * ...
operon
main
# Copyright 2012,2013 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. import os import sys from optp...
downloaders
VimeoCom
# -*- coding: utf-8 -*- import json import re import urllib.parse from ..base.simple_downloader import SimpleDownloader class VimeoCom(SimpleDownloader): __name__ = "VimeoCom" __type__ = "downloader" __version__ = "0.14" __status__ = "testing" __pattern__ = r"https?://(?:www\.)?(player\.)?vimeo\...
builders
model_builder
# 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...
femexamples
boxanalysis_base
# *************************************************************************** # * Copyright (c) 2019 Bernd Hahnebach <bernd@bimstatik.org> * # * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com * # * * # * Th...
mackup
application
""" Application Profile. An Application Profile contains all the information about an application in Mackup. Name, files, ... """ import os from . import utils from .mackup import Mackup class ApplicationProfile(object): """Instantiate this class with application specific data.""" def __init__(self, macku...
femviewprovider
view_constraint_bodyheatsource
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
forum
cli
from __future__ import annotations import fileinput import logging import sys from email.parser import FeedParser import click from flask.cli import with_appcontext from .tasks import check_maildir, process_email logger = logging.getLogger(__name__) @click.command() @with_appcontext def inject_email(filename="-")...
deluge-execute
core
# # Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with the OpenSSL library. # See LICENSE for more details. # import hashlib import logging ...
sandbox
lesson4
#! # This is statement is required by the build system to query build info if __name__ == "__build__": raise Exception import string __version__ = string.split("$Revision: 1.1.1.1 $")[1] __date__ = string.join(string.split("$Date: 2007/02/15 19:25:21 $")[1:3], " ") __author__ = "Tarn Weisner Burton <twburton@use...
cura
CuraView
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from cura.CuraApplication import CuraApplication from PyQt6.QtCore import QUrl, pyqtProperty from UM.Resources import Resources from UM.View.View import View # Since Cura has a few pre-defined "space claims" for the locat...
mixins
alert_channel_defining_mixin
import logging from time import perf_counter from apps.user_management.exceptions import OrganizationMovedException from django.core import serializers from django.core.cache import cache from django.core.exceptions import PermissionDenied from django.db import OperationalError logger = logging.getLogger(__name__) ...
bup
helpers
"""Helper functions and classes for bup.""" from __future__ import absolute_import, division import errno import hashlib import heapq import math import mmap import operator import os import re import select import stat import struct import subprocess import sys import time from collections import namedtuple from con...
pyinstaller
macos_library_path_hook
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2019-2020 Philipp Wolfer # Copyright (C) 2020 Laurent Monin # # 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 Fou...
protos
region_similarity_calculator_pb2
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/region_similarity_calculator.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pb2 f...
models
user_notification_policy
import datetime from enum import unique from typing import Tuple from apps.base.messaging import get_messaging_backends from apps.user_management.models import User from common.exceptions import UserNotificationPolicyCouldNotBeDeleted from common.ordered_model.ordered_model import OrderedModel from common.public_prima...
commands
pause
# # Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com> # Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with the OpenSSL library. #...
experiments
test_experiment_result
import unittest from functools import lru_cache from math import exp, lgamma, log from typing import List from ee.clickhouse.queries.experiments.funnel_experiment_result import ( ClickhouseFunnelExperimentResult, Variant, calculate_expected_loss, ) from ee.clickhouse.queries.experiments.trend_experiment_re...
extern
asyncsub
# -*- Mode: Python -*- # vi:si:et:sw=4:sts=4:ts=4 # from http://code.activestate.com/recipes/440554/ import errno import os import subprocess import sys import time PIPE = subprocess.PIPE if sys.platform == "win32": import msvcrt from win32file import ReadFile, WriteFile from win32pipe import PeekNamed...
templatetags
duration
# -*- coding: utf-8 -*- import datetime from core import utils from django import template from django.utils import timesince, timezone from django.utils.translation import gettext as _ register = template.Library() @register.filter def child_age_string(birth_date): """ Format a Child's age with a timeunit ...
ipv8
ipv8_health_monitor
import logging import statistics import time from ipv8.REST.asyncio_endpoint import DriftMeasurementStrategy from ipv8.taskmanager import TaskManager from ipv8_service import IPv8 class IPv8Monitor: """ Monitor the state of IPv8 and adjust its walk_interval accordingly. """ def __init__( sel...
stickiness
stickiness_actors
from typing import Dict, Optional, Tuple from posthog.models.entity import Entity from posthog.models.filters.mixins.utils import cached_property from posthog.models.filters.stickiness_filter import StickinessFilter from posthog.models.team import Team from posthog.queries.actor_base_query import ActorBaseQuery from p...
plugins
events
# Copyright 2005 Michael Urman, Joe Wreschnig # 2014, 2017 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 la...
updaters
update_script
__author__ = "Gina Häußge <osd@foosel.net>" __license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" import logging import sys from octoprint.util.commandline import CommandlineCaller...
extractor
espn
from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import determine_ext, int_or_none, unified_timestamp from .common import InfoExtractor from .once import OnceIE class ESPNIE(OnceIE): _VALID_URL = r"""(?x) https?:// (?: ...
backend
oadoi
# -*- encoding: utf-8 -*- import gzip import json import logging from backend.doiprefixes import free_doi_prefixes from backend.utils import report_speed from django.db import DataError from papers.baremodels import BareOaiRecord from papers.doi import doi_to_crossref_identifier, doi_to_url, to_doi from papers.error...
renderers
classic_markdown_renderer
from apps.alerts.incident_appearance.renderers.base_renderer import ( AlertBaseRenderer, AlertGroupBaseRenderer, ) from apps.alerts.incident_appearance.templaters import AlertClassicMarkdownTemplater from common.constants.alert_group_restrictions import ( IS_RESTRICTED_MESSAGE, IS_RESTRICTED_TITLE, ) fr...
css
cssstylesheet
"""CSSStyleSheet implements DOM Level 2 CSS CSSStyleSheet. Partly also: - http://dev.w3.org/csswg/cssom/#the-cssstylesheet - http://www.w3.org/TR/2006/WD-css3-namespace-20060828/ TODO: - ownerRule and ownerNode """ __all__ = ['CSSStyleSheet'] __docformat__ = 'restructuredtext' __version__ = '$Id$' import...
draftobjects
draftlink
# *************************************************************************** # * Copyright (c) 2019 Zheng, Lei (realthunder)<realthunder.dev@gmail.com>* # * * # * This program is free software; you can redistribute it and/or modify * # * it...
views
live_setting
from contextlib import suppress from apps.api.permissions import RBACPermission from apps.api.serializers.live_setting import LiveSettingSerializer from apps.auth_token.auth import PluginAuthentication from apps.base.models import LiveSetting from apps.oss_installation.tasks import sync_users_with_cloud from apps.slac...
-ext
meshroom_doc
# Sphinx extension defining the meshroom_doc directive # # Goal: # create specific documentation content for meshroom objects # # Usage: # .. meshroom_doc:: # :module: module_name # :class: class_name # # Note: # for now this tool focuses only on meshroom nodes import importlib from docutils import nodes from d...
gtkui
app
# -*- 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 version 3 of the Licens...
declaration
load
# -*- coding: utf-8 -*- """This module defines the ways to fill config declaration with difinitions from different sources. New loaders can be defined in the following manner: ```python from ckan.config.declaration.load import handler, loader @handler.register("custom-format") def load_from_custom(declaration, *args...
lib
hadoop_decompress
# The contents of this file are subject to the Common Public Attribution # License Version 1.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://code.reddit.com/LICENSE. The License is based on the Mozilla Public # License Version 1.1, ...
ui
diagrams
from __future__ import annotations import logging from gaphor.abc import ActionProvider from gaphor.core import action, event_handler from gaphor.core.modeling import ( AttributeUpdated, Diagram, ModelFlushed, ModelReady, StyleSheet, ) from gaphor.diagram.drop import drop from gaphor.diagram.event...
api
http_session
import re import time import warnings from typing import Any, Dict, Pattern, Tuple import requests.adapters import urllib3 from requests import PreparedRequest, Request, Session from requests.adapters import HTTPAdapter from streamlink.exceptions import PluginError, StreamlinkDeprecationWarning from streamlink.package...
addons
PushBullet
# -*- coding: utf-8 -*- import pycurl from pyload.core.network.request_factory import get_request from ..base.notifier import Notifier class PushBullet(Notifier): __name__ = "PushBullet" __type__ = "addon" __version__ = "0.06" __status__ = "testing" __config__ = [ ("enabled", "bool", "...
model
phrase
# Copyright (C) 2011 Chris Dekter # Copyright (C) 2019-2020 Thomas Hess <thomas.hess@udo.edu> # # 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 opt...
plugins
commodity_attr_test
__copyright__ = "Copyright (C) 2018 Martin Blais" __license__ = "GNU GPLv2" import unittest from beancount import loader class TestCommodityAttr(unittest.TestCase): @loader.load_doc(expect_errors=True) def test_commodity_attr(self, _, errors, __): """ plugin "beancount.plugins.commodity_att...
blocks
qa_burst_tagger
#!/usr/bin/env python # # Copyright 2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import pmt from gnuradio import blocks, gr, gr_unittest class test_burst_tagger(gr_unittest.TestCase): def setUp(self): self.tb = gr.top_block() ...
browser
history
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Simple history which gets written to disk.""" import contextlib import os import pathlib import time from typing import Mapping, MutableSequence, Optional, cast from qutebrowser.api import ...
QT
WBG_Comun
from Code import ControlPosicion, Partida, VarGen from Code.QT import Iconos, PantallaAnalisisParam, QTUtil2, QTVarios class Analisis: def __init__(self, wowner, bookGuide, dispatchAnalisis, procesador): self.pantalla = wowner self.dbAnalisis = bookGuide.dbAnalisis self.dispatchAnalisis = ...
controllers
error
# The contents of this file are subject to the Common Public Attribution # License Version 1.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://code.reddit.com/LICENSE. The License is based on the Mozilla Public # License Version 1.1, ...
extractor
expressen
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import determine_ext, int_or_none, unescapeHTML, unified_timestamp from .common import InfoExtractor class ExpressenIE(InfoExtractor): _VALID_URL = r"""(?x) https?:// (?:www\.)?(?:expressen...
gtkui
notifier
# -*- coding: utf-8 -*- # Copyright (C) 2011 Chris Dekter # # 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. # # This pr...
graphs
timeseriesplot
import time import numpy as np import pyqtgraph as pg from pyqtgraph import DateAxisItem from pyqtgraph.graphicsItems.DateAxisItem import YEAR_SPACING from tribler.gui.defs import BITTORRENT_BIRTHDAY class TimeSeriesPlot(pg.PlotWidget): def __init__(self, parent, name, series, **kargs): axis_items = karg...