id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/pt-br.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['pt-br']={"editor":"Editor de Rich Text","editorPanel":"Painel do editor de Rich Text","common":{"editorHelp":"Pressione ALT+0 para ajuda","browseServer":"Locali...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/LICENSE.rst
DendroPy Phylogenetic Computing Library Copyright (c) 2010-2015 Jeet Sukumaran and Mark T. Holder. All rights reserved. 1. The DendroPy project source code and associated data files are licensed for redistribution and use in source and binary forms, with or without modification, are permitted provided that t...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/es_CL/__init__.py
from collections import OrderedDict from itertools import zip_longest from typing import Dict from ..es import Provider as PersonProvider class Provider(PersonProvider): formats_male = OrderedDict( [ ("{{given_name_male}} {{last_name}} {{last_name}}", 0.55), ("{{first_name_male}} ...
PypiClean
/Flask-Statsd-Ext-0.0.3.tar.gz/Flask-Statsd-Ext-0.0.3/flask_statsd.py
import time from flask import request, current_app import statsd class Statsd(object): '''Statsd Extension for Flask This extension does a couple things 1. Creates status code and latency metrics for all app request handlers 2. Provides a client with flask-specific metric naming so you don't have ...
PypiClean
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/leaflet.easybutton/easy-button.js
(function(){ // This is for grouping buttons into a bar // takes an array of `L.easyButton`s and // then the usual `.addTo(map)` L.Control.EasyBar = L.Control.extend({ options: { position: 'topleft', // part of leaflet's defaults id: null, // an id to tag the Bar with leafletCl...
PypiClean
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/nlp/corpus.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import gc from nltk.corpus import ChunkedCorpusReader, TaggedCorpusReader, PlaintextCorpusReader, BracketParseCorpusReader from nltk.corpus.reader.util import read_line_b...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/TCP_Systems/HTTP/KamaeliaWebServer.py
# Import socket to get at constants for socketOptions import socket import pprint # We need to import Axon - Kamaelia's core component system - to write Kamaelia components! import Axon # Import the server framework, the HTTP protocol handling, the minimal request handler, and error handlers from Kamaelia.Chassis.Co...
PypiClean
/NlpToolkit-Dictionary-1.0.34.tar.gz/NlpToolkit-Dictionary-1.0.34/Dictionary/TxtWord.py
from __future__ import annotations from Dictionary.Word import Word class TxtWord(Word): __flags: list __morphology: str def __init__(self, name: str, flag=None): """ Another constructor of TxtWord class which takes a String name and a flag as inputs and...
PypiClean
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/core/engines/whisperEngine/parsers.py
import sys import os import json from typing import Dict, List, Any, Tuple from pyannote.core import Segment from gailbot.core.utils.logger import makelogger _DEFAULT_SPEAKER = 0 logger = makelogger("parsers") def parse_into_word_dicts(transcription : Dict) -> List[Dict]: """ Parse the results of the transcrip...
PypiClean
/MultiRunnable-0.17.0a2-py3-none-any.whl/multirunnable/parallel/share.py
from multiprocessing.managers import BaseManager from multiprocessing import managers, Manager from inspect import isclass as inspect_isclass from typing import Dict, Any """ Note: It raises exception about "TypeError: AutoProxy() got an unexpected keyword argument 'manager_owned'" when it has nested manager ...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/src/number-handler.js
(function(scope, testing) { function numberToString(x) { return x.toFixed(3).replace(/0+$/, '').replace(/\.$/, ''); } function clamp(min, max, x) { return Math.min(max, Math.max(min, x)); } function parseNumber(string) { if (/^\s*[-+]?(\d*\.)?\d+\s*$/.test(string)) return Number(string);...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/pong/pong_r2d3_r2d2expert_config.py
from easydict import EasyDict collector_env_num = 8 evaluator_env_num = 8 expert_replay_buffer_size = int(5e3) # TODO(pu) """ agent config """ pong_r2d3_config = dict( exp_name='pong_r2d3_r2d2expert_k0_pho1-4_rbs2e4_ds5e3_seed0', env=dict( collector_env_num=collector_env_num, evaluator_env_num...
PypiClean
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/applications/cell_tracking.py
"""A model that can detect whether 2 cells are same, different, or related.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf import deepcell_tracking from deepcell_toolbox.processing import normalize from deepcell.appl...
PypiClean
/JKBio-1.1.tar.gz/JKBio-1.1/README.md
# JKBio A set of awesome functions & tools for Computational Genomists ![long genome](documentation/genome.jpg) ## Content - **utils**: where a bunch of helper functions and usefull general scripts are stoed - **plots**: a set of plotting tools based on [matplotlib]() and [bokeh]() to make volcano plots / CNV maps...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/taxonomy/stores/store.py
from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.queries.function import FunctionQuery from office365.runtime.types.collections import StringCollection from office365.sharepoint.taxonomy.groups.collection import TermGroupCollection from office365.sharepoint.taxonomy.item import Taxo...
PypiClean
/EpikCord.py-0.4.3.tar.gz/EpikCord.py-0.4.3/EpikCord/message.py
from urllib.parse import quote from .reaction import Reaction from .thread import Thread from .stickers import StickerItem from .components import MessageSelectMenu, MessageButton from .interactions import MessageInteraction from .partials import PartialMember from .role import Role from .mentions import ( Mentione...
PypiClean
/Imaginary-0.0.5.tar.gz/Imaginary-0.0.5/imaginary/test/commandutils.py
import pprint from re import compile, escape as E E # export for other modules from zope.interface import implements from twisted.trial import unittest from twisted.test.proto_helpers import StringTransport from axiom import store, item, attributes from imaginary import iimaginary, obj...
PypiClean
/NBT-1.5.1.tar.gz/NBT-1.5.1/doc/specification.rst
.. _nbt-specification: Named Binary Tag specification ============================== This specification was written by Markus Persson and was available at http://www.minecraft.net/docs/NBT.txt between 2010 and 2011. NBT (Named Binary Tag) is a tag based binary format designed to carry large amounts of binary data wi...
PypiClean
/IndonesiaVolcanoStatusByFaqih-0.0.1.tar.gz/IndonesiaVolcanoStatusByFaqih-0.0.1/README.md
# Indonesian-Volcano-Status The status of Indonesia's volcanoes is above normal ## HOW IT WORK? This package will scrape from Ministry of Energy and Mineral Resources Indonesia (https://vsi.esdm.go.id) to get latest status volcano in indonesia this package will use BeautifulSoup4 and Request, to produce output in the...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/addon/fold/foldcode.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use...
PypiClean
/Finance-Jindowin-1.3.3.tar.gz/Finance-Jindowin-1.3.3/jdw/mfc/entropy/gravity/stock/daily.py
import datetime, pdb import pandas as pd from ultron.tradingday import * from ultron.factor.data.transformer import Transformer from ultron.strategy.strategy import StrategyEngine, create_params from jdw.kdutils.logger import kd_logger from jdw.data.SurfaceAPI import StkFactors as Factors from jdw.data.SurfaceAPI impor...
PypiClean
/MPT5.0.1-0.1.tar.gz/MPT5.0.1-0.1/src/MPT5/make.py
import os import sys import shutil import sqlite3 import update import requests main_direct = ['AI', 'Config', 'Database', 'DCC1', 'GUI', 'GUI\\Temp', 'GUI\\API', 'GUI\\AuiPanel', 'GUI\\Main', #'Locale', 'Locale\\en', 'Locale\\fa', 'Locale\\fr', 'Locale\\gr', 'Locale\\sp', 'Locale\\tr', ...
PypiClean
/MiniMock-1.2.8.tar.gz/MiniMock-1.2.8/docs/changelog.rst
---- News ---- 1.2.8 ----- * python3 (+ tox) support! (Marc Abramowitz) 1.2.7 ----- * Fix for mocking proxy objects. Worked in 1.2.5 but broken in 1.2.6 by the change to allow mocking static methods. Reported by Randy Syring. * bugfix: ``mock_show_attrs`` was immutable after initialization because the ``mock_`` p...
PypiClean
/HermesCache-0.10.0.tar.gz/HermesCache-0.10.0/hermes/backend/redis.py
import time from typing import Any, Dict, Iterable, Optional, Union import redis from . import AbstractBackend, AbstractLock __all__ = 'Backend', class Lock(AbstractLock): ''' Key-aware distributed lock. "Distributed" is in sense of clients, not Redis instances. Implemented as described in `Correct implem...
PypiClean
/OASYS1-XOPPY-1.2.10.tar.gz/OASYS1-XOPPY-1.2.10/orangecontrib/xoppy/widgets/source/tc_slit.py
import sys import numpy from collections import OrderedDict import scipy.constants as codata from PyQt5.QtWidgets import QApplication from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui, congruence from oasys.widgets.exchange import DataExchangeObject fro...
PypiClean
/INTAKE2STAC-0.6.tar.gz/INTAKE2STAC-0.6/CONTRIBUTING.rst
.. highlight:: shell ============ 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://codebase.h...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/Misc/Italic/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXMathJax_Misc-italic"]={directory:"Misc/Italic",family:"STIXMathJax_Misc",style:"italic",testString:"\u00A0\u0250\u0251\u0252\u0253\u0254\u0255\u0256\u0257\u0258\u0259\u025A\u025B\u025C\u025D",32:[0,0,250,0,0],160:[0,0,250,0,0],592:[460,10,444,19,421],593:[460,10,511,17,...
PypiClean
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/ceph/orch/daemon.py
import logging import RhcsQeSdk.core.cli.fabfile as fabfile logger = logging.getLogger(__name__) logger.setLevel(logging.DEBUG) formatter = logging.Formatter( "%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s" ) stream_handler = logging.StreamHandler() stream_handler.setFormatter(formatter) strea...
PypiClean
/Flask-Swag-0.1.2.tar.gz/Flask-Swag-0.1.2/flask_swag/resources/swagger-ui/lib/marked.js
;(function() { /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, hr: /^( *[-*_]){3,} *(?:\n+|$)/, heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, nptable: noop, lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, blockquote: /^( *>[^\n]+(\n(?!def)[^\n]...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/hpbandster/optimizers/bohb.py
import os import time import math import copy import logging import numpy as np import ConfigSpace as CS from hpbandster.core.master import Master from hpbandster.optimizers.iterations import SuccessiveHalving from hpbandster.optimizers.config_generators.bohb import BOHB as CG_BOHB class BOHB(Master): def __init_...
PypiClean
/Aggrescan3D-1.0.2.tar.gz/Aggrescan3D-1.0.2/a3d_gui/utils.py
import gzip import uuid import re import sqlite3 from flask import g from a3d_gui import app from collections import OrderedDict from os.path import join def gunzip(filename): gunzipped = ".".join(filename.split(".")[:-1]) with open(gunzipped, 'w') as f_out: with gzip.open(filename, 'rb') as f_in: ...
PypiClean
/DailyTrends-4.1.tar.gz/DailyTrends-4.1/README.md
# ✨ DailyTrends [FINAL VERSION == 4.1] ✨ [![Downloads](https://pepy.tech/badge/dailytrends/week)](https://pepy.tech/project/dailytrends/week) [![Downloads](https://pepy.tech/badge/dailytrends/month)](https://pepy.tech/project/dailytrends/month) ### [!] All bugs fixed. Update to version 4.0 [!] - The timerange can ...
PypiClean
/Chandler-AmazonPlugin-0.8-r16144.tar.gz/Chandler-AmazonPlugin-0.8-r16144/amazon/AmazonBlocks.py
__parcel__ = "amazon" from application import schema import AmazonKinds import osaf.framework.blocks.Block as Block import osaf.views.detail as Detail from i18n import MessageFactory _ = MessageFactory("Chandler-AmazonPlugin") class AmazonController(Block.Block): def onNewAmazonCollectionEvent(self, event): ...
PypiClean
/Azule_Hair_Transplant-0.0.1.tar.gz/Azule_Hair_Transplant-0.0.1/models/Alignment.py
import torch from torch import nn from models.Net import Net import numpy as np import os from functools import partial from utils.bicubic import BicubicDownSample from tqdm import tqdm import PIL import torchvision from PIL import Image from utils.data_utils import convert_npy_code from models.face_parsing.model impor...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/scripts/Pure/Atoms/get_traj_qe_lazy.py
from typing import List,Tuple,Optional from ase import Atoms # type: ignore from string import digits from os.path import join,exists from os import listdir # Internal Modules from dbgen.core.numeric import roundfloat from dbgen.scripts.Pure.Atoms.json_to_traj import json_...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/map_place_child.py
from msrest.serialization import Model class MapPlaceChild(Model): """MapPlaceChild. :param place_id: The identifier for place :type place_id: int :param place_code: The place code :type place_code: str :param place_info: The place information :type place_info: str :param address: ...
PypiClean
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/preprocessing/emotic/csv_to_numpy.py
import pandas import numpy as np import math from keras.utils import np_utils def csv_to_numpy(csv_path, nb_samples, entry_type, to_file): """Reads entries (different annotations) from a csv file, converts them to integer/list of integers(for multilabel-m...
PypiClean
/JobFunnel-3.0.0.tar.gz/JobFunnel-3.0.0/jobfunnel/backend/scrapers/base.py
import random from abc import ABC, abstractmethod from concurrent.futures import ThreadPoolExecutor, as_completed from multiprocessing import Lock, Manager from time import sleep from typing import Any, Dict, List, Optional from bs4 import BeautifulSoup from requests import Session from requests.adapters import HTTPAd...
PypiClean
/LyricLib-0.0.3.2.tar.gz/LyricLib-0.0.3.2/LICENSE.md
**注意,以下条款或版权声明应当且必须是高于此仓库中任何其他声明的** 1. 此项目项目的全部开发者享有其完整版权,其开发者可以在任一时刻终止以后的源代码开放,若经由其开发者授予特殊权利,则授权对象可以将源代码进行特定的被特殊授权的操作 2. 此项目或(及)其代码允许在 Apache2.0 协议的条款与说明下进行非商业使用 3. 除部分代码特殊声明外,此项目允许对其或(及)其代码进行商业化使用,但是需要经过项目的主要开发者一致授权,同时,授权对象在商业化授权的使用过程中必须依照 Apache2.0 协议的条款与说明 4. 若存在对于此项目中包含的部分代码的特殊开源声明,则此部分代码依照其特定的开源方式授权,但若此部分代码经由此部分...
PypiClean
/Flask-Restless-1.0.0b1.tar.gz/Flask-Restless-1.0.0b1/flask_restless/helpers.py
"""Helper functions for Flask-Restless.""" import datetime import inspect from dateutil.parser import parse as parse_datetime from sqlalchemy import Date from sqlalchemy import DateTime from sqlalchemy import Interval from sqlalchemy import Time from sqlalchemy.exc import NoInspectionAvailable from sqlalchemy.ext.asso...
PypiClean
/Modular_computer_vision_API-0.3.29-py3-none-any.whl/mcvapi/filters/background_detector.py
import cv2, numpy as np from mcvapi.mcvbase import MCVBase class BackgroundDetector(MCVBase): _background = None _background_color = [None,None,None] _background_sum = [None,None,None] _background_average = [None,None,None] _background_counter ...
PypiClean
/Cheetah3-3.2.7a0-cp27-cp27m-macosx_10_13_x86_64.whl/Cheetah/Tests/Performance.py
import hotshot import hotshot.stats import os import sys import unittest from test import pystone import time import Cheetah.NameMapper import Cheetah.Template from Cheetah.compat import unicode # This can be turned on with the `--debug` flag when running the test # and will cause the tests to all just dump out how...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/dungeon_world_maps_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() DESCRIPTOR = _descrip...
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/bill_paid_dates.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
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/AppStore.js
if(!dojo._hasResource["dojox.data.AppStore"]){ dojo._hasResource["dojox.data.AppStore"]=true; dojo.provide("dojox.data.AppStore"); dojo.require("dojox.atom.io.Connection"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojo.data.util.filter"); dojo.experimental("dojox.data.AppStore"); dojo.declare("dojox.da...
PypiClean
/Dandelion-0.17.26-py3-none-any.whl/dandelion/initialization.py
import numpy as np from .util import floatX class Initializer(object): """Base class for parameter tensor initializers. The :class:`Initializer` class represents a weight initializer used to initialize weight parameters in a neural network layer. It should be subclassed when implementing new types of...
PypiClean
/ClueMapperThemer-0.6.3.tar.gz/ClueMapperThemer-0.6.3/src/clue/themer/theme.py
import os from deliverance import wsgimiddleware from deliverance import utils as deliverutils from paste.request import parse_dict_querystring WORKINGDIR = 'cluemapper.workingdir' CONFIG = 'cluemapper.config' class Theme(object): """A Theme. >>> t = Theme('foo', 'bar', '1', '2', '3') >>> t <T...
PypiClean
/MyghtyUtils-0.52.zip/MyghtyUtils-0.52/lib/myghtyutils/buffer.py
from util import * import StringIO import sys, string class BufferDecorator(object): """allows flexible combinations of buffers. """ def __init__(self, buffer): self.buffer = buffer def __getattr__(self, name): return getattr(self.buffer, name) def __repr__(self)...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/doc/source/specs/index.rst
.. 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 ...
PypiClean
/LOONTEST-1.2.3-py3-none-any.whl/loon/l_plot.py
from loonPlotFactory import * from loon_class import loon_l_plot from retrieve_name import * import numpy as np import pandas as pd from tkinter import * def l_plot(x=None, y=None,xlabel=None, ylabel=None, title=None,color = ["grey60"],glyph = ["ccircle"], size = 4,active = [True],selected = [False],showLa...
PypiClean
/Adyan_test-0.2.9-py3-none-any.whl/Adyan/Utils/monitor_rabbit.py
import json import time import traceback import logging from pika.exceptions import ConnectionClosedByBroker, AMQPChannelError, AMQPConnectionError class MonitorRabbit: def __init__( self, rabbit_conn, redis_coon, redis_key=None, callback=None ): """ :param rabbit_conn...
PypiClean
/Avatar_Utils-1.8.11-py3-none-any.whl/avatar_utils/service_accessor/__init__.py
from logging import getLogger from typing import Dict, Optional from flask import current_app from requests import Session from avatar_utils.core.lazy_cached_attribute import LazyCachedAttribute from avatar_utils.sso_helper import FlaskAuthHeader logger = getLogger() class ServiceAccessor: def _make_url(self,...
PypiClean
/Marine_Traffic_API-0.20.1-py3-none-any.whl/marinetrafficapi/events/client.py
import click from marinetrafficapi import constants from marinetrafficapi.bind import bind_request from marinetrafficapi.events.\ EV01_port_calls.models import PortCall from marinetrafficapi.events.\ EV01_port_calls.query_params import EV01QueryParams from marinetrafficapi.events.\ EV02_vessel_events.mod...
PypiClean
/Flask-Fundatio-0.1.tar.gz/Flask-Fundatio-0.1/flask_fundatio/static/js/foundation/foundation.tooltips.js
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.tooltips = { name: 'tooltips', version : '4.2.2', settings : { selector : '.has-tip', additionalInheritableClasses : [], tooltipClass : '.tooltip', appendTo: 'body', 'disable-for-touch': false, ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/report_child_py3.py
from msrest.serialization import Model class ReportChild(Model): """ReportChild. :param version: The version of the report :type version: str :param report_id: The identifier of the report :type report_id: int :param report_code: The report code :type report_code: str :param report_i...
PypiClean
/Amipy-1.0.2.tar.gz/Amipy-1.0.2/amipy/util/dbhelper.py
import pymongo import logging from inspect import isfunction logger = logging.getLogger() CON_MAP = { '=':'$eq', '<':'$lt', '<=':'$lte', '>':'$gt', '>=':'$gte', '!=':'$ne', } class Database(object): """ 对MongoDB数据库对象的封装,提供更高功能的接口使用 """ def __init__(self,settings): ""...
PypiClean
/MASSA_Algorithm-0.9.1-py3-none-any.whl/MASSA_Algorithm/MASSAdescriptors.py
import pandas as pd from rdkit.Chem import Descriptors from rdkit.Chem import rdMolDescriptors from rdkit.DataStructs import cDataStructs def physicochemical_descriptors(file): NumHAcceptors = {} NumHDonors = {} ExactMolWt = {} NumRotatableBonds = {} FractionCSP3 = {} TPSA = {} LogP_WildmanCrippen = {} for i ...
PypiClean
/Keras2Vec-0.1.1.tar.gz/Keras2Vec-0.1.1/keras2vec/keras2vec.py
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf import keras.backend as K from keras.layers import Input, Embedding, Average, Dense, Lambda, Concatenate, Flatten, Dot, Reshape from keras.callbacks import EarlyStopping from keras.optimizers import Adamax, Adam, SGD from keras.backend import ...
PypiClean
/Mopidy-YDisk-0.2.0.tar.gz/Mopidy-YDisk-0.2.0/mopidy_ydisk/tagger.py
from __future__ import absolute_import, unicode_literals import logging import os import shelve import pykka from itertools import cycle from cachetools import cachedmethod from mopidy.audio.scan import Scanner from mopidy.audio.tags import convert_tags_to_track from mopidy.exceptions import ScannerError from six imp...
PypiClean
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/DecisionTree/DecisionCondition.py
from Classification.Attribute.Attribute import Attribute from Classification.Attribute.ContinuousAttribute import ContinuousAttribute from Classification.Attribute.DiscreteAttribute import DiscreteAttribute from Classification.Attribute.DiscreteIndexedAttribute import DiscreteIndexedAttribute from Classification.Instan...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/data/ObjectStore.js
define("dojo/data/ObjectStore",["../_base/lang","../Evented","../_base/declare","../_base/Deferred","../_base/array","../_base/connect","../regexp"],function(_1,_2,_3,_4,_5,_6,_7){ return _3("dojo.data.ObjectStore",[_2],{objectStore:null,constructor:function(_8){ _1.mixin(this,_8); },labelProperty:"label",getValue:func...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/model/party.py
import datetime from sqlalchemy.ext import hybrid from sqlalchemy.types import Date, Unicode, Integer, Boolean from sqlalchemy.sql.expression import and_ from sqlalchemy import orm, schema, sql, ForeignKey from camelot.admin.entity_admin import EntityAdmin from camelot.core.document import documented_entity from cam...
PypiClean
/JoUtil-1.3.3-py3-none-any.whl/JoTools/txkj/encryptionModels.py
import os from Crypto.Cipher import AES import random, struct import configparser import argparse import sys def encrypt_file(key, in_filename, out_filename=None, chunksize=64*1024): """ Encrypts a file using AES (CBC mode) with the given key. key: The encryption key - a string that ...
PypiClean
/Bugs%20Everywhere%20(BEurtle%20fork)-1.5.0.1.-2012-07-16-.zip/Bugs Everywhere (BEurtle fork)-1.5.0.1.-2012-07-16-/libbe/command/init.py
import os.path import libbe import libbe.bugdir import libbe.command import libbe.storage class Init (libbe.command.Command): """Create an on-disk bug repository >>> import os, sys >>> import libbe.storage.vcs >>> import libbe.storage.vcs.base >>> import libbe.util.utility >>> io = libbe.com...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Graph/Spec.py
from __future__ import absolute_import, division, print_function, unicode_literals from _MOM import MOM from _TFL import TFL from _TFL.pyk import pyk import _MOM._Graph.Relation import _TFL._Meta.Object import _TFL._Meta.Once_Property import _TFL.Accessor import itert...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tree/SourceHandling.py
import os import re import sys from nuitka import Options, SourceCodeReferences from nuitka.__past__ import unicode from nuitka.containers.OrderedSets import OrderedSet from nuitka.plugins.Plugins import Plugins from nuitka.PythonVersions import python_version, python_version_str from nuitka.Tracing import general, my...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular-grid/src/ts/expressionService.ts
module awk.grid { export class ExpressionService { private expressionToFunctionCache = <any>{}; private logger: Logger; public init(loggerFactory: LoggerFactory) { this.logger = loggerFactory.create('ExpressionService'); } public evaluate(expression: string, p...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/admin/install.rst
.. _install: Configuration instructions ========================== Installing Weblate ------------------ .. toctree:: :caption: Quick setup guide :maxdepth: 1 :hidden: install/docker install/venv-debian install/venv-suse install/venv-redhat install/venv-macos install/source i...
PypiClean
/Cape-2.0.0.tar.gz/Cape-2.0.0/cape/__init__.py
from six import string_types CHAR_MASK = ((1 << 8) - 1) # Compute a 1 byte version of the encryption key def compute_reduced_key(key, length): reduced_key = 0 # Reduced key computation for i in range(0, length): reduced_key = (reduced_key ^ (key[i] << (i % 8))) & CHAR_MASK return reduced_key ...
PypiClean
/KolejkaCommon-0.1.202308091427-py3-none-any.whl/kolejka/common/parse.py
from kolejka.common import settings import argparse import copy import datetime import json def parse_float_with_modifiers(x, modifiers): if isinstance(x, float): return x if isinstance(x, int): return float(x) modifier = 1 x = str(x).strip() while len(x) > 0 and x[-1] in modifier...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/cache/renderd.py
import time import hashlib try: import json; json except ImportError: json = None try: import requests; requests except ImportError: requests = None from mapproxy.client.log import log_request from mapproxy.cache.tile import TileCreator, Tile from mapproxy.source import SourceError from mapproxy.uti...
PypiClean
/OERPLib_py3-0.8.6-py3-none-any.whl/oerplib/tools/session.py
import os import stat try: from ConfigParser import SafeConfigParser except ImportError: from configparser import SafeConfigParser from oerplib import error def get_all(rc_file='~/.oerplibrc'): """Return all session configurations from the `rc_file` file. >>> import oerplib >>> oerplib.tools...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/forms/dialogs/form.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.dialog.add("form",function(a){var d={action:1,id:1,method:1,enctype:1,target:1};return{title:a.lang.forms.form.title,minWidth:350,minHeight:200,g...
PypiClean
/AlgoSolver-0.1.4.tar.gz/AlgoSolver-0.1.4/Algo_Solver/sorting.py
def bubble_sort(arr): """ This algorithm performs bubble sort on an array to sort it. Args: arr (array): The array we are given. Returns: array: The sorted version of the array. """ array_len = len(arr) for i in range(array_len): for j in range(0, array_len - i - 1)...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/bcm283x/pulseio/PulseIn.py
"""Custom PulseIn Class to read PWM signals""" import time import subprocess import os import atexit import random import struct import sysv_ipc DEBUG = False queues = [] procs = [] # The message queues live outside of python space, and must be formally cleaned! def final(): """In case the program is cancelled or...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/backend/install/invokeai_configure.py
import sys import argparse import io import os import psutil import shutil import textwrap import torch import traceback import yaml import warnings from argparse import Namespace from enum import Enum from pathlib import Path from shutil import get_terminal_size from typing import get_type_hints, get_args, Any from ur...
PypiClean
/Naga-Ml-Model-Apps-0.0.3.tar.gz/Naga-Ml-Model-Apps-0.0.3/README.md
# House prediction web app ---------------------------- This project intention to Predict different House type Prices in different states in AUS. This Model helps to Real estates to quickly predict house prices in AUS. ![reusable-Naga--Ml--Model--Apps-orange (1)](https://user-images.githubusercontent.com/92179722/13...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/tools/template.py
from abc import ABCMeta, abstractmethod from collections import namedtuple import collections import copy import os import logging import subprocess import benchexec import benchexec.result as result import benchexec.util as util class ToolNotFoundException(benchexec.BenchExecException): """ Raised when a to...
PypiClean
/GrandExchangeToolbox-0.1.5-py3-none-any.whl/grandexchange/items.py
import numpy as np import matplotlib.pyplot as plt import yaml import pkgutil from enum import Enum from pydantic import BaseModel, Field from collections import defaultdict from fuzzywuzzy import fuzz class GrandExchangeItem(BaseModel): """Contains the name and identity of the Grand Exchange item""" name: s...
PypiClean
/Cactus-3.3.3.tar.gz/Cactus-3.3.3/cactus/skeleton/static/js/vendor/bootstrap.js
if (!jQuery) { throw new Error("Bootstrap requires jQuery") } /* ======================================================================== * Bootstrap: transition.js v3.0.0 * http://twbs.github.com/bootstrap/javascript.html#transitions * ======================================================================== * Cop...
PypiClean
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/misc.py
import sys from collections import abc import ccdproc import numpy as np from astropy import units as u from astropy.time import Time __all__ = ["MEDCOMB_KEYS_INT", "SUMCOMB_KEYS_INT", "MEDCOMB_KEYS_FLT32", "LACOSMIC_KEYS", "LACOSMIC_CRREJ", "parse_crrej_psf", "get_size", "slicefy", "...
PypiClean
/NHXCrypt-1.2.1.tar.gz/NHXCrypt-1.2.1/README.md
# NHXCrypt NHXCrypt is a tool that uses NHXCrypt--8-128 Algorithms to encrypt and decrypt the files using a single key. # Main Features: - Support for reading and writing data from and to files (Encryption/Decryption) - Using 8, 16, 32, 62 and 128 characters to represent each character to make encryption effect...
PypiClean
/MPInterfaces_Latest-2.0.3.tar.gz/MPInterfaces_Latest-2.0.3/examples/vasp_jobs.py
from __future__ import division, print_function, unicode_literals, \ absolute_import """ This script demonstrates the usage of the module mpinterfaces/calibrate.py to setup and run vasp jobs """ import os from math import sqrt from collections import OrderedDict from pymatgen.io.vasp.inputs import Incar, Poscar...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/group_display_setting.py
from msrest.serialization import Model class GroupDisplaySetting(Model): """Display settings for the user when viewing benchmark charts. :param period_type: Date period type Possible value include 1 (Last Twelve Months), 2 (Last Calendar Year), 3 (Last Fiscal Year), 4 (User Defined Range) <span ...
PypiClean
/Cartopy-0.22.0-cp310-cp310-macosx_11_0_arm64.whl/cartopy/io/srtm.py
import io from pathlib import Path import warnings import numpy as np from cartopy import config import cartopy.crs as ccrs from cartopy.io import Downloader, LocatedImage, RasterSource, fh_getter class _SRTMSource(RasterSource): """ A source of SRTM data, which implements Cartopy's :ref:`RasterSource i...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/sharing/role_type.py
class RoleType: """Specifies the types of role definitions that are available for users and groups.""" None_ = 0 """The role definition has no rights on the site (2).""" Guest = 1 """The role definition has limited right to view pages and specific page elements. This role is used to give users...
PypiClean
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/3126.99b58416.chunk.js
"use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[3126],{63126:function(e,t,n){n.r(t),n.d(t,{conf:function(){return s},language:function(){return o}});var s={comments:{blockComment:["\x3c!--","--\x3e"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{...
PypiClean
/fangnao-0.1.0.tar.gz/FangNao-0.1.0/docs/guides/synapses.rst
Synapse models ============== In this section, the questions that how ``synapses`` model is designed and how to customize a synapse model will be answered. .. contents:: :local: :depth: 1 The design of the ``synapses`` object ------------------------------------- A ``synapses`` object in NumpyBrain represe...
PypiClean
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/const.py
from flask_babel import lazy_gettext """ All constants and messages definitions go here Log messages obey the following rule: LOGMSG_<SEV>_<MODULE>_<NAME> <SEV> :- INF | DEB | WAR | ERR <MODULE> :- SEC Flash messages obey the following rule: FLAMSG_<SEV>_<MODULE>...
PypiClean
/OTLModel/Classes/Onderdeel/Boom.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Abstracten.VegetatieElement import VegetatieElement from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.DtcAanlegBoomvorm import DtcAanlegBoomvorm from OTLMOW.OTLModel.Datatypes.KlBo...
PypiClean
/CygnusX1-1.0.4.tar.gz/CygnusX1-1.0.4/cygnusx1/scraper.py
from typing import List, Tuple from tqdm import tqdm from tqdm.contrib.concurrent import thread_map from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from cygnusx1.config import (GOOGLE_SUGGEST_CLASS, GOOGLE_THUBNAILS_XPATH, GOOGLE_IMAGE_FU...
PypiClean
/BespON-0.6.0.tar.gz/BespON-0.6.0/bespon/fmtversion.py
from __future__ import (division, print_function, absolute_import, unicode_literals) # Version of this module, which will later be convered into a `__version__` # and `__version_info__` once the necessary functions are created __version_tuple__ = (1, 0, 0, 'final', 0) __docformat__ = 'restruc...
PypiClean
/MozPhab-1.4.3-py3-none-any.whl/mozphab/conduit.py
import base64 import datetime import hashlib import json import os import urllib.parse as url_parse import urllib.request as url_request from typing import ( Any, Dict, List, Optional, ) from mozphab import environment from .environment import USER_AGENT from .exceptions import ( CommandError, ...
PypiClean
/LightNER-0.3.0.tar.gz/LightNER-0.3.0/lightner/crf_model/predictor.py
import torch import torch.autograd as autograd import numpy as np import itertools import sys from tqdm import tqdm from lightner.crf_model.crf import CRFDecode class crf_predict(object): """Base class for prediction, provide method to calculate f1 score and accuracy Parameters ---------- device: ``...
PypiClean
/GBSCA_pro-0.1.0.tar.gz/GBSCA_pro-0.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ 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...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/model_parameter_search/_defaults.py
from collections import OrderedDict as _OrderedDict import graphlab as _gl from graphlab.deps import HAS_SKLEARN def _sensible_defaults(model_factory, data=None): _defaults = { _gl.linear_regression.create: _OrderedDict( [('l2_penalty', [0.0, 0.0001, 0.001, 0.01, .1, 1.0, 10.0, 100.0]), ('l1_pena...
PypiClean
/NREL_sup3r-0.1.0-py3-none-any.whl/sup3r/pipeline/pipeline_cli.py
import click import logging from sup3r.pipeline.config import Sup3rPipelineConfig as PipelineConfig from sup3r.pipeline.pipeline import Sup3rPipeline as Pipeline from sup3r import __version__ from rex.utilities.utilities import get_class_properties from rex.utilities.execution import SubprocessManager logger = logg...
PypiClean
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/parsers/equation.py
from phonenumbers.phonenumberutil import NumberParseException from cahoots.parsers.base import BaseParser from cahoots.util import is_number from phonenumbers import phonenumberutil import re import string # pylint: disable=unused-import import math # flake8: noqa class EquationParser(BaseParser): """determines ...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/docs/source/declarative_def_tf.rst
.. _dec_def_tf: declarative model definition for tensorflow ******************************************* We can construct a normal layered model using keras layers by placing the layers in a dictionary. The keys in the dictionary must be a keras layer and optionally can have an identifier separated by an underscore `_...
PypiClean
/CMD_Loading_Bar-1.0.0.tar.gz/CMD_Loading_Bar-1.0.0/loading_bar/loadingbar.py
import sys, math class LoadingBar: SPACES = 70.0 max_count = 0 count = 0 show_bar_after = False message = f'Processing Jobs' stdscr = None CURSOR_UP = '\033[F' ERASE_LINE = '\033[K' def __init__(self, max_count, message=None, show_bar_after=False): self.show_bar_after...
PypiClean