section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
output
utils
import json import re from typing import Tuple from ..utils import load_json_preserve_order_and_dupe_keys from .lexers.json import PREFIX_REGEX def load_prefixed_json(data: str) -> Tuple[str, json.JSONDecoder]: """Simple JSON loading from `data`.""" # First, the full data. try: return "", load_js...
ImageReader
ImageReaderUI
# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import os import threading from PyQt6.QtCore import QObject, Qt, pyqtSignal from UM.Application import Application from UM.FlameProfiler import pyqtSlot from UM.i18n import i18nCatalog from UM.Logger import Logger from UM....
gui
updateDialog
# ============================================================================= # 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 ...
community
caches
from asyncio import Future from ipv8.requestcache import NumberCache, RandomNumberCache class BalanceRequestCache(NumberCache): def __init__(self, community, circuit_id, balance_future): super().__init__(community.request_cache, "balance-request", circuit_id) self.circuit_id = circuit_id ...
stylesheets
mediaquery
"""Implements a DOM for MediaQuery, see http://www.w3.org/TR/css3-mediaqueries/. A cssutils implementation, not defined in official DOM. """ __all__ = ['MediaQuery'] __docformat__ = 'restructuredtext' __version__ = '$Id$' import re import xml.dom import cssutils class MediaQuery(cssutils.util.Base): """ A...
core
urls
# -*- coding: utf-8 -*- from django.urls import path from . import views app_name = "core" urlpatterns = [ path("pumping/", views.PumpingList.as_view(), name="pumping-list"), path("pumping/add/", views.PumpingAdd.as_view(), name="pumping-add"), path( "pumping/<int:pk>/", views.PumpingUpda...
blocks
qa_python_message_passing
#!/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 time import numpy import pmt from gnuradio import blocks, gr, gr_unittest # Simple block to generate messages class message_generator(gr.sync_block): ...
helpers
passphrase
import getpass import os import shlex import subprocess import sys from ..logger import create_logger from . import Error, bin_to_hex, prepare_subprocess_env, yes logger = create_logger() class NoPassphraseFailure(Error): """can not acquire a passphrase: {}""" class PassphraseWrong(Error): """passphrase s...
chained-functions
plugin
# -*- coding: utf-8 -*- from __future__ import annotations from typing import Any, Callable, Optional import ckan.plugins as p from ckan.plugins.toolkit import ( auth_allow_anonymous_access, chained_action, chained_auth_function, chained_helper, side_effect_free, ) from ckan.types import Action, A...
metadata
opf2
#!/usr/bin/env python __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' ''' lxml based OPF parser. ''' import copy import functools import glob import json import os import re import sys import unittest import uuid from urllib import unquote impo...
const
sys
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2019 Philipp Wolfer # Copyright (C) 2019-2021 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...
engines
bing_videos
# SPDX-License-Identifier: AGPL-3.0-or-later """ Bing (Videos) """ from json import loads from urllib.parse import urlencode from lxml import html from searx.engines.bing import ( # NOQA # pylint: disable=unused-import _fetch_supported_languages, language_aliases, supported_languages_url, ) from searx.u...
image
cue
# -*- Mode: Python; test-case-name: whipper.test.test_image_cue -*- # vi:si:et:sw=4:sts=4:ts=4 # Copyright (C) 2009 Thomas Vander Stichele # This file is part of whipper. # # whipper is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Fr...
download-manager
stream
""" There are 2 types of prioritisation implemented: 1-STATIC PRIORITISATION: Header + Footer + Prebuffer Prioritisation: When a file in torrent is set to stream, predefined size of heeder + footer + prebuffer is set to prio:7 deadline:0 and rest of the files and pieces are set to prio:0 (which means dont download at a...
AddonManager
compact_view
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'compact_view.ui' ## ## Created by: Qt User Interface Compiler version 5.15.1 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! #############...
widgets
playback
# 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...
web
settings
""" Django settings for web project. Generated by 'django-admin startproject' using Django 1.10.5. For more information on this file, see https://docs.djangoproject.com/en/1.10/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.10/ref/settings/ """ import os fro...
migrations
0001_initial
# Generated by Django 2.2.7 on 2020-01-23 22:38 import django.contrib.auth.models import django.contrib.auth.validators import django.contrib.postgres.fields.jsonb import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models class Migration(m...
Code
Presentacion
import codecs import random import time import LCEngine4 as LCEngine from Code import ControlPosicion, Util from Code.QT import Controles, Iconos, QTUtil2, QTVarios class GestorM1: def __init__(self, procesador): self.pantalla = procesador.pantalla self.tablero = self.pantalla.tablero sel...
engines
omnom
# SPDX-License-Identifier: AGPL-3.0-or-later """ Omnom (General) """ from json import loads from urllib.parse import urlencode # about about = { "website": "https://github.com/asciimoo/omnom", "wikidata_id": None, "official_api_documentation": "http://your.omnom.host/api", "use_official_api": True, ...
neubot
handler
# neubot/handler.py # # Copyright (c) 2010-2012 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 General Publi...
downloader
ism
from __future__ import unicode_literals import binascii import io import time from ..compat import compat_Struct, compat_urllib_error from .fragment import FragmentFD u8 = compat_Struct(">B") u88 = compat_Struct(">Bx") u16 = compat_Struct(">H") u1616 = compat_Struct(">Hxx") u32 = compat_Struct(">I") u64 = compat_Str...
eos
calc
# ============================================================================= # Copyright (C) 2019 Ryan Holmes # # 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 v...
plugins
crunchyroll
""" $description Video streaming service focused on anime, manga, and dorama. $url crunchyroll.com $type vod $metadata id $metadata author $metadata category $metadata title """ import logging import re from uuid import uuid4 from streamlink.plugin import Plugin, PluginError, pluginargument, pluginmatcher from stream...
ui
ui_aboutdialog
# -*- coding: utf-8 -*- # Automatically generated - don't edit. # Use `python setup.py build_ui` to update it. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_AboutDialog(object): def setupUi(self, AboutDialog): AboutDialog.setObjectName("AboutDialog") AboutDialog.resize(680, 480) A...
core
distribution
"""A simple accumulator for data about a mathematical distribution. """ __copyright__ = "Copyright (C) 2015-2017 Martin Blais" __license__ = "GNU GPLv2" import collections class Distribution: """A class that computes a histogram of integer values. This is used to compute a length that will cover at least so...
migrations
0004_auto_20230418_0109
# Generated by Django 3.2.18 on 2023-04-18 01:09 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("webhooks", "0003_auto_20230412_0006"), ] operations = [ migrations.AlterField( model_name="webhook", name="trigger_t...
searx
results
import re from collections import defaultdict from operator import itemgetter from threading import RLock from urllib.parse import unquote, urlparse from searx import logger, settings from searx.engines import engines from searx.metrology.error_recorder import record_error from searx.utils import add_scheme_to_url CO...
extractor
dw
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_urlparse from ..utils import int_or_none, unified_strdate from .common import InfoExtractor class DWIE(InfoExtractor): IE_NAME = "dw" _VALID_URL = r"https?://(?:www\.)?dw\.com/(?:[^/]+/)+(?:av|e)-(?P<id>\d+)" _TESTS = [ ...
gtkui
services
# -*- 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...
VersionUpgrade49to410
VersionUpgrade49to410
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import configparser import io import os.path # To get the file ID. from typing import Dict, List, Tuple from UM.VersionUpgrade import VersionUpgrade class VersionUpgrade49to410(VersionUpgrade): """ Upgrades conf...
services
reauthentication
# -*- coding: utf-8 -*- """ flaskbb.auth.services.reauthentication ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Tools for handling reauthentication needs inside FlaskBB. :copyright: (c) 2014-2018 the FlaskBB Team :license: BSD, see LICENSE for more details """ import logging from flask_babelplus import...
clientScripts
normalize
#!/usr/bin/env python import argparse import csv import errno import os import shutil import traceback import uuid import django from django.utils import timezone from . import transcoder django.setup() # archivematicaCommon import databaseFunctions import fileOperations from dicts import ReplacementDict from django...
femobjects
element_rotation1D
# *************************************************************************** # * Copyright (c) 2017 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
streamlink
buffers
from collections import deque from io import BytesIO from threading import Event, Lock class Chunk(BytesIO): """A single chunk, part of the buffer.""" def __init__(self, buf): self.length = len(buf) BytesIO.__init__(self, buf) @property def empty(self): return self.tell() == ...
extractor
xminus
# coding: utf-8 from __future__ import unicode_literals import re import time from ..compat import compat_ord from ..utils import int_or_none, parse_duration from .common import InfoExtractor class XMinusIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?x-minus\.org/track/(?P<id>[0-9]+)" _TEST = { ...
lib
validation
# This file is part of MyPaint. # Copyright (C) 2020 by the MyPaint Development Team # # 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 ...
Models
IntentModel
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Any, Dict, List, Optional, Set import cura.CuraApplication from cura.Machines.ContainerTree import ContainerTree from cura.Machines.MaterialNode import MaterialNode from cura.Machines.Models.MachineModelU...
drawbot
setup
#!/usr/bin/env python from __future__ import absolute_import, division, print_function import os import re import shutil from setuptools import setup _versionRE = re.compile(r"__version__\s*=\s*\"([^\"]+)\"") # read the version number for the settings file with open("drawBot/drawBotSettings.py", "r") as settings: ...
gui-qt
lookup_dialog
from plover import _ from plover.gui_qt.lookup_dialog_ui import Ui_LookupDialog from plover.gui_qt.tool import Tool from plover.translation import unescape_translation from PyQt5.QtCore import QEvent, Qt class LookupDialog(Tool, Ui_LookupDialog): # i18n: Widget: “LookupDialog”, tooltip. __doc__ = _("Search th...
frontend
setup_tool_ext
from hashlib import md5 from scrapy.selector import Selector from .settings import SNAPSHOT_DIR def build_xpath_results(selectors, file_name): feed_xpath = selectors[0] field_xpathes = selectors[1] fpath = "%s/%s" % (SNAPSHOT_DIR, file_name) with open(fpath) as f: data = f.read() html...
util
bluelet
"""Extremely simple pure-Python implementation of coroutine-style asynchronous socket I/O. Inspired by, but inferior to, Eventlet. Bluelet can also be thought of as a less-terrible replacement for asyncore. Bluelet: easy concurrency without all the messy parallelism. """ import collections import errno import select ...
mail
bcc_settings
class BCCSettings(object): """Settings object for automatic BCC. This allows you to have a blind carbon copy automatically sent to the specified email address for every email that is sent. """ def __init__(self, enable=None, email=None): """Create a BCCSettings. :param enable: Whe...
lib
localecodes
# -*- coding: utf-8 -*- # This file is part of MyPaint. # Copyright (C) 2019 by The MyPaint Team # # 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 ...
migrations
0139_report_status
# Generated by Django 3.2.12 on 2022-02-24 20:41 import django.db.models.deletion from django.db import migrations, models def set_report_statuses(apps, schema_editor): """copy over status fields""" db_alias = schema_editor.connection.alias report_model = apps.get_model("bookwyrm", "Report") reports ...
temporal
codec
import base64 from typing import Iterable from cryptography.fernet import Fernet from temporalio.api.common.v1 import Payload from temporalio.converter import PayloadCodec class EncryptionCodec(PayloadCodec): """A PayloadCodec that encrypts/decrypts all Payloads. Args: settings: Django settings to o...
models
connector
""" manages interfaces with external sources of book data """ from bookwyrm.connectors.settings import CONNECTORS from django.db import models from .base_model import BookWyrmModel, DeactivationReason ConnectorFiles = models.TextChoices("ConnectorFiles", CONNECTORS) class Connector(BookWyrmModel): """book data ...
Worker
WorkerManager
import collections import logging import time import gevent import util from Config import config from Debug.DebugLock import DebugLock from Plugin import PluginManager from util import helper from .Worker import Worker from .WorkerTaskManager import WorkerTaskManager @PluginManager.acceptPlugins class WorkerManage...
util
urllib
# Copyright 2016 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. from __future__ import absolute_imp...
utils
bisect_key_test
__copyright__ = "Copyright (C) 2014, 2016-2017 Martin Blais" __license__ = "GNU GPLv2" import random import unittest from beancount.utils import bisect_key class TestBisectWithKey(unittest.TestCase): def test_bisect_left_with_key(self): second = lambda x: x[1] data = [(random.random(), i) for ...
parts
brass
# 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 ...
gtk3
gtkui
# # Copyright (C) 2007-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. # # pylint: disable=wrong-im...
helpers
schemas
from typing import Container, Dict, Type from pydantic import BaseModel, create_model from sqlalchemy.inspection import inspect from sqlalchemy.orm.properties import ColumnProperty def sqlalchemy_to_pydantic( db_model: Type, *, include: Dict[str, type] = None, exclude: Container[str] = None ) -> Type[BaseModel]:...
BasicShapes
Utils
# *************************************************************************** # * * # * Copyright (c) 2023 Werner Mayer <wmayer[at]users.sourceforge.net> * # * * # * Th...
canto-curses
gui
# -*- 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. import loggin...
extractor
leeco
# coding: utf-8 from __future__ import unicode_literals import datetime import hashlib import re import time from ..compat import ( compat_b64decode, compat_ord, compat_str, compat_urllib_parse_urlencode, ) from ..utils import ( ExtractorError, determine_ext, encode_data_uri, int_or_no...
cli
analysis
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2017 The OctoPrint Project - Released under terms of the AGPLv3 License" import sys import click from octoprint.util import yaml click.disable_unicode_literals_warning = True # ~~ "octoprint util" ...
dbcore
queryparse
# This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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, ...
calculix
write_constraint_sectionprint
# *************************************************************************** # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
gui
fitSystemSecurity
import eos.db import gui.mainFrame import wx from gui import globalEvents as GE from gui.fitCommands.calc.fitSystemSecurity import CalcChangeFitSystemSecurityCommand from gui.fitCommands.helpers import InternalCommandHistory from service.fit import Fit class GuiChangeFitSystemSecurityCommand(wx.Command): def __in...
PyObjCTest
test_cfnumberformatter
from CoreFoundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str try: long except NameError: long = int class TestNumberFormatter(TestCase): def testTypes(self): self.assertIsCFType(CFNumberFormatterRef) def testTypeID(self): s...
util
checks
""" Various utility functions to supplement the functionality of the type assert functions """ from typing import Iterable __all__ = [ "check_dups", ] def check_dups( iterable, debug_limit: int = 1000, ): """Checks an iterable for duplicates Note that it does not make sense to call ...
transmissionrpc
client
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 Erik Svensson <erik.public@gmail.com> # Licensed under the MIT license. import base64 import json import operator import os import re import time import warnings from six import PY3, integer_types, iteritems, string_types from transmissionrpc.constants import DEFAULT_...
metadata
asf
# 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...
xlgui
menu
# Copyright (C) 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 it w...
builtinPreferenceViews
pyfaLoggingPreferences
import config import wx from gui.bitmap_loader import BitmapLoader from gui.preferenceView import PreferenceView from logbook import Logger pyfalog = Logger(__name__) _t = wx.GetTranslation def OnDumpLogs(event): pyfalog.critical("Dump log button was pressed. Writing all logs to log file.") class PFGeneralPref...
extractor
svt
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import ( determine_ext, dict_get, int_or_none, str_or_none, strip_or_none, try_get, unified_timestamp, ) from .common import InfoExtractor class SVTBaseIE(InfoExtractor): _G...
OpenSCAD
TestOpenSCADApp
# *************************************************************************** # * Copyright (c) 2021 Chris Hennes <chennes@pioneerlibrarysystem.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
gui
layerprops
# This file is part of MyPaint. # Copyright (C) 2017 by the MyPaint Development Team. # # 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...
devel
example_singleton_pubsub
# Singleton and Publisher-Subscriber design patterns example. from invesalius.pubsub import pub as Publisher class Singleton(type): # This is a Gary Robinson implementation: # http://www.garyrobinson.net/2004/03/python_singleto.html def __init__(cls,name,bases,dic): super(Singleton,cls).__in...
connectors
connector_manager
""" interface with whatever connectors the app has """ from __future__ import annotations import asyncio import importlib import ipaddress import logging from asyncio import Future from typing import Any, Iterator, Literal, Optional, Union, overload from urllib.parse import urlparse import aiohttp from bookwyrm impor...
extractor
asiancrush
# coding: utf-8 from __future__ import unicode_literals import functools import re from ..utils import ( OnDemandPagedList, extract_attributes, int_or_none, parse_age_limit, strip_or_none, try_get, ) from .common import InfoExtractor from .kaltura import KalturaIE class AsianCrushBaseIE(Info...
extractor
simplecast
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ( clean_podcast_url, int_or_none, parse_iso8601, strip_or_none, try_get, urlencode_postdata, ) from .common import InfoExtractor class SimplecastBaseIE(InfoExtractor): _UUID_REGEX = r"[\da-f]{8}-(?:[\da...
posthog
exceptions
from typing import Any, Optional, TypedDict import structlog from django.http.request import HttpRequest from django.http.response import JsonResponse from posthog.cloud_utils import is_cloud from rest_framework import status from rest_framework.exceptions import APIException from sentry_sdk import capture_exception ...
output
streams
from abc import ABCMeta, abstractmethod from itertools import chain from typing import Callable, Iterable, Optional, Union from ..context import Environment from ..encoding import UTF8, smart_decode, smart_encode from ..models import HTTPMessage, OutputOptions from ..utils import parse_content_type_header from .proces...
gui
fill
# This file is part of MyPaint. # Copyright (C) 2018 by the Mypaint Development Team # Copyright (C) 2013 by Andrew Chadwick <a.t.chadwick@gmail.com> # # 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 Founda...
extractor
movieclips
# coding: utf-8 from __future__ import unicode_literals from ..utils import float_or_none, parse_iso8601, smuggle_url, update_url_query from .common import InfoExtractor class MovieClipsIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?movieclips\.com/videos/.+-(?P<id>\d+)(?:\?|$)" _TEST = { "url"...
apps
utils
#!/usr/bin/env python # -*- coding:utf-8 -*- # A GAE web application to aggregate rss and send it to your kindle. # Visit https://github.com/cdhigh/KindleEar for the latest version # Author: # cdhigh <https://github.com/cdhigh> # Contributors: # rexdf <https://github.com/rexdf> import datetime import gettext import os ...
helpers
shellpattern
import os import re from queue import LifoQueue def translate(pat, match_end=r"\Z"): """Translate a shell-style pattern to a regular expression. The pattern may include ``**<sep>`` (<sep> stands for the platform-specific path separator; "/" on POSIX systems) for matching zero or more directory levels and...
Settings
CuraStackBuilder
# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import copy from typing import Optional, cast from cura.Machines.ContainerTree import ContainerTree from UM.ConfigurationErrorMessage import ConfigurationErrorMessage from UM.Logger import Logger from UM.Settings.InstanceC...
upgrade
db8_to_db10
import contextlib import datetime import logging import sqlite3 from collections import deque from time import time as now from pony.orm import db_session from tribler.core.components.metadata_store.db.store import MetadataStore TABLE_NAMES = ( "ChannelNode", "TorrentState", "TorrentState_TrackerState", ...
versions
8369118943a1_initial_revision
"""Initial Revision Revision ID: 8369118943a1 Revises: Create Date: 2018-11-05 01:06:24.495010 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "8369118943a1" down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gen...
sequencer
context_menu
import copy import re from sglib import constants from sglib.lib import util from sglib.lib.translate import _ from sglib.log import LOG from sglib.models.daw import * from sgui import shared as glbl_shared from sgui.daw import shared from sgui.daw.lib import item as item_lib from sgui.sgqt import * from . import _sh...
css
colors
# -*- coding: utf-8 -*- """ Built from something like this: print [ ( row[2].text_content().strip(), eval(row[4].text_content().strip()) ) for row in lxml.html.parse('http://www.w3.org/TR/css3-color/') .xpath("//*[@class='colortable']//tr[position()>1]") ...
data
slice_data
# -------------------------------------------------------------------------- # Software: InVesalius - Software de Reconstrucao 3D de Imagens Medicas # Copyright: (C) 2001 Centro de Pesquisas Renato Archer # Homepage: http://www.softwarepublico.gov.br # Contact: invesalius@cti.gov.br # License: GNU...
src
terminal
from argparse import ArgumentParser from os import getcwd, path from pathlib import Path from typing import List import yaml from printerlinter import factory from printerlinter.diagnostic import Diagnostic from printerlinter.formatters.def_json_formatter import DefJsonFormatter from printerlinter.formatters.inst_cfg_...
wsgiserver
ssl_builtin
"""A library for integrating Python's builtin ``ssl`` library with CherryPy. The ssl module must be importable for SSL functionality. To use this module, set ``CherryPyWSGIServer.ssl_adapter`` to an instance of ``BuiltinSSLAdapter``. """ try: import ssl except ImportError: ssl = None try: from _pyio imp...
Models
BaseMaterialsModel
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Dict, Set import cura.CuraApplication # Imported like this to prevent a circular reference. from cura.Machines.ContainerTree import ContainerTree from cura.Machines.MaterialNode import MaterialNode from...
Code
EnginesWindows
# -*- coding: utf-8 -*- import collections from Code import BaseConfig def leeRivales(): dicRivales = collections.OrderedDict() def mas(cm): dicRivales[cm.clave] = cm # p-rint """["%s", "%s", "%s"],"""%(cm.nombre, cm.autor, cm.url) ConfigMotor = BaseConfig.ConfigMotor cm = ConfigMo...
femtaskpanels
task_mesh_region
# *************************************************************************** # * Copyright (c) 2016 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
models
faster_rcnn_resnet_v1_feature_extractor_test
# 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...
sk1
app_proxy
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2018 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 ver...
vcs
apprepo
# 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 ...
AddonManager
addonmanager_workers_utility
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022-2023 FreeCAD Project Association * # * ...
extractor
bloomberg
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class BloombergIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?bloomberg\.com/(?:[^/]+/)*(?P<id>[^/?#]+)" _TESTS = [ { "url": "http://www.bloomberg.com/news/videos/b/aaeae121-5949-48...
PyObjCTest
test_nscoder
import Foundation import objc from Foundation import * from PyObjCTest.testhelper import PyObjC_TestClass4 from PyObjCTools.TestSupport import * try: memoryview except NameError: memoryview = None class TestNSCoderUsage(TestCase): def testUsage(self): class CoderClass1(NSObject): def ...
beetsplug
convert
# This file is part of beets. # Copyright 2016, Jakob Schnitzer. # # 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,...
extractor
xbef
from __future__ import unicode_literals from ..compat import compat_urllib_parse_unquote from .common import InfoExtractor class XBefIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?xbef\.com/video/(?P<id>[0-9]+)" _TEST = { "url": "http://xbef.com/video/5119-glamourous-lesbians-smoking-drinking-a...
builtinViewColumns
propertyDisplay
# ============================================================================= # 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 ...
web
urls
import os from django.contrib import admin from django.urls import path, re_path from django.views.decorators.csrf import csrf_exempt from graphene_django.views import GraphQLView from graphql_jwt.decorators import jwt_cookie from photonix.photos.views import dummy_thumbnail_response, thumbnailer, upload urlpatterns ...