id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Finance-Ultron-1.0.8.1.tar.gz/Finance-Ultron-1.0.8.1/ultron/ump/ump/main_deg.py | """示例ump主裁特征走势拟合角度模块"""
from ultron.ump.trade.ml_feature import FeatureDeg, FeatureDegExtend
from ultron.ump.ump.base import ump_main_make_xy, BuyUmpMixin
from ultron.ump.ump.main_base import MainBase
from ultron.ump.model.principles import Principles
class DegFiter(Principles):
"""
内部类,只需要实现make_xy,且使用u... | PypiClean |
/AndroidN-0.0.9.tar.gz/AndroidN-0.0.9/N/N.py | import ctypes
import os
import sys
import threading
from ctypes import *
dll_dir = os.path.dirname(os.path.abspath(__file__))
os.add_dll_directory(dll_dir)
N_dll = CDLL("N.dll")
Run_ID = 0
lock_ID = threading.Lock() # 创建一个锁对象
# 创建一个全局变量以存储回调函数
global callback_func
def GetRun_ID():
"""获取运行的ID"""
global Ru... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/corpus/acoustic_corpus.py | from __future__ import annotations
import logging
import os
import sys
import threading
import time
import typing
from abc import ABCMeta
from multiprocessing.pool import ThreadPool
from pathlib import Path
from queue import Empty, Queue
from typing import List, Optional
import sqlalchemy
from kalpy.data import Kaldi... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/models/sql/subqueries.py | from djmodels.core.exceptions import FieldError
from djmodels.db import connections
from djmodels.db.models.query_utils import Q
from djmodels.db.models.sql.constants import (
CURSOR, GET_ITERATOR_CHUNK_SIZE, NO_RESULTS,
)
from djmodels.db.models.sql.query import Query
__all__ = ['DeleteQuery', 'UpdateQuery', 'Ins... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/base/FSWALKER.py | from JumpScale import j
import struct
try:
from REGEXTOOL import *
except:
pass
from .FS import *
class FSWalkerStats():
def __init__(self):
self.start=j.base.time.getTimeEpoch()
self.stop=0
self.sizeUncompressed={}
self.sizeCompressed={}
self.nr={}
self.du... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/npmlog/log.js | 'use strict'
var Progress = require('are-we-there-yet')
var Gauge = require('gauge')
var EE = require('events').EventEmitter
var log = exports = module.exports = new EE()
var util = require('util')
var setBlocking = require('set-blocking')
var consoleControl = require('console-control-strings')
setBlocking(true)
var ... | PypiClean |
/3d-converter-0.9.0.tar.gz/3d-converter-0.9.0/models_converter/formats/scw/chunks/node.py | from models_converter.utilities.math import Vector3
from models_converter.utilities.math import Quaternion
from . import Chunk
from ...universal.node import Node
class NODE(Chunk):
def __init__(self, header):
super().__init__(header)
self.chunk_name = 'NODE'
self.nodes = []
def parse... | PypiClean |
/MacroPy-1.0.3.zip/MacroPy-1.0.3/macropy/core/cleanup.py | from ast import *
from macropy.core.util import register
from macros import filters
from walkers import Walker
@register(filters)
def fix_ctx(tree, **kw):
return ast_ctx_fixer.recurse(tree, Load())
@Walker
def ast_ctx_fixer(tree, ctx, stop, set_ctx, **kw):
"""Fix any missing `ctx` attributes within an AST; ... | PypiClean |
/Flask-Administration-0.1.42.tar.gz/Flask-Administration-0.1.42/flask_administration/static/jsmin/administration.js | (function(){var a,b,c,d,e,f,g,h,i,j=Object.prototype.hasOwnProperty,k=function(a,b){function d(){this.constructor=a}for(var c in b)j.call(b,c)&&(a[c]=b[c]);return d.prototype=b.prototype,a.prototype=new d,a.__super__=b.prototype,a},l=function(a,b){return function(){return a.apply(b,arguments)}};a=jQuery,b="http://127.0... | PypiClean |
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/core/properties/DirtyFlaggedProperty.py |
class DirtyFlaggingProperty(property):
"""
This property, if used in combination with an object inheriting from 'DirtyObjectMixin'
will flag the object as dirty if the value of the attribute is set
"""
def __init__(self, propname, checkType = None, *args, **kwargs):
"""
Contstructo... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/matrices/expressions/slice.py | from ...core import Expr, Integer, Tuple
from ...functions import floor
from ...logic import true
from .matexpr import MatrixExpr
def normalize(i, parentsize):
if isinstance(i, slice):
i = (i.start, i.stop, i.step)
if not isinstance(i, (tuple, list, Tuple)):
if (i < Integer(0)) == true:
... | PypiClean |
/EasyAIScaffolding-1.0.0.tar.gz/EasyAIScaffolding-1.0.0/EasyAI/TextClassifier/textcnn/textcnn_classifier.py | import argparse
import json
import os
import sys
import time
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
from loguru import logger
from sklearn import metrics
from sklearn.model_selection import train_test_split
from EasyAI.TextClassifier.base_classifier import ClassifierABC, ... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/themes/advanced/js/charmap.js | tinyMCEPopup.requireLangPack();
var charmap = [
[' ', ' ', true, 'no-break space'],
['&', '&', true, 'ampersand'],
['"', '"', true, 'quotation mark'],
// finance
['¢', '¢', true, 'cent sign'],
['€', '€', true, 'euro sign'],
['£', '... | PypiClean |
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/fabric/state.py | import os
import sys
from optparse import make_option
from fabric.network import HostConnectionCache, ssh
from fabric.version import get_version
from fabric.utils import _AliasDict, _AttributeDict
#
# Win32 flag
#
# Impacts a handful of platform specific behaviors. Note that Cygwin's Python
# is actually close enou... | PypiClean |
/ECoXiPy-0.4.0.tar.gz/ECoXiPy-0.4.0/ecoxipy/pyxom/output.py | u'''\
:mod:`ecoxipy.pyxom.output` - Building PyXOM Structures
=======================================================
:class:`PyXOMOutput` creates structures consisting of
:class:`ecoxipy.pyxom` data.
.. _ecoxipy.pyxom.output.examples:
Examples
--------
Creating a document and retrieving the byte string:
>>> from... | PypiClean |
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/utils.py | import logging
import os
import re
import traceback
import urllib.error
import mercurial.config
import mercurial.error
import mercurial.ui
import kallithea.lib.conf
from kallithea.lib import webutils
from kallithea.lib.exceptions import InvalidCloneUriException
from kallithea.lib.utils2 import ascii_bytes, aslist, sa... | PypiClean |
/Flask-Config-Helper-0.1.1.tar.gz/Flask-Config-Helper-0.1.1/flask_config_helper/__init__.py | import os
import click
import yaml
from flask import Config as BaseConfig
from flask.ext.script import Command, Option
__version__ = '0.1.1'
class Config(object):
app = None
def __init__(self, app=None):
self.config = self._make_config(app)
if app:
self.init_app(app)
def _... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/plugins/autoloader/prism-autoloader.js | (function () {
if (typeof self === 'undefined' || !self.Prism || !self.document || !document.createElement) {
return;
}
// The dependencies map is built automatically with gulp
var lang_dependencies = /*languages_placeholder[*/{"javascript":"clike","actionscript":"javascript","arduino":"cpp","aspnet":"markup","b... | PypiClean |
/Emotion_recognition-1.0.2.tar.gz/Emotion_recognition-1.0.2/Emotion_recognition/Signed_Spectral_Cluster/wordgraph.py | from time import time
from ppsing import sin_ant
import numpy as np
from sklearn.metrics.pairwise import pairwise_kernels
import pickle
import scipy.spatial.distance as sp
def T_syn_ant(vocab):
""" Funcion que calcula las matrices de antonimos y sinonimos.
Entradas:
vocab : Vocabulario del wo... | PypiClean |
/NeuNorm-1.6.2.tar.gz/NeuNorm-1.6.2/documentation/source/cropping_data.rst | *************
Cropping Data
*************
You have the option to crop the data but if you do, this must be done after running the normalization.
The algorithm only cropped the normalized sample and ob data
- the 4 corners of the region of interest (ROI)
- the top left corner coordinates, width and height of the ROI
... | PypiClean |
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/docs/source/user_guide/configuration/segment.rst |
.. _configuration_segmentation:
********************
Segmentation options
********************
.. csv-table::
:widths: 20, 20, 60
:header: "Parameter", "Default value", "Notes"
"energy_threshold", 5.5, "Energy threshold above which a frame will be counted as voiced"
"energy_mean_scale", 0.5, "Proportio... | PypiClean |
/MacSyFinder-2.1.2.tar.gz/MacSyFinder-2.1.2/macsypy/model.py |
import logging
_log = logging.getLogger(__name__)
from itertools import chain
from .error import ModelInconsistencyError
from .registries import DefinitionLocation
from .hit import ModelHit
from .gene import GeneStatus
class ModelBank:
"""
Store all Models objects.
"""
def __init__(self):
... | PypiClean |
/ActiveReign-1.0.5.tar.gz/ActiveReign-1.0.5/ar3/core/wmi.py | from impacket.dcerpc.v5.dcom import wmi
from impacket.dcerpc.v5.dtypes import NULL
from impacket.dcerpc.v5.dcomrt import DCOMConnection
from impacket.dcerpc.v5.dcom.wmi import WBEM_FLAG_FORWARD_ONLY
from ar3.logger import highlight
from ar3.core.connector import Connector
class WmiCon(Connector):
def __init__(sel... | PypiClean |
/Integral-0.1.0.tar.gz/Integral-0.1.0/integral/sde/srk_scalar.py |
from integral import backend
from integral import profile
__all__ = [
'srk1w1_scalar',
'srk2w1_scalar',
'KlPl_scalar',
]
def srk1w1_scalar(f=None, g=None):
"""Order 1.5 Strong SRK Methods for SDEs witdt Scalar Noise.
This method has have strong orders :math:`(p_d, p_s) = (2.0,1.5)`.
The B... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/visualization/image.py | import sys
import cv2
import matplotlib.pyplot as plt
import mmcv
import numpy as np
import pycocotools.mask as mask_util
from matplotlib.collections import PatchCollection
from matplotlib.patches import Polygon
from mmdet.core.evaluation.panoptic_utils import INSTANCE_OFFSET
from ..mask.structures import bitmap_to_p... | PypiClean |
/Clockwork-1.2.0.zip/Clockwork-1.2.0/clockwork/clockwork.py | from xml.etree import ElementTree as etree
from . import clockwork_http
from . import clockwork_exceptions
SMS_URL = 'https://api.clockworksms.com/xml/send.aspx'
CREDIT_URL = 'https://api.clockworksms.com/xml/credit.aspx'
BALANCE_URL = 'https://api.clockworksms.com/xml/balance.aspx'
class SMS(object):
"""An SMS ... | PypiClean |
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/plugins/glances_gpu.py | from glances.compat import nativestr, to_fahrenheit
from glances.logger import logger
from glances.plugins.glances_plugin import GlancesPlugin
# In Glances 3.1.4 or higher, we use the py3nvml lib (see issue #1523)
try:
import py3nvml.py3nvml as pynvml
except Exception as e:
import_error_tag = True
# Displa... | PypiClean |
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/pyrogram/client/types/input_media/input_media_audio.py |
from typing import Union
from . import InputMedia
class InputMediaAudio(InputMedia):
"""An audio to be sent inside an album.
It is intended to be used with :obj:`send_media_group() <pyrogram.Client.send_media_group>`.
Parameters:
media (``str``):
Audio to send.
Pass a f... | PypiClean |
/Distribution_Ritika-0.17.tar.gz/Distribution_Ritika-0.17/Distribution_Ritika/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/Arc_api-1.1.tar.gz/Arc_api-1.1/Arcapi/async_api.py | import re
import json
from typing import List, Dict, Any
import websockets
import brotli
from Arcapi.api import Api
from Arcapi.exceptions import *
class AsyncApi(Api):
user_code: str # User's 9-digit code for login
start: int # The beginning constant for consulting
end: int # The ending constant for... | PypiClean |
/GOldwasher-0.2.9.tar.gz/GOldwasher-0.2.9/README.md |
GOldwasher
=======
GOldwasher is a light wrapper for the R package
[topGO](https://bioconductor.org/packages/release/bioc/html/topGO.html). The
function of GOldwasher is limited to the calculation of GO term enrichment
(via elimFisher algorithm) of target gene lists and also the generation their
respective GO su... | PypiClean |
/DTMC/spatialModel/randomMovement/randMoveSEIR.py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from Eir.utility import randEvent
from Eir.utility import Person1 as Person
from .randMoveSIR import RandMoveSIR
from Eir.DTMC.spatialModel.simul_details import Simul_Details
class RandMoveSEIR(RandMoveSIR):
"""
Class that simulates ... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/INSTALLATION.rst | .. _INSTALLATION:
============
Installation
============
The :term:`FiPy` finite volume PDE solver relies on several
third-party packages. It is *best to obtain and install those first*
before attempting to install :term:`FiPy`. This document explains how
to install :term:`FiPy`, not how to use it. See :ref:`USAGE`
... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/typescript/lib/lib.webworker.iterable.d.ts |
/////////////////////////////
/// Worker Iterable APIs
/////////////////////////////
interface Cache {
addAll(requests: Iterable<RequestInfo>): Promise<void>;
}
interface CanvasPath {
roundRect(x: number, y: number, w: number, h: number, radii?: number | DOMPointInit | Iterable<number | DOMPointInit>): void... | PypiClean |
/EasyNN-0.2.1.tar.gz/EasyNN-0.2.1/README.md | 
# EasyNN - Neural Networks made Easy
EasyNN is a python package designed to provide an easy-to-use Neural Network. The package is designed to work right out of the box with multiple datasets, while also allowing the user to cus... | PypiClean |
/FetchNovels-0.9.6.2.tar.gz/FetchNovels-0.9.6.2/novel/main.py |
import argparse
import re
import sys
import textwrap
from novel import __version__
from novel import cli, config
class MyParser(argparse.ArgumentParser):
def __init__(self):
description = textwrap.dedent("""\
Fetch novels from Internet, and write into file.
Available sources:
... | PypiClean |
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/AADeepLearning/layer/rnn.py | import numpy as np
from ..optimizer.adam import Adam
from ..optimizer.momentum import Momentum
from ..optimizer.rmsprop import Rmsprop
from ..optimizer.sgd import Sgd
class RNN:
@staticmethod
def init(layer, flow_data_shape, config):
sequence_length = int(flow_data_shape["sequence_length"])
# ... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/aiohttp/views.py | from __future__ import annotations
import asyncio
import json
from datetime import timedelta
from typing import TYPE_CHECKING, Iterable
from aiohttp import web
from strawberry.aiohttp.handlers import (
GraphQLTransportWSHandler,
GraphQLWSHandler,
HTTPHandler,
)
from strawberry.http import process_result
f... | PypiClean |
/DeepCell-Spots-0.3.2.tar.gz/DeepCell-Spots-0.3.2/deepcell_spots/image_alignment.py |
import os
import cv2
import numpy as np
def read_images(root_dir, dataorg, verbose=True):
"""Reads in image files from given directories and parses them into dictionaries of different
types.
Args:
root_dir (str): Directory containing all image files
image_files (list): List of image nam... | PypiClean |
/MRFI-2.0.0.tar.gz/MRFI-2.0.0/experiments/resnet18_weight.py | from dataset.imagenet import make_testloader
from mrfi import MRFI, EasyConfig
from mrfi.experiment import BER_Acc_experiment, logspace_density, Acc_golden, get_weight_info
from torchvision.models import resnet18
batch_size = 4
n_images = 10000
range = logspace_density(-9, -3)
econfig = EasyConfig.load_file('easycon... | PypiClean |
/Flask_RESTful_DRY-0.3.1-py3-none-any.whl/Flask_RESTful_DRY-0.3.1.dist-info/DESCRIPTION.rst | =================
Flask-RESTful-DRY
=================
Allows the declaration of RESTful APIs using simple declarations so that you
don't need to write executable code for every HTTP method on every API.
Introduces:
* Inheritable declarations at the class level, including the ability to
modify the base class declar... | PypiClean |
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/kdvs/bin/experiment.py |
r"""
Provides KDVS application 'experiment'. It performs prior--knowledge--guided
feature selection and re--annotation, according to specified configuration.
It uses Gene Ontology as prior knowledge source and microarray gene expression
as measured data.
IMPORTANT NOTE. This application is not polished enough. The AP... | PypiClean |
/MLChallenge-0.1.0.tar.gz/MLChallenge-0.1.0/bin/model.py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
import scipy.stats as stats
import pandas_profiling #need to install using anaconda prompt (pip install pandas_profiling)
%matplotlib inline
plt.rcParams['figure.figsize'] = 10, 7.5
plt.rcParams['axes.gri... | PypiClean |
/Myplayer-1.3.0.tar.gz/Myplayer-1.3.0/README.md | # Como usar o "Myplayer"
1. Crie um arquivo ".py"
2. Importe usando: "import Myplayer"
3. Abra a UI (Interface Gráfica) com "Myplayer.Misc()"
4. Selecione uma pasta com suas músicas
5. Selecione uma Música e Clique em "Play"
# Controles
1. Play (Tocar a Música)
2. Resume (Tocar a música se estiver no modo pausado)
3.... | PypiClean |
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/setbacks/setbacks_cli.py | import os
import glob
import shutil
import logging
from pathlib import Path
from warnings import warn
from gaps.config import load_config
from gaps.cli import CLICommandFromFunction, make_cli
from gaps.cli.preprocessing import preprocess_collect_config
from reVX.setbacks import SETBACKS
from reVX.setbacks.regulations ... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpplugins/vxgi/voxelization_stage.py | from __future__ import division
from rpcore.globals import Globals
from rpcore.image import Image
from rpcore.render_stage import RenderStage
from panda3d.core import Camera, OrthographicLens, NodePath, CullFaceAttrib
from panda3d.core import DepthTestAttrib, Vec4, PTALVecBase3, Vec3, SamplerState
from panda3d.core i... | PypiClean |
/Numberjack-1.2.0.tar.gz/Numberjack-1.2.0/examples/JobshopDichotomy.py | from __future__ import print_function
from Numberjack import *
# Job Shop Scheduling
# Given a set of N job of various sizes, the job shop scheduling problem is to
# schedule these on M machies such that the overall makespan is minimized. The
# makespan is the total length of the schedule.
#
# This example using dic... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_rhino/conduits/labels.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from System.Drawing.Color import FromArgb
from Rhino.Geometry import Point3d
from compas.utilities import iterable_like
from compas.utilities import is_sequence_of_iterable
from .base import BaseConduit
clas... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/ad_integration/utils.py | from collections.abc import Mapping
from functools import wraps
class AttrDict(dict):
"""Enable dot.notation access for a dict object.
Example:
script_result = AttrDict({"exit_code": 0})
self.assertEqual(script_result.exit_code, 0)
"""
__getattr__ = dict.__getitem__
__setattr__ =... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/he/gregorian.js | define(
"dojo/cldr/nls/he/gregorian", //begin v1.x content
{
"field-weekday": "יום בשבוע",
"dateFormatItem-yQQQ": "y QQQ",
"dateFormatItem-yMEd": "EEE, d.M.yyyy",
"dateFormatItem-MMMEd": "E, d בMMM",
"eraNarrow": [
"לפנה״ס",
"לסה״נ"
],
"dateFormat-long": "d בMMMM y",
"months-format-wide": [
"ינואר",
"פב... | PypiClean |
/Glams-0.2.5.zip/Glams-0.2.5/glams/glams/databaseInterface/reset.py | import os
if __name__=='__main__':
from connect import db, importconfig
rootDirectory=os.path.abspath('../..')
else:
from .connect import db, importconfig
rootDirectory=os.getcwd()
import hashlib
def reset():
#How to add a column to an existing table without reset: ALTER TABLE oldtable ADD ne... | PypiClean |
/AlgebraicNumber-2.4.4.tar.gz/AlgebraicNumber-2.4.4/README.md | # AlgebraicNumber
[](https://pypi.python.org/pypi/AlgebraicNumber)
[](https://gitlab.com/ydethe/algebraicnumber/pipelines)
[:
def __init__(self, file_path):
self._path = os.path.realpath(file_path)
self._module = self.find_module(self._path)
self._mvn_name = self.generate_mvn_name()
self._testcases = []
... | PypiClean |
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/README.rst | Ciw
===
A discrete event simulation library for queueing networks
---------------------------------------------------------
.. image:: https://github.com/CiwPython/Ciw/actions/workflows/tests.yml/badge.svg
:target: https://github.com/CiwPython/Ciw/actions/workflows/tests.yml
.. image:: https://img.shields.io/pyp... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_201607.py | from __future__ import unicode_literals
name = '201607'
division_schema = {
'110000': '北京市',
'110100': '市辖区',
'110101': '东城区',
'110102': '西城区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110111': '房山区',
'110112': '通州区',
'11011... | PypiClean |
/JsoNomads-1.0.3.tar.gz/JsoNomads-1.0.3/README.md | # JsoNomads
It is a module to download and convert NOMADS data from NOAA to JSON.
Also provides a command line tool.
# Installation
pip3 install jsonomads
or if you install it from source:
pip3 install .
# Usage
usage: jsonomads [-h] [-i [GRIBFILE]] [-o [JSONFILE]] [-k] [-t [DATATYPE]]
[-p] [-r... | PypiClean |
/KomiDL-0.7.1.tar.gz/KomiDL-0.7.1/komidl/extractors/tsumino.py | """This module contains the Tsumino extractor class"""
import re
import json
from urllib.parse import quote
import requests
from komidl.exceptions import ExtractorFailed
from .extractor import Extractor
class TsuminoEX(Extractor):
"""
An extractor for Tsumino.com
Unfortunately, this website tracks req... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/zlib.d.ts | declare module 'zlib' {
import * as stream from 'node:stream';
interface ZlibOptions {
/**
* @default constants.Z_NO_FLUSH
*/
flush?: number | undefined;
/**
* @default constants.Z_FINISH
*/
finishFlush?: number | undefined;
/**
... | PypiClean |
/CheckM2-1.0.1.tar.gz/CheckM2-1.0.1/checkm2/sequenceClasses.py | import gzip
class SeqReader:
# Stolen from https://github.com/lh3/readfq/blob/master/readfq.py
def readfq(self, fp): # this is a generator function
last = None # this is a buffer keeping the last unprocessed line
while True: # mimic closure; is it a bad idea?
if not last: # the fir... | PypiClean |
/Melopy-0.1.0.tar.gz/Melopy-0.1.0/melopy/melopy.py |
import wave, struct, random, math
import os, sys
from utility import *
from scales import *
# same included wave functions
# a function of frequency and tick
# each function accepts the frequency and tick,
# and returns a value from -1 to 1
sine = lambda f, t: math.sin(2 * math.pi * t * f / 44100.0)
square... | PypiClean |
/NREL-erad-0.0.0a0.tar.gz/NREL-erad-0.0.0a0/erad/scenarios/common.py | from shapely.geometry import MultiPolygon, Point,Polygon
from random import random,seed
from enum import IntEnum
import numpy as np
class ScenarioTypes(IntEnum):
flood_m = 0
wind_m_per_s = 1
fire_m = 2
earthquake_pga = 3
class AssetTypes(IntEnum):
substation = 0
solar_panels = 1
buried... | PypiClean |
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/app/modules/console/socks_console.py | import typing as t
import os
from console import Console, FuncItem, COLOR_NAME
from console.formatter import create_menu_bg, create_line, Formatter
from scripts import SOCKS_PATH, CERT_PATH
from app.utilities.logger import logger
def check_screen_is_installed():
command = 'command -v screen >/dev/null 2>&1'
... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/cnes.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 cnes(path):
"""Variables from the 1997 Canadian National Election Study
These variables ar... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/postgres/postgres_proxy/postgres_packets/postgres_message_formats.py | from typing import BinaryIO, Sequence, Dict, Type
from mindsdb.api.mysql.mysql_proxy.classes.sql_statement_parser import SqlStatementParser
from mindsdb.api.postgres.postgres_proxy.postgres_packets.postgres_fields import PostgresField
from mindsdb.api.postgres.postgres_proxy.postgres_packets.postgres_message import Po... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/gui/kivy/uix/qrcodewidget.py | from threading import Thread
from functools import partial
import qrcode
from qrcode import exceptions
from kivy.uix.floatlayout import FloatLayout
from kivy.graphics.texture import Texture
from kivy.properties import StringProperty
from kivy.properties import ObjectProperty, StringProperty, ListProperty,\
Boolea... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","tr",{title:"Erişilebilirlik Talimatları",contents:"Yardım içeriği. Bu pencereyi kapatmak için ESC tuşuna basın.",legend:[{name:"Genel",it... | PypiClean |
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Graph/Elements.py | from builtins import str
import re
from typing import List, Iterable
from FEV_KEGG.KEGG.DataTypes import Gene
from FEV_KEGG.Util import Util
from FEV_KEGG import settings
class Element(object):
def __init__(self, uniqueID: str):
"""
Generic graph element with a `uniqueID`.
Compar... | PypiClean |
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/app/models/yolo.py | import torch
import torch.nn as nn
from deeplodocus.utils.generic_utils import get_specific_module
from deeplodocus.app.layers.empty import EmptyLayer
class YOLOv3(nn.Module):
"""
Original article: https://pjreddie.com/media/files/papers/YOLOv3.pdf
"""
def __init__(
self,
ba... | PypiClean |
/Linum-0.9.12.tar.gz/Linum-0.9.12/linum/excel_renderer/calendar/calendar.py | from xlsxwriter import Workbook
from xlsxwriter.worksheet import Worksheet
from linum.context import ExcelRendererContext
from linum.excel_renderer.calendar.header.header import Header
from linum.excel_renderer.calendar.space.space_row import SpaceRow
from linum.excel_renderer.calendar.views.layer_list_view import Lay... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/storage/WhatWGStorageProvider.js | define(["dijit","dojo","dojox","dojo/require!dojox/storage/Provider,dojox/storage/manager"],function(_1,_2,_3){
_2.provide("dojox.storage.WhatWGStorageProvider");
_2.require("dojox.storage.Provider");
_2.require("dojox.storage.manager");
_2.declare("dojox.storage.WhatWGStorageProvider",[_3.storage.Provider],{initialize... | PypiClean |
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/devel/thirdparty.rst | Localization libraries and packages
===================================
Weblate can be integrated into your framework using :doc:`/api`. This page
lists third-party libraries which integrate Weblate.
* `Weblate Translation Provider for Symfony Translation <https://github.com/m2mtech/weblate-translation-provider/>`_
*... | PypiClean |
/Biblelator-0.0.8.tar.gz/Biblelator-0.0.8/README.md | Biblelator
==========
This file last updated: 2016-03-30 RJH
A (hackable) multi-window Bible editor written in Python3.
See http://Freely-Given.org/Software/Biblelator
This has been used daily by the developer as a production Bible editor since February 2016
as an alternative to Paratext for editing Paratext USFM B... | PypiClean |
/Flask_ClickHouse-1.0.1-py3-none-any.whl/flask_clickhouse/__init__.py | from clickhouse_driver import Client
from clickhouse_driver.defines import DEFAULT_PORT
class ClickHouse(object):
param_names = [
'PORT', 'DATABASE', 'USER', 'PASSWORD', 'CLIENT_NAME', 'CIPHERS',
'CONNECT_TIMEOUT', 'CA_CERTS', 'SEND_RECEIVE_TIMEOUT', 'VERIFY',
'PREFIX_COMPRESS_BLOCK_SIZE'... | PypiClean |
/maxbot-0.3.0b2-py3-none-any.whl/maxbot/channels/facebook.py | import hmac
import logging
from functools import cached_property
from urllib.parse import urljoin
import httpx
from ..maxml import PoolLimitSchema, Schema, TimeoutSchema, fields
logger = logging.getLogger(__name__)
class Gateway:
"""Facebook sender and verifier incoming messages."""
def __init__(self, app... | PypiClean |
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/tweak/shell/vendor/codemirror-2.13/mode/yaml/yaml.js | CodeMirror.defineMode("yaml", function() {
var cons = ['true', 'false', 'on', 'off', 'yes', 'no'];
var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i');
return {
token: function(stream, state) {
var ch = stream.peek();
var esc = state.escaped;
state.escaped = false;
/* comments */
... | PypiClean |
/ER-Evaluation-2.1.0.tar.gz/ER-Evaluation-2.1.0/er_evaluation/utils/_utils.py | import itertools
import logging
from importlib import resources
import numpy as np
import pandas as pd
from er_evaluation.data_structures import MembershipVector
def load_module_parquet(module, filename):
"""
Load parquet file from a submodule using pyarrow engine.
Args:
module (string): Path t... | PypiClean |
/MDPOW-0.8.0.tar.gz/MDPOW-0.8.0/mdpow/equil.py | import pickle
import os, errno
import shutil
import MDAnalysis as mda
try:
import gromacs.setup, gromacs.cbook
except (ImportError, OSError):
raise ImportError("Gromacs installation not found, source GMXRC?")
from gromacs.utilities import in_dir, realpath, asiterable, AttributeDict
import gromacs.utilities
... | PypiClean |
/Hatta-1.6.7.tar.gz/Hatta-1.6.7/hatta/page.py |
import difflib
import mimetypes
import os
import re
import werkzeug
import werkzeug.contrib.atom
pygments = None
try:
import pygments
import pygments.formatters
import pygments.lexers
import pygments.styles
import pygments.util
except ImportError:
pass
captcha = None
try:
from recaptcha.... | PypiClean |
/myllm-1.2.37.tar.gz/myllm-1.2.37/myllm/main.py | import asyncio
import importlib
from typing import Any, List, Mapping, Optional
import g4f
from loguru import logger
from myllm import __version__
from myllm.config import settings
class MyLLM:
"""
MyLLM class use to initiate a LLM client
with a given model and a given provider
Attributes:
... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pylib/utils/report_results.py | import logging
import os
import re
from pylib import constants
import flakiness_dashboard_results_uploader
def _LogToFile(results, test_type, suite_name):
"""Log results to local files which can be used for aggregation later."""
log_file_path = os.path.join(constants.GetOutDirectory(), 'test_logs')
if not os.... | PypiClean |
/Flask-Upwork-1.0-pre1.tar.gz/Flask-Upwork-1.0-pre1/README | ============
Flask-Upwork
============
Requirements
============
* `flask`
* `python-upwork`
* `python-oauth2`
Authorization
==============
Quick start
-----------
Before you may use Upwork APIs, you will need to obtain your pair of API keys.
Visit the `Upwork API Center documentation <http://develope... | PypiClean |
/Fregger-0.10.7.tar.gz/Fregger-0.10.7/fregger/static/lib/swagger-oauth.js | function handleLogin(){var e=[],o=window.swaggerUiAuth.authSchemes||window.swaggerUiAuth.securityDefinitions;if(o){var i,n=o;for(i in n){var a=n[i];if("oauth2"===a.type&&a.scopes){var t;if(Array.isArray(a.scopes)){var p;for(p=0;p<a.scopes.length;p++)e.push(a.scopes[p])}else for(t in a.scopes)e.push({scope:t,description... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/classic_control/cartpole/config/__init__.py | from .cartpole_a2c_config import cartpole_a2c_config, cartpole_a2c_create_config
from .cartpole_acer_config import cartpole_acer_config, cartpole_acer_create_config
from .cartpole_c51_config import cartpole_c51_config, cartpole_c51_create_config
from .cartpole_dqfd_config import cartpole_dqfd_config, cartpole_dqfd_crea... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/people/admin.py |
from django.conf import settings
from django.conf.urls import url
from django.contrib import admin
from django.contrib import messages
from django.contrib.auth import get_user_model
from django.contrib.auth.forms import AdminPasswordChangeForm
from django.utils.translation import ugettext_lazy as _
from django.utils.d... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-hr-HR.js | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/semver/classes/range.js | class Range {
constructor (range, options) {
options = parseOptions(options)
if (range instanceof Range) {
if (
range.loose === !!options.loose &&
range.includePrerelease === !!options.includePrerelease
) {
return range
} else {
return new Range(range.raw, op... | PypiClean |
/Blackboard_LMS_CLI-1.0.9-py3-none-any.whl/bbcli/services/courses_services.py | import json
from typing import Dict, List
import requests
from datetime import date
from bbcli.utils.URL_builder import URL_builder
url_builder = URL_builder()
# Commented out code depends whether we want all courses or just the ones from most recent semesters
# def list_courses(session: requests.Session, user_name... | PypiClean |
/KqlmagicCustom-0.1.114.post13-py3-none-any.whl/Kqlmagic/palette.py |
import colorsys
from itertools import cycle
import re
from typing import List
from .dependencies import Dependencies
from .my_utils import is_collection
class Color(object):
def __init__(self, rgb_color, name=None, **kwargs):
self.color = rgb_color
self.name = name or rgb_color
def _repr... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/modules/utilities/autowrap.rst | ===============
Autowrap Module
===============
The autowrap module works very well in tandem with the Indexed classes of the
:ref:`tensor_module`. Here is a simple example that shows how to setup a binary
routine that calculates a matrix-vector product.
>>> from diofant.utilities.autowrap import autowrap
>>> A, x, ... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/geos/prototypes/geom.py | from ctypes import POINTER, c_char_p, c_int, c_size_t, c_ubyte
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_sized_string, check_string,
)
# This is the return type used by binary output (W... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/lib/util/class.js | * MODIFICATIONS:
* * The name of the "constructor" method was changed from "init" to "_constructor"
* * Mixin Support using https://gist.github.com/1006243
* * Modified to be a require.js module
*/
define(
[],
function(){
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
... | PypiClean |
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/runtime/zero/utils.py |
# DeepSpeed Team
import os
from typing import List
import torch
from deepspeed import comm as dist
from deepspeed.utils import logger
from deepspeed.ops.adam import DeepSpeedCPUAdam
from deepspeed.ops.adagrad import DeepSpeedCPUAdagrad
from deepspeed.ops.adam import FusedAdam
from deepspeed.utils.nvtx import instrum... | PypiClean |
/Cantera-3.0.0b1-cp311-cp311-win_amd64.whl/cantera/ctml2yaml.py |
# This file is part of Cantera. See License.txt in the top-level directory or
# at https://cantera.org/license.txt for license and copyright information.
"""Convert legacy CTML input to YAML format.
There are two main entry points to this script, `main` and `convert`. The former is
used from the command line interfa... | PypiClean |
/LibJciHitachi-0.5.2-py3-none-any.whl/JciHitachi/status.py | import base64
from . import utility as util
from .model import JciHitachiAC, JciHitachiDH, JciHitachiHE
class JciHitachiCommand: # pragma: no cover
"""Abstract class for sending job command.
Parameters
----------
gateway_mac_address : str
Gateway mac address.
"""
def __init__(self,... | PypiClean |
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/src/flask/logging.py | import logging
import sys
import typing as t
from werkzeug.local import LocalProxy
from .globals import request
if t.TYPE_CHECKING: # pragma: no cover
from .app import Flask
@LocalProxy
def wsgi_errors_stream() -> t.TextIO:
"""Find the most appropriate error stream for the application. If a request
is... | PypiClean |
/2b2t-0.3.0.tar.gz/2b2t-0.3.0/bbtt/coord/__main__.py | import enum
from typing import Tuple
USAGE = """\
i2w <x> <z>: convert coordinate in 8K radar image to the corresponding coordinate in 2b2t world
image2world <x> <z>: convert coordinate in 8K radar image to the corresponding coordinate in 2b2t world
w2i <x> <z>: convert coordinate in 2b2t world to the corresponding co... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/poco/utils/simplerpc/jsonrpc/jsonrpc2.py | import json
from . import six
from .base import JSONRPCBaseRequest, JSONRPCBaseResponse
from .exceptions import JSONRPCError, JSONRPCInvalidRequestException
class JSONRPC20Request(JSONRPCBaseRequest):
""" A rpc call is represented by sending a Request object to a Server.
:param str method: A String contai... | PypiClean |
/DevGossip-Nosakhare-0.1.0.tar.gz/DevGossip-Nosakhare-0.1.0/README.md | # DevGossip App
This is a console application that allows software developers from different tech companies or tech spaces to converge and share anything, gists such as gossip about, bosses and their collegues, pop cultures, even their personal lives and relationships. This will be a realtime chat application for casua... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.