id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/CantrelleJouisseMamannTest-0.0.1.tar.gz/CantrelleJouisseMamannTest-0.0.1/philcantrel/Data_viz_a_packager_propre.py
# In[5]: get_ipython().run_line_magic('matplotlib', 'inline') import matplotlib import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import numpy as np import math from random import sample import os import matplotlib.image as mpimg from collections import Counter import matplotlib.lines as ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/Tooltip.js.uncompressed.js
define("dojox/mobile/Tooltip", [ "dojo/_base/array", // array.forEach "dijit/registry", "dojo/_base/declare", "dojo/_base/lang", "dojo/dom-class", "dojo/dom-construct", "dojo/dom-geometry", "dojo/dom-style", "dijit/place", "dijit/_WidgetBase" ], function(array, registry, declare, lang, domClass, domConstruct,...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/locales/fi.js
(function ($) { "use strict"; $.fn.fileinputLocales.fi = { fileSingle: 'tiedosto', filePlural: 'tiedostot', browseLabel: 'Selaa …', removeLabel: 'Poista', removeTitle: 'Tyhjännä valitut tiedostot', cancelLabel: 'Peruuta', cancelTitle: 'Pe...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/operate/cfscraper.py
from collections import OrderedDict from loguru import logger from flexget import plugin from flexget.event import event from flexget.utils.requests import Session logger = logger.bind(name='cfscraper') class CFScraper: """ Plugin that enables scraping of cloudflare protected sites. Example:: cf...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/levelSet/electroChem/README.rst
========================================= Superconformal Electrodeposition Examples ========================================= The Damascene Process --------------------- State of the art manufacturing of semiconductor devices involves the electrodeposition of copper for on-chip wiring of integrated circuits. In the D...
PypiClean
/Oasys-Canvas-Core-1.0.7.tar.gz/Oasys-Canvas-Core-1.0.7/orangecanvas/document/commands.py
from PyQt5.QtWidgets import QUndoCommand class AddNodeCommand(QUndoCommand): def __init__(self, scheme, node, parent=None): QUndoCommand.__init__(self, "Add %s" % node.title, parent) self.scheme = scheme self.node = node def redo(self): self.scheme.add_node(self.node) def...
PypiClean
/ForeTiS-0.0.1.2.tar.gz/ForeTiS-0.0.1.2/README.md
<div align="left"><img src="https://raw.githubusercontent.com/grimmlab/ForeTiS/master/docs/image/Logo_ForeTiS_Text.png" height="80"/></div> # ForeTiS: A Forecasting Time Series framework [![Python 3.8](https://img.shields.io/badge/Python-3.8-3776AB)](https://www.python.org/downloads/release/python-388/) ForeTiS is a...
PypiClean
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/recording/tools/filters.py
from django.utils.datastructures import SortedDict from helmholtz.core.shortcuts import get_class, get_subclasses from helmholtz.core.schema import cast_queryset, get_subclasses_recursively, create_subclass_lookup def get_available_object_types(model, lookup=None, value=None, leaf_class=True, proxies=False): if no...
PypiClean
/Astropysics-1.0.tar.gz/Astropysics-1.0/astropysics/utils/gen.py
#TODO: implement generalized grid-inverter, possibly tied to modcore.modelgrid1d from __future__ import division,with_statement import numpy as np import re as _re try: #requires Python 2.6 from abc import ABCMeta from abc import abstractmethod from abc import abstractproperty from collections imp...
PypiClean
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/app/modules/console/openvpn_console.py
import typing as t from console import Console, FuncItem from app.utilities.logger import logger from .ovpn_utils import OpenVPNManager class OpenVPNActions: openvpn_manager = OpenVPNManager() @staticmethod def install(callback: t.Callable) -> None: status = OpenVPNActions.openvpn_manager.openvp...
PypiClean
/BicycleParameters-1.0.0.tar.gz/BicycleParameters-1.0.0/bicycleparameters/plot.py
import numpy as np import matplotlib.pyplot as plt def compare_bode_bicycles(bikes, speed, u, y, fig=None): """Returns a figure with the Bode plots of multiple bicycles. Parameters ---------- bikes : list A list of bicycleparameters.Bicycle instances. speed : float The speed at wh...
PypiClean
/Dpowers-0.1.5rc1.tar.gz/Dpowers-0.1.5rc1/Dlib/Dhelpers/baseclasses.py
import collections, traceback, threading, time, weakref, functools from .arghandling import check_type from Dhelpers.launcher import launch from abc import ABC, abstractmethod from inspect import signature def iter_all_vars(cls, condition): for name, obj in vars(cls).items(): if condition(obj): yield na...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/plugins/trustedcoin/kivy.py
from functools import partial from threading import Thread import re from decimal import Decimal from kivy.clock import Clock from electrum.i18n import _ from electrum.plugin import hook from .trustedcoin import TrustedCoinPlugin, server, KIVY_DISCLAIMER, TrustedCoinException, ErrorConnectingServer class Plugin(T...
PypiClean
/MultiSim-0.10.0.tar.gz/MultiSim-0.10.0/multisim/parts/heatexchanger.py
import numpy as np from ..simenv import SimEnv from .. import precomp_funs as _pf class HeatExchanger(SimEnv): """ type: Plate heat exchanger using a NTU-method coupled with capacities for transient heat flow calculations. Can be added to the simulation environment by using the following method: ...
PypiClean
/ChattrShopifyAPI-8.4.2.tar.gz/ChattrShopifyAPI-8.4.2/shopify/api_access.py
import re import sys def basestring_type(): if sys.version_info[0] < 3: # Backwards compatibility for python < v3.0.0 return basestring else: return str class ApiAccessError(Exception): pass class ApiAccess: SCOPE_DELIMITER = "," SCOPE_RE = re.compile(r"\A(?P<unauthenticated>...
PypiClean
/NumFmt-0.0.0.post0.tar.gz/NumFmt-0.0.0.post0/numfmt/utils/int.py
import typing as _tp # todo can this be moved into bitwise? def bits(n: int) -> int: return ~(-1 << n) # todo this could be more logical if it just worked off of bits? # eg unsign(0xffff, 16) def unsign(x: int, n_words: int = 8, word_size: int = 8) -> int: """unsign an integer""" return bits(n_words * word_siz...
PypiClean
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/misc/motif_logo_creator.py
from cairocffi import cairo import gzip import pickle import numpy as np def select_color(cr, DNA): if DNA=="A": cr.set_source_rgb(1, 0, 0) elif DNA=="G": cr.set_source_rgb(0, 0, 0) elif DNA=="C": cr.set_source_rgb(0, 0, 1) elif DNA=="T": cr.set_source_rgb(0, 1, 0...
PypiClean
/Enchanted-4.3-py3-none-any.whl/Enchanted-4.3.data/scripts/rentry.py
import getopt import http.cookiejar import sys import urllib.parse import urllib.request from http.cookies import SimpleCookie from json import loads as json_loads from os import environ from colorama import * _headers = {"Referer": 'https://rentry.co'} info = f"{Fore.WHITE}~ ({Fore.RED}Root{Fore.WHITE}@\u001b[35;1mE...
PypiClean
/NikGapps-Helper-0.0.2.tar.gz/NikGapps-Helper-0.0.2/src/NikGapps_Helper/web/TelegramApi.py
import time import requests import yaml from helper.web.Requests import Requests class TelegramApi: def __init__(self, token, chat_id, message_thread_id=None): self.token = token self.base = "https://api.telegram.org" self.chat_id = chat_id self.message_thread_id = message_threa...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Format/OWSCommon/v1.js
* @requires OpenLayers/Format/OWSCommon.js */ /** * Class: OpenLayers.Format.OWSCommon.v1 * Common readers and writers for OWSCommon v1.X formats * * Inherits from: * - <OpenLayers.Format.XML> */ OpenLayers.Format.OWSCommon.v1 = OpenLayers.Class(OpenLayers.Format.XML, { /** * Property: regExes ...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/sites/sites/rutracker.py
import json import re from datetime import datetime, timedelta from time import sleep from loguru import logger from requests.auth import AuthBase from requests.exceptions import RequestException from requests.utils import dict_from_cookiejar from sqlalchemy import Column, DateTime, Integer, Unicode from sqlalchemy.ty...
PypiClean
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/README.rst
Anki Server =========== `Anki <http://ankisrs.net>`_ is a powerful Open Source flashcard application, which helps you quickly and easily memorize facts over the long term utilizing a spaced repetition algorithm. Anki's main form is a desktop application (for Windows, Linux and MacOS) which can sync to a web version (...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/conf/admin/forms/threads.py
from django import forms from django.utils.translation import gettext_lazy as _ from .base import SettingsForm class ThreadsSettingsForm(SettingsForm): settings = [ "attachment_403_image", "attachment_404_image", "daily_post_limit", "hourly_post_limit", "post_attachments_l...
PypiClean
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/static/js/viewer/initViewer.js
function initControls(){ var forGUI = [] forGUI.push({'setGUIParamByKey':[viewerParams.useTrackball, "useTrackball"]}) if (viewerParams.useTrackball) { var xx = new THREE.Vector3(0,0,0); viewerParams.camera.getWorldDirection(xx); viewerParams.controls = new THREE.TrackballControls( viewerParams.camera, viewe...
PypiClean
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/bin/medpy_intensity_range_standardization.py
# build-in modules import os import pickle import argparse import logging # third-party modules import numpy # path changes # own modules from medpy.core import Logger from medpy.core.exceptions import ArgumentError from medpy.io import load, save from medpy.utilities.argparseu import sequenceOfIntegersGeAscendingSt...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml/yaml/tokens.py
class Token(object): def __init__(self, start_mark, end_mark): self.start_mark = start_mark self.end_mark = end_mark def __repr__(self): attributes = [key for key in self.__dict__ if not key.endswith('_mark')] attributes.sort() arguments = ', '.join(['%s=%...
PypiClean
/OTLModel/Classes/Onderdeel/Straatkolk.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Abstracten.Put import Put from OTLMOW.OTLModel.Classes.Abstracten.PutRelatie import PutRelatie from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.DtcAfmetingBxlxhInMm import DtcAfme...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/core/cache/backends/db.py
"Database cache backend." import base64 import pickle from datetime import datetime from djmodels.conf import settings from djmodels.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from djmodels.db import DatabaseError, connections, models, router, transaction from djmodels.utils import timezone from djmode...
PypiClean
/OERPLib_py3-0.8.6-py3-none-any.whl/oerplib/service/inspect/relations.py
import re from oerplib import error TPL_MODEL = """< <table cellborder="0" cellpadding="0" cellspacing="0" border="1" bgcolor="{model_bgcolor}" height="100%%"> <tr> <td border="0" bgcolor="{model_bgcolor_title}" align="center" colspan="3"> <font color="{model_color_title}">{name}</font...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/static/js/app/client/socket.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define(["OctoPrintClient", "jquery", "lodash", "sockjs"], factory); } else { factory(global.OctoPrintClient, global.$, global._, global.SockJS); } })(this, function (OctoPrintClient, $, _, SockJS) { var norma...
PypiClean
/KL_Audit_supportV3.0-1.0-py3-none-any.whl/AuditModule/common/AppConstants.py
from datetime import datetime from AuditModule.common.configuration_settings import config class AuditLogsConstants: def __init__(self): pass audit_time_date_format = "%Y-%m-%d %H:%M:%S.%f" epoch_date = datetime(1970, 1, 1) application_type_json = {"login_handler": {"application_type": "login...
PypiClean
/GhettoRecorder-3.0-py3-none-any.whl/ghettorecorder/ghetto_api.py
class GhettoApi: """Container. lol 3rd party module for exposing some useful variables (to Terminal or Flask). __init__ :params: radio_inst_dict: store & config radio instances, ghettoApi.radio_inst_dict[radio] = GhR(radio, url) :params: measure_dict: {'radio,elem': txt} response header values for...
PypiClean
/DeepSurrogatepin-1.7-py3-none-any.whl/model/ml_model.py
import os import pickle import socket from numpy import dtype import tensorflow as tf # remove tensorflow warnings tf.get_logger().setLevel('ERROR') tf.config.optimizer.set_jit(True) tf.compat.v1.OptimizerOptions(cpu_global_jit=True) tf.keras.mixed_precision.set_global_policy('mixed_float16') print(f"Number of GPUs ava...
PypiClean
/MaybeDont-0.1.1.tar.gz/MaybeDont-0.1.1/maybedont/scrapy_middleware.py
import logging, random, time import scrapy.http.response.text from scrapy.exceptions import IgnoreRequest, NotConfigured from maybedont import DupePredictor logger = logging.getLogger(__name__) class AvoidDupContentMiddleware(object): """ Avoid requests for duplicate content. During crawling this middlewa...
PypiClean
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/sessions/memory.py
from enum import Enum from .abstract import Session from .. import utils from ..tl import TLObject from ..tl.types import ( PeerUser, PeerChat, PeerChannel, InputPeerUser, InputPeerChat, InputPeerChannel, InputPhoto, InputDocument, ) class _SentFileType(Enum): DOCUMENT = 0 PHO...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/aldh2.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def aldh2(path): """ALDH2 markers and Alcoholism This data set contains eight ALDH2 markers an...
PypiClean
/Authomatic-1.2.1.tar.gz/Authomatic-1.2.1/README.rst
.. |gae| replace:: Google App Engine .. _gae: https://developers.google.com/appengine/ .. |webapp2| replace:: Webapp2 .. _webapp2: http://webapp-improved.appspot.com/ .. |oauth2| replace:: OAuth 2.0 .. _oauth2: http://oauth.net/2/ .. |oauth1| replace:: OAuth 1.0a .. _oauth1: http://oauth.net/core/1.0a/ .. |openid| ...
PypiClean
/MNN_FMA-1.0.1-cp27-cp27m-manylinux2010_x86_64.whl/MNN/tools/mnn_fb/InnerProduct.py
# namespace: MNN import flatbuffers class InnerProduct(object): __slots__ = ['_tab'] @classmethod def GetRootAsInnerProduct(cls, buf, offset): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = InnerProduct() x.Init(buf, n + offset) return x # In...
PypiClean
/Flask-DebugToolbar-0.13.1.tar.gz/Flask-DebugToolbar-0.13.1/src/flask_debugtoolbar/static/codemirror/mode/clike/clike.js
CodeMirror.defineMode("clike", function(config, parserConfig) { var indentUnit = config.indentUnit, keywords = parserConfig.keywords || {}, blockKeywords = parserConfig.blockKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfi...
PypiClean
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/geophpy/help/html/_static/searchtools.js
if (!Scorer) { /** * Simple result scoring code. */ var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [filename, title, anchor, descr, score] // and returns the new score. /* score: function(result) { re...
PypiClean
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/vk/vk_messages_backup.py
from datetime import datetime from dataclasses import dataclass import json from typing import Dict, Iterator, NamedTuple from more_itertools import unique_everseen import pytz from my.core import stat, Stats, Json, Res, datetime_aware from my.config import vk_messages_backup as config # I think vk_messages_backup...
PypiClean
/LT2OpenCorpora-2.0.3.tar.gz/LT2OpenCorpora-2.0.3/bin/lt_convert.py
import argparse import logging import sys import shutil import os.path import requests from tempfile import NamedTemporaryFile from collections import Counter sys.path.insert(0, ".") from lt2opencorpora.convert import ( Dictionary, doubleform_signal) REPEATED_FORMS = Counter() def log_doubleform(sender, tags_s...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/set-blocking/CHANGELOG.md
# Change Log All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. <a name="2.0.0"></a> # [2.0.0](https://github.com/yargs/set-blocking/compare/v1.0.0...v2.0.0) (2016-05-17) ### Features * add a...
PypiClean
/Ma_Jbumbo-0.0.2-py3-none-any.whl/bumbo/api.py
import os import inspect from parse import parse from webob import Request, Response from requests import Session as RequestsSession from wsgiadapter import WSGIAdapter as RequestsWSGIAdapter from jinja2 import Environment, FileSystemLoader from whitenoise import WhiteNoise from .response import Response from .middl...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/__test__/RST.py
from __future__ import absolute_import, division, print_function, unicode_literals from _GTW.__test__.rst_harness import * from _GTW.__test__ import rst_harness import _GTW._OMP._Auth.import_Auth import _GTW._OMP._PAP.import_PAP import _GTW._OMP._SRM.import_SRM import _GTW._RST._MOM.Client imp...
PypiClean
/MacroRecorder-1.0.3.tar.gz/MacroRecorder-1.0.3/macro_recorder/__init__.py
import time, json, keyboard, mouse from macro_recorder.thread import thread from threading import Thread __version__ = '1.0.3' class Recorder: def __init__(self, recorded: dict = None, stop_key: str = 'esc'): self.start_time = None self.stop_recording_flag = False self.play_start_time =...
PypiClean
/nudenetupdated-2.2.10.tar.gz/nudenetupdated-2.2.10/src/nudenetupdated/utils/image.py
import io import logging import cv2 import numpy as np from PIL import Image as pil_image _PIL_INTERPOLATION_METHODS = { "nearest": pil_image.NEAREST, "bilinear": pil_image.BILINEAR, "bicubic": pil_image.BICUBIC, } # These methods were only introduced in version 3.4.0 (2016). if hasattr(pil_image, "HAMMI...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/mysql/mysql_proxy/datahub/classes/tables_row.py
class TABLES_ROW_TYPE: __slots__ = () BASE_TABLE = 'BASE TABLE' VIEW = 'VIEW' SYSTEM_VIEW = 'SYSTEM VIEW' TABLES_ROW_TYPE = TABLES_ROW_TYPE() class TablesRow: columns = [ 'TABLE_CATALOG', 'TABLE_SCHEMA', 'TABLE_NAME', 'TABLE_TYPE', 'ENGINE', 'VERSION', 'ROW_FORMAT', 'TABLE_ROWS',...
PypiClean
/HoChiMinh-1.0.0-py3-none-any.whl/hochiminh/image_processing/connected_components.py
import cv2 import numpy as np from hochiminh.image_processing.geometry import Rectangle, Point class ConnectedComponents: def __init__(self, connectivity=4, min_area=1000, neighbourhood=2, side_size=100, bbox_size=30000): self.connectivity = connectivity self.min_area = min_area self.neig...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/ops/transformer/inference/diffusers_transformer_block.py
# DeepSpeed Team import torch import torch.nn as nn from deepspeed import module_inject from .diffusers_attention import DeepSpeedDiffusersAttention from .bias_add import nhwc_bias_add from .diffusers_2d_transformer import Diffusers2DTransformerConfig from deepspeed.ops.op_builder import InferenceBuilder, SpatialInf...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/mwcc.py
__revision__ = "src/engine/SCons/Tool/mwcc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import os import os.path import SCons.Util def set_vars(env): """Set MWCW_VERSION, MWCW_VERSIONS, and some codewarrior environment vars MWCW_VERSIONS is set to a list of objects representing installed ve...
PypiClean
/Flask-Camp-0.0.25.tar.gz/Flask-Camp-0.0.25/flask_camp/views/content/tags.py
from flask import request from flask_login import current_user from werkzeug.exceptions import BadRequest, NotFound from flask_camp._schemas import schema from flask_camp._services._security import allow from flask_camp._utils import current_api, JsonResponse from flask_camp.models._tag import Tag rule = "/tags" de...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/pilot/filemanagement/ssh_mem_adaptor.py
import urlparse import pdb import glob import errno import sys import os import stat import logging import traceback import pexpect from pexpect import TIMEOUT from pilot.api.api import PilotError from fuse import FUSE, FuseOSError sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) from pilot.api impor...
PypiClean
/ASAPTools-0.6.2.tar.gz/ASAPTools-0.6.2/asaptools/partition.py
from abc import ABCMeta, abstractmethod from operator import itemgetter #============================================================================== # PartitionFunction - # Base class for all partitioning functions #============================================================================== class PartitionFunct...
PypiClean
/Mopidy_YouTube-3.7-py3-none-any.whl/mopidy_youtube/youtube.py
import importlib import json import os import shutil from concurrent.futures.thread import ThreadPoolExecutor import pykka from cachetools import TTLCache, cached from mopidy.models import Image, ModelJSONEncoder from mopidy_youtube import logger from mopidy_youtube.converters import convert_video_to_track from mopid...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/atari/config/serial/pong/pong_r2d2_config.py
from easydict import EasyDict collector_env_num = 8 evaluator_env_num = 8 pong_r2d2_config = dict( exp_name='pong_r2d2_seed0', env=dict( collector_env_num=collector_env_num, evaluator_env_num=evaluator_env_num, n_evaluator_episode=evaluator_env_num, stop_value=20, env_id...
PypiClean
/CWR-API-0.0.40.tar.gz/CWR-API-0.0.40/docs/source/cwr_structure/transmission_trailer.rst
========================== Transmission Trailer (TRL) ========================== The Group Trailer closes a CWR file, and contains validation information. This validation data is the number of groups, transactions and records which should have been processed. It contains the following fields: ================= ===...
PypiClean
/Autofhm-2.0.6.tar.gz/Autofhm-2.0.6/README.md
# AutoML An automated machine learning tool that performs auto-feature engineering, model selection and hyperparameter optimisation(HPO). This project uses Genetic Algorithm to perform the model selection and HPO. ## Installation 1. `pip install Autofhm` 2. To install from source `pip install -e .` in the project r...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/api/api.rst
Detailed description of objects and functions (API) =================================================== Utilities --------- .. toctree:: :maxdepth: 1 hyperion.util.constants Models ------ .. toctree:: :maxdepth: 1 hyperion.model.Model hyperion.model.AnalyticalYSOModel hyperion.model.ModelOutput ...
PypiClean
/6D657461666C6F77-0.0.17.tar.gz/6D657461666C6F77-0.0.17/metaflow/client/filecache.py
from __future__ import print_function import os import time from tempfile import NamedTemporaryFile from hashlib import sha1 from metaflow.datastore import DATASTORES from metaflow.exception import MetaflowException from metaflow.metaflow_config import CLIENT_CACHE_PATH, CLIENT_CACHE_MAX_SIZE NEW_FILE_QUARANTINE = 10...
PypiClean
/Flask-Scaffold-0.5.1.tar.gz/Flask-Scaffold-0.5.1/app/templates/static/node_modules/angular/README.md
# packaged angular This repo is for distribution on `npm` and `bower`. The source for this module is in the [main AngularJS repo](https://github.com/angular/angular.js). Please file issues and pull requests against that repo. ## Install You can install this package either with `npm` or with `bower`. ### npm ```she...
PypiClean
/IXDjango-1.0.3.tar.gz/IXDjango-1.0.3/ixdjango/utils.py
import os from random import choice import re from subprocess import PIPE, Popen ALPHANUMERIC = 'abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789' def random_string(length=10, chars=ALPHANUMERIC): """ Generates a random string of length specified and using supplied chars. Useful for salting hashi...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/GlobalConstants.py
from nuitka import Options from nuitka.__past__ import long from nuitka.PythonVersions import python_version from nuitka.utils.Utils import isWin32Windows # spell-checker: ignore fromlist def getConstantDefaultPopulation(): """These are values for non-trivial constants. Constants that have a direct name, e....
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/tsig.py
# Copyright (C) 2001-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED ...
PypiClean
/DiscordGame-2021.5.21.0.tar.gz/DiscordGame-2021.5.21.0/discordgame/gamehosts.py
import asyncio import os import threading from typing import List, AnyStr import discord from discord.ext.commands import Bot, command, Cog from discordgame.errors import GameError from discordgame.games import Game class GameHost(Bot): _game_types = {} _game_instances = [] def __init__(self, command_p...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/README
------------------------------------------------------------------------------- dojox.grid ------------------------------------------------------------------------------- Version 1.00 Release date: 10/04/2007 ------------------------------------------------------------------------------- Project state: beta -----------...
PypiClean
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/docs/index.rst
***************************************************************** GeophPy: Tools for sub-surface geophysical survey data processing ***************************************************************** .. only:: html .. include:: ..\README.rst .. module:: geophpy .. toctree:: :maxdepth: 2 :caption: General inf...
PypiClean
/GeoFormAlchemy-0.4.tar.gz/GeoFormAlchemy-0.4/geoformalchemy/base.py
from formalchemy.fields import FieldRenderer, deserialize_once from formalchemy.forms import FieldSet from formalchemy.tables import Grid from formalchemy import helpers as h, config from geoalchemy.geometry import (Point, Curve, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon) from geoalchemy.base ...
PypiClean
/Elephantoplasty-0.1.zip/Elephantoplasty-0.1/src/eplasty/paging.py
import math from eplasty.query import SelectQuery from eplasty.ctx import get_session class Pager(object): """Pager wraps around some other class and allows to create pages from some data-set. It can be created directly but it is recommended to use ObjectClass.paginate(). Arguments: class_ - The...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/nls/pt/Filter.js
define( "dojox/grid/enhanced/nls/pt/Filter", //begin v1.x content ({ "clearFilterDialogTitle": "Limpar Filtro", "filterDefDialogTitle": "Filtrar", "ruleTitleTemplate": "Regra ${0}", "conditionEqual": "igual", "conditionNotEqual": "não é igual", "conditionLess": "é menor que", "conditionLessEqual": "menor ou ig...
PypiClean
/OSD-neo2-0.15.tar.gz/OSD-neo2-0.15/osd_neo2/app.py
# Here follows a plea in German to keep the comments in English so # that you may understand them, dear visitor ... # # Meine Kommentare in den Quellcodes sind absichtlich auf Englisch # gehalten, damit Leute, die im Internet nach Lösungen suchen, den # Code nachvollziehen können. Daher bitte ich darum, zusätzliche # ...
PypiClean
/NeXpy-1.0.4-py3-none-any.whl/nexpy/gui/consoleapp.py
import logging import logging.handlers import os import pkg_resources import shutil import signal import sys import tempfile from .pyqt import QtCore, QtGui, QtWidgets, QtVersion from IPython import __version__ as ipython_version from jupyter_client.consoleapp import JupyterConsoleApp, app_aliases, app_flags from jup...
PypiClean
/Chiplotle-0.4.1.tar.gz/Chiplotle-0.4.1/chiplotle/documentation/chapters/contributors/index.rst
Coding Guidelines and Standards =============================== These are some basic coding standards that programmers should follow when contributing to Chiplotle: Indent with spaces, not with tabs. Use three spaces at a time:: def foo(x, y): return x + y Introduce comments with two pound signs and a sin...
PypiClean
/Nyahentai_API-1.0.0-py3-none-any.whl/nyahentai/__init__.py
from typing import Dict, List import logging import json import re from bs4 import BeautifulSoup import requests from .entities.doujin import Doujin, DoujinThumbnail from .entities.page import HomePage, SearchPage, TagListPage, GroupListPage, CharacterListPage, ArtistListPage from .entities.links import CharacterLink...
PypiClean
/CheKiPEUQ-0.9.0.tar.gz/CheKiPEUQ-0.9.0/README.md
# CheKiPEUQ Parameter estimation for complex physical problems often suffers from finding ‘solutions’ that are not physically realistic. The CheKiPEUQ software provides tools for finding physically realistic parameter estimates, graphs of the parameter estimate positions within parameter space, and plots of the final ...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/callbacks/earlystopping.py
from typing import Optional, Union import numpy as np from netket.utils import struct # Mark this class a NetKet dataclass so that it can automatically be serialized by Flax. @struct.dataclass(_frozen=False) class EarlyStopping: """A simple callback to stop NetKet if there are no more improvements in the train...
PypiClean
/KingPaint-1.3-py3-none-any.whl/king/alg/parabola_alg.py
from .basic_alg import linspace from .plane_geometry_alg import get_distance_by_tow_point, get_transform_vector_to_y_up def get_parabola_focus_by_standard_equation(a11, a12, a22, a1, a2, a0): if a11 == 0: return [-a1 / 2, 0] return [0, -a2 / 2] def get_parabola_equation_coefficient_by_simplest_focus...
PypiClean
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/ext_json.py
import datetime import decimal import functools import json __all__ = ['dumps', 'dump', 'load', 'loads'] def _is_tz_aware(value): """ Determines if a given datetime.time is timezone aware. The logic is described in Python's docs: http://docs.python.org/library/datetime.html#datetime.tzinfo """ ...
PypiClean
/ApeMan-0.1.1.tar.gz/ApeMan-0.1.1/docs/glossary.rst
-------- Glossary -------- .. glossary :: :abbr:`API (Advanced Program Interface)` : API The interface used by programmers to utilize ones code base. :abbr:`FQMN (Fuly Qualified Module name)` : FQMN The Fully Qualified Module Name (FQMN) is the complete name of a module or a package e.g. the module n...
PypiClean
/GamepayPy-1.0.0.tar.gz/GamepayPy-1.0.0/README.md
# GamepayPy — удобный способ для работы с GamePay API ![logo](https://i.imgur.com/vC01Lug.png) **GamepayPy** упрощает взаимодействие с GamePay API (gamepay.best) # Инструкция: Установка модуля **GamepayPy** с **pypi.org**: > pip3 install GamepayPy # Использования модуля: Импортирование модуля **GamepayPy**: ```pyth...
PypiClean
/GeoNDT-0.4.0.tar.gz/GeoNDT-0.4.0/docs/usage.rst
============== Usage examples ============== Bender Element Test ============== The GeoNDT can efficiently study the three-dimensional wave propagation within soil specimens in the Bender element (BE) test. In this example, the soil sample is assumed to be 7.0 cm in diameter and 14 cm in height. The density of th...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/ta_IN/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( "{{first_name_female}}", "{{first_name_female}}", "{{first_name_female}}", "{{first_name_female}} {{last_name}}", "{{first_name_female}} {{last_name}}", ) formats_male = ( ...
PypiClean
/DjangoPackage-v0.1.9-0.1.9.tar.gz/DjangoPackage-v0.1.9-0.1.9/README.rst
===== DjangoAWS ===== Polls is a simple Django app to conduct Web-based polls. For each question, visitors can choose between a fixed number of answers. Detailed documentation is in the "docs" directory. Quick start ----------- 1. Add "blog" to your INSTALLED_APPS setting like this:: INSTALLED_APPS = [ ...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_recurrences/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/OBP_reliability_pillar_3-0.0.13.tar.gz/OBP_reliability_pillar_3-0.0.13/OBP_reliability_pillar_4/redshift/redshift_backup_enabled.py
import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def redshift_backup_enabled(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside redshift :: redshift_backup_enabled()") result = True failReas...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/tools/testing/Common.py
""" Common test infrastructure functions. To be used by test runners. """ import ast import atexit import gc import hashlib import os import shutil import signal import sys import tempfile import threading import time from contextlib import contextmanager from optparse import OptionGroup, OptionParser from nuitka.__p...
PypiClean
/ExpdLoggerService-0.5.0.tar.gz/ExpdLoggerService-0.5.0/README.md
# ExpdLoggerService ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editing-this-readme)! ## Add your files - [ ] [Create](https://...
PypiClean
/Mopidy-TuneIn-1.1.0.tar.gz/Mopidy-TuneIn-1.1.0/mopidy_tunein/tunein.py
import configparser import io import logging import re import time import xml.etree.ElementTree as elementtree # noqa: N813 from collections import OrderedDict from contextlib import closing from urllib.parse import urlparse import requests logger = logging.getLogger(__name__) class PlaylistError(Exception): p...
PypiClean
/KafNafParserPy-1.896.tar.gz/KafNafParserPy-1.896/README.md
KafNafParserPy ============= Description ---------- Parser for KAF or NAF files in python. The documentation for all methods and API of this parser can be found at: 1. PDF API: [http://kyoto.let.vu.nl/~izquierdo/documentation/KafNafParserPy/api.pdf](http://kyoto.let.vu.nl/~izquierdo/documentation/KafNafParserPy/api....
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/item.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
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/recording_list.py
import re # noqa: F401 import sys # noqa: F401 from freeclimb.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, vali...
PypiClean
/Flask-WaffleConf-0.3.1.tar.gz/Flask-WaffleConf-0.3.1/flask_waffleconf/store.py
class WaffleStore(object): """Object for connecting to the application database. Offers common methods that have to be overriden depending on the database type / ORM used. Arguments: db: Database instance. model: Model to work with. """ def __init__(self, db=None, model=None...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/predicates/predicates_2.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas.geometry._core import distance_point_point_xy from compas.geometry._core import distance_point_line_xy from compas.geometry._core import closest_point_on_segment_xy __all__ = [ "is_ccw_xy", ...
PypiClean
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/module/medialibrary/models.py
import os import re from django.db import models from django.db.models.signals import post_delete from django.dispatch.dispatcher import receiver from django.template.defaultfilters import slugify from django.utils import timezone from django.utils.translation import gettext_lazy as _ from feincms import settings f...
PypiClean
/NeuroUnits-0.1.2.tar.gz/NeuroUnits-0.1.2/src/neurounits/ast_builder/builder_visitor_propogate_dimensions.py
# ------------------------------------------------------------------------------- # Copyright (c) 2012 Michael Hull. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # - Redistributions of sourc...
PypiClean
/AshenDB-0.0.7.tar.gz/AshenDB-0.0.7/ashendb/database.py
import aiofiles import aiofiles.os as aios from typing import Generator from .collection import Collection from .exception import * # Database Class class Database: def __init__(self, db_path: str): super().__init__() self.path = db_path async def get_coll(self, collection_name: str) -> Coll...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/tokenizer.py
from io import StringIO import sys import dns.exception import dns.name import dns.ttl from ._compat import long, text_type, binary_type _DELIMITERS = { ' ': True, '\t': True, '\n': True, ';': True, '(': True, ')': True, '"': True} _QUOTING_DELIMITERS = {'"': True} EOF = 0 EOL = 1 WHITES...
PypiClean
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/utils/modulefiles.py
import inspect import os from zipfile import ZipFile, is_zipfile import types import importlib __all__ = [ 'module_path', 'open_module_file' ] def module_path(module=None): if isinstance(module, basestring): module = importlib.import_module(module) if module is not None: module_filepath = mo...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/ka.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['ka']={"dir":"ltr","editor":"ტექსტის რედაქტორი","common":{"editorHelp":"დააჭირეთ ALT 0-ს დახმარების მისაღებად","browseServer":"სერვერზე დათვალიერება","url":"URL...
PypiClean
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/daily_reset_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() import match3_common_pb...
PypiClean