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
from copy import deepcopy from builtins import str from rayvision_sync.utils import get_task_status_description from rayvision_sync.constants import TASK_END_STATUS_CODE_LIST # pylint: disable=useless-object-inheritance class RayvisionManageTask(object): """Processing asset information for a task.""" def ...
/rayvision_sync-2.8.8.6.tar.gz/rayvision_sync-2.8.8.6/rayvision_sync/manage.py
0.811788
0.259019
manage.py
pypi
class RayvisionError(Exception): """Raise RayvisionError if something wrong.""" def __init__(self, error_code, error, *args, **kwargs): """Initialize error message, inherited Exception. Args: error_code (int): Error status code. error (str): Error message. a...
/rayvision_sync-2.8.8.6.tar.gz/rayvision_sync-2.8.8.6/rayvision_sync/rayvision_raysync/exception.py
0.865224
0.245017
exception.py
pypi
# Import built-in models from __future__ import unicode_literals from builtins import str import codecs import json import logging import platform import re import sys # Python version. VERSION = sys.version_info[0] def json_load(json_path, encoding='utf-8'): """Load the data from the json file. Args: ...
/rayvision_utils-1.2.2.1.tar.gz/rayvision_utils-1.2.2.1/rayvision_utils/utils.py
0.662469
0.213357
utils.py
pypi
# Import built-in modules import logging import os import subprocess import sys # Import local modules from rayvision_utils.utils import str2unicode from rayvision_utils.utils import VERSION # pylint: disable=useless-object-inheritance class Cmd(object): """Execute the cmd command.""" @classmethod def...
/rayvision_utils-1.2.2.1.tar.gz/rayvision_utils-1.2.2.1/rayvision_utils/cmd.py
0.560012
0.166269
cmd.py
pypi
# Import built-in modules import os import sys # Import local modules from rayvision_utils import utils from rayvision_utils.exception.exception import RayvisionError # pylint: disable=useless-object-inheritance class TipsInfo(object): """Handling errors encountered in the analysis.""" def __init__(self, s...
/rayvision_utils-1.2.2.1.tar.gz/rayvision_utils-1.2.2.1/rayvision_utils/exception/tips.py
0.560253
0.239127
tips.py
pypi
from future.moves.urllib.request import HTTPErrorProcessor class RayvisionError(Exception): """Raise RayvisionError if something wrong.""" def __init__(self, error_code, error, *args, **kwargs): """Initialize error message, inherited Exception. Args: error_code (int): Error stat...
/rayvision_utils-1.2.2.1.tar.gz/rayvision_utils-1.2.2.1/rayvision_utils/exception/exception.py
0.944808
0.172904
exception.py
pypi
import random, json, threading, time, itertools, copy import requests HANDSHAKE_URL = "http://localhost:54235/razer/chromasdk" REQUIREMENTS = ["core", "device", "version"] MIN_VERSIONS = [3, 3, 3] INITIALIZATION_INFOS = { "title": "Razer chroma keyboard backlight python library.", "description": "Libra...
/razer_chroma_keyboard-0.0.1.post2.tar.gz/razer_chroma_keyboard-0.0.1.post2/src/razer_chroma_keyboard/api.py
0.721841
0.23219
api.py
pypi
import json import os import subprocess from random import randint from typing import List from razer_cli.razer_cli import settings def hex_to_decimal(hex_color): r = int(hex_color[0:2], 16) g = int(hex_color[2:4], 16) b = int(hex_color[4:6], 16) return [r, g, b] def get_x_color(resource_name: str...
/razer_cli-2.2.0-py3-none-any.whl/razer_cli/razer_cli/util.py
0.498779
0.197135
util.py
pypi
import argparse import sys from typing import List def read_args(input_args: List[str]) -> argparse.Namespace: parser = argparse.ArgumentParser() parser.add_argument("-man", "--manual", nargs="*", help="Print help details for given feature(s)", action="store")...
/razer_cli-2.2.0-py3-none-any.whl/razer_cli/razer_cli/parser/argument_parser.py
0.407216
0.209369
argument_parser.py
pypi
# Survey Study: a tutorial This Jupyter notebook aims to help razorback users to compute impedance estimates from the data set shown in the paper in different ways for a two stage remote reference configuration: 1- Ordinary Least Squares 2- M-Estimator 3- Bounded Influence This tutorial is designed for Metronix ...
/razorback-0.4.3a2.tar.gz/razorback-0.4.3a2/docs/source/tutorials/survey-study.ipynb
0.494873
0.947914
survey-study.ipynb
pypi
# Handling time-series data Before processing any data, we need to handle all data we have: select specific subsets of these data and gather them. In practice, time data come with multiple sampling rates and time intervals. Data of one channel can be split in multiple files. Razorback provides tools to help in the ta...
/razorback-0.4.3a2.tar.gz/razorback-0.4.3a2/docs/source/tutorials/handling-time-series.ipynb
0.596786
0.988096
handling-time-series.ipynb
pypi
import networkx import math import warnings import matplotlib.pyplot as plt warnings.filterwarnings('ignore') '''Visualize Binomial Options Pricing (not meant for large scale n) Currently supports American and European options pricing, replicating portfolio positions and probabilities ''' class vanilla_bin...
/razrda_binomial_options_pricing-1.0.2.tar.gz/razrda_binomial_options_pricing-1.0.2/razrda_binomialoptionspricing/BinomialOptionsPricing.py
0.417865
0.424293
BinomialOptionsPricing.py
pypi
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 ...
/rb_dsnd_probability-0.1.tar.gz/rb_dsnd_probability-0.1/rb_dsnd_probability/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
class Node: def __init__(self, data, color='red'): self.color = color self.data = data self.right = None self.left = None self.p = None def __str__(self): return "{}, {}".format(self.data, self.color) class RBT: nil = None def __init__(self): s...
/rb_tree-0.0.6.tar.gz/rb_tree-0.0.6/rb_tree/__init__.py
0.769124
0.487612
__init__.py
pypi
from functools import partial from rb.utils import iteritems class Promise(object): """A promise object that attempts to mirror the ES6 APIs for promise objects. Unlike ES6 promises this one however also directly gives access to the underlying value and it has some slightly different static method na...
/rb3-1.8.1a0.tar.gz/rb3-1.8.1a0/rb/promise.py
0.870101
0.171581
promise.py
pypi
import hashlib import math import six from bisect import bisect def md5_bytes(key): # Py2: map(ord, hashlib.md5(key).digest()) return list(hashlib.md5(six.ensure_binary(key)).digest()) class Ketama(object): """This class implements the Ketama consistent hashing algorithm. """ def __init__(self...
/rb3-1.8.1a0.tar.gz/rb3-1.8.1a0/rb/ketama.py
0.705582
0.325119
ketama.py
pypi
import fcntl import array import select import termios class BasePoller(object): is_available = False def __init__(self): self.objects = {} def register(self, key, f): self.objects[key] = f def unregister(self, key): return self.objects.pop(key, None) def poll(self, tim...
/rb3-1.8.1a0.tar.gz/rb3-1.8.1a0/rb/poll.py
0.455683
0.192748
poll.py
pypi
from __future__ import unicode_literals import os from os.path import splitext from reviewbot.tools import Tool from reviewbot.utils.filesystem import make_tempfile from reviewbot.utils.process import execute, is_exe_in_path class UncrustifyTool(Tool): """Review Bot tool to run formatting tool uncrustify.""" ...
/rbExtendedBots-0.0.2.tar.gz/rbExtendedBots-0.0.2/extended_bots/uncrustify.py
0.778691
0.175185
uncrustify.py
pypi
RBApy ============================== RBApy is a open-source Python package for the automated generation of bacterial Resource Balance Analysis (RBA) models (https://rba.inrae.fr). Existing RBA models for *Bacillus subtilis 168* (wild type), *Escherichia coli K-12* (wild type) and CO2-fixing *Escherichia coli K-12* (an...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/README.rst
0.847084
0.947817
README.rst
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports import rba.xml class DefaultTargets(object): """ Class initializing default target structures used by RBA. Attributes ---------- default : rba.prerba.default_data.DefaultData Defa...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/default_targets.py
0.911505
0.314774
default_targets.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import import pandas class CurationData(object): """ Read/write data in a csv file. Parameters ---------- missing_tag : str tag used when some piece of information is missing. data : pandas.DataFram...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/curation_data.py
0.869922
0.46478
curation_data.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import class PipelineParameters(object): """ Class storing pipeline parameters. Attributes ---------- obligatory_tags : list of str tags that a parameter file must contain. optional_tags : list of st...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/pipeline_parameters.py
0.765593
0.203391
pipeline_parameters.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports import rba.xml def create_processing(processing_map, set_, inputs): """Create rba.xml.Processing with given information.""" processing = rba.xml.Processing(processing_map, set_) for id_ in inputs:...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/default_processes.py
0.882339
0.422624
default_processes.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports import rba.xml from rba.xml import Function GROWTH_RATE = 'growth_rate' def build_aggregate(id_, fn_refs): """Build aggregate with given identifiers and function references.""" result = rba.xml.Aggre...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/default_data.py
0.881526
0.311636
default_data.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import import os.path import warnings from collections import namedtuple import pandas from rba.prerba.curation_data import CurationData from rba.prerba.uniprot_data import Cofactor Metabolite = namedtuple('Metabolite', 'name sbml_...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/manual_annotation.py
0.689619
0.200245
manual_annotation.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import from itertools import chain import pandas from rba.prerba.macromolecule import Protein from rba.prerba.uniprot_data import UniprotData from rba.prerba.manual_annotation import ( CuratedCofactors, CuratedSubunits, CuratedL...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/prerba/protein_data.py
0.799325
0.271955
protein_data.py
pypi
import ConfigParser import numpy as np import matplotlib.pyplot as plt plt.style.use('ggplot') from utils import * def get_exp_gr(exp_id, df, config): column_name = config.get('Experiment', 'growth_rate_column') return df.loc[exp_id][column_name] def export_solution(compartment_data, solution, config): ...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/estim/prot_per_compartment.py
0.450843
0.314103
prot_per_compartment.py
pypi
import ConfigParser import pandas as pd import rba from utils import * import cplex def set_bounds(fba_model, flux_data, config): lb_column = config.get('FluxData', 'lb_column') ub_column = config.get('FluxData', 'ub_column') variable_names = fba_model.variables.get_names() for fluxes in flux_data....
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/estim/kapp.py
0.518546
0.262475
kapp.py
pypi
from collections import defaultdict import ConfigParser import matplotlib.pyplot as plt plt.style.use('ggplot') from utils import * def export_solution(ne_compartment_data, solution, config): fits_out_file = config.get('Output', 'fits_file') comp_out_file = config.get('Output', 'compartment_file') out_f...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/estim/nonenz_per_compartment.py
0.468791
0.346293
nonenz_per_compartment.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports from rba.core.functions import build_function, build_aggregate class Parameters(object): """ Class storing RBA parameters (including aggregates). Attributes ---------- parameters : dict ...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/core/parameters.py
0.837387
0.38243
parameters.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports from rba.core.metabolism import Metabolism from rba.core.parameters import Parameters from rba.core.species import Species from rba.core.density import Density from rba.core.enzymes import Enzymes from rba.core...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/core/constraint_blocks.py
0.840259
0.343947
constraint_blocks.py
pypi
# python 2/3 compatibility from __future__ import division, print_function, absolute_import # local imports from rba.core.parameter_vector import ParameterVector class Density(object): """ Class computing density-related substructures. Attributes ---------- compartments : list of str co...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/core/density.py
0.787196
0.448004
density.py
pypi
from __future__ import absolute_import, division, print_function import rba def set_efficiencies(rba_model, efficiency_file): EfficiencySetter(rba_model, efficiency_file) class EfficiencySetter(object): def __init__(self, rba_model, efficiency_file): self.model = rba_model self._parameter_u...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/utils/efficiencies.py
0.719679
0.161982
efficiencies.py
pypi
from __future__ import absolute_import, division, print_function import itertools import numpy import scipy.io import os.path import collections import json class Results(object): def __init__(self, model, matrices, solver): self._model = model self._matrices = matrices self._solver = so...
/rbapy-2.0.1.tar.gz/rbapy-2.0.1/rba/utils/results.py
0.805556
0.373962
results.py
pypi
# rbatools rbatools is a programming interface for Resource Balance Analysis (RBA) models (https://rba.inrae.fr) based on the RBApy package (https://github.com/SysBioInra/RBApy). It includes methods to solve, modify, and analyse RBA models and to export model information and simulation results into various formats. #...
/rbatools-1.0.3.tar.gz/rbatools-1.0.3/README.md
0.776792
0.716095
README.md
pypi
``` import numpy from rbatools.rba_problem_matrix import ProblemMatrix from rbatools.rba_lp import LinearProblem from scipy.sparse import coo_matrix ``` # Solving and manipulating a simple linear optimization problem with rbatools #### For instructional purposes we use the example-LP provided here: https://developers...
/rbatools-1.0.3.tar.gz/rbatools-1.0.3/tutorials/jupyter_notebooks/Linear_optimization_with_rbatools.ipynb
0.5
0.942082
Linear_optimization_with_rbatools.ipynb
pypi
class Library: """Base class for a collection of library function names. """ @staticmethod def get(libname, _cache={}): if libname in _cache: return _cache[libname] if libname == 'stdlib': r = Stdlib() elif libname == 'stdio': r = Stdio() ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/libfuncs.py
0.69233
0.235592
libfuncs.py
pypi
__all__ = ['StructureNumbaType', 'StructureNumbaPointerType', 'make_numba_struct'] import operator from llvmlite import ir from numba.core import datamodel, extending, types, imputils, typing, cgutils, typeconv typing_registry = typing.templates.builtin_registry lowering_registry = imputils.builtin_registry int8_t ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/structure_type.py
0.713631
0.376967
structure_type.py
pypi
import ctypes import json import warnings from . import libfuncs from .utils import parse_version class TargetInfo(object): """Holds target device information. The information within a TargetInfo instance can be accessed only when the instance has been activated as a context manager:: target_info ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/targetinfo.py
0.693161
0.187821
targetinfo.py
pypi
from typing import List, Union from numba.core import extending, funcdesc, types, typing from rbc.typesystem import Type from rbc.targetinfo import TargetInfo from rbc.errors import UnsupportedError, DeprecationError from rbc.utils import validate_devices class External: @classmethod def external(cls, signat...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/external.py
0.849191
0.37014
external.py
pypi
import re import warnings from collections import defaultdict, deque from contextlib import contextmanager from typing import Optional, Dict, Set import llvmlite.binding as llvm from llvmlite import ir from numba.core import cgutils, codegen, compiler, compiler_lock, cpu from numba.core import errors as nb_errors fro...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/irtools.py
0.661814
0.164416
irtools.py
pypi
from rbc.heavydb import Array, ArrayPointer, type_can_asarray from rbc.stdlib import Expose __all__ = ["argmax", "argmin", "nonzero", "where"] expose = Expose(globals(), "searching_functions") @expose.implements("argmax") def _array_api_argmax(x): """ Returns the indices of the maximum values along a specif...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/stdlib/searching_functions.py
0.629205
0.4165
searching_functions.py
pypi
import numpy as np from numba.core import errors, extending, types from numba.np import numpy_support from rbc import typesystem from rbc.externals.stdio import printf from rbc.heavydb import ArrayPointer from rbc.stdlib import Expose __all__ = [ 'min', 'max', 'mean', 'prod', 'sum', 'std', 'var' ] expose = Expo...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/stdlib/statistical_functions.py
0.606265
0.282267
statistical_functions.py
pypi
from typing import NamedTuple import numpy as np from numba.core import extending, types from numba.np.numpy_support import as_dtype, from_dtype from rbc.errors import NumbaTypeError from rbc.heavydb import ArrayPointer from rbc.stdlib import Expose from rbc.typesystem import Boolean8 __all__ = [ "astype", "...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/stdlib/data_type_functions.py
0.839767
0.30452
data_type_functions.py
pypi
from numba.core import types from rbc.heavydb import Array, ArrayPointer from rbc.stdlib import Expose __all__ = ["unique_all", "unique_counts", "unique_inverse", "unique_values"] expose = Expose(globals(), "set_functions") @expose.not_implemented("unique_all") def _array_api_unique_all(x): """ Returns the...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/stdlib/set_functions.py
0.613121
0.557424
set_functions.py
pypi
from numba import literal_unroll from rbc.errors import NumbaTypeError from rbc.heavydb import ArrayPointer from rbc.stdlib import Expose __all__ = [ "concat", "expand_dims", "flip", "permute_dims", "reshape", "roll", "squeeze", "stack", ] expose = Expose(globals(), "manipulation_func...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/stdlib/manipulation_functions.py
0.76207
0.418756
manipulation_functions.py
pypi
__all__ = ["sizeof", "cast"] from llvmlite import ir from numba.core import extending, imputils, typing, typeconv from numba.core import types as nb_types from rbc.typesystem import Type typing_registry = typing.templates.builtin_registry lowering_registry = imputils.builtin_registry @extending.intrinsic def sizeo...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/externals/macros.py
0.72487
0.283533
macros.py
pypi
from collections import namedtuple from . import make_intrinsic _arg = namedtuple("arg", ("name", "ty")) cmath = { # Trigonometric "cos": ("double", [_arg(name="x", ty="double")]), "cosf": ("float", [_arg(name="x", ty="float")]), "sin": ("double", [_arg(name="x", ty="double")]), "sinf": ("float", ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/externals/cmath.py
0.566978
0.673232
cmath.py
pypi
import inspect from rbc.targetinfo import TargetInfo from numba.core import funcdesc def gen_codegen(fn_name): def codegen(context, builder, sig, args): # Need to retrieve the function name again fndesc = funcdesc.ExternalFunctionDescriptor(fn_name, sig.return_type, sig.args) func = contex...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/externals/__init__.py
0.530966
0.161949
__init__.py
pypi
import ctypes import _ctypes import pickle import numpy as np def fromobject(thrift, tcls, obj): """Create thrift object with type `tcls` from a Python object. """ if isinstance(obj, tcls): return obj return globals().get(tcls.__name__, tcls)(thrift, obj) def toobject(thrift, tobj, cls=None...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/thrift/types.py
0.567817
0.223398
types.py
pypi
__all__ = ["HeavyDBGeoMultiPointType", "GeoMultiPoint"] from typing import List from numba.core import extending from numba.core import types as nb_types from . import geopoint from .geo_nested_array import (GeoNestedArray, GeoNestedArrayNumbaType, HeavyDBGeoNestedArray, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geomultipoint.py
0.920692
0.398641
geomultipoint.py
pypi
__all__ = ['HeavyDBColumnListType', 'ColumnList'] import operator from numba.core import extending, cgutils, datamodel, imputils from .buffer import Buffer from numba.core import types as nb_types from rbc.typesystem import Type from rbc import structure_type from rbc.targetinfo import TargetInfo class HeavyDBColu...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_list.py
0.775137
0.219672
column_list.py
pypi
import math from rbc.externals import gen_codegen, dispatch_codegen from numba.core.typing.templates import infer_global from numba.core.imputils import lower_builtin from numba.core.typing.templates import ConcreteTemplate, signature from numba.types import float32, float64, int32, int64, uint64, intp # Adding missi...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/mathimpl.py
0.607314
0.320077
mathimpl.py
pypi
__all__ = ["HeavyDBGeoLineStringType", "GeoLineString"] from typing import List from numba.core import extending from numba.core import types as nb_types from . import geopoint from .geo_nested_array import (GeoNestedArray, GeoNestedArrayNumbaType, HeavyDBGeoNestedArray, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geolinestring.py
0.912461
0.312304
geolinestring.py
pypi
import operator from rbc import typesystem from rbc.heavydb import HeavyDBMetaType from rbc.external import external from rbc.targetinfo import TargetInfo from numba.core import extending, cgutils, datamodel from numba.core import types as nb_types from .timestamp import TimestampNumbaType, Timestamp __all__ = [ "...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/year_month_time_interval.py
0.789923
0.399109
year_month_time_interval.py
pypi
__all__ = ['TextEncodingNonePointer', 'TextEncodingNone', 'HeavyDBTextEncodingNoneType'] import operator from typing import Union from llvmlite import ir from numba.core import cgutils, extending from numba.core import types as nb_types from numba.core.pythonapi import PY_UNICODE_1BYTE_KIND from numba.cpython.unicode...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/text_encoding_none.py
0.781747
0.247919
text_encoding_none.py
pypi
import operator from llvmlite import ir from .array import ArrayPointer, Array from rbc import typesystem from numba.core import extending, types int8_t = ir.IntType(8) int32_t = ir.IntType(32) int64_t = ir.IntType(64) void_t = ir.VoidType() def overload_binary_cmp_op(op): def heavydb_operator_impl(a, e): ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/python_operators.py
0.482185
0.320183
python_operators.py
pypi
import operator import numpy as np from rbc import typesystem from rbc.heavydb import HeavyDBMetaType from rbc.external import external from rbc.targetinfo import TargetInfo from numba.core import extending, cgutils, datamodel from numba.core import types as nb_types from llvmlite import ir from typing import Union __...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/timestamp.py
0.842539
0.325139
timestamp.py
pypi
__all__ = ['ArrayPointer', 'Array', 'HeavyDBArrayType', 'type_can_asarray'] from typing import Optional, Union from llvmlite import ir from numba import types as nb_types from numba.core import cgutils, extending from rbc import errors, typesystem from .buffer import (Buffer, BufferPointer, HeavyDBBufferType, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/array.py
0.824921
0.318406
array.py
pypi
__all__ = [ "GeoNestedArrayNumbaType", "HeavyDBGeoNestedArray", "GeoNestedArray", "heavydb_geo_fromCoords_vec", "heavydb_geo_fromCoords_vec2", "heavydb_geo_fromCoords_vec3", "heavydb_geo_toCoords_vec", "heavydb_geo_toCoords_vec2", "heavydb_geo_toCoords_vec3", ] import operator from...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geo_nested_array.py
0.683631
0.252154
geo_nested_array.py
pypi
__all__ = [ "HeavyDBOutputColumnGeoPointType", "HeavyDBColumnGeoPointType", "ColumnGeoPoint", ] import operator from llvmlite import ir from numba.core import cgutils, extending from rbc import typesystem from . import geopoint from .column_flatbuffer import (ColumnFlatBuffer, ColumnFlatBufferPointer, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_geopoint.py
0.786705
0.287981
column_geopoint.py
pypi
__all__ = ["HeavyDBGeoPolygonType", "GeoPolygon"] from typing import List from numba.core import extending from numba.core import types as nb_types from . import geolinestring from .geo_nested_array import (GeoNestedArray, GeoNestedArrayNumbaType, HeavyDBGeoNestedArray, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geopolygon.py
0.915823
0.436442
geopolygon.py
pypi
__all__ = ["HeavyDBGeoMultiPolygonType", "GeoMultiPolygon"] from typing import List from numba.core import extending from numba.core import types as nb_types from . import geopolygon from .geo_nested_array import (GeoNestedArray, GeoNestedArrayNumbaType, HeavyDBGeoNestedArray, ...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geomultipolygon.py
0.939366
0.326902
geomultipolygon.py
pypi
__all__ = ['HeavyDBOutputColumnArrayType', 'HeavyDBColumnArrayType', 'ColumnArray'] import operator from typing import TypeVar from llvmlite import ir from numba.core import cgutils, extending from numba.core import types as nb_types from rbc import typesystem from . import array from .column import HeavyDBColumnTy...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_array.py
0.828072
0.275492
column_array.py
pypi
import numpy as np from llvmlite import ir from rbc.externals import gen_codegen, dispatch_codegen from numba.cpython import numbers from numba.np import ufunc_db, npyfuncs from numba.core import types def np_logaddexp_impl(context, builder, sig, args): # based on NumPy impl. # https://github.com/numpy/numpy/...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/npyimpl.py
0.511961
0.287843
npyimpl.py
pypi
__all__ = ['Point2D'] from llvmlite import ir from numba.core import cgutils, extending from numba.core import types as nb_types from rbc import typesystem from .metatype import HeavyDBMetaType i32 = ir.IntType(32) i64 = ir.IntType(64) class Point2D(metaclass=HeavyDBMetaType): """ A Point2D struct is jus...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/point2d.py
0.803868
0.60013
point2d.py
pypi
__all__ = [ "HeavyDBOutputColumnTextEncodingNoneType", "HeavyDBColumnTextEncodingNoneType", "ColumnTextEncodingNone", ] import operator from llvmlite import ir from numba.core import cgutils, extending from rbc import typesystem from rbc.external import external from .buffer import BufferPointer from .c...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_text_encoding_none.py
0.761006
0.169131
column_text_encoding_none.py
pypi
__all__ = [ "HeavyDBOutputColumnFlatBufferType", "HeavyDBColumnFlatBufferType", "ColumnFlatBuffer", "ColumnFlatBufferPointer", "ColumnFlatBufferType", ] import operator from typing import TypeVar from llvmlite import ir from numba.core import cgutils, extending from numba.core import types as nb_t...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_flatbuffer.py
0.815269
0.267235
column_flatbuffer.py
pypi
__all__ = ['HeavyDBTableFunctionManagerType', 'TableFunctionManager'] from numba.core import extending from numba.core import types as nb_types from rbc.errors import RequireLiteralValue, UnsupportedError from rbc.external import external from rbc.targetinfo import TargetInfo from .metatype import HeavyDBMetaType f...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/table_function_manager.py
0.643777
0.317559
table_function_manager.py
pypi
import operator from rbc import typesystem from rbc.heavydb import HeavyDBMetaType from rbc.external import external from rbc.targetinfo import TargetInfo from rbc.errors import UnsupportedError from numba.core import extending, cgutils, datamodel from numba.core import types as nb_types from .timestamp import Timestam...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/day_time_interval.py
0.804444
0.324931
day_time_interval.py
pypi
__all__ = ['HeavyDBColumnListArrayType', 'ColumnListArray'] import operator from rbc import typesystem from .column_list import HeavyDBColumnListType, ColumnList from numba.core import extending, cgutils from numba.core import types as nb_types from llvmlite import ir i1 = ir.IntType(1) i8 = ir.IntType(8) i8p = i8....
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/column_list_array.py
0.761006
0.245221
column_list_array.py
pypi
__all__ = ["HeavyDBGeoMultiLineStringType", "GeoMultiLineString"] from typing import List from numba.core import extending from numba.core import types as nb_types from . import geolinestring from .geo_nested_array import (GeoNestedArray, GeoNestedArrayNumbaType, HeavyDBGeoNestedArray...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/geomultilinestring.py
0.904873
0.242671
geomultilinestring.py
pypi
__all__ = ['StringDictionaryProxyNumbaType', 'StringDictionaryProxy'] from llvmlite import ir from numba.core import extending from numba.core import types as nb_types from numba.core.pythonapi import PY_UNICODE_1BYTE_KIND from numba.cpython.unicode import _empty_string, _set_code_point from rbc.errors import NumbaT...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/string_dict_proxy.py
0.63273
0.169028
string_dict_proxy.py
pypi
import operator import numpy as np from llvmlite import ir from numba.core import cgutils, datamodel, extending, imputils, types from rbc import typesystem from rbc.targetinfo import TargetInfo from .allocator import allocate_varlen_buffer from .metatype import HeavyDBMetaType int8_t = ir.IntType(8) int32_t = ir.In...
/rbc-project-0.13.0.tar.gz/rbc-project-0.13.0/rbc/heavydb/buffer.py
0.688573
0.301359
buffer.py
pypi
"""Compact syntax to define simple "struct-like" (or "record-like", "bean-like") classes.""" from funcsigs import Parameter from funcsigs import signature from collections import OrderedDict _IGNORED_ATTRS = frozenset(['__module__', '__dict__', '__weakref__']) class CaseClassMixin(object): """Mixin to add "cas...
/rbco.caseclasses-1.0.2.zip/rbco.caseclasses-1.0.2/rbco/caseclasses/__init__.py
0.941493
0.343012
__init__.py
pypi
from optparse import OptionParser import sys from traceback import print_tb from prdg.util.emails import EmailIO class CLIProgram(object): """A helper class to write Command Line Interface programs.""" usage = '' """An string describing how to use the program.""" def _configure_parser...
/rbco.cliprogram-0.0.1.zip/rbco.cliprogram-0.0.1/rbco/cliprogram/__init__.py
0.608478
0.155848
__init__.py
pypi
from pyExcelerator.ImportXLS import parse_xls TERM_WIDTH = 80 def xls_to_excelerator_dict(filename, encoding=None): return parse_xls(filename, encoding) def print_excelerator_dict(excelerator_dict): for sheet_name, data in excelerator_dict: print u'Sheet: %s' % sheet_name for k, v in sorted(d...
/rbco.msexcel-0.0.4.zip/rbco.msexcel-0.0.4/rbco/msexcel/__init__.py
0.461745
0.393618
__init__.py
pypi
from datetime import date from subprocess import Popen, PIPE from itertools import chain from os import path __all__ = ['GetDate', 'GetFilename', 'GetDirectory', 'GetSavename', 'GetText', 'InfoMessage', 'Question', 'Warning', 'ErrorMessage', 'Notification', 'TextInfo', 'Progress','List' ] __doc...
/rbco.nautilusscripts-0.8.zip/rbco.nautilusscripts-0.8/rbco/nautilusscripts/PyZenity.py
0.743075
0.225705
PyZenity.py
pypi
from BeautifulSoup import Tag, NavigableString def get_pydev_pathproperty_tag_name_attr(is_external): return ( (is_external and 'org.python.pydev.PROJECT_EXTERNAL_SOURCE_PATH') or 'org.python.pydev.PROJECT_SOURCE_PATH' ) def get_pydev_pathproperty_tag(pydev_project_tag, is_external=False)...
/rbco.recipe.pyeclipse-0.0.5.zip/rbco.recipe.pyeclipse-0.0.5/rbco/recipe/pyeclipse/pydevproj.py
0.571767
0.153644
pydevproj.py
pypi
def get_element_text(element): """ Return: the text inside the element. Example: for <mytag>blah</mytag> return 'blah'. """ return element.firstChild.nodeValue def create_element(document, parent, name): """ Create a new element inside the `parent` element with the give...
/rbco.recipe.pyeclipse-0.0.5.zip/rbco.recipe.pyeclipse-0.0.5/rbco/recipe/pyeclipse/domutil.py
0.857127
0.562297
domutil.py
pypi
"""File renaming utilities.""" import os import urllib import re from unidecode import unidecode from mutagen.easyid3 import EasyID3 DEFAULT_ID3_FORMAT = '%(tracknumber)s-%(title)s.mp3' def convert_mutagen_dict(d): new_d = dict( (k, (isinstance(v, list) and v[0]) or v) for (k, v) in d.iteritems() ...
/rbco.rename-0.5.tar.gz/rbco.rename-0.5/rbco/rename/renaming.py
0.654122
0.256029
renaming.py
pypi
from zope.interface import Interface, Attribute class IWFElementDescription(Interface): id = Attribute(u'ID') title = Attribute(u'Title') description = Attribute(u'Title') class IWFChildElementDescription(IWFElementDescription): wf_description = Attribute(u'The parent IWFDescription') ...
/rbco.wfdocumentator-1.0.0.zip/rbco.wfdocumentator-1.0.0/rbco/wfdocumentator/interfaces.py
0.843895
0.356559
interfaces.py
pypi
import itertools import functools from .util import iter_state_permissions _VIEW_PERMISSIONS = ('View', 'Access contents information') _EDIT_PERMISSIONS = ('Change portal events', 'Modify portal content') def _validate_manager_in_all_permissions(wf_description): for (state_desc, permission_id, role_ids) in iter...
/rbco.wfdocumentator-1.0.0.zip/rbco.wfdocumentator-1.0.0/rbco/wfdocumentator/validation.py
0.5
0.150715
validation.py
pypi
from zope.interface import implements from interfaces import (IWFElementDescription, IWFDescription, IStateDescription, ITransitionDescription, IWFChildElementDescription) from Acquisition import aq_parent, aq_inner class ItemToWFElementDesc(object): implements(IWFElementDescription) def __init...
/rbco.wfdocumentator-1.0.0.zip/rbco.wfdocumentator-1.0.0/rbco/wfdocumentator/wfdesc.py
0.789153
0.203807
wfdesc.py
pypi
from ..interfaces import IWFDescription, IWFGraph from ..util import translate as _ from ..validation import validate_wf from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView class WFBaseView(BrowserView): def wf_description(self): return IWFDescription(self.conte...
/rbco.wfdocumentator-1.0.0.zip/rbco.wfdocumentator-1.0.0/rbco/wfdocumentator/browser/views.py
0.724773
0.223271
views.py
pypi
from __future__ import print_function import json import re import sys from pylint import lint from pylint.reporters import text from six.moves import cStringIO as StringIO ignore_codes = [ # Note(maoy): E1103 is error code related to partial type inference "E1103" ] ignore_messages = [ # Note(fengqian...
/rbd-iscsi-client-0.1.8.tar.gz/rbd-iscsi-client-0.1.8/tools/lintstack.py
0.478773
0.158956
lintstack.py
pypi
import os from robot.api import logger # noqa: F401 #pylint: disable=unused-import from robot.utils import is_truthy import clr DLL_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'bin', 'TestStack.White.dll') clr.AddReference('System') clr.AddReference(DLL_PATH) from System.Windows.Automation import A...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/__init__.py
0.635109
0.222373
__init__.py
pypi
import os import robot from robot.api import logger from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError from robot.utils import get_link_path, is_truthy from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword, PY2 from System.Drawing.Imaging i...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/screenshot.py
0.575111
0.186465
screenshot.py
pypi
from robot.api import logger # noqa: F401 #pylint: disable=unused-import from TestStack.White import AutomationException, Desktop from TestStack.White.Configuration import CoreAppXmlConfiguration from TestStack.White.Factory import InitializeOption # noqa: E402 from TestStack.White.UIItems.Finders import SearchCriter...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/window.py
0.863837
0.243123
window.py
pypi
from TestStack.White.UIItems import Button, CheckBox, RadioButton from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword from rbfDesktop.utils.click import Clicks class ButtonKeywords(LibraryComponent): @keyword def click_button(self, locator, x_...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/buttons.py
0.812123
0.556339
buttons.py
pypi
from TestStack.White.UIItems import UIItem # noqa: F401 #pylint: disable=unused-import from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword from rbfDesktop.utils.click import Clicks class UiItemKeywords(LibraryComponent): @keyword def click_it...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/uiitem.py
0.738198
0.286384
uiitem.py
pypi
from TestStack.White.UIItems.TreeItems import Tree from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword class TreeKeywords(LibraryComponent): @keyword def select_tree_node(self, locator, *node_path): """Selects a tree node. ``l...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/tree.py
0.869035
0.474509
tree.py
pypi
from robot.api import logger from TestStack.White.InputDevices import Mouse from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword from System.Windows import Point class MouseKeywords(LibraryComponent): @keyword def set_mouse_location(self, x, y)...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/mouse.py
0.815085
0.307059
mouse.py
pypi
from TestStack.White.UIItems import ListView from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword from rbfDesktop.utils.click import Clicks class ListViewKeywords(LibraryComponent): @keyword def double_click_listview_cell(self, locator, column_...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/listview.py
0.850344
0.668299
listview.py
pypi
from robot.api import logger # noqa: F401 #pylint: disable=unused-import from TestStack.White.UIItems.ListBoxItems import ComboBox, ListBox from TestStack.White.UIItems import UIActionException from rbfDesktop.keywords.librarycomponent import LibraryComponent from rbfDesktop.keywords.robotlibcore import keyword cla...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfDesktop/keywords/items/listcontrols.py
0.75183
0.453141
listcontrols.py
pypi
from rbfExcel.reader import ExcelReader from rbfExcel.utils import BoolFormat, DateFormat, NumberFormat from rbfExcel.writer import ExcelWriter class ExcelLibrary(object): def __init__(self, date_format=DateFormat(), number_format=NumberFormat(), bool_format=BoolFormat()): """ Init Excel Keyword ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfExcel/base.py
0.864639
0.524273
base.py
pypi
import logging from operator import itemgetter import natsort from rbfExcel.utils import (BoolFormat, DataType, DateFormat, NumberFormat, excel_name2coord, get_file_path, is_file) from six import PY2 from xlrd import cellname, open_workbook, xldate LOGGER = logging.getLogger(__name__) ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfExcel/reader.py
0.680772
0.279761
reader.py
pypi
from robot.api import ResultVisitor class KeywordResults(ResultVisitor): def __init__(self, soup, tbody, ignore_lib, ignore_type): self.test = None self.soup = soup self.tbody = tbody self.ignore_library = ignore_lib self.ignore_type = ignore_type def start_test(self,...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMetrics/keyword_results.py
0.585575
0.241937
keyword_results.py
pypi
from appium.webdriver.common.touch_action import TouchAction from rbfMobile.locators import ElementFinder from .keywordgroup import KeywordGroup class _TouchKeywords(KeywordGroup): def __init__(self): self._element_finder = ElementFinder() # Public, element lookups def zoom(self, locator, perc...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMobile/keywords/_touch.py
0.904858
0.451327
_touch.py
pypi
import os import robot import inspect from appium import webdriver from rbfMobile.utils import ApplicationCache from .keywordgroup import KeywordGroup ROOT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) class _ApplicationManagementKeywords(KeywordGroup): def __init__(self): self._c...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMobile/keywords/_applicationmanagement.py
0.678753
0.166709
_applicationmanagement.py
pypi