code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
__author__ = "Aman Chokshi" __date__ = "2021-06-13" __cite__ = "https://github.com/amanchokshi" import numpy as np from numba import njit, prange from scipy.constants import c def read_layout(layout_path=None): """Read array layout from txt file. Antenna positions are defined with respect to the array centr...
/radio_dreams-0.3.5-py3-none-any.whl/radio_dreams/interferometer.py
0.904606
0.639638
interferometer.py
pypi
# Radio Gyms ![Radio Gyms](https://github.com/intelek-ai/radio-gyms/blob/master/assets/logo.png) Radio Gyms is an open-source bundle of AI environments for radio communications. The simulations are built for AI gyms with the support of radio-related calculation modules, and theoretical radio propagation models to si...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/README.md
0.63307
0.89974
README.md
pypi
import numpy as np from typing import List from ..engines import Tracer from ..objects import Pedestrian, Cell from ..models import TheoreticalOutdoorModel as OutdoorModel class OldtownWalk: tracer: Tracer = None cells: List[Cell] = [] pedestrians: List[Pedestrian] = [] step: int = 0 def __init...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/simulations/oldtown_walk.py
0.553385
0.214877
oldtown_walk.py
pypi
from typing import Tuple, List, Dict from numpy.typing import NDArray import numpy as np import pandas as pd from ..ray_tracer.obj_reader import ObjToTriangles from ...utils import VecNorm, VecDistance, VecAngle, PosBetweenXZ, SortPointsFromPlaneY from ...utils.constants import EPSILON, MIN_ROOF_EDGE_DISTANCE, ROOF_M...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/engines/ray_tracer/tracer.py
0.898555
0.486088
tracer.py
pypi
from typing import Sequence, Tuple, List from numpy.typing import NDArray from .triangle import Triangle from ...utils.constants import MAX_FLT from .box import Box class BVH: root: Box = None def __init__(self, triangles: Sequence[Triangle]): self.root = Box(triangles) BVH.make_children(sel...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/engines/ray_tracer/bvh.py
0.882225
0.310289
bvh.py
pypi
from kiwisolver import strength import numpy as np from radio_gyms.utils.constants import MAX_FLT, MIN_FLT from radio_gyms.utils.converters import mw_to_dbm from ..utils.notebook import is_notebook from ..models.theoretical import TheoreticalOutdoorModel from .base import RadioGym from ..engines import Tracer from ...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/gyms/location_gym.py
0.503174
0.25945
location_gym.py
pypi
from typing import List, Tuple import numpy as np from ..utils import VecDistance, RefAngle, VecNorm, VecAngle, SortPointsFromPlaneY, dBmTomW, mWTodBm from ..utils.constants import LIGHT_SPEED, EPSILON class TheoreticalOutdoorModel: """ Theoretical Outdoor model consist of free-space loss, reflection loss, ...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/models/theoretical.py
0.939011
0.663557
theoretical.py
pypi
import matplotlib.pyplot as plt class Plotter: def __init__(self, min_bound, max_bound, terrain_map=None): self.terrain_map = terrain_map self.min_bound = min_bound self.max_bound = max_bound self.rx_pos = [] self.tx_pos = [] self.lines = [] def render_top(sel...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/utils/plotter.py
0.705176
0.569972
plotter.py
pypi
import ctypes from typing import List from pyglet.gl import glUseProgram, GLchar, glCreateShader,\ GL_VERTEX_SHADER, glShaderSource, glCompileShader, GL_FRAGMENT_SHADER,\ glCreateProgram, glAttachShader, glLinkProgram, glGenBuffers, GLuint,\ GL_ARRAY_BUFFER, glBindBuffer, GLfloat, GL_STATIC_DRAW, glBufferDa...
/radio_gyms-0.7.0.tar.gz/radio_gyms-0.7.0/radio_gyms/visualizers/visual_triangle.py
0.781956
0.319572
visual_triangle.py
pypi
from math import sin, cos, atan, sqrt, pi def deconv(fmaj, fmin, fpa, cmaj, cmin, cpa): """ Deconvolve a Gaussian "beam" from a Gaussian component. When we fit an elliptical Gaussian to a point in our image, we are actually fitting to a convolution of the physical shape of the source with the bea...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/deconv.py
0.88934
0.80406
deconv.py
pypi
import logging from math import degrees, sqrt, sin, pi, cos from six import with_metaclass from sourcefinder.accessors.requiredatts import RequiredAttributesMetaclass logger = logging.getLogger(__name__) class DataAccessor(with_metaclass(RequiredAttributesMetaclass, object)): _required_attributes = [ 'be...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/dataaccessor.py
0.824144
0.568236
dataaccessor.py
pypi
from abc import ABCMeta class RequiredAttributesMetaclass(ABCMeta): """ Provides instantiation-time checking for 'required attributes'. This can be used to define an 'interface' of sorts. Use it to define an abstract base class that specifies all the attributes you expect to see from user-defined...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/requiredatts.py
0.832066
0.36591
requiredatts.py
pypi
import datetime import logging import numpy from casacore.tables import table as casacore_table from sourcefinder.accessors.casaimage import CasaImage from sourcefinder.accessors.lofaraccessor import LofarAccessor from sourcefinder.utility.coordinates import julian2unix logger = logging.getLogger(__name__) subtable...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/lofarcasaimage.py
0.714329
0.339745
lofarcasaimage.py
pypi
import logging import numpy from sourcefinder.accessors.fitsimage import FitsImage logger = logging.getLogger(__name__) class FitsImageBlob(FitsImage): """ A Fits image Blob. Same as ``sourcefinder.accessors.fitsimage.FitsImage`` but constructed from an in memory fits file, not a fits file on disk. ...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/fitsimageblob.py
0.694821
0.317152
fitsimageblob.py
pypi
import logging import os.path from collections import namedtuple import astropy.io.fits as pyfits from casacore.images import image as casacore_image from casacore.tables import table as casacore_table from sourcefinder.accessors.aartfaaccasaimage import AartfaacCasaImage from sourcefinder.accessors.amicasaimage impo...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/detection.py
0.49707
0.287661
detection.py
pypi
import os import astropy.io.fits as pyfits from astropy.io.fits.hdu.hdulist import HDUList from sourcefinder.accessors import detection from sourcefinder.accessors.fitsimageblob import FitsImageBlob from sourcefinder.accessors.lofarfitsimage import LofarFitsImage from sourcefinder.image import ImageData def sourcef...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/accessors/__init__.py
0.800146
0.415314
__init__.py
pypi
import logging logger = logging.getLogger(__name__) class ObjectContainer(list): """A container class for objects. What sort of objects? Well, anything that has a position and we want to keep lists of, really. So detections (ie, an individual source measurement on an image), sources (ie all the dete...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/utility/containers.py
0.607314
0.386358
containers.py
pypi
import math class Uncertain(object): """Represents a numeric value with a known small uncertainty (error, standard deviation...). Numeric operators are overloaded to work with other Uncertain or numeric objects. The uncertainty (error) must be small. Otherwise the linearization employed here bec...
/radio-pyse-0.2.2.tar.gz/radio-pyse-0.2.2/sourcefinder/utility/uncertain.py
0.758466
0.522689
uncertain.py
pypi
import numpy as np import matplotlib.pyplot as plt from scipy.special import j1 from astropy import units as un from astropy import constants as const from scipy.interpolate import interp1d from tqdm import tqdm from hera_cal.redcal import get_pos_reds from multiprocessing import Pool from .beams import beam_gaussian ...
/radio_sim-0.0.2.tar.gz/radio_sim-0.0.2/radio_sim/radio_sim.py
0.902142
0.515193
radio_sim.py
pypi
<img src="https://raw.githubusercontent.com/radioactivedecay/radioactivedecay/main/docs/source/images/radioactivedecay.png" alt="radioactivedecay logo" width="500"/> *** [![PyPI](https://img.shields.io/pypi/v/radioactivedecay)](https://pypi.org/project/radioactivedecay/) [![Conda](https://img.shields.io/conda/v/cond...
/radioactivedecay-0.4.21.tar.gz/radioactivedecay-0.4.21/README.md
0.595257
0.955569
README.md
pypi
# Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level o...
/radioactivedecay-0.4.21.tar.gz/radioactivedecay-0.4.21/CODE_OF_CONDUCT.md
0.574037
0.653542
CODE_OF_CONDUCT.md
pypi
# Changelog ## [0.4.21] - 2023-08-13 - Add `Inventory.to_csv()` and `InventoryHP.to_csv()` methods for writing an inventory's contents to a CSV file (in user's chosen units) (#94). ## [0.4.20] - 2023-08-08 - Add `rd.read_csv()` function for creating an inventory by reading nuclides & quantities (and optionally units)...
/radioactivedecay-0.4.21.tar.gz/radioactivedecay-0.4.21/CHANGELOG.md
0.890746
0.723383
CHANGELOG.md
pypi
# radionets [![Actions Status](https://github.com/radionets-project/radionets/workflows/CI/badge.svg)](https://github.com/radionets-project/radionets/actions) [![codecov](https://codecov.io/gh/radionets-project/radionets/branch/main/graph/badge.svg)](https://codecov.io/gh/radionets-project/radionets) ## Imaging Radi...
/radionets-0.2.0.tar.gz/radionets-0.2.0/README.md
0.41052
0.994959
README.md
pypi
from dataclasses import dataclass, field from enum import Enum from typing import List, Optional, Union class CatypeType(Enum): UNSPECIFIED = "unspecified" NONE = "none" class BroadcastType(Enum): ON_AIR = "on-air" OFF_AIR = "off-air" class GenreTypeType(Enum): MAIN = "main" SECONDARY = "s...
/radioplayer_dataclasses-0.5.2-py3-none-any.whl/radioplayer/dataclasses/dataclasses.py
0.848392
0.251625
dataclasses.py
pypi
from radioplayer.dataclasses.dataclasses import ( Catype, CatypeType, AlternateSourceType, AlternateSourceTypeProtocol, AlternateSourceTypeType, AudioStreamGroupType, AudioStreamType, BitRateType, BroadcastType, EnsembleType, Epg, EpgLanguageType, FormatType, Freq...
/radioplayer_dataclasses-0.5.2-py3-none-any.whl/radioplayer/dataclasses/__init__.py
0.556761
0.445469
__init__.py
pypi
# radiotrace **radiotrace** is a Python package to quantify and visualize the progression status of early-stage lung adenocarcinoma (esLUAD) from CT images. It is designed and developed by Jiaqi Li from [XGlab](http://bioinfo.au.tsinghua.edu.cn/member/xuegonglab/), Tsinghua University. The work is collaborated with Pr...
/radiotrace-0.1.1.tar.gz/radiotrace-0.1.1/README.md
0.68215
0.97711
README.md
pypi
# Radio Emission from Stellar Winds [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1476587.svg)](https://doi.org/10.5281/zenodo.1476587) This is a Python code to calculate the radio emission produced by the winds around stars. The code calculates thermal bremsstrahlung that is emitted from the wind, which depen...
/radiowinds-1.2.0.tar.gz/radiowinds-1.2.0/README.md
0.477067
0.982889
README.md
pypi
import functools import random import radish.matcher as matcher from radish.errors import RadishError from radish.models import Feature, Rule, Scenario, ScenarioLoop, ScenarioOutline, Step from radish.models.state import State class Runner: """Radish Feature Runner The Runner takes a list of Feature File AS...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/runner.py
0.536677
0.296562
runner.py
pypi
import textwrap from radish.terrain import world class RadishError(Exception): """Base-Exception for all radish based errors.""" pass class StepImplementationNotFoundError(RadishError): """Exception raised when no Step Implementation can be found for a Step""" def __init__(self, step): se...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/errors.py
0.858659
0.252776
errors.py
pypi
from collections import defaultdict class StepImpl: """Represents a Step Implementation registered at the ``StepRegistry`` A Step Implementation represents a function which is mapped to a Step text when running a Feature File. """ __slots__ = ["keyword", "pattern", "func"] def __init__(self...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/stepregistry.py
0.92046
0.507873
stepregistry.py
pypi
import inspect import bisect import tagexpressions from radish.errors import HookExecError class HookImpl: """Represent a single Hook Implementation""" __slots__ = ["what", "when", "func", "on_tags", "order", "is_formatter", "always"] def __init__( self, what, when, func, on_tags, order, is_fo...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/hookregistry.py
0.738763
0.214877
hookregistry.py
pypi
import json import functools import click from radish.errors import RadishError from radish.extensionregistry import extension from radish.hookregistry import after from radish.models import ScenarioOutline, ScenarioLoop, State @extension class CucumberJSONWriter: """Cucumber JSON writer radish extension""" ...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/extensions/cucumber_json_writer.py
0.47171
0.165863
cucumber_json_writer.py
pypi
import re import functools from datetime import timedelta # We need an OrderedDict because Python 3.5 does not preverse # the order in dictionaries from collections import OrderedDict import click from radish.errors import RadishError from radish.extensionregistry import extension from radish.hookregistry import aft...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/extensions/junit_xml_writer.py
0.572842
0.286924
junit_xml_writer.py
pypi
import textwrap import colorful as cf from radish.extensionregistry import extension from radish.hookregistry import after, before from radish.models.state import State from radish.terrain import world #: Holds the amount of spaces to indent per block INDENT_STEP = " " * 4 @extension class DotsFormatter: @clas...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/formatters/dots.py
0.595728
0.202089
dots.py
pypi
import copy from radish.models.scenario import Scenario class ScenarioLoop(Scenario): """Represents a single instance of a Gherkin Scenario Loop""" def __init__( self, scenario_id: int, keyword: str, short_description: str, tags, path: str, line: int, ...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/scenario_loop.py
0.649134
0.433682
scenario_loop.py
pypi
from radish.models.state import State class Rule: """Represents a single instance of a Gherkin Rule""" def __init__( self, keyword: str, short_description, path: str, line: int, scenarios ) -> None: self.keyword = keyword self.short_description = short_description self.pat...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/rule.py
0.870645
0.452959
rule.py
pypi
import copy from radish.models.constant_tag import ConstantTag from radish.models.context import Context from radish.models.state import State from radish.models.timed import Timed class Scenario(Timed): """Represents a single instance of a Gherkin Scenario""" def __init__( self, scenario_id...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/scenario.py
0.78968
0.408572
scenario.py
pypi
import base64 import radish.utils as utils from radish.errors import RadishError, StepBehaveLikeRecursionError from radish.models.state import State from radish.models.stepfailurereport import StepFailureReport from radish.models.timed import Timed class Step(Timed): """Respresents a single instance of a Gherkin...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/step.py
0.746046
0.246772
step.py
pypi
import copy from radish.models.scenario import Scenario class ScenarioOutline(Scenario): """Represents a single instance of a Gherkin Scenario Outline""" def __init__( self, scenario_id: int, keyword: str, short_description: str, tags, path: str, line:...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/scenario_outline.py
0.654895
0.496582
scenario_outline.py
pypi
from radish.models.constant_tag import ConstantTag from radish.models.context import Context from radish.models.state import State from radish.models.timed import Timed class Feature(Timed): """"Represents a single instance of a Gherkin Feature""" def __init__( self, feature_id: int, ...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/models/feature.py
0.871707
0.354685
feature.py
pypi
import itertools import textwrap from pathlib import Path from lark import Transformer from radish.models import ( Background, ConstantTag, DefaultRule, Feature, PreconditionTag, Rule, Scenario, ScenarioLoop, ScenarioOutline, Step, Tag, ) from radish.parser.errors import ( ...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/parser/transformer.py
0.71123
0.244532
transformer.py
pypi
import json import re from pathlib import Path from lark import Lark, UnexpectedInput from radish.models import PreconditionTag from radish.parser.errors import ( RadishLanguageNotFound, RadishMisplacedBackground, RadishMissingFeatureShortDescription, RadishMissingRuleShortDescription, RadishMissi...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/parser/core.py
0.606498
0.1996
core.py
pypi
from radish.errors import RadishError class RadishSyntaxError(RadishError, SyntaxError): def __str__(self): context, line, column = self.args return "{} at line {}, column {}.\n\n{}".format( self.label, line, column, context ) class RadishMissingFeatureShortDescription(Radish...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/src/radish/parser/errors.py
0.916963
0.55941
errors.py
pypi
.. _feature_file_syntax: Feature File Syntax =================== radish aims to be fully `Gherkin`_ compatible. The current :class:`Feature File Parser <radish.parser.FeatureFileParser>` fully supports Gherkin v6. The following sections document the extended Gherkin syntax supported by radish. radish uses an EBNF g...
/radish-bdd-1.0.0a3.tar.gz/radish-bdd-1.0.0a3/docs/source/syntax.rst
0.948656
0.883488
syntax.rst
pypi
=============================================================================== parse_type =============================================================================== .. image:: https://img.shields.io/travis/jenisys/parse_type/master.svg :target: https://travis-ci.org/jenisys/parse_type :alt: Travis CI Bui...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/README.rst
0.927589
0.698276
README.rst
pypi
from __future__ import absolute_import from invoke import task, Collection from invoke.executor import Executor from invoke.exceptions import Failure import os.path import sys from path import Path import pathlib # ----------------------------------------------------------------------------- # TASKS: # --------------...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/tasks/clean.py
0.435421
0.16807
clean.py
pypi
from __future__ import absolute_import from .cardinality import Cardinality, TypeBuilder import six class MissingTypeError(KeyError): pass # ----------------------------------------------------------------------------- # CLASS: Cardinality (Field Part) # -----------------------------------------------------------...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/parse_type/cardinality_field.py
0.779112
0.324316
cardinality_field.py
pypi
# -- USE: enum34 from enum import Enum # ----------------------------------------------------------------------------- # FUNCTIONS: # ----------------------------------------------------------------------------- def pattern_group_count(pattern): return pattern.replace(r"\(", "").count("(") # --------------------...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/parse_type/cardinality.py
0.936088
0.436022
cardinality.py
pypi
from __future__ import absolute_import import parse from collections import namedtuple import six # -- HELPER-CLASS: For format part in a Field. # REQUIRES: Python 2.6 or newer. FormatSpec = namedtuple("FormatSpec", ["type", "width", "zero", "align", "fill"]) def make_format_spec(type=None, w...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/parse_type/parse_util.py
0.803482
0.35301
parse_util.py
pypi
from __future__ import absolute_import from .cardinality_field import CardinalityField, CardinalityFieldTypeBuilder from .parse_util import FieldParser import parse import logging log = logging.getLogger(__name__) class Parser(parse.Parser): """ Provides an extended :class:`parse.Parser` with cardinality fi...
/radish-parse_type-0.3.5.tar.gz/radish-parse_type-0.3.5/parse_type/cfparse.py
0.875455
0.332961
cfparse.py
pypi
from __future__ import unicode_literals import os class Path(object): GLOB_CHARACTER = '*' def __init__(self, path): """ Args: path (Union(str, None)): A path to perform matches against """ self.path = path def match(self, filename): """ Arg...
/radish_run-0.1.0-py3-none-any.whl/radish/path.py
0.719384
0.18374
path.py
pypi
import random import struct class EAPPacket: """ EAP (Extensible Authentication Protocol) Packet """ """ Request packet """ CODE_REQUEST = 1 """ Response packet """ CODE_RESPONSE = 2 """ Success packet """ CODE_SUCCESS = 3 """ Failure packet ...
/radius_eap_mschapv2_client-1.0.6-py3-none-any.whl/radius_eap_mschapv2/EAPPacket.py
0.647798
0.395484
EAPPacket.py
pypi
from radix.radix import Num from radix.complement import dim_radix_compl, radix_compl class Bin(Num): '''Signed binary numbers. Find representations of a number in binary 2's complement, 1's complement and sign magnitude forms. Perform 2's complement addition and subtraction. ''' def __init_...
/radix-ops-0.3.5.tar.gz/radix-ops-0.3.5/radix/binary.py
0.844697
0.475788
binary.py
pypi
from string import digits, ascii_uppercase import math from copy import copy # 10 digits + 26 letters = 36 - upto base 36 is supported DIGITS = digits + ascii_uppercase class Num: '''Instantiate this class to represent a value in a certain base. Parameters - value - Can be a string or int or float in the...
/radix-ops-0.3.5.tar.gz/radix-ops-0.3.5/radix/radix.py
0.867542
0.400749
radix.py
pypi
# RadixLib ![](./images/frame1.svg) ![](https://github.com/0xOmarA/RadixLib/actions/workflows/tests.yml/badge.svg "Tests Badge") [![PyPI version](https://badge.fury.io/py/radixlib.svg)](https://pypi.org/project/radixlib/1.0.0/) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource....
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/README.md
0.581065
0.911574
README.md
pypi
import radixlib as radix import os def main() -> None: # Information about the token that we're creating token_name: str = "Mutable Token" token_symbol: str = "mut" token_description: str = "Testing the creation of mutable token using the RadixLib python package." token_icon_url: str = "" token...
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/examples/2- creating a new mutable supply token/main.py
0.576065
0.410874
main.py
pypi
import radixlib as radix import os def main() -> None: # Information about the token that we're creating token_name: str = "Fixed Token" token_symbol: str = "fix" token_description: str = "Testing the creation of fixed supply token using the RadixLib python package." token_icon_url: str = "" to...
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/examples/5- creating a new fixed supply token/main.py
0.571527
0.384912
main.py
pypi
from typing import Optional, Dict, List, Any import radixlib as radix import config import json def get_all_transactions( wallet: radix.Wallet ) -> List[Dict[str, Any]]: """ Gets all of the transactions where this wallet was involved. """ current_cursor: Optional[str] = None transactions: List[Dict[st...
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/examples/12- automated token sale/token sale.py
0.838746
0.483709
token sale.py
pypi
import radixlib as radix import os # The path of this script script_path: str = os.path.dirname(os.path.realpath(__file__)) # The path that the data.json file is stored at data_json_file: str = os.path.join(script_path, 'data.json') """ The path to the data.json file which is a file used to store the state of the pro...
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/examples/12- automated token sale/config.py
0.608594
0.342379
config.py
pypi
import radixlib as radix import os def main() -> None: # Information about the people who we will be sending the tokens to recipient1_address: str = "tdx1qspw6g43xaef9uke65grhn074e00kvp9nr6mdj5gdhksc7r6cen8trch8lr6x" recipient2_address: str = "tdx1qsp6t8v6f98rpn0zc4e84f388neca2xdme6rg7vddd9ef4teq444lhgkh4h...
/radixlib-1.0.1.tar.gz/radixlib-1.0.1/examples/6- multi-action transactions/main.py
0.524638
0.345271
main.py
pypi
from __future__ import annotations from typing import Optional, Dict, List, Tuple from wrecked import Rect class RectFrame: def __init__(self, parent_rect: Rect, border: List[chr] = None): self.frame = parent_rect.new_rect() self.wrapper = self.frame.new_rect() self.content = self.wrapper....
/radixulous-0.0.3-py3-none-any.whl/src/wrecked_elements.py
0.900707
0.335432
wrecked_elements.py
pypi
from __future__ import annotations from typing import Optional, Dict, List, Tuple, Any from .mgrouping import MGrouping from .layer_history import HistoryLayer class UpdatesCache: """ Dict of changes with a few ease-of-use functions. Used by FlagLayer to cache the changes to the OpusManager ...
/radixulous-0.0.3-py3-none-any.whl/src/opusmanager/layer_flag.py
0.868186
0.304546
layer_flag.py
pypi
from __future__ import annotations from typing import Optional, Dict, List, Tuple, Any from collections.abc import Callable from .layer_base import OpusManagerBase class HistoryLayer(OpusManagerBase): """Layer of the OpusManager that handles Undo & Redo actions""" def __init__(self): super().__init__(...
/radixulous-0.0.3-py3-none-any.whl/src/opusmanager/layer_history.py
0.872849
0.189221
layer_history.py
pypi
from __future__ import annotations from typing import List, Optional, Tuple, Union, Any from collections.abc import Callable from .layer_flag import FlagLayer class ReadyEvent: """Temporary placeholder for note events as they are being created""" def __init__(self, initial_value: int, *, relative: bool = Fals...
/radixulous-0.0.3-py3-none-any.whl/src/opusmanager/layer_cursor.py
0.884782
0.326218
layer_cursor.py
pypi
import io import numpy as np import os import pandas as pd import joblib import json from typing import List from imblearn.pipeline import Pipeline from sklearn.metrics import make_scorer, matthews_corrcoef from sklearn.feature_selection import VarianceThreshold from sklearn.model_selection import RandomizedSearchCV ...
/radon_defect_predictor-0.2.7-py3-none-any.whl/radondp/predictors.py
0.796015
0.397997
predictors.py
pypi
import datetime import json import os import pandas as pd import requests from ansiblemetrics import metrics_extractor as ansible_metrics_extractor from toscametrics import metrics_extractor as tosca_metrics_extractor from argparse import ArgumentParser, ArgumentTypeError, Namespace from zipfile import ZipFile from ....
/radon_defect_predictor-0.2.7-py3-none-any.whl/radondp/cli.py
0.568536
0.27565
cli.py
pypi
Introduction to Code Metrics ============================ This section contains a brief explanations of the metrics that Radon can compute. Cyclomatic Complexity --------------------- Cyclomatic Complexity corresponds to the number of decisions a block of code contains plus 1. This number (also called McCabe number...
/radon-6.0.1.tar.gz/radon-6.0.1/docs/intro.rst
0.948905
0.896297
intro.rst
pypi
![logo](https://user-images.githubusercontent.com/83273612/160471242-40d7d7f1-d2cd-4658-b4e1-75f5e608665d.png) ## Overview RadonPy is the first open-source Python library for fully automated calculation for a comprehensive set of polymer properties, using all-atom classical MD simulations. For a given polymer repeatin...
/radonpy-pypi-0.2.8.tar.gz/radonpy-pypi-0.2.8/README.md
0.421909
0.98661
README.md
pypi
# ****************************************************************************** # sim.qm module # ****************************************************************************** import numpy as np import os import json import gc from rdkit import Chem from rdkit import Geometry as Geom from ..core import utils, const...
/radonpy-pypi-0.2.8.tar.gz/radonpy-pypi-0.2.8/radonpy/sim/qm.py
0.75985
0.340266
qm.py
pypi
from matplotlib import pylab as plt import numpy as np import radontea from radontea.logo import get_original N = 55 # image size A = 13 # number of sinogram angles ITA = 10 # number of iterations a ITB = 100 # number of iterations b angles = np.linspace(0, np.pi, A) im = get_original(N) sino = radontea.radon_p...
/radontea-0.4.14.tar.gz/radontea-0.4.14/examples/comparison_parallel.py
0.76856
0.772616
comparison_parallel.py
pypi
from typing import Any, Dict, List, Set, Tuple, Union NodesType = List[Any] EdgesType = Tuple[Tuple[Any, Any], ...] ArrowType = Dict[Any, Set[Any]] def get_parents_and_children( nodes: NodesType, edges: EdgesType ) -> Tuple[ArrowType, ArrowType]: """ Given the nodes and edges of a digraph, produces dicts...
/serialization/_math.py
0.934727
0.730278
_math.py
pypi
# { # "bucket": "example_bucket", # "id": "79826.5", # "index_pool": ".rgw.buckets", # "marker": "79826.5", # "master_ver": 0, # "max_marker": "", # "mtime": 0, # "owner": "example_user", # "pool": ".rgw.buckets", # "usage": { # "rgw.main": { # "num_objects": 1, # ...
/radosgw-admin-1.7.2.tar.gz/radosgw-admin-1.7.2/radosgw/bucket.py
0.827759
0.231023
bucket.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_virtual_service.py
0.794584
0.190103
alteon_config_virtual_service.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_virtual_server.py
0.832509
0.172137
alteon_config_virtual_server.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_ssl_client_auth_policy.py
0.851799
0.161485
alteon_config_ssl_client_auth_policy.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_system_alerts.py
0.841598
0.18188
alteon_config_system_alerts.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_ssl_server_auth_policy.py
0.839175
0.175998
alteon_config_ssl_server_auth_policy.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_high_availability.py
0.797241
0.18228
alteon_config_high_availability.py
pypi
from __future__ import absolute_import, division, print_function __metaclass__ = type from ansible.module_utils.basic import AnsibleModule import traceback from ansible.module_utils.network.radware.common import RadwareModuleError from ansible.module_utils.network.radware.alteon import AlteonConfigurationModule, \ ...
/radware-ansible-common-alteon-0.3b21.tar.gz/radware-ansible-common-alteon-0.3b21/ansible/modules/network/radware/alteon_config_server_group.py
0.858006
0.264752
alteon_config_server_group.py
pypi
from abc import ABCMeta from abc import abstractmethod import copy from configparser import RawConfigParser import os.path from . import radware_provider_exceptions as ex TYPE = 0 DEFAULT_VALUE = 1 VALUE = 2 def bull(str): return str.lower() == 'true' CONFIG_TEMPLATE = { 'vdirect_ip': ['str', None, None]...
/radware_octavia_yoga_driver-4.24.0.post1.tar.gz/radware_octavia_yoga_driver-4.24.0.post1/radware_octavia_yoga_driver/config.py
0.553505
0.268868
config.py
pypi
# RADWave - _Wave analysis from Altimeter data_ [![Docker Cloud Automated build](https://img.shields.io/docker/automated/pyreefmodel/radwave)](https://hub.docker.com/r/pyreefmodel/radwave) [![PyPI](https://img.shields.io/pypi/v/RADWave)](https://pypi.org/project/RADWave/) [![Documentation Status](https://readthedocs....
/radwave-1.0.8.tar.gz/radwave-1.0.8/README.md
0.53437
0.957198
README.md
pypi
import sys from os import makedirs, remove, stat from os.path import dirname, isdir, isfile, join import matplotlib.pyplot as plt import mne import numpy as np import pandas as pd from matplotlib.patches import Rectangle from matplotlib.widgets import Button, RectangleSelector from mne.channels._standard_montage_utils...
/raek_mne-2022.11.1.tar.gz/raek_mne-2022.11.1/raek_mne/raek_mne.py
0.660391
0.4953
raek_mne.py
pypi
from enum import Enum from typing import Union, Any from .mongo import register_encoder __all__ = [ "FlagCodeEnum", "FlagSingleEnum", "FlagDoubleEnum", "FlagPrefixedDoubleEnum", "FlagOutcomeMixin", "is_flag_class", "is_flag_single", "is_flag_double", "is_flag_instance" ] def is_flag_instance(inst: Any) -> ...
/raenonx_toolbox-0.0.5-py3-none-any.whl/rxtoolbox/flags/main.py
0.930094
0.271179
main.py
pypi
# RAET (Reliable Asynchronous Event Transport) Protocol ## Motivation Modern large scale distributed application architectures, wherein components are distributed across the internet on multiple hosts and multiple CPU cores, are often based on a messaging or event bus that allows the various distributed components to...
/raet-0.6.8.tar.gz/raet-0.6.8/README.md
0.774669
0.889721
README.md
pypi
==== RAET ==== by SaltStack ============ .. rubric:: Reliable Asynchronous Event Transport Protocol Contents: .. toctree:: :maxdepth: 1 topics/introduction topics/installation Motivation ========== Modern large scale distributed application architectures where components are distributed across the int...
/raet-0.6.8.tar.gz/raet-0.6.8/docs/index.rst
0.855097
0.652996
index.rst
pypi
============== Tutorial ============== RAET is written in python. RAET uses Stack objects. There are currently two types of RAET Stacks. - A RoadStack provides communication between IP hosts via UDP sockets - A LaneStack provides communication between processes on the same host via Unix Domain Sockets (UXD) on unix o...
/raet-0.6.8.tar.gz/raet-0.6.8/docs/topics/tutorial.rst
0.7324
0.734512
tutorial.rst
pypi
============ Introduction ============ Currently RAET supports two types of communication. - Host to host communication over UDP/IP sockets - Same host interprocess communication over Unix Domain (UXD) Sockets .. figure:: /images/RaetMetaphor.png :alt: RAET application archtecture diagram The archtecture of...
/raet-0.6.8.tar.gz/raet-0.6.8/docs/topics/introduction.rst
0.782912
0.842992
introduction.rst
pypi
from ioflo.aid.odicting import odict from BitVector import BitVector import data def getStuff(name='master', size=1024, number=0): ''' Generate padding stuff for message data unique for the given sender name and the message number and size. Always returns equal result for equal arguments. Can be used as f...
/raet-0.6.8.tar.gz/raet-0.6.8/systest/lib/data.py
0.696784
0.660569
data.py
pypi
from subprocess import call, check_output SU_CMD = ['sudo'] NETEM_DEL_LO_ROOT_CMD = ['tc', 'qdisc', 'del', 'dev', 'lo', 'root'] NETEM_ADD_LO_ROOT_CMD = ['tc', 'qdisc', 'add', 'dev', 'lo', 'root', 'netem'] NETEM_SHOW_LO = ['tc', 'qdisc', 'show', 'dev', 'lo'] def delay(time=100, jitter=10, correlation=25): ''' ...
/raet-0.6.8.tar.gz/raet-0.6.8/systest/lib/netem.py
0.732018
0.258642
netem.py
pypi
from ioflo.base.odicting import odict from BitVector import BitVector import data def getStuff(name='master', size=1024, number=0): ''' Generate padding stuff for message data unique for the given sender name and the message number and size. Always returns equal result for equal arguments. Can be used as ...
/raetp-0.6.3.tar.gz/raetp-0.6.3/systest/lib/data.py
0.700588
0.646237
data.py
pypi
from subprocess import call, check_output SU_CMD = ['sudo'] NETEM_DEL_LO_ROOT_CMD = ['tc', 'qdisc', 'del', 'dev', 'lo', 'root'] NETEM_ADD_LO_ROOT_CMD = ['tc', 'qdisc', 'add', 'dev', 'lo', 'root', 'netem'] NETEM_SHOW_LO = ['tc', 'qdisc', 'show', 'dev', 'lo'] def delay(time=100, jitter=10, correlation=25): ''' ...
/raetp-0.6.3.tar.gz/raetp-0.6.3/systest/lib/netem.py
0.732018
0.258642
netem.py
pypi
from prettytable import PrettyTable import pandas as pd class Column(object): """ A Columns is an in-memory reference to a column in a particular table. You can use it to do some basic DB exploration and you can also use it to execute simple queries. """ def __init__(self, con, query_template...
/rafa-db-0.6.0.tar.gz/rafa-db-0.6.0/db/column.py
0.774413
0.243665
column.py
pypi
from prettytable import PrettyTable import pandas as pd from .column import Column, ColumnSet from .query_templates import query_templates class Table(object): """ A Table is an in-memory reference to a table in a database. You can use it to get more info about the columns, schema, etc. of a table and you ...
/rafa-db-0.6.0.tar.gz/rafa-db-0.6.0/db/table.py
0.648244
0.218367
table.py
pypi
queries = { "column": { "head": "select {column} from {table} limit {n};", "all": "select {column} from {table};", "unique": "select distinct {column} from {table};", "sample": "select {column} from {table} order by random() limit {n};" }, "table": { "select": "select...
/rafa-db-0.6.0.tar.gz/rafa-db-0.6.0/db/queries/redshift.py
0.411347
0.35006
redshift.py
pypi
queries = { "dbtype": "postgres", "column": { "head": 'select "{column}" from "{table}" limit {n};', "all": 'select "{column}" from "{table}";', "unique": 'select distinct "{column}" from "{table}";', "sample": 'select "{column}" from "{table}" order by random() limit {n}' },...
/rafa-db-0.6.0.tar.gz/rafa-db-0.6.0/db/queries/postgres.py
0.450843
0.252453
postgres.py
pypi
import logging from pathlib import Path from typing import Dict, List import click logging.basicConfig(level="DEBUG", format="%(asctime)s - %(name)s - %(levelname)s - %(message)s") logger = logging.getLogger(__name__) @click.command() @click.option( "--input", "-i", default="./", help="Path where to ...
/rafa_puc_ia_csv_converter-0.1.0.tar.gz/rafa_puc_ia_csv_converter-0.1.0/rafa_puc_ia_csv_converter/converter.py
0.653127
0.285493
converter.py
pypi
from .struct import OTBRData as OTBRDhelpper from ..extlib.CMDAccess.CMDAccess import CMDAccess from ..extlib.TyperExt.TyperExt import TyperExt class OTBRMgr: def __init__(self) -> None: self._CMDAccess = CMDAccess() self._TyperExt = TyperExt() pass def pass_hex(self, context): ...
/rafaelmicro_matter_tool-0.0.0-py3-none-any.whl/matter_tool/api/OTBRMgr.py
0.422147
0.169475
OTBRMgr.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from ._jsii import * import aws_cdk.aws_ec2 as _aws_cdk_aws_ec2_ceddda9d import constructs as _constructs_77d1e7e8 class FsxOntap( _constructs_77d1e7e8....
/rafalkrol_xyz.cdk_fsx_ontap-1.0.5-py3-none-any.whl/rafalkrol-xyz/cdk_fsx_ontap/__init__.py
0.546496
0.169166
__init__.py
pypi
from .struct import OTBRData as OTBRDhelpper from ..extlib.CMDAccess.CMDAccess import CMDAccess from ..extlib.TyperExt.TyperExt import TyperExt class OTBRMgr: def __init__(self) -> None: self._CMDAccess = CMDAccess() self._TyperExt = TyperExt() pass def pass_hex(self, context): ...
/rafalmicro_matter_tool-0.0.0-py3-none-any.whl/matter_tool/api/OTBRMgr.py
0.422147
0.169475
OTBRMgr.py
pypi
# Don't connect with the Copyright comment above! # Version 31.05.2019 import re from rafcon.utils import log logger = log.get_logger(__name__) class PddlRequirementFinder(): """ The PddlRequirementFiner, tries to figure out requirments from a given action definition. It's doing this according to PDDL ...
/rafcon-task-planner-plugin-1.5.2.tar.gz/rafcon-task-planner-plugin-1.5.2/source/rafcontpp/logic/pddl_requirement_finder.py
0.668339
0.271104
pddl_requirement_finder.py
pypi