id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.14.rst | ============================
Djblets 0.8.14 Release Notes
============================
**Release date**: January 6, 2015
djblets.cache
=============
.. py:currentmodule:: djblets.cache.forwarding_backend
* Fixed threading issues with :py:class:`ForwardingCacheBackend`.
In a multi-threaded environment, a thread ... | PypiClean |
/NlpToolkit-UniversalDependencyParser-1.0.0.tar.gz/NlpToolkit-UniversalDependencyParser-1.0.0/Parser/TransitionBasedParser/ArcEagerInstanceGenerator.py | from Classification.Attribute.DiscreteIndexedAttribute import DiscreteIndexedAttribute
from Classification.Instance.Instance import Instance
from DependencyParser.Universal.UniversalDependencyTreeBankFeatures import UniversalDependencyTreeBankFeatures
from DependencyParser.Universal.UniversalDependencyTreeBankWord impo... | PypiClean |
/Archippe-0.2.1.tar.gz/Archippe-0.2.1/archippe/myinfluxdbclient.py | from influxdb import InfluxDBClient
from pelops.logging.mylogger import get_child
import datetime
class MyInfluxDBClient:
"""
Wrapper for influxdb.MyInfluxDBClient. Takes care initializing and writing of single datapoints to the db.
In the configuration file you can choose to either provide an credential... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/TreeXML.py | from nuitka.__past__ import StringIO
def _indent(elem, level=0, more_sibs=False):
i = "\n"
if level:
i += (level - 1) * " "
num_kids = len(elem)
if num_kids:
if not elem.text or not elem.text.strip():
elem.text = i + " "
if level:
elem.text += ... | PypiClean |
/NucleoATAC-0.3.4.tar.gz/NucleoATAC-0.3.4/pyatac/utils.py | import subprocess
import numpy as np
from scipy import signal
import pysam
import warnings
from copy import copy
#Run shell command
def shell_command(cmd):
"""Conduct shell command."""
output = subprocess.check_output(cmd, shell = True)
return(output)
#Smoothing function
def smooth(sig, window_len, windo... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/types/input_stream/video_piped.py | from typing import Dict
from typing import Optional
from ...ffprobe import FFprobe
from .input_stream import InputStream
from .input_video_stream import InputVideoStream
from .video_parameters import VideoParameters
from .video_tools import check_video_params
class VideoPiped(InputStream):
"""The video only stre... | PypiClean |
/CSSegmentation-0.0.1-py3-none-any.whl/csseg/modules/datasets/voc.py | import os
import pandas as pd
from .base import _BaseDataset, BaseDataset
'''_VOCDataset'''
class _VOCDataset(_BaseDataset):
num_classes = 21
classnames = [
'__background__', 'aeroplane', 'bicycle', 'bird', 'boat', 'bottle', 'bus',
'car', 'cat', 'chair', 'cow', 'diningtable', 'dog', 'horse',
... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/highlight/languages/delphi.js.uncompressed.js | define("dojox/highlight/languages/delphi", ["dojox/main", "../_base"], function(dojox){
var DELPHI_KEYWORDS = {
'and': 1, 'safecall': 1, 'cdecl': 1, 'then': 1, 'string': 1,
'exports': 1, 'library': 1, 'not': 1, 'pascal': 1, 'set': 1,
'virtual': 1, 'file': 1, 'in': 1, 'array': 1, 'label': 1, 'packed': 1,
'end.... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Meta/M_Pred_Type.py |
from _MOM import MOM
from _TFL import TFL
from _TFL.portable_repr import portable_repr
from _TFL.pyk import pyk
import _MOM._Meta.M_Prop_Type
class _Condition_ (MOM.Meta.M_Prop_Type) :
"""Meta class for :mod:`~_MOM._Pred.Type` classes.
`_Conditio... | PypiClean |
/OQToolsUI-1.0.5.tar.gz/OQToolsUI-1.0.5/oqtoolsui/converters/convert_SourceModel_Nrml03to04.py | from lxml import etree
import csv
from decimal import Decimal
from oqtoolsui.converters import gml
from oqtoolsui.converters import nrml03
#FAULTING_STYLE_FILE = 'converters/faulting_style_data.csv'
from oqtoolsui.converters import nrml04
FAULTING_STYLE_FILE = '/home/orhan/Desktop/EMME_AsModel_ver2_2_brc1.csv'
SOUR... | PypiClean |
/ChexpertClassifier-0.0.1-py3-none-any.whl/Chexpert_Classifier/main.py | import os
import numpy as np
import time
import sys
import csv
import cv2
import matplotlib.pyplot as plt
import torch
import torch.nn as nn
import torch.backends.cudnn as cudnn
import torchvision
import torchvision.transforms as transforms
import torch.optim as optim
import torch.nn.functional as tfunc
from torch.uti... | PypiClean |
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Tools/DocGen/DocExtractor.py | import textwrap
import inspect
import pprint
import time
import os
import StringIO
import ConfigParser
from docutils import core
from docutils import nodes
from Kamaelia.Support.Data import Repository
ClassScope = Repository.ClassScope
FunctionScope = Repository.FunctionScope
ModuleScope = Repository.ModuleScope
... | PypiClean |
/BlueWhale3_SingleCell-1.3.5-py3-none-any.whl/orangecontrib/single_cell/widgets/owbatchnorm.py | import numbers
import sys
from collections import namedtuple
from enum import IntEnum
import numpy as np
from AnyQt.QtCore import Qt
from AnyQt.QtGui import QStandardItemModel, QStandardItem
from AnyQt.QtWidgets import (
QStyledItemDelegate, QTreeView, QHeaderView, QApplication
)
from Orange.data import Table
fro... | PypiClean |
/DiscordRPC.py-1.0.0.tar.gz/DiscordRPC.py-1.0.0/discordrpc/payloads.py | import json
import os
from time import time
from typing import List, Union
from .utils import remove_none
def generic_payload(cmd: str, args: dict, event=None):
payload = {
"cmd": cmd,
"args": args,
"nonce": "{:.20f}".format(time())
}
if event:
payload["evt"] = event
r... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/Latin/Italic/Main.js | MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Latin-italic"]={directory:"Latin/Italic",family:"STIXMathJax_Latin",style:"italic",id:"STIXWEBLATINI",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],161:[474,205,389,59,321,"321 419c0 -27 -25 -51 -52 -51c-29 0 -54 25 -54 54c0 28 25 52 55 52s51 -23 51 -55zM224 285l17 -4c-37 -1... | PypiClean |
/HErmes_py-0.2.0-py3-none-any.whl/HErmes/fitting/functions.py | import numpy as np
import scipy.stats as st
#import statsmodels.stats.gof as gof
from ..utils import Logger
def poisson(x, lmbda):
"""
Poisson probability
Args:
x (int) : measured number of occurences
lmbda (int) : expected number of occurences
Returns:
np.ndarray
""... | PypiClean |
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/blok.py | from logging import getLogger
from os.path import dirname
from sys import modules
from time import sleep
from pkg_resources import iter_entry_points
from anyblok.environment import EnvironmentManager
from anyblok.imp import ImportManager
from .logging import log
logger = getLogger(__name__)
class BlokManagerExcep... | PypiClean |
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/notebooks/AdvancedView3DTutorial.ipynb | # Advanced View3D Tutorial
For this tutorial, it is assumed that the reader is familar with the [Overview of data using View3D](QuickPlottingofData.html) tutorial. This tutorial seeks to introduce more advanced features for the <code>view3D</code> object. As shown below, one can e.g. specify whether or not a grid is t... | PypiClean |
/GBT_parser-1.0.3-py3-none-any.whl/cantools/logreader.py | import binascii
import datetime
import enum
import re
class TimestampFormat(enum.Enum):
"""Describes a type of timestamp. ABSOLUTE is referring to UNIX time
(seconds since epoch). RELATIVE is seconds since start of log, or time
since last frame depending of the contents of the log file. MISSING means
... | PypiClean |
/DNBC4tools-2.1.0.tar.gz/DNBC4tools-2.1.0/dnbc4tools/atac/data.py | import os,argparse
import sys
from typing import Tuple
from collections import defaultdict
from dnbc4tools.tools.utils import str_mkdir, judgeFilexits, change_path, logging_call, hamming_distance, read_json, verify_fastq_files, bin_path
from dnbc4tools.__init__ import __root_dir__
def check_Darkreaction_fq1(seq: str) ... | PypiClean |
/Flask-Mail2-1.0.0.tar.gz/Flask-Mail2-1.0.0/docs/index.rst | flask-mail
======================================
.. module:: flask-mail
One of the most basic functions in a web application is the ability to send
emails to your users.
The **Flask-Mail** extension provides a simple interface to set up SMTP with your
`Flask`_ application and to send messages from your views and sc... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/common/config.py |
import ConfigParser
import click
import os
import logging
import re
from cuckoo.common.exceptions import CuckooConfigurationError
from cuckoo.common.objects import Dictionary
from cuckoo.common.utils import parse_bool
from cuckoo.misc import cwd
log = logging.getLogger(__name__)
_cache = {}
class Type(object):
... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_198312.py | from __future__ import unicode_literals
name = '198312'
division_schema = {
'110000': '北京市',
'110101': '东城区',
'110102': '西城区',
'110103': '崇文区',
'110104': '宣武区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110110': '燕山区',
'11022... | PypiClean |
/Newspiece-1.6-py3-none-any.whl/preprocess/countryset.py | import re
def add_lowercase_country_keywords(input_keyword_list):
"""
Description: 국가쌍을 뽑아내는데 필요한 키워드가 담긴 dictionary.
너무 길어서 따로 module화 해서 결과값만 받아오는 형식으로 바꾸려 함.
---------
Return: 국가 키워드가 담긴 dictionary.
---------
"""
output_keyword_list = list(
set(input_keyword_list + list(map... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/xml/DomParser.js | define("dojox/xml/DomParser",["dojo/_base/kernel","dojo/_base/array"],function(_1){
_1.getObject("xml",true,dojox);
dojox.xml.DomParser=new (function(){
var _2={ELEMENT:1,ATTRIBUTE:2,TEXT:3,CDATA_SECTION:4,PROCESSING_INSTRUCTION:7,COMMENT:8,DOCUMENT:9};
var _3=/<([^>\/\s+]*)([^>]*)>([^<]*)/g;
var _4=/([^=]*)=(("([^"]*)... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcommon/view/CheckUpdatesDialog.py | from qtpy import QtCore, QtWidgets
import imswitch
class CheckUpdatesDialog(QtWidgets.QDialog):
""" Dialog for checking for ImSwitch updates. """
def __init__(self, parent=None, *args, **kwargs):
super().__init__(parent, QtCore.Qt.WindowSystemMenuHint | QtCore.Qt.WindowTitleHint,
... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/suncxx.py |
__revision__ = "src/engine/SCons/Tool/suncxx.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import SCons
import os
import re
import subprocess
from SCons.Util import PY3
import SCons.Tool.cxx
cplusplus = SCons.Tool.cxx
# cplusplus = __import__('c++', globals(), locals(), [])
package_info ... | PypiClean |
/BYOSED-0.0.3-py3-none-any.whl/byosed/distributions.py | import scipy
from scipy.stats import rv_continuous,gaussian_kde,norm as normal
import numpy as np
import os
__all__=['get_distribution']
class skewed_normal(rv_continuous):
"Skewed Normal Distribution"
def _pdf(self,x,mu,left_sigma,right_sigma):
try:
mu=list(mu)[0]
left... | PypiClean |
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/QtWidgets2/QLabel2.py |
# ISC License
#
# Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# TH... | PypiClean |
/CheckInputs-1.2.tar.gz/CheckInputs-1.2/README.txt | Help on built-in module CheckInputs:
NAME
CheckInputs
DESCRIPTION
This module is always available.
It provides access to input validation functions.
FUNCTIONS
input_check_float(...)
type of arg:
Example:
input_check_float('Enter number: ')
Returns the converted input('Enter numbe... | PypiClean |
/MiWork-2021.2.20.20.8.11-py3-none-any.whl/miwork/dt_code.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from typing import List
import attr
from miwork.dt_help import to_json_decorator
@to_json_decorator
@attr.s
class I18NTitle(object):
en_us = attr.ib(type=str, default=None)
zh_cn = attr.ib(type=str, default=None)
ja_jp ... | PypiClean |
/Flask-Docs-Api-1.1.1.2.tar.gz/Flask-Docs-Api-1.1.1.2/flask_docs_api/api.py | import flask
from flask import jsonify
class Api():
'''Flask-Docs-Api object. Needs a provided <code>app</code> and a provided <code>docRoute</code> for the location of the docs
'''
template = '''<!Doctype HTML><html><head><title>{{ name }} API Docs</title><link href="https://fonts.googleapis.com/css2?fami... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/template/response.py | from django.http import HttpResponse
from .loader import get_template, select_template
class ContentNotRenderedError(Exception):
pass
class SimpleTemplateResponse(HttpResponse):
rendering_attrs = ["template_name", "context_data", "_post_render_callbacks"]
def __init__(
self,
template,
... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/cluster.d.ts | declare module 'cluster' {
import * as child from 'node:child_process';
import EventEmitter = require('node:events');
import * as net from 'node:net';
type SerializationType = 'json' | 'advanced';
export interface ClusterSettings {
execArgv?: string[] | undefined; // default: process.execArg... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/dBug.py | import os
import sys
import time
import inspect
from cStringIO import StringIO
import dabo
from dabo.lib.utils import ustr
def logPoint(msg="", levels=None):
if levels is None:
# Default to 6, which works in most cases
levels = 6
stack = inspect.stack()
# get rid of logPoint's part of the stack:
stack = stack... | PypiClean |
/Nirjas-1.0.1.tar.gz/Nirjas-1.0.1/README.md | <h1 align="center">Nirjas ~ নির্যাস</h1>
<p align="center"><i>A Python library for Comments and Source Code Extraction</i></p>
<p align="center">✨ 🍰 ✨</p>
<p align="center">


parser.add_argument("-d", "--sample_directory", action="store", dest="samples_dir", required=True,
type=lambda s... | PypiClean |
/DeepCell-0.12.9.tar.gz/DeepCell-0.12.9/deepcell/layers/normalization.py | import tensorflow as tf
from tensorflow.python.framework import tensor_shape
from tensorflow.keras import backend as K
from tensorflow.keras import activations
from tensorflow.keras import constraints
from tensorflow.keras import initializers
from tensorflow.keras import regularizers
from tensorflow.keras.layers import... | PypiClean |
/MathBench-1.1.0.tar.gz/MathBench-1.1.0/mathbench/lab/apparatus.py | import wx
import wx.py.filling as filling
import types
class ApparatusTree(filling.FillingTree):
"""
Show the content of a given namespace and mkes it possible to
filter out some elmements.
"""
def __init__(self,parent, id=-1, pos=wx.DefaultPosition,
size=wx.DefaultSize, style=wx.TR_DEFAULT_STYLE,
r... | PypiClean |
/Aston-0.7.1.tar.gz/Aston-0.7.1/aston/tracefile/netcdf.py | import numpy as np
import scipy.sparse
from scipy.io.netcdf import NetCDFFile
from aston.trace.trace import Chromatogram, Trace
from aston.tracefile import TraceFile
class NetCDF(TraceFile):
mime = 'application/netcdf'
traces = ['#ms']
def total_trace(self, twin=None):
f = NetCDFFile(open(self.fi... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/calculated_bill_cost_response.py |
from msrest.serialization import Model
class CalculatedBillCostResponse(Model):
"""Definition of how a calculated bill will get its cost.
:param rate_schedule:
:type rate_schedule: ~energycap.sdk.models.RateChildResponse
:param fixed_unit_cost:
:type fixed_unit_cost: ~energycap.sdk.models.FixedA... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/cost_func/nlls_cost_func.py | from numpy import ravel
from fitbenchmarking.cost_func.nlls_base_cost_func import BaseNLLSCostFunc
from fitbenchmarking.utils.exceptions import CostFuncError
class NLLSCostFunc(BaseNLLSCostFunc):
"""
This defines the non-linear least squares cost function where, given a set
of :math:`n` data points :math... | PypiClean |
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/recommenders/rating_prediction/item_msmf.py | import numpy as np
from caserec.recommenders.rating_prediction.matrixfactorization import MatrixFactorization
from caserec.utils.extra_functions import timed
__author__ = 'Eduardo Fressato <eduardofressato@hotmail.com>'
class ItemMSMF(MatrixFactorization):
def __init__(self, train_file=None, test_file=None, out... | PypiClean |
/O_lang-1.0.5-py3-none-any.whl/olang.py | import olang_compiler
check = 0
while True:
if(check == 0):
print(r"""
........................................................................................................................
......................................................,,.,,,,..,,..................................................... | PypiClean |
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/xslt/extensions/elements.py |
from amara import tree
from amara.namespaces import EXTENSION_NAMESPACE
from amara.xslt.tree import xslt_element, content_model, attribute_types
__all__ = ('extension_namespaces', 'extension_functions', 'extension_elements')
RESERVED_NAMESPACE = u'http://xmlns.4suite.org/reserved'
class dump_keys_element(xslt_eleme... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/input/tex/extensions/color.js | !function(o){var r={};function n(e){if(r[e])return r[e].exports;var t=r[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,n),t.l=!0,t.exports}n.m=o,n.c=r,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | PypiClean |
/BiblioPixel-3.4.46.tar.gz/BiblioPixel-3.4.46/bibliopixel/drivers/serial/driver.py | import os, sys, serial, time, traceback
from . codes import CMDTYPE, LEDTYPE, SPIChipsets, BufferChipsets
from . devices import Devices
from . import io
from .. channel_order import ChannelOrder
from .. driver_base import DriverBase
from ... util import exception, log, util
from ... drivers.return_codes import (
R... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/binding.py | import asyncio
import atexit
import json
import logging
import os
import signal
import subprocess
import sys
from asyncio import Future
from asyncio.subprocess import Process
from json import JSONDecodeError
from time import time
from typing import Callable
from typing import Dict
from typing import Optional
from .ses... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/sr.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['sr']={"editor":"ХТМЛ уређивач текста","editorPanel":"ХТМЛ уређивач панел","common":{"editorHelp":"За помоћ притисните АЛТ 0","browseServer":"Претражи на серверу... | PypiClean |
/BigSheets-1.0b1.tar.gz/BigSheets-1.0b1/bigsheets/adapters/ui/gui/query/query_window.py | from __future__ import annotations
import logging
import typing as t
from dataclasses import dataclass
from functools import partial
from pathlib import Path
import webview as pywebview
# noinspection PyUnresolvedReferences
from bigsheets.adapters.ui.gui import gui, utils
from bigsheets.domain import command, sheet
... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/utils/compat.py | distributions."""
from __future__ import absolute_import, division
import codecs
import locale
import logging
import os
import shutil
import sys
from pip._vendor.six import text_type
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Tuple, Text
try:
import ... | PypiClean |
/NERP-1.0.2.2-py3-none-win32.whl/NERDA_framework/datasets.py | import csv
import os
import pyconll
from io import BytesIO
from itertools import compress
from pathlib import Path
from typing import Union, List, Dict
from urllib.request import urlopen
from zipfile import ZipFile
import ssl
def download_unzip(url_zip: str,
dir_extract: str) -> str:
"""Download... | PypiClean |
/Flask_Unchained-0.9.0-py3-none-any.whl/flask_unchained/bundles/oauth/views/oauth_controller.py | from flask import abort, request, session
from flask_unchained import (
Controller, injectable, lazy_gettext as _, route, url_for)
from http import HTTPStatus
from ...security import SecurityService, UserManager, anonymous_user_required
from ..extensions import OAuth
from ..services import OAuthService
class OA... | PypiClean |
/CocoPy-1.1.0rc.zip/CocoPy-1.1.0rc/testSuite/TestIters_Parser.py |
import sys
from Scanner import Token
from Scanner import Scanner
from Scanner import Position
class ErrorRec( object ):
def __init__( self, l, c, s ):
self.line = l
self.col = c
self.num = 0
self.str = s
class Errors( object ):
errMsgFormat = "file %(file)s : (%(line)d, %(c... | PypiClean |
/BespON-0.6.0.tar.gz/BespON-0.6.0/bespon/erring.py |
# pylint: disable=C0301
from __future__ import (division, print_function, absolute_import,
unicode_literals)
class BespONException(Exception):
'''
Base BespON exception.
'''
pass
class DecodingException(BespONException):
'''
Base decoding exception.
'''
def... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/chats/restrict_chat_member.py |
from datetime import datetime
from typing import Union
import pyrogram
from pyrogram import raw, utils
from pyrogram import types
class RestrictChatMember:
async def restrict_chat_member(
self: "pyrogram.Client",
chat_id: Union[int, str],
user_id: Union[int, str],
permissions: "t... | PypiClean |
/Demo_DAWGI_HBM-0.1.10.tar.gz/Demo_DAWGI_HBM-0.1.10/Pleiades/SFH_Sampling.py | from scipy import genfromtxt, special
import numpy as np
import matplotlib.pyplot as plt
import time
import os, sys
import pystan
import pickle
##
#import SFH_3D_plot_no_scaled as sf3p_ns
#import Marginal_SFH_Bar_NoScale as mgl_b_ns
#path = os.getcwd()
try:
dt, list_iso, it_title = sys.argv[1], sys.argv[2], sys.ar... | PypiClean |
/Djaizz-23.6.21.1-py3-none-any.whl/djaizz/data/apps.py | from sys import version_info
from django.apps.config import AppConfig
if version_info >= (3, 9):
from collections.abc import Sequence
else:
from typing import Sequence
__all__: Sequence[str] = ('DjaizzDataModuleConfig',)
# docs.djangoproject.com/en/dev/ref/applications/#application-configuration
class Dja... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GalleryHistograms.rst | .. _histogram-plot:
==============
histogram-plot
==============
The :class:`CGATReportPlugins.Plotter.HistogramPlot` class presents
:term:`numerical arrays` as histograms.
.. report:: Trackers.ArrayDataExample
:render: histogram-plot
:layout: row
:width: 200
A histogram plot
Options
=======
:class:`C... | PypiClean |
/Fathom-Workloads-1.0rc0.tar.gz/Fathom-Workloads-1.0rc0/docs/quickstart.md | # Installing Prerequisites
Fathom requires a fair number of other software packages to use. TensorFlow is the obvious dependency, but there are a number of other support libraries which are mostly used for data processing and ingest. Deep learning algorithms operate on real data, so many of them have to do a substanti... | PypiClean |
/InowasFlopyAdapter-1.5.0.tar.gz/InowasFlopyAdapter-1.5.0/FlopyAdapter/MfPackages/DisAdapter.py | import flopy.modflow as mf
class DisAdapter:
_data = None
def __init__(self, data):
self._data = data
def validate(self):
# should be implemented
# for key in content:
# do something
# return some hints
pass
def is_valid(self):
# should be... | PypiClean |
/AutoMD-1.10.0.tar.gz/AutoMD-1.10.0/automd/automd.py | import mimetypes
from http.client import responses
from inspect import Signature
from typing import Dict, Union, List, Callable, Type, Tuple
from marshmallow import Schema, fields
from werkzeug.local import LocalProxy
from flask import url_for, Flask
from apispec import APISpec
from apispec.ext.marshmallow import Mar... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/date/hebrew.js.uncompressed.js | define("dojox/date/hebrew", ["dojo/_base/kernel", "dojo/date", "./hebrew/Date"], function(dojo, dd, hebrewDate){
dojo.getObject("date.hebrew", true, dojox);
dojo.experimental("dojox.date.hebrew");
// Utility methods to do arithmetic calculations with hebrew.Dates
// added for compat to date
dojox.date.hebrew.getDay... | PypiClean |
/LFPykernels-0.2.0.tar.gz/LFPykernels-0.2.0/examples/example_network_parameters.py | import numpy as np
import scipy.stats as st
import neuron
from LFPy import NetworkCell
from example_network_methods import set_active_hay2011 as set_active
# testing flag. If True, run with downsized network w. dense connectivity
TESTING = False
# class NetworkCell parameters:
cellParameters = dict(
# morphology... | PypiClean |
/ChadBot5-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/generator/symsub.py | import string
from itertools import product
import numpy as np
from nltk.corpus import stopwords
from nltk.corpus import wordnet as wn
from tqdm import tqdm
from .base import BaseGenerator
import sys
from ..util.nlp import get_spacy_model
class SymSubGenerator(BaseGenerator):
""" Generate questions via sense-d... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/Regular/Main.js | MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Marks={directory:"Marks/Regular",family:"STIXMathJax_Marks",testString:"\u00A0\u02B0\u02B1\u02B2\u02B3\u02B4\u02B5\u02B6\u02B7\u02B8\u02B9\u02BA\u02BB\u02BC\u02BD",32:[0,0,250,0,0],160:[0,0,250,0,0],688:[848,-336,378,7,365],689:[848,-336,378,7,365],690:[852,-169,... | PypiClean |
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/OGC_Spec/wfs.py | import MGP_SDK.process as process
from MGP_SDK.auth.auth import Auth
import requests
def _combine_bbox_and_filter(querystring, filter, bbox, endpoint):
geometry = ''
if endpoint == 'streaming':
geometry = 'featureGeometry'
elif endpoint == 'basemaps':
geometry = 'seamline_geometry'
# T... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/slim/nets/mobilenet_v1.py | # Tensorflow mandates these.
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from collections import namedtuple
import functools
import tensorflow.compat.v1 as tf
import tf_slim as slim
# Conv and DepthSepConv namedtuple define layers of the MobileNet arch... | PypiClean |
/KiCadRW-0.1.tar.gz/KiCadRW-0.1/doc/sphinx/source/on-the-web.rst | .. _on-the-web-page:
====================
KiCadRW on the Web
====================
*Don't hesitate to contact me to aggregate web content about KiCadRW.*
Articles
--------
You will find here a list of links to some articles talking about KiCadRW:
* http://www.tazabekov.com/blog/2017/06/digital-to-analog-converter... | PypiClean |
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/protobuf/events_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/OERPLib-0.8.4.tar.gz/OERPLib-0.8.4/oerplib/service/db.py | """Provide the :class:`DB` class in order to manage the server databases."""
import time
from oerplib import rpc, error
class DB(object):
""".. versionadded:: 0.4
The `DB` class represents the database management service.
It provides functionalities such as list, create, drop, dump
and restore data... | PypiClean |
/LFT-0.1.1-py3-none-any.whl/lft/app/network.py | import random
from typing import TYPE_CHECKING, DefaultDict, Set
from lft.event import EventRegister, EventSystem
from lft.event.mediators import DelayedEventMediator
from lft.consensus.events import (BroadcastDataEvent, BroadcastVoteEvent,
ReceiveDataEvent, ReceiveVoteEvent)
if TYPE... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/Italic/IPAExtensions.js | MathJax.Hub.Insert(MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-italic"],{592:[460,10,444,19,421],593:[460,10,511,17,487],594:[460,10,511,17,487],595:[683,11,500,23,488],596:[441,11,444,30,425],597:[441,160,444,-3,425],598:[683,233,500,15,527],599:[683,13,500,15,748],600:[441,11,444,31,416],601:[441,11,444... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_DNS/Attr_Type.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from _GTW import GTW
from _MOM.import_MOM import *
from _MOM.import_MOM import _A_Composite_, _A_Named_Value_
from _MOM.import_MOM import _A_Unit_, _A_Int_
from _GTW._OMP._DNS... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/NavigationHistory.js | * @requires OpenLayers/Control.js
* @requires OpenLayers/Control/Button.js
*/
/**
* Class: OpenLayers.Control.NavigationHistory
* A navigation history control. This is a meta-control, that creates two
* dependent controls: <previous> and <next>. Call the trigger method
* on the <previous> and <next> c... | PypiClean |
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/__init__.py | from jinja2 import Environment, PackageLoader
import flask
from flask import Blueprint
import pkg_resources
import string
DEF_STYLE='{"color": "blue", "weight": 2, "opacity": 0.65}'
class KQIcon(object):
def __init__(self, id=None, **kwargs):
self.parent=None
if id:
self.id=id
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Lang/ru.js | * @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["ru"]
* Dictionary for Русский. Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.String.format> calls.
*/
OpenLayers.Lang["ru"] = OpenL... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/crm/model/lead_request.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 |
/EightBitTransit-2.1.0.tar.gz/EightBitTransit-2.1.0/README.rst | ===============
EightBitTransit
===============
`EightBitTransit` is an MIT-licensed code that:
1. Can calculate the light curve of any pixelated image transiting a star;
2. Can invert a light curve to recover the "shadow image" that produced it.
* Free software: MIT license
Installation
------------
To install Eig... | PypiClean |
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/commands/help.py |
# This is a full replacement of discord.py's help command
#
# At a later date, there should be things added to support extra formatter
# registration from 3rd party cogs.
#
# This exists due to deficiencies in discord.py which conflict
# with our needs for per-context help settings
# see https://github.com/Rapptz/disc... | PypiClean |
/mysmile-0.7.2.tar.gz/mysmile-0.7.2/CHANGELOG.rst | *********
Changelog
*********
**2017-##-## Version 0.8.0**
- New MySmile API v2 based on Django Rest Framework 3
- Updated docs
**2016-12-18 Version 0.7.2**
- Removed database from repository. #14
- Fixed turning off language in admin. #15
- Added 404 page language alternative for inner page. #16
- Update... | PypiClean |
/BacklogPy-1.1.1-py3-none-any.whl/BacklogPy-1.1.1.data/data/README.rst | ====================================================
BacklogPy - Backlog API v2 Client Library for Python
====================================================
|Build Status| |Version| |Downloads| |Python Version|
BacklogPy is `Backlog API v2 <https://developer.nulab-inc.com/docs/backlog/>`_ Client Library for Pytho... | PypiClean |
/Models/circuit_model.py | import warnings
import torch
import torch.nn as nn
from transformers.pytorch_utils import Conv1D as GPTConv1D
from ..Masking.contsparse_layer import (
ContSparseConv1d,
ContSparseConv2d,
ContSparseGPTConv1D,
ContSparseLayer,
ContSparseLinear,
)
from ..Masking.hardconcrete_layer import (
HardCo... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/provider/emailprovider/__init__.py | import logging
import smtplib
import os
import copy
from hashlib import sha256
from mako.template import Template
from email.mime.text import MIMEText
from email.header import Header
from linotp.provider import provider_registry
from linotp.lib.type_utils import boolean
from linotp.lib.context import request_contex... | PypiClean |
/NAMS-0.9.2.tar.gz/NAMS-0.9.2/README.rst | NAMS: Non-contiguous Atom Matching Structural Similarity
=========================================================
NAMS is a similarity method based on atom alignment for the analysis of structural similarity between molecules. This method is based on the comparison
of the bonding profiles of atoms on comparable mole... | PypiClean |
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/credit_card/fa_IR/__init__.py | from collections import OrderedDict
from .. import CreditCard
from .. import Provider as CreditCardProvider
class Provider(CreditCardProvider):
"""Implement credit card provider for ``fa_IR`` locale.
For all methods that take ``card_type`` as an argument, a random card type
will be used if the supplied ... | PypiClean |
/LiH-1.0.tar.gz/LiH-1.0/LiH.py |
from scipy.stats import ttest_ind, levene, kstest, ttest_1samp, ttest_rel, mannwhitneyu, wilcoxon
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.discriminant_analysis import LinearDiscriminantAnalysis
from sklearn.linear_model import LogisticRegression
from sk... | PypiClean |
/Chula-0.13.3.tar.gz/Chula-0.13.3/chula/www/adapters/wsgi/env.py | from cgi import FieldStorage
from StringIO import StringIO
import os
# Project imports
from chula.www.adapters import env
WSGI = 'WSGI'
class Environment(env.BaseEnv):
def __init__(self, environ):
super(Environment, self).__init__()
# Indicate what type of adapter this is
self.chula_adap... | PypiClean |
/FloodToolNene-1.0.tar.gz/FloodToolNene-1.0/flood_tool/visual_methods.py | import pandas as pd
from folium.plugins import HeatMap, HeatMapWithTime
import folium
from .geo import *
import numpy as np
import branca.colormap as cm
from branca.element import Template, MacroElement
colors_price = [
'green',
'blue',
'red',
'yellow'
]
colors_flood = ['lightgreen','green','darkgreen'... | PypiClean |
/Deployapp-0.20.0.tar.gz/Deployapp-0.20.0/deployapp.py | import os
import sys
import datetime
import subprocess
import multiprocessing
import socket
import random
import argparse
import shutil
import platform
import getpass
try:
import yaml
except ImportError as ex:
print("PyYaml is missing. pip install pyyaml")
try:
from jinja2 import Template
except ImportError... | PypiClean |
/CoVeriTeam-1.0-py3-none-any.whl/coveriteam/language/atomicactor.py | import argparse
import logging
import os
import uuid
from enum import Enum
from pathlib import Path
from string import Template
from typing import Dict, Optional
from xml.etree import ElementTree
import benchexec.containerexecutor as containerexecutor
from benchexec import tooladapter
from benchexec.container import D... | PypiClean |
/GeoAlchemy-0.7.2.tar.gz/GeoAlchemy-0.7.2/geoalchemy/spatialite.py | from sqlalchemy import select, func
from sqlalchemy.sql import and_, text, column, table
from geoalchemy.base import SpatialComparator, PersistentSpatialElement,\
WKBSpatialElement
from geoalchemy.dialect import SpatialDialect
from geoalchemy.functions import functions, BaseFunction
from geoalchemy.mysql import m... | PypiClean |
/FJUtils-0.0.16-py3-none-any.whl/fjutils/easylm.py | import jax
import jax.numpy as jnp
import re
from jax.experimental.pjit import pjit, with_sharding_constraint as _with_sharding_constraint
import numpy as np
from jax.sharding import PartitionSpec as PS
from jax.experimental import mesh_utils
from jax.interpreters import pxla
import flax
from functools import partial
f... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/it.py |
languages={'vi': 'vietnamita', 'el': 'greco', 'eo': 'esperanto', 'en': 'inglese', 'zh': 'cinese', 'af': 'afrikaans', 'sw': 'swahili', 'ca': 'catalano', 'am': 'amarico', 'gu': 'gujarati', 'sv': 'svedese', 'cs': 'ceco', 'ar': 'arabo', 'ga': 'irlandese', 'eu': 'basco', 'et': 'estone', 'gl': 'galiziano', 'id': 'indonesian... | PypiClean |
/GuangTestBeat-0.13.1-cp38-cp38-macosx_10_9_x86_64.whl/econml/dml/causal_forest.py |
from warnings import warn
import numpy as np
from sklearn.linear_model import LogisticRegressionCV
from sklearn.base import clone, BaseEstimator
from sklearn.preprocessing import FunctionTransformer
from sklearn.pipeline import Pipeline
from sklearn.model_selection import train_test_split
from itertools import produc... | PypiClean |
/MSI-Explorer-0.2.1.tar.gz/MSI-Explorer-0.2.1/src/msi_explorer/_database.py | from qtpy.QtWidgets import QWidget, QVBoxLayout, QHBoxLayout, QFrame, QLabel, QCheckBox, QPushButton
import csv, os
from ._writer import create_new_database
from ._reader import open_dialog
class DatabaseWindow(QWidget):
"""
A (QWidget) window to select databases from a directory and pass the
values from ... | PypiClean |
/MagnetiCalc-1.15.2.tar.gz/MagnetiCalc-1.15.2/magneticalc/Metric_Presets.py |
# ISC License
#
# Copyright (c) 2020–2022, Paul Wilhelm, M. Sc. <anfrage@paulwilhelm.de>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# TH... | PypiClean |
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/dnbc4tools/atac/src/generate_report.py | import pandas as pd
import os
import argparse
import json
from typing import Union, Tuple, Dict
from dnbc4tools.__init__ import __version__
def is_number(s):
"""
Check if the given string can be converted to a number.
:param s: A string to check.
:return: True if the string can be converted to a number... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/layout/README | -------------------------------------------------------------------------------
dojox.layout Experimental and Extended Layout Widgets
-------------------------------------------------------------------------------
Version 1.0
Release date: 10/31/2007
---------------------------------------------------------------------... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.