id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/bedframe/auth/_provisions.py
__copyright__ = "Copyright (C) 2014 Ivan D Vasin" __docformat__ = "restructuredtext" import abc as _abc from functools import reduce as _reduce from itertools import chain as _chain, combinations as _combinations from operator import or_ as _or from spruce.collections \ import frozenusetset as _frozenusetset, us...
PypiClean
/Flask-Sphinx-Themes-1.0.2.tar.gz/Flask-Sphinx-Themes-1.0.2/flask_sphinx_themes/pygments.py
from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal class FlaskyStyle(Style): background_color = "#f8f8f8" default_style = "" styles = { # No corresponding class for the follow...
PypiClean
/BYONDTools-0.1.8.zip/BYONDTools-0.1.8/byond/DMI/utils.py
import os, logging, sys, traceback, fnmatch from . import DMI # TODO: Need to switch to logging. - N3X def compare(theirsfile, minefile, parser, reportstream, **kwargs): # print('\tD %s -> %s' % (theirsfile, minefile)) theirs = [] theirsDMI = None mine = [] mineDMI = None states = [] ...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-ui-router/release/angular-ui-router.min.js
"undefined"!=typeof module&&"undefined"!=typeof exports&&module.exports===exports&&(module.exports="ui.router"),function(a,b,c){"use strict";function d(a,b){return N(new(N(function(){},{prototype:a})),b)}function e(a){return M(arguments,function(b){b!==a&&M(b,function(b,c){a.hasOwnProperty(c)||(a[c]=b)})}),a}function f...
PypiClean
/Mesa-Geo-0.5.0.tar.gz/Mesa-Geo-0.5.0/mesa_geo/raster_layers.py
from __future__ import annotations import copy import itertools import math import uuid from typing import ( Any, Iterable, Iterator, Sequence, cast, overload, ) import numpy as np import rasterio as rio from affine import Affine from mesa.agent import Agent from mesa.space import Coordinate, ...
PypiClean
/ACedIt-1.2.1.tar.gz/ACedIt-1.2.1/README.rst
A command line tool to run your code against sample test cases. Without leaving the terminal :) Supported sites ^^^^^^^^^^^^^^^ - Codeforces - Codechef - Spoj - Hackerrank - Atcoder Supported languages ^^^^^^^^^^^^^^^^^^^ - C - C++ - Python - Java - Ruby - Haskell Installation ^^^^^^^^^^^^ Build from so...
PypiClean
/CFS_Manager-1.3.0a0.tar.gz/CFS_Manager-1.3.0a0/cfs_manager/zipper.py
import sys, os, pathlib, shutil from datetime import datetime from zipfile import ZipFile homedir = str(os.getcwd()) def zip_file(file, currdir): os.makedirs(os.path.join(homedir, "archives"), exist_ok=True) with ZipFile((os.path.join("archives", file) + '.zip'), 'a') as newzip: newzip.write(os.path.j...
PypiClean
/CantrelleJouisseMamannTest-0.0.1.tar.gz/CantrelleJouisseMamannTest-0.0.1/philcantrel/module_carte.py
# In[1]: import cartopy.crs as ccrs import cartopy.feature as cfeature import matplotlib.pyplot as plt import imageio import moviepy from moviepy.editor import ImageSequenceClip #fonction pour voir les dechets en France selon les annees voulues def plot_geo_time_value(x, y, df, lim_metropole = [-5, 10, 41, 52], ...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/projection/manifold.py
import logging import warnings from collections.abc import Iterable from itertools import chain import numpy as np import scipy.sparse as sp from scipy.linalg import eigh as lapack_eigh from scipy.sparse.linalg import eigsh as arpack_eigh import sklearn.manifold as skl_manifold import Orange from Orange.data import T...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/plugins/glances_cloud.py
import threading from glances.compat import iteritems, to_ascii from glances.plugins.glances_plugin import GlancesPlugin from glances.logger import logger # Import plugin specific dependency try: import requests except ImportError as e: import_error_tag = True # Display debug message if import error l...
PypiClean
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/plot.py
import pathlib from distutils.version import LooseVersion from typing import List, Union import matplotlib import matplotlib.pyplot as plt import matplotlib.transforms as transforms import tqdm from numpy import arange, median, nan_to_num from .load_data_ import axl_filename from .result_set import ResultSet titleTy...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/calculated_bill_use_request_py3.py
from msrest.serialization import Model class CalculatedBillUseRequest(Model): """Defines how use is calculated for a calculated bill distribution. :param readings_channel_id: Use monthly channel data readings to calculate bill use <span class='property-internal'>Required (defined)</span> :type read...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/environment_types/generic_docker_oci_runtime.py
from abc import abstractmethod from inginious.frontend.environment_types.env_type import FrontendEnvType class GenericDockerOCIRuntime(FrontendEnvType): @property @abstractmethod def id(self): pass @property @abstractmethod def name(self): pass def check_task_environment...
PypiClean
/Bedframe-0.13.5.tar.gz/Bedframe-0.13.5/bedframe/_responses/_redirect.py
__copyright__ = "Copyright (C) 2014 Ivan D Vasin" __docformat__ = "restructuredtext" from . import _authinfo as _authinfo_responses from . import _core as _responses_core from . import _exc as _exc_responses WebResponseRedirectionResponseFacetType = \ _responses_core.web_response_facettype_enum\ ('web redi...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/form/_ListBase.js.uncompressed.js
define("dijit/form/_ListBase", [ "dojo/_base/declare", // declare "dojo/window" // winUtils.scrollIntoView ], function(declare, winUtils){ // module: // dijit/form/_ListBase // summary: // Focus-less menu to handle UI events consistently return declare( "dijit.form._ListBase", null, { // summary: // Focus-less...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/toc/plugin.js
(function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id); var fragments = id....
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/wcs/v11/parameters.py
from eoxserver.services.ows.wcs.parameters import ( CoverageRenderParams, CoverageDescriptionRenderParams ) from eoxserver.services.subset import Subsets, Trim class WCS11CoverageDescrptionRenderParams(CoverageDescriptionRenderParams): coverage_ids_key_name = "identifier" def __init__(self, coverages): ...
PypiClean
/Envelopes-0.4.tar.gz/Envelopes-0.4/envelopes/local.py
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ...
PypiClean
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/torchdistill/models/custom/bottleneck/classification/inception.py
from collections import OrderedDict from torch import nn from torchvision.models import inception_v3 from torchdistill.models.custom.bottleneck.base import BottleneckBase from torchdistill.models.custom.bottleneck.processor import get_bottleneck_processor from torchdistill.models.registry import register_model_class,...
PypiClean
/HTML4Vision-0.4.3.tar.gz/HTML4Vision-0.4.3/html4vision/table.py
from __future__ import print_function import os from codecs import open from collections import namedtuple import dominate from dominate.tags import * from dominate.util import text from .common import * from .thumbs import * Col = namedtuple('Col', 'type, name, content, subset, style, href') Col.__new__.__defaults...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mysql/mysql_proxy/utilities/lightwood_dtype.py
class dtype: """ Definitions of all data types currently supported. Dtypes currently supported include: - **Numerical**: Data that should be represented in the form of a number. Currently ``integer``, ``float``, and ``quantity`` are supported. - **Categorical**: Data that represents a class or label a...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTestv2/functional/TestCredit.py
import os, sys from _ast import TryExcept from http.client import EXPECTATION_FAILED lib_path = os.path.abspath('../all') sys.path.append(lib_path) from SetupTest import * import unittest class TestCredit(unittest.TestCase): def testSimpleCreditWithCard(self): credit = litleXmlFields.credit() ...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/drivers/jittor_driver/single_device.py
from typing import Dict, Union, Tuple, Callable, Optional from .jittor_driver import JittorDriver from .utils import replace_batch_sampler, replace_sampler from fastNLP.core.utils import auto_param_call from fastNLP.core.utils.utils import _get_fun_msg from fastNLP.envs.imports import _NEED_IMPORT_JITTOR from fastNLP....
PypiClean
/Dtls-1.2.0.tar.gz/Dtls-1.2.0/dtls/openssl.py
# Copyright 2012 Ray Brown # # 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 # # The License is also distributed with this work in the file n...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/fa.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.lang} object, for the * Persian language. */ /**#@+ @type String @example */ /** * Constains the dictionary of la...
PypiClean
/EmbyPy-0.6.6.4.tar.gz/EmbyPy-0.6.6.4/docs/embypy.objects.Folder.rst
EmbyPy Folders ===================== .. automodule:: embypy.objects :show-inheritance: .. autosummary:: Folder.child_count Folder.cumulative_run_time Folder.items Playlist.songs Playlist.add_items Playlist.remove_items BoxSet.movies BoxSet.series MusicAlbum.album_artists MusicAlbum...
PypiClean
/Becky-0.7.tar.gz/Becky-0.7/becky_cli/becky/providers/remote_provider.py
import os import glob import shelve import tempfile import uuid from shutil import copyfile from becky_cli.becky.utils.utils import remove_prefix, join_file_path, path_to_folders """ A remote backup provider that can backup files from the local system to a remote machine. """ class RemoteProvider: def __init_...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/SoC2006/THF/Checkers/Checkers.py
import Axon import sys from Kamaelia.UI.OpenGL.OpenGLDisplay import OpenGLDisplay from Kamaelia.UI.OpenGL.OpenGLComponent import OpenGLComponent from CheckersBoard import CheckersBoard from CheckersPiece import CheckersPiece from CheckersInteractor import CheckersInteractor class Checkers(Axon.AdaptiveCommsComponent...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/hydrolysis/src/ast-utils/import-parse.ts
'use strict'; import * as dom5 from 'dom5'; var p = dom5.predicates; var isHtmlImportNode = p.AND( p.hasTagName('link'), p.hasAttrValue('rel', 'import'), p.NOT( p.hasAttrValue('type', 'css') ) ); var isStyleNode = p.OR( // inline style p.hasTagName('style'), // external stylesheet p.AND( p.ha...
PypiClean
/GenRisk-0.3.0.tar.gz/GenRisk-0.3.0/src/genrisk/utils.py
import matplotlib.pyplot as plt import numpy as np import pandas as pd from qmplot import qqplot from tqdm import tqdm from pybiomart import Dataset from textwrap import wrap def gene_length_normalize(*, genes_info, genes_col='HGNC symbol', length_col='gene_length', scores_df, samples_col): """ Normalize dat...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/shop/basket/views.py
from __future__ import unicode_literals from django.conf import settings from django.db.models import Q from django.http import Http404, HttpResponseRedirect, HttpResponse from django.views.decorators.http import require_POST from django.core.urlresolvers import reverse from django.shortcuts import get_object_or_404 fr...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/153_2_155471.py
from genice2.cell import cellvectors import genice2.lattices import numpy as np desc = { "ref": { "153_2_155471": "Engel 2018" }, "usage": "No options available.", "brief": "Hypothetical zeolitic ice" } class Lattice(genice2.lattices.Lattice): def __init__(self): self.cell = cellve...
PypiClean
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/consensus/zmq_service.py
from dgt_sdk.consensus.service import Service from dgt_sdk.consensus.service import Block from dgt_sdk.consensus import exceptions from dgt_sdk.protobuf import consensus_pb2 from dgt_sdk.protobuf.validator_pb2 import Message from dgt_sdk.protobuf.consensus_pb2 import ConsensusPeerMessageNew,ConsensusPeerMessageHeader ...
PypiClean
/GelReportModels-7.8.0.tar.gz/GelReportModels-7.8.0/protocols/migration/migration_participant_120_to_participant_130.py
from protocols import participant_1_2_0 from protocols import participant_1_3_0 from protocols.migration.base_migration import BaseMigration class MigrateParticipant120To130(BaseMigration): old_model = participant_1_2_0 new_model = participant_1_3_0 def migrate_pedigree(self, old_pedigree): """ ...
PypiClean
/Boorunaut-0.4.3-py3-none-any.whl/booru/static/booru/bootstrap-toggle-master/js/bootstrap-toggle.min.js
+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.toggle"),f="object"==typeof b&&b;e||d.data("bs.toggle",e=new c(this,f)),"string"==typeof b&&e[b]&&e[b]()})}var c=function(b,c){this.$element=a(b),this.options=a.extend({},this.defaults(),c),this.render()};c.VERSION="2.2.0",c....
PypiClean
/BigchainDB-2.2.2.tar.gz/BigchainDB-2.2.2/bigchaindb/web/views/transactions.py
import logging from flask import current_app, request, jsonify from flask_restful import Resource, reqparse from bigchaindb.common.transaction_mode_types import BROADCAST_TX_ASYNC from bigchaindb.common.exceptions import SchemaValidationError, ValidationError from bigchaindb.web.views.base import make_error from bigc...
PypiClean
/Flask_AppBuilder-4.3.6-py3-none-any.whl/flask_appbuilder/security/sqla/apis/user/schema.py
from flask_appbuilder.security.sqla.models import User from marshmallow import fields, Schema from marshmallow.validate import Length from .validator import PasswordComplexityValidator active_description = ( "Is user active?" "It's not a good policy to remove a user, just make it inactive" ) email_description = "...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/kidutils.py
from kid.parser import START, TEXT, END from turbogears import config # use plain_gettext because Kid's template strings are always evaluated # immediately from turbogears.i18n.tg_gettext import plain_gettext as gettext def translate(item, attr=None): """Translates the text of element plus the text of all child e...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/ai/fmodels/tools/ema.py
import math from copy import deepcopy import torch import torch.nn as nn def copy_attr(a, b, include=(), exclude=()): # Copy attributes from b to a, options to only include [...] and to exclude [...] for k, v in b.__dict__.items(): if (len(include) and k not in include) or k.startswith("_") or k in e...
PypiClean
/ERP-0.27.tar.gz/ERP-0.27/erp/base/directory/models.py
from datetime import datetime from django.db import models from django.contrib.auth.models import GroupManager from django.utils.translation import ugettext_lazy as _ from erp.base.enterprise.models import Corporation, CorpUser SEX_CHOICES = ( ('m', _('Male')), ('f', _('Female')), ) CAT_CHOICES = ( ('h...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/et.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['et']={"editor":"Rikkalik tekstiredaktor","editorPanel":"Rikkaliku tekstiredaktori paneel","common":{"editorHelp":"Abi saamiseks vajuta ALT 0","browseServer":"Se...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/basis.py
from gqcms import Determinant def seniorityBasis(seniority_number, sites, nalpha, nbeta): """ Create a basis of the seniority number """ if seniority_number == 0 and (nalpha+nbeta)%2 == 1: raise ValueError("seniority number zero not possible with odd number of electrons") ref_det...
PypiClean
/ChatGPT-Cloud-0.6.6.tar.gz/ChatGPT-Cloud-0.6.6/src/pandora_cloud/flask/static/_next/static/chunks/pages/payments/success-c423ec16521d5906.js
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[425],{63605:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/payments/success",function(){return n(1557)}])},1557:function(t,e,n){"use strict";n.r(e),n.d(e,{PAYMENTS_SUCCESS_URL:function(){return g},__N_SSP:function(){return b},default:function(){ret...
PypiClean
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Background/simulationpractice.rst
.. _simulation-practice: =================== Simulation Practice =================== Ensuring good practice when simulation modelling is important to get meaningful analyses from the models. This is shown in :ref:`Tutorial IV <tutorial-iv>`. A recommended resource on the subject is [SW14]_. This page will briefly sum...
PypiClean
/ESGScraper-1.0.0.tar.gz/ESGScraper-1.0.0/README.md
# Companies ESG Scraper ![image](https://user-images.githubusercontent.com/86231288/131497638-3a32eceb-b610-455c-ac8e-6c11816fb856.png) This repository is created to build a dataset of companies' financial metrics and its corresponding ESG and CSR metrics. The ESG information has been collected from 5 different publ...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/tutorials/scripts/quantity_spherical_viz.py
import numpy as np import matplotlib.pyplot as plt from hyperion.model import ModelOutput from hyperion.util.constants import au # Read in the model m = ModelOutput('quantity_spherical.rtout') # Extract the quantities g = m.get_quantities() # Get the wall positions for r and theta rw, tw = g.r_wall / au, g.t_wall ...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_erosnsapphosycophanthexcom.py
# Copyright 2011 Fanficdownloader team, 2018 FanFicFare team # # 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...
PypiClean
/MAGINE-0.1.5.tar.gz/MAGINE-0.1.5/magine/networks/databases/kegg_kgml.py
import gzip import logging import math import os from bioservices import KEGG import defusedxml.cElementTree as et import networkx as nx from magine.data.storage import network_data_dir import magine.networks.utils as utils try: import cPickle as pickle except: import pickle kegg = KEGG() kegg.TIMEOUT = 100...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/compression/compress.py
# DeepSpeed Team import re from .helper import compression_preparation, fix_compression, recursive_getattr, is_module_compressible from .config import get_compression_config from ..runtime.config_utils import dict_raise_error_on_duplicate_keys from .constants import * import os import json def check_deepspeed_confi...
PypiClean
/Clyther-0.4-beta.tar.gz/Clyther-0.4-beta/clyther/array/functions.py
import math import clyther as cly import clyther.runtime as clrt import opencl as cl from opencl.type_formats import ctype_from_format from ctypes import c_int, c_float from clyther.array.clarray import CLArray from clyther.array.utils import broadcast_shape from clyther.array.array_context import CLArrayContext as Ar...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/data/ObsCluster.py
from gizela.data.ObsBase import ObsBase from gizela.data.ObsClusterBase import ObsClusterBase from obs_table import obs_cluster_table class ObsCluster(ObsClusterBase): """iterable class for cluster of observations """ def __init__(self, fromid=None, fromdh = None, textTable=None): """cluster of...
PypiClean
/Checkpoint-0.2b1.tar.gz/Checkpoint-0.2b1/checkpoint/database.py
import os import sqlite3 import logging from checkpoint.constants import DELETED, RAISE_ERR, ADDED, DELETED, MODIFIED from checkpoint.error import ( RepositoryError, UninitializedRepositoryError, PropertyNotFound ) __all__ = ['Database'] log = logging.getLogger("checkpoint") #logging.basicConfig(level=logging.D...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/node-fetch/lib/index.es.js
process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); import Stream from 'stream'; import http from 'http'; import Url from 'url'; import whatwgUrl from 'whatwg-url'; import https from 'https'; import zlib from 'zlib'; // Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb37...
PypiClean
/InvestOpenDataTools-1.0.2.tar.gz/InvestOpenDataTools-1.0.2/opendatatools/index/index_agent.py
from opendatatools.common import RestAgent from bs4 import BeautifulSoup import json import pandas as pd import datetime import re index_map={ 'SSEC' : '上证综合指数', 'SZSC1' : '深证成份指数(价格)', 'FTXIN9' : '富时中国A50指数', 'DJSH' : '道琼斯上海指数', 'HSI' : '香港恒生指数 (CFD)', 'DJI' ...
PypiClean
/Antares_Launcher-1.3.0.tar.gz/Antares_Launcher-1.3.0/antareslauncher/main_option_parser.py
from __future__ import annotations import argparse import getpass import pathlib from argparse import RawTextHelpFormatter from dataclasses import dataclass from typing import List, Optional @dataclass class ParserParameters: default_wait_time: int default_time_limit: int default_n_cpu: int studies_i...
PypiClean
/Macrocomplex_Builder-1.2-py3-none-any.whl/Macrocomplex_Builder-1.2.data/scripts/macrocomplex_builder.py
import Bio.PDB import sys import string import os import argparse import timeit import logging import re from macrocomplex_functions import * start = timeit.default_timer() parser = argparse.ArgumentParser(description = "This program is able to reconstruct biological macrocomplexes of protein-protein interactions ...
PypiClean
/LineLengthBear-0.10.0.tar.gz/LineLengthBear-0.10.0/coalaLineLengthBear/LineLengthBear.py
import re from coalib.bearlib import deprecate_settings from coalib.bearlib.spacing.SpacingHelper import SpacingHelper from coalib.bears.LocalBear import LocalBear from coalib.results.Result import Result from coalib.settings.Setting import typed_list class LineLengthBear(LocalBear): LANGUAGES = {'All'} AUTH...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/flow/stokesCavity.py
r"""Solve the Navier-Stokes equation in the viscous limit. Many thanks to Benny Malengier <bm@cage.ugent.be> for reworking this example and actually making it work correctly... see `#209 <https://github.com/usnistgov/fipy/issues/209>`_ This example is an implementation of a rudimentary Stokes solver on a collocated g...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/cache/geopackage.py
# 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 applicable law or agreed to in writing, software # distributed under th...
PypiClean
/ChordBook-0.0.12.tar.gz/ChordBook-0.0.12/chordbook/output/html.py
from chordbook.output._base import CbkOutputter class CbkHtmlOutputter(CbkOutputter): """An HTML outputter for Chordbook""" # FIXME - templating should be external # For now let's just put it here html_head = """ <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8" /> <title>{{TITLE}}</titl...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/metadrive/config/metadrive_onppo_config.py
from easydict import EasyDict from functools import partial from tensorboardX import SummaryWriter import metadrive import gym from ding.envs import BaseEnvManager, SyncSubprocessEnvManager from ding.config import compile_config from ding.model.template import QAC, VAC from ding.policy import PPOPolicy from ding.worker...
PypiClean
/Mirolyubov_lab3_new_version-4.0.1.tar.gz/Mirolyubov_lab3_new_version-4.0.1/Mirolyubov_lab3_new_version/json_serializer.py
from Mirolyubov_lab3_new_version.packing import convert, deconvert from Mirolyubov_lab3_new_version.CONSTANTS import PRIMITIVE_TYPES class Json: def __init__(self): self.pos = 0 self.indent = 0 def dump(self, obj, fp): fp.write(self.dumps(obj)) def dumps(self, obj): retur...
PypiClean
/Eve_ml-0.0.1-py3-none-any.whl/eve/app/trainer.py
import copy import importlib import os import re from abc import abstractmethod from argparse import ArgumentParser from pprint import pprint from typing import Any, Dict, Generator, List, Type from warnings import warn import eve import numpy as np import torch import torch.nn as nn import torch.nn.functional as F fr...
PypiClean
/AIer-0.0.2.tar.gz/AIer-0.0.2/zbmain/models/tf_gru.py
from __future__ import absolute_import, division, print_function, unicode_literals from utils import time import tensorflow as tf import os class GRU(object): ''' GRU生成模式 ''' def __init__(self, vocab_size, embedding_dim, rnn_units, batch_size, buffer_size=10000, checkpoint_dir='./tra...
PypiClean
/OASYS1-oasyswiser-0.3.22.tar.gz/OASYS1-oasyswiser-0.3.22/orangecontrib/wiser/widgets/tools/ow_from_wofry_wavefront_1d.py
import numpy from PyQt5.QtGui import QPalette, QColor, QFont from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.widgets import congruence from orangecontrib.wiser.util.wise_objects import WiserData from orangecontrib.wiser.widgets.gui.ow_wise_w...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/shared/model/remote_key_for_regeneration_request.py
import re # noqa: F401 import sys # noqa: F401 from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/core/files/locks.py
import os __all__ = ('LOCK_EX', 'LOCK_SH', 'LOCK_NB', 'lock', 'unlock') def _fd(f): """Get a filedescriptor from something which could be a file or an fd.""" return f.fileno() if hasattr(f, 'fileno') else f if os.name == 'nt': import msvcrt from ctypes import (sizeof, c_ulong, c_void_p, c_int64, ...
PypiClean
/GautamsX-6.0.13.tar.gz/GautamsX-6.0.13/bot/helper/mirror_utils/download_utils/youtube_dl_download_helper.py
from .download_helper import DownloadHelper import time from yt_dlp import YoutubeDL, DownloadError from bot import download_dict_lock, download_dict from ..status_utils.youtube_dl_download_status import YoutubeDLDownloadStatus import logging import re import threading LOGGER = logging.getLogger(__name__) class MyLo...
PypiClean
/InstaReq-0.1.2.tar.gz/InstaReq-0.1.2/README.md
# InstaReq InstaReq is a Python package that simplifies the process of installing other Python packages along with their dependencies. It aims to resolve and install package dependencies automatically, making it easier for users to set up their Python environments. With InstaReq, users can install packages from both l...
PypiClean
/GlitchTech-AI-0.0.18.tar.gz/GlitchTech-AI-0.0.18/glitchtech_ai/tools/adapter.py
import requests class OpenAi: def __init__(self, **kwargs): self.prompt = kwargs.get("prompt") self.token = kwargs.get("token") self.temperature = kwargs.get("temperature", 0.7) self.persistent_messages = kwargs.get("persistent_messages", True) self.host = "https://api.ope...
PypiClean
/DCA-0.3.4.tar.gz/DCA-0.3.4/docs/source/index.rst
.. autoencoder documentation master file, created by sphinx-quickstart on Sun Apr 9 12:35:06 2017. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to autoencoder's documentation! ======================================= Contents: .. toc...
PypiClean
/FERG-0.9.6.tar.gz/FERG-0.9.6/config.py
#Pour travailler sur les sources import sys sys.path.insert(0,'../FGPIO') sys.path.insert(0,'../FUTIL') sys.path.insert(0,'../isqueeze') try: from FGPIO.mcp300x_hspi_io import * from FGPIO.SCT013_v_io import * from FGPIO.relay_io import * from FGPIO.lcd_i2c_io import * from FGPIO.lum_capteur_io import * from FGP...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/static/djblets/js/extensions/models/extensionManagerModel.es6.js
(function() { /** * Represents an installed extension listed in the Manage Extensions list. * * This stores the various information about the extension that we'll display * to the user, and offers actions for enabling or disabling the extension. */ const InstalledExtension = Backbone.Model.extend({ defaults:...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/algorithm/clusters.py
import bisect import math import random from itertools import chain, islice from mpmath import fsum def robust_min(iterable): minimum = None for i in iterable: if minimum is None or i < minimum: minimum = i return minimum # Publications used for this file: # [Kurita1991] Takito K...
PypiClean
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/scrape/pub/springer.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from ...text.normalize import normalize from ...text.processors import Chain, LStrip, RStrip, Discard from ..clean import Cleaner from ..entity import Enti...
PypiClean
/Hippodamia-0.4.2.tar.gz/Hippodamia-0.4.2/hippodamia/email/spontaneous.py
from hippodamia.enums import StatType from collections import namedtuple from collections import defaultdict from collections import deque from threading import Lock from hippodamia.email.anotifier import ANotifier import datetime from hippodamia.agentshadow.states.state_ids import state_ids class StateTransition: ...
PypiClean
/Babel-lex-2.0-lex-20150116.tar.gz/Babel-lex-2.0-lex-20150116/scripts/import_cldr.py
from optparse import OptionParser import os import re import sys try: from xml.etree import cElementTree as ElementTree except ImportError: from xml.etree import ElementTree from datetime import date # Make sure we're using Babel source, and not some previously installed version sys.path.insert(0, os.path.jo...
PypiClean
/Mesa_Adapted-0.8.7.3-py3-none-any.whl/mesa/visualization/templates/js/BarChartModule.js
'use strict'; // Note: This grouped bar chart is based off the example found here: // https://bl.ocks.org/mbostock/3887051 var BarChartModule = function(fields, canvas_width, canvas_height, sorting, sortingKey) { // Create the overall chart div var chart_div_tag = "<div class='bar chart' width='" + canvas_width...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/tools/customxml/handling.py
__author__ = 'Tom Schaul, tom@idsia.ch' from xml.dom.minidom import parse, getDOMImplementation from pybrain.utilities import fListToString from scipy import zeros import string class XMLHandling: """ general purpose methods for reading, writing and editing XML files. This class should wrap all the XML-specif...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/core/tr/fn/encode.py
from ...adapter import Adapter, adapt, adapt_many, adapt_none from ...domain import UntypedDomain, BooleanDomain, IntegerDomain from ..encode import EncodeBySignature, EncodingState from ...error import Error, translate_guard from ..coerce import coerce from ..binding import RootBinding, LiteralBinding, CastBinding fro...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/backoff.py
import time import random class ExponentialBackoff: """An implementation of the exponential backoff algorithm Provides a convenient interface to implement an exponential backoff for reconnecting or retrying transmissions in a distributed network. Once instantiated, the delay method will return the ne...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/localization/da/MathMenu.js
MathJax.Localization.addTranslation("da","MathMenu",{version:"2.7.9",isLoaded:true,strings:{Show:"Vis matematik som",MathMLcode:"MathML-kode",OriginalMathML:"Oprindelig MathML",TeXCommands:"TeX-kommandoer",AsciiMathInput:"AsciiMathML-input",Original:"Oprindeligt format",ErrorMessage:"Fejlmeddelelse",Annotation:"Note",T...
PypiClean
/BicycleParameters-1.0.0.tar.gz/BicycleParameters-1.0.0/RELEASE.rst
These are the instructions for updating the package. 1. Merge all commits from changes. 2. Update the version info in the README 3. Update the version number in bicycleparameters.__init__.py 4. Update the version number in docs/conf.py. 5. Make sure the docs build. 6. Git tag for the new version. 7. python setup.py re...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/decorators.py
from __future__ import unicode_literals from django.conf import settings from django.http import Http404, HttpResponse, HttpResponseRedirect from django.core.urlresolvers import reverse from cubane.ishop import get_customer_model def shop_login_required(): """ Require authenticated user session, otherwise red...
PypiClean
/Data_Function-0.0.4-py3-none-any.whl/kon/model/ctr_model/layer/core_layer/core_layer.py
import tensorflow as tf from tensorflow_core.python.keras.initializers import glorot_uniform import pandas as pd import warnings import os from kon.model.feature_eng.feature_transform import feature_tool from kon.model.feature_eng.base_model import base_model warnings.filterwarnings("ignore") pd.set_option('display.ma...
PypiClean
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/GSASIIpy3.py
from __future__ import division, print_function import numpy as np import GSASIIpath GSASIIpath.SetVersionNumber("$Revision: 3825 $") # declare symbol (pi) and functions allowed in expressions sind = sin = s = lambda x: np.sin(x*np.pi/180.) cosd = cos = c = lambda x: np.cos(x*np.pi/180.) tand = tan = t = lambda x: np.t...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/sketch/Figure.js
define("dojox/sketch/Figure",["dojo/_base/kernel","dojo/_base/lang","dojo/_base/connect","dojo/_base/html","../gfx","../xml/DomParser","./UndoStack"],function(_1){ _1.experimental("dojox.sketch"); var ta=dojox.sketch; ta.tools={}; ta.registerTool=function(_2,fn){ ta.tools[_2]=fn; }; ta.Figure=function(_3){ var _4=this;...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/entry/qbert_cql_main.py
import torch from copy import deepcopy from dizoo.atari.config.serial.qbert.qbert_qrdqn_generation_data_config import main_config, create_config from ding.entry import serial_pipeline_offline, collect_demo_data, eval, serial_pipeline def train_cql(args): from dizoo.atari.config.serial.qbert.qbert_cql_config impo...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/model/ethnicity_enum.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/utils/itemmodels.py
from numbers import Number, Integral from math import isnan, isinf import operator from collections import namedtuple, Sequence, defaultdict from contextlib import contextmanager from functools import reduce, partial, lru_cache, wraps from itertools import chain from warnings import warn from xml.sax.saxutils import e...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/a11yhelp/dialogs/lang/nb.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","nb",{title:"Instruksjoner for tilgjengelighet",contents:"Innhold for hjelp. Trykk ESC for å lukke denne dialogen.",le...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/views/generic/dates.py
from __future__ import unicode_literals import datetime from django.conf import settings from django.db import models from django.core.exceptions import ImproperlyConfigured from django.http import Http404 from django.utils.encoding import force_text from django.utils.functional import cached_property from django.util...
PypiClean
/Beaver-36.3.1-py3-none-any.whl/beaver/glob_safe_config_parser.py
import ConfigParser import re """ Allows use of square brackets in .ini section names, which are used in some globs. Based off of python 2.6 ConfigParser.RawConfigParser source code with a few modifications. http://hg.python.org/cpython/file/8c4d42c0dc8e/Lib/configparser.py """ class GlobSafeConfigParser(ConfigParser....
PypiClean
/cim-14.12a1.tar.gz/cim-14.12a1/UCTE/Wires.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from UCTE.Core import ConductingEquipment from UCTE.Core import IdentifiedObject from UCTE.Core import Curve from UCTE.Core import Equipment from U...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/lib/lib/offsets.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "Offsets", { enumerable: true, get: ()=>Offsets }); const _bigSign = /*#__PURE__*/ _interopRequireDefault(require("../util/bigSign")); function _interopRequireDefault(obj) { return obj && obj.__es...
PypiClean
/Code_laguilhon-0.0.0.tar.gz/Code_laguilhon-0.0.0/src/Code_laguilhon/Code/A2_photo_win.py
from tkinter import * from tkinter import ttk import tkinter as tk from tkinter.messagebox import * import A2_loading_win as l import A3_export_data_win as e import webbrowser from PIL import ImageTk, Image import Algo_main_CelebA as a import image_celeba as imc ##### FENETRES avec PHOTOS ###### class...
PypiClean
/MAD-0.2.2.zip/MAD-0.2.2/mad/parsetab.py
_tabversion = '3.8' _lr_method = 'LALR' _lr_signature = 'E80E6141C60D1D8ED5A8885F8DCFC64A' _lr_action_items = {'SERVICE':([0,3,4,5,23,25,87,],[1,-4,-5,1,-7,-6,-25,]),'TIMEOUT':([99,117,],[111,111,]),'FAIL':([26,35,36,38,41,42,43,45,46,49,56,59,61,63,88,89,94,95,102,118,122,131,],[36,36,-37,36,-33,-30,-31,-34,-32...
PypiClean
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/tl/types/payments.py
from ...tl.tlobject import TLObject from typing import Optional, List, Union, TYPE_CHECKING import os import struct from datetime import datetime if TYPE_CHECKING: from ...tl.types import TypeBankCardOpenUrl, TypeDataJSON, TypeInvoice, TypePaymentFormMethod, TypePaymentRequestedInfo, TypePaymentSavedCredentials, Ty...
PypiClean
/DeepCell_Tracking-0.6.4.tar.gz/DeepCell_Tracking-0.6.4/deepcell_tracking/isbi_utils.py
"""Utility functions for the ISBI data format.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import glob import warnings import networkx as nx import numpy as np import pandas as pd from tifffile import imread def trk_to_isbi(track, path=None): ...
PypiClean
/Jashu_prob_distributions-1.0.4-py3-none-any.whl/jashu_prob_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean