section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
events
notify
# Copyright (c) 2010 Felix Krull <f_krull@gmx.de> # 2011-2013 Christoph Reiter <reiter.christoph@gmail.com> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of th...
lib
bindpid
#!/usr/bin/env python """Bind PID. Command-line utility and module for requesting PID-binding against a Handle.net server. This module contains functionality for requesting PIDs from a Handle server and requesting that the created PID resolve to a specified URL. It makes Archivematica-specific assumptions and also all...
PyObjCTest
test_objc
from __future__ import unicode_literals import os import sys import objc from PyObjCTest.testbndl import PyObjC_TestClass4 from PyObjCTools.TestSupport import * from . import fnd as Foundation from .fnd import NSArray, NSAttributedString, NSObject class TestConstants(TestCase): def testBooleans(self): ...
graphs
diaperchange_amounts
# -*- coding: utf-8 -*- import plotly.graph_objs as go import plotly.offline as plotly from django.utils import timezone from django.utils.translation import gettext as _ from reports import utils def diaperchange_amounts(instances): """ Create a graph showing daily diaper change amounts over time. :param...
TDTest
TDPyTest
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # basic test script for TechDraw Py functions migrated from Drawing import os import FreeCAD import Measure import Part import TechDraw def TDPyTest(): path = os.path.dirname(os.path.abspath(__file__)) print("TDPy path: " + path) FreeCAD.newDocument("TDP...
command
mblookup
import re from whipper.command.basecommand import BaseCommand from whipper.common.mbngs import getReleaseMetadata, musicbrainz class MBLookup(BaseCommand): summary = "lookup MusicBrainz entry" description = """Look up either a MusicBrainz Disc ID or Release ID and output information. You can get the MusicBr...
migrations
0315_notebook
# Generated by Django 3.2.16 on 2023-05-24 11:28 import django.db.models.deletion import django.utils.timezone import posthog.models.utils import posthog.utils from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "03...
engines
duckduckgo_images
# SPDX-License-Identifier: AGPL-3.0-or-later """ DuckDuckGo (Images) """ from json import loads from urllib.parse import urlencode from searx.engines.duckduckgo import ( # NOQA # pylint: disable=unused-import _fetch_supported_languages, get_region_code, supported_languages_url, ) from searx.exceptions i...
caching
insights_api
import zoneinfo from datetime import datetime, timedelta from math import ceil from time import sleep from typing import Optional, Tuple, Union from posthog.caching.calculate_results import ( CLICKHOUSE_MAX_EXECUTION_TIME, calculate_cache_key, ) from posthog.caching.insight_caching_state import InsightCachingS...
extractor
fc2
# coding: utf-8 from __future__ import unicode_literals import hashlib import re from ..compat import compat_parse_qs, compat_urllib_request, compat_urlparse from ..utils import ExtractorError, sanitized_Request, urlencode_postdata from .common import InfoExtractor class FC2IE(InfoExtractor): _VALID_URL = r"^(?...
blocks
qa_block_behavior
#!/usr/bin/env python # # Copyright 2016 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import blocks, gr, gr_unittest class test_block_behavior(gr_unittest.TestCase): def setUp(self): self.tb = gr.top_block() def te...
misc
sessions
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Management of sessions - saved tabs/windows.""" import itertools import os import os.path import pathlib import shutil import urllib from typing import Any, Iterable, MutableMapping, Mutable...
TableModel
TableModel
"""TableModel.py -- Minimal example showing how to use an NSTableView. To build the demo program, run this line in Terminal.app: $ python setup.py py2app -A This creates a directory "dist" containing TableModel.app. (The -A option causes the files to be symlinked to the .app bundle instead of copied. This means ...
ui
ui_options_releases
# -*- 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_ReleasesOptionsPage(object): def setupUi(self, ReleasesOptionsPage): ReleasesOptionsPage.setObjectName("ReleasesOptionsPage") Releas...
lastfmlove
lastfmlove_preferences
# Copyright (C) 2011 Mathias Brodala # # 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...
migrations
0015_alter_settings_timezone
# Generated by Django 3.2 on 2021-06-08 03:25 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("babybuddy", "0014_settings_hide_empty"), ] operations = [ migrations.AlterField( model_name="settings", name="timezone"...
unihandecode
vncodepoints
# -*- coding: utf-8 -*- __license__ = "GPL 3" __copyright__ = "2010 Hiroshi Miura <miurahr@linux.com>" __docformat__ = "restructuredtext en" """ Unicode code point dictionary. Based on Unicode.org Unihan database. """ CODEPOINTS = { "x34": [ "Qiu ", "Tian ", "", "", "Kua "...
common
utils
import functools import html import os import random import re import time from functools import reduce import factory import markdown2 from bs4 import BeautifulSoup from celery.utils.log import get_task_logger from celery.utils.time import get_exponential_backoff_interval from django.utils.html import urlize logger ...
filters
base_filter
import inspect import json from typing import TYPE_CHECKING, Any, Dict, Optional from posthog.constants import PROPERTIES from posthog.hogql.context import HogQLContext from posthog.models.utils import sane_repr from posthog.utils import encode_get_request_params from rest_framework import request from rest_framework....
mail
mail_settings
class MailSettings(object): """A collection of mail settings that specify how to handle this email.""" def __init__(self): """Create an empty MailSettings.""" self._bcc_settings = None self._bypass_list_management = None self._footer_settings = None self._sandbox_mode = ...
lector
library
# This file is a part of Lector, a Qt based ebook reader # Copyright (C) 2017-2019 BasioMeusPuga # 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 o...
base
getter
# ============================================================================= # 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 ...
classes
metrics
""" @file @brief This file sends anonymous application metrics and errors over HTTP @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-sour...
stargate
audio_item
from sglib.lib import * from sglib.lib.util import * from sglib.math import clip_value class SgAudioItem: def __init__( self, a_uid, # The audio pool uid a_sample_start=0.0, a_sample_end=1000.0, a_start_bar=0, a_start_beat=0.0, a_timestretch_mode=7, ...
trends
trends_event_query
from typing import Any, Dict, Tuple from posthog.models.property.util import get_property_string_expr from posthog.queries.trends.trends_event_query_base import TrendsEventQueryBase from posthog.utils import PersonOnEventsMode class TrendsEventQuery(TrendsEventQueryBase): def get_query(self) -> Tuple[str, Dict[s...
migrations
0007_archiveresult
# Generated by Django 3.0.8 on 2020-11-04 12:25 import json from pathlib import Path import django.db.models.deletion from config import CONFIG from django.db import migrations, models from index.json import to_json try: JSONField = models.JSONField except AttributeError: import jsonfield JSONField = js...
Op
Drilling
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2014 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2020 Schildkroet * # * ...
mylar
rsscheckit
# 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 it wi...
ocrolib
psegutils
from __future__ import print_function import matplotlib.patches as mpatches import matplotlib.pyplot as plt import morph import numpy as np import sl from scipy.ndimage import filters, interpolation from toplevel import * def B(a): if a.dtype == np.dtype("B"): return a return np.array(a, "B") class...
chardet
chardetect
#!/usr/bin/env python """ Script which takes one or more file paths and reports on their detected encodings Example:: % chardetect somefile someotherfile somefile: windows-1252 with confidence 0.5 someotherfile: ascii with confidence 1.0 If no paths are provided, it takes its input from stdin. """ from...
gui
canvasPanel
# ============================================================================= # 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 ...
path
linux
import os from sglib.constants import MAJOR_VERSION def _is_self_contained(): dirname = os.path.dirname( os.path.abspath(__file__), ) scripts = os.path.join( dirname, "..", "..", "..", "scripts", ) return os.path.isdir(scripts) if _is_self_contain...
plugins
leafonly
"""A plugin that issues errors when amounts are posted to non-leaf accounts, that is, accounts with child accounts. This is an extra constraint that you may want to apply optionally. If you install this plugin, it will issue errors for all accounts that have postings to non-leaf accounts. Some users may want to disall...
keyinput
modeman
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Mode manager (per window) which handles the current keyboard mode.""" import dataclasses import functools from typing import Callable, Mapping, MutableMapping, Set, Union, cast from qutebro...
models
alert_group_log_record
import json import logging import typing import humanize from apps.alerts import tasks from apps.alerts.utils import render_relative_timeline from apps.slack.slack_formatter import SlackFormatter from common.utils import clean_markup from django.db import models from django.db.models import JSONField from django.db.mo...
ui
ui_entry
# # Copyright (C) 2007 Andrew Resch <andrewresch@gmail.com> # Copyright (C) 2010 Pedro Algarvio <pedro@algarvio.me> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with the OpenSSL library. # See LIC...
views
wizard
from __future__ import annotations import csv import io import json from os.path import splitext from typing import IO, Any, Sequence from abilian.core.extensions import db from abilian.core.models.subjects import User from abilian.core.signals import activity from abilian.core.util import unwrap from abilian.i18n im...
builtinStatsViews
resistancesViewFull
# ============================================================================= # 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 ...
database
table_raw
# neubot/database/table_raw.py # # Copyright (c) 2011-2012 # Nexa Center for Internet & Society, Politecnico di Torino (DAUIN) # and Simone Basso <bassosimone@gmail.com> # # Copyright (c) 2011 Alessio Palmero Aprosio <alessio@apnetwork.it>, # Universita` degli Studi di Milano # # This file is part of Neubot <...
archival-storage
atom
# This file is part of Archivematica. # # Copyright 2010-2016 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 ...
resources
labels
# -*- 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...
managers
user
# This file is part of Supysonic. # Supysonic is a Python implementation of the Subsonic server API. # # Copyright (C) 2013-2022 Alban 'spl0k' Féron # 2017 Óscar García Amor # # Distributed under terms of the GNU AGPLv3 license. import hashlib import random import string import uuid from ..db impor...
clientScripts
bag_with_empty_directories
#!/usr/bin/env python # 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, ei...
util
iso639
# Copyright 2015 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 .i18n import register_translat...
protos
anchor_generator_pb2
# Generated by the protocol buffer compiler. DO NOT EDIT! # source: object_detection/protos/anchor_generator.proto import sys _b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pb2 from google.p...
extractor
usatoday
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str from ..utils import ( ExtractorError, get_element_by_attribute, parse_duration, try_get, update_url_query, ) from .common import InfoExtractor class USATodayIE(InfoExtractor): _VALID_URL = r"https?://(?:ww...
commands
start_temporal_worker
import asyncio import logging from temporalio import workflow with workflow.unsafe.imports_passed_through(): from django.core.management.base import BaseCommand from django.conf import settings from posthog.temporal.worker import start_worker class Command(BaseCommand): help = "Start Temporal Python Dj...
webview-backend
webkit
""" @file @brief WebKit backend for TimelineWebView @author Jonathan Thomas <jonathan@openshot.org> @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...
console
eventlog
import time import deluge.component as component from deluge.decorators import maybe_coroutine from deluge.ui.client import client from deluge.ui.console.utils import colors class EventLog(component.Component): """ Prints out certain events as they are received from the core. """ def __init__(self):...
core
position_test
""" Unit tests for the Position class. """ __copyright__ = "Copyright (C) 2014-2017 Martin Blais" __license__ = "GNU GPLv2" import copy import datetime import random import unittest from datetime import date from beancount.core import convert, display_context, position from beancount.core.amount import A, Amount fro...
Test
TestBootstrapper
import hashlib import os import pytest from Bootstrapper import BootstrapperPlugin from Bootstrapper.BootstrapperDb import BootstrapperDb from Crypt import CryptRsa from Peer import Peer from util import helper @pytest.fixture() def bootstrapper_db(request): BootstrapperPlugin.db.close() BootstrapperPlugin.d...
src
Config
import argparse import configparser import locale import logging import logging.handlers import os import re import stat import sys import time class Config(object): def __init__(self, argv): self.version = "0.7.2" self.rev = 4555 self.argv = argv self.action = None self.te...
gamedata
queries
# =============================================================================== # Copyright (C) 2010 Diego Duclos # # This file is part of eos. # # eos is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, ...
machine
procat
# Copyright (c) 2016 Ted Morin # See LICENSE.txt for details. """Thread-based monitoring of a ProCAT stenotype machine.""" import binascii from plover import log from plover.machine.base import SerialStenotypeBase # ProCAT machines send 4 bytes per stroke, with the last byte only consisting of # FF. So we need only...
sitemaps
generate
# 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, ...
migrations
0179_add_group_type_mapping
# Generated by Django 3.2.5 on 2021-10-13 07:00 import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0178_rename_dashboard_item_to_insight"), ] operations = [ migrations.CreateModel( nam...
extractor
discovery
from __future__ import unicode_literals import random import re import string from ..compat import compat_HTTPError, compat_urllib_parse_unquote from ..utils import ExtractorError from .discoverygo import DiscoveryGoBaseIE class DiscoveryIE(DiscoveryGoBaseIE): _VALID_URL = r"""(?x)https?:// (?P<site> ...
extractor
playplustv
# coding: utf-8 from __future__ import unicode_literals import json import re from ..compat import compat_HTTPError from ..utils import ExtractorError, PUTRequest, clean_html, int_or_none from .common import InfoExtractor class PlayPlusTVIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?playplus\.(?:com|tv)/...
SolidView
SolidView
# Copyright (c) 2021 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import math import os.path import time import numpy as np from cura import XRayPass from cura.Settings.ExtruderManager import ExtruderManager from PyQt6.QtCore import QSize, QUrl from PyQt6.QtGui import QDesktopServices, Q...
OLD
distance
################################################################ ### Native code neural network with backpropagation training. ################################################################ from __future__ import with_statement __all__ = "MLP".split() import multiprocessing from native import * from numpy import ...
utils
misc
# -*- coding: utf-8 -*- import random import string import js2py js2py.disable_pyimport() def random_string(length): seq = string.ascii_letters + string.digits + string.punctuation return "".join(random.choice(seq) for _ in range(length)) def is_plural(value): try: n = abs(float(value)) ...
dbcore
types
# This file is part of beets. # Copyright 2016, Adrian Sampson. # # 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, ...
resourceproxy
blueprint
# encoding: utf-8 from logging import getLogger from urllib.parse import urlsplit import ckan.logic as logic import requests from ckan.common import _, config from ckan.plugins.toolkit import abort, c, get_action from ckan.types import Context, DataDict from flask import Blueprint, make_response log = getLogger(__na...
event-query
event_query
from abc import ABCMeta, abstractmethod from typing import Any, Dict, List, Optional, Tuple, Union from posthog.clickhouse.materialized_columns import ColumnName from posthog.models import Cohort, Filter, Property from posthog.models.cohort.util import is_precalculated_query from posthog.models.filters import AnyFilte...
models
modaction
# 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, ...
playlists
menu
# Copyright 2014-2021 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. from typing import Optional from ...
audioinfo
id3
from collections import defaultdict from copy import deepcopy from functools import partial import mutagen.id3 as id3 import mutagen.mp3 try: from mutagen.aiff import _IFFID3, AIFF except ImportError: AIFF = None try: from mutagen.dsf import _DSFID3, DSF except ImportError: DSF = None from mutagen.i...
phone-notifications
phone_backend
import logging from typing import Optional import requests from apps.alerts.incident_appearance.renderers.phone_call_renderer import ( AlertGroupPhoneCallRenderer, ) from apps.alerts.incident_appearance.renderers.sms_renderer import AlertGroupSmsRenderer from apps.alerts.signals import user_notification_action_tri...
remote-query-community
settings
from tribler.core.config.tribler_config_section import TriblerConfigSection class RemoteQueryCommunitySettings(TriblerConfigSection): minimal_blob_size: int = 200 maximum_payload_size: int = 1300 max_entries: int = maximum_payload_size // minimal_blob_size # The next option is currently used by GigaC...
Cloud
CloudOutputDevice
# Copyright (c) 2022 UltiMaker # Cura is released under the terms of the LGPLv3 or higher. import os from time import time from typing import List, Optional, cast from cura.CuraApplication import CuraApplication from cura.PrinterOutput.NetworkedPrinterOutputDevice import AuthState from cura.PrinterOutput.PrinterOut...
squeezebox
base
# Copyright 2014 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import os from gi.repository import G...
webengine
webenginetab
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Wrapper over a QWebEngineView.""" import dataclasses import functools import html as html_utils import math import re import struct from typing import Optional, Union, cast from qutebrowser...
fft
logpwrfft
# # Copyright 2008 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import math import sys from gnuradio import blocks, gr from . import fft_python as fft from . import fft_vcc, fft_vfc from .fft_python import window try: from gnuradio import fi...
gui
ssoLogin
import webbrowser import gui.globalEvents as GE import gui.mainFrame import wx _t = wx.GetTranslation class SsoLogin(wx.Dialog): def __init__(self): mainFrame = gui.mainFrame.MainFrame.getInstance() super().__init__( mainFrame, id=wx.ID_ANY, title=_t("SSO Log...
cmd
index
from __future__ import absolute_import, print_function import errno import os import stat import sys import time from binascii import hexlify from bup import git, hlinkdb, index, metadata, options from bup.compat import argv_bytes from bup.drecurse import recursive_dirlist from bup.hashsplit import GIT_MODE_FILE from...
gui
task_efield
# -------------------------------------------------------------------------- # 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...
FieldGraph
CGraphController
from CGraphModel import * from CGraphView import * from fieldMath import * from Foundation import * from PyObjCTools import AppHelper # ____________________________________________________________ class CGraphController(NSObject): graphModel = objc.IBOutlet() graphView = objc.IBOutlet() fieldNormalizeChec...
picard
setup
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2006-2008, 2011-2014, 2017 Lukáš Lalinský # Copyright (C) 2007 Santiago M. Mola # Copyright (C) 2008 Robert Kaye # Copyright (C) 2008-2009, 2018-2022 Philipp Wolfer # Copyright (C) 2009 Carlin Mangar # Co...
draftguitools
gui_arrays
# *************************************************************************** # * (c) 2020 Eliud Cabrera Castillo <e.cabrera-castillo@tum.de> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
mylar
logger
# 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...
extensions
rm_ogg_cover
# -*- coding: utf-8 -*- #### # 01/2011 Bernd Schlapsi <brot@gmx.info> # # This script 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. #...
extractor
hungama
# coding: utf-8 from __future__ import unicode_literals from ..utils import int_or_none, urlencode_postdata from .common import InfoExtractor class HungamaIE(InfoExtractor): _VALID_URL = r"""(?x) https?:// (?:www\.)?hungama\.com/ (?: ...
Arranging
ArrangeObjectsJob
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import List from cura.Arranging.GridArrange import GridArrange from cura.Arranging.Nest2DArrange import Nest2DArrange from UM.Application import Application from UM.i18n import i18nCatalog from UM.Job import Job...
gadgets
wordboundary
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2013 - 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 ...
xl
collection
# 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...
xl
logger_setup
# Copyright (C) 2008-2010 Adam Olsen # Copyright (C) 2015 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 pr...
apps
uhd_siggen_base
#!/usr/bin/env python3 # # Copyright 2008,2009,2011,2012,2015 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # """ Provide a base flow graph for USRP signal generators. """ import math import sys try: from uhd_app import UHDApp except ImportError:...
extractor
dhm
from __future__ import unicode_literals from ..utils import parse_duration from .common import InfoExtractor class DHMIE(InfoExtractor): IE_DESC = "Filmarchiv - Deutsches Historisches Museum" _VALID_URL = r"https?://(?:www\.)?dhm\.de/filmarchiv/(?:[^/]+/)+(?P<id>[^/]+)" _TESTS = [ { ...
Post
Command
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2015 Dan Falck <ddfalck@gmail.com> * # * * # * This program is free software; you can redistribute it a...
compat
fake_fastnumbers
# -*- coding: utf-8 -*- """\ This module is intended to replicate some of the functionality from the fastnumbers module in the event that module is not installed. """ from __future__ import absolute_import, division, print_function, unicode_literals # Std. lib imports. import unicodedata from natsort.compat.py23 impo...
downloaders
ZeveraCom
# -*- coding: utf-8 -*- import json from ..base.multi_downloader import MultiDownloader class ZeveraCom(MultiDownloader): __name__ = "ZeveraCom" __type__ = "downloader" __version__ = "0.39" __status__ = "testing" __pattern__ = r"https?://(?:www\.)zevera\.com/(getFiles\.ashx|Members/download\.as...
events
write_cover
# Copyright 2005 Joe Wreschnig # 2018 Nick Boultbee # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import ...
util
helper
import base64 import collections import json import logging import os import re import socket import stat import struct import time import gevent from Config import config def atomicWrite(dest, content, mode="wb"): try: with open(dest + "-tmpnew", mode) as f: f.write(content) f.fl...
core
box_list_ops_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...
ui
ui_multi_locale_selector
# -*- 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_MultiLocaleSelector(object): def setupUi(self, MultiLocaleSelector): MultiLocaleSelector.setObjectName("MultiLocaleSelector") MultiL...
beetsplug
gmusic
# This file is part of beets. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify, merge, publish, # distribu...
extractor
veoh
from __future__ import unicode_literals from ..utils import int_or_none, parse_duration, qualities from .common import InfoExtractor class VeohIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?veoh\.com/(?:watch|embed|iphone/#_Watch)/(?P<id>(?:v|e|yapi-)[\da-zA-Z]+)" _TESTS = [ { "url...
QT
PantallaTabVMarkers
import codecs import copy import os from Code import TabVisual, Util, VarGen from Code.QT import ( Colocacion, Columnas, Controles, FormLayout, Grid, Iconos, QTUtil, QTUtil2, QTVarios, Tablero, ) from PyQt4 import QtCore, QtGui class WTV_Marker(QtGui.QDialog): def __init__...
pyinstaller
portable_hook
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2019, 2021 Philipp Wolfer # Copyright (C) 2020 Laurent Monin # # 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 Fo...
Plugin
PluginManager
import importlib import json import logging import os import shutil import sys import time from collections import defaultdict import plugins from Config import config from Debug import Debug class PluginManager: def __init__(self): self.log = logging.getLogger("PluginManager") self.path_plugins ...