section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
internal
jsonrpc
import inspect import json import traceback import pykka class JsonRpcWrapper: """ Wrap objects and make them accessible through JSON-RPC 2.0 messaging. This class takes responsibility of communicating with the objects and processing of JSON-RPC 2.0 messages. The transport of the messages over ...
playlist
export_to_folder
# Copyright 2017 Didier Villevalois # # 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 shutil import copyfile from...
channels
quantizer
#!/usr/bin/env python ################################################## # Gnuradio Python Flow Graph # Title: Quantizer # Generated: Thu Aug 1 11:09:51 2013 ################################################## from gnuradio import blocks, gr from gnuradio.filter import firdes class quantizer(gr.hier_block2): def...
builtinStatsViews
targetingMiscViewMinimal
# ============================================================================= # 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 ...
propsdlg
cupspropsdlg
# -*- coding: utf-8 -*- # # Copyright (C) 2016 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....
migrations
0037_update_idtools
from django.db import migrations OLD_FIDO_CMD_DESCRIPTION = "Identify using Fido 1.4.1" OLD_FIDO_CMD_UUID = "8383e9eb-0d3c-4872-ae63-05405a156502" OLD_FIDO_TOOL_SLUG = "fido-141" OLD_FIDO_TOOL_UUID = "c33c9d4d-121f-4db1-aa31-3d248c705e44" OLD_FIDO_TOOL_VERSION = "1.4.1" OLD_SIEGFRIED_CMD_DESCRIPTION = "Identify using...
PyObjCTest
test_bundleFunctions
from __future__ import absolute_import, unicode_literals import os import objc from PyObjCTools.TestSupport import * from . import fnd as Foundation NSObject = objc.lookUpClass("NSObject") def S(*args): return b"".join(args) FUNCTIONS = [ ("NSHomeDirectory", S(objc._C_ID)), ("NSIsFreedObject", S(obj...
document
api
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2021 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...
examples
synth_filter
#!/usr/bin/env python # # Copyright 2010,2012,2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import sys import numpy from gnuradio import blocks, filter, gr try: from gnuradio import analog except ImportError: sys.stderr.write("Error: ...
views
files_treeview
""" @file @brief This file contains the project file treeview, used by the main window @author Noah Figg <eggmunkee@hotmail.com> @author Jonathan Thomas <jonathan@openshot.org> @author Olivier Girard <eolinwen@gmail.com> @section LICENSE Copyright (c) 2008-2018 OpenShot Studios, LLC (http://www.openshotstudio...
migrate
mr_permacache
# 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, ...
Gui
TreeParams
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2022 Zheng Lei (realthunder) <realthunder.dev@gmail.com>* # * * # * This program is free software; you can redistribute it a...
migrations
0041_auto_20210131_1614
# Generated by Django 3.0.7 on 2021-01-31 16:14 import bookwyrm.models.activitypub_mixin import bookwyrm.models.fields import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0040_auto...
options
fingerprinting
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2011-2012 Lukáš Lalinský # Copyright (C) 2011-2013 Michael Wiencek # Copyright (C) 2013, 2018, 2020-2022 Laurent Monin # Copyright (C) 2015, 2020-2022 Philipp Wolfer # Copyright (C) 2016-2017 Sambhav Kothari # Copyright (C) 202...
frescobaldi-app
session
# 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 ...
extractor
camtube
# coding: utf-8 from __future__ import unicode_literals from ..utils import int_or_none, unified_timestamp from .common import InfoExtractor class CamTubeIE(InfoExtractor): _VALID_URL = r"https?://(?:(?:www|api)\.)?camtube\.co/recordings?/(?P<id>[^/?#&]+)" _TESTS = [ { "url": "https://cam...
extractor
kinopoisk
# coding: utf-8 from __future__ import unicode_literals from ..utils import dict_get, int_or_none from .common import InfoExtractor class KinoPoiskIE(InfoExtractor): _GEO_COUNTRIES = ["RU"] _VALID_URL = r"https?://(?:www\.)?kinopoisk\.ru/film/(?P<id>\d+)" _TESTS = [ { "url": "https://...
widgets
abstract_plugin_ui
import os from jinja2 import Template from sglib.lib import util from sglib.lib.translate import _ from sglib.log import LOG from sglib.models.cc_mapping import CCMapping from sglib.models.plugin_file import plugin_file from sglib.models.stargate import folder_plugins from sgui import shared as glbl_shared from sgui.s...
utils
label_map_util
# 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...
sabnzbd
decorators
#!/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...
common
core
from . import PySignal class CoreDictModel: def __init__(self, keyAttrName, **kwargs): self._objects = {} self._keyAttrName = keyAttrName def __len__(self): return len(self._objects) def __iter__(self): """Enables iteration over the list of objects.""" return iter...
notebook
notebook
from django.db import models from django.db.models import JSONField from django.utils import timezone from posthog.models.utils import UUIDModel from posthog.utils import generate_short_id class Notebook(UUIDModel): short_id: models.CharField = models.CharField( max_length=12, blank=True, default=generate...
pykakasi
h2a
# -*- coding: utf-8 -*- # h2a.py # # Copyright 2011 Hiroshi Miura <miurahr@linux.com> # # Original copyright: # * KAKASI (Kanji Kana Simple inversion program) # * $Id: jj2.c,v 1.7 2001-04-12 05:57:34 rug Exp $ # * Copyright (C) 1992 # * Hironobu Takahashi (takahasi@tiny.or.jp) # * # * This program is free software; yo...
analog
qa_fastnoise
#!/usr/bin/env python # # Copyright 2007,2010,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import numpy from gnuradio import analog, blocks, gr, gr_unittest class test_fastnoise_source(gr_unittest.TestCase): def setUp(self): self...
archiver
key_cmds
import argparse import functools import os from ..constants import * # NOQA from ..crypto.key import ( AESOCBKeyfileKey, AESOCBRepoKey, Blake2AESOCBKeyfileKey, Blake2AESOCBRepoKey, Blake2CHPOKeyfileKey, Blake2CHPORepoKey, CHPOKeyfileKey, CHPORepoKey, ) from ..crypto.keymanager import K...
extractor
radiofrance
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class RadioFranceIE(InfoExtractor): _VALID_URL = r"^https?://maison\.radiofrance\.fr/radiovisions/(?P<id>[^?#]+)" IE_NAME = "radiofrance" _TEST = { "url": "http://maison.radiofrance.fr/radiovisio...
controllers
health
# 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, ...
lib
argparse
# Author: Steven J. Bethard <steven.bethard@gmail.com>. """Command-line parsing library This module is an optparse-inspired command-line parsing library that: - handles both optional and positional arguments - produces highly informative usage messages - supports parsers that dispatch to sub-parsers The...
src
main
#!/usr/bin/env python3 # MusicPlayer, https://github.com/albertz/music-player # Copyright (c) 2012, Albert Zeyer, www.az2000.de # All rights reserved. # This code is under the 2-clause BSD license, see License.txt in the root directory of this project. # This is set to True when the startup was successful. successStar...
senf
_print
# -*- 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...
trends
lifecycle
import urllib from typing import Any, Callable, Dict, List, Tuple from posthog.models.entity import Entity from posthog.models.entity.util import get_entity_filtering_params from posthog.models.filters import Filter from posthog.models.filters.lifecycle_filter import LifecycleFilter from posthog.models.filters.mixins....
gui-qt
config_window
from collections import ChainMap from copy import copy from functools import partial from plover import _ from plover.config import MINIMUM_TIME_BETWEEN_KEY_PRESSES, MINIMUM_UNDO_LEVELS from plover.gui_qt.config_file_widget_ui import Ui_FileWidget from plover.gui_qt.config_window_ui import Ui_ConfigWindow from plover....
downloaders
UserscloudCom
# -*- coding: utf-8 -*- import re from ..base.xfs_downloader import XFSDownloader class UserscloudCom(XFSDownloader): __name__ = "UserscloudCom" __type__ = "downloader" __version__ = "0.11" __status__ = "testing" __pattern__ = r"https?://(?:www\.)?userscloud\.com/(?P<ID>\w{12})" __config__ ...
plover
suggestions
import collections from plover.steno import sort_steno_strokes Suggestion = collections.namedtuple("Suggestion", "text steno_list") class Suggestions: def __init__(self, dictionary): self.dictionary = dictionary def find(self, translation): suggestions = [] mods = [ "%s...
bin
generate_session_recordings_messages
#!/usr/bin/env python3 # This management command is intended to be used to generate Kafka messages that # simulate those that are produced by the PostHog app when recording session # data. The contents of the snapshot data is however not a valid rrweb snapshot # as this isn't required for benchmarking the recordings i...
installer
forms
# 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 ...
widgets
tempobutton
# 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
constellation_map_generator
#!/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 # # def constellation_map_generator(basis_cpoints, basis_symbols, k, pi): """ Uses the a basis constellation provided (e.g., from psk_constellation.psk_4...
gtk3
torrentview_data_funcs
# # Copyright (C) 2007, 2008 Andrew Resch <andrewresch@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with the OpenSSL library. # See LICENSE for more details. # import warnings from fun...
gui
test_gui
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022-2023 FreeCAD Project Association * # * ...
views
maintaiable_object_mixin
from apps.alerts.models import MaintainableObject from common.api_helpers.exceptions import BadRequest from common.exceptions import MaintenanceCouldNotBeStartedError from rest_framework import viewsets from rest_framework.decorators import action from rest_framework.response import Response class MaintainableObjectM...
downloaders
TurbobitNet
# -*- coding: utf-8 -*- import re import pycurl from pyload.core.utils.misc import eval_js from ..anticaptchas.HCaptcha import HCaptcha from ..anticaptchas.ReCaptcha import ReCaptcha from ..base.simple_downloader import SimpleDownloader class TurbobitNet(SimpleDownloader): __name__ = "TurbobitNet" __type__...
plugins
mjunoon
""" $description Pakistani live TV channels and video on-demand service. OTT service from mjunoon. $url mjunoon.tv $type live, vod $metadata author $metadata category $metadata title $region Pakistan """ import binascii import logging import re from urllib.parse import urljoin from streamlink.plugin import Plugin, pl...
migrations
0030_created_at_persons_and_groups_on_events
from infi.clickhouse_orm import migrations from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions from posthog.client import sync_execute from posthog.models.event.sql import ( EVENTS_TABLE_JSON_MV_SQL, KAFKA_EVENTS_TABLE_JSON_SQL, ) from posthog.settings import CLICKHOUSE_CLUSTER ADD_CO...
bookwyrm
imagegenerators
"""Generators for all the different thumbnail sizes""" from imagekit import ImageSpec, register from imagekit.processors import ResizeToFit class BookXSmallWebp(ImageSpec): """Handles XSmall size in Webp format""" processors = [ResizeToFit(80, 80)] format = "WEBP" options = {"quality": 95} class Bo...
views
credits_treeview
""" @file @brief This file contains the credits treeview, used by the about window @author Noah Figg <eggmunkee@hotmail.com> @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 Edit...
lib
geoip
#!/usr/bin/python # 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 # Lic...
fonts
musicfonts
# 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 ...
Robot
KukaExporter
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Kuka export lib (c) Jürgen Riegel 2009 LGPL 2.1 or higher import time TeachPointFold = """ ;FOLD LIN P4 Vel= 0.2 m/s CPDAT1 Tool[1] Base[0];%{PE}%R 5.4.27,%MKUKATPBASIS,%CMOVE,%VLIN,%P 1:LIN, 2:P4, 3:, 5:0.2, 7:CPDAT1 $BWDSTART = FALSE LDAT_ACT=LCPDAT1 FDAT_ACT=FP4 B...
beetsplug
missing
# This file is part of beets. # Copyright 2016, Pedro Silva. # Copyright 2017, Quentin Young. # # 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 limita...
Gui
Controller
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2019 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
thumbor
server
#!/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 logging import logging.config import os import sys import war...
friture
ui_friture
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'ui\friture.ui' # # Created: Sat Feb 14 20:44:29 2015 # by: PyQt5 UI code generator 5.4 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets from . import friture_rc class Ui_MainWindow(...
metadata
sid
# 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...
controllers
multi
# 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, ...
events
waveformseekbar
# Copyright 2016 0x1777 # 2016-22 Nick Boultbee # 2017 Didier Villevalois # 2017 Muges # 2017 Eyenseo # 2018 Joschua Gandert # 2018 Blimmo # 2018 Olli Helin # # This program is free software; you can redistribute it and/or modify # it under the terms of...
gui
about_window
# coding: utf-8 from __future__ import absolute_import import os import sys import zipfile from collections import namedtuple from gi.repository import Gdk, GdkPixbuf, Gio, GLib, Gtk, Pango from sunflower import common Contributor = namedtuple( "Contributor", [ "name", # contributor's full name ...
mylar
search
# This file is part of Mylar. # # Mylar 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. # # Mylar is distributed in the hope that...
polar
channel_construction_bec
#!/usr/bin/env python # # Copyright 2015 Free Software Foundation, Inc. # # SPDX-License-Identifier: GPL-3.0-or-later # # import numpy as np from . import helper_functions as hf def bec_channel(eta): """ binary erasure channel (BEC) for each y e Y W(y|0) * W(y|1) = 0 or W(y|0) = W(y|1) transiti...
box-coders
keypoint_box_coder_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...
bleachbit
Log
# vim: ts=4:sw=4:expandtab # BleachBit # Copyright (C) 2008-2023 Andrew Ziem # https://www.bleachbit.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 3 of the License, or # ...
pwidgets
palette
# -*- 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....
localModule
changeSpool
import eos.db import gui.mainFrame import wx from gui import globalEvents as GE from gui.fitCommands.calc.module.changeSpool import CalcChangeModuleSpoolCommand from gui.fitCommands.helpers import InternalCommandHistory from service.fit import Fit class GuiChangeLocalModuleSpoolCommand(wx.Command): def __init__(s...
widgets
status_bar
from gi.repository import GObject, Gtk class StatusBar(Gtk.HBox): """Plugin status bar""" def __init__(self): GObject.GObject.__init__(self, homogeneous=False, spacing=15) self.set_border_width(4) self.set_property("no-show-all", True) self._icons = {} self._labels =...
extractor
s4c
# coding: utf-8 from __future__ import unicode_literals from functools import partial as partial_f from ..utils import ( T, float_or_none, merge_dicts, traverse_obj, txt_or_none, url_or_none, ) from .common import InfoExtractor class S4CIE(InfoExtractor): _VALID_URL = r"https?://(?:www\...
versions
7f064e009cab_add_report_table
"""Add Report table Revision ID: 7f064e009cab Revises: 2bceb2cb4d7c Create Date: 2017-05-29 16:50:28.720980 """ import sqlalchemy as sa from alembic import op # revision identifiers, used by Alembic. revision = "7f064e009cab" down_revision = "2bceb2cb4d7c" branch_labels = None depends_on = None def upgrade(): ...
transforms
split
from __future__ import with_statement __license__ = 'GPL v3' __copyright__ = '2008, Kovid Goyal kovid@kovidgoyal.net' __docformat__ = 'restructuredtext en' ''' Splitting of the XHTML flows. Splitting can happen on page boundaries or can be forced at "likely" locations to conform to size limitations. This transform ...
layer
group
# This file is part of MyPaint. # Copyright (C) 2011-2019 by the MyPaint Development Team # Copyright (C) 2007-2012 by Martin Renold <martinxyz@gmx.ch> # # 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 Foun...
friture
audiobackend
#!/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...
tools
shortcut
from gaphas.view import GtkView from gaphor.core import Transaction from gaphor.core.modeling import Presentation, self_and_owners from gi.repository import Gdk, Gtk def shortcut_tool(view, event_manager): ctrl = Gtk.EventControllerKey.new() ctrl.connect("key-pressed", on_delete, event_manager) return ctr...
fft
qa_goertzel
#!/usr/bin/env python # # Copyright 2006,2007,2010,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from math import cos, pi from gnuradio import blocks, fft, gr, gr_unittest class test_goertzel(gr_unittest.TestCase): def setUp(self): ...
forms
self
from CTFd.constants.languages import SELECT_LANGUAGE_LIST from CTFd.forms import BaseForm from CTFd.forms.fields import SubmitField from CTFd.forms.users import attach_custom_user_fields, build_custom_user_fields from CTFd.utils.countries import SELECT_COUNTRIES_LIST from CTFd.utils.user import get_current_user from fl...
cssutils
util
"""base classes and helper functions for css and stylesheets packages """ __all__ = [] __docformat__ = 'restructuredtext' __version__ = '$Id$' import codecs import types import xml.dom from itertools import chain, ifilter import codec import cssutils import errorhandler import tokenize2 from helper import normalize ...
PyObjCTest
test_nsport
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class NSPortHelper(NSPort): def sendBeforeDate_components_from_reserved_(self, a, b, c, d): pass def sendBeforeDate_msgid_components_from_reserved_(self, a, b, c, d, e): pass ...
notifier
macos
# neubot/notifier/macos.py # # Copyright (c) 2011 Marco Scopesi <marco.scopesi@gmail.com>, # Politecnico di Torino # Copyright (c) 2011-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...
prefs
generic
# -*- coding: utf-8 -*- # # Copyright (C) 2015 by Ihor E. Novikov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
qltk
matchdialog
# Copyright 2021 Joschua Gandert # # 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 dataclasses import dataclass fro...
generators
burst
#!/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...
Models
CustomQualityProfilesDropDownMenuModel
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING, Optional import cura.CuraApplication # Imported this way to prevent circular references. from cura.Machines.ContainerTree import ContainerTree from cura.Machines.Models.QualityProfilesDro...
cmd
memtest
from __future__ import absolute_import, print_function import re import resource import sys import time from bup import _helpers, bloom, git, midx, options from bup.helpers import log from bup.io import byte_stream _linux_warned = 0 def linux_memstat(): global _linux_warned # fields = ['VmSize', 'VmRSS', '...
util
connectivity
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2020 The OctoPrint Project - Released under terms of the AGPLv3 License" import logging import threading import time from octoprint.util.net import resolve_host, server_reachable class Connectivit...
PyObjCTest
test_nsformatter
from Foundation import * from PyObjCTools.TestSupport import * class TestNSFormatter(TestCase): def testMethods(self): self.assertResultIsBOOL(NSFormatter.getObjectValue_forString_errorDescription_) self.assertArgIsOut(NSFormatter.getObjectValue_forString_errorDescription_, 0) self.assertA...
invesalius
presets
# -------------------------------------------------------------------------- # 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...
blocks
_templates
# Copyright 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-2.0-or-later # """ This dict class holds a (shared) cache of compiled mako templates. These """ from mako.exceptions import SyntaxException from mako.template import Template from ..errors import Templat...
context
icnsContext
import os import shutil import tempfile import Quartz from drawBot.context.imageContext import ImageContext from drawBot.misc import DrawBotError, executeExternalProcess class ICNSContext(ImageContext): fileExtensions = ["icns"] allowedPageSizes = [16, 32, 128, 256, 512, 1024] def _writeDataToFile(self...
public-api
tf_sync
import logging from apps.grafana_plugin.helpers.client import GrafanaAPIClient from apps.grafana_plugin.tasks import sync_team_members_for_organization_async from apps.user_management.sync import sync_teams, sync_users from django.core.cache import cache logger = logging.getLogger(__name__) SYNC_REQUEST_TIMEOUT = 5 ...
base
notifier
# -*- coding: utf-8 -*- import time from ..helpers import is_sequence from .addon import BaseAddon, expose class Notifier(BaseAddon): __name__ = "Notifier" __type__ = "addon" __version__ = "0.13" __status__ = "testing" __config__ = [ ("enabled", "bool", "Activated", False), ("cap...
Http
CloudClusterStatus
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from datetime import datetime from typing import Any, Dict, List, Union from ..BaseModel import BaseModel from .ClusterPrinterStatus import ClusterPrinterStatus from .ClusterPrintJobStatus import ClusterPrintJobStatus # M...
datastore
plugin
# encoding: utf-8 from __future__ import annotations import logging import os from typing import Any, Callable, Union, cast import ckan.plugins as p import ckanext.datastore.blueprint as view import ckanext.datastore.helpers as datastore_helpers import ckanext.datastore.interfaces as interfaces import ckanext.datasto...
webkit
webkitsettings
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Bridge from QWebSettings to our own settings. Module attributes: ATTRIBUTES: A mapping from internal setting names to QWebSetting enum constants. """ import os.path from...
mako
codegen
# mako/codegen.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 """provides functionality for rendering a parsetree constructing into module source code.""" impo...
gdist
scripts
# Copyright 2007 Joe Wreschnig # 2015-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, ...
css
selectorlist
"""SelectorList is a list of CSS Selector objects. TODO - remove duplicate Selectors. -> CSSOM canonicalize - ??? CSS2 gives a special meaning to the comma (,) in selectors. However, since it is not known if the comma may acquire other meanings in future versions of CSS, the whole statement sh...
gui
autorecover
# -*- coding: utf-8 -*- # This file is part of MyPaint. # Copyright (C) 2015-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 Licens...
network
filescheme
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # SPDX-FileCopyrightText: Antoni Boucher (antoyo) <bouanto@zoho.com> # # SPDX-License-Identifier: GPL-3.0-or-later """Handler functions for file:... pages.""" import os from qutebrowser.browser.webkit.network import networkreply from qute...
extractor
playstuff
from __future__ import unicode_literals from ..compat import compat_str from ..utils import smuggle_url, try_get from .common import InfoExtractor class PlayStuffIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?play\.stuff\.co\.nz/details/(?P<id>[^/?#&]+)" _TESTS = [ { "url": "https:/...
migrations
0003_auto_20221121_1610
# Generated by Django 3.2.16 on 2022-11-21 16:10 import django_migration_linter as linter from django.db import migrations class Migration(migrations.Migration): dependencies = [ ("auth_token", "0002_squashed_initial"), ] operations = [ linter.IgnoreMigration(), migrations.Remove...
femobjects
constraint_flowvelocity
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * # * Copyright (c) 2023 Uwe Stöhr <uwestoehr@lyx.org> * # * ...
daw
hardware
from sglib import constants from sglib.lib import util from sglib.lib.translate import _ from sglib.models.daw.routing import MIDIRoute, MIDIRoutes from sgui.daw import shared from sgui.daw.sequencer.audio_input import AudioInputWidget from sgui.daw.shared import * from sgui.sgqt import * class MidiDevice: """The...
mylar
webserve
# This file is part of Mylar. # -*- coding: utf-8 -*- # # Mylar 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. # # Mylar is dist...