section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
migrations
0014_auto_20230728_0802
# Generated by Django 3.2.20 on 2023-07-28 08:02 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("alerts", "0029_auto_20230728_0802"), ("user_management", "0013_alter_organization_acknowledge_remind_timeout"), ...
core
cgroup
#!/usr/bin/env python # coding:utf-8 import os # Try to retrieve limits of memory for the current process' cgroup def getCgroupMemorySize(): # first of all, get pid of process pid = os.getpid() # Get cgroup associated with pid filename = f"/proc/{pid}/cgroup" cgroup = None try: with...
alerts
signals
import django.dispatch from apps.slack.representatives.alert_group_representative import ( AlertGroupSlackRepresentative, ) from apps.slack.representatives.user_representative import UserSlackRepresentative """ There are three entities which require sync between web, slack and telegram. AlertGroup, AlertGroup's lo...
Code
GestorWashing
from Code import ( Apertura, ControlPosicion, Gestor, Jugada, Tutor, Util, Washing, XMotorRespuesta, ) from Code.Constantes import * from Code.QT import PantallaJuicio, QTUtil, QTUtil2 from PyQt4 import QtCore def gestorWashing(procesador): dbwashing = Washing.DBWashing(procesador....
migrations
0002_auto_20200219_0816
# Generated by Django 3.0.3 on 2020-02-19 08:16 import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("bookwyrm", "0001_initial"), ] operations = [ migrations.CreateModel( ...
extractor
appleconnect
# coding: utf-8 from __future__ import unicode_literals from ..utils import ExtractorError, str_to_int from .common import InfoExtractor class AppleConnectIE(InfoExtractor): _VALID_URL = r"https?://itunes\.apple\.com/\w{0,2}/?post/(?:id)?sa\.(?P<id>[\w-]+)" _TESTS = [ { "url": "https://it...
db
migration
import shutil import time import config from logbook import Logger from . import migrations pyfalog = Logger(__name__) def getVersion(db): cursor = db.execute("PRAGMA user_version") return cursor.fetchone()[0] def getAppVersion(): return migrations.appVersion def update(saveddata_engine): dbVer...
beetsplug
random
# This file is part of beets. # Copyright 2016, Philippe Mongeau. # # 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...
canto-next
setup
#!/usr/bin/env python3 import glob import os import subprocess from distutils.command.build_py import build_py from distutils.command.install_data import install_data from distutils.core import setup string_version = "0.9.8" changes = ["canto_backend.py", "remote.py"] class canto_next_build_py(build_py): def r...
clients
rtorrent
import os import re import mylar from lib.rtorrent import RTorrent from mylar import helpers, logger from urlparse import urlparse class TorrentClient(object): def __init__(self): self.conn = None def getVerifySsl(self, verify, ca_bundle): # Ensure verification has been enabled if no...
radio-crawler
fetch_tags
#!/usr/bin/env python2 # Copyright 2011,2014 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. from __...
bleachbit
Memory
# vim: ts=4:sw=4:expandtab # -*- coding: UTF-8 -*- # 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...
femcommands
commands
# *************************************************************************** # * Copyright (c) 2016 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
contrib
ipaddress
#!/usr/bin/python3 # # Copyright 2007 Google Inc. # Licensed to PSF under a Contributor Agreement. # # 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/LIC...
scripts
philips_post
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2016 Christoph Blaue <blaue@fh-westkueste.de> * # * * # * This program is free software; you can redistribute it a...
gui
task_imports
# -------------------------------------------------------------------------- # 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...
extractor
crackle
# coding: utf-8 from __future__ import division, unicode_literals import hashlib import hmac import re import time from ..compat import compat_HTTPError from ..utils import ( ExtractorError, determine_ext, float_or_none, int_or_none, parse_age_limit, parse_duration, url_or_none, ) from .co...
gr
pubsub
#!/usr/bin/env python # # Copyright 2008,2009 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # """ Abstract GNU Radio publisher/subscriber interface This is a proof of concept implementation, will likely change significantly. """ class pubsub(dict):...
builtinAdditionPanes
boosterView
# ============================================================================= # 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 ...
neubot
runner_tests
#!/usr/bin/env python # # Copyright (c) 2012 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
src
singleinstance
""" This is based upon the singleton class from `tendo <https://github.com/pycontribs/tendo>`_ which is under the Python Software Foundation License version 2 """ import atexit import os import sys import state try: import fcntl # @UnresolvedImport except ImportError: pass class singleinstance(object): ...
nfoview
about
# -*- coding: utf-8 -*- # Copyright (C) 2008 Osmo Salomaa # # 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. # # This pr...
network
proxy
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Handling of proxies.""" from qutebrowser.browser.network import pac from qutebrowser.config import config, configtypes from qutebrowser.misc import objects from qutebrowser.qt.core import QU...
async-migrations
runner
from typing import List, Optional, Tuple import structlog from posthog.async_migrations.definition import AsyncMigrationDefinition from posthog.async_migrations.setup import ( FROZEN_POSTHOG_VERSION, get_async_migration_definition, get_async_migration_dependency, ) from posthog.async_migrations.utils impor...
builtinViewColumns
attributeDisplay
# ============================================================================= # 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 ...
ui
ui_options_tags_compatibility_ac3
# -*- coding: utf-8 -*- # Automatically generated - don't edit. # Use `python setup.py build_ui` to update it. from PyQt5 import QtCore, QtGui, QtWidgets class Ui_TagsCompatibilityOptionsPage(object): def setupUi(self, TagsCompatibilityOptionsPage): TagsCompatibilityOptionsPage.setObjectName("TagsCompa...
sandbox
lesson6_2d
#!/usr/bin/env python # -*- coding: utf-8 -*- import Image import numpy as np # # This code was created by Richard Campbell '99 (ported to Python/PyOpenGL by John Ferguson 2000) # # The port was based on the lesson5 tutorial module by Tony Colston (tonetheman@hotmail.com). # # If you've found this code useful, please...
OptionalManager
OptionalManagerPlugin
import collections import re import time import gevent from Plugin import PluginManager from util import helper from . import ContentDbPlugin # We can only import plugin host clases after the plugins are loaded @PluginManager.afterLoad def importPluginnedClasses(): global config from Config import config ...
utils
gray_code
#!/usr/bin/env python # # Copyright 2011 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # class GrayCodeGenerator(object): """ Generates and caches gray codes. """ def __init__(self): self.gcs = [0, 1] # The last power...
util
m3u
# This file is part of beets. # Copyright 2022, J0J0 Todos. # # 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, modi...
accounts
RapiduNet
# -*- coding: utf-8 -*- import json import time from ..base.account import BaseAccount class RapiduNet(BaseAccount): __name__ = "RapiduNet" __type__ = "account" __version__ = "0.13" __status__ = "testing" __description__ = """Rapidu.net account plugin""" __license__ = "GPLv3" __authors_...
RemotePyInterpreter
test_client
try: import fcntl except: fcntl = None import os import socket import sys from subprocess import PIPE, Popen from netrepr import NetRepr, RemoteObjectPool, RemoteObjectReference from StringIO import StringIO IMPORT_MODULES = ['netrepr', 'remote_console', 'remote_pipe', 'remote_bootstrap'] source = StringIO() ...
PySide
mainwindow2
import sys import FreeCADGui from PySide import QtGui # sys.path.append("") class MainWindow(QtGui.QMainWindow): def __init__(self, parent=None): super(MainWindow, self).__init__(parent) from PySide import QtNetwork # Webkit is used to create icons from SVG files. This could cause a dea...
views
effects_treeview
""" @file @brief This file contains the effects file treeview, used by the main window @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.openshot.org), an open-s...
daapclient
client
import http.client import logging from io import BytesIO from spydaap.daap import DAAPError, DAAPObject, DAAPParseCodeTypes log = logging.getLogger("daapclient") class DAAPClient: def __init__(self): self.socket = None self.request_id = 0 def connect(self, hostname, port=3689, password=None...
migrations
0029_alter_pumping_options_remove_pumping_time_and_more
# Generated by Django 4.2.2 on 2023-06-16 20:06 import django.utils.timezone from django.db import migrations, models def set_pumping_start_end_values(apps, schema_editor): # The model must be imported to ensure its overridden `save` method is run. Pumping = apps.get_model("core", "Pumping") for pumping...
templatetags
breadcrumb
# 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 ...
OLD
linerec
import copy as pycopy import lineproc import morph import sl from pylab import * from scipy.ndimage import measurements, morphology class Segment: def __init__(self, **kw): self.first = None self.last = None self.bbox = None self.img = None self.out = None self.sp ...
extractors
archive_org
__package__ = "archivebox.extractors" from collections import defaultdict from pathlib import Path from typing import Dict, List, Optional, Tuple from ..config import ( CHECK_SSL_VALIDITY, CURL_ARGS, CURL_BINARY, CURL_USER_AGENT, CURL_VERSION, SAVE_ARCHIVE_DOT_ORG, TIMEOUT, ) from ..index...
lib
export
# 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, ...
windows
color_picker
""" @file @brief A non-modal Qt color picker dialog launcher @author FeRD (Frank Dana) <ferdnyc@gmail.com> @section LICENSE Copyright (c) 2008-2020 OpenShot Studios, LLC (http://www.openshotstudios.com). This file is part of OpenShot Video Editor (http://www.openshot.org), an open-source project dedicated to ...
migrations
0234_create_plugin_jsons
# Generated by Django 3.2.12 on 2022-05-19 12:36 import json from django.db import migrations # Create a "plugin.json" file for each plugin that's missing it due to an error in 0233 (!![] == !!None in python) def migrate_plugin_source(apps, schema_editor): Plugin = apps.get_model("posthog", "Plugin") Plugin...
downloaders
AlfafileNet
# -*- coding: utf-8 -*- import json import re from pyload.core.utils import seconds from ..anticaptchas.ReCaptcha import ReCaptcha from ..anticaptchas.SolveMedia import SolveMedia from ..base.simple_downloader import SimpleDownloader class AlfafileNet(SimpleDownloader): __name__ = "AlfafileNet" __type__ = ...
cparser
extmodule_test
import itertools import os import pprint import tempfile import time import unittest from os import path try: from beancount.cparser import extmodule except ImportError: extmodule = None from beancount.parser import printer class CppParserModuleTests(unittest.TestCase): def setUp(self): """Get e...
preferences
cover
# 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...
PyObjCTest
test_specialtypecodes_nsbool
""" Test handling of the private typecodes: _C_NSBOOL, _C_CHAR_AS_INT, _C_CHAR_AS_TEXT and _C_UNICHAR These typecodes don't actually exists in the ObjC runtime but are private to PyObjC. We use these to simplify the bridge code while at the same time getting a higher fidelity bridge. TODO: - Add support for UniCh...
aliceVision
PanoramaInit
__version__ = "2.0" from meshroom.core import desc class PanoramaInit(desc.AVCommandLineNode): commandLine = "aliceVision_panoramaInit {allParams}" size = desc.DynamicNodeSize("input") category = "Panorama HDR" documentation = """ This node allows to setup the Panorama: 1/ Enables the initializatio...
utils
injector
__all__ = ["fix_js_args"] import types import opcode import six if six.PY3: xrange = range chr = lambda x: x # Opcode constants used for comparison and replacecment LOAD_FAST = opcode.opmap["LOAD_FAST"] LOAD_GLOBAL = opcode.opmap["LOAD_GLOBAL"] STORE_FAST = opcode.opmap["STORE_FAST"] def fix_js_args(func)...
engines
youtube_noapi
# SPDX-License-Identifier: AGPL-3.0-or-later """ Youtube (Videos) """ from functools import reduce from json import dumps, loads from random import random from urllib.parse import quote_plus # about about = { "website": "https://www.youtube.com/", "wikidata_id": "Q866", "official_api_documentation": "htt...
qrcode
console_scripts
#!/usr/bin/env python """ qr - Convert stdin (or the first argument) to a QR Code. When stdout is a tty the QR Code is printed to the terminal and when stdout is a pipe to a file an image is written. The default image format is PNG. """ import optparse import os import sys import lib.qrcode # The next block is added...
activitypub
note
""" note serializer and children thereof """ import re from dataclasses import dataclass, field from typing import Dict, List from django.apps import apps from django.db import IntegrityError, transaction from .base_activity import ActivityObject, ActivitySerializerError, Link from .image import Document @dataclass...
DatePicker
MyWindowController
from Cocoa import * # date/time element popup selections: kNSHourMinuteDatePickerElementFlag = 0 kNSHourMinuteSecondDatePickerElementFlag = 1 kNSTimeZoneDatePickerElementFlag = 2 kNSYearMonthDatePickerElementFlag = 0 kNSYearMonthDayDatePickerElementFlag = 1 kNSEraDatePickerElementFlag = 2 kSingleDateMode = 0 kRangeD...
config
environment
# 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, ...
extensions
rename_download
# -*- coding: utf-8 -*- # Rename files after download based on the episode title # Copyright (c) 2011-04-04 Thomas Perl <thp.io> # Licensed under the same terms as gPodder itself import logging import os import time import gpodder from gpodder import util from gpodder.model import PodcastEpisode logger = logging.get...
extractor
iqiyi
# coding: utf-8 from __future__ import unicode_literals import hashlib import itertools import re import time from ..compat import compat_str, compat_urllib_parse_urlencode from ..utils import ( ExtractorError, clean_html, decode_packed_codes, get_element_by_attribute, get_element_by_id, ohdav...
core
View
##################################################################### # -*- coding: utf-8 -*- # # # # Frets on Fire # # Copyright (C) 2006 Sami Kyöstilä ...
extractor
polskieradio
# coding: utf-8 from __future__ import unicode_literals import itertools import re from ..compat import compat_str, compat_urllib_parse_unquote, compat_urlparse from ..utils import extract_attributes, int_or_none, strip_or_none, unified_timestamp from .common import InfoExtractor class PolskieRadioIE(InfoExtractor)...
backend
translators
# -*- encoding: utf-8 -*- # Dissemin: open access policy enforcement tool # Copyright (C) 2014 Antonin Delpeuch # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as published by the Free Software Foundation; either version 2 # of th...
cli
update
# # Copyright 2018 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # """ Module to convert XML bindings to YAML bindings """ import click from ..core import ModToolUpdate, get_xml_candidates from ..tools import SequenceCompleter from .base import ModT...
devtools
page
# DO NOT EDIT THIS FILE! # # This file is generated from the CDP specification. If you need to make # changes, edit the generator and regenerate all modules. # # CDP version: v0.0.1156692 # CDP domain: Page from __future__ import annotations import enum # noqa import typing from dataclasses import dataclass # noqa ...
clickhouse
dead_letter_queue
from posthog.clickhouse.indexes import index_by_kafka_timestamp from posthog.clickhouse.kafka_engine import KAFKA_COLUMNS, kafka_engine, ttl_period from posthog.clickhouse.table_engines import ReplacingMergeTree from posthog.kafka_client.topics import KAFKA_DEAD_LETTER_QUEUE from posthog.settings import CLICKHOUSE_CLUS...
diagram
text
"""Support classes for dealing with text.""" from __future__ import annotations from gaphas.canvas import instant_cairo_context from gaphas.painter.freehand import FreeHandCairoContext from gaphor.core.styling import FontStyle, FontWeight, Style, TextAlign, TextDecoration from gi.repository import Pango, PangoCairo ...
vidcutter
helpers
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # # VidCutter - media cutter & joiner # # copyright © 2018 Pete Alexandrou # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
Models
QualityManagementModel
# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING, Any, Dict, Optional, cast import cura.CuraApplication # Imported this way to prevent circular imports. from cura.Machines.ContainerTree import ContainerTree from cura.Machines.Models.Inte...
migrations
0006_session_recording_events
from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions from posthog.session_recordings.sql.session_recording_event_sql import ( DISTRIBUTED_SESSION_RECORDING_EVENTS_TABLE_SQL, KAFKA_SESSION_RECORDING_EVENTS_TABLE_SQL, SESSION_RECORDING_EVENTS_TABLE_MV_SQL, SESSION_RECORDING_EVENTS...
femobjects
constraint_centrif
# *************************************************************************** # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
friture
audiobuffer
#!/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...
apps
BaseHandler
#!/usr/bin/env python # -*- coding:utf-8 -*- # KindleEar: A GAE web application to aggregate rss and send it to your kindle. # Visit https://github.com/cdhigh/KindleEar for the latest version # Author: # cdhigh <https://github.com/cdhigh> # Contributors: # rexdf <https://github.com/rexdf> import base64 import datetime...
extractor
krasview
# coding: utf-8 from __future__ import unicode_literals import json from ..utils import int_or_none, js_to_json from .common import InfoExtractor class KrasViewIE(InfoExtractor): IE_DESC = "Красвью" _VALID_URL = r"https?://krasview\.ru/(?:video|embed)/(?P<id>\d+)" _TEST = { "url": "http://krasv...
pyobjc-framework-Cocoa
pyobjc_setup
""" Generic setup.py file for PyObjC framework wrappers. This file should only be changed in pyobjc-core and then copied to all framework wrappers. """ __all__ = ("setup", "Extension", "Command") import sys from pkg_resources import Distribution try: import setuptools except ImportError: import distribute...
migrations
0044_auto_20210207_1924
# Generated by Django 3.0.7 on 2021-02-07 19:24 import bookwyrm.models.fields import django.db.models.deletion from django.conf import settings from django.db import migrations def set_user(app_registry, schema_editor): db_alias = schema_editor.connection.alias shelfbook = app_registry.get_model("bookwyrm", ...
classes
time_parts
""" @file @brief This file converts a float time value (i.e. seconds) to parts of time @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.openshot.org), an open-s...
clientScripts
create_mets_dataverse_v2
#!/usr/bin/env python # # This file is part of Archivematica. # # Copyright 2010-2018 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, ...
services
factories
# -*- coding: utf-8 -*- """ flaskbb.user.services.factories ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Factory functions for the various FlaskBB user services. These factories are provisional and considered private APIs. :copyright: 2018, the FlaskBB Team. :license: BSD, see LICENSE for more details """ ...
migrations
0015_ddc
# Generated by Django 2.2.1 on 2019-07-05 10:12 import django.core.validators import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("deposit", "0014_populate_licenses"), ] operations = [ migrations.CreateModel( ...
backend
citeproc
# This module is the successor of the old crossref.py which mixed some things up. # The module will provide essentially two ways to retrieve metadata from a DOI. # 1. single DOI with content negotiation via dx.doi.org # 2. mass import from CrossRef, i.e. get all DOI that they have. # The strategy in the first case will...
blocks
qa_hier_block2_message_connections
#!/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 weakref import pmt from gnuradio import blocks, gr, gr_unittest class block_with_message_output(gr.basic_block): def __init__(self): ...
femguiutils
migrate_gui
# *************************************************************************** # * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
migrations
0025_update_fido_1312
from django.db import migrations def data_migration_up(apps, schema_editor): """ Update identification tool FIDO to 1.3.12, correcting a character-spacing issue bug identified in PRONOM94 (again) """ idtool = apps.get_model("fpr", "IDTool") idcommand = apps.get_model("fpr", "IDCommand") ...
friture
levels
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009 Timoth?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 distribu...
api
exports
from datetime import timedelta from typing import Any, Dict import celery import requests.exceptions import structlog from django.http import HttpResponse from django.utils.timezone import now from posthog.api.routing import StructuredViewSetMixin from posthog.auth import PersonalAPIKeyAuthentication from posthog.even...
draftobjects
bspline
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
lib
brush
# This file is part of MyPaint. # Copyright (C) 2007-2018 by the MyPaint Development Team # Copyright (C) 2007 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 Foundatio...
models
notification
""" alert a user to activity """ from django.db import models, transaction from django.dispatch import receiver from . import ( Boost, Favorite, GroupMemberInvitation, ImportJob, LinkDomain, ListItem, Report, Status, User, UserFollowRequest, ) from .base_model import BookWyrmMod...
Models
ExtruderOutputModel
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING, Optional from PyQt6.QtCore import QObject, pyqtProperty, pyqtSignal, pyqtSlot from .ExtruderConfigurationModel import ExtruderConfigurationModel if TYPE_CHECKING: from .MaterialOutpu...
posthog
schema
# generated by datamodel-codegen: # filename: schema.json from __future__ import annotations from enum import Enum from typing import Any, Dict, List, Optional, Union from pydantic import BaseModel, ConfigDict, Field, RootModel from typing_extensions import Literal class MathGroupTypeIndex(float, Enum): num...
parts
mw
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2018 by Ihor E. Novikov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ver...
usecases
include
"""Use case inclusion relationship.""" from gaphor import UML from gaphor.diagram.presentation import LinePresentation, Named from gaphor.diagram.shapes import Box, Text, draw_arrow_head from gaphor.diagram.support import represents from gaphor.UML.recipes import stereotypes_str @represents(UML.Include, head=UML.Inc...
internal
daemon_runner
import argparse from contextlib import redirect_stderr, redirect_stdout from typing import List from httpie.context import Environment from httpie.internal.update_warnings import _fetch_updates, _get_suppress_context from httpie.status import ExitStatus STATUS_FILE = ".httpie-test-daemon-status" def _check_status(e...
extractors
HjSplit
# -*- coding: utf-8 -*- import os import re from pyload.plugins.base.extractor import ArchiveError, BaseExtractor class HjSplit(BaseExtractor): __name__ = "HjSplit" __type__ = "extractor" __version__ = "0.02" __status__ = "testing" __description__ = """HJSPLIT extractor plugin""" __license_...
interactions
interactionspropertypages
from gaphor import UML from gaphor.core import transactional from gaphor.diagram.propertypages import ( PropertyPageBase, PropertyPages, new_resource_builder, ) from gaphor.UML.interactions.interactionsconnect import get_lifeline from gaphor.UML.interactions.message import MessageItem from gaphor.UML.proper...
config
keyring
import logging from typing import Union logger = logging.getLogger(__name__) try: import dbus # pyright: ignore[reportMissingImports] except ImportError: dbus = None # XXX: Hack to workaround introspection bug caused by gnome-keyring, should be # fixed by version 3.5 per: # https://git.gnome.org/browse/gno...
extractor
xfileshare
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_chr from ..utils import ( ExtractorError, decode_packed_codes, determine_ext, int_or_none, js_to_json, urlencode_postdata, ) from .common import InfoExtractor # based on openload_decode from 2bfeee6...
corewizard
subwizards
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2015 The OctoPrint Project - Released under terms of the AGPLv3 License" import inspect import sys import octoprint.plugin from flask_babel import gettext from octoprint.access import ADMIN_GROUP, US...
addons
SkipRev
# -*- coding: utf-8 -*- import re from pyload.core.datatypes.pyfile import PyFile from ..base.addon import BaseAddon class SkipRev(BaseAddon): __name__ = "SkipRev" __type__ = "addon" __version__ = "0.38" __status__ = "testing" __config__ = [ ("enabled", "bool", "Activated", False), ...
classes
datatype
import logging from gaphor import UML from gaphor.core.modeling.properties import attribute from gaphor.core.styling import FontStyle, FontWeight, JustifyContent from gaphor.diagram.presentation import ( Classified, ElementPresentation, from_package_str, ) from gaphor.diagram.shapes import Box, Text, draw_...
bleachbit
Worker
# 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 # ...
imports
manually_review
""" verify books we're unsure about """ from bookwyrm import models from bookwyrm.models.import_job import import_item_task from bookwyrm.settings import PAGE_LENGTH from django.contrib.auth.decorators import login_required from django.core.exceptions import PermissionDenied from django.core.paginator import Paginator ...
qutebrowser
app
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Initialization of qutebrowser and application-wide things. The run() function will get called once early initialization (in qutebrowser.py/earlyinit.py) is done. See the qutebrowser.py docst...
papers
forms
# -*- encoding: utf-8 -*- # Dissemin: open access policy enforcement tool # Copyright (C) 2014 Antonin Delpeuch # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as published by the Free Software Foundation; either version 2 # of th...