section
stringlengths
2
30
filename
stringlengths
1
82
text
stringlengths
783
28M
security
auth
import datetime import os from CTFd.cache import clear_user_session from CTFd.exceptions import UserNotFoundException, UserTokenExpiredException from CTFd.models import UserTokens, db from CTFd.utils.encoding import hexencode from CTFd.utils.security.csrf import generate_nonce from CTFd.utils.security.signing import h...
femtaskpanels
task_element_fluid1D
# *************************************************************************** # * Copyright (c) 2016 Ofentse Kgoa <kgoaot@eskom.co.za> * # * Copyright (c) 2018 Bernd Hahnebach <bernd@bimstatik.org> * # * Based on the FemElementGeometry1D by Bernd Hahnebach * # * ...
builders
input_reader_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...
utils
raw
import os import re import shutil import subprocess import tempfile from pathlib import Path from django.conf import settings from photonix.photos.models import Photo, PhotoFile, Task from photonix.web.utils import logger from PIL import Image from .metadata import get_dimensions, get_mimetype RAW_PROCESS_VERSION = ...
vidcutter
changelog
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # VidCutter - media cutter & joiner # # copyright © 2018 Pete Alexandrou # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of t...
PyObjCTest
test_nsurlerror
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str try: import CFNetwork except ImportError: CFNetwork = None class TestNSURLError(TestCase): def testConstants(self): self.assertIsInstance(NSURLErrorDomain, unicode) self.as...
downloaders
VeehdCom
# -*- coding: utf-8 -*- import re from ..base.downloader import BaseDownloader class VeehdCom(BaseDownloader): __name__ = "VeehdCom" __type__ = "downloader" __version__ = "0.29" __status__ = "testing" __pattern__ = r"http://veehd\.com/video/\d+_\S+" __config__ = [ ("enabled", "bool",...
canvas
drawable
""" Copyright 2007, 2008, 2009, 2016 Free Software Foundation, Inc. This file is part of GNU Radio SPDX-License-Identifier: GPL-2.0-or-later """ from ..Constants import LINE_SELECT_SENSITIVITY class Drawable(object): """ GraphicalElement is the base class for all graphical elements. It contains an X,Y ...
model
store
# Copyright (C) 2011 Chris Dekter # Copyright (C) 2019-2020 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 opt...
mmkeys
winhook
# Copyright 2016 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import ctypes import sys from quod...
network
networkthread
""" A thread to handle network concerns """ import network.asyncore_pollchoose as asyncore import state from network.connectionpool import BMConnectionPool from queues import excQueue from threads import StoppableThread class BMNetworkThread(StoppableThread): """Main network thread""" name = "Asyncore" ...
saveddata
implant
# =============================================================================== # 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, ...
blocks
stream_to_vector_decimator
# # Copyright 2008 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # from gnuradio import gr from . import blocks_python as blocks class stream_to_vector_decimator(gr.hier_block2): """ Convert the stream to a vector, decimate the vector strea...
migrations
0014_populate_licenses
from django.db import migrations def create_standard_licenses(apps, schema_editor): """ Creates a set of standard licenses """ License = apps.get_model("deposit", "License") licenses = [ { "name": "Creative Commons 1.0 Universal (CC0 1.0) Public Domain Dedication", ...
sitemaps
store
# 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, ...
viewers
toolbar
# 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 ...
QT
DatosNueva
from Code.QT import ( Colocacion, Controles, FormLayout, Iconos, Info, QTUtil, QTUtil2, QTVarios, ) from PyQt4 import QtCore, QtGui def datos(wParent, configuracion, procesador): # Primero determinamos la categoria resp = dameCategoria(wParent, configuracion, procesador) if...
utils
date_utils
"""Parse the date from various formats. """ __copyright__ = "Copyright (C) 2014-2016 Martin Blais" __license__ = "GNU GPLv2" import contextlib import datetime import os import time def iter_dates(start_date, end_date): """Yield all the dates between 'start_date' and 'end_date'. Args: start_date: An i...
posthog
gzip_middleware
import re from typing import List from django.conf import settings from django.middleware.gzip import GZipMiddleware class InvalidGZipAllowList(Exception): pass def allowed_path(path: str, allowed_paths: List) -> bool: return any(pattern.search(path) for pattern in allowed_paths) class ScopedGZipMiddlewa...
object-detection
exporter_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...
core
conftest
import asyncio import gc import logging import platform import sys from datetime import datetime from typing import Optional import human_readable import pytest from _pytest.config import Config from _pytest.python import Function from aiohttp.web_app import Application from tribler.core.components.restapi.rest.rest_e...
extractor
buzzfeed
# coding: utf-8 from __future__ import unicode_literals import json import re from .common import InfoExtractor from .facebook import FacebookIE class BuzzFeedIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?buzzfeed\.com/[^?#]*?/(?P<id>[^?#]+)" _TESTS = [ { "url": "http://www.buzzfe...
views
self_hosted_install
from apps.grafana_plugin.helpers import GrafanaAPIClient from apps.user_management.models.organization import Organization from apps.user_management.sync import sync_organization from common.api_helpers.mixins import GrafanaHeadersMixin from django.conf import settings from rest_framework import status from rest_framew...
settings
specialhotkeys
# 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...
options
renaming
# -*- coding: utf-8 -*- # # Picard, the next-generation MusicBrainz tagger # # Copyright (C) 2006-2008, 2011 Lukáš Lalinský # Copyright (C) 2008-2009 Nikolai Prokoschenko # Copyright (C) 2009-2010, 2014-2015, 2018-2022 Philipp Wolfer # Copyright (C) 2011-2013 Michael Wiencek # Copyright (C) 2011-2013 Wieland Hoffmann #...
saveddata
price
# =============================================================================== # Copyright (C) 2010 Diego Duclos # Copyright (C) 2011 Anton Vorobyov # # 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...
utils
formatter
from string import Formatter as StringFormatter from typing import Any, Callable, Dict, Optional # we only need string.Formatter for calling its parse() method, which returns `_string.formatter_parser(string)`. _stringformatter = StringFormatter() def _identity(obj): return obj class Formatter: def __init_...
gui
mode
# This file is part of MyPaint. # Copyright (C) 2014-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 """Canvas input ...
verification
channel
from apps.telegram.client import TelegramClient from apps.telegram.models import ( TelegramChannelVerificationCode, TelegramToOrganizationConnector, ) from apps.telegram.updates.update_handlers import UpdateHandler from apps.telegram.utils import is_verification_message TELEGRAM_ID = 777000 VERIFICATION_FAILE...
builders
losses_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...
group
sql
from posthog.clickhouse.base_sql import COPY_ROWS_BETWEEN_TEAMS_BASE_SQL from posthog.clickhouse.kafka_engine import KAFKA_COLUMNS, STORAGE_POLICY, kafka_engine from posthog.clickhouse.table_engines import ReplacingMergeTree from posthog.kafka_client.topics import KAFKA_GROUPS from posthog.settings import CLICKHOUSE_CL...
chardet
eucjpprober
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is mozilla.org 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 Reserved. # # Con...
QT
Gui
import os from Code import Configuracion, Usuarios, Util, VarGen from Code.QT import Colocacion, Controles, Iconos, QTUtil, QTVarios from PyQt4 import QtCore, QtGui def lanzaGUI(procesador): """ Lanzador del interfaz grafico de la aplicacion. """ # Comprobamos el lenguaje app = QtGui.QApplicatio...
calculix
write_constraint_temperature
# *************************************************************************** # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
clientScripts
archivematicaCreateMETSMetadataXML
#!/usr/bin/env python # # This file is part of Archivematica. # # Copyright 2010-2021 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, ...
extractor
cctv
# coding: utf-8 from __future__ import unicode_literals import re from ..compat import compat_str from ..utils import float_or_none, try_get, unified_timestamp from .common import InfoExtractor class CCTVIE(InfoExtractor): IE_DESC = "央视网" _VALID_URL = r"https?://(?:(?:[^/]+)\.(?:cntv|cctv)\.(?:com|cn)|(?:ww...
lib
idletask
# This file is part of MyPaint. # Copyright (C) 2015 by Andrew Chadwick <a.t.chadwick@gmail.com> # Copyright (C) 2009 by Martin Renold <martinxyz@gmx.ch> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fo...
language
generate_translations
#!/usr/bin/python3 """ @file @brief This file updates the OpenShot.POT (language translation template) by scanning all source files. @author Jonathan Thomas <jonathan@openshot.org> This file helps you generate the POT file that contains all of the translatable strings / text in OpenShot. Because some of our text...
femobjects
constraint_currentdensity
# *************************************************************************** # * Copyright (c) 2023 Uwe Stöhr <uwestoehr@lyx.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
Arch
ArchReference
# *************************************************************************** # * Copyright (c) 2018 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
draftmake
make_sketch
# *************************************************************************** # * Copyright (c) 2009, 2010 Yorik van Havre <yorik@uncreated.net> * # * Copyright (c) 2009, 2010 Ken Cline <cline@frii.com> * # * Copyright (c) 2020 FreeCAD Developers * # * ...
neubot
web100
# neubot/web100.py # # Copyright (c) 2012 # Nexa Center for Internet & Society, Politecnico di Torino (DAUIN) # and Simone Basso <bassosimone@gmail.com> # # I wrote this python interface for web100 using libweb100 sources as # documentation, so I inevitably translated portions of it from C to python. # Below t...
Code
Resistance
import collections from Code import Util class Resistance: def __init__(self, procesador, tipo): # Variables self.configuracion = procesador.configuracion self.tipo = tipo self.fichDB = self.configuracion.ficheroBoxing + tipo self.db = Util.DicSQL(self.fichDB) sel...
digital
qa_binary_slicer_fb
#!/usr/bin/env python # # Copyright 2011-2013 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import random from gnuradio import blocks, digital, gr, gr_unittest class test_binary_slicer_fb(gr_unittest.TestCase): def setUp(self): rando...
CloudSync
DiscrepanciesPresenter
# Copyright (c) 2022 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import os from typing import Optional from PyQt6.QtCore import QObject from UM.Qt.QtApplication import QtApplication from UM.Signal import Signal from .SubscribedPackagesModel import SubscribedPackagesModel class Discre...
frescobaldi-app
viewhighlighter
# 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 ...
Scene
ConvexHullDecorator
# Copyright (c) 2020 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING, Any, Optional import numpy from cura.Scene import ConvexHullNode from cura.Settings.ExtruderManager import ExtruderManager from PyQt6.QtCore import QTimer from UM.Application import Applic...
blocks
variable_struct_block_yml
#!/usr/bin/env python MAX_NUM_FIELDS = 20 HEADER = """\ id: variable_struct label: Struct Variable flags: [ show_id ] parameters: """ TEMPLATES = """\ templates: imports: "def struct(data): return type('Struct', (object,), data)()" var_make: |- self.${{id}} = ${{id}} = struct({{ % for i...
views
slack_team_settings
from apps.api.permissions import RBACPermission from apps.api.serializers.organization_slack_settings import ( OrganizationSlackSettingsSerializer, ) from apps.auth_token.auth import PluginAuthentication from apps.user_management.models import Organization from common.insight_log import EntityEvent, write_resource_...
rtorrent
common
# Copyright (c) 2013 Chris Lucas, <chris@chrisjlucas.com> # 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, ...
commands
generate_demo_data
import datetime as dt import logging import secrets from time import monotonic from django.core import exceptions from django.core.management.base import BaseCommand from posthog.demo.matrix import Matrix, MatrixManager from posthog.demo.products.hedgebox import HedgeboxMatrix logging.getLogger("kafka").setLevel(logg...
config-integrations
kapacitor
# Main enabled = True title = "Kapacitor" slug = "kapacitor" short_description = "InfluxDB" description = None is_displayed_on_web = True is_featured = False is_able_to_autoresolve = True is_demo_alert_enabled = True description = None # Default templates slack_title = """\ *<{{ grafana_oncall_link }}|#{{ grafana_onc...
blocks
msg_meta_to_pair
#!/usr/bin/env python # # Copyright 2020 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import pmt from gnuradio import gr class meta_to_pair(gr.sync_block): """ This block converts a metadata dictionary item to a pmt pair that is compa...
engines
bing_news
# SPDX-License-Identifier: AGPL-3.0-or-later """ Bing (News) """ from datetime import datetime from urllib.parse import parse_qsl, urlencode, urlparse from dateutil import parser from lxml import etree from lxml.etree import XPath from searx.engines.bing import ( # NOQA # pylint: disable=unused-import _fetch_su...
util
Diff
import difflib import io def sumLen(lines): return sum(map(len, lines)) def diff(old, new, limit=False): matcher = difflib.SequenceMatcher(None, old, new) actions = [] size = 0 for tag, old_from, old_to, new_from, new_to in matcher.get_opcodes(): if tag == "insert": new_line ...
module
projectedChangeProjectionRange
import wx from gui.fitCommands.helpers import restoreCheckedStates from logbook import Logger from service.fit import Fit pyfalog = Logger(__name__) class CalcChangeProjectedModuleProjectionRangeCommand(wx.Command): def __init__(self, fitID, position, projectionRange): wx.Command.__init__(self, True) ...
classes
transition
""" @file @brief This file is for legacy support of OpenShot 1.x project files @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-source pr...
preferences
tools
# 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 ...
utils
curses_util
# # 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. # try: import curses except...
submitters
simpleFarmSubmitter
#!/usr/bin/env python # coding:utf-8 import json import logging import os import simpleFarm from meshroom.core.desc import Level from meshroom.core.submitter import BaseSubmitter currentDir = os.path.dirname(os.path.realpath(__file__)) binDir = os.path.dirname(os.path.dirname(os.path.dirname(currentDir))) class Si...
builders
matcher_builder
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
core
preprocessor_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...
Generator
rotation
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2021 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
base
downloader
# -*- coding: utf-8 -*- import mimetypes import os import re from pyload.core.network.exceptions import Fail from pyload.core.network.http.exceptions import BadHeader from pyload.core.utils import format, parse from pyload.core.utils.old import safejoin from ..helpers import exists from .hoster import BaseHoster c...
models
alert_group
import datetime import logging import typing import urllib from collections import namedtuple from functools import partial from urllib.parse import urljoin from apps.alerts.constants import AlertGroupState from apps.alerts.escalation_snapshot import EscalationSnapshotMixin from apps.alerts.escalation_snapshot.escalat...
PyObjCTest
test_nsurlprotectionspace
from Foundation import * from PyObjCTools.TestSupport import * try: unicode except NameError: unicode = str class TestNSURLProtectionSpace(TestCase): def testConstants(self): self.assertIsInstance(NSURLProtectionSpaceHTTPProxy, unicode) self.assertIsInstance(NSURLProtectionSpaceHTTPSProxy...
chardet
latin1prober
######################## BEGIN LICENSE BLOCK ######################## # The Original Code is Mozilla Universal charset detector code. # # The Initial Developer of the Original Code is # Netscape Communications Corporation. # Portions created by the Initial Developer are Copyright (C) 2001 # the Initial Developer. All R...
downloader
http
from __future__ import unicode_literals import errno import os import random import re import socket import time from ..compat import compat_str, compat_urllib_error from ..utils import ( ContentTooShortError, XAttrMetadataError, XAttrUnavailableError, encodeFilename, int_or_none, sanitize_ope...
gui
backgroundwindow
# This file is part of MyPaint. # Copyright (C) 2009-2018 by the MyPaint Development Team. # Copyright (C) 2008-2014 by Martin Renold <martinxyz@gmx.ch> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Fou...
vidcutter
_main_
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ####################################################################### # # VidCutter - media cutter & joiner # # copyright © 2018 Pete Alexandrou # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
port
shared
# ============================================================================= # Copyright (C) 2014 Ryan Holmes # # 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 v...
commands
createuser
# -*- coding: utf-8 -*- """ Management utility to create users Example usage: manage.py createuser \ --username test \ --email test@test.test \ """ import getpass import sys from django.conf import settings from django.contrib.auth import get_user_model, models from django.contrib.auth.pass...
mylar
getcomics
# -*- coding: utf-8 -*- # 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 distribute...
migrations
0027_persons_and_groups_on_events
from infi.clickhouse_orm import migrations from posthog.clickhouse.client.migration_tools import run_sql_with_exceptions from posthog.client import sync_execute from posthog.models.event.sql import ( EVENTS_TABLE_JSON_MV_SQL, KAFKA_EVENTS_TABLE_JSON_SQL, ) from posthog.settings import CLICKHOUSE_CLUSTER ADD_CO...
clientScripts
dip_generation_helper
#!/usr/bin/env python import argparse import csv import archivematicaFunctions import django from agentarchives import archivesspace from custom_handlers import get_script_logger from django.db.models import Q from main import models # dashboard # archivematicaCommon # Third party dependencies, alphabetical by import...
heartbeat
alertmanager
from pathlib import PurePath from apps.integrations.metadata.heartbeat._heartbeat_text_creator import ( HeartBeatTextCreator, ) integration_verbal = PurePath(__file__).stem creator = HeartBeatTextCreator(integration_verbal) heartbeat_text = creator.get_heartbeat_texts() heartbeat_expired_title = heartbeat_text....
blocks
proxyport
from gaphor.core.modeling.properties import attribute from gaphor.diagram.presentation import AttachedPresentation, Named from gaphor.diagram.shapes import ( Box, IconBox, Text, TextAlign, VerticalAlign, draw_border, ) from gaphor.diagram.support import represents from gaphor.SysML import sysml ...
extractor
golem
# coding: utf-8 from __future__ import unicode_literals from ..compat import compat_str, compat_urlparse from ..utils import determine_ext from .common import InfoExtractor class GolemIE(InfoExtractor): _VALID_URL = r"^https?://video\.golem\.de/.+?/(?P<id>.+?)/" _TEST = { "url": "http://video.golem.d...
femobjects
result_mechanical
# *************************************************************************** # * Copyright (c) 2016 Qingfeng Xia <qingfeng.xia()eng.ox.ac.uk> * # * Copyright (c) 2016 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
server
packages
"""Package management.""" import abc import ast import collections import logging import os from pathlib import Path from tempfile import mkdtemp from uuid import UUID, uuid4 import storageService as storage_service from django.conf import settings from django.utils import timezone from main import models from server....
femexamples
square_pipe_end_twisted_nodeforces
# *************************************************************************** # * Copyright (c) 2020 Sudhanshu Dubey <sudhanshu.thethunder@gmail.com> * # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * Th...
femmesh
meshsetsgetter
# *************************************************************************** # * Copyright (c) 2021 Bernd Hahnebach <bernd@bimstatik.org> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
util
winpipe
# Copyright 2014,2016 Christoph Reiter # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. import ctypes import os import...
addons
CloudFlareDdos
# -*- coding: utf-8 -*- import inspect import re import urllib.parse from pyload.core.network.http.exceptions import BadHeader from pyload.core.utils.misc import eval_js from ..anticaptchas.ReCaptcha import ReCaptcha from ..base.addon import BaseAddon from ..helpers import parse_html_header def plugin_id(plugin): ...
SceneDetails
Pickability
# /*************************************************************************** # * Copyright (c) 2019 Victor Titov (DeepSOIC) <vv.titov@gmail.com> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
migrations
0008_update_django_autoslug
import autoslug.fields from django.db import migrations class Migration(migrations.Migration): dependencies = [("fpr", "0007_embedded_default_thumbnail")] operations = [ migrations.AlterField( model_name="format", name="slug", field=autoslug.fields.AutoSlugField( ...
extractor
hotnewhiphop
from __future__ import unicode_literals from ..compat import compat_b64decode from ..utils import ExtractorError, HEADRequest, sanitized_Request, urlencode_postdata from .common import InfoExtractor class HotNewHipHopIE(InfoExtractor): _VALID_URL = r"https?://(?:www\.)?hotnewhiphop\.com/.*\.(?P<id>.*)\.html" ...
templatetags
posthog_assets
import re from typing import List from django.conf import settings from django.template import Library from posthog.utils import absolute_uri as util_absolute_uri register = Library() @register.simple_tag def absolute_uri(url: str = "") -> str: return util_absolute_uri(url) @register.simple_tag def absolute_a...
digital
qa_ofdm_serializer_vcc
#!/usr/bin/env python # # Copyright 2012-2014 Free Software Foundation, Inc. # # This file is part of GNU Radio # # SPDX-License-Identifier: GPL-3.0-or-later # # import numpy import pmt from gnuradio import analog, blocks, digital, fft, gr, gr_unittest class qa_ofdm_serializer_vcc(gr_unittest.TestCase): def set...
schema
groups
from typing import Dict, List from posthog.hogql.database.argmax import argmax_select from posthog.hogql.database.models import ( DateTimeDatabaseField, FieldOrTable, IntegerDatabaseField, LazyTable, StringDatabaseField, StringJSONDatabaseField, Table, ) GROUPS_TABLE_FIELDS = { "index"...
Gui
Bit
# -*- coding: utf-8 -*- # *************************************************************************** # * Copyright (c) 2019 sliptonic <shopinthewoods@gmail.com> * # * * # * This program is free software; you can redistribute it a...
Arch
ArchStructure
# *************************************************************************** # * Copyright (c) 2011 Yorik van Havre <yorik@uncreated.net> * # * * # * This program is free software; you can redistribute it and/or modify * # * it...
dag-factory
dag_factory
import os from dag_factory.components.deprecated.news_cleaner import NewsCleaner from dag_factory.components.deprecated.update_na_news_impprt import UpdateNANewsImport from dag_factory.components.deprecated.update_old_news_impprt import UpdateOldNewsImport from dag_factory.components.mongo_import import MongoImport fr...
libtorrent
torrentdef
""" Author(s): Arno Bakker """ import itertools import logging from hashlib import sha1 import aiohttp from tribler.core.components.libtorrent.utils import torrent_utils from tribler.core.components.libtorrent.utils.libtorrent_helper import libtorrent as lt from tribler.core.utilities import maketorrent, path_util fro...
chardet
euckrfreq
######################## 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...
hal
tests
# -*- encoding: utf-8 -*- # Dissemin: open access policy enforcement tool # Copyright (C) 2014 Antonin Delpeuch # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License # as published by the Free Software Foundation; either version 2 # of th...
BOPTools
Utils
# /*************************************************************************** # * Copyright (c) 2016 Victor Titov (DeepSOIC) <vv.titov@gmail.com> * # * * # * This file is part of the FreeCAD CAx development system. * # * ...
docs
make_numbered_listing
#!/usr/bin/env python import os import os.path import sys from optparse import OptionParser def quote_line(line): line = line.replace("&", "&amp;") line = line.replace("<", "&lt;") line = line.replace(">", "&gt;") line = line.replace("'", "&apos;") line = line.replace('"', "&quot;") return li...
neubot
http_clnt
# neubot/http_clnt.py # # Copyright (c) 2011-2012 Simone Basso <bassosimone@gmail.com>, # NEXA Center for Internet & Society at Politecnico di Torino # # This file is part of Neubot <http://www.neubot.org/>. # # Neubot is free software: you can redistribute it and/or modify # it under the terms of the GNU General Pub...
addons
XFileSharing
# -*- coding: utf-8 -*- import inspect import re from ..base.addon import BaseAddon class XFileSharing(BaseAddon): __name__ = "XFileSharing" __type__ = "addon" __version__ = "0.56" __status__ = "testing" __config__ = [ ("enabled", "bool", "Activated", False), ("use_downloader_lis...