id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/domain.d.ts | declare module 'domain' {
import EventEmitter = require('node:events');
/**
* The `Domain` class encapsulates the functionality of routing errors and
* uncaught exceptions to the active `Domain` object.
*
* To handle the errors that it catches, listen to its `'error'` event.
*/
clas... | PypiClean |
/Hatak_Alembic-0.1.3.tar.gz/Hatak_Alembic-0.1.3/src/haplugin/alembic/commands.py | import sys
from configparser import ConfigParser
from alembic.config import CommandLine, Config
from alembic.command import stamp
import venusian
import re
from hatak.command import Command
from haplugin.sql.testing import DatabaseTestCreation
from haplugin.sql.plugin import SqlPlugin
class AlembicCommand(Command):... | PypiClean |
/CslBot-0.21-py3-none-any.whl/scripts/client.py |
import configparser
import logging
import ssl
import sys
from irc import client, connection
class IrcClient(client.SimpleIRCClient):
def __init__(self, nick, config):
self.nick = nick
self.config = config
self.loading = False
super().__init__()
def on_welcome(self, c, _):
... | PypiClean |
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/tensor.py | import numpy, sys
from csc.divisi.dict_mixin import MyDictMixin
import copy, random, math
from csc.divisi.exceptions import DimensionMismatch, InvalidLayeringException
from csc.divisi._svdlib import svd, dictSvd, isvd, dictIsvd
from warnings import warn
import logging
from itertools import izip
__all__ = ['TheEmptySli... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/search/en.py | from typing import Dict
from sphinx.search import SearchLanguage
from sphinx.util.stemmer import get_stemmer
english_stopwords = set("""
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
""".split())
js_porter_s... | PypiClean |
/FuestcDoor01-0.0.5.tar.gz/FuestcDoor01-0.0.5/Fuestcdoor/static/js/chunk-2a5e4bc4.fce45a6b.js | (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2a5e4bc4"],{"022a":function(t,e,s){"use strict";var i=s("e6c5"),a=s.n(i);a.a},b33e:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,i=t._self._c||e;return t.disabledFlag?i("v-card",{staticClass:"pt-5",attrs:{flat:"",tile... | PypiClean |
/Emberblast-1.0.7.tar.gz/Emberblast-1.0.7/emberblast/communicator/informer_cmd.py | import multiprocessing
import os
import time
from typing import List
import timg
from colorama import Fore
from emojis import emojis
from termcolor import colored
from emberblast.interface import IInformingSystem, IPlayer, ISkill, ISideEffect, IItem, IEquipmentItem, IRecoveryItem, \
IHealingItem
from emberblast.u... | PypiClean |
/BiologicalProcessNetworks-1.0a3.tar.gz/BiologicalProcessNetworks-1.0a3/bpn/mcmc/mcmcbpn.py |
# Copyright (c) 2011 Christopher D. Lasher
#
# This software is released under the MIT License. Please see
# LICENSE.txt for details.
"""A program to detect Process Linkage Networks using a Markov chain
Monte Carlo technique.
"""
import collections
import datetime
import itertools
import random
import sys
from c... | PypiClean |
/Flask-AppBuilder-jack-3.3.4.tar.gz/Flask-AppBuilder-jack-3.3.4/flask_appbuilder/base.py | from functools import reduce
import logging
from typing import Dict
from flask import Blueprint, current_app, url_for
from . import __version__
from .api.manager import OpenApiManager
from .babel.manager import BabelManager
from .const import (
LOGMSG_ERR_FAB_ADD_PERMISSION_MENU,
LOGMSG_ERR_FAB_ADD_PERMISSION... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/formatters/img.py | import sys
from commands import getstatusoutput
from pygments.formatter import Formatter
from pygments.util import get_bool_opt, get_int_opt, \
get_list_opt, get_choice_opt
# Import this carefully
try:
from PIL import Image, ImageDraw, ImageFont
pil_available = True
except ImportError:
pil_available ... | PypiClean |
/3Di_cmd_client-0.0.3.tar.gz/3Di_cmd_client-0.0.3/cmd_client/models/initial_waterlevels.py | import logging
from typing import Dict
from openapi_client import SimulationsApi
from openapi_client import ThreedimodelsApi
from openapi_client.models import (
OneDWaterLevel,
TwoDWaterLevel,
GroundWaterLevel,
OneDWaterLevelPredefined,
TwoDWaterRaster,
GroundWaterRaster,
)
from .base import Ini... | PypiClean |
/ModelicaLanguage-0.0.0a6-py3-none-any.whl/modelica_language/types/primitive.py | __all__ = (
# base type
"PrimitiveModelicaObject",
# concrete types
"PrimitiveReal",
"PrimitiveInteger",
"PrimitiveBoolean",
"PrimitiveString",
)
import numpy
import enum
from .. import util
from .abc import AbstractModelicaScalarClass
RealType = numpy.double
IntegerType = numpy.intc
Strin... | PypiClean |
/ConfigUpdater-3.2b1.tar.gz/ConfigUpdater-3.2b1/CHANGELOG.rst | =========
Changelog
=========
Version 3.2
===========
- Option ``prepend_newline`` in ``set_values`` to optionally avoid new lines, issue #104
Version 3.1.1
=============
- Preserve indentation of section when there are comments, issue #92
Version 3.1
===========
- Prevent modifying multi-line values directly wit... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/deep_augmentation/deep_batch_augmentation.py |
__author__ = "heider"
__doc__ = r"""
Created on 5/5/22
At any representation level, domain and representation agnostic !
"""
__all__ = []
def gauss_sample_deep_aug():
"""Use category balanced batches, ensuring at least 3-5 instance of a category. Then per category in batch, ... | PypiClean |
/NovaAPI-0.2.3.post1-py3-none-any.whl/nova_api/dao/mongo_dao.py | from datetime import date, datetime, time
from os import environ
from typing import Any, List, Optional, Type
from urllib.parse import quote_plus
from pymongo import MongoClient
from nova_api import GenericDAO
from nova_api.dao import camel_to_snake
from nova_api.entity import Entity
class MongoDAO(GenericDAO):
... | PypiClean |
/ER-Evaluation-2.1.0.tar.gz/ER-Evaluation-2.1.0/README.rst |
.. image:: https://github.com/Valires/er-evaluation/actions/workflows/python-package.yaml/badge.svg
:target: https://github.com/Valires/er-evaluation/actions/workflows/python-package.yaml
.. image:: https://badge.fury.io/py/er-evaluation.svg
:target: https://badge.fury.io/py/er-evaluation
.. image:: ... | PypiClean |
/MAGINE-0.1.5.tar.gz/MAGINE-0.1.5/README.rst | =================================================================
MAGINE : Mechanism of Action Generator involving Network Analysis
=================================================================
.. image:: https://api.codacy.com/project/badge/Grade/cba1091c58a246bfb07f7ed7f86afe24
:alt: Codacy Badge
:target: ... | PypiClean |
/Interplanetary_Invaders-0.7-py3-none-any.whl/interplanetary_invaders/scripts/inventory.py | import pygame
from interplanetary_invaders.scripts.retro_text import retro_text
from interplanetary_invaders.scripts import store_data
from interplanetary_invaders.scripts.sound import Sound
from interplanetary_invaders.scripts.utils import fix_path
from interplanetary_invaders.scripts.info import display_info
from in... | PypiClean |
/fangnao-0.1.0.tar.gz/FangNao-0.1.0/brainpy/measure.py |
from brainpy import profile
from brainpy import numpy as bnp
__all__ = [
'cross_correlation',
'voltage_fluctuation',
'raster_plot',
'firing_rate',
]
###############################
# NeuGroup synchronization
###############################
def cross_correlation(spikes, bin_size):
"""Calculate c... | PypiClean |
/HOPP-0.0.5-py3-none-any.whl/hybrid/grid.py | from typing import Sequence
import PySAM.Grid as GridModel
from hybrid.power_source import *
class Grid(PowerSource):
system_model: GridModel.Grid
financial_model: Singleowner.Singleowner
def __init__(self, site: SiteInfo, interconnect_kw):
system_model = GridModel.default("GenericSystemSingleO... | PypiClean |
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/checker/httpurl.py | import requests
# The validity of SSL certs is ignored to be able
# the check the URL and recurse into it.
# The warning about invalid SSL certs is given to the
# user instead.
import warnings
warnings.simplefilter(
'ignore', requests.packages.urllib3.exceptions.InsecureRequestWarning
)
from io import BytesIO
im... | PypiClean |
/HAL_9000-4.0.0.tar.gz/HAL_9000-4.0.0/HAL_9000/brain_layers.py | import gym
import copy
import math
import random
import numpy as np
from HAL_9000.activation_functions import Sigmoid, ReLU, LeakyReLU, TanH, ELU, Softmax
class Layer(object):
def set_input_shape(self, shape):
self.input_shape = shape
def layer_name(self):
return self.__class__.__name__
... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_ghpython/components/__init__.py | from __future__ import absolute_import
import glob
import os
from compas._os import remove_symlinks
from compas._os import copy as _copy
from compas_ghpython import get_grasshopper_userobjects_path
from compas_rhino import _check_rhino_version
import compas_rhino
def get_version_from_args():
args = compas_rhino... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/controllers/root.py | import os
import sys
import math
import urllib
import urllib2
import re
import imaplib
import logging
from datetime import datetime
import formencode
from formencode import validators
from decorator import decorator
import simplejson as json
from simplejson import loads, dumps
from pylons import request, response, ... | PypiClean |
/Braindecode-0.7.tar.gz/Braindecode-0.7/braindecode/classifier.py |
import warnings
import numpy as np
from sklearn.metrics import get_scorer
from skorch.callbacks import EpochTimer, BatchScoring, PrintLog, EpochScoring
from skorch.classifier import NeuralNet
from skorch.classifier import NeuralNetClassifier
from skorch.utils import train_loss_score, valid_loss_score, noop, to_numpy
... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/progressindicator.py | import wx
#----------------------------------------------------------------------
# Supported Styles
PI_PULSEMODE = 1
PI_HIDEINACTIVE = 2
#----------------------------------------------------------------------
class ProgressIndicator(wx.Panel):
def __init__(self, *args, **kw):
wx.Panel.__init__(self, *a... | PypiClean |
/ConsurfDB_client_API-1.0-py3-none-any.whl/consurfDB/consurf/base.py | from ..residue_type import ResidueDataType
import warnings
from typing import *
import re
import logging
import requests
class ConBase:
log = logging.getLogger()
# ----- init methods ---------
REQUEST_VERIFY_SETTING = False # False for now, but may be a risk of attack
ResidueDataType = ResidueDat... | PypiClean |
/HamperCLI-1.0.4.tar.gz/HamperCLI-1.0.4/hamper/identifier.py |
from helpers.error import HamperError
from helpers.driver import HamperDriver
from selenium.webdriver.support.ui import WebDriverWait
import time
from termcolor import colored
class HamperIdentifier(object):
#
# The enabled services constants. Taken from the 'name' of each item in the provisioning portal.
#
H... | PypiClean |
/Camerons_Python-0.0.2.tar.gz/Camerons_Python-0.0.2/cameron/matplotlib.py | import matplotlib.pyplot as plt
from matplotlib.backends.backend_pdf import PdfPages
import numpy as np
__all__ = ["save_all", "named_bar_chart", "named_bar_chart_points"]
def save_all(filename, tight=False, **infodict):
kwargs = {}
if tight:
kwargs['bbox_inches'] = "tight"
with PdfPages(filenam... | PypiClean |
/Moments-2.0.tar.gz/Moments-2.0/moments/timestamp.py | from datetime import datetime, timedelta, date
from datetime import time as dttime
from time import strptime
import time as pytime
import re
time_format = "%Y.%m.%d %H:%M"
def has_timestamp(line):
(ts, remainder) = parse_line_for_time(line)
if ts:
return True
else:
return False
def get_t... | PypiClean |
/Mopidy-Pibox-0.9.1.tar.gz/Mopidy-Pibox-0.9.1/README.rst | ****************************
Mopidy-Pibox
****************************
.. image:: https://img.shields.io/pypi/v/Mopidy-Pibox.svg?style=flat
:target: https://pypi.python.org/pypi/Mopidy-Pibox/
:alt: Latest PyPI version
.. image:: https://circleci.com/gh/gbannerman/mopidy-pibox/tree/master.svg?style=shield
... | PypiClean |
/AMAT-2.2.22.tar.gz/AMAT-2.2.22/README.md | # AMAT
Aerocapture Mission Analysis Tool (AMAT) is designed to provide rapid mission
analysis capability for aerocapture and atmospheric Entry, Descent, and Landing (EDL)
mission concepts to the planetary science community. AMAT was developed at the
[Advanced Astrodynamics Concepts (AAC)](https://engineering.purdue... | PypiClean |
/InsightsOnCode-0.1.1.6.tar.gz/InsightsOnCode-0.1.1.6/insightsoncode/constants/wrapperdictconstants.py | from insightsoncode.constants.wrapperstringconstants import StringConstants
class DictConstants(object):
def __init__(self):
self.sc_in_dc = StringConstants()
self.dict_column_types = {
self.sc_in_dc.str_column_customer_id : str,
self.sc_in_dc.str_column_project_id : str,
... | PypiClean |
/ECmean4-0.1.4.tar.gz/ECmean4-0.1.4/ecmean/libs/units.py | #############################
# UNIT ADJUSTMENT FUNCTIONS #
#############################
import logging
from metpy.units import units
loggy = logging.getLogger(__name__)
class UnitsHandler():
"""
Class for dealing with units format and conversion within ECmean4
"""
def __init__(self, var=None, org_... | PypiClean |
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/extensions/base.py | import inspect
from functools import wraps
from django.contrib import admin
from django.core.exceptions import ImproperlyConfigured
from feincms.utils import get_object
class ExtensionsMixin:
@classmethod
def register_extensions(cls, *extensions):
"""
Register all extensions passed as argume... | PypiClean |
/NlpToolkit-SpellChecker-1.0.27.tar.gz/NlpToolkit-SpellChecker-1.0.27/SpellChecker/TrieBasedSpellChecker.py | from collections import deque
from Corpus.Sentence import Sentence
from Dictionary.Word import Word
from MorphologicalAnalysis.FsmMorphologicalAnalyzer import FsmMorphologicalAnalyzer
from NGram.NGram import NGram
from SpellChecker.Candidate import Candidate
from SpellChecker.NGramSpellChecker import NGramSpellChecke... | PypiClean |
/CommandModule-1.0.tar.gz/CommandModule-1.0/Commands.py | from _functools import reduce
import datetime
import gzip
import os
import re
import CommandPattern
def log_time(func):
def inner(*args, **kwargs):
start = datetime.datetime.now()
retval = func(*args, **kwargs)
end = datetime.datetime.now()
duration = end - start
print... | PypiClean |
/MaiConverter-0.14.5-py3-none-any.whl/maiconverter/simai/simai.py | from __future__ import annotations
import math
from typing import Optional, Tuple, List, Union
from lark import Lark
from .tools import (
get_measure_divisor,
convert_to_fragment,
get_rest,
parallel_parse_fragments,
)
from ..event import NoteType
from .simainote import TapNote, HoldNote, SlideNote, To... | PypiClean |
/Mopidy-Muse-0.0.27.tar.gz/Mopidy-Muse-0.0.27/mopidy_muse/static/client/index.54e2b1f7.js | import{S as a,a as s,s as t,b as n,e as l,d as r,f as c,g as e,h as i,j as o,k as h,l as d,m as u,t as m,n as f,o as p,p as g,q as v,i as k,r as $,u as E,v as w,w as b,x as y,y as I,z as D,A as V,B as x,C as P,D as A,E as N,F as z,G as T,H as R,I as C,J as G,K as _,L as j,M,N as U,O as F,P as S,Q as q,R as B,T as H,U a... | PypiClean |
/Flask-FTSCursor-0.2.6.tar.gz/Flask-FTSCursor-0.2.6/README.md | # Flask-FTSCursor
An extension to facilitate using [FTSCursor](https://github.com/anthony-aylward/ftscursor) with [Flask](https://flask.palletsprojects.com/en/1.1.x/)
## Installation
`pip3 install flask-ftscursor`
## Mission Statement
This package was inspired by Miguel Grinberg's
[Flask Mega-Tutorial](https://blog.... | PypiClean |
/JacksonQuery-0.0.1-py3-none-any.whl/portfolio_optimization/factor_model.py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def analyze_factor_model(factor_data, min_rank=0.7, prints=False, display_heatmap=True, figsize=(15, 6)):
"""
Analyze factor model for subaccount selection.
:param factor_data: (pd.DataFrame) DataFrame of factor ... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/interfaces/triggers/trigger_task.py | import copy
import traceback
from mindsdb_sql import parse_sql
from mindsdb_sql.parser.ast import Data, Identifier
from mindsdb_sql.planner.utils import query_traversal
from mindsdb.interfaces.storage import db
from mindsdb.api.mysql.mysql_proxy.controllers.session_controller import SessionController
from mindsdb.api... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/phone_number/ro_RO/__init__.py | from .. import Provider as PhoneNumberProvider
class Provider(PhoneNumberProvider):
formats = (
"021 ### ####",
"0231 ### ###",
"0232 ### ###",
"0233 ### ###",
"0234 ### ###",
"0235 ### ###",
"0236 ### ###",
"0237 ### ###",
"0238 ### ###",
... | PypiClean |
/CLAM-3.2.6.tar.gz/CLAM-3.2.6/clam/config/textstats3.py |
###############################################################
# CLAM: Computational Linguistics Application Mediator
# -- Settings --
# by Maarten van Gompel (proycon)
# http://ilk.uvt.nl/~mvgompel
# Induction for Linguistic Knowledge Research Group
# Universiteit van Tilburg
#
# Licen... | PypiClean |
/Internet-in-a-Box-0.5.10.tar.gz/Internet-in-a-Box-0.5.10/iiab/webapp.py | from flask import Flask, url_for
from flask.ext.babel import Babel
from flask.ext.autoindex import AutoIndex
import sys
import urlparse
from config import config
import top_views
import search_views
import map_views
import video_views
import gutenberg
import gutenberg_content_views
import wikipedia_views
import zim_vi... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/backbones/hourglass.py | import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from mmcv.runner import BaseModule
from ..builder import BACKBONES
from ..utils import ResLayer
from .resnet import BasicBlock
class HourglassModule(BaseModule):
"""Hourglass Module for HourglassNet backbone.
Generate modu... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/convection/exponential2D/cylindricalMesh2D.py | r"""
This example solves the steady-state cylindrical convection-diffusion equation
given by:
.. math::
\nabla \cdot \left(D \nabla \phi + \vec{u} \phi \right) = 0
with coefficients :math:`D = 1` and :math:`\vec{u} = (10,)`, or
>>> diffCoeff = 1.
>>> convCoeff = ((10.,), (0.,))
We define a 2D cylindrical mesh ... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/functions/channels.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeChannelAdminLogEventsFilter, TypeChannelParticipantsFilter, TypeChatAdminRights, TypeCh... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/encoding/compression/lzw.js.uncompressed.js | define("dojox/encoding/compression/lzw", [
"dojo/_base/lang", // dojo.extend
"../bits"
], function(lang, bits) {
var lzw = lang.getObject("dojox.encoding.compression.lzw", true);
/*=====
lzw = dojox.encoding.compression.lzw;
=====*/
var _bits = function(x){
var w = 1;
for(var v = 2; x >= v; v <<= 1, ++w);... | PypiClean |
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/cli/cli_app.py | import inspect
import locale
import logging
import sys
from pathlib import Path
import rich_click as click
from bx_py_utils.path import assert_is_file
from rich import print # noqa
from rich_click import RichGroup
import dragonpy
from basic_editor.editor import run_basic_editor
from dragonpy import __version__, cons... | PypiClean |
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/model/parser/lex_yacc/grammar/algorithms.py | from aqopa.model.parser.lex_yacc import LexYaccParserExtension
from aqopa.model import AlgWhile, AlgCallFunction, AlgIf, AlgReturn, AlgAssignment
class Builder():
"""
Builder for store objects
"""
class ModelParserExtension(LexYaccParserExtension):
"""
Extension for parsing functions
""... | PypiClean |
/DisplaceNet-0.1.tar.gz/DisplaceNet-0.1/engine/object_detection_branch/retina_net/keras_retinanet/utils/coco_eval.py | from __future__ import print_function
from pycocotools.cocoeval import COCOeval
import numpy as np
import json
def evaluate_coco(generator, model, threshold=0.05):
""" Use the pycocotools to evaluate a COCO model on a dataset.
Args
generator : The generator for generating the evaluation data.
... | PypiClean |
/DoraPy-1.1.0-py3-none-any.whl/dorapy/utils/dataset.py | import gzip
import os
import pickle
import struct
import tarfile
import numpy as np
from numpy.core.numeric import ones
from dorapy.utils.downloader import download_url
class Dataset:
def __init__(self, data_dir, **kwargs):
self._train_set = None # 训练集
self._valid_set = None # 验证集
... | PypiClean |
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/drivers/oneflow_driver/single_device.py | import os
from typing import Dict, Union
from fastNLP.envs.imports import _NEED_IMPORT_ONEFLOW
if _NEED_IMPORT_ONEFLOW:
import oneflow
from oneflow.utils.data import SequentialSampler as OneflowSequentialSampler
from oneflow.utils.data import BatchSampler as OneflowBatchSampler
__all__ = [
"OneflowSin... | PypiClean |
/FINQ-1.1.4b0.tar.gz/FINQ-1.1.4b0/README.md | # FINQ
Lightweight conveyor data processing python framework, which allows to quickly write long queries without a fear that it'll become unreadable,
because FINQ as opposed to standard library allows you to write each logical part of query at next line without tearing it and expanding logical block over whole functio... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/pt-br.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{euro:"Euro",lsquo:"Aspas simples esquerda",rsquo:"Aspas simples direita",ldquo:"Aspas duplas esquerda",rdq... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Fuzzing/Mutators/AutomataMutator.py |
# +---------------------------------------------------------------------------+
# | 01001110 01100101 01110100 01111010 01101111 01100010 |
# | |
# | Netzob : Inferring communication protocols |... | PypiClean |
/ContrailCA-0.4.0.tar.gz/ContrailCA-0.4.0/contrail/security/ca/impl.py | __author__ = "P J Kershaw"
__date__ = "19/09/12"
__copyright__ = "(C) 2012 Science and Technology Facilities Council"
__license__ = "BSD - see LICENSE file in top-level directory"
__contact__ = "Philip.Kershaw@stfc.ac.uk"
__revision__ = "$Id$"
import logging
log = logging.getLogger(__name__)
import six
from OpenS... | PypiClean |
/LiftoffTools-0.4.4.tar.gz/LiftoffTools-0.4.4/README.md | # LiftoffTools
LiftoffTools is a toolkit to compare genes lifted between genome assemblies. Specifically it is designed to compare genes lifted over using [Liftoff](https://github.com/agshumate/Liftoff) although it is also compatible with other lift-over tools such as UCSC liftOver as long as the feature IDs are the s... | PypiClean |
/DecryptLogin-0.3.6.tar.gz/DecryptLogin-0.3.6/README.md | <div align="center">
<img src="./docs/logo.png" width="600"/>
</div>
<br />
[](https://httpsgithubcomcharlespikachudecryptlogin.readthedocs.io/zh/latest/)
[](https://pypi.org/project/D... | PypiClean |
/HavNegpy-1.2.tar.gz/HavNegpy-1.2/docs/_build/html/_build/html/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/_build/doctrees/nbsphinx/hn_module_tutorial.ipynb | # Tutorial for the HN module of HavNegpy package
```
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import os
import HavNegpy as dd
%matplotlib qt
os.chdir(r'M:\Marshall_Data\mohamed_data\mohamed_data\n44')
def create_dataframe(f):
col_names = ['Freq', 'T', 'Eps1', 'Eps2']
#f ... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/fontdata-extra.js | (function(n){var w="2.7.9";var l=n.FONTDATA.DELIMITERS;var o="H",d="V";var b="NeoEulerMathJax_Alphabets",t="NeoEulerMathJax_Arrows",x="NeoEulerMathJax_Fraktur",s="NeoEulerMathJax_Main",i="NeoEulerMathJax_Marks",v="NeoEulerMathJax_NonUnicode",p="NeoEulerMathJax_Normal",y="NeoEulerMathJax_Operators",m="NeoEulerMathJax_Sc... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/gui/qt/fee_slider.py | import threading
from PyQt5.QtGui import QCursor
from PyQt5.QtCore import Qt
from PyQt5.QtWidgets import QSlider, QToolTip
from electrum.i18n import _
class FeeSlider(QSlider):
def __init__(self, window, config, callback):
QSlider.__init__(self, Qt.Horizontal)
self.config = config
self.... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/layouts/ApplicationLayoutExample.py | from muntjac.ui.themes import Reindeer
from muntjac.api import \
(VerticalLayout, Button, Label, Window, HorizontalLayout,
Panel, Tree, Table)
from muntjac.ui.window import ICloseListener
from muntjac.ui.button import IClickListener
from muntjac.demo.sampler.ExampleUtil import ExampleUtil
class Applicatio... | PypiClean |
/AuthKit-0.4.5.tar.gz/AuthKit-0.4.5/authkit/authorize/wsgi_adaptors.py | from paste import httpexceptions
from webob.exc import HTTPForbidden, HTTPUnauthorized
class PermissionSetupError(Exception):
pass
#
# Errors
#
class PermissionError(httpexceptions.HTTPClientError):
"""
Base class from which ``NotAuthenticatedError`` and ``NotAuthorizedError``
are inherited.
"""... | PypiClean |
/DragonPyEmulator-0.9.0-py3-none-any.whl/dragonpy/sbc09/make_mem_info.py |
txt = """E400:
E400: 1AFF reset orcc #$FF ;Disable interrupts.
E402: 4F clra
E403: 1F8B tfr a,dp ;Set direct page register to 0.
E405: 10CE0400 lds #ramstart
E409: 8EE4FF ldx #intv... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/invoice.py | import re # noqa: F401
import sys # noqa: F401
from typing import (
Optional,
Union,
List,
Dict,
)
from MergePythonSDK.shared.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
OpenApiModel,
change_keys_js_to_python,... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/types/messages_and_media/voice.py |
from datetime import datetime
import hikkapyro
from hikkapyro import raw, utils
from hikkapyro.file_id import FileId, FileType, FileUniqueId, FileUniqueType
from ..object import Object
class Voice(Object):
"""A voice note.
Parameters:
file_id (``str``):
Identifier for this file, which c... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/ruby/ruby.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9200.d0bc8746.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9200],{69200:function(E,T,A){A.r(T),A.d(T,{conf:function(){return N},language:function(){return e}});var N={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["[","]"],["(",")"],["{","}"]],autoClosingPairs:[... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/gui/exposure_widget.py | from __future__ import division
from panda3d.core import ComputeNode, Vec4, Vec3
from direct.gui.DirectFrame import DirectFrame
from rpcore.gui.sprite import Sprite
from rpcore.gui.text import Text
from rpcore.rpobject import RPObject
from rpcore.image import Image
from rpcore.globals import Globals
from rpcore.load... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/writer_handler/ingest.py | import time
import pandas as pd
from langchain.text_splitter import RecursiveCharacterTextSplitter
from langchain.vectorstores import Chroma
from mindsdb.utilities.log import get_log
from .settings import (
DEFAULT_EMBEDDINGS_MODEL,
df_to_documents,
get_chroma_settings,
load_embeddings_model,
)
logg... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/Grid2Op-1.9.3.dist-info/LICENSE.md | Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of oth... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/charting/action2d/MoveSlice.js.uncompressed.js | define("dojox/charting/action2d/MoveSlice", ["dojo/_base/connect", "dojo/_base/declare", "./PlotAction", "dojo/fx/easing", "dojox/gfx/matrix",
"dojox/gfx/fx", "dojox/lang/functional", "dojox/lang/functional/scan", "dojox/lang/functional/fold"],
function(hub, declare, PlotAction, dfe, m, gf, df, dfs, dff){
/*=====... | PypiClean |
/Modulation-0.0.4.tar.gz/Modulation-0.0.4/modulation/classification/seperation/audio_unet.py |
__author__ = "Christian"
__doc__ = r"""
Created on 29/03/2020
"""
from typing import List, Tuple
import torch
from draugr.writers import Writer
from torch import nn
from modulation.torch_utilities import torch_transforms
__all__ = ["UNetConvBlock", "UNetDeconvBlock", "UNet"]
class UNetConv... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/drawers/mpl_drawers/image_stream_plot.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Image stream plot using matplotlib
Created on 22-01-2021
"""
__all__ = ["ImageStreamPlot"]
from typing import Sequence
import matplotlib
from draugr.drawers.mpl_drawers.mpldrawer import MplDrawer
from matplotlib import pypl... | PypiClean |
/Jvis-learn-0.0.12.tar.gz/Jvis-learn-0.0.12/Jvis/spectral.py | from warnings import warn
import numpy as np
import scipy.sparse
import scipy.sparse.csgraph
from sklearn.manifold import SpectralEmbedding
from sklearn.metrics import pairwise_distances
from Jvis.distances import pairwise_special_metric, SPECIAL_METRICS
from Jvis.sparse import SPARSE_SPECIAL_METRICS, sparse_named_... | PypiClean |
/ANNarchy-4.7.2.6.tar.gz/ANNarchy-4.7.2.6/examples/homeostatic_stdp/Ramp.py | from __future__ import print_function
from ANNarchy import *
# Izhikevich RS neuron
RSNeuron = Neuron(
parameters = """
a = 0.02 : population
b = 0.2 : population
c = -65. : population
d = 8. : population
tau_ampa = 5. : population
tau_nmda = 150. : population
... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/messages/send_voice.py |
import os
import re
from datetime import datetime
from typing import Union, BinaryIO, List, Optional, Callable
import hikkapyro
from hikkapyro import StopTransmission, enums
from hikkapyro import raw
from hikkapyro import types
from hikkapyro import utils
from hikkapyro.errors import FilePartMissing
from hikkapyro.fi... | PypiClean |
/Chronix2Grid-1.2.0.post1.tar.gz/Chronix2Grid-1.2.0.post1/chronix2grid/grid2op_utils/loads_utils.py |
import os
import json
import pandas as pd
import numpy as np
from chronix2grid.getting_started.example.input.generation.patterns import ref_pattern_path
from chronix2grid.generation.consumption import ConsumptionGeneratorBackend
from chronix2grid.generation.consumption.consumption_utils import (get_seasonal_pattern,
... | PypiClean |
/IrssiNotifier-0.2.0RC1.tar.bz2/IrssiNotifier-0.2.0RC1/irssinotifier/parser.py |
import os
import sys
from optparse import OptionParser
import ConfigParser
from irssinotifier import __version__ as VERSION
class IrssiProxyNotifierStartup:
def __init__(self):
parser = OptionParser(
usage = "%prog [options]",
version = "%prog " + VERSION
)
parser.d... | PypiClean |
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/ApiEquipment.py | from networkapiclient.ApiGenericClient import ApiGenericClient
from networkapiclient.utils import build_uri_with_ids
class ApiEquipment(ApiGenericClient):
def __init__(self, networkapi_url, user, password, user_ldap=None, log_level='INFO', request_context=None):
"""Class constructor receives parameters t... | PypiClean |
/MD_MTL-0.0.9-py3-none-any.whl/MD_MTL/functions/MTL_Logistic_L21.py | import numpy as np
from .init_opts import init_opts
from numpy import linalg as LA
from tqdm import tqdm
from tqdm import trange
import sys
import time
class MTL_Logistic_L21:
"""MTL binary logistic regression with hinge loss and L21 penalty
"""
def __init__(self, opts, rho1=0.01):
"""Initialization of MTL binary... | PypiClean |
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/pgu/gui/container.py | import pygame
from pygame.locals import *
from .const import *
from . import widget, surface
from . import pguglobals
class Container(widget.Widget):
"""The base container widget, can be used as a template as well as stand alone."""
def __init__(self,**params):
widget.Widget.__init__(self,**params)
... | PypiClean |
/dl_track_us-0.1.2.2.tar.gz/dl_track_us-0.1.2.2/DL_Track_US/gui_helpers/calculate_architecture.py | import glob
import os
import time
import tkinter as tk
import warnings
import cv2
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from keras import backend as K
from keras.models import load_model
from matplotlib.backends.backend_pdf import PdfPages
from skimage.transform import resize
from tens... | PypiClean |
/Mopidy-Spotify-4.1.1.tar.gz/Mopidy-Spotify-4.1.1/mopidy_spotify/backend.py | import logging
import pathlib
import threading
import pykka
from mopidy import backend, httpclient
import spotify
from mopidy_spotify import Extension, library, playback, playlists, web
logger = logging.getLogger(__name__)
BITRATES = {
96: spotify.Bitrate.BITRATE_96k,
160: spotify.Bitrate.BITRATE_160k,
... | PypiClean |
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/tdb.py | import operator
import math
import warnings
from xmantissa.ixmantissa import IColumn
from xmantissa.error import Unsortable
from xmantissa.scrolltable import AttributeColumn as _STAttributeColumn
class AttributeColumn(_STAttributeColumn):
"""
This a deprecated name for L{xmantissa.scrolltable.AttributeColumn}... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/buffered.py | import sys
from muntjac.terminal.sys_error import SysError
from muntjac.terminal.error_message import IErrorMessage
from muntjac.data.validatable import IValidatable
class IBuffered(object):
"""Defines the interface to commit and discard changes to an object,
supporting read-through and write-through modes.
... | PypiClean |
/NICpolpy-0.1.5-py3-none-any.whl/nicpolpy/ysfitsutilpy4nicpolpy/filemgmt.py | from pathlib import Path
from warnings import warn
import ccdproc
import numpy as np
import pandas as pd
from astropy.io import fits
from astropy.io.fits.verify import VerifyError
from astropy.nddata import CCDData
from astropy.time import Time
from .hduutil import (_parse_extension, cut_ccd, inputs2list, key_mapper,... | PypiClean |
/FastaDist-1.0.1-py3-none-any.whl/fastadist/fastadist_functions.py | from bitarray import bitarray
import itertools
import sys
import re
import dendropy
import tqdm
import pkg_resources
from collections import OrderedDict
from Bio import SeqIO
import parmap
import textwrap
class GeneratorLen(object):
def __init__(self, gen, length):
self.gen = gen
self.length = len... | PypiClean |
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/impression/static/js/bootstrap-datetimepicker.min.js | !function(e){if("function"==typeof define&&define.amd)define(["jquery","moment"],e)
else{if(!jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first"
if(!moment)throw"bootstrap-datetimepicker requires moment.js to be loaded first"
e(jQuery,moment)}}(function(e,t){if(void 0===t)throw alert("momentjs is ... | PypiClean |
/Beetroot-1.1.7.4.tar.gz/Beetroot-1.1.7.4/beetroot/obf.py | from .exception import *
from .objtype import objtype
class obf:
"""Obfuscation class, it kinda sucks, for good python
obfuscation, use beetroot.cython()."""
def obfuscate(self, str_):
"""Minorly obfuscates a string. While it is unreadable,
don't expect this to stand up to anyone with a bit... | PypiClean |
/MongoBit-2021.12.9.tar.gz/MongoBit-2021.12.9/README.md | mongobit
========
Simple Mongo ORM
## Version 0.3 changes
add support pymongo >= 3.0
## Important Notice
Version 0.2 is <b>not compitable</b> with version 0.1.
Please update your script before upgrading to 0.2.
The major change is the paramaters in save, update functions,
and version 0.2 support more update operator... | PypiClean |
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/BCI2000Tools/FileReader.py | __all__ = ['ListDatFiles', 'bcistream', 'ParseState', 'ParseParam', 'ReadPrmFile', 'FormatPrmList', 'unescape']
import os
import sys
import struct
import time
try: import numpy
except: pass
class DatFileError(Exception): pass
def Warn( msg ):
sys.stderr.write( 'WARNING: %s\n' % msg )
try: sys.stderr.flush()
excep... | PypiClean |
/AI4Water-1.6.tar.gz/AI4Water-1.6/docs/source/installation.rst | Installation
*************
using pip
=========
The most easy way to install ai4water is using ``pip``
::
pip install ai4water
However, if you are interested in using only specific module of ai4water, you can
choose to install dependencies related to that module only. For example
to use only machine learning based... | PypiClean |
/flask-bitjws-0.1.1.5.tar.gz/flask-bitjws-0.1.1.5/README.rst | flask-bitjws |PyPi version| |Build Status| |Coverage| |Gitter|
==============================================================
Flask extension for `bitjws <https://github.com/g-p-g/bitjws>`__
authentication.
Install
-------
By default it's expected that
`secp256k1 <https://github.com/bitcoin/secp256k1>`__ is availabl... | PypiClean |
/KratosDelaunayMeshingApplication-9.1.3-1-cp37-cp37m-win_amd64.whl/KratosMultiphysics/DelaunayMeshingApplication/meshing_domain.py | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
#import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.DelaunayMeshingApplication as KratosDelaunay
def CreateMeshingDomain(Model, custom_settings):... | PypiClean |
/GephiStreamer-2.0.3.zip/GephiStreamer-2.0.3/gephistreamer/graph.py |
__all__ = ['Node','Edge']
class Entity(object):
'''
Abstract Class for Nodes and Edges
'''
def __init__(self,eid, property):
'''
Constructor
'''
self.property = property
self.object ={eid:self.property}
def __str__(self):
return "%s"%self.ob... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/string/charcodes.py | import sys
from mathics.builtin.atomic.strings import to_python_encoding
from mathics.builtin.base import Builtin
from mathics.core.atoms import Integer, Integer1, String
from mathics.core.convert.expression import to_mathics_list
from mathics.core.evaluation import Evaluation
from mathics.core.expression import Expre... | PypiClean |
/JaqalPaw-1.2.0a1.tar.gz/JaqalPaw-1.2.0a1/src/jaqalpaw/ir/pulse_data.py | from collections import defaultdict
from functools import lru_cache
from jaqalpaw.bytecode.pulse_binarization import pulse
from jaqalpaw.utilities.helper_functions import make_list_hashable
from jaqalpaw.utilities.datatypes import to_clock_cycles
from jaqalpaw.utilities.parameters import CLKFREQ
class PulseData:
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.