section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
src
DigitalFactoryProjectResponse
# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from datetime import datetime from typing import Any, Dict, List, Optional from UM.i18n import i18nCatalog from .BaseModel import BaseModel from .DigitalFactoryFileResponse import DIGITAL_FACTORY_RESPONSE_DATETIME_FORMAT ...
elmer
solver
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
supysonic
scanner
# This file is part of Supysonic. # Supysonic is a Python implementation of the Subsonic server API. # # Copyright (C) 2013-2023 Alban 'spl0k' Féron # # Distributed under terms of the GNU AGPLv3 license. import logging import os import os.path import time from datetime import datetime from queue import Empty as QueueE...
backends
rtmidi_python
"""Backend for rtmidi-python: https://pypi.python.org/pypi/rtmidi-python To use this backend copy (or link) it to somewhere in your Python path and call: mido.set_backend('mido.backends.rtmidi_python') or set shell variable $MIDO_BACKEND to mido.backends.rtmidi_python TODO: * add support for APIs. * active_s...
migrations
0225_insight_viewed
# Generated by Django 3.2.12 on 2022-03-24 18:40 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0224_saml_multitenant"), ] operations = [ migrations.CreateMode...
Arch
ArchBuilding
# -*- coding: utf8 -*- # *************************************************************************** # * Copyright (c) 2011 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it an...
extractor
clippit
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import parse_iso8601, qualities from .common import InfoExtractor class ClippitIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?clippituser\.tv/c/(?P<id>[a-z]+)" _TEST = { "url": "https://www.clippituser.tv/c/evmgm",...
fft
qa_fft
#!/usr/bin/env python # # Copyright 2008,2010,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import blocks, fft, gr, gr_unittest # Note: Octave code to verify these results: # primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37,...
downloaders
TwojlimitPl
# -*- coding: utf-8 -*- import json from ..base.multi_downloader import MultiDownloader class TwojlimitPl(MultiDownloader): __name__ = "TwojlimitPl" __type__ = "downloader" __version__ = "0.02" __status__ = "testing" __pattern__ = r"^unmatchable$" __config__ = [ ("enabled", "bool", "...
migrations
0050_dashboards
# Generated by Django 3.0.5 on 2020-05-07 09:12 import django.db.models.deletion from django.conf import settings from django.db import migrations, models, transaction def forwards(apps, schema_editor): Team = apps.get_model("posthog", "Team") Dashboard = apps.get_model("posthog", "Dashboard") DashboardI...
OpenSCAD
InitGui
# *************************************************************************** # * Copyright (c) 2002 Juergen Riegel <juergen.riegel@web.de> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
isso
wsgi
# -*- encoding: utf-8 -*- import socket from http.server import HTTPServer from socketserver import ThreadingMixIn from urllib.parse import quote, urlparse from werkzeug.datastructures import Headers from werkzeug.serving import WSGIRequestHandler from werkzeug.wrappers import Request as _Request def host(environ):...
WizardShaft
ShaftDiagram
# -*- coding: utf-8 -*- # /****************************************************************************** # * Copyright (c) 2012 Jan Rheinländer <jrheinlaender@users.sourceforge.net> * # * * # * This file is part of the FreeCAD CAx developme...
settings
local
# flake8: noqa # This file is part of Archivematica. # # Copyright 2010-2017 Artefactual Systems Inc. <http://artefactual.com> # # Archivematica is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either ve...
Arch
ArchTruss
# -*- coding: utf8 -*- # *************************************************************************** # * Copyright (c) 2020 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it an...
clientScripts
store_aip
#!/usr/bin/env python # This file is part of Archivematica. # # Copyright 2010-2012 Artefactual Systems Inc. <http://artefactual.com> # # Archivematica is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, ei...
scripts
refactored_grbl_post
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2014 sliptonic <shopinthewoods@gmail.com> * # * Copyright (c) 2018, 2019 Gauthier Briere * # * Copyright (c) 2019, 2020 Schildkroet ...
draftobjects
circle
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
negotiate
server_bittorrent
# neubot/negotiate/server_bittorrent.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 GN...
dialogs
new_channel_dialog
from tribler.gui.defs import BUTTON_TYPE_CONFIRM, BUTTON_TYPE_NORMAL from tribler.gui.dialogs.confirmationdialog import ConfirmationDialog from tribler.gui.utilities import connect, tr class NewChannelDialog(ConfirmationDialog): def __init__(self, parent, create_channel_callback): super().__init__( ...
scripts
hist_importer
#!/usr/bin/env python3 # SPDX-FileCopyrightText: Josefson Souza <josefson.br@gmail.com> # SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Tool to import browser history from other browsers.""" import argparse import os import sqlite3 imp...
transport
registry
""" raven.transport.registry ~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import # TODO(dcramer): we really should need to import all of these by default from raven.transport.eventl...
downloaders
WrzucajplikiPl
# -*- coding: utf-8 -*- import re from ..base.xfs_downloader import XFSDownloader class WrzucajplikiPl(XFSDownloader): __name__ = "WrzucajplikiPl" __type__ = "downloader" __version__ = "0.03" __status__ = "testing" __pattern__ = r"https?://(?:www\.)?wrzucajpliki\.pl/(?P<ID>\w{12})" __config...
sandbox
2dpainting
#!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################ ## ## Copyright (C) 2006-2006 Trolltech ASA. All rights reserved. ## ## This file is part of the example classes of the Qt Toolkit. ## ## This file may be used under the terms of the GNU General P...
console
console
#!/usr/bin/env python # GTK Interactive Console # (C) 2003, Jon Anderson # See www.python.org/2.2/license.html for # license details. # # Took some good ideas from the GEdit Python Console: # https://gitlab.gnome.org/GNOME/gedit/-/blob/master/plugins/pythonconsole/pythonconsole/console.py # Licensed under GPL ...
PathTests
TestPathHelix
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2019 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
draftguitools
gui_stretch
# *************************************************************************** # * (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * (c) 2009, 2010 Ken Cline <cline@frii.com> * # * (c) 2020 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> * # * ...
sabnzbd
urlgrabber
#!/usr/bin/python3 -OO # Copyright 2007-2023 The SABnzbd-Team (sabnzbd.org) # # 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 ver...
preferences
collection
# 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...
models
dashboard_privilege
from django.db import models from posthog.models.dashboard import Dashboard from posthog.models.utils import UUIDModel, sane_repr # We call models that grant a user access to some resource (which isn't a grouping of users) a "privilege" class DashboardPrivilege(UUIDModel): dashboard: models.ForeignKey = models.Fo...
you-get
setup
#!/usr/bin/env python3 PROJ_NAME = "you-get" PACKAGE_NAME = "you_get" PROJ_METADATA = "%s.json" % PROJ_NAME import imp import json import os here = os.path.abspath(os.path.dirname(__file__)) proj_info = json.loads(open(os.path.join(here, PROJ_METADATA), encoding="utf-8").read()) try: README = open(os.path.join(...
extractor
miaopai
# coding: utf-8 from __future__ import unicode_literals from .common import InfoExtractor class MiaoPaiIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?miaopai\.com/show/(?P<id>[-A-Za-z0-9~_]+)" _TEST = { "url": "http://www.miaopai.com/show/n~0hO7sfV1nBEw4Y29-Hqg__.htm", "md5": "095ed3f1c...
xl
covers
# Copyright (C) 2008-2010 Adam Olsen # Copyright (C) 2018 Johannes Sasongko <sasongko@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, or (at your option) # any lat...
QT
PantallaDatabase
from Code import DBgames, OpeningGuide from Code.QT import ( Colocacion, Controles, Iconos, QTVarios, WBG_Games, WBG_InfoMove, WBG_Players, WBG_Summary, ) from PyQt4 import QtGui class WBDatabase(QTVarios.WDialogo): def __init__(self, wParent, procesador): icono = Iconos.Da...
colors
hsvsquare
# This file is part of MyPaint. # Copyright (C) 2012-2018 by the MyPaint Development Team. # Copyright (C) 2015 by ShadowKyogre <shadowkyogre@aim.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 Found...
compat
paths
# coding:utf-8 class VirtualPaths(object): def __init__(self, obj, mapping): self.obj = obj self.mapping = mapping def __getitem__(self, item): return getattr(self.obj, self.mapping[item]) class CompatibilityLayer(object): """ Ensure backwards compatibility with older versio...
friture
filter_design
# -*- coding: utf-8 -*- import scipy from numpy import arange, cos, exp, log, ones, pi, set_printoptions, sin, sqrt, zeros # the three following lines are a workaround for a bug with scipy and py2exe # together. See http://www.pyinstaller.org/ticket/83 for reference. from scipy.special import factorial scipy.factoria...
QT
PantallaTabVSVGs
import codecs import copy import os from Code import TabVisual, Util, VarGen from Code.QT import ( Colocacion, Columnas, Controles, FormLayout, Grid, Iconos, QTUtil, QTUtil2, QTVarios, Tablero, TabTipos, ) from PyQt4 import QtCore, QtGui estrellaSVG = """<?xml version="1.0"...
extractor
screencast
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_parse_qs, compat_urllib_request from ..utils import ExtractorError from .common import InfoExtractor class ScreencastIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?screencast\.com/t/(?P<id>[a-zA-Z0-9]+)" _TESTS = [ ...
accounts
ExtmatrixCom
# -*- coding: utf-8 -*- import re import time import urllib.parse from pyload.core.datatypes.pyfile import PyFile from ..base.account import BaseAccount from ..base.captcha import BaseCaptcha class ExtmatrixCom(BaseAccount): __name__ = "ExtmatrixCom" __type__ = "account" __version__ = "0.01" __stat...
stickiness
stickiness
import copy import urllib.parse from typing import Any, Dict, List from posthog.constants import TREND_FILTER_TYPE_ACTIONS from posthog.models.action import Action from posthog.models.entity import Entity from posthog.models.filters.stickiness_filter import StickinessFilter from posthog.models.team import Team from po...
chardet
constants
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
utils
rarfile
# rarfile.py # # Copyright (c) 2005-2016 Marko Kreen <markokr@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED...
SCL-output
ap203_configuration_controlled_3d_design_of_mechanical_parts_and_assemblies_mim_lf
# This file was generated by fedex_python. You probably don't want to edit # it since your modifications will be lost if fedex_plus is used to # regenerate it. import sys from SCL.AggregationDataTypes import * from SCL.Builtin import * from SCL.ConstructedDataTypes import * from SCL.Rules import * from SCL.SCLBase im...
devscripts
cli_to_api
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals """ This script displays the API parameters corresponding to a yt-dl command line Example: $ ./cli_to_api.py -f best {u'format': 'best'} $ """ # Allow direct execution import os import sys sys.path.insert(0, os.path.dirname(os.path.dirna...
metadata
_matroska
# EBML/Matroska parser # Copyright (C) 2010, 2015 Johannes Sasongko <sasongko@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, or (at your option) # any later vers...
statusbar
bar
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """The main statusbar widget.""" import dataclasses import enum from qutebrowser.browser import browsertab from qutebrowser.config import config, stylesheet from qutebrowser.keyinput import mo...
main
browser
# neubot/main/browser.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 Publi...
extractor
internazionale
# coding: utf-8 from __future__ import unicode_literals from ..utils import unified_timestamp from .common import InfoExtractor class InternazionaleIE(InfoExtractor): _VALID_URL = ( r"https?://(?:www\.)?internazionale\.it/video/(?:[^/]+/)*(?P<id>[^/?#&]+)" ) _TESTS = [ { "url"...
retention
retention
from typing import Any, Dict, List, Optional, Tuple from urllib.parse import urlencode from zoneinfo import ZoneInfo from posthog.constants import RETENTION_FIRST_TIME, RetentionQueryType from posthog.models.filters.retention_filter import RetentionFilter from posthog.models.team import Team from posthog.queries.insig...
gui
BlockTreeWindow
""" Copyright 2007, 2008, 2009, 2016 Free Software Foundation, Inc. This file is part of GNU Radio SPDX-License-Identifier: GPL-2.0-or-later """ from gi.repository import Gdk, GObject, Gtk from . import Actions, Constants, Utils NAME_INDEX, KEY_INDEX, DOC_INDEX = range(3) def _format_doc(doc): docs = [] ...
ui
mainwindow
"""The main application window.""" from __future__ import annotations import importlib.resources import logging from pathlib import Path from typing import Callable from gaphor.abc import ActionProvider, Service from gaphor.application import distribution from gaphor.core import action, event_handler, gettext from g...
plugins
vk
""" $description Russian live-streaming and video hosting social platform. $url vk.com $url vk.ru $type live, vod $metadata id $metadata author $metadata title """ import logging import re from hashlib import md5 from urllib.parse import parse_qsl, unquote, urlparse, urlunparse from streamlink.exceptions import NoStr...
service
prefetch
# ============================================================================= # 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 ...
datatablesview
plugin
# encoding: utf-8 from __future__ import annotations from typing import Any, cast import ckan.plugins as p import ckan.plugins.toolkit as toolkit from ckan.common import CKANConfig from ckan.types import Context, ValidatorFactory from ckanext.datatablesview import blueprint default = cast(ValidatorFactory, toolkit.g...
core
attribute
#!/usr/bin/env python # coding:utf-8 import copy import logging import os import re import types import weakref from collections.abc import Sequence from string import Template from meshroom.common import ( BaseObject, DictModel, ListModel, Property, Signal, Slot, Variant, ) from meshroom.c...
frescobaldi-app
convert_ly
# 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 ...
eva
exceptions
from __future__ import annotations from typing import TYPE_CHECKING, Optional, Type if TYPE_CHECKING: from tribler.core.components.ipv8.eva.transfer.base import Transfer class TransferException(Exception): def __init__( self, message: str = "", transfer: Optional[Transfer] = None, ...
extractor
carambatv
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str from ..utils import float_or_none, int_or_none, try_get from .common import InfoExtractor from .videomore import VideomoreIE class CarambaTVIE(InfoExtractor): _VALID_URL = r"(?:carambatv:|https?://video1\.carambatv\.ru/v/)(?P...
rtorrent
connection
import logging import urllib from rtorrent.common import convert_version_tuple_to_str, join_uri, update_uri from rtorrent.lib.xmlrpc.clients.http import HTTPServerProxy from rtorrent.lib.xmlrpc.clients.scgi import SCGIServerProxy from rtorrent.lib.xmlrpc.transports.basic_auth import BasicAuthTransport try: from r...
migrations
0059_siparrange_longblob
import django_extensions.db.fields import main.models from django.db import OperationalError, migrations def drop_original_path_unique_key(apps, schema_editor): """Drop the unique key index from `original_path`. As the column is becoming a longblog, we need to remove its index to avoid issues with the le...
PyObjCTest
test_nssound
from AppKit import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class TestNSSoundHelper(NSObject): def sound_didFinishPlaying_(self, s, p): pass class TestNSSound(TestCase): def testConstants(self): self.assertIsInstance(NSSoundPboardType, uni...
Code
GestorEntMaq
import LCEngine4 as LCEngine from Code import ( DGT, Analisis, Apertura, Books, ControlPosicion, Gestor, Jugada, Partida, Personalidades, Tutor, Util, VarGen, XMotorRespuesta, ) from Code.Constantes import * from Code.QT import Iconos, Motores, PantallaBooks, Pantalla...
model
activity
# encoding: utf-8 from __future__ import annotations import datetime from typing import Any, Iterable, Optional, Type, TypeVar import ckan.model as model import ckan.model.domain_object as domain_object import ckan.model.meta as meta import ckan.model.types as _types from ckan.common import config from ckan.lib.dicti...
plugins
simple_fader
# -*- coding: utf-8 -*- """ This file is part of the Stargate project, Copyright Stargate 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 version 3 of the License. This program is distributed in...
core
info
# # Copyright 2013, 2018 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # """ Returns information about a module """ import os from ..tools import get_modname from .base import ModTool, ModToolException class ModToolInfo(ModTool): """Return inf...
TDTest
DrawViewPartTest
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # basic test script for TechDraw module # creates a page and 1 view import unittest import FreeCAD from PySide import QtCore from .TechDrawTestUtilities import createPageWithSVGTemplate class DrawViewPartTest(unittest.TestCase): def setUp(self): """Creat...
lib
auth_digest
# This file is part of CherryPy <http://www.cherrypy.org/> # -*- coding: utf-8 -*- # vim:ts=4:sw=4:expandtab:fileencoding=utf-8 __doc__ = """An implementation of the server-side of HTTP Digest Access Authentication, which is described in :rfc:`2617`. Example usage, using the built-in get_ha1_dict_plain function which...
Generator
threadmilling
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2022 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
versions
093_7f70d7d15445_remove_activity_revision_id
# encoding: utf-8 """Remove activity.revision_id Revision ID: d4d9be9189fe Revises: 01afcadbd8c0 Create Date: 2019-11-01 16:33:28.320542 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "d4d9be9189fe" down_revision = "01afcadbd8c0" branch_labels = None depends_o...
transforms
htmltoc
""" HTML-TOC-adding transform. """ from __future__ import with_statement __license__ = "GPL v3" __copyright__ = "2008, Marshall T. Vandegrift <llasram@gmail.com>" from calibre.ebooks.oeb.base import ( CSS_MIME, XHTML, XHTML_MIME, XHTML_NS, XML, XPath, element, ) __all__ = ["HTMLTOCAdder"]...
mod-dash
neubot_module
# mod_dash/neubot_module.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 of ...
generated
compound
#!/usr/bin/env python """ Generated Mon Feb 9 19:08:05 2009 by generateDS.py. """ import sys from xml.dom import Node, minidom from . import compoundsuper as supermod from .compoundsuper import MixedContainer class DoxygenTypeSub(supermod.DoxygenType): def __init__(self, version=None, compounddef=None): ...
ops
find_prices
"""A library of codes create price fetching jobs from strings and files. """ __copyright__ = "Copyright (C) 2015-2016,2020 Martin Blais" __license__ = "GNU GPLv2" from beancount.core import data from beancount.ops import summarize def find_currencies_at_cost(entries, date=None): """Return all currencies that we...
util
UpnpPunch
import http.client import logging import re import urllib.request from urllib.parse import urlparse from xml.dom.minidom import parseString from xml.parsers.expat import ExpatError import gevent from gevent import socket # Relevant UPnP spec: # http://www.upnp.org/specs/gw/UPnP-gw-WANIPConnection-v1-Service.pdf # Ge...
sabnzbd
newswrapper
#!/usr/bin/python3 -OO # Copyright 2007-2023 The SABnzbd-Team (sabnzbd.org) # # 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 ver...
panel
playlists
# 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...
general
generalpropertypages
import base64 import io from gaphor.core import gettext, transactional from gaphor.core.modeling import Comment from gaphor.diagram.general.metadata import MetadataItem from gaphor.diagram.general.picture import PictureItem from gaphor.diagram.iconname import to_kebab_case from gaphor.diagram.propertypages import ( ...
config-integrations
manual
# Main enabled = True title = "Manual" slug = "manual" short_description = None description = None is_displayed_on_web = False is_featured = False is_able_to_autoresolve = False is_demo_alert_enabled = False description = None # Default templates slack_title = """\ *<{{ grafana_oncall_link }}|#{{ grafana_oncall_incid...
middleware
common
# This file is part of Archivematica. # # Copyright 2010-2013 Artefactual Systems Inc. <http://artefactual.com> # # Archivematica is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by # the Free Software Foundation, either version 3 of the ...
filters
frame
#!/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 from thumbor.ext.filters import _nine_patch from thumbor.filters imp...
gtk3
common
# # Copyright (C) 2008 Marcos Mobley ('markybob') <markybob@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. # """Common functions ...
views
status
from apps.auth_token.auth import BasePluginAuthentication from apps.base.models import DynamicSetting from apps.grafana_plugin.tasks.sync import plugin_sync_organization_async from apps.mobile_app.auth import MobileAppAuthTokenAuthentication from apps.user_management.models import Organization from common.api_helpers.m...
downloaders
PornhubCom
# -*- coding: utf-8 -*- import json import re from pyload.core.utils.misc import eval_js from ..base.simple_downloader import SimpleDownloader class PornhubCom(SimpleDownloader): __name__ = "PornhubCom" __type__ = "downloader" __version__ = "0.62" __status__ = "testing" __pattern__ = r"https?:...
utils
filesystem
import os import shutil import tempfile from contextlib import contextmanager from cactus.utils.helpers import map_apply def mkdtemp(): return tempfile.mkdtemp(dir=os.environ.get("TEMPDIR")) def fileList(paths, relative=False, folders=False): """ Generate a recursive list of files from a given path. ...
downloaders
GooIm
# -*- coding: utf-8 -*- # # Test links: # https://goo.im/devs/liquidsmooth/3.x/codina/Nightly/LS-KK-v3.2-2014-08-01-codina.zip from ..base.simple_downloader import SimpleDownloader class GooIm(SimpleDownloader): __name__ = "GooIm" __type__ = "downloader" __version__ = "0.09" __status__ = "testing" ...
posthog
event_usage
""" Module to centralize event reporting on the server-side. """ from typing import Dict, List, Optional import posthoganalytics from posthog.models import Organization, User from posthog.models.team import Team from posthog.settings import SITE_URL from posthog.utils import get_instance_realm def report_user_signe...
iClass
datasource
import AppKit import objc from Foundation import NSBundle, NSObject from objc import IBAction, IBOutlet, getClassList, objc_object, selector objc.setVerbose(1) try: import AddressBook except ImportError: pass try: import PreferencePanes except ImportError: pass try: import InterfaceBuilder excep...
v1
tags
from typing import List from CTFd.api.v1.helpers.request import validate_args from CTFd.api.v1.helpers.schemas import sqlalchemy_to_pydantic from CTFd.api.v1.schemas import APIDetailedSuccessResponse, APIListSuccessResponse from CTFd.constants import RawEnum from CTFd.models import Tags, db from CTFd.schemas.tags impo...
network
http
import socket import asyncore_pollchoose as asyncore from advanceddispatcher import AdvancedDispatcher from proxy import ProxyError from socks4a import Socks4aConnection, Socks4aResolver from socks5 import Socks5Connection, Socks5Resolver class HttpError(ProxyError): pass class HttpConnection(AdvancedDispatche...
metrics
tf_example_parser_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...
Mesh
BuildRegularGeoms
# Copyright (c) 2005 Berthold Grupp # License: LGPL """Python Module for building solid regular geometric objects. Return value are list of vectors, 3 vectors define a facet. Sample code for creating a mesh: facets = Cube(3.0, 4.0, 5.0) m = Mesh.newMesh() m.addFacets(facets) """ import math def Sphere(radius...
femcommands
manager
# *************************************************************************** # * Copyright (c) 2015 Przemo Fiszt <przemo@firszt.eu> * # * Copyright (c) 2016 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
mako
ast
# mako/ast.py # Copyright (C) 2006-2016 the Mako authors and contributors <see AUTHORS file> # # This module is part of Mako and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """utilities for analyzing expressions and blocks of Python code, as well as generating Python from AS...
extractor
nextmedia
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_urlparse from ..utils import ( clean_html, get_element_by_class, int_or_none, parse_iso8601, remove_start, unified_timestamp, ) from .common import InfoExtractor class NextMediaIE(InfoExtractor): IE_DESC =...
canto-next
storage
# -*- coding: utf-8 -*- # Canto - RSS reader backend # 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 gzip import ...
metadata
flac
# 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...
utils
sleepless
#!/usr/bin/python3 -OO # Copyright 2007-2023 The SABnzbd-Team (sabnzbd.org) # # 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 ver...
docs
conf
# -*- coding: utf-8 -*- # SPDX-License-Identifier: AGPL-3.0-or-later import os import sys from pallets_sphinx_themes import ProjectLink from searx import brand from searx.version import VERSION_STRING # Project -------------------------------------------------------------- project = "searx" copyright = "2015-2022, ...
photocollage
gtkgui
# Copyright (C) 2013 Adrien Vergé # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in t...