section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
events
radioadmute
# Copyright 2011-2013 Christoph Reiter # 2016 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 vers...
downloaders
FilerNet
# -*- coding: utf-8 -*- import os import re from ..anticaptchas.ReCaptcha import ReCaptcha from ..base.simple_downloader import SimpleDownloader class FilerNet(SimpleDownloader): __name__ = "FilerNet" __type__ = "downloader" __version__ = "0.31" __status__ = "testing" __pattern__ = r"https?://(?...
extractor
cartoonnetwork
# coding: utf-8 from __future__ import unicode_literals from ..utils import int_or_none from .turner import TurnerBaseIE class CartoonNetworkIE(TurnerBaseIE): _VALID_URL = r"https?://(?:www\.)?cartoonnetwork\.com/video/(?:[^/]+/)+(?P<id>[^/?#]+)-(?:clip|episode)\.html" _TEST = { "url": "https://www.c...
extractors
miaopai
#!/usr/bin/env python __all__ = ["miaopai_download"] import random import string import urllib.error import urllib.parse from ..common import * from ..util import fs fake_headers_mobile = { "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Charset": "UTF-8,*;q=0.5", "A...
views
invites
"""Not used!""" from __future__ import annotations from abilian.core.extensions import db, mail from flask import flash, redirect, render_template, request, url_for from flask_babel import gettext as _ from flask_login import current_user from flask_mail import Message as Email from sqlalchemy.schema import Column fr...
parsers
epub
# 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...
senf
_environ
# -*- coding: utf-8 -*- # Copyright 2016 Christoph Reiter # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify...
PyObjCTest
test_nshost
from Foundation import NSHost from PyObjCTest.testhelper import PyObjC_TestClass3 from PyObjCTools.TestSupport import * class TestNSHost(TestCase): def testCreation(self): # # This gives an exception on GNUstep: # NSRecursiveLockException - unlock: failed to unlock mutex # ...
states
vertexconnect
"""Connection between two state machine vertices (state, pseudostate) using transition. To register connectors implemented in this module, it is imported in gaphor.adapter package. """ from gaphor import UML from gaphor.diagram.connectors import ( Connector, DirectionalRelationshipConnect, RelationshipCon...
-sonar
analyse
""" This script takes a Jenkins workspace and automatically fetches the Sonar Cloud task ID from it. Next, it queries the SonarCloud API to get the status of the task. When the task is done, it fetches the status of the quality gate from the server and exits with a non-zero exit code if the quality gate has failed. """...
deluge-client
client
import logging import socket import ssl import struct import warnings import zlib from .rencode import dumps, loads RPC_RESPONSE = 1 RPC_ERROR = 2 RPC_EVENT = 3 MESSAGE_HEADER_SIZE = 5 READ_SIZE = 10 logger = logging.getLogger(__name__) class DelugeClientException(Exception): """Base exception for all deluge ...
clickhouse
plugin_log_entries
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_PLUGIN_LOG_ENTRIES from posthog.settings import CLICKHOUSE_CLUSTER, CLICKHOUSE_DATABASE PLUGIN_LOG_ENTRIES_TABLE = "plugin_lo...
nfoview
errors
# -*- 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...
key
key_component
from ipv8.keyvault.private.libnaclkey import LibNaCLSK from tribler.core.components.component import Component from tribler.core.config.tribler_config import TriblerConfig from tribler.core.utilities.path_util import Path class KeyComponent(Component): # This is the primary key that is used by default, e.g., in I...
components
old_news_import
import glob import logging import os from typing import Any, Dict, List, Text import pandas as pd from dag_factory.components.utils import get_all_csv_paths from pymongo import MongoClient from tfx import types from tfx.components.base import base_component, base_executor, executor_spec from tfx.types import standard_...
sitemaps
data
# 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, ...
dialogs
paletteinfo
# -*- coding: utf-8 -*- # # Copyright (C) 2013 by Ihor E. Novikov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version....
comictaggerlib
volumeselectionwindow
"""A PyQT4 dialog to select specific series/volume from list""" # Copyright 2012-2014 Anthony Beville # 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...
core
base
# Copyright 2008, 2009, 2015, 2016 Free Software Foundation, Inc. # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-2.0-or-later # import weakref from .utils.descriptors import lazy_property class Element(object): def __init__(self, parent=None): self._parent = weakref.ref(parent) if par...
PartDesignTests
TestDatum
# *************************************************************************** # * Copyright (c) 2011 Juergen Riegel <FreeCAD@juergen-riegel.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
saveddata
override
# =============================================================================== # 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, ...
draftobjects
shape2dview
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
friture
plotFilledCurve
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2021 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...
beetsplug
bareasc
# This file is part of beets. # Copyright 2016, Philippe Mongeau. # Copyright 2021, Graham R. Cobb. # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and ascociated documentation files (the # "Software"), to deal in the Software without restriction, including # without ...
migrations
0057_7zip_no_compression
"""Migration to add a 7-zip method to the list of Archivematica AIP 7-zip methods that does not use compression. 7-zip copy mode. """ from django.db import migrations choice_no_compression_uuid = "e3906da0-41fb-4cb8-a598-6c73981b63e9" def get_chain_choice_dict(apps): """Retrieve Chain Choice Replacement Dict mod...
controllers
policies
# 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, ...
forms
config
from CTFd.constants.config import ( AccountVisibilityTypes, ChallengeVisibilityTypes, RegistrationVisibilityTypes, ScoreVisibilityTypes, ) from CTFd.forms import BaseForm from CTFd.forms.fields import SubmitField from CTFd.utils.csv import get_dumpable_tables from wtforms import BooleanField, FileField,...
game
World
##################################################################### # -*- coding: utf-8 -*- # # # # Frets on Fire X (FoFiX) # # Copyright (C) 2009 FoFiX Team ...
lib
palette
# This file is part of MyPaint. # Copyright (C) 2013-2018 by the MyPaint Development Team # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option)...
settings
dynamic_settings
from posthog.settings.utils import get_from_env, str_to_bool CONSTANCE_DATABASE_PREFIX = "constance:posthog:" # Warning: Dynamically updating these settings should only be done through the API. # CONSTANCE_CONFIG: https://django-constance.readthedocs.io/en/latest/ CONSTANCE_CONFIG = { "RECORDINGS_TTL_WEEKS": ( ...
draftviewproviders
view_wpproxy
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
qtui
settingswidget
# Copyright (C) 2011 Chris Dekter # Copyright (C) 2018 Thomas Hess <thomas.hess@udo.edu> # 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) a...
controllers
redirect
# 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, ...
widgets
fields
# # Copyright (C) 2011 Nick Lanham <nick@afternight.org> # Copyright (C) 2008-2009 Ido Abramovich <ido.deluge@gmail.com> # Copyright (C) 2009 Andrew Resch <andrewresch@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to li...
fetcher
factory
""" Kibitzr supports a number of fetchers and the list can be extended by plugins. In the nutshell each fetcher takes conf and returns a tuple: ok, content. where ok is boolean meaning success, and content is a Unicode string with fetch result. Each fetcher has a promoter. Promoter knows if the fetcher is applicable ...
parser
parser
"""Beancount syntax parser. IMPORTANT: The parser (and its grammar builder) produces "incomplete" Transaction objects. This means that some of the data can be found missing from the output of the parser and some of the data types vary slightly. Missing components are replaced not by None, but by a special constant 'NA...
trellis
qa_trellis
#!/usr/bin/env python # # Copyright 2004,2010,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import math import os from gnuradio import analog, blocks, digital, gr, gr_unittest, trellis fsm_args = { "awgn1o2_4": [ 2, 4, ...
sgui
preflight
""" Preflight checks """ import subprocess from sglib.hardware import rpi from sglib.lib.translate import _ from sglib.lib.util import IS_MACOS from sglib.log import LOG from sgui.sgqt import QMessageBox __all__ = ["preflight"] RPI4_WARNING = """\ Detected a Raspberry Pi with suboptimal settings. " Please see h...
QT
WBG_Games
import os from Code import Analisis, AperturasStd, DBgames, Partida, TrListas, Util from Code.QT import ( Colocacion, Columnas, Controles, Grid, Iconos, PantallaAnalisisParam, PantallaBooks, PantallaPGN, PantallaPlayPGN, PantallaSavePGN, PantallaSolo, QTUtil2, QTVari...
extractor
ntvde
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_urlparse from ..utils import int_or_none, js_to_json, parse_duration from .common import InfoExtractor class NTVDeIE(InfoExtractor): IE_NAME = "n-tv.de" _VALID_URL = r"https?://(?:www\.)?n-tv\.de/mediathek/videos/[...
grammar
HogQLParserVisitor
# Generated from HogQLParser.g4 by ANTLR 4.13.0 from antlr4 import * if "." in __name__: from .HogQLParser import HogQLParser else: from HogQLParser import HogQLParser # This class defines a complete generic visitor for a parse tree produced by HogQLParser. class HogQLParserVisitor(ParseTreeVisitor): # ...
scripts
bench
# # Quru Image Server # # Document: bench.py # Date started: 26 May 2015 # By: Matt Fozard # Purpose: Repeatable load testing / benchmarking tool # Requires: # Copyright: Quru Ltd (www.quru.com) # Licence: # # This program is free software: you can redistribute it and/or modify # it under...
Code
Gestor60
import os import random import time import LCEngine4 as LCEngine from Code import ControlPosicion, Gestor, Util from Code.Constantes import * from Code.QT import DatosNueva, QTUtil2 class Control60: def __init__(self, gestor, siJugador): self.db = Util.recuperaVar("./IntFiles/lista60.dkv") mas = ...
autotag
mb
# 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, ...
extractor
cnn
from __future__ import unicode_literals import re from ..utils import url_basename from .common import InfoExtractor from .turner import TurnerBaseIE class CNNIE(TurnerBaseIE): _VALID_URL = r"""(?x)https?://(?:(?P<sub_domain>edition|www|money)\.)?cnn\.com/(?:video/(?:data/.+?|\?)/)?videos?/ (?P<path>.+?...
example-iauthfunctions
plugin_v3
# encoding: utf-8 from __future__ import annotations from typing import Optional, cast import ckan.plugins as plugins import ckan.plugins.toolkit as toolkit from ckan.types import AuthFunction, AuthResult, Context, ContextValidator, DataDict def group_create(context: Context, data_dict: Optional[DataDict] = None) -...
api
useragents
ANDROID = "Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.5938.140 Mobile Safari/537.36" CHROME = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36" CHROME_OS = ( "Mozilla/5.0 (X11; CrOS x86_64 15359.58.0) AppleWebKi...
booster
sideEffectToggleState
import wx from logbook import Logger from service.fit import Fit pyfalog = Logger(__name__) class CalcToggleBoosterSideEffectStateCommand(wx.Command): def __init__(self, fitID, position, effectID, forceState=None): wx.Command.__init__(self, True, "Toggle Booster Side Effect State") self.fitID = f...
blocks
qa_add_mult_v
#!/usr/bin/env python # # Copyright 2004,2007,2010,2012,2013 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_add_mult_v(gr_unittest.TestCase): def setUp(self): self.tb = gr.top_blo...
transformer
plain_text
import logging import traceback import six from kibitzr.bash import execute_bash from kibitzr.conf import settings from kibitzr.stash import LazyStash from kibitzr.storage import PageHistory from .utils import bake_parametrized PYTHON_ERROR = "transform.python must set global variables ok and content" logger = loggi...
core
fields
# -*- coding: utf-8 -*- from django import forms from django.utils.translation import gettext as _ class NapStartMaxTimeField(forms.TimeField): def validate(self, value): from core.models import Sleep if value < Sleep.settings.nap_start_min: raise forms.ValidationError( ...
migrations
0001_initial
# Generated by Django 3.0.3 on 2020-04-30 14:18 import uuid import django.db.models.deletion from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ...
gui
task_slice
# -------------------------------------------------------------------------- # 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...
common
program
# -*- Mode: Python; test-case-name: whipper.test.test_common_program -*- # vi:si:et:sw=4:sts=4:ts=4 # Copyright (C) 2009, 2010, 2011 Thomas Vander Stichele # This file is part of whipper. # # whipper is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publ...
neubot
utils_path
# neubot/utils_path.py # # Copyright (c) 2012-2013 # Nexa Center for Internet & Society, Politecnico di Torino (DAUIN) # and Simone Basso <bassosimone@gmail.com> # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of ...
errorreports
errorreports
from __future__ import annotations import datetime import logging import sys import textwrap import time from types import TracebackType import better_exceptions from exceptiongroup import BaseExceptionGroup from gaphor.abc import ActionProvider from gaphor.action import action from gaphor.core.eventmanager import ev...
aliceVision
Texturing
__version__ = "6.0" import logging from meshroom.core import Version, desc class Texturing(desc.AVCommandLineNode): commandLine = "aliceVision_texturing {allParams}" cpu = desc.Level.INTENSIVE ram = desc.Level.INTENSIVE category = "Dense Reconstruction" documentation = """ This node computes th...
nyaa
dev
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This tool is designed to assist developers run common tasks, such as checking the code for lint issues, auto fixing some lint issues and running tests. It imports modules lazily (as-needed basis), so it runs faster! """ import sys LINT_PATHS = [ "nyaa/", "util...
widgets
scriptdocumentation
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2021 Bob Swift # Copyright (C) 2021-2022 Laurent Monin # Copyright (C) 2021-2022 Philipp Wolfer # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # a...
migrations
0029_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 = [ ("user_management", "0013_alter_organization_acknowledge_remind_timeout"), ("alerts", "0028_drop_alertreceivechannel_r...
CGRotation
Controller
import math from CGImageUtils import * from Cocoa import * class Controller(NSObject): imageView = objc.IBOutlet() scaleYView = objc.IBOutlet() textScaleYView = objc.IBOutlet() _rotation = objc.ivar.float() _scaleX = objc.ivar.float() _scaleY = objc.ivar.float() _translateX = objc.ivar.f...
PyObjCTest
test_ikimageeditpanel
from PyObjCTools.TestSupport import * from Quartz import * class TestIKImageEditPanelHelper(NSObject): def thumbnailWithMaximumSize_(self, sz): return None def hasAdjustMode(self): return 1 def hasEffectsMode(self): return 1 def hasDetailsMode(self): return 1 class...
lib
voting
# 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, ...
accounts
PremiumTo
# -*- coding: utf-8 -*- import json from ..base.multi_account import MultiAccount class PremiumTo(MultiAccount): __name__ = "PremiumTo" __type__ = "account" __version__ = "0.21" __status__ = "testing" __config__ = [ ("mh_mode", "all;listed;unlisted", "Filter downloaders to use", "all"),...
downloaders
UploadrocketNet
# -*- coding: utf-8 -*- import re from ..base.xfs_downloader import XFSDownloader class UploadrocketNet(XFSDownloader): __name__ = "UploadrocketNet" __type__ = "downloader" __version__ = "0.02" __status__ = "testing" __pattern__ = r"http://(?:www\.)?uploadrocket\.net/\w{12}" __config__ = [ ...
extractor
digiteka
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import int_or_none from .common import InfoExtractor class DigitekaIE(InfoExtractor): _VALID_URL = r"""(?x) https?://(?:www\.)?(?:digiteka\.net|ultimedia\.com)/ (?: deliver/ (?P<embed_type> ...
disabled-ZeronameLocal
UiRequestPlugin
import re from Plugin import PluginManager @PluginManager.registerTo("UiRequest") class UiRequestPlugin(object): def __init__(self, *args, **kwargs): from Site import SiteManager self.site_manager = SiteManager.site_manager super(UiRequestPlugin, self).__init__(*args, **kwargs) # Me...
localModule
mutatedRevert
import eos.db import gui.mainFrame import wx from gui import globalEvents as GE from gui.fitCommands.calc.module.localReplace import CalcReplaceLocalModuleCommand from gui.fitCommands.helpers import InternalCommandHistory, ModuleInfo from service.fit import Fit class GuiRevertMutatedLocalModuleCommand(wx.Command): ...
senf
_temp
# -*- coding: utf-8 -*- # Copyright 2016 Christoph Reiter # # Permission is hereby granted, free of charge, to any person obtaining # a copy of this software and associated documentation files (the # "Software"), to deal in the Software without restriction, including # without limitation the rights to use, copy, modify...
clickhouse
table_engines
import uuid from enum import Enum from typing import Optional from django.conf import settings class ReplicationScheme(str, Enum): NOT_SHARDED = "NOT_SHARDED" SHARDED = "SHARDED" REPLICATED = "REPLICATED" # Relevant documentation: # - https://clickhouse.com/docs/en/engines/table-engines/mergetree-famil...
events
visualisations
# Copyright 2017 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 import signal from gi.repos...
equations
elasticity_writer
# *************************************************************************** # * Copyright (c) 2023 Uwe Stöhr <uwestoehr@lyx.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
lib
zookeeper
# 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, ...
activity-logging
activity_log
import dataclasses import json from datetime import datetime from typing import Any, Dict, List, Literal, Optional, Union import structlog from django.core.paginator import Paginator from django.db import models from django.utils import timezone from posthog.models.dashboard import Dashboard from posthog.models.dashbo...
main
common
# neubot/main/common.py # # Copyright (c) 2011 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public...
models
token
# 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, ...
fec
qa_fecapi_ldpc
#!/usr/bin/env python # # Copyright 2014 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import os from _qa_helper import _qa_helper from _qa_helper_async import _qa_helper_async from gnuradio import fec, gr, gr_unittest from gnuradio.fec import ext...
helpers
parseformat
import abc import argparse import base64 import hashlib import json import os import os.path import re import shlex import stat import uuid from binascii import hexlify from collections import Counter, OrderedDict from datetime import datetime, timezone from functools import partial from string import Formatter from ty...
downloaders
CosmoboxOrg
# -*- coding: utf-8 -*- import re from pyload.core.utils import parse from ..base.xfs_downloader import XFSDownloader class CosmoboxOrg(XFSDownloader): __name__ = "CosmoboxOrg" __type__ = "downloader" __version__ = "0.03" __status__ = "testing" __pattern__ = r"https?://cosmobox\.org/\w{12}" ...
src
queues
"""Most of the queues used by bitmessage threads are defined here.""" import threading import time from six.moves import queue try: from multiqueue import MultiQueue except ImportError: from .multiqueue import MultiQueue class ObjectProcessorQueue(queue.Queue): """Special queue class using lock for `.t...
miditool
player
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2011 - 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 ...
PyObjCTest
test_nsobjectcontroller
from AppKit import * from PyObjCTools.TestSupport import * class TestNSObjectController(TestCase): def testMethods(self): self.assertResultIsBOOL(NSObjectController.automaticallyPreparesContent) self.assertArgIsBOOL(NSObjectController.setAutomaticallyPreparesContent_, 0) self.assertResultI...
migrations
0002_events_sample_by
from functools import cached_property from typing import List from django.conf import settings from posthog.async_migrations.definition import ( AsyncMigrationDefinition, AsyncMigrationOperation, AsyncMigrationOperationSQL, ) from posthog.async_migrations.disk_util import analyze_enough_disk_space_free_for...
neubot
backend_mlab
# neubot/backend_mlab.py # # Copyright (c) 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 the...
templatetags
status_display
""" template filters """ from bookwyrm import models from bookwyrm.templatetags.utilities import get_user_identifier from dateutil.relativedelta import relativedelta from django import template from django.contrib.humanize.templatetags.humanize import naturalday, naturaltime from django.template.loader import select_te...
dialogs
docprops
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2015 by Ihor E. Novikov # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later ver...
containers
TORRENT
# -*- coding: utf-8 -*- import os import re import time import urllib.request from pyload.core.utils.convert import to_str from pyload.core.utils.old import safename from ..base.container import BaseContainer class TORRENT(BaseContainer): __name__ = "TORRENT" __type__ = "container" __version__ = "0.05"...
helpers
misc
import io import logging import os import os.path import platform import sys from collections import deque from itertools import islice from ..logger import create_logger logger = create_logger() from .. import __version__ as borg_version from ..constants import ROBJ_FILE_STREAM from . import msgpack def sysinfo()...
utils
metadata
import mimetypes import os import re from datetime import datetime from subprocess import PIPE, Popen from dateutil.parser import parse as parse_date from django.utils.timezone import utc class PhotoMetadata(object): def __init__(self, path): self.data = {} try: # exiftool produces da...
api
users
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2014 The OctoPrint Project - Released under terms of the AGPLv3 License" from flask import redirect, url_for from octoprint.server.api import api # NOTE: The redirects here should rather be 308 PERMA...
fitMobility
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 ...
console
parser
# # Copyright (C) 2016 bendikro <bro.devel+deluge@gmail.com> # # This file is part of Deluge and is licensed under GNU General Public License 3.0, or later, with # the additional special exception to link portions of this program with the OpenSSL library. # See LICENSE for more details. # import argparse import shlex ...
utils
label_map_util
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
clientScripts
move_sip
#!/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...
utils
per_image_evaluation_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...
instruments
Vocalist
##################################################################### # -*- coding: utf-8 -*- # # # # Frets on Fire X (FoFiX) # # Copyright (C) 2009 akedrou ...
extractor
awaan
# coding: utf-8 from __future__ import unicode_literals import base64 import re from ..compat import compat_str, compat_urllib_parse_urlencode from ..utils import ( int_or_none, parse_iso8601, smuggle_url, unsmuggle_url, urlencode_postdata, ) from .common import InfoExtractor class AWAANIE(InfoE...
backfill
modmsgtime
# 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, ...
api
query
import json import re from typing import Any, Dict, List, Optional, cast from django.http import HttpResponse, JsonResponse from drf_spectacular.types import OpenApiTypes from drf_spectacular.utils import OpenApiParameter from posthog import schema from posthog.api.documentation import extend_schema from posthog.api.r...
gui
Config
""" Copyright 2016 Free Software Foundation, Inc. This file is part of GNU Radio SPDX-License-Identifier: GPL-2.0-or-later """ import configparser import os import sys from ..core.Config import Config as CoreConfig from . import Constants HEADER = """\ # This contains only GUI settings for GRC and is not meant fo...