id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/JaqalPaq-1.2.0a1.tar.gz/JaqalPaq-1.2.0a1/src/jaqalpaq/core/locus.py | from .block import LoopStatement
from .branch import BranchStatement, CaseStatement
from .circuit import Circuit
class Locus:
"""A lightweight class capturing a spot inside of a circuit.
:param obj: What object in the circuit is being referred to.
:param Locus parent: The owner of the object referred to.
... | PypiClean |
/MO_project-0.0.1.tar.gz/MO_project-0.0.1/README.md | # Project Name
This project is a part of the [Data Science Working Group](http://datascience.codeforsanfrancisco.org) at [Code for San Francisco](http://www.codeforsanfrancisco.org). Other DSWG projects can be found at the [main GitHub repo](https://github.com/sfbrigade/data-science-wg).
#### -- Project Status: [Acti... | PypiClean |
/Kaylee-0.3.tar.gz/Kaylee-0.3/kaylee/project.py | from abc import ABCMeta, abstractmethod
#: Defines auto project mode (see :attr:`Project.mode`)
AUTO_PROJECT_MODE = 0x2
#: Defines manual project mode (see :attr:`Project.mode`)
MANUAL_PROJECT_MODE = 0x4
#: Defines the unknown amount of tasks to be solved by a Kaylee
#: application.
UNKNOWN_AMOUNT = 0x1
KL_PROJECT... | PypiClean |
/NumberTypes-0.1.tar.gz/NumberTypes-0.1/src/numbertypes.py | def even(number):
'''return True if number is even else false'''
if number % 2 == 0:
return (True)
else:
return (False)
def odd(number):
'''return True if number is Odd else false'''
if number % 2 == 1:
return (True)
else:
return (False)
def composite(x):
... | PypiClean |
/DeepSpectrumLite-1.0.2.tar.gz/DeepSpectrumLite-1.0.2/src/deepspectrumlite/lib/model/modules/attention_module.py | import tensorflow as tf
from tensorflow import keras
# code taken from https://github.com/kobiso/CBAM-tensorflow
# Author: Byung Soo Ko
def se_block(residual, name, ratio=8):
"""Contains the implementation of Squeeze-and-Excitation(SE) block.
As described in https://arxiv.org/abs/1709.01507.
"""
... | PypiClean |
/CryptoParser-0.10.0.tar.gz/CryptoParser-0.10.0/cryptoparser/ssh/record.py |
import abc
import attr
from cryptoparser.common.parse import ParsableBase, ParserBinary, ComposerBinary
from cryptoparser.common.exception import NotEnoughData
from cryptoparser.ssh.subprotocol import (
SshMessageBase,
SshMessageVariantInit,
SshMessageVariantKexDH,
SshMessageVariantKexDHGroup,
)
@... | PypiClean |
/NBTParse-0.7.1.tar.gz/NBTParse-0.7.1/nbtparse/minecraft/terrain/chunk.py | from collections import abc as cabc
import functools
import logging
from ...syntax import tags
from ...syntax import ids
from ...semantics import fields
from ...semantics import nbtobject
from .. import entity
from .. import entity_ids
from .. import entityfactory
from . import tile
from . import voxel
logger = logg... | PypiClean |
/EQcorrscan-0.4.4.tar.gz/EQcorrscan-0.4.4/eqcorrscan/doc/build/html/_static/js/jquery-1.12.4.min.js | !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/experiment/templatetags/experiments.py | from django import template
from django.db.models import Count
from helmholtz.core.schema import get_subclasses_recursively
from helmholtz.species.models import Species
from helmholtz.preparations.models import Preparation, Animal
from helmholtz.experiment.models import Experiment
from helmholtz.recording.models impo... | PypiClean |
/Mopidy-Touchscreen-1.0.0.tar.gz/Mopidy-Touchscreen-1.0.0/mopidy_touchscreen/screen_manager.py | import logging
import traceback
from graphic_utils import DynamicBackground, \
ScreenObjectsManager, TouchAndTextItem
from input import InputManager
from pkg_resources import Requirement, resource_filename
import pygame
from screens import BaseScreen, Keyboard, LibraryScreen, MainScreen, MenuScreen,\
Playli... | PypiClean |
/AoikRegistryEditor-0.1.0-py3-none-any.whl/aoikregistryeditor/mediator.py | from __future__ import absolute_import
from argparse import ArgumentParser
import sys
from tkinter import Tk
from traceback import format_exc
from .aoikimportutil import load_obj
from .registry_editor import RegistryEditor
from .tkinterutil.label import LabelVidget
#
def get_cmdargs_parser():
"""
Create com... | PypiClean |
/ACME%20oneM2M%20CSE-0.3.0.tar.gz/ACME oneM2M CSE-0.3.0/acme/Importer.py |
import json, os, fnmatch
from Utils import *
from Configuration import Configuration
from Constants import Constants as C
import CSE
from Logging import Logging
from resources import Resource
class Importer(object):
# List of "priority" resources that must be imported first for correct CSE operation
_firstImporte... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/IconItem.js.uncompressed.js | define("dojox/mobile/IconItem", [
"dojo/_base/kernel",
"dojo/_base/array",
"dojo/_base/declare",
"dojo/_base/lang",
"dojo/_base/sniff",
"dojo/_base/window",
"dojo/dom-attr",
"dojo/dom-class",
"dojo/dom-construct",
"dojo/dom-style",
"dijit/registry", // registry.byId
"./common",
"./_ItemBase",
"./Transitio... | PypiClean |
/LT3OpenCorpora-0.2.1-py3-none-any.whl/LT3OpenCorpora-0.2.1.data/scripts/lt_convert.py | import argparse
import logging
import sys
import shutil
import os.path
import requests
from tempfile import NamedTemporaryFile
from collections import Counter
from lt3opencorpora.convert import Dictionary, doubleform_signal
sys.path.insert(0, ".")
REPEATED_FORMS = Counter()
def log_double_form(sender, tags_signatur... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/ta.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/ta', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(... | PypiClean |
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/text.py | import logging
import math
import weakref
import numpy as np
import matplotlib as mpl
from . import _api, artist, cbook, docstring
from .artist import Artist
from .font_manager import FontProperties
from .patches import FancyArrowPatch, FancyBboxPatch, Rectangle
from .textpath import TextPath # Unused, but imported ... | PypiClean |
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/src/js/vendor/free/bs-custom-file-input.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.bsCustomFileInput = factory());
}(this, function () {
'use strict';
var Selector = {
... | PypiClean |
/LinkPython-0.1.1.tar.gz/LinkPython-0.1.1/modules/pybind11/docs/advanced/pycpp/object.rst | Python types
############
.. _wrappers:
Available wrappers
==================
All major Python types are available as thin C++ wrapper classes. These
can also be used as function parameters -- see :ref:`python_objects_as_args`.
Available types include :class:`handle`, :class:`object`, :class:`bool_`,
:class:`int_`,... | PypiClean |
/4quila-0.36.200302-py3-none-any.whl/_4server/web.py | import json
import os
import inspect
from tornado.ioloop import IOLoop
from tornado.web import RequestHandler, Application
from tornado.websocket import WebSocketHandler
from _4helper import _4ssert
class WebServer:
@classmethod
def parse_ip_port(cls, ip_port):
if isinstance(ip_port, int) or ":" not i... | PypiClean |
/Mynus-0.1.0.tar.gz/Mynus-0.1.0/README.md | Mynus, the minimalist wiki
==========================
The pupose of Mynus is to demonstrate the philosophy of "batteries included".
Thus, Mynus will never depends on anything else than the Python's standard
library.
Features
========
* Provides a tiny wiki engine to launch everywhere.
* No others dependencies th... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/operator/_kinetic.py | from typing import Optional, Callable, Union, List
from functools import partial
import numpy as np
import jax
import jax.numpy as jnp
from netket.utils.types import DType, PyTree, Array
import netket.jax as nkjax
from netket.hilbert import AbstractHilbert
from netket.operator import ContinuousOperator
from netket.u... | PypiClean |
/EvidentialToolBus-1.0.1.tar.gz/EvidentialToolBus-1.0.1/etb/terms.py | from __future__ import unicode_literals
import sys
import re
import weakref
import collections
import itertools
import json
import parser
# ----------------------------------------------------------------------
# terms
# ----------------------------------------------------------------------
def id_match(id):
"""... | PypiClean |
/Codons-0.0.10.tar.gz/Codons-0.0.10/README.rst | Translating, Transcribing, and Investigating Genetic Sequences and their corresponding Proteins
--------------------------------------------------------------------------------------------------------
|PyPI version| |Actions Status| |Downloads| |License|
.. |PyPI version| image:: https://img.shields.io/pypi/v/codons... | PypiClean |
/BuildSimHubAPI-2.0.0-py3-none-any.whl/buildsimlearn/svm.py | import BuildSimHubAPI as bsh_api
import pandas as pd
import numpy as np
from sklearn import metrics
from sklearn.model_selection import train_test_split
from sklearn.svm import SVR
import matplotlib.pyplot as plt
from sklearn.metrics import mean_squared_error
from sklearn.model_selection import learning_curve
"""
User... | PypiClean |
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/util/parse.py | from warnings import warn
from difflib import SequenceMatcher
# lingua_franca is optional, both lingua_franca and lingua_nostra are supported
# if both are installed preference is given to LN
# "setters" will be set in both lbs
# LN should be functionality equivalent to LF
from mycroft.util.time import now_local
from... | PypiClean |
/4ch-1.0.0.tar.gz/4ch-1.0.0/README.rst | fourch
======
.. _docs: https://4ch.readthedocs.org
.. _repo: https://github.com/plausibility/4ch
fourch (stylized as 4ch) is a wrapper to the 4chan JSON API, provided by moot. It allows you to interact with 4chan (in a READONLY way) easily through your scripts.
Originally <strike>stolen</strike> forked from `e000/p... | PypiClean |
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/runtime/auth/providers/acs_token_provider.py | import requests
import office365.logger
from office365.runtime.auth.authentication_provider import AuthenticationProvider
from office365.runtime.auth.token_response import TokenResponse
from office365.runtime.compat import urlparse
class ACSTokenProvider(AuthenticationProvider, office365.logger.LoggerContext):
... | PypiClean |
/ExpectoCastellum-0.5.tar.gz/ExpectoCastellum-0.5/expectocastellum/engine.py | import rooms
import thesaurus
import errors
import things
import people
import add_words
import json
import os
import dictionary
class Engine(object):
def __init__(self, name):
self.name = name
rooms.make_rooms_from_json(self.name)
things.make_things_from_json(self.name)
people.make_people_from_json(self.nam... | PypiClean |
/AstroAugmentations-0.1.0.tar.gz/AstroAugmentations-0.1.0/README.md | # AstroAugmentations
Custom image augmentations specifically designed around astronomical
instruments and data. Please open an
[issue](https://github.com/mb010/AstroAugmentations/issues) to highlight missing augmentations and / or datasets. This is an open source project, so feel free to fork, make changes and submit a... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/fo.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("a11yhelp","fo",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"Gene... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/FUTURE.rst | *One can always dream...*
.. contents::
The following 2023 road map that appears the 6.0.0 hasn't gone through enough discussion. This provisional.
Check the github repository for updates.
2023 Roadmap
============
When the release settles, "Forms, Boxing, And "Formatting" is the next
large refactor slated. Havi... | PypiClean |
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/meta/bytecodetools/instruction.py | from __future__ import print_function
import opcode
import sys
py3 = sys.version_info.major >= 3
co_ord = (lambda c:c) if py3 else ord
class Instruction(object):
'''
A Python byte-code instruction.
'''
def __init__(self, i= -1, op=None, lineno=None):
self.i = i
self.op = op
... | PypiClean |
/Flask-Philo-3.7.1.tar.gz/Flask-Philo-3.7.1/flask_philo/admin.py | import os
import argparse
from jinja2 import Template
BASE_DIR = os.path.dirname(os.path.realpath(__file__))
def create_from_template(**data):
template_folder = os.path.join(BASE_DIR, 'templates')
project_name = data['project_name']
path = data['path']
filename = data['filename']
resource_path = ... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/forms.py | from django import forms
import uuid
from django.core import validators
from django.core.exceptions import ValidationError
# Provide this import for backwards compatibility.
from django.core.validators import EMPTY_VALUES # NOQA
from django.forms.boundfield import BoundField
from django.forms.forms import Declarative... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/sv-SE.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/sv-SE', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
facto... | PypiClean |
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/simulator/algorithm.py | from aqopa.model import AlgWhile, TupleExpression, AlgCallFunction, AlgReturn, AlgIf, AlgAssignment
from aqopa.simulator.error import RuntimeException
class AlgorithmResolver():
def __init__(self):
self.algorithms = {}
def add_algorithm(self, name, algorithm):
self.algorithms[name] = algorit... | PypiClean |
/LDtoolsets-0.0.14.tar.gz/LDtoolsets-0.0.14/nbs/01_Sumstat.ipynb | ```
# default_exp sumstat
```
# Sumstat module
> read and extract Sumstat
```
#hide
from nbdev.showdoc import *
#export
import yaml
import numpy as np
import pandas as pd
from scipy.stats import norm
from LDtools.utils import *
#export
def p2z(pval,beta,twoside=True):
if twoside:
pval = pval/2
z=np... | PypiClean |
/NAStools-0.2.1.tar.gz/NAStools-0.2.1/src/nastools/ict.py |
import datetime
# Functions for working with ICARTT files
# TODO: create similar to parse NAS header; there are a few subtle differences between the NAS and ICT, so a seperate nas function is best
# Operates on a Naspy.header object
def parse_header(self):
"""Parses an ICT header and returns a naspy.header objec... | PypiClean |
/ExtensysPlots-1.0.1.tar.gz/ExtensysPlots-1.0.1/README.md | # Extensys Plots
[](https://doi.org/10.5281/zenodo.4572436)
Matplotlib extensys style for making figures
This repo has Matplotlib Extensys style to format your figure for scientific publications and presentation.
## Getting Started
The easist way to inst... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/components/accordion.md | ---
layout: docs
title: Accordion
description: Build vertically collapsing accordions in combination with our Collapse JavaScript plugin.
group: components
aliases:
- "/components/"
- "/docs/5.0/components/"
toc: true
---
## How it works
The accordion uses [collapse]({{< docsref "/components/collapse" >}}) intern... | PypiClean |
/Epubzilla-0.1.1.tar.gz/Epubzilla-0.1.1/epubzilla/epubzilla.py | from lxml import etree
import os.path
import zipfile
PATH_TO_CONTAINER_XML = "META-INF/container.xml"
XML_NAMESPACES = {
'n':'urn:oasis:names:tc:opendocument:xmlns:container',
'opf':'http://www.idpf.org/2007/opf',
'dc':'http://purl.org/dc/elements/1.1/'}
class Epub(object):
def __init__(self):... | PypiClean |
/Delorean-1.0.0.tar.gz/Delorean-1.0.0/docs/quickstart.rst | Usage
=====
`Delorean` aims to provide you with convient ways to get significant dates and times and easy ways to move dates from state to state.
In order to get the most of the documentation we will define some terminology.
1. **naive datetime** -- a datetime object without a timezone.
2. **localized datetime** -- a... | PypiClean |
/DOMinclude-1.0.1.zip/DOMinclude-1.0.1/dominclude/widgets.py | import pkg_resources
from turbogears import expose
from turbogears.widgets import CSSLink, JSLink, Widget, WidgetDescription, \
register_static_directory, JSSource
static_dir = pkg_resources.resource_filename("dominclude",
"static")
register_sta... | PypiClean |
/CloseableQueue-0.9.1.1.tar.gz/CloseableQueue-0.9.1.1/test/__init__.py | from CloseableQueue import CloseableQueue, Closed
from CloseableQueue import CloseableLifoQueue, CloseablePriorityQueue
from test_queue import BlockingTestMixin, BaseQueueTest
from test_queue import FailingQueue, FailingQueueTest
import unittest
# Because the method queue_test.BaseQueueTest.simple_queue_test
# uses ... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/util.py | import logging
import os
import inspect
import datetime
from contextlib import contextmanager
import pkg_resources
from enum import Enum as _Enum
from functools import wraps, partial
from operator import attrgetter
from itertools import chain, count, repeat
from collections import OrderedDict, namedtuple
import warni... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/athlet1.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 athlet1(path):
"""athlet1
Data loads lazily. Type data(athlet1) into the console.
A dat... | PypiClean |
/Mopidy-Jellyfin-1.0.4.tar.gz/Mopidy-Jellyfin-1.0.4/mopidy_jellyfin/playlists.py | from __future__ import unicode_literals
import logging
import operator
from mopidy import backend
from mopidy.models import Playlist, Ref
logger = logging.getLogger(__name__)
class JellyfinPlaylistsProvider(backend.PlaylistsProvider):
def __init__(self, *args, **kwargs):
super(JellyfinPlaylistsProvide... | PypiClean |
/Figures-0.4.4-py3-none-any.whl/figures/management/commands/repair_figures_backfilled_progress.py | from __future__ import absolute_import, print_function
from datetime import timedelta
from textwrap import dedent
from django.contrib.sites.models import Site
from django.db.models import Count, F
from figures.management.base import BaseBackfillCommand
from figures.models import CourseDailyMetrics
class Command(Ba... | PypiClean |
/MNN-0.0.7-cp27-cp27mu-manylinux2010_x86_64.whl/MNNTools/MNN_FB/Convolution2D.py |
# namespace: MNN
import flatbuffers
class Convolution2D(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsConvolution2D(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = Convolution2D()
x.Init(buf, n + offset)
return x
#... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/ui/v1/src/plugins/movies/components/movie-list/movie-list.component.spec.js | describe('Plugin: Movie-list.Component', function () {
var component, deferred;
var movieList = mockMovieListData.getMovieListById();
var movies = mockMovieListData.getMovieListMovies();
var movie = mockMovieListData.getMovieListMovieById();
beforeEach(function () {
bard.appModule('plugins.... | PypiClean |
/Chiplotle3-0.4.3-py3-none-any.whl/chiplotle3/geometry/shapes/spiral_archimedean.py | from builtins import range
from chiplotle3.geometry.core.path import Path
import math
def spiral_archimedean(radius, num_turns = 5, wrapping_constant = 1, direction = "cw", segments = 500):
'''
Constructs an Archimedean (arithmetic) spiral with the given number of
turns using the specified number of points.... | PypiClean |
/CslBot-0.21-py3-none-any.whl/cslbot/commands/filter.py |
from ..helpers import arguments, textutils
from ..helpers.command import Command
def get_filters(handler, target):
# Strip the gen_ from the names
names = [x.__name__[4:] for x in handler.outputfilter[target]]
if not names:
names = ['passthrough']
return "Current filter(s): %s" % ", ".join(na... | PypiClean |
/FeinCMS-23.8.0.tar.gz/FeinCMS-23.8.0/feincms/admin/tree_editor.py |
import json
import logging
from functools import reduce
from django.contrib.admin.actions import delete_selected
from django.contrib.admin.views import main
from django.contrib.auth import get_permission_codename
from django.db.models import Q
from django.http import (
HttpResponse,
HttpResponseBadRequest,
... | PypiClean |
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/geophpy/processing/magnetism.py | import numpy as np
#from scipy.linalg import lu_solve, lu_factor
#from geophpy.operation.general import *
import geophpy.operation.general as genop
#------------------------------------------------------------------------------#
# User defined parameters #
#-------... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/nodes/AttributeNodes.py | from .AttributeLookupNodes import ExpressionAttributeLookup
from .ExpressionBases import (
ExpressionChildHavingBase,
ExpressionChildrenHavingBase,
)
from .NodeBases import StatementChildHavingBase, StatementChildrenHavingBase
from .NodeMakingHelpers import (
makeCompileTimeConstantReplacementNode,
wrap... | PypiClean |
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/thing_update_request.py | import re # noqa: F401
import sys # noqa: F401
from openapi_client.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,
... | PypiClean |
/Electrum-Zcash-Random-Fork-3.1.3b5.tar.gz/Electrum-Zcash-Random-Fork-3.1.3b5/plugins/keepkey/plugin.py | from binascii import hexlify, unhexlify
from electrum_zcash.util import bfh, bh2u
from electrum_zcash.bitcoin import (b58_address_to_hash160, xpub_from_pubkey,
TYPE_ADDRESS, TYPE_SCRIPT)
from electrum_zcash import constants
from electrum_zcash.i18n import _
from electrum_zcash.plugi... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/autocomp/csscomp.py | __author__ = "Cody Precord <cprecord@editra.org>"
__cvsid__ = "$Id: csscomp.py 70229 2012-01-01 01:27:10Z CJP $"
__revision__ = "$Revision: 70229 $"
#--------------------------------------------------------------------------#
# Imports
import re
import wx
import wx.stc
# Local Imports
import completer
#-------------... | PypiClean |
/Mah_lib-0.1.tar.gz/Mah_lib-0.1/Mah_lib/Gaussiandistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Gaussian(Distribution):
""" Gaussian distribution class for calculating and
visualizing a Gaussian distribution.
Attributes:
mean (float) representing the mean value of the distribution
stdev (float) representing ... | PypiClean |
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/foundations/core.py | #**********************************************************************************************************************
#*** Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals
#*****************... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/gdal/raster/const.py | from ctypes import (
c_double, c_float, c_int16, c_int32, c_ubyte, c_uint16, c_uint32,
)
# See http://www.gdal.org/gdal_8h.html#a22e22ce0a55036a96f652765793fb7a4
GDAL_PIXEL_TYPES = {
0: 'GDT_Unknown', # Unknown or unspecified type
1: 'GDT_Byte', # Eight bit unsigned integer
2: 'GDT_UInt16', # Sixtee... | PypiClean |
/GENDIS-1.0.14.tar.gz/GENDIS-1.0.14/gendis/docs/_build/html/searchindex.js | Search.setIndex({docnames:["ccc","gendis","index","install","start"],envversion:53,filenames:["ccc.rst","gendis.rst","index.rst","install.rst","start.rst"],objects:{"gendis.genetic":{GeneticExtractor:[1,0,1,""]}},objnames:{"0":["py","class","Python class"]},objtypes:{"0":"py:class"},terms:{"boolean":1,"class":[1,2],"fl... | PypiClean |
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/monitor_service/interface.py | from MGP_SDK.monitor_service.monitoring import Monitoring
class Interface:
"""
The primary interface for interacting with the Monitoring class.
Args:
username (string) = The username of your user
password (string) = The password associated with your username
client_id (string) = Th... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/vbscript/vbscript.js | CodeMirror.defineMode("vbscript", function(conf, parserConf) {
var ERRORCLASS = 'error';
function wordRegexp(words) {
return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
}
var singleOperators = new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");
var doubleOperators = new RegExp("^((<>)|(<=)|(... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/py/README.txt | =====================================
PyCrust - The Flakiest Python Shell
=====================================
Half-baked by Patrick K. O'Brien (pobrien@orbtech.com)
Orbtech - "Your source for Python programming expertise."
Sample all our half-baked Python goods at www.orbtech.com.
What is PyCrust?
--------------... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/MSCommon/MSVC/ScriptArguments.py | import os
import re
import enum
from collections import (
namedtuple,
)
from ..common import (
CONFIG_CACHE_FORCE_DEFAULT_ARGUMENTS,
debug,
)
from . import Util
from . import Config
from . import Registry
from . import WinSDK
from .Exceptions import (
MSVCInternalError,
MSVCSDKVersionNotFound,
... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/phase/missOrientation/circle.py | r"""
In this example, a phase equation is solved in one dimension with a
misorientation between two solid domains.
The phase equation is given by:
.. math::
\tau_{\phi} \frac{\partial \phi}{\partial t}
= \alpha^2 \nabla^2 \phi + \phi ( 1 - \phi ) m_1 ( \phi , T)
- 2 s \phi | \nabla \theta | - \epsilon^2 \ph... | PypiClean |
/OASYS1-ALS-ShadowOui-0.0.60.tar.gz/OASYS1-ALS-ShadowOui-0.0.60/orangecontrib/syned/als/util/fqs.py | import math, cmath
import numpy as np
from numba import jit
@jit(nopython=True)
def single_quadratic(a0, b0, c0):
''' Analytical solver for a single quadratic equation
(2nd order polynomial).
Parameters
----------
a0, b0, c0: array_like
Input data are coefficients of the Quadratic polynom... | PypiClean |
/netket-3.9.2.tar.gz/netket-3.9.2/netket/driver/steady_state.py |
from typing import Optional
import jax
import jax.numpy as jnp
from inspect import signature
from netket.operator import Squared, AbstractSuperOperator
from netket.vqs import MCMixedState
from netket.optimizer import (
identity_preconditioner,
PreconditionerT,
_DeprecatedPreconditionerSignature,
)
from... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Script/Main.py | # these define the range of versions SCons supports
unsupported_python_version = (3, 5, 0)
deprecated_python_version = (3, 6, 0)
import SCons.compat
import atexit
import importlib.util
import os
import re
import sys
import time
import traceback
import platform
import threading
import SCons.CacheDir
import SCons.Debu... | PypiClean |
/Demomgr-1.10.1-py3-none-any.whl/demomgr/demo_info.py | import os
import re
from demomgr.helpers import getstreakpeaks
RE_LINE = re.compile(
r'\[(\d{4}/\d\d/\d\d \d\d:\d\d)\] (Killstreak|Bookmark)'
r' (.*) \("(.*)" at (\d+)\)'
)
class GROUP:
DATE = 1
TYPE = 2
VALUE = 3
DEMO = 4
TICK = 5
class DemoEvent():
"""
Simple event dataclass for a demo event.
Supports s... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/experiment_planning/utils.py |
import json
import os
import pickle
import shutil
from collections import OrderedDict
from multiprocessing import Pool
import numpy as np
from batchgenerators.utilities.file_and_folder_operations import join, isdir, maybe_mkdir_p, subfiles, subdirs, isfile
from CartiMorph_nnUNet.configuration import default_num_threa... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/vtc/history_list.py |
import webbrowser
from util import *
from electrum_vtc.i18n import _
from electrum_vtc.util import block_explorer_URL, format_satoshis, format_time
from electrum_vtc.plugins import run_hook
from electrum_vtc.util import timestamp_to_datetime, profiler
TX_ICONS = [
"warning.png",
"warning.png",
"warning... | PypiClean |
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/i18n.py | import contextlib
import functools
import io
import os
from pathlib import Path
from typing import Callable, Dict, Optional, Union
import babel.localedata
from babel.core import Locale
# This import to be down here to avoid circular import issues.
# This will be cleaned up at a later date
# noinspection PyPep8
from .... | PypiClean |
/Demomgr-1.10.1-py3-none-any.whl/demomgr/context_menus.py | import tkinter as tk
def _generate_readonly_cmd(w):
cmd = (
("command", {"label": "Copy", "command": lambda: w.event_generate("<<Copy>>")}, 2),
("command", {"label": "Select all", "command": lambda: w.event_generate("<<SelectAll>>")}),
)
return cmd
def _generate_normal_cmd(w):
cmd = (
("command", {"label":... | PypiClean |
/DataPreprocessing4Analytics-2023.0.3-py3-none-any.whl/DataPreprocessingAnalytics4all4ever/__init__.py | import re
import os
import csv
import sys
import nltk
import spacy
import random
import string
import unicodedata
import math as m
import numpy as np
import pandas as pd
import dateutil as du
import datetime as dt
import seaborn as sns
import calendar as cal
from textblob import Word
import statistics as stats
from bs4... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/abc.py | import string
from .core import Symbol, symbols
from .core.alphabets import greeks
# ##### Symbol definitions #####
a, b, c, d, e, f, g, h, i, j, k, l, m = symbols('a:m')
n, o, p, q, r, s, t, u, v, w, x, y, z = symbols('n:z')
A, B, C, D, E, F, G, H, I, J, K, L, M = symbols('A:M')
N, O, P, Q, R, S, T, U, V, W, X, Y... | PypiClean |
/Js2Py-0.74.tar.gz/Js2Py-0.74/js2py/constructors/jsobject.py | from ..base import *
import six
#todo Double check everything is OK
@Js
def Object():
val = arguments.get('0')
if val.is_null() or val.is_undefined():
return PyJsObject(prototype=ObjectPrototype)
return val.to_object()
@Js
def object_constructor():
if len(arguments):
val = arguments... | PypiClean |
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/TeX/color.js | MathJax.Extension["TeX/color"]={version:"2.7.9",config:MathJax.Hub.CombineConfig("TeX.color",{padding:"5px",border:"2px"}),colors:{Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D"... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heterogeneous_Highway_Env/vehicle/kinematics.py | from typing import Union, Optional, Tuple, List
import numpy as np
import copy
from collections import deque
from highway_env import utils
from highway_env.road.road import Road, LaneIndex
from highway_env.vehicle.objects import RoadObject, Obstacle, Landmark
from highway_env.utils import Vector
class Vehicle(RoadOb... | PypiClean |
/BenchExec-3.17.tar.gz/BenchExec-3.17/benchexec/filehierarchylimit.py |
import logging
import os
import threading
import time
from benchexec import container
from benchexec import util
_CHECK_INTERVAL_SECONDS = 60
_DURATION_WARNING_THRESHOLD = 1
class FileHierarchyLimitThread(threading.Thread):
"""
Thread that periodically checks whether a given file hierarchy exceeds some lim... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Action.py | import os
import pickle
import re
import sys
import subprocess
from subprocess import DEVNULL
import inspect
from collections import OrderedDict
import SCons.Debug
from SCons.Debug import logInstanceCreation
import SCons.Errors
import SCons.Util
import SCons.Subst
# we use these a lot, so try to optimize them
from SC... | PypiClean |
/image/Augmentor.py | import imgaug.augmenters as iaa
import tensorflow as tf
from typing import *
class Augmentor:
"""
This class is used to define the image augmentation pipeline. Augmentor class instance
can be passed to DataSplit "aug" argument to apply it to the train dataset.
# Arguments
h_flip: probability of ap... | PypiClean |
/Firmant-0.2.3a1.tar.gz/Firmant-0.2.3a1/firmant/writers/j2.py | import jinja2
from firmant import decorators
from firmant.writers import staticrst
from firmant.writers import posts
from firmant.utils import paths
from firmant.utils import workarounds
from pysettings import settings
class Jinja2Base(object):
'''Base class used for functionality common to all J2 writers.
... | PypiClean |
/HireFire-1.1.tar.gz/HireFire-1.1/docs/index.rst | .. include:: ../README.rst
Proc backends
-------------
Two base classes are includes that you can use to implement custom
backends. All the other contributed backends use those base classes,
too.
``hirefire.procs.Proc``
^^^^^^^^^^^^^^^^^^^^^^^
.. autoclass:: hirefire.procs.Proc
:members:
``hirefire.procs.Client... | PypiClean |
/DataGun-0.1.2.tar.gz/DataGun-0.1.2/README.md | # Deserialization and converting data to the required type using Python tools, for subsequent insertion into the database

[](https://raw.githubuserco... | PypiClean |
/OccuPy-0.1.13.tar.gz/OccuPy-0.1.13/occupy_lib/map_tools.py | import mrcfile.mrcfile
import numpy as np
import mrcfile as mf
import wget
import gzip
import os
from pathlib import Path
import scipy.fft as spfft
from pkg_resources import get_distribution
__version__ = get_distribution("occupy").version
def create_radial_mask(
size: int,
dim: int,
center... | PypiClean |
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/languages/fro/dstring.py | # problem with Pylint :
# pylint: disable=E0611
# many errors like "No name 'extensions' in module 'dchars'"
import re
import unicodedata
from dchars.errors.errors import DCharsError
from dchars.dstring import DStringMotherClass
from dchars.languages.fro.dcharacter import DCharacterFRO
from dchars.languages.fro.symbo... | PypiClean |
/Flask-SQLAlchemy-Booster-0.6.31.tar.gz/Flask-SQLAlchemy-Booster-0.6.31/flask_sqlalchemy_booster/utils.py | from __future__ import absolute_import
from sqlalchemy.ext.associationproxy import (
_AssociationDict, _AssociationList, _AssociationSet)
from sqlalchemy.orm.collections import (
InstrumentedList, MappedCollection)
from sqlalchemy.orm import class_mapper
from toolspy import flatten, all_subclasses, remove_dupli... | PypiClean |
/hft_crypto_api-1.0.6.tar.gz/hft_crypto_api-1.0.6/hftcryptoapi/bitmart/data/constants.py |
from enum import Enum, EnumMeta, unique
class MetaEnum(EnumMeta):
def __contains__(cls, item):
try:
cls(item)
except ValueError:
return False
return True
""" Base urls for API endpoints """
# Domain constants
API_URL = 'https://api-cloud.bitmart.com'
WS_URL = ... | PypiClean |
/csst_feh-0.0.4.tar.gz/csst_feh-0.0.4/CSST_feh/dwarf_feh.py | def dwarf_feh(u,g,i,error):
'''
This program is designed specially to estimate the metallicity of the dwarf stars
from the CSST filter systems using metallicity-depedent stellar loci of (u-g) versus
(g-i), the metallicity can be derived with the maximum likelihood approach in the meanwhile.
Args:
... | PypiClean |
/LalaTools-0.0.11-py3-none-any.whl/lalatools/manage_file_system/file_system.py | import os
def del_head(path):
"""
Removes the directory part of a path, returning only the filename.
:param path: A string representing a path, or a list of strings representing multiple paths.
:return: If a string was given as input, returns a string representing the filename.
If a list ... | PypiClean |
/GenRS-0.0.5.tar.gz/GenRS-0.0.5/README.md | # GenRS
A generative learning-based Framework for Recommendation Systems algorithms
# Software requirements:
- Python 3.6 or higher
- Tensorflow 1.15 GPU
- Numpy 1.17
- Scipy 1.3
- Pandas 0.25
- Bottleneck 1.3
# Algorithms list available:
- [CFGAN](https://dl.acm.org/doi/pdf/10.1145/3269206.3271743?casa_token=INiS3p2... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/optimizers/hebo_embedding.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 |
/Direct_Downloader-0.7-py3-none-any.whl/Direct_Downloader-0.7.data/scripts/direct_downloader.py |
# 3rd Party Modules
import requests
# Python Modules
import os
import re
from threading import Thread, active_count
from queue import Queue
import shutil
import logging
from time import sleep
""" Setting up logging """
LOG_FORMAT = "[%(levelname)s] %(asctime)s - %(message)s"
logging.basicConfig(level=logging.DEBUG, ... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-mn-MN.js | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], factory);
else {
var a = factory();
for(var i in a) (typeof exports === 'object' ? exports : roo... | PypiClean |
/EMPOL_GUI-2.2.8.tar.gz/EMPOL_GUI-2.2.8/EMPOL_GUI/single_obj_stack.py | import numpy as np
import math
import matplotlib.pyplot as plt
from astropy.io import fits
import os
import fnmatch
from astropy.io.fits import getheader
from astropy.stats import sigma_clipped_stats
from astropy.modeling import models, fitting
from scipy.optimize import curve_fit
from scipy import interpolate
import n... | PypiClean |
/BlueWhale3_SingleCell-1.3.5-py3-none-any.whl/orangecontrib/single_cell/widgets/owloaddata.py | import os
import sys
from typing import List
from serverfiles import sizeformat
from AnyQt.QtCore import Qt, QFileInfo, QTimer, Signal
from AnyQt.QtGui import QStandardItemModel, QStandardItem
from AnyQt.QtWidgets import (
QSizePolicy, QGridLayout, QHBoxLayout, QFormLayout,
QLabel, QComboBox, QSpinBox, QChec... | PypiClean |
/DataAnalysis-0.0.6.tar.gz/DataAnalysis-0.0.6/README.md | # DataAnalysis
DataAnalysis é uma biblioteca que pode ser usada para o pré-processamento de um arquivo csv.
#### Parâmetros:
```diff
input_file: nome do arquivo com a extensão csv
api_small_talks: url da api de small talks
content_column: nome ou índice da coluna de conteúdo do arquivo csv
encoding: codificação d... | PypiClean |
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/tl/types/help.py | from ...tl.tlobject import TLObject
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeAccessPointRule, TypeChat, TypeDataJSON, TypeDocument, TypeJSONValue, TypeMessageEntity, TypePeer, TypePremiumSubscriptionOp... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.