id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Annoroad_OMIC_vis-1.0.3-py3-none-any.whl/Annoroad_vis/main.py | import argparse
import re,sys,os,math,gc
import numpy as np
import pandas as pd
import matplotlib as mpl
import copy
import math
from math import pi
mpl.use('Agg')
import matplotlib.pyplot as plt
import matplotlib.patches as mpatches
from mpl_toolkits.axes_grid1.inset_locator import inset_axes
from scipy import sparse
... | PypiClean |
/LbAdmin-0.0.11.tar.gz/LbAdmin-0.0.11/README.rst | LHCb Admin tools
====================================
|pipeline status| |coverage report|
Administration and releae tools for the LHCb environment.
.. |pipeline status| image:: https://gitlab.cern.ch/lhcb-core/LbAdmin/badges/master/pipeline.svg
:target: https://gitlab.cern.ch/lhcb-core/LbAdmin/... | PypiClean |
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/cogs/reports/reports.py | import logging
import asyncio
from typing import Union, List
from datetime import timedelta
from copy import copy
import contextlib
import discord
from redbot.core import Config, checks, commands
from redbot.core.utils.chat_formatting import pagify, box
from redbot.core.utils.antispam import AntiSpam
from redbot.core.... | PypiClean |
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/patches.py | r"""
Patches are `.Artist`\s with a face color and an edge color.
"""
import contextlib
import functools
import inspect
import math
from numbers import Number
import textwrap
from collections import namedtuple
import numpy as np
import matplotlib as mpl
from . import (_api, artist, cbook, colors, docstring, hatch as... | PypiClean |
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/experiment_runner.py |
from __future__ import division, print_function
import os
import argparse
import importlib.util
import inspect
import logging
import shutil
import faulthandler
import copy
import torch
import torch.backends.cudnn as cudnn
from pytorch_lightning import LightningModule
from pytorch_lightning.loggers import TensorBoard... | PypiClean |
/Descriptive%20Markup%20Toolkit-0.1.tar.gz/Descriptive Markup Toolkit-0.1/dmlt/machine.py | import re
from itertools import izip
from dmlt.datastructure import TokenStream, Context
def bygroups(*args):
return lambda m: izip(args, m.groups())
class rule(object):
"""
Represents one parsing rule.
"""
__slots__ = ('match', 'token', 'enter', 'leave', 'one')
def __init__(self, regexp, t... | PypiClean |
/MySQL-python-1.2.5.zip/MySQL-python-1.2.5/doc/MySQLdb.constants.rst | constants Package
=================
:mod:`constants` Package
------------------------
.. automodule:: MySQLdb.constants
:members:
:undoc-members:
:show-inheritance:
:mod:`CLIENT` Module
--------------------
.. automodule:: MySQLdb.constants.CLIENT
:members:
:undoc-members:
:show-inheritance:... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/person/ar_AA/__init__.py | from typing import Tuple
from .. import Provider as PersonProvider
class Provider(PersonProvider):
formats_female: Tuple[str, ...] = (
"{{first_name_female}} {{last_name}}",
"{{prefix_female}} {{first_name_female}} {{last_name}}",
)
formats_male: Tuple[str, ...] = (
"{{first_name... | PypiClean |
/CLamPy-1.2.tar.gz/CLamPy-1.2/README.md | <p align=center><img width="75%" src="figures/CLamPy.png"></p>
[](https://pypi.org/project/CLamPy)
[](https://pypi.org/project/CLamPy/)
[, I am
# exciting and feel happy, because ANNarchy is much more easy-to-use than [Brian2](https://brian2.readthedocs.io/).
# However, one day I want to implement a complex Hodgkin-Huxley-like conductance neuron model,
# I tried my best and cannot get... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/nodes/GeneratorNodes.py | from nuitka.PythonVersions import python_version
from .ChildrenHavingMixins import ChildHavingGeneratorRefMixin
from .ExpressionBases import ExpressionBase, ExpressionNoSideEffectsMixin
from .FunctionNodes import ExpressionFunctionEntryPointBase
from .IndicatorMixins import MarkUnoptimizedFunctionIndicatorMixin
from .... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/plugins/specialchar/dialogs/lang/ug.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ug",{euro:"ياۋرو بەلگىسى",lsquo:"يالاڭ پەش سول",rsquo:"يالاڭ پەش ئوڭ",ldquo:"قوش پەش سول",rdquo:"قوش پەش ئوڭ",ndash:"سىزىقچە",mdash:"س... | PypiClean |
/energon_prometheus_exporter_test-0.0.1-py3-none-any.whl/torchdistill-test/torchdistill/models/custom/bottleneck/processor.py | import os
from collections import namedtuple
from io import BytesIO
import torch
from PIL import Image
from torchvision.transforms import functional
from torchdistill.common import file_util
from torchdistill.common import tensor_util
from torchdistill.common.constant import def_logger
logger = def_logger.getChild(_... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/methods/bots/set_game_score.py |
from typing import Union
import hikkapyro
from hikkapyro import raw
from hikkapyro import types
class SetGameScore:
async def set_game_score(
self: "hikkapyro.Client",
user_id: Union[int, str],
score: int,
force: bool = None,
disable_edit_message: bool = None,
cha... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/worker_threads.d.ts | declare module 'worker_threads' {
import { Blob } from 'node:buffer';
import { Context } from 'node:vm';
import { EventEmitter } from 'node:events';
import { EventLoopUtilityFunction } from 'node:perf_hooks';
import { FileHandle } from 'node:fs/promises';
import { Readable, Writable } from 'node... | PypiClean |
/ClientForm-0.2.10.tar.gz/ClientForm-0.2.10/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c3"
DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/__init__.py | import sys
import os
import re
import glob
import urllib
import datetime
import time
import cStringIO
import warnings
import traceback
import dabo
from dabo.dLocalize import _
from dabo.lib.utils import ustr
from dabo.lib import utils
import dabo.dEvents as dEvents
import dKeys
# Very VERY first thing: ensure a minima... | PypiClean |
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/examples/.ipynb_checkpoints/transmitter_receiver_and_ram-checkpoint.ipynb | ```
from NetworkSim.simulation.process.ram import RAM
from NetworkSim.simulation.process.transmitter.fixed import FT
from NetworkSim.simulation.process.receiver.tunable import TR
from NetworkSim.architecture.setup.model import Model
from NetworkSim.architecture.base.network import Network
import simpy
env =simpy.Envir... | PypiClean |
/Bitdock-0.1.0.zip/Bitdock-0.1.0/doc/installation.rst | ..
:copyright: Copyright (c) 2014 ftrack
.. _installation:
************
Installation
************
.. highlight:: bash
Installation is simple with `pip <http://www.pip-installer.org/>`_::
$ pip install bitdock
Building from source
====================
You can also build manually from the source for more c... | PypiClean |
/GHEDesigner-1.1-py3-none-any.whl/ghedesigner/validate.py | import sys
from json import loads
from pathlib import Path
from jsonschema import validate, ValidationError
from ghedesigner.enums import BHPipeType, DesignGeomType
# Note: JSON schema does not currently have a good way to handle case-insensitive enums.
# Some fields are upper-cased manually here for validati... | PypiClean |
/Geocoding-1.4.3-py3-none-any.whl/geocoding/normalize.py | import re
from unidecode import unidecode
dictionary = {
"ALL": "ALLEE",
"AV": "AVENUE",
"BD": "BOULEVARD",
"CH": "CHEMIN",
"CHE": "CHEMIN",
"CRS": "COURS",
"CTRE": "CENTRE",
"DOM": "DOMAINE",
"HAM": "HAMEAU",
"IMP": "IMPASSE",
"LD": "LIEUDIT",
"LOT": "LOTISSEMENT",
... | PypiClean |
/Nxpy-0.6.0.tar.gz/Nxpy-0.6.0/nxpy/command/interpreter.py |
# Copyright Nicola Musatti 2008 - 2014
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# See http://nxpy.sourceforge.net for library home page. ---------------------
r"""
Interactive ... | PypiClean |
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/hicCompareMatrices.py | from __future__ import division
import warnings
warnings.simplefilter(action="ignore", category=RuntimeWarning)
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
import argparse
import numpy as np
from hicmatrix import HiCMatrix as hm
from hicexplorer._version import __version__
import logging... | PypiClean |
/Djax-0.8.6.tar.gz/Djax-0.8.6/djax/content.py | from djax.registry import content_registry, build_registry
from djax.gateway import content_client, trigger_client
import uuid
import logging
from django.db.models import Manager
from django.contrib.contenttypes.models import ContentType
from pax.util import slugify
import re
log = logging.getLogger('djax')
class ACE... | PypiClean |
/BayGPGO-0.3.2.tar.gz/BayGPGO-0.3.2/GPGO/GaussianProcess/Kernel/RBF.py | from .Kernel import Kernel
from numpy import exp
from numpy.linalg import norm
import numpy as np
import matplotlib.pyplot as plt
class RBF(Kernel):
"""
RBF Kernel object. Type: Kernel, Subtype: RBF
...
Attributes:
-----------
hyper : dict
Dictionary with sigma_l,l,noise ... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/modeling/roi_heads/roi_heads.py | import torch
from .box_head.box_head import build_roi_box_head
from .mask_head.mask_head import build_roi_mask_head
from .keypoint_head.keypoint_head import build_roi_keypoint_head
class CombinedROIHeads(torch.nn.ModuleDict):
"""
Combines a set of individual heads (for box prediction or masks) into a single
... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/validate/check.js | if(!dojo._hasResource["dojox.validate.check"]){
dojo._hasResource["dojox.validate.check"]=true;
dojo.provide("dojox.validate.check");
dojo.experimental;
dojo.require("dojox.validate._base");
dojox.validate.check=function(_1,_2){
var _3=[];
var _4=[];
var _5={isSuccessful:function(){
return (!this.hasInvalid()&&!this.ha... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/test/selenium.py | import sys
import unittest
from contextlib import contextmanager
from django.test import LiveServerTestCase, tag
from django.utils.functional import classproperty
from django.utils.module_loading import import_string
from django.utils.text import capfirst
class SeleniumTestCaseBase(type(LiveServerTestCase)):
# L... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/gfx/README | -------------------------------------------------------------------------------
dojox.gfx
-------------------------------------------------------------------------------
Version 1.100
Release date: 08/01/2006
-------------------------------------------------------------------------------
Project state:
beta
HTMLCanvas ... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/4969.ccedbf9b.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[4969],{84969:function(e,n,i){i.r(n),i.d(n,{conf:function(){return t},language:function(){return r}});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"],["begin","end"],["c... | PypiClean |
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/bloks/anyblok_core/core/base.py | from anyblok import Declarations
from ..exceptions import CoreBaseException
register = Declarations.register
@register(Declarations.Core)
class Base:
"""Inherited by all the models"""
is_sql = False
@classmethod
def initialize_model(cls):
"""This method is called to initialize a model duri... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/optimizers/cmaes.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the MIT License ... | PypiClean |
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/iv/dml/_dml.py | import numpy as np
from sklearn.base import clone
from sklearn.linear_model import LinearRegression, LogisticRegressionCV
from sklearn.pipeline import Pipeline
from sklearn.preprocessing import FunctionTransformer
from itertools import product
from ..._ortho_learner import _OrthoLearner
from ..._cate_estimator import ... | PypiClean |
/LiPydomics-1.6.8-py3-none-any.whl/lipydomics/identification/fill_measured_from_src.py | import os
from sqlite3 import connect
from json import load as jload
from ..util import parse_lipid, print_and_log
from .build_params import include_ref_dsets
def add_src_dataset(cursor, src_tag, metadata, gid_start=0):
"""
add_src_dataset
description:
Adds values from a source dataset to the databas... | PypiClean |
/CCAgT_utils-0.2.4a0.tar.gz/CCAgT_utils-0.2.4a0/CCAgT_utils/types/colors.py | from __future__ import annotations
from dataclasses import dataclass
import numpy as np
@dataclass
class Color:
Red: int
Green: int
Blue: int
Alpha: int = 255
size: int = 8
def __post_init__(self) -> None:
self._max_value = 2 ** self.size - 1
_error_suf = f'value exceeds th... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/cldr/nls/el/gregorian.js | ({"months-format-narrow":["Ι","Φ","Μ","Α","Μ","Ι","Ι","Α","Σ","Ο","Ν","Δ"],"quarters-standAlone-narrow":["1","2","3","4"],"field-weekday":"Ημέρα εβδομάδας","dateFormatItem-yyQQQQ":"QQQQ yy","dateFormatItem-yQQQ":"y QQQ","dateFormatItem-yMEd":"EEE, d/M/yyyy","dateFormatItem-MMMEd":"E, d MMM","eraNarrow":["π.Χ.","μ.Χ."],... | PypiClean |
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/CONTRIBUTING.md | # Contributing
Contributions of any kind are greatly appreciated!
## Feedback & Discussion
The [Issue Tracker](https://github.com/mcs07/ChemDataExtractor/issues) is the best place to post any feature ideas,
requests and bug reports. This way, everyone has the opportunity to keep informed of changes and join the dis... | PypiClean |
/Frontiersman-2.0.2-py3-none-any.whl/frontiersman/server.py | import asyncio
import os
import queue
import random
import threading
import warnings
from aiohttp import web
loop = asyncio.get_event_loop()
running_games = {}
chars = ['2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'J', 'K',
'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', ... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/web-animations-js/CONTRIBUTING.md | ## Developer instructions
### Setup
1. Fork web-animations/web-animations-js.
1. `git clone git@github.com:$GITHUB_USER/web-animations-js.git`
1. `git submodule update --init --recursive` (Necessary for running tests.)
1. Install [node](https://nodejs.org/en/) and make sure `npm` is in your $PATH
1. Run `npm install`... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/nodes/IterationHandles.py | import math
from abc import abstractmethod
from nuitka.__past__ import getMetaClassBase, xrange
class IterationHandleBase(getMetaClassBase("IterationHandle")):
"""Base class for Iteration Handles."""
@abstractmethod
def getNextValueExpression(self):
"""Abstract method to get next iteration value... | PypiClean |
/Eden-2.1.14.zip/Eden-2.1.14/eden/externalPackages/dragAndDrop/pythonPart/TkinterDnD2/TkinterDnD.py | import Tkinter
import Tix
def _require(tkroot):
'''Internal function.'''
tkdndver = tkroot.tk.call('package', 'require', 'tkdnd')
return tkdndver
class DnDEvent:
"""Internal class. Container for the properties of a drag-and-drop event."""
pass
class DnDWrapper:
'''Internal class.'''
_sub... | PypiClean |
/HyFetch-1.4.10.tar.gz/HyFetch-1.4.10/hyfetch/pride_month.py | import math
from time import sleep
from hyfetch import presets
from hyfetch.color_util import RGB, color, printc
from hyfetch.constants import IS_WINDOWS
from hyfetch.neofetch_util import term_size
from hyfetch.presets import PRESETS
def key_pressed():
if IS_WINDOWS:
import msvcrt
return msvcrt.k... | PypiClean |
/AutoDiffCC-1.1.1.tar.gz/AutoDiffCC-1.1.1/autodiffcc/Equation/similar.py | r"""
.. _similar-module:
Equation.similar Module
=======================
Provides support for similar type comparsion, and allows the tolerance to be changed
Comparsions work by detriming if the following is true
.. math::
1-\frac{\min(A,B)}{\max(A,B)}\leq tolerance
If it is true the :math:`A` and :ma... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/cldr/nls/ar/islamic.js | define(
"dojo/cldr/nls/ar/islamic", //begin v1.x content
{
"dateFormat-medium": "dd/MM/yyyy",
"dateFormatItem-MMMEd": "E d MMM",
"dateFormatItem-yMEd": "EEE، d/M/yyyy",
"eraNarrow": [
"هـ"
],
"months-format-narrow": [
"م",
"ص",
"ر",
"ر",
"ج",
"ج",
"ر",
"ش",
"ر",
"ش",
"ذ",
"ذ"
],
"timeF... | PypiClean |
/CherrypyElixir-0.5.1.tar.gz/CherrypyElixir-0.5.1/README.txt | .. pymlconf documentation master file, created by
sphinx-quickstart on Sat Apr 14 05:05:05 2012.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Cherrypy's Elixir Plugin
====================================
``CherrypyElixir`` is a cherrypy plugi... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/_firebug/firebug.js | define("dojo/_firebug/firebug",["../_base/kernel","require","../_base/html","../_base/sniff","../_base/array","../_base/lang","../_base/event","../_base/unload"],function(_1,_2){
var _3=(/Trident/.test(window.navigator.userAgent));
if(_3){
var _4=["log","info","debug","warn","error"];
for(var i=0;i<_4.length;i++){
var ... | PypiClean |
/HsOpenAPIDeviceBind-1.3.3.tar.gz/HsOpenAPIDeviceBind-1.3.3/hsbind/network_utils.py |
import netifaces
import psutil
from hsbind.common_utils import get_logger
logging = get_logger(__name__)
invalid_macs_start_str = (
'00-05-69',
'00-1c-14',
'00-0c-29',
'00-50-56',
'08-00-27',
'0a-00-27',
'00-03-ff',
'00-15-5d'
)
def get_psutil_mac_address_list() -> dict:
mac_ad... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/bots_and_keyboards/__init__.py |
from .bot_command import BotCommand
from .bot_command_scope import BotCommandScope
from .bot_command_scope_all_chat_administrators import BotCommandScopeAllChatAdministrators
from .bot_command_scope_all_group_chats import BotCommandScopeAllGroupChats
from .bot_command_scope_all_private_chats import BotCommandScopeAllP... | PypiClean |
/ChemDataExtractor-1.3.0-py3-none-any.whl/chemdataextractor/text/latex.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import re
import string
import six
from . import NAME_SMALL, SMALL
def latex_to_unicode(text, capitalize=False):
"""Replace LaTeX entities with the equivalent unic... | PypiClean |
/ContactVis-0.1.6.tar.gz/ContactVis-0.1.6/contactvis/parsing/parse_fasta.py |
import string, copy
import sys
def read_fasta(afile, query_id=''):
"""Parses any fasta, a2m, a3m file, sequence or alignment file.
@param afile input file
@param query_id ID of query sequence (default='')
Ensures: key of a given query ID only contains its ID, not the full header
@retur... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/fx/flip.js.uncompressed.js | define("dojox/fx/flip", [
"dojo/_base/kernel",
"dojo/_base/html",
"dojo/dom",
"dojo/dom-construct",
"dojo/dom-geometry",
"dojo/_base/connect",
"dojo/_base/Color",
"dojo/_base/sniff",
"dojo/_base/lang",
"dojo/_base/window",
"dojo/_base/fx",
"dojo/fx",
"./_base"
], function(kernel, htmlUtil, dom, domConstruc... | PypiClean |
/NotificationServiceslib-1.0.0.tar.gz/NotificationServiceslib-1.0.0/NotificationServices/notifier/controller.py | from abc import ABCMeta, abstractmethod
class NotificationController(metaclass=ABCMeta):
@abstractmethod
def _send_notification(self, data: dict):
pass
@abstractmethod
def _process_data(self, **data):
pass
def notify(self, **data):
self._process_data(**data)
rsp = ... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/tutorial/intro.rst | ==============
Introduction
==============
Symbolic computation deals with the computation of mathematical
objects symbolically. This means that the mathematical objects are
represented exactly, not approximately, and mathematical expressions
with unevaluated variables are left in symbolic form.
Let's take an examp... | PypiClean |
/Biryani-0.10.8-py3-none-any.whl/biryani/nonstandard/deprecatedbaseconv.py |
# Biryani -- A conversion and validation toolbox
# By: Emmanuel Raviart <emmanuel@raviart.com>
#
# Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 Emmanuel Raviart
# http://packages.python.org/Biryani/
#
# This file is part of Biryani.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you m... | PypiClean |
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/app/modules/console/tools_console.py | import typing as t
import os
import json
import re
from console import Console, FuncItem, COLOR_NAME
from app.data.repositories import UserRepository
from app.domain.dtos import UserDto
from app.domain.use_cases import UserUseCase
from app.utilities.logger import logger
from app.version import __version__
class GL... | PypiClean |
/BatchQ-0.1-1-pre-alpha.tar.gz/BatchQ-0.1-1-pre-alpha/docs/index.rst | .. BatchQ documentation master file, created by
sphinx-quickstart on Mon Oct 10 09:28:44 2011.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to the BatchQ documentation!
=====================================
.. toctree::
:maxdepth: ... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/weighting/climwip/main.py | import logging
import os
import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns
import xarray as xr
from calibrate_sigmas import calibrate_performance_sigma
from core_functions import (
area_weighted_mean,
calculate_model_distances,
calculate_weights,
combine_ensemble_members,
com... | PypiClean |
/BobBuildTool-0.23.1.tar.gz/BobBuildTool-0.23.1/pym/bob/cmds/build/state.py |
from ...errors import BobError
import os
import sqlite3
class DevelopDirOracle:
"""
Calculate directory names for develop mode.
If an external "persister" is used we just cache the calculated values. We
don't know it's behaviour and have to re-calculate everything from scratch
to be on the safe ... | PypiClean |
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/search/non-minified-js/portuguese-stemmer.js | var JSX = {};
(function (JSX) {
/**
* extends the class
*/
function $__jsx_extend(derivations, base) {
var ctor = function () {};
ctor.prototype = base.prototype;
var proto = new ctor();
for (var i in derivations) {
derivations[i].prototype = proto;
}
}
/**
* copies the implementations from source interface ... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_object_groups_id_bills/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/rbd/schedule.py | import logging
from copy import deepcopy
import RhcsQeSdk.core.cli.fabfile as fabfile
from RhcsQeSdk.core.utilities import core_utils
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter(
"%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s"
)
stream_hand... | PypiClean |
/NeuroTools-0.3.1.tar.gz/NeuroTools-0.3.1/src/signals/analogs.py | import os, re, numpy
from NeuroTools import check_dependency, check_numpy_version
from NeuroTools.io import *
from NeuroTools.plotting import get_display, set_axis_limits, set_labels, SimpleMultiplot
HAVE_MATPLOTLIB = check_dependency('matplotlib')
if HAVE_MATPLOTLIB:
import matplotlib
matplotlib.use('Agg')
H... | PypiClean |
/OEISsequences-0.1.12-py3-none-any.whl/oeis_sequences/OEISsequences.py | from __future__ import print_function, division
import sys, bisect, re
from functools import lru_cache, reduce
from itertools import (
islice,
count,
product,
permutations,
takewhile,
accumulate,
combinations_with_replacement,
combinations,
repeat,
groupby,
chain,
starmap... | PypiClean |
/MrSnippets-2.0.1.tar.gz/MrSnippets-2.0.1/LICENSE.md | BSD 2-Clause License
Copyright (c) 2021, Dhamodharan Karuppuswamy
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list ... | PypiClean |
/Final_Project-1.0.tar.gz/Final_Project-1.0/src/webcrawler/extract.py | """Extracting Data from Zillow, and storing into a csv file to be graphed.
"""
import os
import re as regex
from bs4 import BeautifulSoup
import requests
import unicodecsv as csv
from crawler import WebCrawler
__author__ = "Disaiah Bennett"
__version__ = 1.0
def main():
"""Extracting housing information from zill... | PypiClean |
/CluSex-2.3.6-py3-none-any.whl/clusex/lib/cgpng.py | import warnings
import pandas as pd
import tkinter as tk
import tkinter.font as tkFont
import matplotlib.pyplot as plt
from io import BytesIO
from tkinter import Tk
from tkinter import messagebox as tkMessageBox
from PIL import ImageTk, Image
warnings.filterwarnings("ignore")
def cgPNG(pngfile_in, pngfile_out):
... | PypiClean |
/Discord_Tools-2.1.tar.gz/Discord_Tools-2.1/src/Discord_Tools/defs.py | import logging
class DTGuild:
def __init__(self , guild_name:str , guild_id=None):
self.name = guild_name
self.id = guild_id
self.properties = {
"name" : self.name,
"id" : self.id
}
self.orgproperties = self.properties.copy()
def edit(self , ... | PypiClean |
/MUGAlyser-1.0.6a0.tar.gz/MUGAlyser-1.0.6a0/mugalyser/dotted_dict.py | import datetime
class Nested_Dict( dict ):
'''
classdocs
'''
def __init__(self, *args, **kwargs):
self.update(*args, **kwargs)
def __getitem__(self, key):
'''
Accept a key of the form "a.b.c". We expect the object to have a set of nested dicts
{ a : ....
... | PypiClean |
/Happypanda-1.1.zip/Happypanda-1.1/happypanda/settingsdialog.py | import logging, os, sys
from PyQt5.QtWidgets import (QVBoxLayout, QHBoxLayout, QListWidget, QWidget,
QListWidgetItem, QStackedLayout, QPushButton,
QLabel, QTabWidget, QLineEdit, QGroupBox, QFormLayout,
QCheckBox, QRadioButton, QSpi... | PypiClean |
/OSfooler-ng-openwrt-1.1.tar.gz/OSfooler-ng-openwrt-1.1/LICENSE.md | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/gqcms/matrices/Determinant.py | from itertools import combinations, product
import numpy as np
class Determinant:
"""
This class can be used to generate ONVs from a list of occupied orbitals
and generate all n-tuply exited determinants
:param alpha_occ: list of occupied alpha orbitals
:param beta_occ: list of occupied beta orbi... | PypiClean |
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/tool_box/tb_common/configuration.py |
#-----------------------------------------------------------------------
"""
Set up an internal, global, representation of the configuration
file. This is mostly about finding the name of the file to load,
and subsequently loading it.
We use ConfigParser internally, parsed and structured to look like
... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Gyre-Pagella/Size1/Regular/Main.js | MathJax.OutputJax.SVG.FONTDATA.FONTS.GyrePagellaMathJax_Size1={directory:"Size1/Regular",family:"GyrePagellaMathJax_Size1",id:"GYREPAGELLASIZE1",32:[0,0,250,0,0,""],40:[744,244,456,124,374,"374 716c-127 -127 -186 -276 -186 -419v-94c0 -143 59 -292 186 -419c-6 -3 -11 -7 -16 -12s-9 -10 -12 -16c-138 138 -222 292 -222 447v9... | PypiClean |
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/gui/gendata_form.py | import typing as typ
#External imports
from PyQt5 import QtCore, QtGui, QtWidgets # type: ignore
import qdarkstyle # type: ignore
import logging, inspect
#Internal Imports
import catalog.gendata.gendata as gendata
from catalog.datalog.db_utils import Query
from catalog.misc.sql_utils import ... | PypiClean |
/DeepCell-Spots-0.3.2.tar.gz/DeepCell-Spots-0.3.2/deepcell_spots/training.py | from __future__ import absolute_import, division, print_function
import datetime
import os
import numpy as np
# import deepcell.losses
from deepcell.utils import train_utils
from deepcell.utils.train_utils import rate_scheduler
from tensorflow.keras.optimizers import SGD
from tensorflow.keras import backend as K
from... | PypiClean |
/CNN4IE-0.1.9-py3-none-any.whl/cnn4ie/self_attention_cnn/model.py | import torch
import torch.nn.functional as F
import torch.nn as nn
from cnn4ie.util import crf
from cnn4ie.self_attention_cnn.self_attention_conv import SelfAttention
DEVICE = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
class Encoder(nn.Module):
def __init__(self, emb_dim, hid_dim, n_layers, kern... | PypiClean |
/Juice-0.0.23.tar.gz/Juice-0.0.23/juice/core.py | import re
import os
import sys
import inspect
import datetime
import functools
import logging
import logging.config
import utils
import exceptions
from six import string_types
from werkzeug.contrib.fixers import ProxyFix
from werkzeug.routing import BaseConverter, parse_rule
from werkzeug.exceptions import Aborter
from... | PypiClean |
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/types/inline_mode/inline_query_result_document.py |
from typing import Optional, List
import pyrogram
from pyrogram import raw, types, utils, enums
from .inline_query_result import InlineQueryResult
class InlineQueryResultDocument(InlineQueryResult):
"""Link to a file.
By default, this file will be sent by the user with an optional caption.
Alternativel... | PypiClean |
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/driver/picoforce.py | import os.path
import pprint
import re
import time
import numpy
from .. import curve as curve # this module defines data containers.
from . import Driver as Driver # this is the Driver base class
__version__='0.0.0.20110421'
class PicoForceDriver (Driver):
"""Handle Bruker Picoforce force spectroscopy files.
... | PypiClean |
/Aquila_Resolve-0.1.4-py3-none-any.whl/Aquila_Resolve/text/numbers.py | import inflect
import re
_magnitudes = ["trillion", "billion", "million", "thousand", "hundred", "m", "b", "t"]
_magnitudes_key = {"m": "million", "b": "billion", "t": "trillion"}
_measurements = "(f|c|k|d|m|km|ft)"
_measurements_key = {
"f": "fahrenheit",
"c": "celsius",
"k": "thousand",
"m": "meters"... | PypiClean |
/MITuna-1.0.tar.gz/MITuna-1.0/tuna/machine_management_interface.py | """ Machine Management Module to restart machines remotely
using BMC or IPMI """
import socket
from time import sleep
from enum import Enum
import os
from subprocess import Popen, PIPE
import paramiko
from paramiko.dsskey import DSSKey
from paramiko.ecdsakey import ECDSAKey
from paramiko.ed25519key import Ed25519Ke... | PypiClean |
/CallFlow-1.3.0.tar.gz/CallFlow-1.3.0/callflow/server/provider_socket.py |
import json
import warnings
from flask import Flask
from flask_socketio import SocketIO, emit
from networkx.readwrite import json_graph
import callflow
from .provider_base import BaseProvider
LOGGER = callflow.get_logger(__name__)
app = Flask(__name__, static_url_path="")
sockets = SocketIO(app, cors_allowed_orig... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/readline.d.ts | declare module 'readline' {
import { Abortable, EventEmitter } from 'node:events';
import * as promises from 'node:readline/promises';
export { promises };
export interface Key {
sequence?: string | undefined;
name?: string | undefined;
ctrl?: boolean | undefined;
meta?:... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/methods/messages/search_global.py |
from typing import AsyncGenerator, Optional
import pyrogram
from pyrogram import raw, enums
from pyrogram import types
from pyrogram import utils
class SearchGlobal:
async def search_global(
self: "pyrogram.Client",
query: str = "",
filter: "enums.MessagesFilter" = enums.MessagesFilter.E... | PypiClean |
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/extensions/view_interface.py |
#-----------------------------------------------------------------------
import pyutilib.component.core as component
#-----------------------------------------------------------------------
class IWorkerView(component.Interface):
def nd_view_selection_lists(self):
""" Return a dictionary of selection m... | PypiClean |
/OdooRPC-0.10.1.tar.gz/OdooRPC-0.10.1/odoorpc/odoo.py | from odoorpc import error, rpc, session, tools
from odoorpc.db import DB
from odoorpc.env import Environment
from odoorpc.report import Report
class ODOO(object):
"""Return a new instance of the :class:`ODOO` class.
`JSON-RPC` protocol is used to make requests, and the respective values
for the `protocol`... | PypiClean |
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/marked/lib/marked.js | ;(function() {
/**
* Block-Level Grammar
*/
var block = {
newline: /^\n+/,
code: /^( {4}[^\n]+\n*)+/,
fences: noop,
hr: /^( *[-*_]){3,} *(?:\n+|$)/,
heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,
nptable: noop,
lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,
blockquote: /^( *>[^\n]+(\n[^\n]+)*\n*)... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/plugins/ExtendedFileManager/assets/popup.js |
function __dlg_onclose() {
if(opener.Dialog._return)
opener.Dialog._return(null);
}
function __dlg_init( bottom, win_dim ) {
__xinha_dlg_init(win_dim);
}
function __xinha_dlg_init( win_dim ) {
if(window.__dlg_init_done) return true;
if(window.opener._editor_skin) {
var head = document.getElem... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/modeling/backbone/resnet.py | from collections import namedtuple
import torch.nn.functional as F
from torch import nn
from PTMD.maskrcnn_benchmark.layers import Conv2d
from PTMD.maskrcnn_benchmark.layers import DFConv2d
from PTMD.maskrcnn_benchmark.layers import FrozenBatchNorm2d
from PTMD.maskrcnn_benchmark.modeling.make_layers import group_norm... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/user_and_chats/chat_member.py |
from datetime import datetime
from typing import Union, Dict
import newgram
from newgram import raw, types, utils, enums
from ..object import Object
class ChatMember(Object):
"""Contains information about one member of a chat.
Parameters:
status (:obj:`~newgram.enums.ChatMemberStatus`):
... | PypiClean |
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/listitems/listitem.py | from office365.runtime.client_result import ClientResult
from office365.runtime.client_value_collection import ClientValueCollection
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
from office365.runtime.resource_path import ResourcePath
from office365.runtime.resource_path_service_o... | PypiClean |
/AnkiIn-0.1.7.tar.gz/AnkiIn-0.1.7/README.md | # AnkiIn
[![Release][release-shield]][release-url]
[![MIT License][license-shield]][license-url]
[![Issues][issues-shield]][issues-url]
[![Stargazers][stars-shield]][stars-url]
[![Forks][forks-shield]][forks-url]
[![Contributors][contributors-shield]][contributors-url]
[![CodeFactor][codefactor-shield]][codefactor-url... | PypiClean |
/DigiCore-1.1.3.tar.gz/DigiCore-1.1.3/alibabacloud_openapi_util/client.py | import binascii
import datetime
import hashlib
import hmac
import base64
import copy
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.asymmetric import padding
from cryptography.hazmat.primitives.serialization import load_pem_... | PypiClean |
/Enphase_API-1.0.0-py3-none-any.whl/enphase_api/cloud/authentication.py |
# This file is part of Enphase-API <https://github.com/Matthew1471/Enphase-API>
# Copyright (C) 2023 Matthew1471!
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as
# published by the Free Software Foundation.
#
# This program is... | PypiClean |
/Eskapade-1.0.0-py3-none-any.whl/eskapade/tutorials/esk201_readdata.py | from eskapade import ConfigObject, Chain, resources
from eskapade import core_ops, analysis
from eskapade import process_manager
from eskapade.logger import Logger
logger = Logger()
logger.debug('Now parsing configuration file esk201_readdata')
########################################################################... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/_firebug/firebug.js | if(!dojo._hasResource["dojo._firebug.firebug"]){
dojo._hasResource["dojo._firebug.firebug"]=true;
dojo.provide("dojo._firebug.firebug");
dojo.deprecated=function(_1,_2,_3){
var _4="DEPRECATED: "+_1;
if(_2){
_4+=" "+_2;
}
if(_3){
_4+=" -- will be removed in version: "+_3;
}
console.warn(_4);
};
dojo.experimental=functio... | PypiClean |
/OLCTools-1.3.5.tar.gz/OLCTools-1.3.5/olctools/accessoryFunctions/edit_FASTQ_run_statistics.py | from olctools.accessoryFunctions.accessoryFunctions import filer, make_path, SetupLogging
from argparse import ArgumentParser
from Bio import SeqIO
from glob import glob
import logging
import gzip
import os
# Import ElementTree - try first to import the faster C version, if that doesn't
# work, try to import the regul... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/jobs/cluster.py | import logging
import os
import socket
import time
from pathlib import Path
from filelock import SoftFileLock, Timeout
from jade.exceptions import InvalidConfiguration
from jade.jobs.job_configuration import JobConfiguration
from jade.models import ClusterConfig, Job, JobState, JobStatus, SubmissionGroup
from jade.ut... | PypiClean |
/CaMo-0.0.5-py3-none-any.whl/camo/backend/graph.py | from typing import Iterable, Optional, Set, Tuple
import matplotlib.pyplot as plt
import networkx as nx
from ..utils import _as_set
class Graph:
_G: nx.Graph
def __init__(
self,
V: Optional[Iterable[str]] = None,
E: Optional[Iterable[Tuple[str, str]]] = None
):
self._G ... | PypiClean |
/CTid-programmer-1.4.2.tar.gz/CTid-programmer-1.4.2/ctid_programmer/programmer.py | import argparse
import logging
import os
import re
import subprocess
import sys
import tempfile
import importlib_resources
import pexpect
import pkg_resources
from pexpect import fdpexpect
from PySide2.QtCore import Qt
from PySide2.QtWidgets import (
QAction,
QApplication,
QDialog,
QDialogButtonBox,
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.