section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
animosd
prefs
# Copyright (C) 2012-13 Nick Boultbee, Thomas Vogt # Copyright (C) 2008 Andreas Bombe # Copyright (C) 2005 Michael Urman # Based on osd.py (C) 2005 Ton van den Heuvel, Joe Wreshnig # (C) 2004 Gustavo J. A. M. Carneiro # # This program is free software; you can redistribute it and/or modify # it under t...
decrypters
TurbobitNetFolder
# -*- coding: utf-8 -*- import json from ..base.simple_decrypter import SimpleDecrypter class TurbobitNetFolder(SimpleDecrypter): __name__ = "TurbobitNetFolder" __type__ = "decrypter" __version__ = "0.11" __status__ = "broken" __pattern__ = r"http://(?:www\.)?turbobit\.net/download/folder/(?P<I...
lib
pocket
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Pocketd V3 API封装,使用OAuth 2. Author: cdhigh 用法: Step 1: Obtain a platform consumer key Step 2: Obtain a request token Step 3: Redirect user to Pocket to continue authorization Step 4: Receive the callback from Pocket Step 5: Convert a request token into a Pocket access t...
gdist
search_provider
# Copyright 2013-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, merge, publish, #...
extractor
coub
# coding: utf-8 from __future__ import unicode_literals from ..utils import ExtractorError, float_or_none, int_or_none, parse_iso8601, qualities from .common import InfoExtractor class CoubIE(InfoExtractor): _VALID_URL = r"(?:coub:|https?://(?:coub\.com/(?:view|embed|coubs)/|c-cdn\.coub\.com/fb-player\.swf\?.*\b...
blocks
parse_file_metadata
#!/usr/bin/env python # # Copyright 2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import decimal import sys import pmt from gnuradio import blocks, gr """ sr Sample rate (samples/second) time Time as uint64(secs), double(fractional secs)...
clientScripts
compress_aip
#!/usr/bin/env python import argparse import os.path import sys import django from django.db import transaction django.setup() # archivematicaCommon import databaseFunctions from executeOrRunSubProcess import executeOrRun # dashboard from main.models import SIP def update_unit(sip_uuid, compressed_location): #...
audioinfo
vorbis
from copy import deepcopy from mutagen.oggvorbis import OggVorbis try: from mutagen.oggopus import OggOpus except ImportError: OggOpus = None import base64 from mutagen.flac import FLAC, Picture from . import util from .tag_versions import tags_in_file from .util import ( FILENAME, PATH, Casele...
migrations
0020_bmi_tags_diaperchange_tags_feeding_tags_and_more
# Generated by Django 4.0.3 on 2022-03-08 12:42 import core.models from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("core", "0019_tag_tagged_note_tags"), ] operations = [ migrations.AddField( model_name="bmi", name="tags", ...
other
doxypy
#!/usr/bin/env python __applicationName__ = "doxypy" __blurb__ = """ doxypy is an input filter for Doxygen. It preprocesses python files so that docstrings of classes and functions are reformatted into Doxygen-conform documentation blocks. """ __doc__ = ( __blurb__ + """ In order to make Doxygen preprocess f...
Messages
PrintJobUploadProgressMessage
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from UM import i18nCatalog from UM.Message import Message I18N_CATALOG = i18nCatalog("cura") class PrintJobUploadProgressMessage(Message): """Class responsible for showing a progress message while a mesh is being uplo...
api
action
from typing import Any, Dict, List, Optional, cast from dateutil.relativedelta import relativedelta from django.db.models import Count, Prefetch from django.utils.timezone import now from posthog.api.routing import StructuredViewSetMixin from posthog.api.shared import UserBasicSerializer from posthog.api.utils import ...
bookwyrm
lists_stream
""" access the list streams stored in redis """ from bookwyrm import models from bookwyrm.redis_store import RedisStore from bookwyrm.tasks import LISTS, app from django.db import transaction from django.db.models import Count, Q, signals from django.dispatch import receiver class ListsStream(RedisStore): """all ...
time-to-see-data
serializers
from functools import cached_property from posthog.models.user import User from rest_framework import serializers class SessionsQuerySerializer(serializers.Serializer): team_id = serializers.IntegerField(required=False) session_id = serializers.CharField(required=False) class SessionEventsQuerySerializer(s...
Draft
DraftGeomUtils
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * * # * Th...
classes
effect_init
""" @file @brief This file contains some Effect metadata related to pre-processing of Effects @author Jonathan Thomas <jonathan@openshot.org> @author Frank Dana <ferdnyc AT gmail com> @section LICENSE Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot...
util
picklehelper
# 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. """One interface for pickle/cPickle...
migrations
0001_squashed_initial
# Generated by Django 3.2.5 on 2022-05-31 14:46 import django.db.models.deletion import django_migration_linter as linter from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ("user_management", "0001_squashed_initial"), ("base", "00...
windows
cutting
""" @file @brief This file loads the clip cutting interface (quickly cut up a clip into smaller clips) @author Jonathan Thomas <jonathan@openshot.org> @section LICENSE Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://www.opensho...
PyObjCTest
test_weirdness
# This is not a real test, but more documentation of a strange feature of # the Cocoa runtime. # # A number of classes in Cocoa grow new methods if you instantiate them. We # work around this feature by rescanning the method table after calling a # class-method. # # We need to do this to reliably detect calls to the su...
gtkui
widgets
# -*- 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...
mainwin
previews
from copy import deepcopy from functools import partial from PyQt5.QtCore import QObject, pyqtSignal from PyQt5.QtWidgets import QAction, QMenu from ..constants import FILESSELECTED from ..plugins import connect_shortcut from ..puddleobjects import PuddleConfig from ..translations import translate status = {} _prev...
uic-files
thumbnails_ui
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'forms/thumbnails.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_Thumbnails(object): def setupUi(self, Thumbnails): ...
color
model
import operator import sys from collections import defaultdict from colorsys import rgb_to_hsv from pathlib import Path import numpy as np from PIL import Image class ColorModel: version = 20210206 approx_ram_mb = 120 max_num_workers = 2 def __init__(self): self.colors = { # Name...
models
plugin
import datetime import os from dataclasses import dataclass from enum import Enum from typing import Any, Dict, List, Optional, Tuple, cast from uuid import UUID from django.conf import settings from django.core import exceptions from django.db import models from django.db.models.signals import post_delete, post_save ...
frescobaldi-app
documentcontextmenu
# 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 ...
CreatePDFDocument
CreatePDFDocument
import os import sys import Quartz from Quartz import * # Return the generic RGB color space. This is a 'get' function and the caller # should not release the returned value unless the caller retains it first. # Usually callers of this routine will immediately use the returned colorspace # with CoreGraphics so they t...
builtinContextMenus
resistMode
from collections import OrderedDict import gui.mainFrame import wx from graphs.events import ResistModeChanged from graphs.wrapper import TargetWrapper from gui.contextMenu import ContextMenuCombined from service.const import TargetResistMode from service.settings import GraphSettings # noinspection PyPackageRequirem...
extractor
rice
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_parse_qs from ..utils import ( ExtractorError, int_or_none, parse_iso8601, xpath_element, xpath_text, ) from .common import InfoExtractor class RICEIE(InfoExtractor): _VALID_URL = ( r"https?...
dialogs
windowfiltersettings
# 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) a...
queries
base
import datetime import re from typing import Any, Callable, Dict, List, Optional, TypeVar, Union, cast from dateutil import parser from django.db.models import Exists, OuterRef, Q from posthog.constants import PropertyOperatorType from posthog.models.cohort import Cohort, CohortPeople from posthog.models.filters.filte...
document
renderer
# -*- 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...
beetsplug
play
# This file is part of beets. # Copyright 2016, David Hamp-Gonsalves # # 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, c...
meshes
mesh_thermomech_bimetall_tetra10
def create_nodes(femmesh): # nodes femmesh.addNode(0.0, 0.0, 0.0, 1) femmesh.addNode(0.0, 0.0, 1.0, 2) femmesh.addNode(0.0, 5.0, 1.0, 3) femmesh.addNode(0.0, 5.0, 0.0, 4) femmesh.addNode(100.0, 0.0, 0.0, 5) femmesh.addNode(100.0, 0.0, 1.0, 6) femmesh.addNode(100.0, 5.0, 1.0, 7) femme...
ocrolib
lattice
from collections import defaultdict from pylab import * class Edge: def __init__(self, **kw): self.__dict__.update(kw) def __str__(self): return self.__repr__() def __repr__(self): return "<%d:%d [%s] %.2f %d:%d>" % ( self.start, self.stop, se...
C4Model
toolbox
"""The action definition for the C4 Model toolbox.""" from functools import partial from gaphas.item import SE from gaphor.C4Model import c4model, diagramitems from gaphor.diagram.diagramtoolbox import ( DiagramType, DiagramTypes, ElementCreateInfo, ToolboxDefinition, ToolDef, ToolSection, ...
gr
packet_utils
#!/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 gr def make_lengthtags(lengths, offsets, tagname="length", vlen=1): tags = [] assert len(offsets) == len(lengths) fo...
extractors
youku
#!/usr/bin/env python # -*- coding: utf-8 -*- import json import time import traceback import urllib.parse import urllib.request from ..common import * from ..extractor import VideoExtractor def fetch_cna(): def quote_cna(val): if "%" in val: return val return urllib.parse.quote(val)...
scripts
v2_upgrade
# # Quru Image Server # # Document: v2_upgrade.py # Date started: 07 Sep 2015 # By: Matt Fozard # Purpose: QIS v1 to v2 upgrade script # Requires: # Copyright: Quru Ltd (www.quru.com) # Licence: # # This program is free software: you can redistribute it and/or modify # it under the terms ...
qltk
dbus_
# Copyright 2006 Federico Pelloni <federico.pelloni@gmail.com> # 2013 Christoph Reiter # 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...
types
model
# -*- coding: utf-8 -*- from typing import TYPE_CHECKING, ClassVar, Type from sqlalchemy import Table from sqlalchemy.orm import Query, sessionmaker from sqlalchemy.orm.scoping import ScopedSession from typing_extensions import Protocol if TYPE_CHECKING: import ckan.model as _model # noqa AlchemySession = Sco...
autocomplete
views
import json import bleach import requests from django.core.exceptions import SuspiciousOperation from django.http import HttpResponse from django.utils.translation import gettext as _ HAL_API_STRUCTURE = "https://api.archives-ouvertes.fr/ref/structure/" def affiliation_autocomplete(request): """ Fetch the a...
builtinViewColumns
dampScanRes
# ============================================================================= # 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 ...
navigation
navigation
# -------------------------------------------------------------------------- # 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...
draftguitools
gui_edit_draft_objects
# *************************************************************************** # * Copyright (c) 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 Carlo Pavan <carlopav@gmail.com> * # * ...
filter
qa_pfb_interpolator
#!/usr/bin/env python # # Copyright 2012-2014 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import math from gnuradio import blocks, fft, filter, gr, gr_unittest def sig_source_c(samp_rate, freq, amp, N): t = [float(x) / samp_rate for x in r...
plover
engine
import os import shutil import threading from collections import OrderedDict, namedtuple from functools import wraps from queue import Queue from plover import log, system from plover.dictionary.loading_manager import DictionaryLoadingManager from plover.exception import DictionaryLoaderException from plover.formattin...
GraphicsBindings
Circle
# # Circle.py # GraphicsBindings # # Converted by u.fiedler on feb 2005 # with great help from Bob Ippolito - Thank you Bob! # # The original version was written in Objective-C by Malcolm Crawford # http://homepage.mac.com/mmalc/CocoaExamples/controllers.html from math import cos, sin # , sqrt, atan2 from AppK...
PyObjCTest
test_nsdate_proxy
import datetime from PyObjCTest.fnd import NSArray, NSDate, NSDateFormatter from PyObjCTools.TestSupport import * class TestNSDateProxy(TestCase): # Test for proxied datetime.date and datetime.datetime objects, # these have a custom proxy class. def testFormattingForDate(self): # This is jus a r...
exit-node
run_exit_node
""" This script enables you to start a tunnel helper headless. """ import argparse import logging import os import re import signal import sys import time from asyncio import ensure_future, get_event_loop from ipaddress import AddressValueError, IPv4Address from ipv8.messaging.anonymization.tunnel import Circuit from ...
web
httpserver
__all__ = ["runsimple"] import os import posixpath import sys import urllib import net import utils import webapi as web from SimpleHTTPServer import SimpleHTTPRequestHandler def runbasic(func, server_address=("0.0.0.0", 8080)): """ Runs a simple HTTP server hosting WSGI app `func`. The directory `static/` ...
webkit
cookies
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Handling of HTTP cookies.""" from typing import Sequence from qutebrowser.config import config from qutebrowser.misc import lineparser, objects from qutebrowser.qt.core import QDateTime, py...
network
dial_tone_source
#!/usr/bin/env python # # Copyright 2006,2007,2010 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import sys from argparse import ArgumentParser from gnuradio import gr try: from gnuradio import analog except ImportError: sys.stderr.write("...
neubot
backend_volatile
# neubot/backend_volatile.py # # Copyright (c) 2013 # Nexa Center for Internet & Society, Politecnico di Torino (DAUIN), # and Simone Basso <bassosimone@gmail.com> # # 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 o...
CGRotation
CGImageView
from CGImageUtils import * from Cocoa import * from Quartz import * class CGImageView(NSView): _image = objc.ivar() def setImage_(self, img): if img is not None and self._image is not img: self._image = img # Mark this view as needing to be redisplayed. self.setNee...
femexamples
frequency_beamsimple
# *************************************************************************** # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
manager
core
import argparse from typing import Optional from httpie.context import Environment from httpie.manager.cli import missing_subcommand, parser from httpie.manager.tasks import CLI_TASKS from httpie.status import ExitStatus MSG_COMMAND_CONFUSION = """\ This command is only for managing HTTPie plugins. To send a request,...
clientScripts
pid_declaration
#!/usr/bin/env python """pid_declaration.py Given an identifiers.json file, supplying third-party persistent identifiers (PIDS), such as handle (hdl) or doi, identifiers; associate those identifiers with the objects in the transfer, so be translated to PREMIS objects in the AIP METS. """ import json import os import s...
femviewprovider
view_mesh_gmsh
# *************************************************************************** # * Copyright (c) 2016 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
extractor
srgssr
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ( ExtractorError, float_or_none, int_or_none, parse_iso8601, qualities, try_get, ) from .common import InfoExtractor class SRGSSRIE(InfoExtractor): _VALID_URL = r"""(?x) (?: ...
restapi
libtorrent_endpoint
from asyncio import Future from aiohttp import web from aiohttp_apispec import docs from ipv8.REST.schema import schema from marshmallow.fields import Integer from tribler.core.components.libtorrent.download_manager.download_manager import ( DownloadManager, ) from tribler.core.components.restapi.rest.rest_endpoin...
engines
google_images
# SPDX-License-Identifier: AGPL-3.0-or-later """Google (Images) For detailed description of the *REST-full* API see: `Query Parameter Definitions`_. .. _admonition:: Content-Security-Policy (CSP) This engine needs to allow images from the `data URLs`_ (prefixed with the ``data:` scheme).:: Header set Con...
extractor
thisoldhouse
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class ThisOldHouseIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to|tv-episode|(?:[^/]+/)?\d+)/(?P<id>[^/?#]+)" _TESTS = [ { "url": "https://www.thisoldhouse.com/...
FeatureHole
TaskHole
# /****************************************************************************** # * Copyright (c) 2012 Jan Rheinländer <jrheinlaender@users.sourceforge.net> * # * * # * This file is part of the FreeCAD CAx development system. ...
accounts
QuickshareCz
# -*- coding: utf-8 -*- import re from ..base.account import BaseAccount class QuickshareCz(BaseAccount): __name__ = "QuickshareCz" __type__ = "account" __version__ = "0.11" __status__ = "testing" __description__ = """Quickshare.cz account plugin""" __license__ = "GPLv3" __authors__ = [...
extractor
niconico
# coding: utf-8 from __future__ import unicode_literals import datetime import itertools import json import re from ..compat import compat_parse_qs, compat_str, compat_urllib_parse_urlparse from ..postprocessor.ffmpeg import FFmpegPostProcessor from ..utils import ( ExtractorError, OnDemandPagedList, Post...
songsmenu
makesorttags
# Copyright 2008 Joe Wreschnig # 2016 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. from qu...
api
annotation
# This file is part of Supysonic. # Supysonic is a Python implementation of the Subsonic server API. # # Copyright (C) 2013-2022 Alban 'spl0k' Féron # # Distributed under terms of the GNU AGPLv3 license. import time from flask import current_app, request from ..db import ( Album, Artist, Folder, Rati...
Code
Memoria
from Code import Util from Code.QT import PantallaMemoria class Memoria: def __init__(self, procesador): self.procesador = procesador self.fichero = procesador.configuracion.ficheroMemoria self.dicDatos = Util.recuperaDIC(self.fichero) if self.dicDatos is None: self.di...
file-list
local_monitor
from __future__ import absolute_import import os from gi.repository import Gio from sunflower.plugin_base.monitor import Monitor, MonitorError, MonitorSignals class LocalMonitor(Monitor): """Local file monitor based on GIO""" # signals translation table _signal_table = { Gio.FileMonitorEvent.CH...
localModule
changeMutation
import eos.db import gui.mainFrame import wx from gui import globalEvents as GE from gui.fitCommands.calc.module.localChangeMutation import ( CalcChangeLocalModuleMutationCommand, ) from gui.fitCommands.helpers import InternalCommandHistory from service.fit import Fit class GuiChangeLocalModuleMutationCommand(wx....
migrations
0133_plugins_access_control
# Generated by Django 3.0.6 on 2021-02-25 16:03 from django.contrib.postgres import fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0132_team_test_account_filters"), ] operations = [ migrations.AddField( mod...
thumbor
app
#!/usr/bin/python # -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import tornado.ioloop import tornado.web from libthumbor.url import ...
VersionUpgrade26to27
VersionUpgrade26to27
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import configparser # To parse the files we need to upgrade and write the new files. import io # To serialise configparser output to a string. from typing import Dict, List, Tuple from UM.VersionUpgrade import VersionUpg...
gui
error_handler
from __future__ import annotations import logging import traceback from typing import TYPE_CHECKING from tribler.core.components.reporter.reported_error import ReportedError from tribler.core.sentry_reporter.sentry_reporter import SentryStrategy from tribler.core.sentry_reporter.sentry_scrubber import SentryScrubber ...
dialogs
filedlgs
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2017 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...
engines
mongodb
# SPDX-License-Identifier: AGPL-3.0-or-later """ MongoDB engine (Offline) """ # pylint: disable=missing-function-docstring # pylint: disable=import-error import re from pymongo import MongoClient engine_type = "offline" paging = True # mongodb connection variables host = "127.0.0.1" port = 27017 username = "" pass...
extractor
frontendmasters
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_str, compat_urlparse from ..utils import ExtractorError, parse_duration, url_or_none, urlencode_postdata from .common import InfoExtractor class FrontendMastersBaseIE(InfoExtractor): _API_BASE = "https://api.frontendma...
element
element
import re from typing import List from django.contrib.postgres.fields import ArrayField from django.db import models class Element(models.Model): USEFUL_ELEMENTS = ["a", "button", "input", "select", "textarea", "label"] text: models.CharField = models.CharField(max_length=10_000, null=True, blank=True) t...
extractor
skynewsarabia
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str from ..utils import parse_duration, parse_iso8601 from .common import InfoExtractor class SkyNewsArabiaBaseIE(InfoExtractor): _IMAGE_BASE_URL = "http://www.skynewsarabia.com/web/images" def _call_api(self, path, value): ...
fpr
models
""" :mod:`fpr.models` Describes the data model for the FPR """ import logging from autoslug import AutoSlugField from django.core.exceptions import NON_FIELD_ERRORS from django.core.validators import ValidationError from django.db import connection, models from django.utils.translation import ugettext_lazy as _ from...
layer
rendering
# 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...
blocks
qa_vector_insert
#!/usr/bin/env python # # Copyright 2012-2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import math from gnuradio import blocks, gr, gr_unittest class test_vector_insert(gr_unittest.TestCase): def setUp(self): self.tb = gr.top_bl...
core
daemon_entry
# # Copyright (C) 2007 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2010 Pedro Algarvio <pedro@algarvio.me> # # 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 LIC...
PyObjCTest
test_nstext
from AppKit import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str try: unichr except NameError: unichr = chr class TestNSTextHelper(NSObject): def textShouldBeginEditing_(self, t): return 1 def textShouldEndEditing_(self, t): return 1 ...
extractor
rds
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str from ..utils import js_to_json, parse_duration, parse_iso8601 from .common import InfoExtractor class RDSIE(InfoExtractor): IE_DESC = "RDS.ca" _VALID_URL = r"https?://(?:www\.)?rds\.ca/vid(?:[eé]|%C3%A9)os/(?:[^/]+/)*(?P<...
bittorrent
server
# neubot/bittorrent/server.py # # Copyright (c) 2011 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU General ...
daw
sequencer
from sglib.lib.translate import _ from sglib.lib.util import * from sglib.models.stargate import * from . import _shared from .seq_item import sequencer_item from .sequence_marker import loop_marker from .tempo_marker import tempo_marker class sequencer: __slots__ = [ "name", "items", "ma...
preferences
musicviewers
# 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 ...
funnels
funnel_trends_persons
from typing import Optional from posthog.constants import DROP_OFF, ENTRANCE_PERIOD_START from posthog.models.filters.filter import Filter from posthog.models.filters.mixins.utils import cached_property from posthog.queries.actor_base_query import ActorBaseQuery from posthog.queries.funnels.funnel_trends import Clickh...
extractor
canalplus
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ( int_or_none, qualities, # ExtractorError,; HEADRequest, unified_strdate, ) from .common import InfoExtractor class CanalplusIE(InfoExtractor): IE_DESC = "mycanal.fr and piwiplus.fr" _VALID_URL = r"https?://(...
widgets
rating
# 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...
tools
viewer
from __future__ import absolute_import import codecs import os import subprocess import chardet import gi from gi.repository import Gdk, GdkPixbuf, Gio, GObject, Gtk, Pango from sunflower.common import ( decode_file_name, executable_exists, get_monospace_font_string, ) from sunflower.plugin_base.provider ...
extractor
redtube
from __future__ import unicode_literals import re from ..utils import ( ExtractorError, determine_ext, int_or_none, merge_dicts, str_to_int, unified_strdate, url_or_none, ) from .common import InfoExtractor class RedTubeIE(InfoExtractor): _VALID_URL = r"https?://(?:(?:\w+\.)?redtube\...
extractor
streamcloud
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ExtractorError, urlencode_postdata from .common import InfoExtractor class StreamcloudIE(InfoExtractor): IE_NAME = "streamcloud.eu" _VALID_URL = ( r"https?://streamcloud\.eu/(?P<id>[a-zA-Z0-9_-]+)(?:/(?P<fname>[^#?...
migrations
0291_create_person_override_model
# Generated by Django 3.2.16 on 2023-01-19 09:52 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0290_add_dashboard_templates"), ] operations = [ migrations.CreateModel( name="Perso...
gui
patternEditor
# ============================================================================= # 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 ...
utils
learning_schedules_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...
python
multi_tone
#!/usr/bin/env python # # Copyright 2004,2006,2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from argparse import ArgumentParser from gnuradio import audio, gr from gnuradio.eng_arg import eng_float, intx try: from gnuradio import ana...
deepface
DeepFace
import warnings warnings.filterwarnings("ignore") import os # os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" import tensorflow as tf from photonix.classifiers.face.deepface.basemodels import Facenet from photonix.classifiers.face.deepface.commons import distance as dst from photon...