id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/RecordProfile_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/Godot-0.1.1.zip/Godot-0.1.1/godot/subgraph.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from enthought.traits.api import \ HasTraits, Enum, List, Instance, Str, This from enthought.traits.ui.api import \ View, Item, Group, Tab...
PypiClean
/APIFlask-2.0.1-py3-none-any.whl/apiflask/types.py
import sys import typing as t if sys.version_info >= (3, 8): from typing import Protocol else: # pragma: no cover from typing_extensions import Protocol if t.TYPE_CHECKING: # pragma: no cover from flask.wrappers import Response # noqa: F401 from werkzeug.datastructures import Headers # noqa: F401 ...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/data/utils/pythoneditor/indenter.py
from PyQt5.QtGui import QTextCursor # pylint: disable=pointless-string-statement MAX_SEARCH_OFFSET_LINES = 128 class Indenter: """Qutepart functionality, related to indentation Public attributes: width Indent width useTabs Indent uses Tabs (instead of spaces) """ _...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/directory/helper.py
from office365.runtime.client_result import ClientResult from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.sharepoint.base_entity import BaseEntity from office365.sharepoint.base_entity_collection import BaseEntity...
PypiClean
/DCA-0.3.4.tar.gz/DCA-0.3.4/dca/api.py
import os, tempfile, shutil, random import anndata import numpy as np import scanpy as sc try: import tensorflow as tf except ImportError: raise ImportError('DCA requires TensorFlow v2+. Please follow instructions' ' at https://www.tensorflow.org/install/ to install' ...
PypiClean
/NEU-ipgw-manager-3.0rc0.tar.gz/NEU-ipgw-manager-3.0rc0/ipgw/core/errors_modals.py
from enum import Enum from typing import TypedDict ua = '''Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.114 Safari/537.36''' # target = '''https://pass.neu.edu.cn/tpass/login?service=https%3A%2F%2Fipgw.neu.edu.cn%2Fsrun_cas.php%3Fac_id%3D1''' target = '''https://pas...
PypiClean
/IDEA_SESIT_NEW-0.0.1.tar.gz/IDEA_SESIT_NEW-0.0.1/postprocess_scripts/COPPER_Data_analyze_v4.py
import pandas as pd import numpy as np import os import csv import gc #Initializing all sets ##we can skip runnig some days using smaple_rat, for example if sample_rate=3 it will run days 1,4,7,10,... sample_rate=5 # number of days that we want run rundaynum=365 cap_cost_alter=(365/rundaynum)*sample_rate runhours=ru...
PypiClean
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/funid/src/concatenate.py
from Bio import SeqIO from Bio.SeqRecord import SeqRecord from Bio.Seq import Seq import itertools import logging from functools import reduce import pandas as pd from copy import deepcopy from funid.src import search, hasher from scipy.optimize import minimize import numpy as np import shutil # Combine trimmed align...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/gitlab_handler/gitlab_handler.py
import gitlab from mindsdb.integrations.handlers.gitlab_handler.gitlab_tables import GitlabIssuesTable, GitlabMergeRequestsTable from mindsdb.integrations.libs.api_handler import APIHandler from mindsdb.integrations.libs.response import ( HandlerStatusResponse as StatusResponse, ) from mindsdb.utilities.log impor...
PypiClean
/DoTH_DNS-7.0.0-py3-none-any.whl/dothdns/commands/config/command.py
import os import platform import socket from typing import Dict import click import tzlocal # type: ignore from ...config import ( ABS_PATH_HOME_REPO_DIR_TRAEFIK_HTPASSWD_FILE, CHOICES_ARCHITECTURE, ) from ...helpers import echo_wr from ..cmd_class import CommandWithConfigFile from ..init import init from ....
PypiClean
/MufSim-1.2.2.tar.gz/MufSim-1.2.2/mufsim/insts/intmath.py
import math import random import mufsim.stackitems as si from mufsim.errors import MufRuntimeError from mufsim.insts.base import Instruction, instr @instr("int") class InstInt(Instruction): def execute(self, fr): val = fr.data_pop() if isinstance(val, si.GlobalVar): val = val.value ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/keystrokes/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ // Register a plugin named "sample". CKEDITOR.plugins.add( 'keystrokes', { beforeInit : function( editor ) { /** * Controls keystrokes typing in this editor instance....
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/util/geom.py
from __future__ import division import os import json import codecs from functools import partial from contextlib import closing from mapproxy.grid import tile_grid from mapproxy.compat import string_type, text_type import logging log_config = logging.getLogger('mapproxy.config.coverage') try: import shapely.w...
PypiClean
/AFQ-Browser-0.3.tar.gz/AFQ-Browser-0.3/afqbrowser/site/client/js/third-party/qs.js
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Qs = f()}})(fu...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/sw_TZ.py
languages={'sw': 'Kiswahili'} countries={'DO': 'Jamhuri ya Dominikan', 'FR': 'Ufaransa', 'DM': 'Dominika', 'DJ': 'Jibuti', 'BA': 'Bosnia na Herzegowina', 'BE': 'Ubelgiji', 'HR': 'Kroatia', 'DE': 'Udachi', 'JP': 'Ujapani', 'VC': 'Saint Vincent na Grenadines', 'HU': 'Hungaria', 'JM': 'Jamaika', 'ZA': 'Afrika ya Kusini'...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/68849.cc1266dd97e24db2ecc0.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[68849],{44716:function(n,e,t){var o=t(87537),s=t.n(o),a=t(23645),l=t.n(a)()(s());l.push([n.id,".hljs{display:block;overflow-x:auto;padding:.5em;color:#383a42;background:#fafafa}.hljs-comment,.hljs-quote{color:#...
PypiClean
/ocn-xmlchecker.env.tar.gz/env (copy)/mysite/mysite/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.8/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '&&2z8=q2do_(awogyuv...
PypiClean
/MFD%20Floods-0.1.14.tar.gz/MFD Floods-0.1.14/bin/gdalmove.py
import math import sys from osgeo import gdal, osr ############################################################################### def fmt_loc(srs_obj, loc): if srs_obj.IsProjected(): return '%12.3f %12.3f' % (loc[0], loc[1]) return '%12.8f %12.8f' % (loc[0], loc[1]) ##############################...
PypiClean
/GreenHouseEI-1.4.tar.gz/GreenHouseEI-1.4/greenhouseEI/tools.py
__author__ = 'plant-phenotyping' from zipfile import ZipFile from pathlib import Path import os import cv2 import numpy as np import sys import argparse # output the types of images that are available in the folder def info(plant_ID, date, input_path): try: if plant_ID == "" or date == "" or input_path =...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/messages/send_contact.py
from datetime import datetime from typing import Union import newgram from newgram import raw, utils from newgram import types class SendContact: async def send_contact( self: "newgram.Client", chat_id: Union[int, str], phone_number: str, first_name: str, last_name: str =...
PypiClean
/56kyle-pychess-0.4.0.tar.gz/56kyle-pychess-0.4.0/README.md
# Pychess [![Status][status badge]][status badge] [![Tests][github actions badge]][github actions page] [![Codecov][codecov badge]][codecov page] [![Python Version][python version badge]][github page] [![License][license badge]][license] [code of conduct]: https://github.com/56kyle/pychess/blob/master/CODE_OF_CONDUC...
PypiClean
/CSVSee-0.2.tar.gz/CSVSee-0.2/csvsee/utils.py
import csv import re from datetime import datetime, timedelta from csvsee import dates class NoMatch (Exception): """Exception raised when no column name matches a given expression.""" pass def float_or_0(value): """Try to convert ``value`` to a floating-point number. If conversion fails, return ``0...
PypiClean
/FinPy-0.5.tar.gz/FinPy-0.5/scripts/marketsim.py
import sys import csv import matplotlib matplotlib.use('Agg') # fix for matplotlib under multiprocessing import matplotlib.pyplot as plt import matplotlib.dates as mdates import datetime as dt import sets import dateutil from finpy.utils import get_tickdata from finpy.equity import Equity from finpy.portfolio import P...
PypiClean
/Chips-python-2.2.3.tar.gz/Chips-python-2.2.3/chips_c.py
from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_chips_c', [dirname(__file__)]) except ImportError: import _chips_c...
PypiClean
/Ficamacos-0.1.0-py3-none-any.whl/Ficamacos-0.1.0.dist-info/LICENSE.md
MIT License Copyright (c) 2020 Yehao Liu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distrib...
PypiClean
/Apilisk-0.2.1.tar.gz/Apilisk-0.2.1/apilisk/command_line.py
import json import argparse from os.path import expanduser import apilisk.printer from apilisk.runner import Runner from apilisk.exceptions import ApiliskException from apilisk.printer import eprint, vprint from apilisk.apiwatcher_client import ApiwatcherClient from apilisk.junit_formatter import JunitFormatter def _...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/lang/functional/fold.js.uncompressed.js
define("dojox/lang/functional/fold", ["dojo/_base/lang", "dojo/_base/array", "dojo/_base/window", "./lambda"], function(lang, arr, win, df){ // This module adds high-level functions and related constructs: // - "fold" family of functions // Notes: // - missing high-level functions are provided with the compatible AP...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/SliceNodes.py
from nuitka.PythonVersions import python_version from nuitka.specs import BuiltinParameterSpecs from .ConstantRefNodes import ExpressionConstantNoneRef, makeConstantRefNode from .ExpressionBases import ( ExpressionChildHavingBase, ExpressionChildrenHavingBase, ExpressionSpecBasedComputationNoRaiseMixin, ) ...
PypiClean
/GeneralCartesianProduct-0.1.1.tar.gz/GeneralCartesianProduct-0.1.1/README.md
Description ------- `general_cartesian_product` extends the existing functionality of `itertools.product` by variable limits. It's possible to create cartesian products like: ```python i1 i2 i3 [1, 2, 3] x [1, ..., i1] x [0, ..., i2] = [ [1, 1, 0] [1, 1, 1] [2, 1, 0] [2, 1, 1]...
PypiClean
/Akara-2.0.0a4.tar.gz/Akara-2.0.0a4/lib/transform/middleware.py
# Used for locking the cache of XSLT processors import thread # Used to check whether or not an XSLT stylesheet has been modified from stat import ST_MTIME from os import stat import amara from amara.lib import iri from amara.lib import inputsource from amara.xpath.util import parameterize from amara.xslt.processor im...
PypiClean
/Flask-PicoCMS-0.0.6.tar.gz/Flask-PicoCMS-0.0.6/flask_picocms.py
__version__ = "0.0.6" import os import shutil import toml import json from datetime import datetime from flask import current_app from peewee import * # Find the stack on which we want to store the database connection. # Starting with Flask 0.9, the _app_ctx_stack is the correct one, # before that we need to use the ...
PypiClean
/Ferro-0.3.0-py3-none-any.whl/ferro/data.py
from warnings import warn import re import copy # used for creating Ilkg compensated copies of exp data from os import listdir from os.path import join, isfile import matplotlib.pyplot as plt import numpy as np import csv from mpldatacursor import datacursor from scipy.optimize import curve_fit from scipy import signa...
PypiClean
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/__init__.py
import os import sys # ---------------------------------------------------------------------------------------------------------------------- HOME = os.path.realpath(os.path.join(os.path.dirname(__file__), '..')) CONTROLLER_PULL_END_POINT = 'tcp://127.0.0.1:7771' CONTROLLER_LOCKSTEP_END_POINT = 'tcp://127.0.0.1:7772'...
PypiClean
/Nirjas-1.0.1.tar.gz/Nirjas-1.0.1/nirjas/languages/kotlin.py
from nirjas.binder import CommentSyntax, contSingleLines from nirjas.output import ScanOutput, SingleLine, MultiLine def kotlinExtractor(file): """ Extract comments from Kotlin file. :param file: File to scan :type file: string :return: Scan output :rtype: ScanOutput """ result = Comme...
PypiClean
/AdroitFisherman-0.0.22.tar.gz/AdroitFisherman-0.0.22/README.md
example! ```python from AdroitFisherman.DoubleLinkedListWithoutHeadNode.Double import DoubleLinkedListWithoutHeadNode_double if __name__ == '__main__': operate=0 test=DoubleLinkedListWithoutHeadNode_double() while operate<16: print("1:Init linear list 2:Destroy linear list 3:Clear Linear list", end=...
PypiClean
/Dwarf-0.1.3.tar.gz/Dwarf-0.1.3/readme.md
# DWARF, a tiny content publishing engine. Dwarf is an out-in-the-open exercise in building a content publishing tool with [python](http://python.org) and [Flask](). Dwarf currently wants to be a static site generator very much like its heroes [Jekyll](http://jekyllrb.com/) and [Pelican](http://blog.getpelican.com/)....
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/appdirs.py
# Dev Notes: # - MSDN on where to store app data files: # http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120121120120 # - Mac OS X: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/index.html # - XDG spec for Un*x: http://standards.freedesktop.org/basedir-spec/bas...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/sites/sites/filelist_api.py
from http import HTTPStatus from loguru import logger from flexget import plugin from flexget.config_schema import one_or_more from flexget.entry import Entry from flexget.event import event from flexget.utils.requests import RequestException from flexget.utils.requests import Session as RequestSession logger = logg...
PypiClean
/Anvil%20Test-0.0.2.tar.gz/Anvil Test-0.0.2/src/anvil_test/session.py
import sys import time from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys from selenium.webdriver.support import expected_conditions as ec from selenium.webdriver.support.ui import WebDriverWait browsers = { 'firefox': webdriver.Firefox, ...
PypiClean
/MSM_PELE-1.1.1-py3-none-any.whl/Helpers/pele_env.py
import os import shutil import warnings import random import logging import MSM_PELE.constants as cs class EnviroBuilder(object): """ Base class wher the needed pele environment is build by creating folders and files """ def __init__(self, folders, files, args): self.folders = fol...
PypiClean
/osvm-1.3.0-py3-none-any.whl/osvm/tdsvm.py
import numpy as np from numpy import linalg import cvxopt import cvxopt.solvers def linear_kernel(x1, x2): return np.dot(x1, x2) class TRAD_SVM(object): def __init__(self, kernel=linear_kernel, C=None): self.kernel = kernel self.C = C if self.C is not None: self.C = float(self.C) ...
PypiClean
/AuthKit-0.4.5.tar.gz/AuthKit-0.4.5/examples/user/database/app.py
from paste.httpexceptions import HTTPExceptionHandler from authkit.authenticate import middleware from authkit.authorize import authorize from authkit.permissions import ValidAuthKitUser, HasAuthKitRole, HasAuthKitGroup class SampleApp: # Application setup def __call__(self, environ, start_response): ...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/synglob.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: synglob.py 69887 2011-12-01 19:54:13Z CJP $" __revision__ = "$Revision: 69887 $" #-----------------------------------------------------------------------------# # Dependencies import wx.stc as stc # The language identifiers and the EXT_MAP have been ...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/extensions/TeX/mhchem.js
MathJax.Extension["TeX/mhchem"]={version:"2.0"};MathJax.Hub.Register.StartupHook("TeX Jax Ready",function(){var c=MathJax.InputJax.TeX,a=c.Definitions.macros;var b=MathJax.Object.Subclass({string:"",i:0,tex:"",atom:false,sup:"",sub:"",Init:function(d){this.string=d},ParseTable:{"-":"Minus","+":"Plus","(":"Open",")":"Cl...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/qrdqn.py
from typing import List, Dict, Any, Tuple, Union import copy import torch from ding.torch_utils import Adam, to_device from ding.rl_utils import qrdqn_nstep_td_data, qrdqn_nstep_td_error, get_train_sample, get_nstep_return_data from ding.model import model_wrap from ding.utils import POLICY_REGISTRY from ding.utils.da...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/src/js/vendor/pro/toastr.js
; (function (define) { define(['jquery'], function ($) { return (function () { var $container; var listener; var toastId = 0; var toastType = { error: 'error', info: 'info', success: 'success', wa...
PypiClean
/FormEncode-2.0.1.tar.gz/FormEncode-2.0.1/formencode/compound.py
from __future__ import absolute_import from .api import (FancyValidator, Identity, Invalid, NoDefault, Validator, is_validator) import six __all__ = ['CompoundValidator', 'Any', 'All', 'Pipe'] ############################################################ ## Compound Validators ####################################...
PypiClean
/Corrfunc-2.5.1.tar.gz/Corrfunc-2.5.1/docs/source/modules/converting_rp_pi_counts.rst
.. _converting_rp_pi_counts: Converting :math:`(r_p, \pi)` pairs into a projected correlation function ========================================================================== Pair counts in :math:`(r_p, \pi)` can be converted into a projected correlation function by using the helper function :py:mod:`Corrfunc.util...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/marked/marked.min.js
(function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||a.defaults,this.rules=p.normal,this.options.gfm&&(this.options.tables?this.rules=p.tables:this.rules=p.gfm)}function t(e,t){if(this.options=t||a.defaults,this.links=e,this.rules=u.normal,this.renderer=this.options.renderer||new n,this.rendere...
PypiClean
/HanLabImport-0.1.1.tar.gz/HanLabImport-0.1.1/README.md
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/HanLabImport)](https://www.python.org/downloads/) [![Downloads](https://static.pepy.tech/badge/hanlabimport)](https://pepy.tech/project/hanlabimport) HanLabImport is a support package for DNPLab to import data recorded in the lab of Prof. Song-I Han. Fo...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/collections/BinaryTree.js
if(!dojo._hasResource["dojox.collections.BinaryTree"]){ dojo._hasResource["dojox.collections.BinaryTree"]=true; dojo.provide("dojox.collections.BinaryTree"); dojo.require("dojox.collections._base"); dojox.collections.BinaryTree=function(_1){ function _2(_3,_4,_5){ this.value=_3||null; this.right=_4||null; this.left=_5|...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/piggy_bank_event_array.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type,...
PypiClean
/MJOLNIRGui-0.9.10.tar.gz/MJOLNIRGui-0.9.10/src/main/python/README.md
# MJOLNIR-GUI This is a graphical interface for MJOLNIR: https://github.com/Jakob-Lass/MJOLNIR/. It provides an easy interface to the major capabilities of MJOLNIR, and is meant as a data exploration and early stage exploration tool. For a full set of features, generate scripts via the Gui and customize them using the ...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/static/js/input_list.js
function generate_list(list_id) { var x, i, j, l, ll, selElmnt, a, b, c, d, temp; x = document.getElementById(list_id+"_inputList"); // div.inputList // console.log(x) selElmnt = x.getElementsByTagName("select")[0]; // div.select // console.log(selElmnt.selectedIndex) for (var i = 0; i < sel...
PypiClean
/FiddleOptions-1.2.4.tar.gz/FiddleOptions-1.2.4/mercury/client/api/marketdata_api.py
from __future__ import absolute_import # python 2 and python 3 compatibility library import six from datetime import date from threading import RLock from cachetools import cachedmethod, LRUCache from cachetools.keys import hashkey from mercury.api_client import ApiClient def skew_hashkey(*args, **kwargs): key...
PypiClean
/Brian2-2.5.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/brian2/devices/device.py
import numbers from weakref import WeakKeyDictionary import numpy as np from brian2.codegen.targets import codegen_targets from brian2.core.names import find_name from brian2.core.preferences import prefs from brian2.core.variables import ArrayVariable, DynamicArrayVariable from brian2.memory.dynamicarray import Dyna...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/libs/chart.min.js
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}}(function(){return function o(r,s,l){function u(e,t)...
PypiClean
/NKDemo-0.0.0.tar.gz/NKDemo-0.0.0/orangedemo/OWDataSamplerC.py
import numpy import Orange.data from Orange.widgets import settings from Orange.widgets.widget import OWWidget, Input, Output from Orange.widgets.utils.widgetpreview import WidgetPreview from Orange.widgets import gui class OWDataSamplerC(OWWidget): name = "Data Sampler (C)" description = "Randomly selects a...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/admin/backup.rst
.. _backup: Backing up and moving Weblate ============================= .. _projectbackup: Project level backups --------------------- .. versionadded:: 4.14 .. warning:: Restoring backups is only supported when using PostgreSQL or MariaDB 10.5+ as a database. The project backups all translation content from ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/Reports.py
from nuitka.containers.OrderedDicts import OrderedDict from nuitka.containers.OrderedSets import OrderedSet from nuitka.Tracing import code_generation_logger, optimization_logger _missing_helpers = OrderedDict() _missing_operations = OrderedSet() _missing_trust = OrderedDict() _error_for_missing = False # _error_fo...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/es/symbols/math_digits.js
[{"locale":"es"},{"key":"00B2","mappings":{"default":{"default":"super 2"}},"category":"No"},{"key":"00B3","mappings":{"default":{"default":"super 3"}},"category":"No"},{"key":"00B9","mappings":{"default":{"default":"super 1"}},"category":"No"},{"key":"00BC","mappings":{"default":{"default":"un cuarto"}},"category":"No...
PypiClean
/EISeg-1.1.1-py3-none-any.whl/eiseg/util/vis.py
from functools import lru_cache import cv2 import numpy as np def visualize_instances(imask, bg_color=255, boundaries_color=None, boundaries_width=1, boundaries_alpha=0.8): num_objects = imask.max() + 1 palette = ...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/postprocessing/SeqMetrics/_main.py
import json import warnings import numpy as np from typing import Union from ai4water.utils.utils import ts_features from .utils import msg # TODO remove repeated calculation of mse, std, mean etc # TODO make weights, class attribute # TODO write tests # TODO standardized residual sum of squares # http://documentat...
PypiClean
/AdobeLibManual678-4.3.tar.gz/AdobeLibManual678-4.3/aanalytics2/workspace.py
import pandas as pd import json from typing import Union, IO import time from .requestCreator import RequestCreator from copy import deepcopy class Workspace: """ A class to return data from the getReport method. """ startDate = None endDate = None settings = None def __init__( s...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/mapserver/wcs/base_renderer.py
from django.db.models import Q from eoxserver.core import Component from eoxserver.core.config import get_eoxserver_config from eoxserver.core.decoders import config, typelist from eoxserver.contrib import mapserver as ms from eoxserver.contrib import gdal from eoxserver.render.coverage.objects import Coverage from ...
PypiClean
/Flask_Materialize-0.2.4-py3-none-any.whl/flask_material/static/js/html5shiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&...
PypiClean
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/static/appbuilder/js/respond.min.js
window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML=...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Config/PiModel.py
from LAMDA_SSL.Augmentation.Vision.RandomHorizontalFlip import RandomHorizontalFlip from LAMDA_SSL.Augmentation.Vision.RandomCrop import RandomCrop from LAMDA_SSL.Opitimizer.SGD import SGD from LAMDA_SSL.Scheduler.CosineAnnealingLR import CosineAnnealingLR from LAMDA_SSL.Network.WideResNet import WideResNet from LAMDA_...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/base.py
'''The Controller's Base class ''' import os import re from pylons.i18n.translation import _ as translate from pylons.i18n.translation import set_lang from pylons.i18n import LanguageError from pylons.controllers import WSGIController from pylons import tmpl_context as c from pylons import config from pylons import ...
PypiClean
/CoreMS-1.6.0.tar.gz/CoreMS-1.6.0/corems/molecular_id/search/compoundSearch.py
from threading import Thread from pathlib import Path from pandas import DataFrame from math import exp from numpy import power from corems.molecular_id.factory.EI_SQL import EI_LowRes_SQLite from corems.molecular_id.calc.SpectralSimilarity import SpectralSimilarity class LowResMassSpectralMatch(Thread): def __i...
PypiClean
/41datastructure-1.5.tar.gz/41datastructure-1.5/my_lib/dataStructures/linear/csll.py
from nodes.s_node import SNode ''' class CircularSinglyLinkedList: def __init__(self, head=None): self.head = head self.tail = head self.size = 1 if head else 0 if head: self.tail.next = self.head def insert_head(self, node): if not self.head: sel...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Layer/Vector.js
* @requires OpenLayers/Layer.js * @requires OpenLayers/Renderer.js * @requires OpenLayers/StyleMap.js * @requires OpenLayers/Feature/Vector.js * @requires OpenLayers/Console.js * @requires OpenLayers/Lang.js */ /** * Class: OpenLayers.Layer.Vector * Instances of OpenLayers.Layer.Vector are used to render vect...
PypiClean
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/oauth2/rfc7662/introspection.py
from authlib.consts import default_json_headers from ..rfc6749 import ( TokenEndpoint, InvalidRequestError, UnsupportedTokenTypeError, ) class IntrospectionEndpoint(TokenEndpoint): """Implementation of introspection endpoint which is described in `RFC7662`_. .. _RFC7662: https://tools.ietf.or...
PypiClean
/MikeT_messenger_server-0.4.1.tar.gz/MikeT_messenger_server-0.4.1/server/server/core.py
import threading import logging import select import socket import json import hmac import binascii import os from common.metaclasses import ServerMaker from common.descryptors import Port from common.variables import * from common.utils import send_message, get_message from common.decos import login_required logger =...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/model/interfaces/hamamatsu_mock.py
import ctypes import ctypes.util import time import numpy as np from lantz import Driver from lantz import Q_ from imswitch.imcommon.model import initLogger class HMockCamData: # __init__ # # Create a data object of the appropriate size. # # @param size The size of the data object in bytes. ...
PypiClean
/NERDA_Con-0.0-py3-none-any.whl/NERDA_Con/models.py
from NERDA_Con.datasets import get_conll_data from NERDA_Con.networks import NERDANetwork from NERDA_Con.predictions import predict, predict_text from NERDA_Con.performance import compute_f1_scores, flatten from NERDA_Con.training import train_model, train_model_new_task import pandas as pd import numpy as np import to...
PypiClean
/GaiaXPy-2.1.0.tar.gz/GaiaXPy-2.1.0/gaiaxpy/spectrum/sampled_basis_functions.py
import functools import math import numpy as np from scipy.special import eval_hermite, gamma from gaiaxpy.core import nature, satellite sqrt_4_pi = np.pi ** (-0.25) class SampledBasisFunctions(object): """ Evaluation of a set of basis functions on a user-defined grid. """ def __init__(self, sampl...
PypiClean
/HuMobi-0.1.12-py3-none-any.whl/humobi/misc/utils.py
import numpy as np import pandas as pd from scipy.optimize import fsolve from numba import cuda, jit from math import ceil from Bio import pairwise2 def normalize_chain(dicto): """ Normalizes dictionary values. Used for the Markov Chain normalization. Args: dicto: dictionary to .. Returns: ..d dictionary ""...
PypiClean
/DeCiDa-1.1.5.tar.gz/DeCiDa-1.1.5/decida/StatusDialog.py
import sys import os import tkinter as tk import tkinter.filedialog from decida.DialogBase import DialogBase from decida.ItclObjectx import ItclObjectx class StatusDialog(ItclObjectx, DialogBase): """ **synopsis**: Generic message dialog for status information. *StatusDialog* is a generic dia...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_de-ch.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/core/hooks/visualization.py
import os.path as osp import mmcv import torch from mmcv.runner import HOOKS, Hook from mmcv.runner.dist_utils import master_only from torchvision.utils import save_image @HOOKS.register_module() class VisualizationHook(Hook): """Visualization hook. In this hook, we use the official api `save_image` in torc...
PypiClean
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GallerySlideShowPlot.rst
.. _slideshow-plot: ============== slideshow-plot ============== :class:`CGATReportPlugins.SlideShow.SlideShowPlot` renders a collection of image files as a gallery. Note that this :term:`Renderer` requires the jssor_ javascript library to included in the sphinx_ theme. .. report:: Tracker.TrackerImages :render:...
PypiClean
/CellConstructor-1.3.2.tar.gz/CellConstructor-1.3.2/cellconstructor/Methods.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from hashlib import new from importlib.resources import path from numpy import * import numpy as np import sys, os import symph import scipy, scipy.optimize import cellconstructor as CC import cellconstructor...
PypiClean
/BBQSQL-1.2.tar.gz/BBQSQL-1.2/bbqsql/lib/requester.py
from .query import Query from bbqsql import utilities from bbqsql import settings import requests import gevent from math import sqrt from copy import copy from time import time from difflib import SequenceMatcher __all__ = ['Requester','LooseNumericRequester','LooseTextRequester'] @utilities.debug def requests_...
PypiClean
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/dml/dml.py
from warnings import warn import numpy as np from sklearn.base import TransformerMixin, clone from sklearn.exceptions import NotFittedError from sklearn.linear_model import (ElasticNetCV, LassoCV, LogisticRegressionCV) from sklearn.ensemble import RandomForestRegressor from sklearn.model_selection import KFold, Strat...
PypiClean
/Flask_MonitoringDashboard-3.1.2-py3-none-any.whl/flask_monitoringdashboard/controllers/endpoints.py
import datetime from numpy import median from sqlalchemy import and_ from flask_monitoringdashboard import config from flask_monitoringdashboard.core import cache from flask_monitoringdashboard.core.blueprints import get_blueprint from flask_monitoringdashboard.core.colors import get_color from flask_monitoringdashbo...
PypiClean
/Mecoda_Orange-1.9.0-py3-none-any.whl/mecoda_orange/smartcitizen_search.py
from orangewidget.widget import OWBaseWidget, Output from orangewidget.settings import Setting from orangewidget import gui from orangewidget.utils.widgetpreview import WidgetPreview import Orange.data from Orange.data.pandas_compat import table_from_frame from smartcitizen_connector import ScApiDevice from pandas imp...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/utils/dateparse.py
# We're using regular expressions rather than time.strptime because: # - They provide both validation and parsing. # - They're more flexible for datetimes. # - The date/datetime/time constructors produce friendlier error messages. import datetime import re from django.utils import six from django.utils.timezone impor...
PypiClean
/BittyTax-0.5.1.tar.gz/BittyTax-0.5.1/src/bittytax/import_records.py
import csv import sys from decimal import Decimal, InvalidOperation import dateutil.parser import xlrd from colorama import Back, Fore from tqdm import tqdm, trange from .config import config from .exceptions import ( DataValueError, MissingDataError, TimestampParserError, TransactionParserError, ...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/model/template/pdqn.py
from typing import Union, Optional, Dict from easydict import EasyDict import torch import torch.nn as nn from ding.torch_utils import get_lstm from ding.utils import MODEL_REGISTRY, SequenceType, squeeze from ..common import FCEncoder, ConvEncoder, DiscreteHead, DuelingHead, RegressionHead @MODEL_REGISTRY.register...
PypiClean
/CIRI_long-1.1.0-py3-none-any.whl/CIRI_long/align.py
import re import logging from collections import defaultdict import pysam from CIRI_long import env from CIRI_long.utils import * LOGGER = logging.getLogger('CIRI-long') OPERATION = { 'M': 0, 'I': 1, 'D': 2, 'N': 3, 'S': 4, 'H': 5, 'P': 6, '=': 7, 'X': 8, 0: 'M', 1: 'I', ...
PypiClean
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/fun.py
from unicodedata import normalize from random import choice, random import re from nickometer import nickometer import ibid from ibid.plugins import Processor, match from ibid.config import IntOption, ListOption from ibid.utils import human_join features = {} features['nickometer'] = { 'description': u'Calcula...
PypiClean
/Flask-Bootstraps-3.3.7.8.tar.gz/Flask-Bootstraps-3.3.7.8/flask_bootstraps/__init__.py
import re from flask import Blueprint, current_app, url_for try: from wtforms.fields import HiddenField except ImportError: def is_hidden_field_filter(field): raise RuntimeError('WTForms is not installed.') else: def is_hidden_field_filter(field): return isinstance(field, HiddenField) ...
PypiClean
/MuPhyN-0.1.1.post4-py3-none-any.whl/muphyn/packages/interface/models/graphical_models/resizers/abstract_resizer.py
from typing import Any from PyQt6.QtCore import QPointF, QRectF, QSizeF, Qt, pyqtSignal from PyQt6.QtGui import QPainter from PyQt6.QtWidgets import QGraphicsItem, QGraphicsObject from numpy import minimum from muphyn.packages.interface.models.event_signal_data import EventSignalData #------------------------------...
PypiClean
/IrcTK-0.2.7.tar.gz/IrcTK-0.2.7/irctk/plugins.py
import inspect import re from irctk.threadpool import ThreadPool from irctk.utils import cached_property class Context(object): def __init__(self, line, args): self.line = line self.args = args class PluginHandler(object): def __init__(self, bot): self.bot = bot self.config ...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/getting-started/accessibility.md
--- layout: docs title: Accessibility description: A brief overview of Bootstrap's features and limitations for the creation of accessible content. group: getting-started toc: true --- Bootstrap provides an easy-to-use framework of ready-made styles, layout tools, and interactive components, allowing developers to cre...
PypiClean
/BSPython-1.1.tar.gz/BSPython-1.1/bspy.py
from collections import deque import multiprocessing as mp from sys import version_info import time import os if not os.name == 'nt': mp.set_start_method("fork") class BSPObject: """The main BSP object that enables use of BSP This class keeps track of communication lines, its pid and the total cores ...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/utils/testing/recipe_settings/install_expand_run.py
import argparse import copy import os import subprocess from itertools import product from pathlib import Path import yaml def absolute(path): """Make path into an absolute Path object.""" return Path(os.path.abspath(path)) def linear_expand(filename, cwd): """Create recipes from filename using the rec...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/numerical/lma/lma_numpy.py
# __all__ = ['lma_numpy'] # def objective(qind, E, Ci, Cf, Ct, Cit, pzi, out=2): # q = E.dot(qind) # Q = diags([q.flatten()], [0]) # Di = Cit.dot(Q).dot(Ci) # Df = Cit.dot(Q).dot(Cf) # zi = spsolve(Di, pzi - Df.dot(zf)) # f = zi - zT # if out == 1: # return f # W = diags([zi....
PypiClean