section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
gui
spinbox
# This file is part of MyPaint. # Copyright (C) 2011-2018 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...
quickinsert
barlines
# 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 ...
Spreadsheet
TestSpreadsheetGui
# *************************************************************************** # * Copyright (c) 2021 Chris Hennes <chennes@pioneerlibrarysystem.org> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
extractor
keezmovies
from __future__ import unicode_literals import re from ..aes import aes_decrypt_text from ..compat import compat_urllib_parse_unquote from ..utils import ( ExtractorError, determine_ext, int_or_none, str_to_int, strip_or_none, url_or_none, ) from .common import InfoExtractor class KeezMovies...
statistics
scores
from collections import defaultdict from CTFd.api.v1.statistics import statistics_namespace from CTFd.models import Challenges, db from CTFd.utils.decorators import admins_only from CTFd.utils.scores import get_standings from flask_restx import Resource @statistics_namespace.route("/scores/distribution") class Score...
gpodder
utilwin32locale
# -*- coding: utf-8 -*- # # Copyright © 2007-2010 Dieter Verfaillie <dieterv@optionexplicit.be> # # This file is part of elib.intl. # # elib.intl 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, either v...
engines
translated
# SPDX-License-Identifier: AGPL-3.0-or-later """ MyMemory Translated """ # about about = { "website": "https://mymemory.translated.net/", "wikidata_id": None, "official_api_documentation": "https://mymemory.translated.net/doc/spec.php", "use_official_api": True, "require_api_key": False, "resu...
mainwin
tagsources
import glob import logging import os import sys import traceback from copy import deepcopy from PyQt5.QtCore import Qt, pyqtRemoveInputHook, pyqtSignal from PyQt5.QtWidgets import ( QAbstractItemView, QApplication, QCheckBox, QComboBox, QDialog, QGroupBox, QHBoxLayout, QInputDialog, ...
TDTest
DrawViewBalloonTest
import unittest import FreeCAD from FreeCAD import Units from .TechDrawTestUtilities import createPageWithSVGTemplate class DrawViewBalloonTest(unittest.TestCase): def setUp(self): """Creates a page and 2 views""" FreeCAD.newDocument("TDBalloon") FreeCAD.setActiveDocument("TDBalloon") ...
gui
statsPane
# ============================================================================= # 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 ...
migrations
0015_pronom_92
import os from django.core.management import call_command from django.db import migrations def data_migration(apps, schema_editor): fixture_file = os.path.join(os.path.dirname(__file__), "pronom_92.json") call_command("loaddata", fixture_file, app_label="fpr") Format = apps.get_model("fpr", "Format") ...
cherrypy
_cptools
"""CherryPy tools. A "tool" is any helper, adapted to CP. Tools are usually designed to be used in a variety of ways (although some may only offer one if they choose): Library calls All tools are callables that can be used wherever needed. The arguments are straightforward and should be detailed w...
events
equalizer
# Copyright 2010 Steven Robertson # 2012 Christoph Reiter # 2017 Nick Boultbee # 2018 Olli Helin # # 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 ...
picard
oauth
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2014 Lukáš Lalinský # Copyright (C) 2015 Sophist-UK # Copyright (C) 2015 Wieland Hoffmann # Copyright (C) 2015, 2018, 2021 Philipp Wolfer # Copyright (C) 2016-2017 Sambhav Kothari # Copyright (C) 2017 Frederik “Freso” S. Olesen...
extensions
sonos
# -*- coding: utf-8 -*- # Extension script to stream podcasts to Sonos speakers # Requirements: gPodder 3.x and the soco module >= 0.7 (https://pypi.python.org/pypi/soco) # (c) 2013-01-19 Stefan Kögl <stefan@skoegl.net> # Released under the same license terms as gPodder itself. import logging from functools import par...
css
marginrule
"""MarginRule implements DOM Level 2 CSS MarginRule.""" __all__ = ["MarginRule"] __docformat__ = "restructuredtext" __version__ = "$Id$" import xml.dom import cssrule import cssutils from cssstyledeclaration import CSSStyleDeclaration from cssutils.prodparser import * class MarginRule(cssrule.CSSRule): """ ...
builtinAdditionPanes
projectedView
# ============================================================================= # 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 ...
core
tokens
# -*- coding: utf-8 -*- """ flaskbb.core.auth.tokens ~~~~~~~~~~~~~~~~~~~~~~~~ This module provides ways of interacting with tokens in FlaskBB :copyright: (c) 2014-2018 by the FlaskBB Team. :license: BSD, see LICENSE for more details """ from abc import ABC, abstractmethod import attr from fla...
extractor
kuwo
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_urlparse from ..utils import ( ExtractorError, InAdvancePagedList, clean_html, get_element_by_id, remove_start, ) from .common import InfoExtractor class KuwoBaseIE(InfoExtractor): _FORMATS = [ ...
settings
settingsdialog
# Copyright (C) 2011 Chris Dekter # Copyright (C) 2018 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 option) ...
src
DigitalFactoryOutputDevice
# Copyright (c) 2021 Ultimaker B.V. # Uranium is released under the terms of the LGPLv3 or higher. import os from typing import List, Optional from cura import ApplicationMetadata from cura.API import Account from cura.CuraApplication import CuraApplication from UM.FileHandler.FileHandler import FileHandler from UM.Lo...
extractor
extremetube
from __future__ import unicode_literals from ..utils import str_to_int from .keezmovies import KeezMoviesIE class ExtremeTubeIE(KeezMoviesIE): _VALID_URL = ( r"https?://(?:www\.)?extremetube\.com/(?:[^/]+/)?video/(?P<id>[^/#?&]+)" ) _TESTS = [ { "url": "http://www.extremetube....
migrations
0001_initial
import autoslug.fields import django_extensions.db.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [] operations = [ migrations.CreateModel( name="Agent", fields=[ ( "uuid", ...
pyelliptic
ecc
""" Asymmetric cryptography using elliptic curves """ # pylint: disable=protected-access, too-many-branches, too-many-locals # Copyright (C) 2011 Yann GUIBET <yannguibet@gmail.com> # See LICENSE for details. from hashlib import sha512 from struct import pack, unpack from .cipher import Cipher from .hash import equa...
resources
icons
# -*- coding: utf-8 -*- # # Copyright (C) 2013 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....
versions
1add911660a6_admin_log_added
"""Admin log added Revision ID: 1add911660a6 Revises: 7f064e009cab Create Date: 2017-06-29 02:57:39.715965 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "1add911660a6" down_revision = "7f064e009cab" branch_labels = None depends_on = None def upgrade(): #...
services
activation
# -*- coding: utf-8 -*- """ flaskbb.auth.services.activation ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Handlers for activating accounts in FlaskBB :copyright: (c) 2014-2018 the FlaskBB Team :license: BSD, see LICENSE for more details """ from flask_babelplus import gettext as _ from ...core.auth.activatio...
gui
brushcolor
# This file is part of MyPaint. # Copyright (C) 2012-2018 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)...
lib
color
# coding=utf-8 # This file is part of MyPaint. # Copyright (C) 2012-2018 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 # (...
scripts
comparams_post
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2015 Dan Falck <ddfalck@gmail.com> * # * * # * This program is free software; you can redistribute it a...
models
twilio_sms
from apps.phone_notifications.models import ProviderSMS from django.db import models class TwilioSMSstatuses: """ https://www.twilio.com/docs/sms/tutorials/how-to-confirm-delivery-python?code-sample=code-handle-a-sms-statuscallback&code-language=Python&code-sdk-version=5.x#receive-status-events-in-your-web-ap...
engines
searx_engine
# SPDX-License-Identifier: AGPL-3.0-or-later """ Searx (all) """ from json import loads from searx.engines import categories as searx_categories # about about = { "website": "https://github.com/searx/searx", "wikidata_id": "Q17639196", "official_api_documentation": "https://searx.github.io/searx/dev/sea...
update-handlers
channel_to_group_forward
import logging import re from apps.telegram.client import TelegramClient from apps.telegram.models import TelegramToOrganizationConnector from apps.telegram.tasks import send_log_and_actions_message from apps.telegram.updates.update_handlers import UpdateHandler from apps.telegram.updates.update_handlers.verification....
Gui
Deburr
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2018 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
fcgear
involute
# (c) 2014 David Douard <david.douard@gmail.com> # (c) 2023 Jonas Bähr <jonas.baehr@web.de> # Based on https://github.com/attoparsec/inkscape-extensions.git # Based on gearUtils-03.js by Dr A.R.Collins # http://www.arc.id.au/gearDrawing.html # # Calculation of Bezier coefficients for # Higuchi et al. approxima...
server
translation
""" i18n handling. """ import pprint FALLBACK_LANG = "en" UNKNOWN_TRANSLATION_LABEL = "<unknown>" class TranslationLabel: """Mixin for easy access to translated messages. The JSON-encoded workflow uses ``object`` (mapping type) to associate messages for a particular property to language codes, e.g.:: ...
installer
analyze_errors
"""Analyze archived/exported error messages and aggregate data""" import json import os import re import sys from collections import OrderedDict from urllib.request import Request, urlopen # Read in slack token if len(sys.argv) >= 2: slack_token = sys.argv[1] # Compile error message matching regex (file path, lin...
Sketcher
TestSketcherApp
# ************************************************************************** # Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> * # Copyright (c) 2021 Emmanuel O'Brien * # * # This file i...
meshes
mesh_section_print_tetra10
def create_nodes(femmesh): # nodes femmesh.addNode(67.0, -1.77635683819838e-15, -15.0, 1) femmesh.addNode(67.0, -1.77635683819838e-15, 15.0, 2) femmesh.addNode(47.0, 0.0, -15.0, 3) femmesh.addNode(47.0, 0.0, 15.0, 4) femmesh.addNode(42.6900302834928, 41.2380386162628, -15.0, 5) femmesh.addNo...
preferences
extensions
# 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 ...
digital
qa_linear_equalizer
#!/usr/bin/env python # # Copyright 2020 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import random import numpy from gnuradio import blocks, channels, digital, gr, gr_unittest class qa_linear_equalizer(gr_unittest.TestCase): def unpack_valu...
extractor
noovo
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str from ..utils import int_or_none, js_to_json, smuggle_url, try_get from .brightcove import BrightcoveNewIE from .common import InfoExtractor class NoovoIE(InfoExtractor): _VALID_URL = r"https?://(?:[^/]+\.)?noovo\.ca/videos/(?...
gui
bitmap_loader
# ============================================================================= # 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 ...
pyvideo
pelicanconf
#!/usr/bin/env python # -*- coding: utf-8 -*- # from __future__ import unicode_literals import json import os AUTHOR = "Unknown" SITENAME = "PyVideo.org" TEMPLATE_PAGES = { "languages.html": "languages.html", } PATH = "content" DATA_DIR = "conferences" NO_PUBLISH_FILE = "NO_PUBLISH.json" IGNORE_FILES = [ ".#...
builtinItemStatsViews
itemMutator
# noinspection PyPackageRequirements import random import gui.fitCommands as cmd import gui.globalEvents as GE import gui.mainFrame import wx from gui.bitmap_loader import BitmapLoader from logbook import Logger from service.fit import Fit from .attributeSlider import EVT_VALUE_CHANGED, AttributeSlider from .itemAttr...
nyaa
forms
import functools import os import re import dns.exception import dns.resolver import flask from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileRequired from flask_wtf.recaptcha import RecaptchaField from flask_wtf.recaptcha.validators import Recaptcha as RecaptchaValidator from nyaa import bencod...
landing
login
""" class views for login/register views """ import time from bookwyrm import forms, models from bookwyrm.views.helpers import set_language from django.contrib.auth import authenticate, login, logout from django.contrib.auth.decorators import login_required from django.shortcuts import redirect from django.template.re...
socks5
server
import logging from asyncio import get_event_loop from typing import Optional from tribler.core.components.socks_servers.socks5.connection import Socks5Connection from tribler.core.components.tunnel.community.dispatcher import TunnelDispatcher class Socks5Server: """ This object represents a Socks5 server. ...
widgets
add_mul_dialog
from sgui.sgqt import * from .playback_widget import playback_widget def add_mul_dialog(a_update_callback, a_save_callback): """Generic dialog for doing event transforms. The actual transforms are performed by the caller using the event callbacks. The caller should create a list of event objects and th...
beetsplug
permissions
"""Fixes file permissions after the file gets written on import. Put something like the following in your config.yaml to configure: permissions: file: 644 dir: 755 """ import os import stat from beets import config from beets.plugins import BeetsPlugin from beets.util import ancestry, disp...
friture
audioproc
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009 Timothée Lecomte # This file is part of Friture. # # Friture is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as published by # the Free Software Foundation. # # Friture is distri...
sk1
app_conf
# -*- coding: utf-8 -*- # # Copyright (C) 2011-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...
tasks
trigger_webhook
import json import logging from json import JSONDecodeError from apps.alerts.models import AlertGroup, AlertGroupLogRecord, EscalationPolicy from apps.base.models import UserNotificationPolicyLogRecord from apps.user_management.models import User from apps.webhooks.models import Webhook, WebhookResponse from apps.webh...
svgview
widget
# 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 ...
imageserver
exif
# # Quru Image Server # # Document: exif.py # Date started: 18 Jul 2011 # By: Matt Fozard # Purpose: Converts raw TIFF, EXIF, and IPTC data values to friendly readable strings # Requires: # Copyright: Quru Ltd (www.quru.com) # Licence: # # This program is free software: you can redistribute...
classes
style_tools
""" @file @brief Utility functions for manipulating SVG style attributes @author FeRD (Frank Dana) <ferdnyc@gmail.com> @section LICENSE Copyright (c) 2008-2020 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://www.openshot.org), an open-source project d...
meshes
mesh_canticcx_tetra10
def create_nodes(femmesh): # nodes femmesh.addNode(8000.0, 1000.0, 0.0, 1) femmesh.addNode(8000.0, 1000.0, 1000.0, 2) femmesh.addNode(8000.0, 0.0, 0.0, 3) femmesh.addNode(8000.0, 0.0, 1000.0, 4) femmesh.addNode(0.0, 1000.0, 0.0, 5) femmesh.addNode(0.0, 1000.0, 1000.0, 6) femmesh.addNode(...
notification
views
from django.contrib.auth.decorators import login_required from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response from .api import get_backend_class from .backends.exceptions import NotificationDoesNotExist from .serializers import NotificationSeria...
imageserver
flask_util
# # Quru Image Server # # Document: flask_util.py # Date started: 10 Aug 2011 # By: Matt Fozard # Purpose: Flask-related utilities and helper functions # Requires: Flask # Copyright: Quru Ltd (www.quru.com) # Licence: # # This program is free software: you can redistribute it and/or mo...
Code
Tareas
import copy from PyQt4 import QtCore VTEXTO = 0 VENTERO = 1 VDECIMAL = 2 class Variable: def __init__(self, nombre, tipo, inicial): self.id = None self.nombre = nombre self.tipo = tipo self.inicial = inicial self.valor = inicial self.id = None class Tarea: d...
versions
d0eeb8049623_add_comments
"""Add comments table. Revision ID: d0eeb8049623 Revises: 3001f79b7722 Create Date: 2017-05-22 22:58:12.039149 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "d0eeb8049623" down_revision = "3001f79b7722" branch_labels = None depends_on = None TABLE_PREFIXES = ...
migrations
0126_auto_20220112_2315
# Generated by Django 3.2.10 on 2022-01-12 23:15 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0125_alter_user_preferred_language"), ] operations = [ migrations.AlterField( model_name="annualgoal", n...
archiver
rename_cmd
import argparse from ..constants import * # NOQA from ..helpers import archivename_validator from ..logger import create_logger from ..manifest import Manifest from ._common import with_archive, with_repository logger = create_logger() class RenameMixIn: @with_repository(exclusive=True, cache=True, compatibili...
file
library
import logging import os from mopidy import backend, exceptions, models from mopidy.audio import scan, tags from mopidy.internal import path logger = logging.getLogger(__name__) class FileLibraryProvider(backend.LibraryProvider): """Library for browsing local files.""" # TODO: get_images that can pull from...
gui
language_dialog
# -------------------------------------------------------------------------- # 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...
cmd
prune_older
from __future__ import absolute_import, print_function import sys from binascii import hexlify, unhexlify from collections import defaultdict from itertools import groupby from time import localtime, strftime, time from bup import git, options from bup.compat import argv_bytes from bup.gc import bup_gc from bup.helpe...
utils
category_util_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...
examples
benchmark_filters
#!/usr/bin/env python # # Copyright 2005-2007,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import random import time from argparse import ArgumentParser from gnuradio import blocks, filter, gr from gnuradio.eng_arg import eng_float, intx de...
models
listing
# 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, ...
unihandecode
jacodepoints
# -*- coding: utf-8 -*- __license__ = "GPL 3" __copyright__ = "2010 Hiroshi Miura <miurahr@linux.com>" __docformat__ = "restructuredtext en" """ Unicode code point dictionary. Based on Unicode.org Unihan database. """ CODEPOINTS = { "x34": [ "Qiu ", "Tian ", "", "", "Kua "...
beets
setup
#!/usr/bin/env python # 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 th...
providers
urlrels
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2007 Oliver Charles # Copyright (C) 2007, 2010-2011 Lukáš Lalinský # Copyright (C) 2007-2011, 2020 Philipp Wolfer # Copyright (C) 2011 Michael Wiencek # Copyright (C) 2011-2012 Wieland Hoffmann # Copyright (C) 2013-2015, 2018-2...
senf
_compat
# -*- coding: utf-8 -*- # Copyright 2016 Christoph Reiter # # 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...
neubot
main_macos
# neubot/main_macos.py # # Copyright (c) 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 Public ...
pitch
dialog
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2008 - 2015 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 ...
gui
setEditor
# ============================================================================= # Copyright (C) 2016 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...
vidcutter
mediainfo
#!/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...
upload
forms
# -*- encoding: utf-8 -*- # Dissemin: open access policy enforcement tool # Copyright (C) 2014 Antonin Delpeuch # # This program 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 2 # of th...
extractor
amara
# coding: utf-8 from __future__ import unicode_literals from ..utils import int_or_none, parse_iso8601, update_url_query from .common import InfoExtractor from .vimeo import VimeoIE from .youtube import YoutubeIE class AmaraIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?amara\.org/(?:\w+/)?videos/(?P<id>\w...
index
schema
""" WARNING: THIS FILE IS ALL LEGACY CODE TO BE REMOVED. DO NOT ADD ANY NEW FEATURES TO THIS FILE, NEW CODE GOES HERE: core/models.py """ __package__ = "archivebox.index" from dataclasses import asdict, dataclass, field, fields from datetime import datetime, timedelta, timezone from pathlib import Path from typing...
quickbuttons
qb_prefs
import os from xl.nls import gettext as _ from xlgui.preferences import widgets name = _("Quickbuttons") basedir = os.path.dirname(os.path.realpath(__file__)) ui = os.path.join(basedir, "qb_prefs.ui") class EnqueueByDefault(widgets.CheckPreference): default = True name = "quickbuttons/btn_enqueue_by_default...
plugins
brightcove
""" $description Global live-streaming and video on-demand hosting platform. $url players.brightcove.net $type live, vod $metadata title """ import logging import re from urllib.parse import urlparse from streamlink.plugin import Plugin, PluginError, pluginmatcher from streamlink.plugin.api import validate from strea...
Resources
DrawingSurface
""" Copyright 2009-2017 Olivier Belanger This file is part of SoundGrain. SoundGrain 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. Sound...
commands
cmdexc
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Exception classes for commands modules. Defined here to avoid circular dependency hell. """ import difflib from typing import List class Error(Exception): """Base class for all cmdex...
extractor
yapfiles
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ExtractorError, int_or_none, qualities, unescapeHTML, url_or_none from .common import InfoExtractor class YapFilesIE(InfoExtractor): _YAPFILES_URL = r"//(?:(?:www|api)\.)?yapfiles\.ru/get_player/*\?.*?\bv=(?P<id>\w+)" _VAL...
models
team
import typing from apps.alerts.models import AlertReceiveChannel, ChannelFilter from apps.metrics_exporter.helpers import ( metrics_add_integration_to_cache, metrics_bulk_update_team_label_cache, ) from apps.metrics_exporter.metrics_cache_manager import MetricsCacheManager from common.public_primary_keys impor...
extractor
metacritic
from __future__ import unicode_literals import re from ..utils import fix_xml_ampersands from .common import InfoExtractor class MetacriticIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?metacritic\.com/.+?/trailers/(?P<id>\d+)" _TESTS = [ { "url": "http://www.metacritic.com/game/p...
image-resizing
no_op
# 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, ...
http
actor
from __future__ import annotations import asyncio import json import logging import secrets import socket import threading from typing import TYPE_CHECKING, Any, ClassVar import pykka import tornado.httpserver import tornado.ioloop import tornado.netutil import tornado.web import tornado.websocket from mopidy import ...
forms
setup
from CTFd.constants.config import ( AccountVisibilityTypes, ChallengeVisibilityTypes, RegistrationVisibilityTypes, ScoreVisibilityTypes, ) from CTFd.forms import BaseForm from CTFd.forms.fields import SubmitField from CTFd.utils.config import get_themes from flask_babel import lazy_gettext as _l from wt...
examples
gr_filtdes_live_upd
#!/usr/bin/env python # # Copyright 2012,2020 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 from gnuradio.filter import filter_design try: import sip from g...
src
UltimakerNetworkedPrinterOutputDevice
# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import os from time import time from typing import Dict, List, Optional from cura.CuraApplication import CuraApplication from cura.PrinterOutput.Models.PrinterOutputModel import PrinterOutputModel from cura.PrinterOutput.Ne...
extractor
muenchentv
# coding: utf-8 from __future__ import unicode_literals import json from ..utils import determine_ext, int_or_none, js_to_json from .common import InfoExtractor class MuenchenTVIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?muenchen\.tv/livestream" IE_DESC = "münchen.tv" _TEST = { "url": "...
sk1
clipboard
# -*- 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...
mutagenext
ac3
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2019, 2021 Philipp Wolfer # Copyright (C) 2020-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 Softwa...
network
downloadthread
""" `DownloadThread` class definition """ import time import addresses import helper_random import protocol from dandelion import Dandelion from inventory import Inventory from network.connectionpool import BMConnectionPool from objectracker import missingObjects from threads import StoppableThread class DownloadThr...
migrations
0112_auto_20211022_0844
# Generated by Django 3.2.5 on 2021-10-22 08:44 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0111_merge_0107_auto_20211016_0639_0110_auto_20211015_1734"), ] operations = [ migrations.RemoveConstraint( model_nam...
lib
observable
# This file is part of MyPaint. # Copyright (C) 2013-2017 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 Foundation; either version 2 of the License, or # (at ...
gst
missing_plugin
# 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 will be useful, # but WITHOUT ANY W...
versions
1093835a1051_add_default_email_templates
"""Add default email templates Revision ID: 1093835a1051 Revises: a03403986a32 Create Date: 2020-02-15 01:32:10.959373 """ from alembic import op from CTFd.models import db from CTFd.utils.email import ( DEFAULT_PASSWORD_RESET_BODY, DEFAULT_PASSWORD_RESET_SUBJECT, DEFAULT_SUCCESSFUL_REGISTRATION_EMAIL_BOD...