section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
extractor
hentaistigma
from __future__ import unicode_literals from .common import InfoExtractor class HentaiStigmaIE(InfoExtractor): _VALID_URL = r"^https?://hentai\.animestigma\.com/(?P<id>[^/]+)" _TEST = { "url": "http://hentai.animestigma.com/inyouchuu-etsu-bonus/", "md5": "4e3d07422a68a4cc363d8f57c8bf0d23", ...
requests
status_codes
# -*- coding: utf-8 -*- from .structures import LookupDict _codes = { # Informational. 100: ("continue",), 101: ("switching_protocols",), 102: ("processing",), 103: ("checkpoint",), 122: ("uri_too_long", "request_uri_too_long"), 200: ("ok", "okay", "all_ok", "all_okay", "all_good", "\\o/",...
database
s3_table
from typing import Optional from posthog.hogql.database.models import FunctionCallTable from posthog.hogql.escape_sql import escape_hogql_identifier class S3Table(FunctionCallTable): url: str format: str = "CSVWithNames" access_key: Optional[str] = None access_secret: Optional[str] = None structu...
tasks
notify_all
from apps.slack.tasks import check_slack_message_exists_before_post_message_to_thread from common.custom_celery_tasks import shared_dedicated_queue_retry_task from django.conf import settings from .notify_user import notify_user_task from .task_logger import task_logger @shared_dedicated_queue_retry_task( autore...
http
http_download
# -*- coding: utf-8 -*- import os import time from logging import getLogger import pycurl from pyload import APPID from ..exceptions import Abort from .http_chunk import ChunkInfo, HTTPChunk from .http_request import BadHeader class HTTPDownload: """ loads a url http + ftp. """ def __init__( ...
chardet
langcyrillicmodel
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Communicator client code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 1998 # the Initial Developer. All Rights R...
extractor
naver
# coding: utf-8 from __future__ import unicode_literals import re from ..utils import ( ExtractorError, clean_html, dict_get, int_or_none, parse_duration, try_get, update_url_query, ) from .common import InfoExtractor class NaverBaseIE(InfoExtractor): _CAPTION_EXT_RE = r"\.(?:ttml|vt...
downloaders
FileomCom
# -*- coding: utf-8 -*- # # Test links: # http://fileom.com/gycaytyzdw3g/random.bin.html from ..base.xfs_downloader import XFSDownloader class FileomCom(XFSDownloader): __name__ = "FileomCom" __type__ = "downloader" __version__ = "0.11" __status__ = "testing" __pattern__ = r"https?://(?:www\.)?...
download-manager
download_config
import base64 from typing import Dict, Optional from configobj import ConfigObj from tribler.core.components.libtorrent.settings import ( DownloadDefaultsSettings, get_default_download_dir, ) from tribler.core.components.libtorrent.utils.libtorrent_helper import libtorrent as lt from tribler.core.exceptions im...
bleachbit
bleachbit
#!/usr/bin/python3 # vim: ts=4:sw=4:expandtab # BleachBit # Copyright (C) 2008-2023 Andrew Ziem # https://www.bleachbit.org # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of...
extractor
yinyuetai
# coding: utf-8 from __future__ import unicode_literals from ..utils import ExtractorError from .common import InfoExtractor class YinYueTaiIE(InfoExtractor): IE_NAME = "yinyuetai:video" IE_DESC = "音悦Tai" _VALID_URL = r"https?://v\.yinyuetai\.com/video(?:/h5)?/(?P<id>[0-9]+)" _TESTS = [ { ...
filters
extract_focal
# -*- coding: utf-8 -*- # thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com import re from libthumbor.url import Url from thumbor.filters import PHASE_PRE_LOAD, ...
views
feed
""" non-interactive pages """ from bookwyrm import activitystreams, forms, models from bookwyrm.activitypub import ActivitypubResponse from bookwyrm.models.user import FeedFilterChoices from bookwyrm.settings import PAGE_LENGTH, STREAMS from bookwyrm.suggested_users import suggested_users from django.contrib.auth.decor...
beetsplug
discogs
# 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, ...
Drawing
DrawingExample
# example how to use the scripting API of the drawing module # # first of all you need the Part and the Drawing module: import Drawing import FreeCAD import Part # create a small sample part Part.show( Part.makeBox(100, 100, 100) .cut(Part.makeCylinder(80, 100)) .cut(Part.makeBox(90, 40, 100)) .cut(Par...
Models
MachineListModel
# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. # The MachineListModel is used to display the connected printers in the interface. Both the abstract machines and all # online cloud connected printers are represented within this ListModel. Additional information such as t...
PyObjCTest
test_cifilter
from PyObjCTools.TestSupport import * from Quartz.QuartzCore import * try: unicode except NameError: unicode = str class TestCIFilter(TestCase): def testConstants(self): self.assertIsInstance(kCIAttributeFilterName, unicode) self.assertIsInstance(kCIAttributeFilterDisplayName, unicode) ...
animosd
osdwindow
# Copyright (C) 2012-13 Thomas Vogt # Copyright (C) 2012-17 Nick Boultbee # Copyright (C) 2008 Andreas Bombe # Copyright (C) 2005 Michael Urman # Based on osd.py (C) 2005 Ton van den Heuvel, Joe Wreshnig # (C) 2004 Gustavo J. A. M. Carneiro # # This program is free software; you can redistribute it and...
trayicon
systemtray
# Copyright 2004-2006 Joe Wreschnig, Michael Urman, Iñigo Serna # 2012 Christoph Reiter # 2013 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 ...
lib
einhorn
# 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, ...
data
viewer
# -------------------------------------------------------------------------- # 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...
controllers
googletagmanager
# 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, ...
Draft
DraftGui
# -*- coding: utf8 -*- # *************************************************************************** # * Copyright (c) 2009 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it an...
calc
projected
# ============================================================================= # 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 ...
beetsplug
ftintitle
# This file is part of beets. # Copyright 2016, Verrus, <github.com/Verrus/beets-plugin-featInTitle> # # 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...
utils
metrics
# 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...
OpenSCAD
colorcodeshapes
# *************************************************************************** # * Copyright (c) 2012 Sebastian Hoogen <github@sebastianhoogen.de> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
beets
vfs
# 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, ...
extractors
tiktok
#!/usr/bin/env python __all__ = ["tiktok_download"] from ..common import * def tiktok_download(url, output_dir=".", merge=True, info_only=False, **kwargs): headers = { "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0", "Accept-Encoding": "gzip, deflat...
job
lilypond
# This file is part of the Frescobaldi project, http://www.frescobaldi.org/ # # Copyright (c) 2008 - 2015 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 ...
socks5
udp_connection
import logging from asyncio import DatagramProtocol, get_event_loop from ipv8.messaging.serialization import PackError from tribler.core.components.socks_servers.socks5.conversion import ( UdpPacket, socks5_serializer, ) class SocksUDPConnection(DatagramProtocol): def __init__(self, socksconnection, remo...
cssutils
sac
#!/usr/bin/env python """A validating CSSParser""" __all__ = ["CSSParser"] __docformat__ = "restructuredtext" __version__ = "$Id: parse.py 1754 2009-05-30 14:50:13Z cthedot $" import codecs import os import sys import urllib import errorhandler import helper import tokenize2 class ErrorHandler(object): """Basic...
Blocklist
setup
# # 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 link portions of this program with the OpenSSL library. # See LICENSE for more details. # from setuptools import find_pa...
Code
SingularMoves
import datetime import random from Code import Util class SingularMoves: def __init__(self, fichero_db): fichero_tactic = "./IntFiles/tactic0.bm" self.dic = self.lee(fichero_tactic) self.li_bloque = None self.li_bloque_sol = [] self.registro = None self.current_key...
extractor
einthusan
# coding: utf-8 from __future__ import unicode_literals import json import re from ..compat import compat_b64decode, compat_str, compat_urlparse from ..utils import ( ExtractorError, extract_attributes, get_elements_by_class, urlencode_postdata, ) from .common import InfoExtractor class EinthusanIE(...
scripts
DisplayFilenameAndLayerOnLCD
# Cura PostProcessingPlugin # Author: Amanda de Castilho # Date: August 28, 2018 # Modified: November 16, 2018 by Joshua Pope-Lewis # Description: This plugin shows custom messages about your print on the Status bar... # Please look at the 5 options # - Scrolling (SCROLL_LONG_FILENAM...
qltk
unity
# Copyright 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. """Everything related to Ubuntu Uni...
mobile-app
serializers
from apps.mobile_app.models import MobileAppUserSettings from common.api_helpers.custom_fields import TimeZoneField from rest_framework import serializers class MobileAppUserSettingsSerializer(serializers.ModelSerializer): time_zone = TimeZoneField(required=False, allow_null=False) class Meta: model ...
comictaggerlib
crediteditorwindow
"""A PyQT4 dialog to edit credits""" # 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/LICENSE-2.0 # Unless required...
plugins
huajiao
""" $description Chinese live-streaming platform for live video game broadcasts and individual live streams. $url huajiao.com $type live $metadata author $metadata category $metadata title """ import base64 import random import re import time import uuid from streamlink.plugin import Plugin, pluginmatcher from stream...
internal
path
import logging import pathlib import re import urllib.parse from os import PathLike from typing import Union from mopidy.internal import xdg logger = logging.getLogger(__name__) XDG_DIRS = xdg.get_dirs() def get_or_create_dir(dir_path): dir_path = expand_path(dir_path) if dir_path.is_file(): raise...
canvas
param
# Copyright 2007-2016 Free Software Foundation, Inc. # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-2.0-or-later # import numbers from ...core.params import Param as CoreParam from .. import Actions, Constants, ParamWidgets, Utils from .drawable import Drawable class Param(CoreParam): """The...
addons
Checksum
# -*- coding: utf-8 -*- import hashlib import os import re import time import zlib from threading import Event from pyload.core.utils import format from ..base.addon import BaseAddon, threaded def compute_checksum(local_file, algorithm, progress_notify=None, abort=None): file_size = os.stat(local_file).st_size...
settings
dev
# flake8: noqa import os import socket import sys from .base import * # DEBUG is disabled by default because it can cause slowness when making several consecutive requests DEBUG = getenv_boolean("DEBUG", default=False) if DATABASE_TYPE == DatabaseTypes.SQLITE3: DATABASES["default"]["NAME"] = DATABASE_NAME or "on...
misc
autoupdate
# SPDX-FileCopyrightText: Florian Bruhin (The Compiler) <mail@qutebrowser.org> # # SPDX-License-Identifier: GPL-3.0-or-later """Classes related to auto-updating and getting the latest version.""" import json from qutebrowser.misc import httpclient from qutebrowser.qt.core import QObject, QUrl, pyqtSignal, pyqtSlot ...
utils
servertests
#!/usr/bin/python3 -OO # Copyright 2007-2023 The SABnzbd-Team (sabnzbd.org) # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later ver...
hogql
filters
from typing import List from dateutil.parser import isoparse from posthog.hogql import ast from posthog.hogql.errors import HogQLException from posthog.hogql.parser import parse_expr from posthog.hogql.property import property_to_expr from posthog.hogql.visitor import CloningVisitor from posthog.models import Team fro...
db
util
# =============================================================================== # 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, ...
serializers
user_notification_policy
import time from datetime import timedelta from apps.base.models import UserNotificationPolicy from apps.base.models.user_notification_policy import NotificationChannelAPIOptions from apps.user_management.models import User from common.api_helpers.custom_fields import OrganizationFilteredPrimaryKeyRelatedField from co...
clientScripts
restructure_for_compliance
#!/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...
fitCapacitor
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 ...
Messages
LegacyDeviceNoLongerSupportedMessage
# Copyright (c) 2019 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from UM import i18nCatalog from UM.Message import Message I18N_CATALOG = i18nCatalog("cura") class LegacyDeviceNoLongerSupportedMessage(Message): """Message shown when trying to connect to a legacy printer device.""" ...
plugins
nownews
""" $description Live streaming news channel owned by Now/PCCW Group, based in Hong Kong. $url news.now.com $type live """ import json import logging import re from streamlink.plugin import Plugin, pluginmatcher from streamlink.stream.hls import HLSStream log = logging.getLogger(__name__) @pluginmatcher( re.co...
PyObjCTest
test_cfstringtokenizer
from CoreFoundation import * from PyObjCTools.TestSupport import * try: long except NameError: long = int class TestStringTokenizer(TestCase): def testTypes(self): self.assertIsCFType(CFStringTokenizerRef) def testFunctions(self): s = b"Spring eens over een boom".decode("ascii") ...
QT
QTUtil
import gc from PyQt4 import QtCore, QtGui class GarbageCollector(QtCore.QObject): """ http://pydev.blogspot.com.br/2014/03/should-python-garbage-collector-be.html Erik Janssens Disable automatic garbage collection and instead collect manually every INTERVAL milliseconds. This is done to ensu...
conversion
config
#!/usr/bin/env python # vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai from __future__ import with_statement __license__ = "GPL v3" __copyright__ = "2009, Kovid Goyal <kovid@kovidgoyal.net>" __docformat__ = "restructuredtext en" import os from calibre import sanitize_file_name from calibre.customize.conversion imp...
snippet
widget
# 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 ...
actions
activitynodes
"""Activity control nodes.""" import math from gaphas.constraint import constraint from gaphas.geometry import Rectangle, distance_line_point from gaphas.item import Handle, LinePort from gaphas.matrix import Matrix from gaphor import UML from gaphor.core.modeling import Presentation from gaphor.core.modeling.propert...
cherrypy
_cplogging
""" Simple config ============= Although CherryPy uses the :mod:`Python logging module <logging>`, it does so behind the scenes so that simple logging is simple, but complicated logging is still possible. "Simple" logging means that you can log to the screen (i.e. console/stdout) or to a file, and that you can easily ...
markovify
utils
# markovify # Copyright (c) 2015, Jeremy Singer-Vine # Origin: https://github.com/jsvine/markovify # MIT License: https://github.com/jsvine/markovify/blob/master/LICENSE.txt from .chain import Chain from .text import Text def get_model_dict(thing): if isinstance(thing, Chain): return thing.model if i...
api
survey
from typing import Any, Type from django.http import JsonResponse from django.utils.text import slugify from django.views.decorators.csrf import csrf_exempt from posthog.api.feature_flag import FeatureFlagSerializer, MinimalFeatureFlagSerializer from posthog.api.routing import StructuredViewSetMixin from posthog.api.s...
digital
gfsk
# # GFSK modulation and demodulation. # # # Copyright 2005-2007,2012 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # # See gnuradio-examples/python/digital for examples from math import log as ln import numpy from gnuradio import analog, blocks, fil...
femviewprovider
view_constraint_flowvelocity
# *************************************************************************** # * Copyright (c) 2017 Markus Hovorka <m.hovorka@live.de> * # * Copyright (c) 2020 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
sandbox
fft_benchmark
import time import anfft import fftw3 import numpy as np import pyfftw import scipy.fftpack as scifft # initial data N = 256 a0 = np.random.rand(N) Ntest = 1000 # Create 3 16-byte aligned arays using the aligned array creation functions # They are cleared during the object creation, so there is no point filling the...
KindleUnpack
mobi_nav
#!/usr/bin/env python # -*- coding: utf-8 -*- # vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab from __future__ import absolute_import, division, print_function, unicode_literals import os import re from .compatibility_utils import unicode_str from .unipath import pathof # note: re requites the pattern to be the exa...
QT
PantallaTutor
from Code import VarGen from Code.Constantes import * from Code.QT import ( Colocacion, Controles, FormLayout, Iconos, QTUtil, QTUtil2, QTVarios, Tablero, ) from PyQt4 import QtCore class PantallaTutor(QTVarios.WDialogo): def __init__(self, gestor, tutor, siRival, siAperturas, siBl...
plugins
multifx
# -*- coding: utf-8 -*- """ This file is part of the Stargate project, Copyright Stargate 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 version 3 of the License. This program is distributed in...
frescobaldi-app
exception
# 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 ...
migrations
0200_insight_last_modified
# Generated by Django 3.2.5 on 2022-01-25 17:33 import django.db.models.deletion import django.utils.timezone from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("posthog", "0199_update_experiment_model"), ] operation...
blocks
qa_message_strobe
#!/usr/bin/env python # # Copyright 2021 Malte Lenhart # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import time import pmt from gnuradio import blocks, gr, gr_unittest # this test tests message strobe and message debug blocks against each other # similar tests contained in mes...
canto-curses
reader
# -*- 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 loggin...
sandbox
delay
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2009 Timothée Lecomte # This file is part of Friture. # # Friture is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License version 3 as published by # the Free Software Foundation. # # Friture is distri...
mtcnn
network
#!/usr/bin/python3 # -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018 Iván de Paz Centeno # # 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 l...
config
estimation
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License" from octoprint.schema import BaseModel from octoprint.vendor.with_attrs_docs import with_attrs_docs @with_attrs_docs class Pr...
gtkui
download
# -*- coding: utf-8 -*- # # gPodder - A media aggregator and podcast client # Copyright (c) 2005-2018 The gPodder Team # # gPodder 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 Licens...
web
wsgi
""" WSGI Utilities (from web.py) """ import http import os import sys import httpserver import webapi as web from net import validaddr, validip from utils import listget def runfcgi(func, addr=("localhost", 8000)): """Runs a WSGI function as a FastCGI server.""" import flup.server.fcgi as flups return ...
Test
TestHelper
import os import socket import struct import pytest from Config import config from util import helper @pytest.mark.usefixtures("resetSettings") class TestHelper: def testShellquote(self): assert helper.shellquote("hel'lo") == '"hel\'lo"' # Allow ' assert helper.shellquote('hel"lo') == '"hello"' ...
builtinViewColumns
capacitorUse
# ============================================================================= # 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 ...
extractor
vevo
from __future__ import unicode_literals import json import re from ..compat import compat_HTTPError, compat_str, compat_urlparse from ..utils import ExtractorError, int_or_none, parse_iso8601 from .common import InfoExtractor class VevoBaseIE(InfoExtractor): def _extract_json(self, webpage, video_id): r...
core
prices
"""This module has code that can build a database of historical prices at various times, from which unrealized capital gains and market value can be deduced. Prices are deduced from Price entries found in the file, or perhaps created by scripts (for example you could build a script that will fetch live prices online a...
PyObjCTest
test_classhooks
import objc from PyObjCTools.TestSupport import * class specialproperty(object): def __init__(self): self.name = None def __pyobjc_class_setup__( self, name, class_dict, instance_method_list, class_method_list ): self.name = name def dospecial(self): pass ...
builtinContextMenus
cargoAdd
import gui.fitCommands as cmd import gui.mainFrame import wx from gui.contextMenu import ContextMenuSingle from service.fit import Fit _t = wx.GetTranslation class AddToCargo(ContextMenuSingle): def __init__(self): self.mainFrame = gui.mainFrame.MainFrame.getInstance() def display(self, callingWindo...
classes
image_types
""" @file @brief This file is used to determine if an extension is an image format @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-sourc...
cura
SingleInstance
# Copyright (c) 2018 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import json import os from typing import List, Optional from PyQt6.QtNetwork import QLocalServer, QLocalSocket from UM.Logger import Logger from UM.Qt.QtApplication import QtApplication # For typing. class SingleInstanc...
controllers
trafo_ctrl
# -*- coding: utf-8 -*- # # Copyright (C) 2013-2021 by Ihor E. Novikov # Copyright (C) 2021 by Maxim S. Barabash # # 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 Li...
bittorrent
config
#!/usr/bin/env python # # 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 L...
api
capture
import hashlib import json import re import time from datetime import datetime from random import random from typing import Any, Dict, Iterator, List, Optional, Tuple import structlog from dateutil import parser from django.conf import settings from django.http import JsonResponse from django.utils import timezone fro...
extractor
drtuber
from __future__ import unicode_literals import re from ..utils import NO_DEFAULT, int_or_none, parse_duration, str_to_int from .common import InfoExtractor class DrTuberIE(InfoExtractor): _VALID_URL = r"https?://(?:(?:www|m)\.)?drtuber\.com/(?:video|embed)/(?P<id>\d+)(?:/(?P<display_id>[\w-]+))?" _TESTS = [...
tools
clang_format
#!/usr/bin/env python # Copyright (C) 2015,2016 MongoDB Inc. # Copyright (C) 2018 Free Software Foundation # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License, version 3, # as published by the Free Software Foundation. # # This program ...
documentation
conf
# -*- coding: utf-8 -*- # # six documentation build configuration file import os import sys # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like ...
TDTest
DrawProjectionGroupTest
import unittest import FreeCAD from .TechDrawTestUtilities import createPageWithSVGTemplate class DrawProjectionGroupTest(unittest.TestCase): def setUp(self): """Creates a box and sphere to make a fusions from them. Then creates a page and projection group""" FreeCAD.newDocument("TDGroup...
funnels
funnel_correlation_persons
from typing import List, Optional, Tuple, Union from django.db.models.query import QuerySet from ee.clickhouse.queries.funnels.funnel_correlation import FunnelCorrelation from posthog.constants import ( FUNNEL_CORRELATION_PERSON_LIMIT, FunnelCorrelationType, PropertyOperatorType, ) from posthog.models impo...
builders
box_coder_builder_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...
downloaders
JunocloudMe
# -*- coding: utf-8 -*- from ..base.xfs_downloader import XFSDownloader class JunocloudMe(XFSDownloader): __name__ = "JunocloudMe" __type__ = "downloader" __version__ = "0.11" __status__ = "testing" __pattern__ = r"http://(?:\w+\.)?junocloud\.me/\w{12}" __config__ = [ ("enabled", "bo...
gstreamer
karaoke
# Copyright 2012 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 gi.repository import GObject, ...
Op
Vcarve
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2020 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
neubot
runner_core
#!/usr/bin/env python # # Copyright (c) 2012 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public L...
extractor
washingtonpost
# coding: utf-8 from __future__ import unicode_literals import re from .common import InfoExtractor class WashingtonPostIE(InfoExtractor): IE_NAME = "washingtonpost" _VALID_URL = r"(?:washingtonpost:|https?://(?:www\.)?washingtonpost\.com/(?:video|posttv)/(?:[^/]+/)*)(?P<id>[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-...
models
invitation
import datetime import logging from functools import partial from apps.alerts import tasks from django.db import models, transaction logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) class Invitation(models.Model): """ It's an invitation of a user to join working on Alert Group """ ...
reports
urls
# -*- coding: utf-8 -*- from django.urls import path from . import views app_name = "reports" urlpatterns = [ path( "children/<str:slug>/reports", views.ChildReportList.as_view(), name="report-list", ), path( "children/<str:slug>/reports/bmi/bmi/", views.BMIChangeC...