section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
time-to-see-data
hierarchy
from dataclasses import dataclass, field from enum import Enum from typing import List class NodeType(Enum): SESSION = "session" INTERACTION = "interaction" EVENT = "event" QUERY = "query" SUBQUERY = "subquery" NODE_TYPE_WEIGHTS = { NodeType.SESSION: 0, NodeType.INTERACTION: 1, NodeT...
grc
gen_rfnoc_duc_block_yml
""" Copyright 2023 Ettus Research, A National Instruments Brand. SPDX-License-Identifier: GPL-3.0-or-later """ import sys MAX_NUM_CHANNELS = 4 MAIN_TMPL = """\ id: uhd_rfnoc_duc label: RFNoC Digital Upconverter Block category: '[Core]/UHD/RFNoC/Blocks' parameters: - id: num_chans label: Channel count dtype: in...
migrations
0010_email_on_preferences
# -*- coding: utf-8 -*- # Generated by Django 1.10.5 on 2017-03-31 14:58 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("deposit", "0009_populate_last_repository"), ] operations = [ migrations.AddField( ...
metrics-exporter
helpers
import datetime import random import typing from apps.alerts.constants import AlertGroupState from apps.metrics_exporter.constants import ( ALERT_GROUPS_RESPONSE_TIME, ALERT_GROUPS_TOTAL, METRICS_CACHE_LIFETIME, METRICS_CACHE_TIMER, METRICS_ORGANIZATIONS_IDS, METRICS_ORGANIZATIONS_IDS_CACHE_TIM...
migrations
201503222157_514ca0a3282c_private_messages
"""Private Messages Revision ID: 514ca0a3282c Revises: 8ad96e49dc6 Create Date: 2015-03-22 21:57:57.444251 """ import sqlalchemy as sa import sqlalchemy_utils # revision identifiers, used by Alembic. from alembic import op revision = "514ca0a3282c" down_revision = "8ad96e49dc6" def upgrade(): ### commands au...
builders
post_processing_builder
# 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...
addons
TransmissionRPC
# -*- coding: utf-8 -*- import json import random import re import pycurl from pyload.core.network.http.exceptions import BadHeader from pyload.core.network.request_factory import get_request from ..base.addon import BaseAddon from ..helpers import parse_html_header class TransmissionRPC(BaseAddon): __name__ =...
bitmessageqt
networkstatus
""" Network status tab widget definition. """ import time import l10n import network.stats import state import widgets from inventory import Inventory from network import BMConnectionPool, knownnodes from PyQt4 import QtCore, QtGui from retranslateui import RetranslateMixin from tr import _translate from uisignaler i...
mysql
20230111
# This file is part of Supysonic. # Supysonic is a Python implementation of the Subsonic server API. # # Copyright (C) 2023 Alban 'spl0k' Féron # # Distributed under terms of the GNU AGPLv3 license. # Converts ids from binary data to hex-encoded strings try: import MySQLdb as provider except ImportError: impo...
Gui
BitEdit
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2019 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
docs-rst
convert_docs
#!/usr/bin/env python3 """Re-insert indentation from blockquotes in RST converted from docx file. """ __copyright__ = "Copyright (C) 2018 Martin Blais" __license__ = "GNU GPLv2" import argparse import io import logging import os import re import subprocess import threading import zipfile from os import path from ppri...
legecy-translators
nodevisitor
import re from jsparser import * from utils import * #Note all white space sent to this module must be ' ' so no '\n' REPL = {} #PROBLEMS # <<=, >>=, >>>= # they are unusual so I will not fix that now. a++ +b works fine and a+++++b (a++ + ++b) does not work even in V8 ASSIGNMENT_MATCH = '(?<!=|!|<|>)=(?!=)' def u...
Code
LibChess
import random import chess import chess.syzygy import LCEngine4 as LCEngine class T4: def __init__(self): self.tb = chess.syzygy.Tablebases("./IntFiles/syzygy") def better_moves(self, fen, move): dic = self.checkFen(fen) def x_wdl(xwdl): li_xmin_pv = [] xmin_...
frescobaldi-app
hyphenator
""" This is a Pure Python module to hyphenate text. It is inspired by Ruby's Text::Hyphen, but currently reads standard *.dic files, that must be installed separately. In the future it's maybe nice if dictionaries could be distributed together with this module, in a slightly prepared form, like in Ruby's Text::Hyphe...
rename-extensions
default
from __future__ import absolute_import import os import re from gi.repository import Gdk, Gtk from sunflower.gui.input_dialog import InputRangeDialog from sunflower.plugin_base.rename_extension import RenameExtension from sunflower.tools.advanced_rename import Column as RenameColumn class DefaultRename(RenameExtens...
plugins
zattoo
""" $description European live TV channels and video on-demand service. OTT service from Zattoo. $url zattoo.com $url iptv.glattvision.ch $url www.saktv.ch $url www.vtxtv.ch $url mobiltv.quickline.com $url www.quantum-tv.com $url tvonline.ewe.de $url nettv.netcologne.de $url tvplus.m-net.de $url player.waly.tv $url www...
schemas
config
from CTFd.models import Configs, ma from CTFd.utils import string_types from marshmallow import fields from marshmallow.exceptions import ValidationError from marshmallow_sqlalchemy import field_for class ConfigValueField(fields.Field): """ Custom value field for Configs so that we can perform validation of v...
builtinContextMenus
fighterAbilities
# noinspection PyPackageRequirements import gui.mainFrame import wx from gui import fitCommands as cmd from gui.contextMenu import ContextMenuCombined from gui.fitCommands.helpers import getSimilarFighters from service.fit import Fit _t = wx.GetTranslation class FighterAbilities(ContextMenuCombined): def __init...
picard
similarity
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2006-2007 Lukáš Lalinský # Copyright (C) 2008 Will # Copyright (C) 2011-2012 Michael Wiencek # Copyright (C) 2013, 2018-2021 Laurent Monin # Copyright (C) 2017 Sambhav Kothari # Copyright (C) 2017 Ville Skyttä # # This program ...
FirmwareUpdater
FirmwareUpdaterMachineAction
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Optional from cura.CuraApplication import CuraApplication from cura.MachineAction import MachineAction from cura.PrinterOutput.FirmwareUpdater import FirmwareUpdateState from PyQt6.QtCore import QObject,...
canto-curses
html
# -*- coding: utf-8 -*- # Canto-curses - ncurses RSS reader # 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 html.e...
Arch
importOBJ
# *************************************************************************** # * Copyright (c) 2011 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
commands
delete_all_photos
import os import shutil from django.conf import settings from django.core.management.base import BaseCommand from photonix.photos.models import Camera, Lens, Photo, PhotoFile, Tag from photonix.web.utils import logger class Command(BaseCommand): help = "Deletes all photos and their related other models" def...
extractor
ehow
from __future__ import unicode_literals from ..compat import compat_urllib_parse_unquote from .common import InfoExtractor class EHowIE(InfoExtractor): IE_NAME = "eHow" _VALID_URL = r"https?://(?:www\.)?ehow\.com/[^/_?]*_(?P<id>[0-9]+)" _TEST = { "url": "http://www.ehow.com/video_12245069_hardwoo...
migrations
0026_alter_settings_timezone
# Generated by Django 4.1.5 on 2023-01-29 23:20 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("babybuddy", "0025_auto_20221023_0821"), ] operations = [ migrations.AlterField( model_name="settings", name="timezone...
plugins
access
from typing import Optional, Union from uuid import UUID from posthog.models.organization import Organization def can_globally_manage_plugins( organization_or_id: Optional[Union[Organization, str, UUID]] ) -> bool: if organization_or_id is None: return False organization: Organization = ( ...
meshes
mesh_square_pipe_end_twisted_tria6
def create_nodes(femmesh): # nodes femmesh.addNode(-142.5, 142.5, 0.0, 1) femmesh.addNode(-142.5, -142.5, 0.0, 2) femmesh.addNode(-142.5, 142.5, 1000.0, 3) femmesh.addNode(-142.5, -142.5, 1000.0, 4) femmesh.addNode(-142.5, 95.0, 0.0, 5) femmesh.addNode(-142.5, 47.5, 0.0, 6) femmesh.addNo...
kibitzr
stash
import contextlib import logging logger = logging.getLogger(__name__) class Stash: FILENAME = "stash.db" @contextlib.contextmanager def open(self): # pylint: disable=import-outside-toplevel import shelve with contextlib.closing(shelve.open(self.FILENAME)) as db: yiel...
AddonManager
addonmanager_devmode_people_table
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022 FreeCAD Project Association * # * ...
const
scripts
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2021 Bob Swift # Copyright (C) 2021 Vladislav Karbovskii # Copyright (C) 2021-2022 Laurent Monin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # ...
downloaders
DlFreeFr
# -*- coding: utf-8 -*- from ..base.simple_downloader import SimpleDownloader class DlFreeFr(SimpleDownloader): __name__ = "DlFreeFr" __type__ = "downloader" __version__ = "0.39" __status__ = "testing" __pattern__ = ( r"http://(?:www\.)?dl\.free\.fr/(getfile\.pl\?file=/|[a-z])(?P<ID>\w+)...
misc
depcheck
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Copyright 2016,2017 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...
src
setup
#!/usr/bin/env python3 """ """ import json import os import platform import subprocess import sys from distutils.core import Extension import setuptools from setuptools.command.test import test as TestCommand NAME = "stargate" URL = "https://github.com/stargateaudio/stargate" DESCRIPTION = "Holistic audio productio...
types
blocks
""" [Documentation](https://api.slack.com/reference/block-kit/blocks) """ import typing from .block_elements import BlockElement from .composition_objects import CompositionObjectPlainText, CompositionObjectText class Block: class _BaseBlock(typing.TypedDict): block_id: str """ A string ...
OpenSCAD
prototype
#!/usr/bin/env python # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License (LGPL) # as published by the Free Software Foundation; either version 2 of # the License, or (at your option) any later version. import math import re import Free...
extractor
gamestar
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import int_or_none, remove_end from .common import InfoExtractor class GameStarIE(InfoExtractor): _VALID_URL = ( r"https?://(?:www\.)?game(?P<site>pro|star)\.de/videos/.*,(?P<id>[0-9]+)\.html" ) _TESTS = [ { ...
downloaders
YoutubeCom
# -*- coding: utf-8 -*- import json import operator import os import re import subprocess import time import urllib.parse from datetime import timedelta from functools import reduce from xml.dom.minidom import parseString as parse_xml from pyload import PKGDIR from pyload.core.network.cookie_jar import CookieJar from...
frescobaldi-app
music
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2014 - 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 ...
dialogs
editdlg
# -*- 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....
model
key
# Key codes enumeration import enum import re # Matches the special <code[number]> syntax, like <code86> for non-printable or unknown keys. _code_point_re = re.compile(r"<code(0|[1-9][0-9]*)>", re.UNICODE) @enum.unique class Key(str, enum.Enum): LEFT = "<left>" RIGHT = "<right>" UP = "<up>" DOWN = "<...
conversions
releaseParallax
""" Conversion pack for Parallax renames """ CONVERSIONS = { # Renamed items "Basic Thermic Plating": "Basic Thermal Plating", "Thermic Plating I": "Thermal Plating I", "Thermic Plating II": "Thermal Plating II", "Basic Thermic Dissipation Amplifier": "Basic Thermal Dissipation Amplifier", "The...
actions
partitionpage
from gaphor import UML from gaphor.core import transactional from gaphor.diagram.propertypages import ( LabelValue, PropertyPageBase, PropertyPages, new_resource_builder, ) from gaphor.UML.actions.partition import PartitionItem from gi.repository import Gio new_builder = new_resource_builder("gaphor.UM...
extractor
rtp
# coding: utf-8 from __future__ import unicode_literals from ..utils import determine_ext, js_to_json from .common import InfoExtractor class RTPIE(InfoExtractor): _VALID_URL = ( r"https?://(?:www\.)?rtp\.pt/play/p(?P<program_id>[0-9]+)/(?P<id>[^/?#]+)/?" ) _TESTS = [ { "url":...
lib
cpstats
"""CPStats, a package for collecting and reporting on program statistics. Overview ======== Statistics about program operation are an invaluable monitoring and debugging tool. Unfortunately, the gathering and reporting of these critical values is usually ad-hoc. This package aims to add a centralized place for gather...
extensions
concatenate_videos
# -*- coding: utf-8 -*- # Concatenate multiple videos to a single file using ffmpeg # 2014-05-03 Thomas Perl <thp.io/about> # Released under the same license terms as gPodder itself. import logging import os import gpodder from gi.repository import Gtk from gpodder import util from gpodder.gtkui.interface.progress im...
python
gui
# # Copyright 2013 Free Software Foundation, Inc. # # This file is part of GNU Radio. # # SPDX-License-Identifier: GPL-3.0-or-later # import os import signal import sys ############################################################################### # Imports ###########################################################...
baseclass
msg_composer
# pylint: disable=unused-argument, consider-using-f-string, too-many-ancestors # pylint: disable=no-member, no-name-in-module, too-few-public-methods, no-name-in-module """ Message composer screen UI """ import logging from kivy.app import App from kivy.properties import ( BooleanProperty, ListProperty, ...
neubot
utils_hier
# neubot/utils_hier.py # # 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 software: you can redistribute it and/or modify # it under the terms of the GNU General Pu...
parsers
pocket_html
__package__ = "archivebox.parsers" import re from datetime import datetime from typing import IO, Iterable from ..index.schema import Link from ..util import enforce_types, htmldecode @enforce_types def parse_pocket_html_export(html_file: IO[str], **_kwargs) -> Iterable[Link]: """Parse Pocket-format bookmarks ...
extractor
popcorntimes
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_b64decode, compat_chr from ..utils import int_or_none from .common import InfoExtractor class PopcorntimesIE(InfoExtractor): _VALID_URL = ( r"https?://popcorntimes\.tv/[^/]+/m/(?P<id>[^/]+)/(?P<display_id>[^/?#...
scripts
refactored_linuxcnc_post
# *************************************************************************** # * Copyright (c) 2014 sliptonic <shopinthewoods@gmail.com> * # * Copyright (c) 2022 Larry Woestman <LarryWoestman2@gmail.com> * # * * # * Th...
model
vocabulary
# encoding: utf-8 from __future__ import annotations from typing import TYPE_CHECKING, Optional import ckan.model.domain_object as domain_object import ckan.model.meta as meta import ckan.model.types as _types from ckan.types import Query from sqlalchemy import Column, Table, types from typing_extensions import Self ...
draftviewproviders
view_label
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> * # * Co...
extractor
npo
from __future__ import unicode_literals import re from ..compat import compat_HTTPError, compat_str from ..utils import ( ExtractorError, determine_ext, fix_xml_ampersands, int_or_none, merge_dicts, orderedSet, parse_duration, qualities, str_or_none, strip_jsonp, unified_st...
plugins
picarto
""" $description Global live-streaming and video hosting platform for the creative community. $url picarto.tv $type live, vod $metadata author $metadata category $metadata title """ import logging import re from textwrap import dedent from urllib.parse import urlparse from streamlink.plugin import Plugin, pluginmatch...
playlistanalyzer
analyzer_dialog
# Copyright (C) 2014 Dustin Spicuzza # # 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...
neubot
utils_version
#!/usr/bin/env python # # Copyright (c) 2011-2012 # 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 t...
ext
autohandler
# ext/autohandler.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 """adds autohandler functionality to Mako templates. requires that the TemplateLookup class is...
data
record_coords
# -------------------------------------------------------------------------- # 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...
scripts
bind_intree_file
import argparse import sys import tempfile import warnings from gnuradio.bindtool import BindingGenerator parser = argparse.ArgumentParser(description="Bind a GR In-Tree Module") parser.add_argument( "--module", type=str, help="Name of gr module containing file to bind (e.g. fft digital analog)", ) parse...
ui
preferencesController
from AppKit import ( NSActionCell, NSApp, NSBezierPath, NSCalibratedRGBColorSpace, NSColorWell, NSFont, NSFontManager, NSForegroundColorAttributeName, NSNotificationCenter, NSTableViewFirstColumnOnlyAutoresizingStyle, NSTextAlignmentCenter, NSUnderlineColorAttributeName, ...
tools
integrate_tests
#!/usr/bin/env python3 """Integrate tests. """ import argparse import collections import logging import re import sys import textwrap def main(): logging.basicConfig(level=logging.INFO, format="%(levelname)-8s: %(message)s") parser = argparse.ArgumentParser(description=__doc__.strip()) parser.add_argumen...
migrations
0016_update_idtools
from django.db import migrations def data_migration(apps, schema_editor): IDTool = apps.get_model("fpr", "IDTool") IDCommand = apps.get_model("fpr", "IDCommand") # Update Fido tool tool = IDTool.objects.get(uuid="c33c9d4d-121f-4db1-aa31-3d248c705e44") tool.version = "1.3.7" tool._slug = "fido...
plotting
scaleWidget
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2015 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...
operon
base
# Copyright 2012,2013 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. import sys from optparse impor...
PyObjCTest
test_pointer_compat
import ctypes import objc from PyObjCTest.pointersupport import object_capsule, opaque_capsule from PyObjCTools.TestSupport import * OpaqueType = objc.createOpaquePointerType("OpaqueType", b"^{OpaqueType}", None) class TestProxySupport(TestCase): def test_cobject_roundtrip(self): arr = objc.lookUpClass(...
versions
085_f9bf3d5c4b4d_adjust_activity_timestamps
# encoding: utf-8 """085 Adjust activity timestamps Revision ID: f9bf3d5c4b4d Revises: d85ce5783688 Create Date: 2018-09-04 18:49:18.307804 """ import datetime from alembic import op from ckan.migration import skip_based_on_legacy_engine_version # revision identifiers, used by Alembic. revision = "f9bf3d5c4b4d" dow...
migrations
0131_add_plugins_updated_created_at
# Generated by Django 3.0.11 on 2021-03-09 13:19 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0130_dashboard_creation_mode"), ] operations = [ migrations.AddField( model_name="plugin", ...
gui
layermanip
# This file is part of MyPaint. # Copyright (C) 2014-2016 by the MyPaint Development Team. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or """Modes for mo...
player
queue
# 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...
Http
ClusterPrinterConfigurationMaterial
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import Optional from cura.PrinterOutput.Models.MaterialOutputModel import MaterialOutputModel from UM.Settings.ContainerRegistry import ContainerRegistry from ..BaseModel import BaseModel class ClusterPrinte...
aliceVision
Split360Images
__version__ = "3.0" from meshroom.core import desc class Split360InputNodeSize(desc.DynamicNodeSize): """ The Split360Images will increase the amount of views in the SfMData. This class converts the number of input views into the number of split output views. """ def computeSize(self, node): ...
plugins
cbsnews
""" $description 24-hour live-streaming world news channel, based in the United States of America. $url cbsnews.com $type live $metadata id $metadata title """ import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.plugin.api import validate from streamlink.stream.hls import HLSStream @plugin...
cura
PreviewPass
# Copyright (c) 2021 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING, List, Optional, cast from cura.Scene.CuraSceneNode import CuraSceneNode from UM.Application import Application from UM.Logger import Logger from UM.Resources import Resources from UM.Scene...
app
test_utilities
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022-2023 FreeCAD Project Association * # * ...
OAuth2
LocalAuthorizationServer
# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import sys import threading from typing import TYPE_CHECKING, Any, Callable, Optional from UM.Logger import Logger got_server_type = False try: from cura.OAuth2.AuthorizationRequestHandler import AuthorizationRequestHa...
src
paths
""" Path related functions """ import logging import os import re import sys from datetime import datetime from shutil import move logger = logging.getLogger("default") # When using py2exe or py2app, the variable frozen is added to the sys # namespace. This can be used to setup a different code path for # binary dis...
src
build_osx
"""Building osx.""" import os from glob import glob from PyQt4 import QtCore from setuptools import setup name = "Bitmessage" version = os.getenv("PYBITMESSAGEVERSION", "custom") mainscript = ["bitmessagemain.py"] DATA_FILES = [ ("", ["sslkeys", "images", "default.ini"]), ("sql", glob("sql/*.sql")), ("bi...
formats
apev2
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2006-2009, 2011 Lukáš Lalinský # Copyright (C) 2009-2011, 2018-2021, 2023 Philipp Wolfer # Copyright (C) 2011-2014 Wieland Hoffmann # Copyright (C) 2012-2013 Michael Wiencek # Copyright (C) 2013 Calvin Walton # Copyright (C) 20...
Draft
WorkingPlane
# *************************************************************************** # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2023 FreeCAD Project Association * # * * # * Th...
server
views
__author__ = "Gina Häußge <osd@foosel.net>" __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 base64 import datetime import logging import os import re from collections i...
fenics
fenics_tools
# *************************************************************************** # * Copyright (c) 2017 Johannes Hartung <j.hartung@gmx.net> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
frescobaldi-app
filecache
# 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 ...
components
misccommands
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later # To allow count being documented # pylint: disable=differing-param-doc """Various commands.""" import functools import logging import os import pathlib import signal from typing import Callab...
classes
enumerationpropertypages
from gaphor import UML from gaphor.core.format import format from gaphor.diagram.propertypages import ( PropertyPageBase, PropertyPages, help_link, on_text_cell_edited, unsubscribe_all_on_destroy, ) from gaphor.transaction import transactional from gaphor.UML.classes.classespropertypages import ( ...
devtools
dom
# 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: DOM from __future__ import annotations import enum # noqa import typing from dataclasses import dataclass # noqa ...
jobstores
mongodb
from __future__ import absolute_import import warnings from apscheduler.job import Job from apscheduler.jobstores.base import BaseJobStore, ConflictingIdError, JobLookupError from apscheduler.util import ( datetime_to_utc_timestamp, maybe_ref, utc_timestamp_to_datetime, ) try: import cPickle as pickl...
util
cdrom
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2004 Robert Kaye # Copyright (C) 2007 Lukáš Lalinský # Copyright (C) 2008 Will # Copyright (C) 2008, 2018-2021 Philipp Wolfer # Copyright (C) 2009 david # Copyright (C) 2013 Johannes Dewender # Copyright (C) 2013 Sebastian Rama...
dialogs
feedbackdialog
from __future__ import annotations import json import os import platform import sys import time from typing import TYPE_CHECKING, Any, Optional from PyQt5 import uic from PyQt5.QtWidgets import QAction, QDialog, QMessageBox from tribler.core.components.reporter.reported_error import ReportedError from tribler.core.se...
hogql
errors
from typing import TYPE_CHECKING, Optional if TYPE_CHECKING: from .ast import Expr class HogQLException(Exception): """Base exception for HogQL. These are exposed to the user.""" start: Optional[int] end: Optional[int] def __init__( self, message: str, *, start: ...
migrations
0046_optional_normative_structmap
from django.db import migrations from main.models import Job # Can't use apps.get_model for this model as we need to access class attributes def data_migration(apps, schema_editor): """Workflow migrations making METS normative structMap optional to include. Changes workflow, adding the choice as to whether ...
feminout
importFenicsMesh
# *************************************************************************** # * Copyright (c) 2017-2023 Johannes Hartung <j.hartung@gmx.net> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
pyaes
aes
# The MIT License (MIT) # # Copyright (c) 2014 Richard Moore # # 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, mod...
downloaders
FastixRu
# -*- coding: utf-8 -*- import json from ..base.multi_downloader import MultiDownloader class FastixRu(MultiDownloader): __name__ = "FastixRu" __type__ = "downloader" __version__ = "0.22" __status__ = "testing" __pattern__ = r"http://(?:www\.)?fastix\.(ru|it)/file/\w{24}" __config__ = [ ...
subscription-strategy
free_public_beta_subscription_strategy
from apps.email.models import EmailMessage from django.conf import settings from django.utils import timezone from .base_subsription_strategy import BaseSubscriptionStrategy class FreePublicBetaSubscriptionStrategy(BaseSubscriptionStrategy): """ This is subscription for beta inside grafana. This subscrip...
AddonManager
addonmanager_connection_checker
# SPDX-License-Identifier: LGPL-2.1-or-later # *************************************************************************** # * * # * Copyright (c) 2022 FreeCAD Project Association * # * ...
utils
category_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...
extractor
mailru
# coding: utf-8 from __future__ import unicode_literals import itertools import json import re from ..compat import compat_urllib_parse_unquote from ..utils import int_or_none, parse_duration, remove_end, try_get from .common import InfoExtractor class MailRuIE(InfoExtractor): IE_NAME = "mailru" IE_DESC = "...
tasks
maintenance
from common.custom_celery_tasks import shared_dedicated_queue_retry_task from common.insight_log import MaintenanceEvent, write_maintenance_insight_log from django.conf import settings from django.db import transaction from django.db.models import ExpressionWrapper, F, fields from django.utils import timezone from .ta...
contrib
ntlmpool
""" NTLM authenticating pool, contributed by erikcederstran Issue #10, see: http://code.google.com/p/urllib3/issues/detail?id=10 """ try: from http.client import HTTPSConnection except ImportError: from httplib import HTTPSConnection from logging import getLogger from ntlm import ntlm from urllib3 import HT...