id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Leytonium-10.tar.gz/Leytonium-10/diffuse/resources.py |
# This file is part of Leytonium.
#
# Leytonium is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Leytonium is distributed in the ho... | PypiClean |
/HOGBEN-1.2.1.tar.gz/HOGBEN-1.2.1/figures/README.md | ## Figure 1
Plots on the left correspond to the DMPC bilayer and plots on the right to the DPPC/RaLPS bilayer. Shown (_a_ and _b_) are the plots of minimum eigenvalue versus bulk water contrast SLD for the bilayer models, for the simultaneous choice of two contrasts assuming no prior measurement. Also shown are the nes... | PypiClean |
/CellConstructor-1.3.2.tar.gz/CellConstructor-1.3.2/cellconstructor/ForceTensor.py | from __future__ import print_function
from __future__ import division
# Import for python2/3 compatibility
import cellconstructor.Phonons as Phonons
import cellconstructor.Methods as Methods
import cellconstructor.symmetries as symmetries
import cellconstructor.Units as Units
import cellconstructor.Settings as Sett... | PypiClean |
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/autotuning/utils.py |
# DeepSpeed Team
import re
import collections.abc
import os
import json
from deepspeed.runtime.constants import GRADIENT_ACCUMULATION_STEPS, TRAIN_MICRO_BATCH_SIZE_PER_GPU
import itertools
import copy
from ..utils import logger
def search_error(filename):
if not os.path.exists(filename):
return "stderr... | PypiClean |
/DBAPI_OpenTracing-0.0.5-py3-none-any.whl/dbapi_opentracing/psycopg2_tracing.py | from threading import Lock
from .tracing import _ConnectionTracing, _Cursor, _operation_name
try:
from psycopg2.extensions import connection as PsycopgConnection
from psycopg2.extensions import cursor as PsycopgCursor
except ImportError:
PsycopgConnection = object
PsycopgCursor = object
class _Psyco... | PypiClean |
/Flask-KQMaps-0.4.2.tar.gz/Flask-KQMaps-0.4.2/flask_kqmaps/static/kqwebclient/leaflet/3rd_libs/leaflet-realtime/leaflet-realtime.js | (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}(g.L || (g.L = {... | PypiClean |
/Flask-SignalBus-0.5.20.tar.gz/Flask-SignalBus-0.5.20/flask_signalbus/rabbitmq/publisher.py | import logging
import re
from threading import local
from typing import Iterable, Optional, NamedTuple
from .common import MessageProperties
_LOGGER = logging.getLogger(__name__)
_RE_BASIC_ACK = re.compile('^basic.ack$', re.IGNORECASE)
try:
import pika
except ImportError as e:
# This module can not work witho... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/core/cache/backends/locmem.py | "Thread-safe in-memory cache backend."
import pickle
import time
from collections import OrderedDict
from threading import Lock
from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache
# Global in-memory store of cache data. Keyed by name, to provide
# multiple named local memory caches.
_caches = {}
_e... | PypiClean |
/Cnc25D-0.1.10.tar.gz/Cnc25D-0.1.10/cnc25d/bell_bagel_assembly.py | ################################################################
# header for Python / FreeCAD compatibility
################################################################
import cnc25d_api
cnc25d_api.importing_freecad()
#print("FreeCAD.Version:", FreeCAD.Version())
#FreeCAD.Console.PrintMessage("Hello from PrintMe... | PypiClean |
/KratosCoSimulationApplication-9.4-cp39-cp39-win_amd64.whl/KratosMultiphysics/CoSimulationApplication/coupling_operations/coupling_output.py | import KratosMultiphysics as KM
# Importing the base class
from KratosMultiphysics.CoSimulationApplication.base_classes.co_simulation_coupling_operation import CoSimulationCouplingOperation
def Create(*args):
return CouplingOutput(*args)
class CouplingOutput(CoSimulationCouplingOperation):
"""This operation ... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/dizoo/classic_control/cartpole/config/cartpole_bco_config.py | from easydict import EasyDict
cartpole_bco_config = dict(
exp_name='cartpole_bco_seed0',
env=dict(
collector_env_num=8,
evaluator_env_num=5,
n_evaluator_episode=5,
stop_value=195,
replay_path=None,
),
policy=dict(
cuda=True,
continuous=False,
... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/gulpfile.js | var gulp = require('gulp'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
header = require('gulp-header'),
concat = require('gulp-concat'),
replace = require('gulp-replace'),
fs = require('fs'),
paths = {
componentsFile: 'components.js',
components: ['components/**/*.js', '!components... | PypiClean |
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/snippets/lsl.js | define("ace/snippets/lsl",["require","exports","module"],function(e,t,n){t.snippetText="snippet @\n @${1:label}\nsnippet CAMERA_ACTIVE\n CAMERA_ACTIVE, ${1:integer isActive},\nsnippet CAMERA_BEHINDNESS_ANGLE\n CAMERA_BEHINDNESS_ANGLE, ${1:float degrees},\nsnippet CAMERA_BEHINDNESS_LAG\n CAMERA_BEHINDNESS_LA... | PypiClean |
/DjangoRpc-0.4.tar.gz/DjangoRpc-0.4/djangorpc/static/djangorpc/js/jquery.util.js | jQuery.isObject = function(v){
return !!v && Object.prototype.toString.call(v) === '[object Object]';
};
jQuery.isNumber = function(v){
return typeof v === 'number' && isFinite(v);
};
jQuery.isEmpty = function(v, allowBlank){
return v === null || v === undefined || ((jQuery.isArray(v) && !v.length)) || (... | PypiClean |
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/hooke/plugin/multidistance.py |
from hooke.libhooke import WX_GOOD, ClickedPoint
import wxversion
wxversion.select(WX_GOOD)
from wx import PostEvent
import numpy as np
import scipy as sp
import copy
import os.path
import time
import warnings
warnings.simplefilter('ignore',np.RankWarning)
class multidistanceCommands(object):
def do_multidist... | PypiClean |
/CrossMap-0.6.6-py3-none-any.whl/cmmodule/mapregion.py | import sys
from cmmodule import ireader
from cmmodule.utils import map_coordinates
def crossmap_region_file(mapping, inbed,
outfile=None, min_ratio=0.85, cstyle='a'):
'''
Convert large genomic regions (in bed format) between assemblies.
BED format: http://genome.ucsc.edu/FAQ/FAQf... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/measureobjectneighbors.py | import matplotlib.cm
import numpy
import scipy.ndimage
import scipy.signal
import skimage.morphology
from cellprofiler_core.constants.measurement import COLTYPE_FLOAT
from cellprofiler_core.constants.measurement import COLTYPE_INTEGER
from cellprofiler_core.constants.measurement import MCA_AVAILABLE_EACH_CYCLE
from cel... | PypiClean |
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/data/load/folder.py | import os
from typing import Any
from typing import Tuple
from typing import Union
from typing import List
# Deeplodocus imports
from deeplodocus.utils.notification import Notification
from deeplodocus.utils.file import get_specific_line
from deeplodocus.utils.generic_utils import sorted_nicely
from deeplodocus.utils.... | PypiClean |
/FLAML-2.0.2-py3-none-any.whl/flaml/automl/nlp/huggingface/training_args.py | import argparse
from dataclasses import dataclass, field
from typing import Optional, List
from flaml.automl.task.task import NLG_TASKS
try:
from transformers import TrainingArguments
except ImportError:
TrainingArguments = object
@dataclass
class TrainingArgumentsForAuto(TrainingArguments):
"""FLAML cus... | PypiClean |
/GWlal-0.0.4.tar.gz/GWlal-0.0.4/lal/python/lal/lal.py |
from sys import version_info
if version_info >= (2, 6, 0):
def swig_import_helper():
from os.path import dirname
import imp
fp = None
try:
fp, pathname, description = imp.find_module('_lal', [dirname(__file__)])
except ImportError:
import _lal
... | PypiClean |
/Creppl-1.0.1.tar.gz/Creppl-1.0.1/creppl/cmd/on_command.py |
import sys
from creppl.io.fileio import FileIO
from creppl.ui.prompts import show_header
from creppl.utils.helpers import file_reset
MIN_KWARGS = 2
def on_command_del(fileio: FileIO, statement, kwargs):
line_num = fileio.get_cursor()
n_lines = 1
if kwargs[1] is None or len(kwargs) < MIN_KWARGS or len(k... | PypiClean |
/Chrysalio-1.0.tar.gz/Chrysalio-1.0/chrysalio/modules/cioldap/lib/ldap.py |
from datetime import datetime
from ldap3 import Server, Connection
from ldap3.core.exceptions import LDAPBindError, LDAPSocketOpenError
from ldap3.core.exceptions import LDAPObjectClassError
from ldap3.core.exceptions import LDAPPasswordIsMandatoryError
from ....lib.i18n import _
from ....lib.utils import decrypt
fr... | PypiClean |
/DiPAS-2.0.tar.gz/DiPAS-2.0/docs/source/usage/visualizing.rst | Visualizing lattices
--------------------
Lattices can be visualized by serializing them into an HTML file. This can be done also via `build.sequence_script`
by supplying the argument ``markup='html'``. The resulting HTML sequence file can be viewed in any modern browser and
elements can be inspected by using the brow... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/misc.py |
import ctypes
import errno
import importlib
import logging
import multiprocessing
import os
import subprocess
import sys
import types
try:
import pwd
HAVE_PWD = True
except ImportError:
HAVE_PWD = False
import cuckoo
from cuckoo.common.defines import (
WIN_PROCESS_QUERY_INFORMATION, WIN_ERR_STILL_AL... | PypiClean |
/DXC-Industrialized-AI-Starter-3.2.0.tar.gz/DXC-Industrialized-AI-Starter-3.2.0/dxc/ai/deep_learning/image_classifier.py |
# training_data =[]
# #This function separates both features & labels from training data
# def seggregate_data(training_data):
# X = []
# Y = []
# for features, lables in training_data:
# X.append(features)
# Y.append(lables)
# X = np.array(X)
# Y = np.array(Y)
# return X,Y
# ... | PypiClean |
/OPLS-MD-0.0.2.tar.gz/OPLS-MD-0.0.2/src/OPLS_MD.py | import numpy as np
try:
from MDAnalysis import Universe, AtomGroup
except ImportError as e:
Universe = None
AtomGroup = None
from .OPLS import OPLS
from .PLS import PLS
from .OPLS_PLS import OPLS_PLS
from typing import Union, Tuple
class _MD_PLS_WRAPPER():
"""
A wrapper class to wrap PLS object... | PypiClean |
/CredSLayer-0.1.3-py3-none-any.whl/credslayer/core/manager.py | import os
import signal
import time
import traceback
import pyshark
from pyshark.capture.capture import TSharkCrashException, Capture
from pyshark.packet.packet import Packet
from pyshark.tshark.tshark import TSharkNotFoundException
from credslayer.core import logger, extract, utils
from credslayer.core.session impor... | PypiClean |
/FinvoiceLib-0.1.13.tar.gz/FinvoiceLib-0.1.13/finvoicelib/elements/seller.py |
from finvoicelib.elements import BusinessIdElement
from finvoicelib.elements import Element
from finvoicelib.elements.country import CountryCode
from finvoicelib.elements.country import CountryName
class SellerOrganisationUnitNumber(Element):
"""
SellerOrganisationUnitNumber
"""
tag = 'SellerOrganis... | PypiClean |
/AlienInvasion_Raph692-0.1.0-py3-none-any.whl/scripts/scoreboard.py | import pygame.font
from pygame.sprite import Group
from ship import Ship
class ScoreBoard:
"""A class to report scoring information."""
def __init__(self, ai_settings, screen, stats):
"""Initialize score-keeping attributes."""
self.screen = screen
self.screen_rect = screen.get_rect()
... | PypiClean |
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/contenthandler/lib/oembedcontenthandler.js | define(
['aloha', 'aloha/jquery', 'aloha/contenthandlermanager'],
function(Aloha, jQuery, ContentHandlerManager) {
var
GENTICS = window.GENTICS,
escape = window.escape,
providers, getOEmbedProvider, getNormalizedParams, OEmbedProvider;
/* Private Methods */
getOEmbedProvider = function(url) {
for (var i... | PypiClean |
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/server.py | from flask import Flask, render_template, request, session
from flask_socketio import SocketIO, emit
from threading import Lock
import sys
import numpy as np
import subprocess,signal
import socket,requests
import json
import os
import time
from Firefly.data_reader import SimpleReader
#in principle, we could read ... | PypiClean |
/FPL_wildcard_team_selector-1.1.1.tar.gz/FPL_wildcard_team_selector-1.1.1/FPL_wildcard_team_selector/FPL_data_collection/data_loader_understat_url.py | import pandas as pd
import json
import requests
from bs4 import BeautifulSoup
def load_player_data_from_understat(understat_url:str, minimum_number_of_minutes_played:int):
'''
web scrapes all the relevant player information from the understat url.
Parameters:
understat_url (str): url to the under... | PypiClean |
/ImagingReso-1.8.0.tar.gz/ImagingReso-1.8.0/README.rst | ImagingReso
===========
.. image:: https://api.codacy.com/project/badge/Grade/7d9162fa8fb644019b2c336ddc61f9d3
:alt: Codacy Badge
:target: https://app.codacy.com/app/JeanBilheux/ImagingReso?utm_source=github.com&utm_medium=referral&utm_content=ornlneutronimaging/ImagingReso&utm_campaign=Badge_Grade_Dashboard
..... | PypiClean |
/ML-Navigator-0.0.32.tar.gz/ML-Navigator-0.0.32/training/optimizer.py | import logging
import os
import numpy as np
from sklearn import linear_model
from training.model_evaluator import evaluate_model
logger = logging.getLogger(__name__)
formatting = (
"%(asctime)s: %(levelname)s: File:%(filename)s Function:%(funcName)s Line:%(lineno)d "
"message:%(message)s"
)
logging.basicConf... | PypiClean |
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/issue356.py | from gooey import Gooey, GooeyParser, gui
@Gooey
def main():
parser = GooeyParser()
parser.add_argument(
"some_string",
action="store",
default="just press Start",
)
parser.add_argument(
'--filteroption', choices=['sku', 'foo', 'bar'],
help='Select the column n... | PypiClean |
/node_managment_application-0.0.1.tar.gz/node_managment_application-0.0.1/nms_app/api_services/network_api.py | import os
import urllib
import json
import requests
from rest_framework import status
from nms_app.nms_services.api_key_valdation import get_node_id
from nms_app.nms_services.common_services import run_command
from nms_project_settings.settings import IP_ADD
def gaurdian_join_network_func(request):
node_id = re... | PypiClean |
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/ops/adagrad/cpu_adagrad.py |
# DeepSpeed Team
import torch
from deepspeed.ops.op_builder import CPUAdagradBuilder
from deepspeed.utils.logging import should_log_le
class DeepSpeedCPUAdagrad(torch.optim.Optimizer):
optimizer_id = 0
def __init__(self, model_params, lr=1e-2, eps=1e-10, weight_decay=0, amsgrad=False, fp32_optimizer_states... | PypiClean |
/NEURON_gpu-8.2.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/geometry3d/GeneralizedVoxelization.py | from . import graphicsPrimitives as graphics
from .. import options
def find_voxel(x, y, z, g):
"""returns (i,j,k) of voxel containing point x,y,z if the point is within
the grid, otherwise return the corresponding grid boundary.
"""
# g is grid boundaries
i = max(0, int((x - g["xlo"]) // g["dx"])... | PypiClean |
/LPPPy-0.1.0.tar.gz/LPPPy-0.1.0/lpppy/compiler/code.py | from lpppy.compiler.symtab import Symtab
from lpppy.compiler.token import Token, TokenKeys, TokenTypes
from lpppy.compiler.error import Error, ErrorTypes
class CodeGen:
symtab: Symtab = None
tokens: list[Token] = []
index: int = 0
stdout: str = ""
level: int = 0
programName: str = ""
def ... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/main/basemodels.py | from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy import Column, Sequence, Integer
from ext import db
class BaseMixin(object):
__table_args__ = {'extend_existing': True}
id = db.Column(db.Integer,db.Sequence('user_id_seq'),primary_key=True)
@classmethod
def get_by_id(cls, id):
... | PypiClean |
/Mocha-0.12.1.tar.gz/Mocha-0.12.1/mocha/utils.py | from __future__ import division
import os
import re
import inspect
import time
import datetime
import arrow
import string
import random
import socket
import itsdangerous
import humanize
import pkg_resources
import urllib
import hashlib
import json
import uuid
from six import string_types
from slugify import slugify
fro... | PypiClean |
/MaybeDont-0.1.1.tar.gz/MaybeDont-0.1.1/maybedont/predict.py | from __future__ import absolute_import, division
import logging, random, math
from collections import namedtuple, defaultdict
from six.moves.urllib.parse import urlsplit, parse_qs
from datasketch import MinHashLSH
from .utils import get_too_common_shingles, get_min_hash, canonicalize_url
logger = logging.getLogger(... | PypiClean |
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/ElementTable.py | REcolor = (128, 128, 255)
Metcolor = (192, 192, 192)
Noblecolor = (255, 128, 255)
Alkcolor = (255, 255, 128)
AlkEcolor = (255, 128, 0)
SemMetcolor = (128, 255, 0)
NonMetcolor = (0, 255, 255)
White = (255, 255, 255)
ElTable = [
(["H","H-1","D","D-1","T","T-1"],0,0, "Hydrogen", White, 0.0000,... | PypiClean |
/htpolynet-1.0.7.3.tar.gz/htpolynet-1.0.7.3/docs/source/example-tutorials/shortbuilds/1-polymethylstyrene/monomer.rst | .. _tutorial_pms_monomer:
Monomer: 4-methylstyrene
------------------------
.. _fig_pmsty_polym:
.. figure:: pics/pmsty_sys.png
Polymerization of methyl styrene.
`4-methylstyrene <https://pubchem.ncbi.nlm.nih.gov/compound/4-Methylstyrene>`_ is a common monomer in the manufacture of polyesters. Its most impor... | PypiClean |
/ChemSpiPy-2.0.0.tar.gz/ChemSpiPy-2.0.0/docs/guide/compound.rst | .. _compound:
Compound
========
Many ChemSpiPy search methods return :class:`~chemspipy.objects.Compound` objects, which provide more functionality that
a simple list of ChemSpider IDs. The primary benefit is allowing easy access to further compound properties after
performing a search.
Creating a Compound
---------... | PypiClean |
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/CADETProcess/equilibria/ptc.py | __author__ = "Samuel Leweke"
__contact__ = "leweke@math.uni-koeln.de"
__copyright__ = "Copyright 2020, University of Cologne"
import numpy as np
import scipy.linalg
import math
def scaled_norm2(x, scale):
return math.sqrt(np.sum(np.square(x / scale)) / len(x))
def norm2(x):
return math.sqrt(np.sum(np.squa... | PypiClean |
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/server/webapp/static/thirdparty/fuelux/datagrid.js | define(['require','jquery'],function (require) {
var $ = require('jquery');
var old = $.fn.datagrid;
// Relates to thead .sorted styles in datagrid.less
var SORTED_HEADER_OFFSET = 22;
// DATAGRID CONSTRUCTOR AND PROTOTYPE
var Datagrid = function (element, options) {
this.$element = $(element);
this.$th... | PypiClean |
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/wsgi_channel.py | import time
import threading
import amfast
from amfast import AmFastError
from amfast.remoting.channel import ChannelSet, HttpChannel, ChannelError
import amfast.remoting.flex_messages as messaging
class WsgiChannelSet(ChannelSet):
def __call__(self, environ, start_response):
channel_name = environ['PATH_... | PypiClean |
/DLPipeline-0.1.20190311201423-py3-none-any.whl/dlpipeline/classifier/tf_imp/evaluation.py | import tensorflow as tf
import tensorflow_hub as hub
from dlpipeline.classifier.tf_imp.classification_net import classification_net
# A module is understood as instrumented for quantization with TF-Lite
# if it contains any of these ops.
FAKE_QUANT_OPS = ('FakeQuantWithMinMaxVars',
'FakeQuantWithMin... | PypiClean |
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/application.py |
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# bu... | PypiClean |
/NREL-rex-0.2.84.tar.gz/NREL-rex-0.2.84/rex/resource_extraction/nsrdb_cli.py | import click
import logging
import os
from rex.resource_extraction.resource_extraction import (NSRDBX, SolarX,
MultiFileNSRDBX)
from rex.resource_extraction.resource_cli import box as box_cmd
from rex.resource_extraction.resource_cli import dataset as dataset_gr... | PypiClean |
/NXTensor-0.3.4.0.tar.gz/NXTensor-0.3.4.0/nxtensor/utils/time_utils.py | import datetime
import logging
from typing import Dict, Sequence, Union, Mapping, Iterable, List
import nxtensor.utils.naming_utils
from nxtensor.core.types import Period
from nxtensor.utils.time_resolutions import TimeResolution
# Sort the period ascending order.
def sort_periods(periods: Iterable[Period]) -> Seque... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/util/event.py |
from builtins import object
#
# DO NOT EDIT THIS FILE.
# THIS CODE IS TAKE FROM Exscript.util:
# https://github.com/knipknap/exscript/tree/master/src/Exscript/util
#
# Copyright (C) 2007-2010 Samuel Abels.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU Gener... | PypiClean |
/Drowsy-0.1.6-py3-none-any.whl/drowsy/utils.py |
def get_error_message(error_messages, key, gettext=None, **kwargs):
"""Get an error message based on a key name.
If the error message is a callable, kwargs are passed
to that callable.
Assuming the resulting error message is a string,
``self.gettext`` will be passed that string along with any
... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/address_lookup_py3.py |
from msrest.serialization import Model
class AddressLookup(Model):
"""AddressLookup.
:param address_type_id:
:type address_type_id: int
:param line1:
:type line1: str
:param line2:
:type line2: str
:param line3:
:type line3: str
:param city:
:type city: str
:param sta... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/impact/bias_and_change.py | import logging
from datetime import datetime
from pathlib import Path
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns
import xarray as xr
from esmvaltool.diag_scripts.shared import (
ProvenanceLogger,
get_diagnostic_filename,
get_plot_filename,
group_metada... | PypiClean |
/EthTx-0.3.22.tar.gz/EthTx-0.3.22/ethtx/decoders/decoders/errors.py | from ethtx.models.semantics_model import ParameterSemantics
ERRORS = {
"0x08c379a0": {
"name": "Error",
"abi": [
ParameterSemantics(
parameter_name="Error",
parameter_type="string",
components=[],
indexed=False,
... | PypiClean |
/OASYS1-SRW-1.1.106.tar.gz/OASYS1-SRW-1.1.106/orangecontrib/srw/widgets/optical_elements/ow_srw_filter.py | from PyQt5.QtWidgets import QMessageBox
from orangewidget import gui
from orangewidget.settings import Setting
from oasys.widgets import gui as oasysgui
from oasys.widgets import congruence
from oasys.util.oasys_util import TriggerOut
from oasys.util.oasys_objects import OasysThicknessErrorsData
from syned.beamline.o... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/ebmlib/fileimpl.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: fileimpl.py 70309 2012-01-10 00:09:26Z CJP $"
__revision__ = "$Revision: 70309 $"
#--------------------------------------------------------------------------#
# Imports
import os
import sys
# Editra Business Model Imports
import txtutil
import fileut... | PypiClean |
/kiramibot-0.2.0.tar.gz/kiramibot-0.2.0/kirami/matcher.py |
import asyncio
import re
import time
from datetime import datetime, timedelta
from typing import TYPE_CHECKING, Any, Literal, NoReturn, TypeVar
from nonebot import get_bots
from nonebot.adapters import Bot, Event
from nonebot.dependencies import Dependent
from nonebot.matcher import Matcher as BaseMatcher
from nonebo... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/mathjax/extensions/MathEvents.js | (function(d,h,l,g,b,j){var p="2.0.1";var i=MathJax.Extension;var c=i.MathEvents={version:p};var k=d.config.menuSettings;var o={hover:500,frame:{x:3.5,y:5,bwidth:1,bcolor:"#A6D",hwidth:"15px",hcolor:"#83A"},button:{x:-4,y:-3,wx:-2,src:l.fileURL(b.imageDir+"/MenuArrow-15.png")},fadeinInc:0.2,fadeoutInc:0.05,fadeDelay:50,... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/distributions/gp/kernels/kernel.py |
from copy import copy
from .....common.exceptions import ModelSpecificationError
from .....util.util import rename_duplicate_names, slice_axis
from ....variables import Variable
from ....functions.mxfusion_function import MXFusionFunction
# TODO: write the design doc for kernels
class Kernel(MXFusionFunction):
... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/ssd/ssd512_coco.py | _base_ = 'ssd300_coco.py'
input_size = 512
model = dict(
neck=dict(
out_channels=(512, 1024, 512, 256, 256, 256, 256),
level_strides=(2, 2, 2, 2, 1),
level_paddings=(1, 1, 1, 1, 1),
last_kernel_size=4),
bbox_head=dict(
in_channels=(512, 1024, 512, 256, 256, 256, 256),
... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_data_export_categories/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 |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/handlers/raw_update_handler.py |
from typing import Callable
from .handler import Handler
class RawUpdateHandler(Handler):
"""The Raw Update handler class. Used to handle raw updates. It is intended to be used with
:meth:`~pyrogram.Client.add_handler`
For a nicer way to register this handler, have a look at the
:meth:`~pyrogram.Cl... | PypiClean |
/Mopidy-MusicBox-Webclient-3.1.0.tar.gz/Mopidy-MusicBox-Webclient-3.1.0/karma.conf.js |
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: ['browserify', 'mocha'],
... | PypiClean |
/Japanera-2.0.0.tar.gz/Japanera-2.0.0/japanera/era_data.py | import datetime
import enum
class EraType(enum.Enum):
GENERAL = 'general'
DAIKAKUJI = 'daikakuji'
JIMYOUIN = 'jimyouin'
COMMON = 'common'
_ERA_DATA_COMMON = [
("西暦", "Seireki", datetime.date(1, 1, 1), None, EraType.COMMON),
]
_ERA_DATA_GENERAL = [
("大化", "Taika", datetime.date(645, 7, 20), ... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/admin/templatetags/log.py | from django import template
from django.contrib.admin.models import LogEntry
register = template.Library()
class AdminLogNode(template.Node):
def __init__(self, limit, varname, user):
self.limit, self.varname, self.user = limit, varname, user
def __repr__(self):
return "<GetAdminLog Node>"
... | PypiClean |
/AList-2.0.0-py3-none-any.whl/alist/pages/manga.py | from tkinter import ttk, RIGHT, BOTH, LEFT
from alist.pages.right_page import RightPage
from alist.utils import utils
class Manga(RightPage):
def __init__(self, main, mal_id):
super(Manga, self).__init__(main)
self.mal_id = mal_id
self.manga = self.main.mal.manga(mal_id)
title = ... | PypiClean |
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/views/mlist.py |
import datetime
import json
import zlib
from django.conf import settings
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.db import IntegrityError, transaction
from django.http import (
Http404, HttpResp... | PypiClean |
/MiWork-2021.2.20.20.8.11-py3-none-any.whl/miwork/dt_callback.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from typing import List
import attr
from miwork.dt_code import SimpleUser
from miwork.dt_help import to_json_decorator
@to_json_decorator
@attr.s
class EventMessageMergeForward(object):
root_id = attr.ib(type=str, default=None)... | PypiClean |
/Astropysics-1.0.tar.gz/Astropysics-1.0/astropysics/phot.py | #TODO: c-based kcorrect
#TODO: reduction framework that outputs objcat catalogs and properly uses CCD noise models
#TODO: atmospheric extinction corrections
#TODO: flux calibration
from __future__ import division,with_statement
from math import pi
import numpy as np
from .spec import HasSpecUnits as _HasSpecUnits
fro... | PypiClean |
/ClueBin-0.2.3.tar.gz/ClueBin-0.2.3/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c8"
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': '5657759... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/docs/source/tutorial/mbrot.rst | ########################
Mandelbrot using BigJob
########################
In this example, we split up the calculation of a `Mandelbrot set <http://en.wikipedia.org/wiki/Mandelbrot_set>`_ into several `tiles`.
Rather than submit a single job for each tile, we want to submit one BigJob and then execute each individual... | PypiClean |
/CASCADe-spectroscopy-1.1.14.tar.gz/CASCADe-spectroscopy-1.1.14/scripts/run_cascade.sh |
#
# script to run run_cascade for all observations (if defined in the init directory)
# logs are created for each step. Using env var. CASCADE_LOG for this.
#
# can be run offline, e.g. on a server machine
# screen -L ./run_all
# then with Ctrl-A D you detatch the screen and log off.
# -L creates an overall log sc... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/a11y/explorer.js | !function(o){var r={};function i(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}i.m=o,i.c=r,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d... | PypiClean |
/CodraFT-2.2.1-py3-none-any.whl/codraft/widgets/instconfviewer.py | import locale
import os
import platform
import sys
from subprocess import PIPE, Popen
from guidata.configtools import get_icon, get_module_data_path
from guidata.widgets.codeeditor import CodeEditor
from qtpy import QtWidgets as QW
from codraft import __version__
from codraft.config import _
from codraft.utils import... | PypiClean |
/ApiLogicServer-9.2.18-py3-none-any.whl/api_logic_server_cli/create_from_model/safrs-react-admin-npm-build/static/js/9357.e2f466b8.chunk.js | "use strict";(self.webpackChunkreact_admin_upgrade=self.webpackChunkreact_admin_upgrade||[]).push([[9357],{9357:function(e,t,n){n.r(t),n.d(t,{conf:function(){return o},language:function(){return r}});var o={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{... | PypiClean |
/DPark-0.5.0.tar.gz/DPark-0.5.0/dpark/utils/memory.py | import os
import sys
import time
import psutil
import resource
import threading
from dpark.utils.log import get_logger
logger = get_logger(__name__)
ERROR_TASK_OOM = 3
class MemoryChecker(object):
""" value in MBytes
only used in mesos task
start early
"""
def __init__(self):
se... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/db/backends/mysql/operations.py | from djmodels.contrib.gis.db.backends.base.adapter import WKTAdapter
from djmodels.contrib.gis.db.backends.base.operations import (
BaseSpatialOperations,
)
from djmodels.contrib.gis.db.backends.utils import SpatialOperator
from djmodels.contrib.gis.db.models import aggregates
from djmodels.contrib.gis.geos.geometr... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/lang/bn.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['bn']={"editor":"Rich Text Editor","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"ব্রাউজ সার্ভার","url":"UR... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/Result.py |
#a class used to return the value if any, a message and the status of a method (true if everything is ok or false if something went wrong)
class Result:
def __init__(self):
'''
Class constructor.
- message default value is -
- status default value is True
- result defaul... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/evolution/divergence_time_estimation_all_clock.py | __author__ = 'Sergei F. Kliver'
import argparse
from RouToolPa.Tools.Evolution import MCMCTree
parser = argparse.ArgumentParser()
parser.add_argument("-s", "--input", action="store", dest="input", required=True,
help="Input file alignment")
parser.add_argument("-t", "--tree_file", action="store", ... | PypiClean |
/Adytum-PyMonitor-1.0.5.tar.bz2/Adytum-PyMonitor-1.0.5/ez_setup.py | import sys
DEFAULT_VERSION = "0.6a8"
DEFAULT_URL = "http://cheeseshop.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.5a13-py2.3.egg': '85edcf0ef39bab66e130d3f38f578c86',
'setuptools-0.5a13-py2.4.egg': 'ede4be600e3890e06d4ee5e0148e092a',
'setuptools-0.6a1-py2.3.egg': ... | PypiClean |
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_elementsources.py |
import os
from contextlib import contextmanager
from typing import TYPE_CHECKING, Iterator
from . import _cachekey
from ._exceptions import SkipJob
from ._context import Context
from ._protos.buildstream.v2 import source_pb2
from .plugin import Plugin
from .storage._casbaseddirectory import CasBasedDirectory
if TYP... | PypiClean |
/ImageConverter-1.0.7.tar.gz/ImageConverter-1.0.7/README.md | The python package is focused on converting the .jpg or .jpeg file formats to .png file formats.
## Install
## Usage
The package focus on usage for conversion of image formats like .jpeg or .jpg to .png file formats.
## Modules
### There is 1 module named converter
#### functions currently present in module:conve... | PypiClean |
/CLAM-3.2.6.tar.gz/CLAM-3.2.6/clam/clamdispatcher.py |
###############################################################
# CLAM: Computational Linguistics Application Mediator
# -- CLAM Dispatcher --
# by Maarten van Gompel (proycon)
#
# Licensed under GPLv3
###############################################################
import sys
import os
import datetime
im... | PypiClean |
/Beeswarm-0.7.18.tar.gz/Beeswarm-0.7.18/beeswarm/drones/client/baits/pop3s.py |
# 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
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along... | PypiClean |
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/zlib_codec.py | import codecs
import zlib # this codec needs the optional zlib module !
### Codec APIs
def zlib_encode(input,errors='strict'):
""" Encodes the object input and returns a tuple (output
object, length consumed).
errors defines the error handling to apply. It defaults to
'strict' handling w... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/scipy_controller.py | from scipy.optimize import minimize
from fitbenchmarking.controllers.base_controller import Controller
class ScipyController(Controller):
"""
Controller for the Scipy fitting software.
"""
algorithm_check = {
'all': ['Nelder-Mead',
'Powell',
'CG',
... | PypiClean |
/MozPhab-1.4.3-py3-none-any.whl/mozphab/commands/reorganise.py |
import argparse
import sys
from collections import OrderedDict
from typing import (
Container,
Dict,
List,
Optional,
)
from mozphab.conduit import conduit
from mozphab.exceptions import Error
from mozphab.logger import logger
from mozphab.helpers import augment_commits_from_body, prompt
from mozphab.... | PypiClean |
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/collision_filtering.py |
from .framework import (Framework, main)
from Box2D import (b2CircleShape, b2EdgeShape, b2Filter, b2FixtureDef,
b2PolygonShape, b2Vec2)
class CollisionFiltering (Framework):
name = "Collision Filtering"
description = "See which shapes collide with each other."
# This is a test of colli... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/reputationmodel/reputation.py | from office365.runtime.client_result import ClientResult
from office365.runtime.queries.service_operation import ServiceOperationQuery
from office365.sharepoint.base_entity import BaseEntity
class Reputation(BaseEntity):
"""The Reputation static type includes methods to set the reputation properties on a list ite... | PypiClean |
/AnalysisProjectDependencies-0.1.tar.gz/AnalysisProjectDependencies-0.1/bower_components/cytoscape/README.md | # Cytoscape.js
[](https://raw.githubusercontent.com/cytoscape/cytoscape.js/master/LICENSE)
[](https://www.npmjs.com/package/cytoscape)
[:
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/AutomatiseCA-0.1.5.tar.gz/AutomatiseCA-0.1.5/README.md | # AutomatiseCA Documentation
Domenico De Cristofaro
## About
AutomatizeCA is an automated transcription program for linguists and conversation analyst experts.
It is designed to be used for generating Conversation Analysis transcripts that can be improved manually.
## Overview
AutomatizeCA takes in a recorded spe... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Warnings.py | import sys
import SCons.Errors
class SConsWarning(SCons.Errors.UserError):
pass
class WarningOnByDefault(SConsWarning):
pass
# NOTE: If you add a new warning class, add it to the man page, too!
# Not all warnings are defined here, some are defined in the location of use
class TargetNotBuiltWarning(SConsW... | PypiClean |
/Flask_MALL-0.1.0-py3-none-any.whl/xp_mall/settings.py |
import os
import sys
basedir = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
# SQLite URI compatible
WIN = sys.platform.startswith('win')
if WIN:
prefix = 'sqlite:///'
else:
prefix = 'sqlite:////'
class Operations:
CONFIRM = 'confirm'
RESET_PASSWORD = 'reset-password'
CHANGE_EMAIL ... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/controller/controllers/RotationScanController.py | import json
import os
import matplotlib.pyplot as plt
import numpy as np
import scipy.interpolate as interp
from imswitch.imcommon.model import dirtools, initLogger
from ..basecontrollers import ImConWidgetController
class RotationScanController(ImConWidgetController):
""" Linked to RotationScanWidget. Requires... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/lang/cs.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['cs']={"editor":"Textový editor","editorPanel":"Panel textového editoru","common":{"editorHelp":"Stiskněte ALT 0 pro nápovědu","browseServer":"Vybrat na serveru"... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.