id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Crwy-1.7.1.tar.gz/Crwy-1.7.1/crwy/utils/scrapy_plugs/dupefilters.py
import logging import time import datetime import hashlib from crwy.utils.filter.RedisSet import RedisSet from crwy.utils.filter.RedisSortedSet import RedisSortedSet from scrapy.dupefilters import BaseDupeFilter from scrapy.exceptions import NotConfigured from scrapy_redis.connection import get_redis_from_settings log...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/ConstantRefNodes.py
import sys from abc import abstractmethod from nuitka import Options from nuitka.__past__ import ( GenericAlias, UnionType, iterItems, long, unicode, xrange, ) from nuitka.Builtins import ( builtin_anon_values, builtin_exception_values_list, builtin_named_values, ) from nuitka.Const...
PypiClean
/MindustryCompiler-2.1-py3-none-any.whl/compiler/yacc/grammar/function.py
from compiler import CompilationException from ._start import grammar, YaccProduction, context from .. import importsHandling from ..classes import AsmInst, FunDef, ReturnStm, FunCall def getModuleAndFunName(dotted): module = None if len(dotted) == 2: module, funName = dotted else: assert...
PypiClean
/Intrst_algrms-0.7.2-py3-none-any.whl/unpacking_flatten_lists/performance.py
import timeit import json import time from collections import defaultdict from typing import List, Callable from numbers import Integral from contextlib import contextmanager from unpacking_flatten_lists import BASEDIR from unpacking_flatten_lists.data import ( generate_data, create_data_decreasing_depth, ...
PypiClean
/OMEMO-1.0.2.tar.gz/OMEMO-1.0.2/omemo/storage.py
from __future__ import annotations # pylint: disable=unused-variable from abc import ABC, abstractmethod import base64 import copy from typing import Any, Callable, Dict, Generic, List, Optional, Type, TypeVar, Union, cast from .types import JSONType, OMEMOException __all__ = [ # pylint: disable=unused-variable ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/geoserver/helpers.py
import os import re import sys import time import uuid import json import errno import logging import datetime import tempfile import traceback from shutil import copyfile from itertools import cycle from collections import namedtuple, defaultdict from os.path import basename, splitext, isfile from threading import l...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/gui/application/application.py
import sys from json import JSONDecodeError import six import wx # type: ignore from gooey import Events from gooey.gui import events from gooey.gui import host from gooey.gui import state as s from gooey.gui.application.components import RHeader, ProgressSpinner, ErrorWarning, RTabbedLayout, \ RSidebar, RFooter...
PypiClean
/GhTrack-1.1.1.tar.gz/GhTrack-1.1.1/docs/examples/GhTrack.rst
GhTrack Class ========== This is the main class of the github-track module. Configuration file --------------- You can instantiate the class *GhTrack* by passing your own configuration file. Otherwise it will load with the default configuration file. That default file looks something below. In case if you are providi...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/da/TeX.js
MathJax.Localization.addTranslation("da","TeX",{version:"2.7.9",isLoaded:true,strings:{ExtraOpenMissingClose:"Ekstra venstreklammeparentes eller manglende h\u00F8jreklammeparentes",ExtraCloseMissingOpen:"Ekstra h\u00F8jreklammeparentes eller manglende venstreklammeparentes",MissingLeftExtraRight:"Manglende \\left eller...
PypiClean
/Assimulo-3.0.tar.gz/Assimulo-3.0/assimulo/examples/ida_with_initial_sensitivity.py
# Copyright (C) 2010 Modelon AB # # This program 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, version 3 of the License. # # This program is distributed in the hope that it will be useful, # but WITH...
PypiClean
/JPype1-1.4.1-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/jpype/pickle.py
from __future__ import absolute_import import _jpype import pickle from copyreg import dispatch_table # TODO: Support use of a custom classloader with the unpickler. # TODO: Use copyreg to pickle a JProxy __ALL__ = ['JPickler', 'JUnpickler'] # This must exist as a global, the real unserializer is created by the JU...
PypiClean
/KivyAuth-2.3.3-py3-none-any.whl/kivyauth/desktop/facebook_auth.py
import requests from oauthlib.oauth2 import WebApplicationClient import json import webbrowser import random from kivyauth.desktop.utils import ( request, redirect, is_connected, start_server, app, _close_server_pls, port, stop_login, ) from kivy.app import App from kivy.clock import Cl...
PypiClean
/KratosMultilevelMonteCarloApplication-9.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/MultilevelMonteCarloApplication/XMC/xmc/multiCriterion.py
import numpy as np # XMC imports from xmc.tools import dynamicImport from xmc.methodDefs_multiCriterion import flag, interpreter class MultiCriterion: """ This class handles any number of criteria, the associated tolerances (with possible splitting), and the combination of these criteria into an interpre...
PypiClean
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/doc/manual/introduction.rst
Introduction ============ Bob is a build automation tool inspired by bitbake and portage. Its main purpose is to build software packages, very much like packages in a Linux distribution. It typically works on coarse entities i.e. not on individual source files. .. image:: /images/overview.png In contrast to similar ...
PypiClean
/MorletWaveModal-0.6.3-py3-none-any.whl/mwmodal/mw_modal.py
import numpy as np import mwdi as mw from scipy.optimize import least_squares from warnings import warn from .tools import * class MorletWaveModal(object): def __init__(self, free_response, fs, n_1=5, n_2=10, k_lo=10, num_k=10): """ Initiates the MorletWaveModal object :param free_respo...
PypiClean
/Haroun-0.1.5.tar.gz/Haroun-0.1.5/haroun/model.py
import torch import numpy as np import time import copy import matplotlib.pyplot as plt class Model(): def __init__(self, network, optimizer, criterion, device): super(Model, self).__init__() self.net = network.to(device) self.optim = optimizer self.loss = criterion self.de...
PypiClean
/FAST-2.5.tar.gz/FAST-2.5/README.txt
FAST README =========== The FAST Python package integrates a variety of Python packages that are related to software testing. exact - Definition and management of computational experiments sqa - SQA scripts for managing software releases swtest - Tools for software tests testing - Tools for automatical...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/events/__init__.py
from .raw import Raw from .album import Album from .chataction import ChatAction from .messagedeleted import MessageDeleted from .messageedited import MessageEdited from .messageread import MessageRead from .newmessage import NewMessage from .userupdate import UserUpdate from .callbackquery import CallbackQuery from .i...
PypiClean
/Findex_GUI-0.2.18-py3-none-any.whl/findex_gui/static/js/jquery.highlight.js
jQuery.extend({ highlight: function (node, re, nodeName, className) { if (node.nodeType === 3) { var match = node.data.match(re); if (match) { var highlight = document.createElement(nodeName || 'span'); highlight.className = className || 'highlight'; ...
PypiClean
/Flask-Swag-0.1.2.tar.gz/Flask-Swag-0.1.2/flask_swag/resources/swagger-ui/lang/en.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Warning: Deprecated", "Implementation Notes":"Implementation Notes", "Response Class":"Response Class", "Status":"Status", "Parameters":"Parameters", "Parameter":"Parameter", "Value":"Value",...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/lad/lad_r101_paa_r50_fpn_coco_1x.py
_base_ = [ '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py' ] teacher_ckpt = 'https://download.openmmlab.com/mmdetection/v2.0/paa/paa_r50_fpn_1x_coco/paa_r50_fpn_1x_coco_20200821-936edec3.pth' # noqa model = dict( type='LAD', # student bac...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/utilities/__init__.py
from __future__ import absolute_import from .azync import await_callback from .coercing import ( coerce_sequence_of_list, coerce_sequence_of_tuple, is_item_iterable, is_sequence_of_dict, is_sequence_of_float, is_sequence_of_int, is_sequence_of_iterable, is_sequence_of_list, is_seque...
PypiClean
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/tkinterutil/listbox.py
from __future__ import absolute_import from tkinter import Listbox from tkinter.constants import DISABLED from tkinter.constants import END from tkinter.constants import HORIZONTAL from tkinter.constants import VERTICAL from tkinter.ttk import Scrollbar from .eventor import Eventor from .vidget import Vidget # clas...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/EE/Experiment.py
import json import logging import os import signal import sys import _thread import threading import time from ..Proposer import get_proposer, SPECIAL_EXIT_PROPOSERS from .Job import Job from .Resource import get_resource_manager from ..aup import BasicConfig from ..utils import set_default_keyvalue, check_missing_key...
PypiClean
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/doc/widgets/aggregate.md
Aggregate ========= Aggregate data by second, minute, hour, day, week, month, or year. **Inputs** - Time series: Time series as output by **As Timeseries** widget. **Outputs** - Time series: Aggregated time series. **Aggregate** joins together instances at the same level of granularity. In other words, if aggrega...
PypiClean
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/setupInfo.py
import time MetaData = { 'name': 'CocoRPy27', 'long_name': 'Coco/R for Python 2.7', 'version': '1.4.1', 'build_date': time.strftime( '%Y-%m-%d %H:%M:%S GMT', time.gmtime() ), 'description': 'Python implementation of the famous CoCo/R LL(k) compiler generator porte...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/data/dataset/vision/objects365.py
import json import os from collections import defaultdict import cv2 import numpy as np from .meta_vision import VisionDataset class Objects365(VisionDataset): r"""`Objects365 <https://www.objects365.org/overview.html>`_ Dataset.""" supported_order = ( "image", "boxes", "boxes_categ...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/client/downloads.py
import datetime import io import os import pathlib import typing import inspect import asyncio from ..crypto import AES from .. import utils, helpers, errors, hints from ..requestiter import RequestIter from ..tl import TLObject, types, functions try: import aiohttp except ImportError: aiohttp = None if typ...
PypiClean
/FuncsForSPO-0.0.3.10.tar.gz/FuncsForSPO-0.0.3.10/README.md
# FuncsForSPO - Funcoes para Selenium; Python; Openpyxl; SQLite3 ## pip install FuncsForSPO ### Antes de tudo instale o Psutil para evitar erros. (pip install psutil) Aqui voce achara funcoes produzidas para ter maior agilidade nos desenvolvimentos nas tecnologias abaixo: * Selenium * Existem diversas funcoes em ...
PypiClean
/NREL_farms-1.0.5-py3-none-any.whl/farms/disc.py
import numpy as np from farms import SOLAR_CONSTANT def disc(ghi, sza, doy, pressure=1013.25, sza_lim=87): """Estimate DNI from GHI using the DISC model. *Warning: should only be used for cloudy FARMS data. The DISC algorithm converts global horizontal irradiance to direct normal irradiance through...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/vtkViewer/vtkViewer.py
from __future__ import unicode_literals __docformat__ = 'restructuredtext' __all__ = ["VTKViewer"] from future.utils import text_to_native_str __all__ = [text_to_native_str(n) for n in __all__] from fipy.viewers.viewer import AbstractViewer from fipy.tests.doctestPlus import register_skipper def _checkForTVTK(): ...
PypiClean
/NSPython-0.3.zip/NSPython-0.3/nspython/foundation.py
from nspython import * from nspython import _ffi _ = load('Foundation') class NSString(NSObject): def __str__(self): return _ffi.string(self.UTF8String()) at = lambda s: NSString.stringWithUTF8String_(_ffi.new('char[]', s.encode('utf8'))) # classes class NSAffineTransform(NSObject): pass class NSA...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/_inspect.py
from __future__ import absolute_import import inspect from inspect import cleandoc, getdoc, getfile, isclass, ismodule, signature from typing import Any, Collection, Iterable, Optional, Tuple, Type, Union from .console import Group, RenderableType from .control import escape_control_codes from .highlighter import Rep...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/NeodroidVision-0.3.0.dist-info/LICENSE.md
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distrib...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/modules/material-select/material-select-view.min.js
!function(e){var t={};function i(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/plot2d/common.js.uncompressed.js
define("dojox/charting/plot2d/common", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/Color", "dojox/gfx", "dojox/lang/functional", "../scaler/common"], function(lang, arr, Color, g, df, sc){ var common = lang.getObject("dojox.charting.plot2d.common", true); return lang.mixin(common, { doIfLoaded: sc...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/filter/exists_series.py
from pathlib import Path from loguru import logger from flexget import plugin from flexget.config_schema import one_or_more from flexget.event import event from flexget.utils.log import log_once from flexget.utils.template import RenderError try: # NOTE: Importing other plugins is discouraged! from flexget.c...
PypiClean
/Container-WhooshAlchemyPlus-0.7.5.post3.tar.gz/Container-WhooshAlchemyPlus-0.7.5.post3/README.rst
Welcome to Flask-WhooshAlchemyPlus! =================================== Forked from `gyllstromk/Flask-WhooshAlchemy <https://github.com/gyllstromk/Flask-WhooshAlchemy>`_ Flask-WhooshAlchemyPlus is a Flask extension that integrates the text-search functionality of `Whoosh <https://bitbucket.org/mchaput/whoosh/wiki/Hom...
PypiClean
/Cartopy-0.22.0-cp310-cp310-macosx_11_0_arm64.whl/cartopy/mpl/style.py
import warnings # Define the matplotlib style aliases that cartopy can expand. # Note: This should not contain the plural aliases # (e.g. linewidths -> linewidth). # This is an intended duplication of # https://github.com/matplotlib/matplotlib/blob/\ # 2d2dab511d22b6cc9c812cfbcca6df3f9bf3094a/lib/matplotlib/patches...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/media/scripting.py
from __future__ import unicode_literals from django.db.models import Max from django.contrib.contenttypes.models import ContentType from cubane.lib.file import get_caption_from_filename from cubane.media.models import Media, MediaFolder from cubane.cms.models import MediaGallery from cubane.tasks import TaskRunner impo...
PypiClean
/Nose-PyVersion-0.1b1.tar.gz/Nose-PyVersion-0.1b1/nose_pyversion.py
from nose.plugins import Plugin import os class PyVersion(Plugin): """Nose plugin that excludes files based on python version and file name If a filename has the format [NAME][SEPARATOR]py[VERSION].py and VERSION doesn't match [major][minor][micro], [major][minor] or [major] the file will be exclude...
PypiClean
/META_TOOLBOX-2023.3.tar.gz/META_TOOLBOX-2023.3/META_TOOLBOX/META_FA_LIBRARY.py
import numpy as np import META_TOOLBOX.META_CO_LIBRARY as META_CL # CHAOTIC SEARCH def CHAOTIC_SEARCH(OF_FUNCTION, ITER, X_BEST, OF_BEST, FIT_BEST, N_CHAOTICSEARCHS, ALPHA_CHAOTIC, D, N_ITER, X_L, X_U, NULL_DIC): # INITIALIZATION VARIABLES K = N_CHAOTICSEARCHS CH = [] X_BESTNEW = X_BEST OF_BESTNEW ...
PypiClean
/ISPManCCP-0.0.1alpha3.1.tar.bz2/ISPManCCP-0.0.1alpha3.1/extra-packages/pyperl-1.0.1d/perlmod.py
class PerlClass: def __init__(self, name = None, module=None, ctor="new"): self.name = name self.module = module or name self.ctor = ctor def __getattr__(self, name): if name[:2] == '__': if name[-2:] != '__' and name != '__': return PerlClass...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/readable-stream/lib/_stream_duplex.js
// a duplex stream is just a stream that is both readable and writable. // Since JS doesn't have multiple prototypal inheritance, this class // prototypally inherits from Readable, and then parasitically from // Writable. 'use strict'; /*<replacement>*/ var objectKeys = Object.keys || function (obj) { var keys = [...
PypiClean
/Gbtestapi0.2-0.1a10.tar.gz/Gbtestapi0.2-0.1a10/src/gailbot/core/engines/watson/recognize_callback.py
from typing import Callable, Any, List, Dict import sys # Local imports # Third party imports from copy import deepcopy from ibm_watson.websocket import RecognizeCallback from gailbot.core.utils.logger import makelogger logger = makelogger("callback") class WatsonException(Exception): def __init__(self, msg: st...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/terms/advectionTerm.py
from __future__ import division from __future__ import unicode_literals __docformat__ = 'restructuredtext' __all__ = ["AdvectionTerm"] from future.utils import text_to_native_str __all__ = [text_to_native_str(n) for n in __all__] from fipy.tools.numerix import MA from fipy.tools import numerix from fipy.terms.firstO...
PypiClean
/MishMash-0.3.3.tar.gz/MishMash-0.3.3/README.rst
======== MishMash ======== |Build Status| |License| |PyPI| |Python versions| |Coverage| |Status| Music database and web interface. Features -------- * MishMash is a music database using `Python`_ and `SQLAlchemy`_. * A command-line tool for building and managing a music database. * Web browser interface (using `Pyr...
PypiClean
/NeuroRuler-1.7.tar.gz/NeuroRuler-1.7/src/GUI/helpers.py
import platform import string from typing import Union import SimpleITK as sitk import numpy as np from PyQt6.QtGui import QImage, QColor, QPixmap, QIcon, QFont from PyQt6 import QtWidgets from PyQt6.QtWidgets import ( QApplication, QDialog, QLabel, QMainWindow, QFileDialog, QMenu, QVBoxLa...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/status.py
from types import TracebackType from typing import Optional, Type from .console import Console, RenderableType from .jupyter import JupyterMixin from .live import Live from .spinner import Spinner from .style import StyleType class Status(JupyterMixin): """Displays a status indicator with a 'spinner' animation. ...
PypiClean
/OccuPy-0.1.13.tar.gz/OccuPy-0.1.13/docs/Tutorials/gui.md
# GUI overview The GUI of OccuPy allows you to open maps and view them as sliced 2D images. OccuPy is not meant to visualize the map in any great detail, this is for you to make appropriate consistency checks. For fine analysis, the GUI will call out to open ChimeraX, a much more sophisticated visualization tool. <br...
PypiClean
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/optimize/model/modelbase.py
import abc, importlib import warnings from distutils.version import LooseVersion import arrow import numpy as np import pandas as pd try: from sklearn import __version__ as sklearn_version from sklearn import metrics except ImportError: warnings.warn("not installed sklean,please pip install --upgrade sklear...
PypiClean
/Neodroid-0.4.9-py36-none-any.whl/neodroid/utilities/launcher/environment_launcher.py
__author__ = "Christian Heider Nielsen" def launch_environment( environment_name, *, path_to_executables_directory, ip="127.0.0.1", port=5252, headless=False, ): """ :param environment_name: :param path_to_executables_directory: :param ip: :param port: :param headless: :return: """ ...
PypiClean
/Lenovo%20Ai%20Client-1.0.tar.gz/Lenovo Ai Client-1.0/aiClient/NaturalLanguageProcessingClient.py
from aiClient.AiBaseClient import AiBase from aiClient.utils.NLPRequestProcess import process_request_sentiment,process_request_standford from aiClient.utils.ApiUrl import AiUrl class NaturalLanguageProcessing(AiBase): """ """ def chinese_sentiment_analysis(self, text): """ """ ...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mysql/mysql_proxy/data_types/mysql_packets/handshake_packet.py
from mindsdb.api.mysql.mysql_proxy.data_types.mysql_packet import Packet from mindsdb.api.mysql.mysql_proxy.libs.constants.mysql import ( DEFAULT_AUTH_METHOD, DEFAULT_COALLITION_ID, FILLER_FOR_WIRESHARK_DUMP, SERVER_STATUS_AUTOCOMMIT ) from mindsdb.api.mysql.mysql_proxy.classes.server_capabilities impor...
PypiClean
/Flask-COMBO-JSONAPI-1.1.0.tar.gz/Flask-COMBO-JSONAPI-1.1.0/flask_combo_jsonapi/data_layers/alchemy.py
from typing import TYPE_CHECKING if TYPE_CHECKING: from sqlalchemy.orm import Session as SessionType from sqlalchemy.orm.exc import NoResultFound from sqlalchemy.orm.collections import InstrumentedList from sqlalchemy.inspection import inspect from sqlalchemy.orm.attributes import QueryableAttribute from sqlalche...
PypiClean
/Autoneuro-0.0.1.tar.gz/Autoneuro-0.0.1/application/fileOperations/file_methods.py
import pickle import os import shutil from application.logger.appLogger import AppLogger class FileOperation: """ This class shall be used to save the model after training and load the saved model for prediction. Written By: iNeuron Intelligence Ve...
PypiClean
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/doctrees/nbsphinx/_build/html/_build/doctrees/nbsphinx/_build/html/_build/html/_build/html/hn_module_tutorial.ipynb
# Tutorial for the HN module of HavNegpy package ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt import os import HavNegpy as dd %matplotlib qt os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44') def create_dataframe(f): col_names = ['Freq', 'T', 'Eps1', 'Eps2'] #f ...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/search/da.py
from typing import Dict import snowballstemmer from sphinx.search import SearchLanguage, parse_stop_word danish_stopwords = parse_stop_word(''' | source: http://snowball.tartarus.org/algorithms/danish/stop.txt og | and i | in jeg | I det | that (dem. pronoun)/it (pers. pronoun...
PypiClean
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/learning_algorithms/rls.py
from collections import defaultdict from typing import Optional, Sequence, Union, Dict, Callable, List, Tuple import numpy as np import torch import torch.nn.functional as F from .learning_algorithm import LearningAlgorithm from ..learning_algorithms.tbptt import TBPTT from ..transforms.base import ToDevice from ..ut...
PypiClean
/JsOnXmLSe814Rializer749-1.0.tar.gz/JsOnXmLSe814Rializer749-1.0/Lab_3/serializers/jsonserializer.py
import re from typing import Iterator from ..helpers.constants import JSON, BOOL_TYPE, TYPE_MAPPING, JSON_TYPE, PRIMITIVE_TYPES from ..helpers.functions import get_items, get_key, to_number, create_object, type_from_str class JSONSerializer: def dumps(self, obj) -> str: if type(obj) == str: r...
PypiClean
/McsPyDataTools-0.4.3.tar.gz/McsPyDataTools-0.4.3/McsPy/McsCMOSMEA.py
import h5py from builtins import IndexError import datetime import math import uuid import collections import numpy as np import pandas as pd from numpy import rec import itertools from numbers import Number from inspect import signature import re from typing import Dict from . import ureg, McsHdf5Types, McsHdf5Protoc...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/sk.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['sk']={"editor":"Editor formátovaného textu","editorPanel":"Panel editora formátovaného textu","common":{"editorHelp":"Stlačením ALT 0 spustiť pomocníka","browse...
PypiClean
/FORD-6.2.5-py3-none-any.whl/ford/tipuesearch/tipuesearch.min.js
(function($){$.fn.tipuesearch=function(options){var set=$.extend({"show":7,"newWindow":false,"showURL":true,"minimumLength":3,"descriptiveWords":25,"highlightTerms":true,"highlightEveryTerm":false,"mode":"static","liveDescription":"*","liveContent":"*","contentLocation":"tipuesearch/tipuesearch_content.json"},options);...
PypiClean
/Halocoin-0.1.0.4.tar.gz/Halocoin-0.1.0.4/halocoin/static/dashboard/js/arrive.min.js
var Arrive=function(e,t,n){"use strict";function r(e,t,n){l.addMethod(t,n,e.unbindEvent),l.addMethod(t,n,e.unbindEventWithSelectorOrCallback),l.addMethod(t,n,e.unbindEventWithSelectorAndCallback)}function i(e){e.arrive=f.bindEvent,r(f,e,"unbindArrive"),e.leave=d.bindEvent,r(d,e,"unbindLeave")}if(e.MutationObserver&&"un...
PypiClean
/AdyanUtils-0.7.2.tar.gz/AdyanUtils-0.7.2/Utils/crawler/middleware.py
import logging import random import time from requests import sessions from scrapy import signals from scrapy.core.downloader.handlers.http11 import TunnelError, TimeoutError from scrapy.http import TextResponse from twisted.internet import defer from twisted.internet import reactor from twisted.internet.error impor...
PypiClean
/FAdo3-1.0.tar.gz/FAdo3-1.0/FAdo/comboperations.py
from __future__ import absolute_import from __future__ import unicode_literals from __future__ import print_function from __future__ import division from future import standard_library standard_library.install_aliases() from builtins import * from .fa import * from .common import * def starConcat(fa1, fa2, strict=Fa...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-haml.js
(function(Prism) { Prism.languages.haml = { // Multiline stuff should appear before the rest 'multiline-comment': { pattern: /((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ]+.+)*/, lookbehind: true, alias: 'comment' }, 'multiline-code': [ { pattern: /((?:^|\r?\n|\r)([\t ]*)(?:[~-]|...
PypiClean
/maxbot-0.3.0b2-py3-none-any.whl/maxbot/dialog_manager.py
import logging from .context import RpcContext, RpcRequest, TurnContext, get_utc_time_default from .flows.dialog_flow import DialogFlow from .resources import InlineResources from .rpc import RpcManager from .schemas import CommandSchema, DialogSchema, MessageSchema logger = logging.getLogger(__name__) class Dialog...
PypiClean
/Flask-Boto3-0.3.2.tar.gz/Flask-Boto3-0.3.2/flask_boto3/__init__.py
import boto3 from botocore.exceptions import UnknownServiceError from flask import _app_ctx_stack as stack from flask import current_app class Boto3(object): """Stores a bunch of boto3 conectors inside Flask's application context for easier handling inside view functions. All connectors are stored inside...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcommon/view/CheckUpdatesDialog.py
from qtpy import QtCore, QtWidgets import imswitch class CheckUpdatesDialog(QtWidgets.QDialog): """ Dialog for checking for ImSwitch updates. """ def __init__(self, parent=None, *args, **kwargs): super().__init__(parent, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint, ...
PypiClean
/Hello-World-Package-0.1.3.tar.gz/Hello-World-Package-0.1.3/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/granwilliams/hello-wo...
PypiClean
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/flaskbb/core/tokens.py
from abc import abstractmethod import attr from flask_babelplus import gettext as _ from .._compat import ABC from .exceptions import BaseFlaskBBError class TokenError(BaseFlaskBBError): """ Raised when there is an issue with deserializing a token. Has helper classmethods to ensure consistent verbia...
PypiClean
/EsiPy-1.2.3.tar.gz/EsiPy-1.2.3/README.rst
EsiPy |PyPI Version| |PyPI Python Version| ========================================== |Build Status| |Coverage Status| |Code Health| | **Full Documentation can be found here:** | |Documentation Status| What is EsiPy ------------- EsiPy is a python swagger client, taking advantages of `pyswagger`_ while rewriting so...
PypiClean
/ClueBin-0.2.3.tar.gz/ClueBin-0.2.3/src/cluebin/pastebin.py
import webob from StringIO import StringIO import pygments from pygments import lexers from pygments import formatters from pygments import util from xml.sax import saxutils from cluebin import paste as pastebase from cluebin import utils class PasteBinApp(object): """WSGI app representing a pastebin. >>> ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/vcs/mercurial.py
import os import tempfile import re import sys from pip.util import call_subprocess from pip.util import display_path, rmtree from pip.log import logger from pip.vcs import vcs, VersionControl from pip.download import path_to_url from pip.backwardcompat import ConfigParser class Mercurial(VersionControl): name = ...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/arithfns/basic.py
from mathics.builtin.arithmetic import _MPMathFunction, create_infix from mathics.builtin.base import BinaryOperator, Builtin, PrefixOperator, SympyFunction from mathics.core.atoms import ( Complex, Integer, Integer1, Integer3, Integer310, IntegerM1, Number, Rational, RationalOneHalf...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/mathpnl.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def mathpnl(path): """mathpnl Data loads lazily. Type data(mathpnl) into the console. A dat...
PypiClean
/AdaptivePELE-1.7.1.tar.gz/AdaptivePELE-1.7.1/README.rst
============ AdaptivePELE ============ |MIT license| |GitHub release| |PyPI release| |Conda release| |DOI| AdaptivePELE is a Python module to perform enhancing sampling of molecular simulation built around the Protein Energy Landscape Exploration method (`PELE <https://pele.bsc.es/pele.wt>`_) developed in the Electr...
PypiClean
/CallFlow-1.3.0.tar.gz/CallFlow-1.3.0/callflow/modules/gradients.py
import numpy as np import pandas as pd # TODO: Avoid the performance error in the future pass. import warnings import callflow from callflow.utils.utils import histogram from callflow.utils.df import df_unique from callflow.datastructures.metrics import TIME_COLUMNS from callflow.modules.histogram import Histogram L...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/rdtypes/ANY/NSEC3.py
# Copyright (C) 2004-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND...
PypiClean
/Mesh-Client-2.1.2.tar.gz/Mesh-Client-2.1.2/SECURITY.md
# Security NHS Digital takes security and the protection of private data extremely seriously. If you believe you have found a vulnerability or other issue which has compromised or could compromise the security of any of our systems and/or private data managed by our systems, please do not hesitate to contact us using ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/sabl/sabl_retinanet_r101_fpn_gn_2x_ms_640_800_coco.py
_base_ = [ '../_base_/models/retinanet_r50_fpn.py', '../_base_/datasets/coco_detection.py', '../_base_/schedules/schedule_2x.py', '../_base_/default_runtime.py' ] # model settings norm_cfg = dict(type='GN', num_groups=32, requires_grad=True) model = dict( backbone=dict( depth=101, init_c...
PypiClean
/Krakatau-noff-v0.20181212.tar.gz/Krakatau-noff-v0.20181212/Krakatau/graph_util.py
import itertools def tarjanSCC(roots, getChildren): """Return a list of strongly connected components in a graph. If getParents is passed instead of getChildren, the result will be topologically sorted. roots - list of root nodes to search from getChildren - function which returns children of a given node...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/ogl/drawn.py
import os.path from .basic import RectangleShape from .oglmisc import * METAFLAGS_OUTLINE = 1 METAFLAGS_ATTACHMENTS = 2 DRAWN_ANGLE_0 = 0 DRAWN_ANGLE_90 = 1 DRAWN_ANGLE_180 = 2 DRAWN_ANGLE_270 = 3 # Drawing operations DRAWOP_SET_PEN = 1 DRAWOP_SET_BRUSH =...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/matchzoo/modules/stacked_brnn.py
import torch import torch.nn as nn from torch.nn import functional as F class StackedBRNN(nn.Module): """ Stacked Bi-directional RNNs. Differs from standard PyTorch library in that it has the option to save and concat the hidden states between layers. (i.e. the output hidden size for each sequenc...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/mysql/features.py
import operator from django.db.backends.base.features import BaseDatabaseFeatures from django.utils.functional import cached_property class DatabaseFeatures(BaseDatabaseFeatures): empty_fetchmany_value = () allows_group_by_selected_pks = True related_fields_match_type = True # MySQL doesn't support s...
PypiClean
/CluSex-2.3.6-py3-none-any.whl/clusex/lib/join.py
import numpy as np import argparse import os import sys from clusex.lib.check import CheckKron from clusex.lib.check import CheckFlag from clusex.lib.check import CheckSatReg2 def joinsexcat (maincat,secondcat,output,JoinScale,incFlag=False, red=0.1,minrad = 5): "merges two Sextractor catalogs" f_out =...
PypiClean
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glancer/Pie.py
import os, math, sys, getopt, string import pango import random from gtk import gdk from ..tablemaker import PreferencesTableMaker import threading import cairo, gtk, gobject import matplotlib import numpy, numpy.fft import scipy, scipy.interpolate, scipy.optimize from matplotlib.backends.backend_cairo import RendererC...
PypiClean
/CT3-3.3.2-cp310-cp310-macosx_10_9_x86_64.whl/Cheetah/Tests/Test.py
import sys args_l = len(sys.argv) if args_l == 1: pass elif args_l == 2 and sys.argv[1] == 'test': pass elif args_l == 2 and sys.argv[1] == '--namemapper-pure': try: from Cheetah import _namemapper # noqa except ImportError: # _namemapper hasn't been compiled so Tests/NameMapper.py ...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/fieldwidgets.py
from flask_babel import lazy_gettext as _ from wtforms import widgets from wtforms.widgets import html_params, HTMLString class DatePickerWidget(object): """ Date Time picker from Eonasdan GitHub """ data_template = ( '<div class="input-group date appbuilder_date" id="datepicker">' '...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/autotuning/constants.py
# DeepSpeed Team ######################################### # autotunner implementation constants ######################################### import os DEFAULT_TEMPLATE_PATH_ZERO_0 = os.path.join(os.path.dirname(os.path.realpath(__file__)), "config_templates", "template_zero...
PypiClean
/NREL_shift-0.1.0a0-py3-none-any.whl/shift/cli/shift.py
# All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # 1. Redistributions of source code must retain the above copyright notice, this # list of conditions and the following disclaimer. # 2. Redist...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/shadycss/scoping-shim.min.js
(function(){/* Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http...
PypiClean
/Hummingbird-XFEL-1.3b0.tar.gz/Hummingbird-XFEL-1.3b0/hummingbird/simulation/simulated_tof.py
import os import numpy as np # Loading a test object (binary hummingbird logo) #test_object = np.load(os.path.dirname(os.path.realpath(__file__)) + '/test_object.npy')*1e-2 #test_diffraction = np.abs(np.fft.fftshift(np.fft.fft2(test_object)))**2 class Simulation: """ Base class for simulation of typical sing...
PypiClean
/ESautomation-0.0.1-py3-none-any.whl/es-automation/es_setup_efk.py
from main_set_conns import es_user_mixin, es_role_mixin class es_get_input_data_mixin(es_user_mixin): """ Get efk team's configuration and variables. """ def get_efkteam_file(self, path: str)->dict: """ Get EFK team's configs and validation. Paramrs: Return: - ma...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/climate_metrics/tcr.py
import logging import os from copy import deepcopy from pprint import pformat import cf_units import iris import iris.coord_categorisation import matplotlib.pyplot as plt import numpy as np import seaborn as sns import yaml from scipy import stats from esmvaltool.diag_scripts.shared import ( ProvenanceLogger, ...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/app/services/image_file_storage.py
import json from abc import ABC, abstractmethod from pathlib import Path from queue import Queue from typing import Dict, Optional, Union from PIL import Image, PngImagePlugin from PIL.Image import Image as PILImageType from send2trash import send2trash from invokeai.app.util.thumbnails import get_thumbnail_name, mak...
PypiClean
/Dangee-0.0.3.tar.gz/Dangee-0.0.3/dangee/util/__init__.py
import copy import operator from quark.Objects.bytecodeobject import BytecodeObject from quark.Evaluator.pyeval import PyEval MAX_SEARCH_LAYER = 3 def get_method_bytecode(method_analysis): """ Return the corresponding bytecode according to the given class name and method name. :param method_analysis...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/gfl_head.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule, Scale from mmcv.runner import force_fp32 from mmdet.core import (anchor_inside_flags, bbox_overlaps, build_assigner, build_sampler, images_to_levels, multi_apply, reduce_m...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/htdocs/static/djblets/js/jquery.gravy.backboneUtils.js
$.fn.bindClass = function(model, modelPropName, className, options) { function updateClassName() { var value = model.get(modelPropName); if (options && options.inverse) { value = !value; } if (value) { this.addClass(className); } else { t...
PypiClean