id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/KratosShallowWaterApplication-9.4-cp311-cp311-win_amd64.whl/KratosMultiphysics/ShallowWaterApplication/coupling/read_from_sw_interface_process.py
import KratosMultiphysics as KM import KratosMultiphysics.ShallowWaterApplication as SW import KratosMultiphysics.MappingApplication as Mapping from KratosMultiphysics.kratos_utilities import GenerateVariableListFromInput from KratosMultiphysics.HDF5Application import import_model_part_from_hdf5_process from KratosMult...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/app_templates/admin/static/vendor/bootstrap/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } /* ======================================================================== * Bootstrap: transition.js v3.2.0 * http://getbootstrap.com/javascript/#transitions * ========================================================...
PypiClean
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/sipphone/linphone_lib/Recorder.py
import logging logger = logging.getLogger(__name__) logger.debug("%s loaded", __name__) import os from doorpi import DoorPi from doorpi.sipphone.AbstractBaseClass import RecorderAbstractBaseClass, SIPPHONE_SECTION class LinphoneRecorder(RecorderAbstractBaseClass): __record_filename = '' __last_record_filen...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/metrics/tf_example_parser.py
import numpy as np from object_detection.core import data_parser from object_detection.core import standard_fields as fields class FloatParser(data_parser.DataToNumpyParser): """Tensorflow Example float parser.""" def __init__(self, field_name): self.field_name = field_name def parse(self, tf_example): ...
PypiClean
/Interleave_Playlist-1.0.0a7-py3-none-any.whl/interleave_playlist/persistence/input_.py
import json import os import re import typing from collections.abc import Iterable from datetime import datetime from pathlib import Path from typing import Any from crontab import CronTab from ruamel.yaml import YAML, YAMLError from interleave_playlist.core import PlaylistEntry from interleave_playlist.persistence i...
PypiClean
/HY_sdk-0.2.56-py3-none-any.whl/hivisionai/hycv/FaceDetection68/faceDetection68.py
from src.hivisionai.hyService.cloudService import GetConfig import os import cv2 import dlib import numpy as np local_file = os.path.dirname(__file__) PREDICTOR_PATH = f"{local_file}/weights/shape_predictor_68_face_landmarks.dat" # 关键点检测模型路径 MODULE3D_PATH = f"{local_file}/weights/68_points_3D_model.txt" # 3d的68点配置文件路...
PypiClean
/BlazeUtils-0.7.0-py3-none-any.whl/blazeutils/numbers.py
from decimal import Decimal # from http://docs.python.org/library/decimal.html#recipes def moneyfmt(value, places=2, curr='', sep=',', dp='.', pos='', neg='-', trailneg=''): """Convert Decimal to a money formatted string. places: required number of places after the decimal point curr: op...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.10/os.js
var os = {}; /** * Returns the system uptime in seconds. * @returns the system uptime in seconds */ os.uptime = function() {} /** * Returns the total amount of system memory in bytes. * @returns the total amount of system memory in bytes */ os.totalmem = function() {} /** * Returns the hostname of the operati...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/google/protobuf/source_context_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) 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_in...
PypiClean
/AN-DiscordBot-3.9.4.tar.gz/AN-DiscordBot-3.9.4/anbot/__init__.py
import re as _re import sys as _sys import warnings as _warnings from math import inf as _inf from typing import ( Any as _Any, ClassVar as _ClassVar, Dict as _Dict, List as _List, Optional as _Optional, Pattern as _Pattern, Tuple as _Tuple, Union as _Union, ) MIN_PYTHON_VERSION = (3, ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/geos/prototypes/geom.py
from ctypes import POINTER, c_char_p, c_int, c_ubyte, c_uint from django.contrib.gis.geos.libgeos import CS_PTR, GEOM_PTR, GEOSFuncFactory from django.contrib.gis.geos.prototypes.errcheck import ( check_geom, check_minus_one, check_string, ) # This is the return type used by binary output (WKB, HEX) routi...
PypiClean
/ISPManCCP-0.0.1alpha3.1.tar.bz2/ISPManCCP-0.0.1alpha3.1/ispmanccp/public/js/ie7/ie7-css3-selectors.js
IE7.addModule("ie7-css3-selectors",function(){cssQuery.addModule("css-level3",function(){selectors["~"]=function(r,f,t,n){var e,i;for(i=0;(e=f[i]);i++){while(e=nextElementSibling(e)){if(compareTagName(e,t,n))r.push(e)}}};pseudoClasses["contains"]=function(e,t){t=new RegExp(regEscape(getText(t)));return t.test(getTextCo...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Gyre-Pagella/Symbols/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.GyrePagellaMathJax_Symbols={directory:"Symbols/Regular",family:"GyrePagellaMathJax_Symbols",id:"GYREPAGELLASYMBOLS",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],8960:[564,64,788,80,708,"634 250c0 62 -18 116 -50 156l-346 -346c40 -32 94 -50 156 -50c144 0 240 96 240 240zM550 440c-40 32 -94...
PypiClean
/DamPy-0.12.9.tar.gz/DamPy-0.12.9/dampy/lib/Env.py
import os import logging import csv class Env: ''' Provides a handle to work with the local file system Initialized with a directory which is the base under which reads and writes can be performed ''' def __init__(self, dir): ''' Initialize an Env instance with a directory ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/report_distribution_create_request_py3.py
from msrest.serialization import Model class ReportDistributionCreateRequest(Model): """ReportDistributionCreateRequest. All required parameters must be populated in order to send to Azure. :param specific_report_id: Required. The id of the report to distribute A new copy of the report will be cre...
PypiClean
/CryptoLyzer-0.9.1-py3-none-any.whl/cryptolyzer/httpx/analyzer.py
import abc from collections import OrderedDict import attr from cryptoparser.common.utils import get_leaf_classes from cryptoparser.httpx.version import HttpVersion from cryptolyzer.common.analyzer import ProtocolHandlerBase from cryptolyzer.common.result import AnalyzerResultHttp from cryptolyzer.httpx.headers im...
PypiClean
/Fumagalli_Motta_Tarantino_2020-0.5.3.tar.gz/Fumagalli_Motta_Tarantino_2020-0.5.3/Fumagalli_Motta_Tarantino_2020/Configurations/FindConfig.py
import random from numpy import arange from typing import Callable import Fumagalli_Motta_Tarantino_2020.Configurations.StoreConfig as StoreConfig import Fumagalli_Motta_Tarantino_2020.Models.Base as Base import Fumagalli_Motta_Tarantino_2020.Models.Types as Types import Fumagalli_Motta_Tarantino_2020.Models.Distribut...
PypiClean
/AutoAsd-0.2.9-py3-none-any.whl/autoasd/asd_controls.py
from pywinauto import Application from pywinauto import keyboard from pywinauto import findwindows import warnings import pyautogui from pywinauto import mouse import imp import time import datetime import os computer='desktop' if computer=='new' or computer =='desktop': IMG_LOC='img2' elif computer=='old': I...
PypiClean
/OSlash-0.6.3-py3-none-any.whl/oslash/ioaction.py
from abc import abstractmethod from typing import Any, Callable, Generic, TypeVar, Tuple from .typing import Functor from .typing import Monad from .util import indent as ind, Unit TSource = TypeVar("TSource") TResult = TypeVar("TResult") class IO(Generic[TSource]): """A container for a world remaking function...
PypiClean
/HawkScan-2.2.tar.gz/HawkScan-2.2/modules/check_socketio.py
import socketio import time import os, sys import traceback import argparse import json # External from config import PLUS, WARNING, INFO, LESS, LINE, FORBI, BACK socketio_paths = [ "socket.io", "socketio", "io", "socket", "signalr", "xmpp-websocket", "websocket", ".ws", "ws" ] class check_soc...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/distlib/wheel.py
from __future__ import unicode_literals import base64 import codecs import datetime import distutils.util from email import message_from_file import hashlib import imp import json import logging import os import posixpath import re import shutil import sys import tempfile import zipfile from . import __version__, Dis...
PypiClean
/DACOpt-0.1.1.tar.gz/DACOpt-0.1.1/dacopt/ParamsExt.py
import copy from typing import List import numpy as np import math from . import paramrange, p_paramrange, one_paramrange from . import AlgorithmChoice, HyperParameter, CategoricalParam __author__ = "Duc Anh Nguyen" def get_level(algorithmsLst, _i=0): _ii = [] _i += 1 for x in [j for j in algorithmsLst]: ...
PypiClean
/CFML-0.0.3-cp37-cp37m-win_amd64.whl/CFML_api/API_IO_Formats.py
import os import CFML_api.crysfml_api import CFML_api.API_Crystal_Metrics import CFML_api.API_Crystallographic_Symmetry import CFML_api.API_Atom_TypeDef import CFML_api.FortranBindedClass class JobInfo(CFML_api.FortranBindedClass): """ A class used to handle the job informations, read from a CFL File ... ...
PypiClean
/Flask-Captcha-New-0.2.0.tar.gz/Flask-Captcha-New-0.2.0/flask_captcha/helpers.py
import random from flask import current_app, url_for from six import u def math_challenge(): operators = ('+', '*', '-',) operands = (random.randint(1, 10), random.randint(1, 10)) operator = random.choice(operators) if operands[0] < operands[1] and '-' == operator: operands = (operands[1], oper...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/interfaces/thorlabs_tsi_polling_example.py
import os import sys import pathlib def configure_path(): absolute_path_to_dlls = str(pathlib.Path(__file__).resolve().parent)+"\\thorlabs_tsi_sdk\\dll\\" os.environ['PATH'] = absolute_path_to_dlls + os.pathsep + os.environ['PATH'] try: # Python 3.8 introduces a new method to specify dll director...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dMessageBox.py
import wx import dabo from dabo.dLocalize import _ def getForm(): ret = dabo.dAppRef.ActiveForm if not ret: # Could be a dead object ret = None return ret class dMessageBox(wx.MessageDialog): def __init__(self, message, title, style, parent=None, requestUserAttention=True, userAttentionMode=wx.USER_ATTE...
PypiClean
/EOmaps-7.0-py3-none-any.whl/eomaps/mapsgrid.py
from functools import wraps, lru_cache import numpy as np from matplotlib.gridspec import GridSpec import matplotlib.pyplot as plt from .shapes import Shapes from .eomaps import Maps from .ne_features import NaturalEarth_features try: from .webmap_containers import WebMapContainer except ImportError: WebMa...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml_35/yaml/dumper.py
__all__ = ['BaseDumper', 'SafeDumper', 'Dumper'] from .emitter import * from .serializer import * from .representer import * from .resolver import * class BaseDumper(Emitter, Serializer, BaseRepresenter, BaseResolver): def __init__(self, stream, default_style=None, default_flow_style=None, ...
PypiClean
/DocumentTemplate-4.4.tar.gz/DocumentTemplate-4.4/CHANGES.rst
Changelog ========= 4.4 (2022-01-12) ---------------- - Drop support for Python 3.6. 4.3 (2022-12-21) ---------------- - Fix `restructured-text` format specification. Tests were silently skipped. 4.2 (2022-12-16) ---------------- - Fix insidious buildout configuration bug for tests against Zope 4. - Add suppor...
PypiClean
/Jetson.GPIO-2.1.3.tar.gz/Jetson.GPIO-2.1.3/lib/python/Jetson/GPIO/gpio_cdev.py
# @File name: gpio_cdev.py # @Date: # @Last modified by: # @Last Modified time: 6/6/2023 # @Description: This file provides the interface to the GPIO controller # in form of a character device. File operations such as open, close, # ioctl, etc are provided for usage to interact with the GPIO controller. import...
PypiClean
/KegLogin-0.5.4.tar.gz/KegLogin-0.5.4/keg_login/forms.py
from keg_elements.forms import Form, form_validator from wtforms.fields import ( BooleanField, HiddenField, PasswordField, StringField, ) from wtforms import validators __all__ = [ 'make_change_password_form', 'make_forgot_password_form', 'make_email_login_field', 'make_login_form', ...
PypiClean
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/connection.py
import time import amfast import flex_messages as messaging class ConnectionError(amfast.AmFastError): pass class Connection(object): """A client connection to a Channel. This class acts like a session. Unique to a single flash client. attributes (read-only) ======================= * m...
PypiClean
/Khayyam3-1.0.0.tar.gz/Khayyam3-1.0.0/khayyam3/jalali_date.py
from datetime import date, timedelta import re from algorithms import days_in_month, \ is_leap_year, \ get_julian_day_from_gregorian, \ jalali_date_from_julian_days, \ julian_day_from_jalali, \ greg...
PypiClean
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/inference/batch_loop.py
import mxnet as mx from .grad_loop import GradLoop class BatchInferenceLoop(GradLoop): """ The class for the main loop for batch gradient-based optimization. """ def run(self, infr_executor, data, param_dict, ctx, optimizer='adam', learning_rate=1e-3, max_iter=1000, n_prints=10, verbose=...
PypiClean
/NIA_image_2latex-1.0-py3-none-any.whl/dataset/scraping.py
import os import sys import random from tqdm import tqdm import html import requests import re import tempfile try: from arxiv import * from extract_latex import * except: from dataset.arxiv import * from dataset.extract_latex import * wikilinks = re.compile(r'href="/wiki/(.*?)"') htmltags = re.compile...
PypiClean
/Ini-Handler-0.4.0.zip/Ini-Handler-0.4.0/README.md
# Ini Handler [![Version](https://img.shields.io/badge/version-0.3.1-green.svg)](https://github.com/VesnaBrucoms/ini-handler/tree/master) Ini Handler is a simple and small Python library for reading and writing .ini setting files. Ini Handler makes implementing user customisable settings painless and simple. It achi...
PypiClean
/JaqalPaw-1.2.0a1.tar.gz/JaqalPaw-1.2.0a1/src/jaqalpaw/bytecode/encoding_parameters.py
from enum import Enum ENDIANNESS = "little" MAXLEN = 256 // 8 # Number of bytes in a single transfer # LUT Address Widths # These values contain the number of bits used for an address for a # particular LUT. The address width is the same for reading and writing # data for the Pulse LUT (PLUT) and the Sequence LUT (S...
PypiClean
/Ecocyc_Parse-0.0.1.tar.gz/Ecocyc_Parse-0.0.1/README.md
# Ecocyc-Database-Parsing Helpful functions for parsing EcoCyc Database file. EcoCyc is a heavy curated scientific database for the bacterium Escherichia coli K-12 MG1655. The EcoCyc project performs literature-based curation of its genome, and of transcriptional regulation, transporters, and metabolic pathways. Data...
PypiClean
/MySQL-python-1.2.5.zip/MySQL-python-1.2.5/MySQLdb/converters.py
from _mysql import string_literal, escape_sequence, escape_dict, escape, NULL from MySQLdb.constants import FIELD_TYPE, FLAG from MySQLdb.times import * try: from types import IntType, LongType, FloatType, NoneType, TupleType, ListType, DictType, InstanceType, \ StringType, UnicodeType, ObjectType, Boolean...
PypiClean
/ChattrShopifyAPI-8.4.2.tar.gz/ChattrShopifyAPI-8.4.2/shopify/api_version.py
import re class InvalidVersionError(Exception): pass class VersionNotFoundError(Exception): pass class ApiVersion(object): versions = {} @classmethod def coerce_to_version(cls, version): try: return cls.versions[version] except KeyError: raise VersionNo...
PypiClean
/GdDownloader-0.0.3.tar.gz/GdDownloader-0.0.3/README.md
# GdDownloader Package to download files from google drive given shared link [![Build Status](https://travis-ci.org/deven96/drive_downloader.svg?branch=master)](https://travis-ci.com/deven96/drive_downloader) [![PyPI version](https://badge.fury.io/py/GdDownloader.svg)](https://badge.fury.io/py/GdDownloader) [![Cover...
PypiClean
/Hebel-0.02.1.tar.gz/Hebel-0.02.1/hebel/utils/call_check.py
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/NagParser-0.0.31.tar.gz/NagParser-0.0.31/nagparser/Model/NagCommands.py
import time import os from datetime import datetime from nagparser.Services.nicetime import getdatetimefromnicetime class NagCommands(object): def __init__(self, nag): self.nag = nag def scheduledowntime(self, author, starttime, endtime, comment, apikey='default', doappend=False): TIMEFORMA...
PypiClean
/NNGT-2.7.0-cp39-cp39-manylinux_2_17_i686.manylinux2014_i686.whl/nngt/lib/sorting.py
import numpy as np from .errors import InvalidArgument from .test_functions import nonstring_container, is_integer def find_idx_nearest(array, values): ''' Find the indices of the nearest elements of `values` in a sorted `array`. .. warning:: Both ``array`` and ``values`` should be `numpy.array`...
PypiClean
/IcoCube-0.0.1a6.tar.gz/IcoCube-0.0.1a6/ICO3PluginCollection/MessageView/MinFramePlugin.py
import sys import tkinter from ICO3Plugin.Plugin.ICO3FramePlugin import ICO3FramePlugin from ICO3Utilities.Debug.LogDebug import ICO3Log try: import Tkinter as tk except ImportError: import tkinter as tk try: import ttk py3 = False except ImportError: import tkinter.ttk as ttk py3 = True ...
PypiClean
/Flask-API.yandex-0.6.2.1.tar.gz/Flask-API.yandex-0.6.2.1/flask_api/request.py
from __future__ import unicode_literals from flask import Request from flask_api.negotiation import DefaultNegotiation from flask_api.settings import default_settings from werkzeug.datastructures import MultiDict from werkzeug.urls import url_decode_stream from werkzeug.wsgi import get_content_length from werkzeug._com...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/el.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['el']={"dir":"ltr","editor":"Επεξεργαστής Πλούσιου Κειμένου","common":{"editorHelp":"Πατήστε το ALT 0 για βοήθεια","browseServer":"Εξερεύνηση διακομιστή","url":...
PypiClean
/Andy_mess_server-0.0.1-py3-none-any.whl/server/server/main_window.py
from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QLabel, QTableView from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import QTimer import sys sys.path.append('../') from server.stat_window import StatWindow from server.config_window import ConfigWindow from server.add_user import Regi...
PypiClean
/EZID-0.3.tar.gz/EZID-0.3/README.rst
================== EZID Python Client ================== ============================ NOT AN OFFICIAL EZID PROJECT ============================ A Python client to ease programmatic use of the EZID web api. Currently, the module also provides the same client interface as the sample code in https://ezid.cdlib.org/doc/...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/onedrive/sites/site.py
from office365.base_item import BaseItem from office365.entity_collection import EntityCollection from office365.onedrive.analytics.item_activity_stat import ItemActivityStat from office365.onedrive.columns.column_definition import ColumnDefinition from office365.onedrive.contenttypes.content_type import ContentType fr...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/sl.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/sl', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(...
PypiClean
/OASYS1-ESRF-Extensions-0.0.69.tar.gz/OASYS1-ESRF-Extensions-0.0.69/orangecontrib/esrf/syned/widgets/extension/ow_ebs.py
import os, sys import numpy import scipy.constants as codata from syned.storage_ring.magnetic_structures.undulator import Undulator from syned.storage_ring.magnetic_structures import insertion_device from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox, QApplication from PyQt5.QtC...
PypiClean
/CHASM_NuSpacesim-1.0.0.tar.gz/CHASM_NuSpacesim-1.0.0/demo/.ipynb_checkpoints/CHASM Demo-checkpoint.ipynb
# CHASM (CHerenkov Air Shower Model) Demo ## Hypothetical Tau Primary Upward Air Shower This notebook shows how to use the CHASM program to simulate the Cerenkov light profile of an air shower using universality. First import some stuff we'll need, including CHASM itself. ``` import numpy as np import matplotlib.pypl...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_lisp.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: _lisp.py 68798 2011-08-20 17:17:05Z CJP $" __revision__ = "$Revision: 68798 $" #-----------------------------------------------------------------------------# # Imports import wx.stc as stc # Local Imports import synglob import syndata #------------...
PypiClean
/Elpotrero-1.6.2.tar.gz/Elpotrero-1.6.2/elpotrero/django.py
import os import yaml import shutil def _here(): """standard "here" helper function""" return os.path.dirname(os.path.realpath(__file__)) def _cwd(): return os.getcwd() class DjangoInstall: # meta refers to the configuration file for this script meta = "_files/conf.yaml" # the basic conf...
PypiClean
/GLAM-0.3.7-py3-none-any.whl/glam/app_conf.py
# https://stackoverflow.com/a/33533514 from __future__ import annotations import argparse import os class AppConf: """Class for all application configuration.""" def __init__( self, model: str, mode: str, input_dir : str, output_dir : str, log_dir : str, ...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/search/non-minified-js/norwegian-stemmer.js
var JSX = {}; (function (JSX) { /** * extends the class */ function $__jsx_extend(derivations, base) { var ctor = function () {}; ctor.prototype = base.prototype; var proto = new ctor(); for (var i in derivations) { derivations[i].prototype = proto; } } /** * copies the implementations from source interface ...
PypiClean
/DeepPhysX.Sofa-22.12.1.tar.gz/DeepPhysX.Sofa-22.12.1/examples/features/Environment/EnvironmentSofa.py
from numpy import mean, pi, array from numpy.random import random, randint from time import sleep # DeepPhysX related imports from DeepPhysX.Sofa.Environment.SofaEnvironment import SofaEnvironment # Create an Environment as a BaseEnvironment child class class EnvironmentSofa(SofaEnvironment): def __init__(self,...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/services/pipeline/components/transcribeComponent.py
import copy import time import threading from gailbot.core.engines.engineManager import EngineManager from typing import Any, List, Dict from gailbot.core.pipeline import Component, ComponentState, ComponentResult from gailbot.core.utils.general import get_name from gailbot.core.utils.threads import ThreadPool from gai...
PypiClean
/Buildpan_CLI-1.0-py3-none-any.whl/buildpan/deployer.py
import subprocess import datetime, requests import json import os, time from buildpan import setting info = setting.info fetch_log = info["FETCH_LOG_URL"] def mean_stack(cwd, project_id, repo_name, username): ''' Deploy MeanStack project ''' try: success = False curtime = datetime....
PypiClean
/DA-DAPPER-1.2.2.tar.gz/DA-DAPPER-1.2.2/dapper/tools/colors.py
import builtins import contextlib import colorama import matplotlib as mpl import numpy as np # Makes stdout/err color codes work on windows too. colorama.init() ######################################### # Colouring for the terminal / console ######################################### def color_text(text, *color_co...
PypiClean
/Flask-Query-0.0.1.tar.gz/Flask-Query-0.0.1/flask_query/BaseQuery.py
class BaseQuery(object): params = {} def _formatCondition(self, condition): """ 格式化where条件 :param condition: :return: """ if not condition: raise Exception("条件不能为空") elif isinstance(condition, str): return condition elif is...
PypiClean
/Enarksh-0.9.0.tar.gz/Enarksh-0.9.0/enarksh/event/Event.py
import weakref class Event: """ Class for events. """ # ------------------------------------------------------------------------------------------------------------------ event_controller = None """ The event controller. :type: None|enarksh.event.EventController.EventController "...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Parser/all.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/backend/stable_diffusion/image_degradation/utils_image.py
import math import os import random from datetime import datetime import cv2 import numpy as np import torch from torchvision.utils import make_grid import invokeai.backend.util.logging as logger os.environ["KMP_DUPLICATE_LIB_OK"] = "TRUE" """ # -------------------------------------------- # Kai Zhang (github: htt...
PypiClean
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/primitives/vector.py
from __future__ import print_function from __future__ import absolute_import from __future__ import division from compas import PRECISION from compas.geometry import length_vector from compas.geometry import cross_vectors from compas.geometry import subtract_vectors from compas.geometry import dot_vectors from compas...
PypiClean
/EPCPyYes-2.0.3.tar.gz/EPCPyYes-2.0.3/LICENSE.md
# EPCPyYes A Pythoninc approach to EPCIS-enabled application development. Copyright (C) 2018 SerialLab Corp This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or...
PypiClean
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/artifactory_lib/halring_artifactory_lib.py
import os import sys import requests import json from urllib.parse import quote from urllib.parse import unquote from artifactory import ArtifactoryPath from loguru import logger from artifactory import ArtifactoryProAccessor import argparse nga_root = os.path.abspath(__file__).split("halring")[0] if nga_root in sys.p...
PypiClean
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/extensions/binaryreader.py
import os import time from datetime import datetime, timezone, timedelta from io import BytesIO from struct import unpack from ..errors import TypeNotFoundError from ..tl.alltlobjects import tlobjects from ..tl.core import core_objects _EPOCH_NAIVE = datetime(*time.gmtime(0)[:6]) _EPOCH = _EPOCH_NAIVE.replace(tzinfo=...
PypiClean
/HiveNAS-0.1.5-py3-none-any.whl/core/abc/abc.py
import sys sys.path.append('...') import os import time import pandas as pd import numpy as np from .employee_bee import EmployeeBee from .onlooker_bee import OnlookerBee from .scout_bee import ScoutBee from config import Params from utils import Logger from utils import FileHandler class ArtificialBeeColony: ''...
PypiClean
/3to2-1.1.1.zip/3to2-1.1.1/lib3to2/fixer_util.py
from lib2to3.pygram import token, python_symbols as syms from lib2to3.pytree import Leaf, Node from lib2to3.fixer_util import * def Star(prefix=None): return Leaf(token.STAR, '*', prefix=prefix) def DoubleStar(prefix=None): return Leaf(token.DOUBLESTAR, '**', prefix=prefix) def Minus(prefix=None): return...
PypiClean
/Meringue-0.3.1.a.3.tar.gz/Meringue-0.3.1.a.3/meringue/forms.py
from django import forms class form_fieldsets(object): ''' mixin разбивает форму на несколько групп группы указываются в виде списка в Meta.fieldsets. элементы списка - словари с ключами fields и title, содержащие список полей и название группы соответственно ''' def fiel...
PypiClean
/BigchainDB-2.2.2.tar.gz/BigchainDB-2.2.2/bigchaindb/backend/localmongodb/query.py
from pymongo import DESCENDING from bigchaindb import backend from bigchaindb.backend.exceptions import DuplicateKeyError from bigchaindb.backend.utils import module_dispatch_registrar from bigchaindb.backend.localmongodb.connection import LocalMongoDBConnection from bigchaindb.common.transaction import Transaction r...
PypiClean
/DBSKR-2.0.tar.gz/DBSKR-2.0/DBSkr/client.py
import discord import logging import aiohttp import asyncio from typing import List from .https import HttpClient from .enums import WebsiteType from .models import * from .errors import ClientException, TooManyRequests log = logging.getLogger(__name__) class Client: """ discord.py 에 있는 `discord.Client`를 기반으로 ...
PypiClean
/MatrixBabou-0.1.3.tar.gz/MatrixBabou-0.1.3/README.md
# MatrixBabou This library is for matrix analysis and data mining. Its created to facilitate some of notable tools in linear algebra like the matrix decompositions and the classical products (Kronecker, Khatri-Rao, Hadamard..) , and all this functions are accelerated via the parallel computing methods. ## Installat...
PypiClean
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/beefree/fileSaver.js
var saveAs = saveAs || "undefined" != typeof navigator && navigator.msSaveOrOpenBlob && navigator.msSaveOrOpenBlob.bind(navigator) || function (e) { "use strict"; if ("undefined" == typeof navigator || !/MSIE [1-9]\./.test(navigator.userAgent)) { var t = e.document, n = function () { return e.URL ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/editingblock/plugin.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview The default editing block plugin, which holds the editing area * and source view. */ (function() { var getMode = function( editor, mode ) { retu...
PypiClean
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis/components/dropdown_layout.py
from eureqa.analysis.components.base import _Component from eureqa.utils.jsonrest import _JsonREST class DropdownLayout(_Component): """ DropdownLayout component Lets users pick to see other components based on titles (works with "many" items). Similar to a :class:`~eureqa.analysis.components.tabbed_layout...
PypiClean
/AuthKit-0.4.5.tar.gz/AuthKit-0.4.5/docs/scripts/shBrushPython.js
dp.sh.Brushes.Python = function() { var keywords = 'and assert break class continue def del elif else except exec ' + 'finally for from global if import in is lambda not or object pass print ' + 'raise return try yield while'; var builtins = 'self __builtin__ __dict__ __future__ __methods__ __members_...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/chats/promote_chat_member.py
from typing import Union import fipper from fipper import raw, types, errors class PromoteChatMember: async def promote_chat_member( self: "fipper.Client", chat_id: Union[int, str], user_id: Union[int, str], privileges: "types.ChatPrivileges" = None, ) -> bool: """Pro...
PypiClean
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/utils/linalg_routines.py
from itertools import combinations_with_replacement, combinations, product from random import randrange, shuffle import matplotlib.pyplot as plt import numpy as np from scipy.sparse import lil_matrix, triu from scipy.sparse.linalg import eigsh from sklearn.cluster import spectral_clustering import warnings from biofl...
PypiClean
/Ax_Metrics-0.9.2.tar.gz/Ax_Metrics-0.9.2/docs/developers.md
# Ax_Metrics Developers Overview This document is not required reading for *using* Ax_Metrics. For an introduction and general user information, please see the [README](../README.md). Ax_Metrics is a library targeted largely at developers, designed to empower BI initiatives. These users may gain helpful or interes...
PypiClean
/Febiss-0.9.0.tar.gz/Febiss-0.9.0/febiss/cli/febiss_settings.py
__copyright__ = """ This code is licensed under the MIT license. Copyright University Innsbruck, Institute for General, Inorganic, and Theoretical Chemistry, Podewitz Group See LICENSE for details """ import sys def help_message(): print("\nThis program writes all possible settings of the GIST analysis " ...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/cy.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 * Welsh language. */ /**#@+ @type String @example */ /** * Constains the dictionary of lang...
PypiClean
/DeCiDa-1.1.5.tar.gz/DeCiDa-1.1.5/decida/Itemizer.py
from builtins import object import itertools class Itemizer(object): """ **synopsis**: Cross-product iterator with tag. Each *Itemizer* iteration produces a list of elements, one from each contributing list of iterators. At each iteration, the tag() method produces a string fo...
PypiClean
/Alpha-Mind-0.3.1.tar.gz/Alpha-Mind-0.3.1/alphamind/data/engines/universe.py
import abc import sys import pandas as pd from sqlalchemy import and_ from sqlalchemy import not_ from sqlalchemy import or_ from sqlalchemy import select from alphamind.data.dbmodel.models import Universe as UniverseTable class BaseUniverse(metaclass=abc.ABCMeta): @abc.abstractmethod def condition(self): ...
PypiClean
/NM_LFAK-1.2.tar.gz/NM_LFAK-1.2/NM_LFAK/fourwave/main.py
import numpy as np import matplotlib.pyplot as plt from scipy.fftpack import fft import pandas as pd from scipy.fftpack import fft, ifft, fftshift, rfftfreq, rfft, irfft import pandas as pd import pywt import torch import plotly.graph_objects as go import torchvision from torchvision import transforms, datasets import...
PypiClean
/CmonCrawl-1.0.3.tar.gz/CmonCrawl-1.0.3/docs/source/prog_guide/overview.rst
Programming Guide ========================== This section provides a brief overview of the project. It should give you and idea of how to create your custom extraction pipeline. .. note: You probably don't need to read this if you just want to use the utility. This is for people who want to create their own e...
PypiClean
/CallFlow-1.3.0.tar.gz/CallFlow-1.3.0/callflow/operations/unify.py
import numpy as np import pandas as pd import networkx as nx from functools import reduce import callflow from callflow.utils.utils import create_reindex_map LOGGER = callflow.get_logger(__name__) class Unify: """ Unify a super graph. """ def __init__(self, eg, supergraphs): """ Co...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/bbox_heads/convfc_bbox_head.py
import torch.nn as nn from ..registry import HEADS from ..utils import ConvModule from .bbox_head import BBoxHead @HEADS.register_module class ConvFCBBoxHead(BBoxHead): r"""More general bbox head, with shared conv and fc layers and two optional separated branches. /-> cls con...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ebmlib/efilehist.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: efilehist.py 71668 2012-06-06 18:32:07Z CJP $" __revision__ = "$Revision: 71668 $" __all__ = ['EFileHistory',] #-----------------------------------------------------------------------------# # Imports import os import wx # Local Imports import txtut...
PypiClean
/Auto_Python_2014-14.1.5.zip/Auto_Python_2014-14.1.5/tools/get-pip.py
ZIPFILE = b""" UEsDBBQAAAAIAHeDxEQMVWtseQwAAOokAAAPAAAAcGlwL19faW5pdF9fLnB5pRprb+M28rt/BTdp IKlrq00PvQOCc3F32yy6QNsNsrvXA7KGIEu0zUYWVVJy4m37329mSIqUpaQ9nBaNJZHz4Lxn1PMX X3RafbEW9Re8PrDm2O5kPRP7RqqWSd3fNW2TK81n7oU+9msK3m6U3LNGNCl/LHjTCllrZpff1LrN qyrHl9dKSTVnr+R+n9elfboRDd15JJXcOmi43fJgqWtF5da2vM2Ewc7LrBS6VWLdEfE5LTZKb...
PypiClean
/Heavy-Neutrino-Limits-0.0.2.tar.gz/Heavy-Neutrino-Limits-0.0.2/Nlimits/plot_tools.py
import scipy from scipy.interpolate import splprep, splev import numpy as np import seaborn as sns import colorsys import matplotlib import matplotlib.pyplot as plt from matplotlib import rc, rcParams from matplotlib.pyplot import * from matplotlib.pyplot import cm import matplotlib.tri as tri import matplotlib.pat...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/utils/datetime_safe.py
import re import time as ttime from datetime import ( date as real_date, datetime as real_datetime, time as real_time, ) class date(real_date): def strftime(self, fmt): return strftime(self, fmt) class datetime(real_datetime): def strftime(self, fmt): return strftime(self, fmt) @cl...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/db/migrations/optimizer.py
class MigrationOptimizer: """ Power the optimization process, where you provide a list of Operations and you are returned a list of equal or shorter length - operations are merged into one if possible. For example, a CreateModel and an AddField can be optimized into a new CreateModel, and Creat...
PypiClean
/JWaves-0.0.1.tar.gz/JWaves-0.0.1/src/s07_exampleNi3TeO6_simplified.py
import numpy as np import matplotlib.pyplot as plt import sys sys.path.append('.') from RPA import Lattice, System, Units, Coupling from MagneticFormFactor import formFactor import PyCrystalField # plt.close('all') S = 1/2 L = 0 Sx = PyCrystalField.LSOperator.Sx(0,S).O Sy = PyCrystalField.LSOperator.Sy(0,S).O Sz ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_kn.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0caa\u0cc2\u0cb0\u0ccd\u0cb5\u0cbe\u0cb9\u0ccd\u0ca8", ...
PypiClean
/Enarksh-Lib-0.0.6.tar.gz/Enarksh-Lib-0.0.6/enarksh_lib/xml_generator/node/Node.py
import abc from xml.etree.ElementTree import SubElement from enarksh_lib.xml_generator.port.InputPort import InputPort from enarksh_lib.xml_generator.port.OutputPort import OutputPort class Node(metaclass=abc.ABCMeta): """ Class for generating XML messages for elements of type 'NodeType'. """ # ----...
PypiClean
/BottleJwtAuth-21.9.1.tar.gz/BottleJwtAuth-21.9.1/src/JwtAuth/jwtAuth.py
import os from JwtEncoder import JwtEncoder from .bottle_utils import ( _Log, UnauthorizedError, BadRequestError, request ) DEBUG = os.environ.get('DEBUG',False) class JwtAuth: api = 2 name = 'JwtAuth' def __init__(self, jwt_config, issuer, ...
PypiClean
/GottenGeography-1.1.tar.gz/GottenGeography-1.1/gg/utils.py
from __future__ import division from cPickle import dumps as pickle from cPickle import loads as unpickle from os.path import join, dirname, basename from xml.parsers.expat import ParserCreate, ExpatError from gi.repository import GConf, Clutter, Champlain from math import acos, sin, cos, radians from time import str...
PypiClean