id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Geocoding-1.4.3-py3-none-any.whl/geocoding/index.py | import os
import numpy as np
from collections import deque
from .datatypes import dtypes
from .datapaths import paths, database
from .download import completion_bar, raw_data_folder_path
from . import ban_processing
file_names = ['departement', 'postal', 'commune', 'voie', 'localisation']
processed_files = {}
def p... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/GiPlugin.py | """ Support for gi typelib files
"""
import os
from nuitka.plugins.PluginBase import NuitkaPluginBase, standalone_only
class NuitkaPluginGi(NuitkaPluginBase):
plugin_name = "gi"
plugin_desc = "Support for GI typelib dependency"
@staticmethod
def isAlwaysEnabled():
"""Request to be always ena... | PypiClean |
/DigCNV-0.3.3.tar.gz/DigCNV-0.3.3/digcnv/dataPreparation.py | from digcnv.digCNV_logger import logger as dc_logger
import pandas as pd
import numpy as np
from os.path import exists, split, join
def addMicroArrayQualityData(cnvs: pd.DataFrame, data_path: str) -> pd.DataFrame:
"""Add Microarray quality data to the list of merged CNVs
:param cnvs: list of CNVs and their q... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/math/symbolic_sympy.py | from .symbolic import *
from .symbolic import _is_exactly,_column_stack,_row_stack,_builtin_functions
import sympy
from sympy.matrices import Matrix
from sympy.core.sympify import sympify
from sympy.utilities.lambdify import implemented_function
import operator
import warnings
def _sympy_zeros(args,sargs):
return ... | PypiClean |
/Epoch%20Helpers-1.1.tar.gz/Epoch Helpers-1.1/epoch_helpers/__init__.py | import argparse
from epoch_helpers.days_since_epoch import *
def create_parser():
parser = argparse.ArgumentParser()
parser.add_argument('-ds', '--days-since-epoch', action='store_true', help='Use --days-since-epoch if you want to convert a date string or year, month, day to the number of days since January 1s... | PypiClean |
/Lagranto-0.3.1.tar.gz/Lagranto-0.3.1/bin/quickview.py | import cartopy.crs as ccrs
import matplotlib.pyplot as plt
from docopt import docopt
from lagranto import Tra
from lagranto.plotting import CartoFigure
class EuMap(CartoFigure):
default_projection = ccrs.Stereographic(
central_longitude=180 - 170,
central_latitude=90 - 43,
true_scale_lati... | PypiClean |
/GOUDA-0.6.0.tar.gz/GOUDA-0.6.0/docs/changelog.md | # Changelog
## Version 0.1
- Add pre-existing utilities and new tests
## Version 0.2
- Add 'allow_resize' option to image.rotate
- Add 'add_array' method to ConfusionMatrix for faster adding of numpy arrays
- Fixed divide by 0 warning in ConfusionMatrix.sensitivity
- Added option to show/hide metrics in ConfusionMa... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/dictionary.rst |
.. _`LibriSpeech lexicon`: http://www.openslr.org/resources/11/librispeech-lexicon.txt
.. _`CMU Pronouncing Dictionary`: http://www.speech.cs.cmu.edu/cgi-bin/cmudict
.. _`Prosodylab-aligner English dictionary`: https://github.com/prosodylab/Prosodylab-Aligner/blob/master/eng.dict
.. _`Prosodylab-aligner French dict... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/gfx/svg.js | if(!dojo._hasResource["dojox.gfx.svg"]){
dojo._hasResource["dojox.gfx.svg"]=true;
dojo.provide("dojox.gfx.svg");
dojo.require("dojox.gfx._base");
dojo.require("dojox.gfx.shape");
dojo.require("dojox.gfx.path");
(function(){
var d=dojo,g=dojox.gfx,gs=g.shape,_1=g.svg;
var _2=function(ns,_3){
if(document.createElementNS)... | PypiClean |
/DUELink-1.0.1-py3-none-any.whl/DUE/Display.py | class DisplayController:
def __init__(self, serialPort):
self.serialPort = serialPort
def Show(self):
cmd = "lcdshow()"
self.serialPort.WriteCommand(cmd)
res = self.serialPort.ReadRespone()
return res.success
def Clear(self, color):
cmd = f"lcdclear({color})... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/et.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['et']={"editor":"Rikkalik tekstiredaktor","editorPanel":"Rikkaliku tekstiredaktori paneel","common":{"editorHelp":"Abi saamiseks vajuta ALT 0","browseServer":"Se... | PypiClean |
/Guitar_app-0.0.1-py3-none-any.whl/guitar_notes_update/oop_guitar.py | import turtle
from tkinter import *
import random
import playsound
import os
from sys import exit
screen = turtle.Screen()
screen.title("Fret Board")
screen.setup(1000, 400)
screen.bgpic('1024x510.gif')
note = turtle.Turtle()
note.shapesize(2)
note.penup()
FONT_SIZE = 25
FONT = ("Aarial", FONT_SIZE, "normal")
note.pen... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/messages_and_media/poll.py |
from datetime import datetime
from typing import List, Union, Optional
import hikkapyro
from hikkapyro import raw, enums, utils
from hikkapyro import types
from ..object import Object
from ..update import Update
class Poll(Object, Update):
"""A Poll.
Parameters:
id (``str``):
Unique pol... | PypiClean |
/DreamweaverTemplate-0.2.2.tar.gz/DreamweaverTemplate-0.2.2/dreamweavertemplate/service.py | import logging
import os
from bn import AttributeDict, uniform_path
from dreamweavertemplate import DWT
from pipestack.pipe import Marble, MarblePipe
from conversionkit import Field, set_result, chainPostConverters, Conversion, noConversion
from recordconvert import toRecord
from configconvert import existingDirectory... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_199812.py | from __future__ import unicode_literals
name = '199812'
division_schema = {
'110000': '北京市',
'110101': '东城区',
'110102': '西城区',
'110103': '崇文区',
'110104': '宣武区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110111': '房山区',
'11011... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/sc_msg_weapon_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 msg_base_pb2 as ... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_sticker.py |
import os
import re
from datetime import datetime
from typing import Union, BinaryIO, Optional, Callable
import pyrogram
from pyrogram import StopTransmission
from pyrogram import raw
from pyrogram import types
from pyrogram import utils
from pyrogram.errors import FilePartMissing
from pyrogram.file_id import FileTyp... | PypiClean |
/AstroKundli-2.0.0.tar.gz/AstroKundli-2.0.0/FlatlibAstroSidereal/dignities/accidental.py | from copy import copy
from FlatlibAstroSidereal import angle, dignities
from FlatlibAstroSidereal import const
from FlatlibAstroSidereal import props
from FlatlibAstroSidereal import aspects
from FlatlibAstroSidereal.dignities import essential
from FlatlibAstroSidereal.tools.chartdynamics import ChartDynamics
# Rela... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/controllers/auth.py | import logging
from pylons import tmpl_context as c
from linotp.lib.base import BaseController
from pylons.templating import render_mako as render
from linotp.lib.util import get_version
from linotp.lib.util import get_copyright_info
from linotp.lib.reply import sendError
from pylons import res... | PypiClean |
/CartiMorph_vxm-0.9.1-py3-none-any.whl/CartiMorph_vxm/tf/losses.py | import sys
import warnings
# third party
import numpy as np
import neurite as ne
import tensorflow as tf
import tensorflow.keras.backend as K
class NCC:
"""
Local (over window) normalized cross correlation loss.
"""
def __init__(self, win=None, eps=1e-5, signed=False):
self.win = win
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/CallCodes.py | from nuitka.Constants import isMutable
from nuitka.utils.Jinja2 import getTemplateC
from .CodeHelpers import (
generateChildExpressionCode,
generateExpressionCode,
withObjectCodeTemporaryAssignment,
)
from .ErrorCodes import getErrorExitCode
from .LineNumberCodes import emitLineNumberUpdateCode
from .templ... | PypiClean |
/Itachi-0.0.1rc1-py3-none-any.whl/bakend/bert/optimization.py | """Functions and classes related to optimization (weight updates)."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import re
import tensorflow as tf
def create_optimizer(loss, init_lr, num_train_steps, num_warmup_steps, use_tpu):
"""Creates an opti... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/lang/nl.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['nl']={"editor":"Tekstverwerker","editorPanel":"Tekstverwerker beheerpaneel","common":{"editorHelp":"Druk ALT 0 voor hulp","browseServer":"Bladeren op server","... | PypiClean |
/Navix-0.3.10.tar.gz/Navix-0.3.10/docs/performance.ipynb | <a href="https://colab.research.google.com/github/epignatelli/navix/blob/master/docs/performance.ipynb" target="_parent"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open In Colab"/></a>
```
!pip install -q git+https://github.com/epignatelli/navix minigrid
import jax
import jax.numpy as j... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/variables/var_trans.py |
from abc import ABC, abstractmethod
import numpy as np
from ...common.config import get_default_MXNet_mode
class VariableTransformation(ABC):
"""
Abstract class for transformations and constraints applied to Variables.
"""
@abstractmethod
def transform(self, var, F=None, dtype=None):
"""... | PypiClean |
/Gecco-0.3.0.tar.gz/Gecco-0.3.0/gecco/helpers/hapaxing.py |
import colibricore #pylint: disable=import-error
import os.path
from gecco.helpers.common import stripsourceextensions
def gethapaxer(module, settings):
hapaxer = None
if 'hapaxsource' not in settings:
hapaxsource = ""
else:
hapaxsource = module.getfilename(settings['hapaxsource'])
if... | PypiClean |
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/torchdistill/models/custom/bottleneck/classification/resnet.py | from collections import OrderedDict
from torch import nn
from torchvision.models import resnet50, resnet101, resnet152
from torchdistill.models.custom.bottleneck.base import BottleneckBase
from torchdistill.models.custom.bottleneck.processor import get_bottleneck_processor
from torchdistill.models.registry import reg... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/NEWS.rst | NEWS
====
v1.0.2 -- 2017-04-30
--------------------
:Version name: StompingFrilledShark
* major improvement
* global improvement of code architecture and organization
* enable custom operations on field values
* a list of valid bytes can be specified to specify a subset of values a domain accepts
* a... | PypiClean |
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/renderer/mjpy_renderer.py |
import mujoco_py
import numpy as np
from myosuite.renderer.renderer import Renderer, RenderMode
class MjPyRenderer(Renderer):
"""Class for rendering mujoco_py simulations."""
def __init__(self, sim):
assert isinstance(sim, mujoco_py.MjSim), \
'MjPyRenderer takes a mujoco_py MjSim object... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/gis/db/backends/postgis/introspection.py | from django.db.backends.postgresql_psycopg2.introspection import DatabaseIntrospection
from django.contrib.gis.gdal import OGRGeomType
class GeoIntrospectionError(Exception):
pass
class PostGISIntrospection(DatabaseIntrospection):
# Reverse dictionary for PostGIS geometry types not populated until
# intro... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/edit_message_caption.py |
from typing import Union, List, Optional
import pyrogram
from pyrogram import types, enums
class EditMessageCaption:
async def edit_message_caption(
self: "pyrogram.Client",
chat_id: Union[int, str],
message_id: int,
caption: str,
parse_mode: Optional["enums.ParseMode"] =... | PypiClean |
/OMP_soil_database-0.2.0.tar.gz/OMP_soil_database-0.2.0/README.rst | OMP_soil_database
==================
.. image:: https://readthedocs.org/projects/OMP_soil_database/badge/?version=latest&style=flat
:target: https://OMP_soil_database.readthedocs.io
.. image:: https://img.shields.io/travis/KWR-Water/OMP_soil_database
:target: https://travis-ci.co... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/sparklines/sparkline.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(factory);
} else if (typeof exports === 'object') {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like enviroments that support module.exports,
// lik... | PypiClean |
/Kyoukai-2.2.1.tar.gz/Kyoukai-2.2.1/kyoukai/util.py | import json
import typing
from werkzeug.wrappers import Response
# response utilities
def as_html(text: str, code: int = 200, headers: dict = None) -> Response:
"""
Returns a HTML response.
.. code-block:: python
return as_html("<h1>Hel Na</h1>", code=403)
:param text: The text... | PypiClean |
/HAPpy-ABCENTH-1.0.2.tar.gz/HAPpy-ABCENTH-1.0.2/ABCENTH/ABCENTH-legacy.py |
# Features to be added later:
#proper splice site modeler (perhaps optimizing splice site score vs. difference from expected length), maybe MAYBE taking
#into account non-conserved exon phase.
# Known issues:
#Will return annotations with arbitrary missing exons, but can't handle two exons missing in a row
impor... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dijit/CalendarLite.js | require({cache:{"url:dijit/templates/Calendar.html":"<table cellspacing=\"0\" cellpadding=\"0\" class=\"dijitCalendarContainer\" role=\"grid\" aria-labelledby=\"${id}_mddb ${id}_year\">\n\t<thead>\n\t\t<tr class=\"dijitReset dijitCalendarMonthContainer\" valign=\"top\">\n\t\t\t<th class='dijitReset dijitCalendarArrow' ... | PypiClean |
/ConfigMaster-2.3.6.tar.gz/ConfigMaster-2.3.6/configmaster/ConfigKey.py | import copy
from configmaster import exc
class ConfigKey(object):
"""
A ConfigKey object is a collection that is stored via class attributes.
>>> d = {"a": 2, "b": [1, 2, {"c": 3}], {"d": 4}}
>>> config = ConfigKey.ConfigKey()
>>> config.load_from_dict(d)
>>> config.a # Returns 2
>>> con... | PypiClean |
/Marl-Factory-Grid-0.1.2.tar.gz/Marl-Factory-Grid-0.1.2/marl_factory_grid/modules/doors/entitites.py | from marl_factory_grid.environment.entity.entity import Entity
from marl_factory_grid.utils.render import RenderEntity
from marl_factory_grid.environment import constants as c
from marl_factory_grid.modules.doors import constants as d
class DoorIndicator(Entity):
@property
def encoding(self):
return... | PypiClean |
/AutoYOLObile-0.0.10.tar.gz/AutoYOLObile-0.0.10/ModelOpt/rt3d_pruning/video_utils/video_dataset.py | import os
import numpy as np
import lmdb
import six
import torch
from PIL import Image
import torch.utils.data as data
import pyarrow as pa
def random_clip(video_frames, sampling_rate, frames_per_clip, fixed_offset=False):
"""
Args:
video_frames (int): total frame number of a video
sampling_... | PypiClean |
/LearnPythonPackaging-0.0.1-py3-none-any.whl/framework/nodes.py | from framework.cansignal import Signal, SignalGroup
from framework.concurrentcanbox import SendControl
from framework.trigger import OnReceiveSignalTrigger, OnReceiveAnyMsgTrigger, OnReceiveMsgTrigger, \
OnReceiveMsgExcludeIdsTrigger, OnKeyPressedTrigger, OnKeyReleaseTrigger, OnReceiveSignalGroupTrigger, \
OnRe... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/fields/type.py | class FieldType:
def __init__(self):
"""Specifies the type of the field (2), as specified in [MS-WSSTS] section 2.3.1."""
pass
Invalid = 0
"""It MUST NOT be used."""
Integer = 1
"""Specifies that the field (2) contains an integer value."""
Text = 2
"""Specifies that the f... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/discussion/strategy_archetypes.rst | .. _metastrategies:
Strategy Archetypes
===================
Finite State Machines
---------------------
A finite state machine (FSM) is a general computation model. In the context of Axelrod, it's a set of states and "transitions." A transition for a given state/previous-opponent-action combination says how the st... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/it-ch.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/Measurements/MeasAPI/README.md | # Measurement API
## Import
To import the measurement API simply import all needed elements by:
``from LabExT.Measurements.MeasAPI import [IMPORTS] ``
## Classes
The measurement API defines the Measurement Class as well as the new MeasParam Class
### Measurement
The class ``Measurement`` acts as a superclass for all m... | PypiClean |
/Instrumental-lib-0.7.zip/Instrumental-lib-0.7/instrumental/drivers/motion/_kinesis/_build_kinesis.py | from nicelib import build_lib
from nicelib.process import modify_pattern
# shared:
# TLI (top-level interface?)
# MOT (motors)
# NT (NanoTrak)
# PZ (Piezo)
libs = [
"Thorlabs.MotionControl.Benchtop.BrushlessMotor", # MOT, BMC
"Thorlabs.MotionControl.Benchtop.DCServo", # MOT, BDC
"Thorlabs.Motion... | PypiClean |
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/geophpy/operation/general.py | import numpy as np
import scipy
from scipy.interpolate import griddata, RectBivariateSpline, interp2d
from copy import deepcopy
from geophpy.misc.utils import *
#---------------------------------------------------------------------------#
# User defined parameters #
#-... | PypiClean |
/BS4_for_aiogram-0.0.0.5-py3-none-any.whl/bs4/builder/_lxml.py | __license__ = "MIT"
__all__ = [
'LXMLTreeBuilderForXML',
'LXMLTreeBuilder',
]
try:
from collections.abc import Callable # Python 3.6
except ImportError as e:
from collections import Callable
from io import BytesIO
from io import StringIO
from lxml import etree
from bs4.element import (
Commen... | PypiClean |
/Cell_BLAST-0.5.0.tar.gz/Cell_BLAST-0.5.0/Cell_BLAST/directi.py | r"""
DIRECTi, an deep learning model for semi-supervised parametric dimension
reduction and systematical bias removal, extended from scVI.
"""
import os
import tempfile
import time
import typing
from collections import OrderedDict
import anndata as ad
import numpy as np
import pandas as pd
import scipy
import torch
i... | PypiClean |
/FSTA-0.1.3.tar.gz/FSTA-0.1.3/README.md | FSTA Lib Fred Speech To Actions lib
========================================================================
Based on snowboy hotword detection (https://snowboy.kitt.ai/)
And cloud API like google speech API, Bing speech API, or ...
Hardware :
- Raspberry Pi (or other linux based device)
- un good microphone ... | PypiClean |
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/baseProject/static_data/jscripts/hoverIntent.js | (function($){
/* hoverIntent by Brian Cherne */
$.fn.hoverIntent = function(f,g) {
// default configuration options
var cfg = {
sensitivity: 7,
interval: 100,
timeout: 0
};
// override configuration options with user supplied object
cfg = $.extend(cfg, g ? { over: f, out: g } : f );
// instantia... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/ChangeVirtualDiskAttributesREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API to either get controllers, ... | PypiClean |
/LightDB-1.4.0.tar.gz/LightDB-1.4.0/README.rst | What is this?
-------------
LightDB is a simple and lightweight JSON database for Python that allows users to **efficiently** write data to a file. It is designed to be **easy to use**, making it a great choice for developers who need a fast and reliable way to store and retrieve data.
Features
--------
- Lightweig... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/tree/SyntaxErrors.py | from nuitka.PythonVersions import python_version
def formatOutput(e):
if len(e.args) > 1:
if len(e.args[1]) == 4:
reason, (filename, lineno, colno, message) = e.args
else:
reason, (filename, lineno, colno, message, _lineno2, _colno2) = e.args
if message is None and... | PypiClean |
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/data/data_solids_wPBE.py | from ase.atoms import Atoms, string2symbols # type: ignore
from ase.units import kB, kJ # type: ignore
import numpy as np # type: ignore
qubic_solids_26 = ['Li_bcc','Na_bcc','K_bcc','Rb_bcc',
'Ca_fcc','Sr_fcc','Ba_bcc',
'Nb_bcc','Ta_bcc',
'Mo_bcc','W_bcc',... | PypiClean |
/GD_utils-0.2.0.38-py3-none-any.whl/GD_utils/portfolio_calculator.py | import GD_utils as gdu
import pandas as pd
import numpy as np
from pandas.tseries.offsets import BDay
class PortfolioAnalysis:
def __init__(self, daily_return, outputname='./Unnamed', last_BM=False, BM_name='KOSPI'):
# 포트폴리오 일별 수익률
self.daily_return = daily_return
# 포트폴리오 복리수익률
self... | PypiClean |
/ADLES-1.4.0.tar.gz/ADLES-1.4.0/docs/index.md | ---
layout: default
---
# What is ADLES?
ADLES is a tool that automates the creation of system environments for educational purposes.
The goal of the system is to enable educators to easily build environments for their courses,
without the need for a specific platform or advanced IT knowledge.
Complete documentat... | PypiClean |
/CandyMan1-0.0.5-py3-none-any.whl/candyman1/CandyMan.py | __credits__ = "backyard-Py"
__author__ = "himangshu147-git"
__version__ = "0.0.1"
import datetime
from urllib.parse import urljoin
from pandas import DataFrame
import requests
class Nasa():
def __init__(self, key=None):
self.api_key = key
self.host = 'https://api.nasa.gov'
self.limit_rem... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/form/_FormMixin.js | if(!dojo._hasResource["dijit.form._FormMixin"]){
dojo._hasResource["dijit.form._FormMixin"]=true;
dojo.provide("dijit.form._FormMixin");
dojo.declare("dijit.form._FormMixin",null,{reset:function(){
dojo.forEach(this.getDescendants(),function(_1){
if(_1.reset){
_1.reset();
}
});
},validate:function(){
var _2=false;
retu... | PypiClean |
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/utils/datastruct.py | import typing as t
from dataclasses import dataclass
from math import ceil
from flask import current_app as cap
class ConfigProxy:
def __init__(self, key: t.Optional[str] = None, default=None):
self.__key = key
self.__default = default
def __getattr__(self, item):
obj = self._proxy()... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/5.9/crypto.js | var crypto = {};
/**
* The Hash class is a utility for creating hash digests of data. It can be
* used in one of two ways:
* @constructor
*/
crypto.Hash = function() {}
/**
* Updates the hash content with the given data, the encoding of which is
* given in input_encoding and can be 'utf8', 'ascii... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/dragndrop/DragDropTreeSortingExample.py | from muntjac.demo.sampler.ExampleUtil import ExampleUtil
from muntjac.api import VerticalLayout, Tree
from muntjac.ui.tree import TreeDragMode
from muntjac.event.dd.drop_handler import IDropHandler
from muntjac.event.dd.acceptcriteria.accept_all import AcceptAll
from muntjac.event.data_bound_transferable import DataBou... | PypiClean |
/IMAPClient-2.3.1.zip/IMAPClient-2.3.1/doc/src/installation.rst | .. _installation:
Installation
------------
Pip
~~~
IMAPClient can easily be installed with pip::
$ pip install imapclient
From Source
~~~~~~~~~~~
IMAPClient is developed on GitHub, you can find the code at `mjs/imapclient
<https://github.com/mjs/imapclient>`_.
You can clone the public repository::
$ git ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/convnext/cascade_mask_rcnn_convnext-t_p4_w7_fpn_giou_4conv1f_fp16_ms-crop_3x_coco.py | _base_ = [
'../_base_/models/cascade_mask_rcnn_r50_fpn.py',
'../_base_/datasets/coco_instance.py',
'../_base_/schedules/schedule_1x.py', '../_base_/default_runtime.py'
]
# please install mmcls>=0.22.0
# import mmcls.models to trigger register_module in mmcls
custom_imports = dict(imports=['mmcls.models'], ... | PypiClean |
/Chula-0.13.3.tar.gz/Chula-0.13.3/docs/getting_started.rst | .. installation:
===============
Getting Started
===============
Preferred::
sudo pip install chula
Alternatively::
sudo easy_install chula
.. toctree::
:maxdepth: 2
install
Application structure
+++++++++++++++++++++
Here is an example file structure of a bare bones Chula application::
|-- model
| ... | PypiClean |
/CheeseFramework-1.4.95-py3-none-any.whl/Cheese/cheeseController.py |
from urllib.parse import unquote
import os
import json
import time
from Cheese.httpClientErrors import *
from Cheese.resourceManager import ResMan
from Cheese.appSettings import Settings
from Cheese.Logger import Logger
from Cheese.fileHeaders import FileHeaders
class CheeseController:
"""
`CheeseController`... | PypiClean |
/GladTeX-3.1.0.tar.gz/GladTeX-3.1.0/gleetex/typesetting.py | from . import unicode
FORMATTING_COMMANDS = ['\\ ', '\\,', '\\;', '\\big', '\\Big', '\\left',
'\\right', '\\limits']
class DocumentSerializationException(Exception):
"""This error is raised whenever a non-ascii character contained in a
formula could not be replaced by a LaTeX command.
It provide... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/postprocessing/interpret/_main.py | import warnings
from ai4water.backend import xgboost, tf, np, pd, mpl, plt, os
from ai4water.backend import easy_mpl as ep
from ai4water.utils.visualizations import Plot
from ai4water.utils.utils import plot_activations_along_inputs
class Interpret(Plot):
"""Interprets the ai4water Model.
The ``Interpret`` c... | PypiClean |
/ElfAnalyzer-0.0.2.tar.gz/ElfAnalyzer-0.0.2/ElfAnalyzer.py |
###################
# This module parses and analyzes ELF file for Forensic and
# investigations.
# Copyright (C) 2023 ElfAnalyzer
# 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 Founda... | PypiClean |
/AtmosphericChemistry-0.1.0.tar.gz/AtmosphericChemistry-0.1.0/ac/utils/pubchempy.py | import json
import os
import time
import urllib
import urllib2
__author__ = 'Matt Swain'
__email__ = 'm.swain@me.com'
__version__ = '1.0'
__license__ = 'MIT'
API_BASE = 'https://pubchem.ncbi.nlm.nih.gov/rest/pug'
def request(identifier, namespace='cid', domain='compound', operation=None, output='JSON', searchtype=... | PypiClean |
/FIV%20CloudTrails%20SDK-2.0.1.tar.gz/FIV CloudTrails SDK-2.0.1/fc/cloudtrailsdk/client/tracker.py | from __future__ import absolute_import, unicode_literals
import datetime
import logging
import boto3
import sys
__author__ = 'Reynier Lester Claro Escalona <rclaro@fivana.com>'
__date__ = '19/05/21'
logger = logging.getLogger(__name__)
class Tracker(object):
def __init__(
self, stream_name, creden... | PypiClean |
/LRS_Lulav-0.2.2-py3-none-any.whl/LRS_Lulav/modules/start_ros.py | import os
import signal
from subprocess import Popen
import time
def run(cmd, stdout, stderr):
"""Run a given `cmd` in a subprocess, write logs to stdout / stderr.
Parameters
----------
cmd : list of str
Command to run.
stdout : str or subprocess.PIPE object
Destination of stdout ... | PypiClean |
/GS-PRACTICE-1.0.1.tar.gz/GS-PRACTICE-1.0.1/src/gspractice/run.py | import sys
import argparse
import logging
from gspractice import *
# ----- Begin code for this module. -----
_toolName = "GS-PRACTICE"
_defOutPrefix = "GS-PRACTICE" # Default output prefix.
_defDecompositionSuffix = "_decomposed.tsv" # from MutationalPatterns
_defPredictionSuffix = "_prediction.tsv" # from subtype... | PypiClean |
/EPP-0.9.1.tar.gz/EPP-0.9.1/README.rst | eppy
====
Introduction
------------
eppy is a Python-based API for the `Extensible Provisioning Protocol`_ (EPP),
commonly used for communication between domain registries and registrars.
Features
--------
* EPP Client
* Uses standard python logging
* TLS/SSL support
* EPP Server stub
* Test suite
* Load testing s... | PypiClean |
/Hive_ML-1.0.1.tar.gz/Hive_ML-1.0.1/Hive_ML/extraction/feature_extraction.py | from os import PathLike
from pathlib import Path
from typing import Union, List, Dict, Any
import SimpleITK as sitk
import numpy as np
import six
from Hive_ML.data_loader.image_loader import get_3D_image_sequence_list_from_4D_image, get_id_label
def extract_features_for_image_and_mask(extractor, image_filename: Uni... | PypiClean |
/GradAttack-0.1.2.tar.gz/GradAttack-0.1.2/gradattack/models/__init__.py | import os
import time
from typing import Any, Callable, Optional
import pytorch_lightning as pl
import torch.nn.functional as F
import torchvision.models as models
from gradattack.utils import StandardizeLayer
from sklearn import metrics
from torch.nn import init
from torch.optim.lr_scheduler import LambdaLR, MultiSte... | PypiClean |
/Flask-Fundatio-0.1.tar.gz/Flask-Fundatio-0.1/flask_fundatio/static/js/foundation/foundation.topbar.js |
;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.topbar = {
name : 'topbar',
version : '4.2.3',
settings : {
index : 0,
stickyClass : 'sticky',
custom_back_text: true,
back_text: 'Back',
is_hover: true,
scrolltop : true, // jump to top w... | PypiClean |
/Async-OAuthlib-0.0.9.tar.gz/Async-OAuthlib-0.0.9/docs/_build/html/_static/language_data.js | var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version JS is _stemmer.js if file is provided */
/**
* Porter Stemmer
*/
var Stemm... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/data/data.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import os
import json
import hashlib
from uuid import uuid4
from uuid import UUID
from copy import deepcopy
import compas
from compas.data.encoders import DataEncoder
from compas.data.encoders import DataDeco... | PypiClean |
/BlurWal-1.1.1.tar.gz/BlurWal-1.1.1/blurwal/blur.py | import argparse
import logging
import multiprocessing
import re
from typing import List, Optional, Tuple
from Xlib import X
from blurwal import frame, paths, utils, wallpaper, windows, x11
from blurwal.backends import base
from blurwal.transition import Transition
class Blur:
"""Window event listener with high-... | PypiClean |
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/plugin/WebGui.py | import tornado.web
import lumbermill.plugin.handler.HtmlHandler as HtmlHandler
import lumbermill.plugin.uimodules.WebGui as WebGui
from lumbermill.BaseModule import BaseModule
from lumbermill.utils.Decorators import ModuleDocstringParser
@ModuleDocstringParser
class WebGui(BaseModule):
"""
A WebGui plugin fo... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/form/FileInput.js.uncompressed.js | require({cache:{
'url:dojox/form/resources/FileInput.html':"<div class=\"dijitFileInput\">\n\t<input id=\"${id}\" class=\"dijitFileInputReal\" type=\"file\" dojoAttachPoint=\"fileInput\" name=\"${name}\" />\n\t<div class=\"dijitFakeInput\">\n\t\t<input class=\"dijitFileInputVisible\" type=\"text\" dojoAttachPoint=\"foc... | PypiClean |
/Lotse-1.0.0.tar.gz/Lotse-1.0.0/lotse/app/main.py | import asyncio
import logging
import sys
from typing import List, Any, Optional, Dict
from fastapi import FastAPI, Depends
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel, Field
from starlette.requests import Request
from starlette.responses import JSONResponse
from starlette.websocke... | PypiClean |
/GraphConverter-0.4.tar.gz/GraphConverter-0.4/README.rst |
The Graph Converter is a tool for creating a graph representation out of the content of PDFs.
A graph representation can act as the basis for further document processing steps.
Geometric relationships are encapsulated. By those, a document structure can be retrieved.
The tool works independent of different document... | PypiClean |
/EpyNN-1.2.11.tar.gz/EpyNN-1.2.11/epynn/commons/loss.py | import numpy as np
# To prevent from divide floatting points errors
E_SAFE = 1e-16
def loss_functions(key=None, output_activation=None):
"""Callback function for loss.
:param key: Name of the loss function, defaults to `None` which returns all functions.
:type key: str, optional
:param output_act... | PypiClean |
/AHRS-0.3.1-py3-none-any.whl/ahrs/filters/angular.py | import numpy as np
class AngularRate:
"""
Quaternion update by integrating angular velocity
Parameters
----------
gyr : numpy.ndarray, default: None
N-by-3 array with measurements of angular velocity in rad/s.
q0 : numpy.ndarray
Initial orientation, as a versor (normalized quat... | PypiClean |
/Blue-DiscordBot-3.2.0.tar.gz/Blue-DiscordBot-3.2.0/bluebot/core/commands/requires.py | import asyncio
import enum
from typing import (
Union,
Optional,
List,
Callable,
Awaitable,
Dict,
Any,
TYPE_CHECKING,
TypeVar,
Tuple,
ClassVar,
)
import discord
from .converter import GuildConverter
from .errors import BotMissingPermissions
if TYPE_CHECKING:
from .comm... | PypiClean |
/DockerMake-0.9.0b3.tar.gz/DockerMake-0.9.0b3/dockermake/step.py | from __future__ import print_function
import os
from io import StringIO, BytesIO
import sys
from termcolor import cprint, colored
import docker.utils, docker.errors
from . import utils
from . import staging
from . import errors
DOCKER_TMPDIR = "_docker_make_tmp/"
class BuildStep(object):
""" Stores and runs t... | PypiClean |
/AS-Object_models-2.3.9.tar.gz/AS-Object_models-2.3.9/as_models/item_month_notes.py | from .sales_inv_utils import SalesInvBase
from .inventory_active_items import InventoryLocation
from . import GetInstance
class MonthNotesCollection(SalesInvBase):
ext_fields = ['grow_month','item_type','inventory_locatin','notes','soft_delete','parent_path','path']
COLLECTION_NAME = 'application_data'
d... | PypiClean |
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/GSASIIplot.py | from __future__ import division, print_function
import platform
import time
import copy
import math
import sys
import os.path
import numpy as np
import numpy.ma as ma
import numpy.linalg as nl
# Don't depend on wx/matplotlib/scipy for scriptable; or for Sphinx docs
try:
import wx
import wx.aui
import wx.glc... | PypiClean |
/Captcha-Impulse-0.0.9.tar.gz/Captcha-Impulse-0.0.9/src/impulse/yolov5/utils/autobatch.py | from copy import deepcopy
import numpy as np
import torch
from torch.cuda import amp
from utils.general import LOGGER, colorstr
from utils.torch_utils import profile
def check_train_batch_size(model, imgsz=640):
# Check YOLOv5 training batch size
with amp.autocast():
return autobatch(deepcopy(model)... | PypiClean |
/Flask_Admin-1.6.1-py3-none-any.whl/flask_admin/form/rules.py | from markupsafe import Markup
from flask_admin._compat import string_types
from flask_admin import helpers
class BaseRule(object):
"""
Base form rule. All form formatting rules should derive from `BaseRule`.
"""
def __init__(self):
self.parent = None
self.rule_set = None
def ... | PypiClean |
/Dvina-1.0.tar.gz/Dvina-1.0/dvina/_models/sklearn_classifier.py | import numpy as np
from sklearn.linear_model import SGDClassifier
from sklearn.utils import validation
from sklearn.multioutput import MultiOutputClassifier
from copy import deepcopy
from .._utils.serialization import DvinaSerialization
from .base import LabelingModel
import dvina._utils as utils
@DvinaSerialization... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/blog/migrations/0001_initial.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'FileFormat'
db.create_table(u'blog_fileformat', (
(u'id', self.gf('django.db.models.fields.AutoField')(p... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/block/lib/sidebarattributeeditor.js | define([ 'aloha/jquery', 'block/blockmanager', 'aloha/sidebar', 'block/editormanager'],
function (jQuery, BlockManager, Sidebar, EditorManager) {
/**
* The Sidebar Attribute Editor is the connector which listens on Aloha Blocks and
* updates the sidebar accordingly. It builds the editors for the sidebar, initi... | PypiClean |
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/docs/build/html/_static/js/theme.js | !function(n){var e={};function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:i})},t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | PypiClean |
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/KD/text/BERT2LSTM/utils.py |
from __future__ import print_function, unicode_literals
import random
from contextlib import closing
from multiprocessing import Pool
import numpy as np
import pandas as pd
import torch
from torch.utils.data import (
DataLoader,
RandomSampler,
SequentialSampler,
TensorDataset,
random_split,
)
fro... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/PythonOperators.py | import operator
from nuitka.PythonVersions import python_version
binary_operator_functions = {
"Add": operator.add,
"Sub": operator.sub,
"Pow": operator.pow,
"Mult": operator.mul,
"FloorDiv": operator.floordiv,
"TrueDiv": operator.truediv,
"Mod": operator.mod,
"LShift": operator.lshift... | PypiClean |
/Cyra-1.0.2.tar.gz/Cyra-1.0.2/README.rst | ####
Cyra
####
Cyra is a simple config framework for Python.
Cyra's ConfigBuilder makes it easy to specify your configuration.
The config can be read from and written to a toml file.
If the config file does not exist, Cyra will generate a new one populated with initial
values and annotated with helpful comments.
Fo... | PypiClean |
/FlyDB_SDK_Python-0.0.2.tar.gz/FlyDB_SDK_Python-0.0.2/README.md | <img src="./assets/FlyDB-logo.png" alt="FlyDB-logo" style="display: block; margin: 0 auto; width: 45%;" />
>FlyDB's github address: https://github.com/ByteStorage/FlyDB
>
English | [中文](https://github.com/ByteStorage/flydb/FlyDB-SDK-Python/master/README_CN.md)
# FlyDB-SDK-Python
FlyDB-SDK-Python is a software deve... | PypiClean |
/GRIDOPT-1.3.7rc1.tar.gz/GRIDOPT-1.3.7rc1/gridopt/power_flow/dc_opf.py |
from __future__ import print_function
import time
import numpy as np
from .method_error import *
from .method import PFmethod
from numpy.linalg import norm
class DCOPF(PFmethod):
"""
DC optimal power flow method.
"""
name = 'DCOPF'
_parameters = {'thermal_limits': False,
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.