id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/IsomPermissions_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf.internal import enum_type_wrapper
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf i... | PypiClean |
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/distribution/_beta.py | import numpy as np
import scipy.stats as sps
from cuqi.geometry import _get_identity_geometries
from cuqi.utilities import force_ndarray
from cuqi.distribution import Distribution
class Beta(Distribution):
"""
Multivariate beta distribution of independent random variables x_i. Each is distributed according to... | PypiClean |
/Flask-PG-Extras-0.2.0.tar.gz/Flask-PG-Extras-0.2.0/flask_pg_extras/cli.py | import click
from flask import current_app
from flask.cli import with_appcontext
from flask_pg_extras.queries.extensions import query as query_extensions
from flask_pg_extras.queries.index_size import query as query_index_size
from flask_pg_extras.queries.index_unused import query as query_index_unused
from flask_pg_... | PypiClean |
/Flask-mdform-0.1.1.tar.gz/Flask-mdform-0.1.1/BADGES.rst | .. image:: https://img.shields.io/pypi/v/flask-mdform.svg
:target: https://pypi.python.org/pypi/flask-mdform
:alt: Latest Version
.. image:: https://img.shields.io/pypi/l/flask-mdform.svg
:target: https://pypi.python.org/pypi/flask-mdform
:alt: License
.. image:: https://img.shields.io/pypi/pyversions... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/Compressor.py | import copy
import logging
import os
logger = logging.getLogger(__name__)
COMPRESSORS = {}
try:
from .tensorflow import pruning as tf_pruning
COMPRESSORS.update({
"tensorflow": {
"pruning": {
"level": tf_pruning.LevelPruner,
}
},
})
except (ImportErr... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/messages/edit_message_media.py |
import os
import re
import io
from typing import Union
import fipper
from fipper import raw
from fipper import types
from fipper import utils
from fipper.file_id import FileType
class EditMessageMedia:
async def edit_message_media(
self: "fipper.Client",
chat_id: Union[int, str],
message... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/db_schema.py | from datetime import datetime
from typing import Any, Callable, Dict, List, Optional, Union
import sqlalchemy.event
from loguru import logger
from sqlalchemy import Column, DateTime, Integer, String, Table
from sqlalchemy.exc import OperationalError
from sqlalchemy.ext.declarative import DeclarativeMeta
from sqlalchem... | PypiClean |
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/exegol-docker-build/sources/install/package_ad.sh |
source common.sh
function install_ad_apt_tools() {
fapt samdump2 smbclient onesixtyone nbtscan ldap-utils
add-history samdump2
add-history smbclient
add-history onesixtyone
add-history nbtscan
add-history ldapsearch
add-test-command "samdump2 -h|& grep 'enable debugging'" # Dumps ... | PypiClean |
/CustomSelectAdmin-0.6.1.tar.gz/CustomSelectAdmin-0.6.1/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c11"
DEFAULT_URL = "http://pypi.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': '565775... | PypiClean |
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/lib/psgrn_caster.py | import os
import copy
import statistics as sta
import ageas.tool as tool
import ageas.tool.grn as grn
import ageas.tool.gem as gem
import ageas.tool.json as json
from scipy.stats import pearsonr
class Make:
"""
Make grns for gene expression datas
"""
def __init__(self,
database_info ... | PypiClean |
/BT-Manager-0.3.0.tar.gz/BT-Manager-0.3.0/bt_manager/device.py | from __future__ import unicode_literals
from interface import BTInterface
from adapter import BTAdapter
from exceptions import BTDeviceNotSpecifiedException
class BTGenericDevice(BTInterface):
"""
Generic BT device which has its own interface bus address but is
associated with a BT adapter.
:param s... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/core/window/window_sdl2.py | __all__ = ('WindowSDL', )
from os.path import join
import sys
from typing import Optional
from kivy import kivy_data_dir
from kivy.logger import Logger
from kivy.base import EventLoop
from kivy.clock import Clock
from kivy.config import Config
from kivy.core.window import WindowBase
try:
from kivy.core.window._win... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/xmpp/UserService.js | if(!dojo._hasResource["dojox.xmpp.UserService"]){
dojo._hasResource["dojox.xmpp.UserService"]=true;
dojo.provide("dojox.xmpp.UserService");
dojo.declare("dojox.xmpp.UserService",null,{constructor:function(_1){
this.session=_1;
},getPersonalProfile:function(){
var _2={id:this.session.getNextIqId(),type:"get"};
var _3=ne... | PypiClean |
/FSlash-0.17.0.tar.gz/FSlash-0.17.0/oryx/handler.py | from typing import Any, Awaitable, Callable, Dict, TypeVar
from aiohttp import ClientResponse
from fslash.core import Nothing, Ok, Option, Result, option
from .context import Context, HttpContext, HttpMethod
TSource = TypeVar("TSource")
TError = TypeVar("TError")
TResult = TypeVar("TResult")
TNext = TypeVar("TNext")... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/cli/config.py |
import json
import logging
import os
import sys
import tempfile
from pathlib import Path
import click
from prettytable import PrettyTable
from jade.cli.common import COMMON_SUBMITTER_OPTIONS, add_options, make_submitter_params
from jade.jobs.cluster import Cluster
from jade.common import CONFIG_FILE
from jade.extens... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct33.py | desc={"ref": {"CS1": 'Dutour Sikirić, Mathieu, Olaf Delgado-Friedrichs, and Michel Deza. “Space Fullerenes: a Computer Search for New Frank-Kasper Structures” Acta Crystallographica Section A Foundations of Crystallography 66.Pt 5 (2010): 602–615.'},
"usage": "No options available.",
"brief": "Cubic Structu... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20.20/plugins/common/dom-to-xhtml/lib/dom-to-xhtml.js | * Provides public utility methods to convert DOM nodes to XHTML.
*/
define(
['aloha', 'aloha/jquery', 'aloha/console'],
function( Aloha, $, console) {
/**
* Gets the attributes of the given element.
*
* @param element
* An element to get the attributes for.
* @return
* An array of consis... | PypiClean |
/Fluence-0.1.7-py3-none-any.whl/fluence/optim/lookahead.py |
__all__ = ["Lookahead"]
# Cell
from collections import defaultdict
import torch
from torch.optim.optimizer import Optimizer
# Cell
class Lookahead(Optimizer):
def __init__(self, base_optimizer, alpha=0.5, k=6):
if not 0.0 <= alpha <= 1.0:
raise ValueError(f"Slow update rate is not valid: {... | PypiClean |
/GUI/Formal.py | import tkinter as tk
#========================================================================================================================
#=========================================================||||||=========================================================
#====================================================... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/pt_PT.js | tinymce.addI18n('pt_PT',{
"Cut": "Cortar",
"Heading 5": "T\u00edtulo 5",
"Header 2": "Cabe\u00e7alho 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "O seu navegador n\u00e3o suporta acesso direto \u00e0 \u00e1rea de transfer\u00eancia. Por fav... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/bert/extract_feature.py | from pysoftNLP.bert.graph import import_tf
from pysoftNLP.bert import modeling
from pysoftNLP.bert import tokenization
from pysoftNLP.bert.graph import optimize_graph
from pysoftNLP.bert import args
from queue import Queue
from threading import Thread
tf = import_tf(0, True)
class InputExample(object):
def __in... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/hi.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/matrices/NumberOperator.py | from typing import List
import numpy as np
from . import Determinant
def NumberOperator(sites: list, basis: List[Determinant], balpha: bool =True, bbeta: bool =True, number_of_sites: int = None, N: np.ndarray = None) -> np.ndarray:
"""
Creates the matrix representation of the number operator in ONV or site b... | PypiClean |
/Myghty-1.2.tar.gz/Myghty-1.2/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c1"
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 |
/MeshPy-2022.1.3.tar.gz/MeshPy-2022.1.3/doc/faq.rst | Licensing Information
=====================
Wrapper License
---------------
MeshPy (the wrapper) is licensed to you under the MIT/X Consortium license:
Copyright (c) 2008 Andreas Klöckner
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files... | PypiClean |
/MVE_patchmatchnet_GUI-1.1.3.tar.gz/MVE_patchmatchnet_GUI-1.1.3/models/module.py | import torch
import torch.nn as nn
import torch.nn.functional as F
class ConvBnReLU(nn.Module):
"""Implements 2d Convolution + batch normalization + ReLU"""
def __init__(
self,
in_channels: int,
out_channels: int,
kernel_size: int = 3,
stride: int = 1,
pad: int... | PypiClean |
/ONE-api-2.2.2.tar.gz/ONE-api-2.2.2/one/api.py | import collections.abc
import urllib.parse
import warnings
import logging
from datetime import datetime, timedelta
from functools import lru_cache, partial
from inspect import unwrap
from pathlib import Path, PurePosixPath
from typing import Any, Union, Optional, List
from uuid import UUID
from urllib.error import URLE... | PypiClean |
/MLMath-0.0.0rc1.tar.gz/MLMath-0.0.0rc1/mlm/math/_ops.py | import functools
import math
import warnings
from numbers import Number
from typing import Tuple, Callable, Any
import numpy as np
from . import extrapolation as e_
from ._magic_ops import expand, pack_dims, flatten, unpack_dim, cast, copy_with, value_attributes
from ._shape import (Shape, EMPTY_SHAPE,
... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/framework/middleware/functional/advantage_estimator.py | from typing import TYPE_CHECKING, Callable, Optional
from easydict import EasyDict
from ditk import logging
import torch
import treetensor.torch as ttorch
from ding.policy import Policy
from ding.data import Buffer
from ding.rl_utils import gae, gae_data
from ding.framework import task
from ding.utils.data import ttorc... | PypiClean |
/FEWS-1.0.2.tar.gz/FEWS-1.0.2/src/svdd/svdd.py | import copy
import copyreg
import random
import matplotlib.pyplot as plt
import numpy as np
import time
from collections import defaultdict
import warnings
from sklearn.mixture import GaussianMixture
import pandas as pd
from cvxopt import matrix, solvers
from sklearn.base import BaseEstimator, OutlierMixin
from sklea... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/nodes/ConstantRefNodes.py | import sys
from abc import abstractmethod
from nuitka import Options
from nuitka.__past__ import (
GenericAlias,
UnionType,
iterItems,
long,
unicode,
xrange,
)
from nuitka.Builtins import (
builtin_anon_values,
builtin_exception_values_list,
builtin_named_values,
)
from nuitka.Const... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dImage.py |
import cStringIO
import imghdr
import os
import wx
import dabo
if __name__ == "__main__":
import dabo.ui
dabo.ui.loadUI("wx")
import dabo.dEvents as dEvents
from dabo.dLocalize import _
from dabo.lib import utils
#import dControlMixin as dcm
from dDataControlMixin import dDataControlMixin as dcm
import dImageMixin... | PypiClean |
/LTNtorch-1.0.1-py3-none-any.whl/ltn/core.py | import copy
import torch
from torch import nn
import numpy as np
import ltn
import types
class LTNObject:
r"""
Class representing a generic :ref:`LTN object <noteltnobject>`.
In LTNtorch, LTN objects are constants, variables, and outputs of predicates, formulas, functions, connectives,
and quantifier... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/backend/static/cubane/backend/tinymce/js/plugins/cubaneimage.js | tinymce.PluginManager.add('cubaneimage', function(editor) {
function getImageSize(url, callback) {
// valid image url?
if (!url) return;
var img = document.createElement('img');
function done(width, height) {
img.parentNode.removeChild(img);
callback({width: width, height: height});
}
... | PypiClean |
/Autograde-0.1.1.tar.gz/Autograde-0.1.1/autograde/models.py | from django.db import models
from django.db.models import permalink
from zipfile import ZipFile
from django.contrib.auth.models import User
from django_extensions.db.fields import *
class Project(models.Model):
"""
The base model representing a single assignment or project.
"""
instructors = model... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/minizlib/README.md | # minizlib
A fast zlib stream built on [minipass](http://npm.im/minipass) and
Node.js's zlib binding.
This module was created to serve the needs of
[node-tar](http://npm.im/tar) and
[minipass-fetch](http://npm.im/minipass-fetch).
Brotli is supported in versions of node with a Brotli binding.
## How does this differ... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/layout/utilities.md | ---
layout: docs
title: Utilities for layout
description: For faster mobile-friendly and responsive development, Bootstrap includes dozens of utility classes for showing, hiding, aligning, and spacing content.
group: layout
toc: true
---
## Changing `display`
Use our [display utilities]({{< docsref "/utilities/displa... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/SystemEraseREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extensio... | PypiClean |
/DLStudio-2.3.0.tar.gz/DLStudio-2.3.0/ExamplesTransformers/seq2seq_with_transformerPreLN.py |
## seq2seq_with_transformerPreLN.py
"""
This script is for experimenting with TransformerPreLN.
For an introduction to TransformerPreLN, read the large comment block associated
with the definition of this class in the Transformers co-class of DLStudio.
That introduction explains the difference betwe... | PypiClean |
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/lineProfLTE.py |
import numpy as np
from scipy.integrate import odeint
from .emitterData import emitterData
from .despoticError import despoticError
# Define some global physical constants in cgs units
import scipy.constants as physcons
kB = physcons.k*1e7
c = physcons.c*1e2
mH = physcons.m_p*1e3
h = physcons.h*1e7
sigma=physcons.sig... | PypiClean |
/HelloFlask-1.2.0-py3-none-any.whl/helloflask/controllers/packages_utils.py | import time
import subprocess
from tqdm import tqdm
from typing import List
from itertools import repeat
from concurrent.futures import ThreadPoolExecutor as Executor
from helloflask.controllers.venv_utils import venv_init, get_env_vars
from helloflask.controllers.ui_utils import (installed_packages_str,
... | PypiClean |
/ORCHISM.1.0.tar.gz/ORCHISM.1.0/run_dir/def_SS_DE_Bay_daily.py |
import numpy as np
# ==============================================================================
# Site characteristics
#
# ------------------------------------------------------------------------------
class Site:
main_path = '/your/working/directory/ORCHISM/'
# -- Max number of region sets
nmaps ... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/builtin/linalg.py | from __future__ import unicode_literals
from __future__ import absolute_import
import six
from six.moves import range
from six.moves import zip
import sympy
from mpmath import mp
from mathics.builtin.base import Builtin
from mathics.core.convert import from_sympy
from mathics.core.expression import Expression, Integ... | PypiClean |
/FESTIM-0.11.1-py3-none-any.whl/festim/h_transport_problem.py | from fenics import *
import festim
class HTransportProblem:
"""Hydrogen Transport Problem.
Used internally in festim.Simulation
Args:
mobile (festim.Mobile): the mobile concentration
traps (festim.Traps): the traps
T (festim.Temperature): the temperature
settings (festim.S... | PypiClean |
/LazyHDF5-0.3.0.tar.gz/LazyHDF5-0.3.0/LICENSE.md | This software was developed by employees of the National Institute of Standards
and Technology (NIST), an agency of the Federal Government. Pursuant to
[title 17 United States Code Section 105](http://www.copyright.gov/title17/92chap1.html#105),
works of NIST employees are not subject to copyright protection in the ... | PypiClean |
/DataMason-0.6.0b1.tar.gz/DataMason-0.6.0b1/datamason/validation/validate.py |
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
# Compliance with MIT License clauses.
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
# AND ANY EXPRESS OR IMPLIED WAR... | PypiClean |
/BioFlow-0.2.3.tar.gz/BioFlow-0.2.3/bioflow/cli.py | import click
from bioflow.configs_manager import set_folders, build_source_config, \
pull_online_dbs
from bioflow.annotation_network.BioKnowledgeInterface \
import GeneOntologyInterface as AnnotomeInterface
from bioflow.utils.io_routines import get_background_bulbs_ids, get_source_bulbs_ids
from bioflow.annotat... | PypiClean |
/Deprecated-1.2.14.tar.gz/Deprecated-1.2.14/docs/source/tutorial.rst | .. _tutorial:
Tutorial
========
In this tutorial, we will use the Deprecated Library to mark pieces of codes as deprecated.
We will also see what's happened when a user tries to call deprecated codes.
Deprecated function
-------------------
First, we have this little library composed of a single module: ``liberty.p... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/axelrod/random_.py | from typing import Optional
import numpy as np
from axelrod.action import Action
from numpy.random import RandomState
C, D = Action.C, Action.D
class RandomGenerator(object):
"""Container around a random number generator.
Enables reproducibility of player behavior, matches,
and tournaments."""
def ... | PypiClean |
/Galaxy-ML-0.10.0.tar.gz/Galaxy-ML-0.10.0/galaxy_ml/externals/selene_sdk/sequences/sequence.py | from abc import ABCMeta
from abc import abstractmethod
import numpy as np
from ._sequence import _fast_sequence_to_encoding
def sequence_to_encoding(sequence, base_to_index, bases_arr):
"""Converts an input sequence to its one-hot encoding.
Parameters
----------
sequence : str
The input seq... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/specialchar/dialogs/lang/da.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","da",{euro:"Euro-tegn",lsquo:"Venstre enkelt anførselstegn",rsquo:"Højre enkelt anførselstegn",ldquo:"Venstre dobbe... | PypiClean |
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/models/losses/pixelwise_loss.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from ..registry import LOSSES
from .utils import masked_loss
_reduction_modes = ['none', 'mean', 'sum']
@masked_loss
def l1_loss(pred, target):
"""L1 loss.
Args:
pred (Tensor): Prediction Tensor with shape (n, c, h, w).
targ... | PypiClean |
/AREM-1.0.1.tar.gz/AREM-1.0.1/README | README for AREM 1.0.1, based on MACS 1.4.0rc2
Time-stamp: <2011-03-01 18:21:42 Jake Biesinger>
* Introduction
High-throughput sequencing coupled to chromatin immuno-
precipitation (ChIP-Seq) is widely used in characterizing genome-wide
binding patterns of transcription factors, cofactors, chromatin modifiers,
and oth... | PypiClean |
/Flattener-0.1.2.zip/Flattener-0.1.2/doc/index.rst | ..
:copyright: Copyright (c) 2016 Martin Pengelly-Phillips
#########
Flattener
#########
Flatten lists of lists::
>>> import flattener
>>> flattener.flatten([1, 2, [3, [4], 5]])
[1, 2, 3, 4, 5]
.. toctree::
:maxdepth: 1
installing
using
api_reference/index
release/index
glos... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/custom/qrlogin.py | import asyncio
import base64
import datetime
from .. import types, functions
from ... import events
class QRLogin:
"""
QR login information.
Most of the time, you will present the `url` as a QR code to the user,
and while it's being shown, call `wait`.
"""
def __init__(self, client, ignored... | PypiClean |
/ChadBot3-0.1-py3-none-any.whl/ChadBot/chadBot.py | import os
from typing import List, Tuple, Dict
from numpy.testing._private.utils import assert_raises
from .core.FAQ import Answer, FAQ, Question , FAQUnit, FAQOutput
import numpy as np
from sentence_transformers.readers import InputExample
from sentence_transformers import SentenceTransformer,SentencesDataset,losses... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/ui/v1/src/blocks/router/router-helper.provider.js | (function () {
'use strict';
angular
.module('blocks.router')
.provider('routerHelper', routerHelperProvider);
function routerHelperProvider($stateProvider, $urlRouterProvider, $windowProvider) {
var $window = $windowProvider.$get();
if (!($window.history && $window.history... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/license_response.py |
from msrest.serialization import Model
class LicenseResponse(Model):
"""LicenseResponse.
:param validation_key: User's license validation key.
:type validation_key: str
:param expiration_date: User's license expiration date.
:type expiration_date: datetime
:param licensed_meters: Number of l... | PypiClean |
/CellNet-1.1.1.3-py3-none-any.whl/cellphonedb/src/core/exporters/exporterlauncher.py | from cellphonedb.src.core.core_logger import core_logger
from cellphonedb.src.core.exporters import complex_exporter, complex_web_exporter, \
interaction_exporter, protein_exporter, gene_exporter, protein_complex_cellphonedb, \
heterodimers_exporter, interactions_cellphonedb_exporter
class ExporterLauncher(ob... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/gqcms/Optimization.py | import numpy as np
def LineSearch(
a: float,
f: callable,
args: tuple = (),
lower_boundary: float = -10.0,
upper_boundary: float = 10.0,
threshold: float = 1e-6,
check_threshold: float = 1e-3,
maxiter: int = 100,
blog: bool = False,
) -> tuple:
"""
Optimizes the expectation... | PypiClean |
/DomiKnowS-0.533.tar.gz/DomiKnowS-0.533/domiknows/solver/allennlplogInferenceSolver.py | import abc
from typing import Dict
from collections import defaultdict
import numpy as np
import torch
from ..graph import Graph
from ..sensor.allennlp.sensor import SentenceEmbedderSensor, SentenceSensor
from ..sensor.allennlp.base import AllenNlpLearner
from ..utils import get_prop_result
from .ilpOntSolver import il... | PypiClean |
/BlackLager-1.0.14.tar.gz/BlackLager-1.0.14/blackLager/__main__.py | import argparse
import platform
import logging
import os
import subprocess
import sys
import time
import yaml
from pubsub import pub
import pyqrcode
import pkg_resources
from google.protobuf.json_format import MessageToDict
import blackLager.util
import blackLager.test
from blackLager import remote_hardware
from blackL... | PypiClean |
/FX-Manager-1.0.16.tar.gz/FX-Manager-1.0.16/src/fxmanager/dwx/prices_subscriptions.py | #############################################################################
# DWX-ZMQ required imports
#############################################################################
# Import ZMQ-Strategy from relative path
from fxmanager.dwx.DWX_ZMQ_Strategy import DWX_ZMQ_Strategy
#################################... | PypiClean |
/JSONBender-0.9.3.tar.gz/JSONBender-0.9.3/jsonbender/string_ops.py | from jsonbender.core import Bender, Transport
from jsonbender._compat import iteritems
class Format(Bender):
"""
Return a formatted string just like `str.format()`.
However, the values to be formatted are given by benders as positional or
named parameters.
`format_string` is a template with the s... | PypiClean |
/Godot-0.1.1.zip/Godot-0.1.1/godot/util.py | #------------------------------------------------------------------------------
# Imports:
#------------------------------------------------------------------------------
from __future__ import with_statement
import os
from enthought.traits.api import HasTraits, Enum
from enthought.kiva.fonttools.font import str_t... | PypiClean |
/JATATools-0.2.1.tar.gz/JATATools-0.2.1/JATA/LOEB/LOEB.py | import re
import urllib.request
import urllib.request
import bs4
import pandas as pd
import requests
from JATA.Helpers import striplist
# collapse-hide
class loeb:
"""
This class can be used to interact with the loeb image data base.
The init funciton takes 1 argument which is the type of data to retrei... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ebmlib/_dirmon.py | __author__ = "Cody Precord <cprecord@editra.org>"
__cvsid__ = "$Id: _dirmon.py 73166 2012-12-12 04:31:53Z CJP $"
__revision__ = "$Revision: 73166 $"
__all__ = ['DirectoryMonitor',]
#-----------------------------------------------------------------------------#
# Imports
import wx
import os
import time
import threadin... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/hris/model/account_type_enum.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 |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/en/symbols/greek-scripts.js | [{"locale":"en"},{"category":"Ll","key":"1D26","mappings":{"default":{"default":"greek letter small capital gamma","alternative":"greek letter gamma","short":"small cap gamma"},"mathspeak":{"default":"small upper Gamma"}}},{"category":"Ll","key":"1D27","mappings":{"default":{"default":"greek letter small capital lamda"... | PypiClean |
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/annalist/views/entitydelete.py | from __future__ import unicode_literals
from __future__ import absolute_import, division, print_function
"""
Entity list view
"""
__author__ = "Graham Klyne (GK@ACM.ORG)"
__copyright__ = "Copyright 2014, G. Klyne"
__license__ = "MIT (http://opensource.org/licenses/MIT)"
import logging
log = logging.getLog... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/contacts/groups.js | const Groups = new Vue({
el: '#groups',
delimiters: ["[[", "]]"],
data: {
groups: {
results: [],
next: null,
previous: null
},
filters: {
keyword: '',
},
group: {
name: ''
},
groupAdding: fals... | PypiClean |
/CaptainSoul-0.1.9.tar.gz/CaptainSoul-0.1.9/cptsoul/mainwindow/__init__.py |
import gtk
from cptsoul.common import CptCommon
from cptsoul.mainwindow.watchlist import WatchList
from cptsoul.mainwindow.toolbar import ToolBar
from cptsoul.mainwindow.mainstatus import MainStatus
class MainWindow(gtk.Window, CptCommon):
def __init__(self):
super(MainWindow, self).__init__()
... | PypiClean |
/Cantera-3.0.0b1-cp311-cp311-win_amd64.whl/cantera/liquidvapor.py |
from . import PureFluid, _cantera
def Water(backend='Reynolds'):
"""
Create a `PureFluid` object using the equation of state for water and the
`WaterTransport` class for viscosity and thermal conductivity.
The object returned by this method implements an accurate equation of state
for water, whe... | PypiClean |
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/xinha/lang/ch.js |
// LANG: "ch", ENCODING: UTF-8
// Samuel Stone, http://stonemicro.com/
{
"Bold": "粗體",
"Italic": "斜體",
"Underline": "底線",
"Strikethrough": "刪線",
"Subscript": "下標",
"Superscript": "上標",
"Justify Left": "靠左",
"Justify Center": "居中",
"Justify Right": "靠右",
"Justify Full": "整齊",
"Ordered List": "順序清... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/meyer.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def meyer(path):
"""A pedigree data on 282 animals deriving from two generations
A data frame ... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/environments/shipsteer/shipsteer.py | __author__ = 'Martin Felder, felder@in.tum.de'
from scipy import random
from pybrain.tools.networking.udpconnection import UDPServer
import threading
from pybrain.utilities import threaded
from time import sleep
from pybrain.rl.environments.environment import Environment
class ShipSteeringEnvironment(Environment):
... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/gqcms/Optimization.py | import numpy as np
def LineSearch(
a: float,
f: callable,
args: tuple = (),
lower_boundary: float = -10.0,
upper_boundary: float = 10.0,
threshold: float = 1e-6,
check_threshold: float = 1e-3,
maxiter: int = 100,
blog: bool = False,
) -> tuple:
"""
Optimizes the expectation... | PypiClean |
/Data_Function-0.0.4-py3-none-any.whl/kon/model/embedding/setence_model/line.py | from kon.model.embedding.setence_model.walk_core_model import core_model
from kon.model.embedding.util.util_tool import get_node_information
from numpy import random
import numpy as np
import math
class Line(core_model):
def __init__(self,Graph,per_vertex,walk_length,window_size,dimension_size,work,log_dir,epoch,... | PypiClean |
/C-Telethon-1.28.5.tar.gz/C-Telethon-1.28.5/telethon/requestiter.py | import abc
import asyncio
import time
from . import helpers
class RequestIter(abc.ABC):
"""
Helper class to deal with requests that need offsets to iterate.
It has some facilities, such as automatically sleeping a desired
amount of time between requests if needed (but not more).
Can be used syn... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/io/povray.py | from klampt import RobotModel,WorldModel,Geometry3D,GeometricPrimitive,VolumeGrid,PointCloud,Appearance
from klampt.vis import GLProgram,camera,gldraw
import klampt.math.vectorops as op
import klampt.math.se3 as se3
import klampt.math.so3 as so3
import math,os
if os.path.exists(".vapory"):
import vapory.vapory as v... | PypiClean |
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/doc/sphinx/source/doc/documents.rst | .. _doc-documents:
#######################
Document Management
#######################
Camelot provides some features for the management of documents. Notice that
documents managed by Camelot are stored in a specific location (either an
application directory on the local disk, a network share or a remote server).
... | PypiClean |
/CloudReg-1.0.1-py3-none-any.whl/cloudreg/scripts/util.py | try:
from urlparse import urlparse
except ImportError:
from urllib.parse import urlparse
import contextlib
import joblib
import SimpleITK as sitk
import math
import boto3
import numpy as np
import os
from tqdm import tqdm
import paramiko
from awscli.clidriver import create_clidriver
### image preprocessing
de... | PypiClean |
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/backend/__init__.py |
import importlib
import json
import os
import sys
from . import backend
from .set_default_backend import set_default_backend
from .utils import get_available_backend, interactive_install_paddle, verify_backend
_enabled_apis = set()
def is_enabled(api):
"""Return true if the api is enabled by the current backen... | PypiClean |
/Enkryptor-0.1.1.post1.tar.gz/Enkryptor-0.1.1.post1/enkryptor/enkryptor.py | import json
from pathlib import Path
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes
from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC
from cryptography.fernet import Fernet
import os
import base64
import logging
class Enkryptor:
"""
In... | PypiClean |
/HAllA-0.8.20-py3-none-any.whl/halla/utils/report.py | import matplotlib.pyplot as plt
import matplotlib.patheffects as path_effects
import seaborn as sns
import numpy as np
import scipy.cluster.hierarchy as sch
import pandas as pd
from os.path import join
import itertools
import sys
from mpl_toolkits.axes_grid1 import make_axes_locatable
from copy import deepcopy
def get... | PypiClean |
/Mopidy-3.4.1-py3-none-any.whl/mopidy/internal/models.py | from mopidy.internal import validation
from mopidy.models import Ref, TlTrack, fields
from mopidy.models.immutable import ValidatedImmutableObject
class HistoryTrack(ValidatedImmutableObject):
"""
A history track. Wraps a :class:`Ref` and its timestamp.
:param timestamp: the timestamp
:type timestamp... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/inference/grad_based_inference.py |
from .inference import Inference
from .batch_loop import BatchInferenceLoop
from ..util.inference import discover_shape_constants, init_outcomes
from .minibatch_loop import MinibatchInferenceLoop
class GradBasedInference(Inference):
"""
The abstract class for gradient-based inference methods.
An inferen... | PypiClean |
/Amplo-0.17.0.tar.gz/Amplo-0.17.0/amplo/classification/partial_boosting.py |
from __future__ import annotations
from copy import deepcopy
import pandas as pd
from amplo.base.exceptions import NotFittedError
from amplo.base.objects import BaseEstimator
from amplo.classification._base import BaseClassifier
class PartialBoostingClassifier(BaseClassifier):
"""
Amplo wrapper for classi... | PypiClean |
/Cactus-3.3.3.tar.gz/Cactus-3.3.3/cactus/ui.py | from __future__ import print_function
from six.moves import urllib
from six.moves import input
class InvalidInput(Exception):
"""
Raised when an input is invalid.
You should use this in your `coerce_fn` passed to `prompt`, to indicate that the
input you received was no valid.
"""
def __init__(... | PypiClean |
/AIML_Bot-0.0.3-py3-none-any.whl/aiml_bot/__init__.py | import os
import sys
import traceback
# The Bot class is the only class most implementations should need.
from .bot import Bot
__all__ = [
'Bot',
'main',
'USAGE'
]
__author__ = 'Cort Stratton'
__maintainer__ = 'Aaron Hosford'
__license__ = 'https://opensource.org/licenses/BSD-2-Clause'
__version__ = '0.... | PypiClean |
/Margos-0.0.2.tar.gz/Margos-0.0.2/margos/display.py | import logging
import gi # type:ignore
from functools import partial
from pkg_resources import resource_filename
from typing import List, Optional, Tuple
gi.require_version("Gtk", "3.0")
gi.require_version("MatePanelApplet", "4.0")
from gi.repository import MatePanelApplet, Gtk, Gdk, GLib, Gio # type:ignore
from ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA-AI-1.1/DLTA_AI_app/labelme/widgets/label_dialog.py | import re
from qtpy import QT_VERSION
from qtpy import QtCore
from qtpy import QtGui
from qtpy import QtWidgets
from labelme.logger import logger
import labelme.utils
QT5 = QT_VERSION[0] == "5"
# TODO(unknown):
# - Calculate optimal position so as not to go out of screen area.
class LabelQLineEdit(QtWidgets.QLi... | PypiClean |
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/config_example.py | debug = False
'''Set to True to turn on debugging mode.This enables use of IPython on
exceptions and on calls to :func:`GSASIIpath.IPyBreak`. Calls to
:func:`GSASIIpath.pdbBreak` will invoke pdb at that location.
If debug is False, calls to :func:`GSASIIpath.IPyBreak` and
:func:`GSASIIpath.pdbBreak` are ignored.
'''
... | PypiClean |
/IpfsML-1.0.2.tar.gz/IpfsML-1.0.2/nft_storage/model/forbidden_error_response_error.py | import re # noqa: F401
import sys # noqa: F401
from nft_storage.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
va... | PypiClean |
/GB2260-v2-0.2.1.tar.gz/GB2260-v2-0.2.1/gb2260_v2/data/curated/revision_198112.py | from __future__ import unicode_literals
name = '198112'
division_schema = {
'110000': '北京市',
'110101': '东城区',
'110102': '西城区',
'110103': '崇文区',
'110104': '宣武区',
'110105': '朝阳区',
'110106': '丰台区',
'110107': '石景山区',
'110108': '海淀区',
'110109': '门头沟区',
'110110': '燕山区',
'11022... | PypiClean |
/MAnorm2_utils-1.0.0.tar.gz/MAnorm2_utils-1.0.0/MAnorm2_utils/scripts/profile_bins.py | # Standard python library
from sys import argv, stdout, stderr
from getopt import getopt
# Our own library
import MAnorm2_utils
from MAnorm2_utils.genomic_bin import read_peak_file, sort_merge_peak
from MAnorm2_utils.genomic_bin import check_enclosing, merge_divide_peak
from MAnorm2_utils.genomic_bin import occupancy... | PypiClean |
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/engine.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | PypiClean |
/Deliverance.Rewrite-0.6.3.tar.gz/Deliverance.Rewrite-0.6.3/deliverance/editor/media/editarea/edit_area/elements_functions.js | function getAttribute( elm, aname ) {
try{
var avalue = elm.getAttribute( aname );
}catch(exept){
}
if ( ! avalue ) {
for ( var i = 0; i < elm.attributes.length; i ++ ) {
var taName = elm.attributes [i] .name.toLowerCase();
if ( taName == aname ) {
avalue = elm.attributes [i] .value;
... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/qrcode/image/svg.py | from decimal import Decimal
# On Python 2.6 must install lxml since the older xml.etree.ElementTree
# version can not be used to create SVG images.
try:
import lxml.etree as ET
except ImportError:
import xml.etree.ElementTree as ET
import qrcode.image.base
class SvgFragmentImage(qrcode.image.base.BaseImage):
... | PypiClean |
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/plugin/convfilt.py | import copy
from multiprocessing import Queue
import numpy
from ..command import Command, Argument, Success, Failure
from ..config import Setting
from ..util.fit import PoorFit
from ..util.peak import find_peaks, find_peaks_arguments, Peak, _kwargs
from . import Plugin, argument_to_setting
from .curve import CurveArg... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.