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
import base64 from .keywordgroup import KeywordGroup from selenium.common.exceptions import TimeoutException from kitchen.text.converters import to_bytes class _AndroidUtilsKeywords(KeywordGroup): # Public def get_network_connection_status(self): """Returns an integer bitmask specifying the network c...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMobile/keywords/_android_utils.py
0.698021
0.257345
_android_utils.py
pypi
from robot.libraries import BuiltIn from .keywordgroup import KeywordGroup BUILTIN = BuiltIn.BuiltIn() class _RunOnFailureKeywords(KeywordGroup): def __init__(self): self._run_on_failure_keyword = None self._running_on_failure_routine = False # Public def register_keyword_to_run_on_fa...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMobile/keywords/_runonfailure.py
0.794863
0.19923
_runonfailure.py
pypi
import time import robot from .keywordgroup import KeywordGroup class _WaitingKeywords(KeywordGroup): def wait_until_element_is_visible(self, locator, timeout=None, error=None): """Waits until element specified with `locator` is visible. Fails if `timeout` expires before the element is visible. S...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfMobile/keywords/_waiting.py
0.742702
0.187411
_waiting.py
pypi
import warnings from robot.api import logger from robot.libraries.BuiltIn import BuiltIn from rbfWEB.base import DynamicCore from rbfWEB.errors import NoOpenBrowser from rbfWEB.keywords import (AlertKeywords, BrowserManagementKeywords, Cooki...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/__init__.py
0.805747
0.453262
__init__.py
pypi
from rbfWEB.base import LibraryComponent, keyword class FrameKeywords(LibraryComponent): @keyword def select_frame(self, locator): """Sets frame identified by ``locator`` as the current frame. See the `Locating elements` section for details about the locator syntax. Works b...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/frames.py
0.856498
0.403508
frames.py
pypi
import os from rbfWEB.base import LibraryComponent, keyword from rbfWEB.errors import ElementNotFound from rbfWEB.utils import is_noney class FormElementKeywords(LibraryComponent): @keyword def submit_form(self, locator=None): """Submits a form identified by ``locator``. If ``locator`` is ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/formelement.py
0.757884
0.214733
formelement.py
pypi
from selenium.common.exceptions import WebDriverException from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.support.ui import WebDriverWait from rbfWEB.base import keyword, LibraryComponent from rbfWEB.utils import is_truthy, secs_to_timestr class AlertKeywords(LibraryComponen...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/alert.py
0.79653
0.326057
alert.py
pypi
import time from selenium.common.exceptions import StaleElementReferenceException from rbfWEB.base import LibraryComponent, keyword from rbfWEB.errors import ElementNotFound from rbfWEB.utils import is_noney, secs_to_timestr class WaitingKeywords(LibraryComponent): @keyword def wait_for_condition(self, co...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/waiting.py
0.776665
0.373219
waiting.py
pypi
from rbfWEB.base import LibraryComponent, keyword class TableElementKeywords(LibraryComponent): @keyword def get_table_cell(self, locator, row, column, loglevel='TRACE'): """Returns contents of table cell. The table is located using the ``locator`` argument and its cell found using ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/tableelement.py
0.791781
0.6769
tableelement.py
pypi
from datetime import datetime from robot.libraries.DateTime import convert_date from robot.utils import DotDict from rbfWEB.base import LibraryComponent, keyword from rbfWEB.errors import CookieNotFound from rbfWEB.utils import is_truthy, is_noney, is_falsy class CookieKeywords(LibraryComponent): @keyword ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/cookie.py
0.864539
0.309441
cookie.py
pypi
import os from robot.utils import get_link_path from rbfWEB.base import LibraryComponent, keyword from rbfWEB.utils import is_noney class ScreenshotKeywords(LibraryComponent): @keyword def set_screenshot_directory(self, path): """Sets the directory for captured screenshots. ``path`` argum...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/screenshot.py
0.809276
0.269779
screenshot.py
pypi
from selenium.common.exceptions import NoSuchElementException from selenium.webdriver.support.ui import Select from rbfWEB.base import LibraryComponent, keyword from rbfWEB.utils import is_truthy, plural_or_not as s class SelectElementKeywords(LibraryComponent): @keyword def get_list_items(self, locator, v...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/selectelement.py
0.870143
0.443781
selectelement.py
pypi
from collections import namedtuple from robot.utils import plural_or_not from selenium.webdriver.common.action_chains import ActionChains from selenium.webdriver.common.keys import Keys from rbfWEB.base import LibraryComponent, keyword from rbfWEB.utils import (is_falsy, is_noney, is_truthy, ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/element.py
0.896902
0.385433
element.py
pypi
import time from rbfWEB.utils import is_falsy, timestr_to_secs from selenium.common.exceptions import NoSuchWindowException from rbfWEB.base import keyword, LibraryComponent from rbfWEB.locators import WindowManager from rbfWEB.utils import plural_or_not class WindowKeywords(LibraryComponent): def __init__(sel...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/window.py
0.835282
0.367384
window.py
pypi
import time import types from selenium import webdriver from rbfWEB.base import keyword, LibraryComponent from rbfWEB.locators import WindowManager from rbfWEB.utils import (is_truthy, is_noney, secs_to_timestr, timestr_to_secs) from .webdrivertools import WebDriverCreator class...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/browsermanagement.py
0.730097
0.245876
browsermanagement.py
pypi
import os from collections import namedtuple from robot.utils import plural_or_not, seq2str from rbfWEB.base import LibraryComponent, keyword class JavaScriptKeywords(LibraryComponent): js_marker = 'JAVASCRIPT' arg_marker = 'ARGUMENTS' @keyword def execute_javascript(self, *code): """Exec...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/keywords/javascript.py
0.763572
0.453443
javascript.py
pypi
from rbfWEB.utils import escape_xpath_value class ContextAware(object): def __init__(self, ctx): """Base class exposing attributes from the common context. :param ctx: The library itself as a context object. :type ctx: rbfWEB.rbfWEB """ self.ctx = ctx @property ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfWEB/base/context.py
0.930015
0.292646
context.py
pypi
from .version import VERSION from .client import Client __version__ = VERSION class rbfVideoRecorder: """ Test Library for taking screenshots on the machine where tests are run. Note that successfully taking screenshots requires tests to be run with a physical or virtual display. = Usage = Ho...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rbfVideoRecorder/library.py
0.837121
0.612628
library.py
pypi
from __future__ import print_function import re class RobotStatements(object): def append(self, linenumber, raw_text, cells): """Add another row of data from a test suite""" self.rows.append(Row(linenumber, raw_text, cells)) @property def path(self): # this property exists so that ...
/rbf-2.1.1.tar.gz/rbf-2.1.1/rflint/parser/common.py
0.443841
0.414721
common.py
pypi
import pathlib from typing import List import numpy as np import pandas as pd from rbfoptgo.common import Cost, ParameterValue from rbfoptgo.client import Client from rbfoptgo.config import Config from rbfoptgo.report import Report from rbfoptgo import names class Evaluator: """ Evaluator is responsible fo...
/rbfopt-go-0.5.4.tar.gz/rbfopt-go-0.5.4/rbfoptgo/evaluator.py
0.861655
0.385433
evaluator.py
pypi
import json import os import pathlib from dataclasses import dataclass from datetime import datetime from time import mktime from enum import Enum from typing import List, Any, Dict import numpy as np @dataclass class Bound: """ Describes the area of variation for a cost function parameter """ left: ...
/rbfopt-go-0.5.4.tar.gz/rbfopt-go-0.5.4/rbfoptgo/config.py
0.845847
0.360489
config.py
pypi
from http import HTTPStatus from typing import List from urllib.parse import urljoin import jsons import requests from rbfoptgo.common import Cost, ParameterValue from rbfoptgo.report import Report from rbfoptgo import names class Client: """ HTTP client to the Go part of library """ url_head: str ...
/rbfopt-go-0.5.4.tar.gz/rbfopt-go-0.5.4/rbfoptgo/client.py
0.873552
0.215991
client.py
pypi
.. File: README.rst Author(s): Giacomo Nannicini University of Southern California g.nannicini@usc.edu (C) Copyright Singapore University of Technology and Design 2015. (C) Copyright International Business Machines Corporation 2016. You should have received a copy of the license with this code. Res...
/rbfopt-4.2.6.tar.gz/rbfopt-4.2.6/README.rst
0.905071
0.652594
README.rst
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 ...
/rbg2_distributions-0.2.tar.gz/rbg2_distributions-0.2/rbg2_distributions/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
import torch import torch.nn as nn from torch.nn import TransformerEncoder, TransformerEncoderLayer from src.utils import get_device class MeanMaxPooling(nn.Module): """ (C, B, E) -> (B, 2*E) where C is context count, B is batch size and E is embedding size. """ def __init__(self, axis=0, dropout...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/offers/torch_layers.py
0.903264
0.36523
torch_layers.py
pypi
import logging import pandas as pd import mxnet as mx from mxnet.gluon.data import Dataset from mxnet.gluon.contrib.estimator.batch_processor import BatchProcessor from mxnet import ndarray, autograd from mxnet import numpy as _mx_np from mxnet.util import is_np_array import boto3 class DownloadS3(object): def __...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/offers/utils_mxnet.py
0.574037
0.22806
utils_mxnet.py
pypi
import math import numpy as np import mxnet as mx from gluonnlp.data import UnigramCandidateSampler from gluonnlp.model import ISDense from gluonnlp.model.transformer import TransformerEncoder, TransformerEncoderCell from mxnet import ndarray, gluon class FrozenEmbedding(gluon.nn.Embedding): def __init__(self, fr...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/offers/models.py
0.732305
0.19886
models.py
pypi
import os import random import json import pandas as pd import torch import boto3 from botocore.config import Config from src.torch_layers import TxTFeaturesExtractor def generate_lookup_dict(df, key_col, value_col): """Generate int2int lookup dict from given dataframe.""" return df[[key_col, value_col]].set_...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/offers/app_txt_inference.py
0.558568
0.223992
app_txt_inference.py
pypi
import torch from torch import nn from torch.nn import TransformerEncoder, TransformerEncoderLayer from .txt import MeanMaxPooling, PositionalEncoding, ContextTransformer, SequenceTransformerHistory from .mmoe import MMoE # Transformer x Embedding x Embedding as Bottom class SequenceTransformerHistoryLite(SequenceTr...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/models/multitask.py
0.934433
0.197967
multitask.py
pypi
import torch from torch import nn from .multitask import TxTBottom class WideModel(nn.Module): def __init__(self, c_embed_size, ctx_nums, c_feature_nums, n_feature_nums): super().__init__() self.c_embedding = nn.ModuleList([ nn.Embedding(c, c_embed_size) for c in ctx_nums ...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/models/wide_and_deep.py
0.940783
0.233597
wide_and_deep.py
pypi
import math import torch import torch.nn as nn from torch.nn import TransformerEncoder, TransformerEncoderLayer class MeanMaxPooling(nn.Module): """ [B, S, E] -> [B, 2*E] """ def __init__(self, axis=1, dropout=0.0): super().__init__() self.axis = axis self.dropout = nn.Dropout(...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/models/txt.py
0.899085
0.46035
txt.py
pypi
import abc import wandb import pytorch_lightning as pl class MLflowCallbackBase(pl.callbacks.Callback): """ This callback updates metrics on MLflow after every train epoch and validation epoch Abstract Method:: - update_mlflow_metrics """ def on_train_start(self, trainer, pl_module): ...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/lightning/callbacks_base.py
0.836655
0.531696
callbacks_base.py
pypi
import numpy as np import torch def get_loss_scales(net, task1_criterion, task2_criterion, dataloader, device): net.eval() net.to(device) loss1_all = [] loss2_all = [] with torch.no_grad(): for (ctx, seq, vl, candidate), (label_pos, label_price) in dataloader: out = net( ...
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/lightning/loggers_base.py
0.684897
0.339089
loggers_base.py
pypi
from aws_cdk import ( core, aws_lambda, aws_ec2, aws_elasticloadbalancingv2 as elbv2, aws_elasticloadbalancingv2_targets as elvb2_targets, aws_cognito, aws_s3 ) def register_lambda_target_group_with_cognito_auth_rule( scope: core.Construct, fn: aws_lambda.IFunction, ...
/rbi_oss_awscdk_components_pkg-0.6.0-py3-none-any.whl/awscdk_components/elb/alb_utils.py
0.531696
0.213951
alb_utils.py
pypi
from aws_cdk import ( core, aws_ec2, aws_elasticloadbalancingv2 as elbv2, aws_s3 ) from awscdk_components.elb import alb_utils class AlbCfg: """ Configuration for the ALB construct """ alb_name: str vpc: aws_ec2.IVpc subnets: aws_ec2.SubnetSelection certificate_arns: ...
/rbi_oss_awscdk_components_pkg-0.6.0-py3-none-any.whl/awscdk_components/elb/alb_https.py
0.749637
0.205535
alb_https.py
pypi
from aws_cdk import ( core, aws_cognito, aws_certificatemanager ) class CognitoOidcIdpCfg: name: str client_id: str client_secret: str issuer: str attribute_request_method: str authorized_scopes: str attribute_mapping: dict def __init__( self, name:...
/rbi_oss_awscdk_components_pkg-0.6.0-py3-none-any.whl/awscdk_components/cognito/cognito.py
0.813905
0.202443
cognito.py
pypi
import copy import json from rbkcli.base.essentials import DotDict, RbkcliException class DynaTable(): """Create a dynamically sized table with summary.""" ROW_DIVISION_CHAR = '|' LINE_DIVISION_CHAR = '=' def __init__(self, headers, rows, logger='', **kwargs): """Initialize DynaTable.""" ...
/base/jsops.py
0.648578
0.278905
jsops.py
pypi
# rBloom [![PyPI](https://img.shields.io/pypi/v/rbloom)](https://pypi.org/project/rbloom/) ![build](https://img.shields.io/github/actions/workflow/status/kenbyte/rbloom/CI.yml) ![license](https://img.shields.io/github/license/kenbyte/rbloom) A fast, simple and lightweight [Bloom filter](https://en.wikipedia.org/wiki/...
/rbloom-1.1.0.tar.gz/rbloom-1.1.0/README.md
0.760828
0.949201
README.md
pypi
from .exceptions import UnknownEventType, UnhandledEventType from .user import User from .experience import Experience from typing import Optional, Union, Callable import hashlib import hmac import base64 import time from datetime import datetime import json __all__ = ( "Webhook", "Notification", "TestNot...
/rblx_open_cloud-1.4.0-py3-none-any.whl/rblxopencloud/webhook.py
0.869396
0.364976
webhook.py
pypi
from .exceptions import InvalidAsset, InvalidKey, ModeratedText, rblx_opencloudException, RateLimited, ServiceUnavailable import requests, json, io from typing import Union, Optional, TYPE_CHECKING import urllib3 from enum import Enum from datetime import datetime from . import user_agent if TYPE_CHECKING: from .u...
/rblx_open_cloud-1.4.0-py3-none-any.whl/rblxopencloud/creator.py
0.868868
0.170163
creator.py
pypi
from .exceptions import rblx_opencloudException, InvalidKey, NotFound, RateLimited, ServiceUnavailable import requests, io from typing import Optional, Iterable, Literal, Union from .datastore import DataStore, OrderedDataStore from . import user_agent __all__ = ( "Experience", ) class Experience(): """ R...
/rblx_open_cloud-1.4.0-py3-none-any.whl/rblxopencloud/experience.py
0.91708
0.730782
experience.py
pypi
from .exceptions import rblx_opencloudException, InvalidKey, NotFound, RateLimited, ServiceUnavailable, PreconditionFailed import requests, json, datetime import base64, hashlib, urllib.parse from typing import Union, Optional, Iterable, TYPE_CHECKING from . import user_agent if TYPE_CHECKING: from .experience imp...
/rblx_open_cloud-1.4.0-py3-none-any.whl/rblxopencloud/datastore.py
0.856647
0.263564
datastore.py
pypi
from .utils import ImmutableMap, Numbering, Builder from .token import Token from warnings import warn import re import abc import typing as t __all__ = ['lexer', 'r', 'l'] Lexer = t.Callable[[str, int], t.Optional[t.Tuple[int, str]]] class LexerDescriptor(abc.ABC): typeid: int @abc.abstractmethod def t...
/rbnf_rts-1.0-py3-none-any.whl/rbnf_rts/lexical.py
0.76145
0.212579
lexical.py
pypi
from typing import TypeVar, Dict, Optional, Iterable import ast import copy T = TypeVar('T') def mangle(x: str): return x.replace('_', '__') class Substitute(ast.NodeTransformer): def __init__(self, m: dict): self.m = m def visit_Name(self, n: ast.Name): v = self.m.get(n.id, None) ...
/rbnf_rts-1.0-py3-none-any.whl/rbnf_rts/rbnf_linker.py
0.724383
0.364523
rbnf_linker.py
pypi
import typing as t from collections import OrderedDict from itertools import chain T = t.TypeVar('T') K = t.TypeVar('K') V = t.TypeVar('V') G = t.TypeVar('G') def _inf(): x = 0 while True: yield x x += 1 class IdAllocator(t.Generic[T]): it: t.Dict[T, int] def __init__(self): ...
/rbnf_rts-1.0-py3-none-any.whl/rbnf_rts/utils.py
0.621426
0.323741
utils.py
pypi
from rbnf_rts.routine import DQString from rbnf_rts.rts import _nil, Cons from rbnf_rts.token import Token import typing empty = _nil cons = Cons class Numberer(dict): def __missing__(self, key): n = self[key] = len(self) return n def singleton(x): return cons(x, empty) class Parser: ...
/rbnf_rts-1.0-py3-none-any.whl/rbnf_rts/bootstrap.py
0.643217
0.29497
bootstrap.py
pypi
from typing import Callable, Iterable, List, Tuple from rb.cna.cna_graph import CnaGraph from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import (MeasureFunction, average, standard_deviation) from rb.core.document import Document fro...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/complexity_index.py
0.579281
0.298012
complexity_index.py
pypi
from typing import List, Callable, Dict import csv from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.wo...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/aoa.py
0.552298
0.270375
aoa.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/wd_syllab.py
0.729327
0.157234
wd_syllab.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.similarity...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/no_wd_paths_hypernym_tree.py
0.69181
0.206894
no_wd_paths_hypernym_tree.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.core.se...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/no_repetitions.py
0.414188
0.220951
no_repetitions.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.similarity...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/wd_avg_depth_hypernym_tree.py
0.70477
0.213767
wd_avg_depth_hypernym_tree.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.word.name_entity_enum import NamedEntityONEnum from ...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/unq_name_entity.py
0.787931
0.227823
unq_name_entity.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.word.name_entity_enum import NamedEntityONEnum from ...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/name_entity.py
0.793226
0.239455
name_entity.py
pypi
from typing import List, Callable, Dict import csv from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.wo...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/aoe.py
0.552057
0.261236
aoe.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.similarity...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/wd_max_depth_hypernym_tree.py
0.718989
0.210665
wd_max_depth_hypernym_tree.py
pypi
from typing import List, Callable, Dict import csv from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_ele...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/word/valence.py
0.547222
0.237532
valence.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.syntax.dep_enum import DepEnum from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_elem...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/syntax/dep.py
0.785843
0.239183
dep.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import Text...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/syntax/parse_dep_tree.py
0.794026
0.243069
parse_dep_tree.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.core.text_element_type import TextElementType from rb.complexity.measure_function import Meas...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/surface/ch_entropy.py
0.702428
0.189146
ch_entropy.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.processing...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/surface/no_cacophonies.py
0.749271
0.168344
no_cacophonies.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.processing...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/surface/no_common_errors.py
0.466116
0.165897
no_common_errors.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.core.text_element_type import TextElementType from rb.complexity.measure_function import Meas...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/surface/wd_entropy.py
0.693058
0.189784
wd_entropy.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.core.text_element_type import TextElementType from rb.complexity.measure_function import Meas...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/surface/ch_ngram_entropy.py
0.641759
0.233204
ch_ngram_entropy.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/morphology/pos_main.py
0.781706
0.262065
pos_main.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.complexity...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/morphology/pron.py
0.570212
0.171876
pron.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/morphology/unq_pos_main.py
0.771801
0.265325
unq_pos_main.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/start_mid_cohesion.py
0.720368
0.195134
start_mid_cohesion.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/trans_cohesion.py
0.670824
0.214589
trans_cohesion.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/adj_ext_cohesion.py
0.533641
0.243701
adj_ext_cohesion.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/mid_end_cohesion.py
0.707708
0.209187
mid_end_cohesion.py
pypi
from typing import List from typing import List from rb.core.lang import Lang from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from rb.complexity.measure_function import MeasureFunction from rb.cna.cna_graph import CnaGraph # create all indices # depend...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/factory.py
0.453988
0.22325
factory.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/intra_cohesion.py
0.783409
0.316369
intra_cohesion.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/cohesion/adj_cohesion.py
0.684264
0.282221
adj_cohesion.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.rhythm.syllabified_dict import SyllabifiedDict from rb.core.lang import Lang from rb.core.text_element import TextElement from r...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/rhythm/no_stressed_syllables.py
0.524151
0.211295
no_stressed_syllables.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.core.text_element_type import TextElementType from typing imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/rhythm/syllab.py
0.699562
0.156523
syllab.py
pypi
from rb.complexity.complexity_index import ComplexityIndex from rb.complexity.index_category import IndexCategory from rb.complexity.measure_function import MeasureFunction from rb.complexity.rhythm.syllabified_dict import SyllabifiedDict from rb.core.lang import Lang from rb.core.text_element import TextElement from r...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/rhythm/no_syllables.py
0.52683
0.215062
no_syllables.py
pypi
from rb.complexity.rhythm.syllabified_dict import SyllabifiedDict from rb.core.lang import Lang from typing import List from queue import Queue import nltk # Constants declaration PHONEMIC_CONSONANTS = {"b", "ch", "d", "dh", "f", "g", "hh", "jh", "k", "l", "m", "n", "ng", "p", "r", "s", "sh", "t", "th", "v", "w", "y...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/complexity/rhythm/rhythm_utils.py
0.795499
0.340211
rhythm_utils.py
pypi
from typing import Callable, List, Tuple, Union from threading import Lock from nltk.corpus import wordnet as wn from nltk.corpus.reader.wordnet import Synset from rb.core.lang import Lang from rb.core.word import Word from rb.parser.spacy_parser import SpacyParser lang_dict = { Lang.EN: 'eng', Lang.NL: 'nld'...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/similarity/wordnet.py
0.779406
0.21917
wordnet.py
pypi
from rb.core.lang import Lang from rb.similarity.vector_model import VectorModel, VectorModelType from rb.similarity.vector_model_factory import create_vector_model from rb.core.word import Word import rb.similarity.wordnet as wordnet from typing import List from typing import Dict def create_semantic_models(lang: Lan...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/similarity/similar_concepts.py
0.797162
0.353679
similar_concepts.py
pypi
from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.similarity.lda import LDA from rb.similarity.lsa import LSA from rb.similarity.vector import Vector from rb.similarity.vector_model import (CorporaEnum, VectorModel, V...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/similarity/vector_model_factory.py
0.516595
0.379752
vector_model_factory.py
pypi
import os from enum import Enum from typing import Dict, List, Tuple, Union import numpy as np from numpy.linalg import norm from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.word import Word from rb.similarity.vector import Vector from rb.utils.downloader import check_version, do...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/similarity/vector_model.py
0.489748
0.227083
vector_model.py
pypi
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel from rb.similarity.vector_model_factory import VECT...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/text_classifier/text_classifier.py
0.568296
0.184547
text_classifier.py
pypi
from typing import Dict, List import numpy as np import tensorflow as tf from rb.core.lang import Lang from rb.processings.encoders.bert import BertWrapper from rb.processings.pipeline.dataset import Dataset, TargetType, Task from rb.processings.pipeline.estimator import Classifier, Regressor from tensorflow import ke...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/pipeline/bert_classifier.py
0.910043
0.237476
bert_classifier.py
pypi
import copy import csv import pickle import random from enum import Enum, auto from typing import Dict, List, Tuple import numpy as np from rb.complexity.complexity_index import ComplexityIndex from rb.core.document import Document from rb.core.lang import Lang class TargetType(Enum): FLOAT = auto() INT = au...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/pipeline/dataset.py
0.64512
0.448728
dataset.py
pypi
import csv import math import os from heapq import heapify, heappop from typing import Dict, Iterable, List, Tuple import numpy as np from joblib import Parallel, delayed from rb.cna.cna_graph import CnaGraph from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.core.document import Docum...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/pipeline/pipeline.py
0.541651
0.246046
pipeline.py
pypi
from typing import Dict, List import numpy as np from rb.complexity.complexity_index import ComplexityIndex from rb.core.document import Document from rb.processings.pipeline.dataset import Dataset, Task from sklearn.base import BaseEstimator from sklearn.model_selection import cross_val_score from sklearn.metrics imp...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/pipeline/estimator.py
0.898093
0.542803
estimator.py
pypi
from typing import Dict, List, Tuple, Union import numpy as np import tensorflow as tf from networkx import Graph from networkx.algorithms.components.connected import connected_components from rb import POS, Document, Lang, Word from rb.utils.downloader import check_version, download_model from transformers import Aut...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/semantic_chains/chains_model.py
0.741112
0.289378
chains_model.py
pypi
import tensorflow as tf import tensorflow.keras as keras from tensorflow.keras.models import Model from tensorflow.keras.layers import Input, Dense, Concatenate, Convolution1D, GlobalMaxPooling1D, Embedding, Dropout, Flatten from tensorflow.keras.layers import Conv1D from tensorflow.keras.callbacks import TensorBoard i...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/diacritics/CharCNN.py
0.50415
0.492859
CharCNN.py
pypi
from typing import Dict, List, Union import networkx as nx from networkx.algorithms.centrality import betweenness_centrality, closeness_centrality, eigenvector_centrality from rb.cna.cna_graph import CnaGraph from rb.complexity.complexity_index import compute_indices from rb.core.block import Block from rb.core.cscl.c...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/cscl/participant_evaluation.py
0.649023
0.217909
participant_evaluation.py
pypi
from typing import List, Dict from rb.core.block import Block from rb.core.cscl.contribution import Contribution from rb.core.cscl.conversation import Conversation from rb.core.cscl.community import Community from rb.cna.cna_graph import CnaGraph from rb.core.cscl.regularity_indices import RegularityIndices from rb.u...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/cscl/regularity_processing.py
0.625781
0.231316
regularity_processing.py
pypi
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.complexity.cohesion.adj_cohesion import AdjCohesion from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, Vec...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/fluctuations/fluctuations.py
0.653127
0.272115
fluctuations.py
pypi
from __future__ import absolute_import from __future__ import division from __future__ import print_function from collections import namedtuple import numpy as np import tensorflow as tf from tensorflow.python.util import nest # pylint: disable=E0611 class BeamSearchState( namedtuple("BeamSearchState", ["log_p...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/gec/beam_search.py
0.955225
0.457016
beam_search.py
pypi
import numpy as np import tensorflow as tf def scaled_dot_product_attention(q, k, v, mask): """Calculate the attention weights. q, k, v must have matching leading dimensions. k, v must have matching penultimate dimension, i.e.: seq_len_k = seq_len_v. The mask has different shapes depending on its type(...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/gec/transformer/multi_head_attention.py
0.923069
0.494263
multi_head_attention.py
pypi
from rb.core.lang import Lang from rb.core.document import Document from rb.complexity.complexity_index import ComplexityIndex, compute_indices from rb.similarity.word2vec import Word2Vec from rb.similarity.vector_model import VectorModelType, CorporaEnum, VectorModel from rb.similarity.vector_model_factory import VECT...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/processings/scoring/essay_scoring.py
0.472927
0.1661
essay_scoring.py
pypi
from typing import Callable, Dict, List, Tuple, Union import networkx as nx import numpy as np from networkx.algorithms.link_analysis.pagerank_alg import pagerank from rb.cna.edge_type import EdgeType from rb.cna.overlap_type import OverlapType from rb.core.block import Block from rb.core.cscl.community import Communi...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/cna/cna_graph.py
0.683947
0.295913
cna_graph.py
pypi
import networkx as nx import pandas as pd from tabulate import tabulate from sklearn.cluster import AgglomerativeClustering import matplotlib.pyplot as plt from pprint import pprint import numpy as np class GraphMetrics: def __init__(self, graph: "Graph"): self.graph = graph self.semantic_distanc...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/docs_processing/metrics.py
0.698946
0.448547
metrics.py
pypi
from typing import List from rb.core.lang import Lang from rb.core.pos import POS from rb.core.text_element import TextElement from rb.core.text_element_type import TextElementType from rb.parser.spacy_parser import SpacyParser from rb.core.pos_features.pos_feature_extractor import POSFeatureExtractor from spacy.token...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/core/word.py
0.804137
0.227491
word.py
pypi
from rb.core.lang import Lang from rb.core.text_element_type import TextElementType import numpy as np from typing import List, Dict from rb.core.lang import Lang class TextElement: """General class of TextElement Each node from the document's tree is a TextElement Attributes ---------- lang : L...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/core/text_element.py
0.884071
0.392715
text_element.py
pypi
from enum import Enum, auto from rb.core.pos_features.pos_feature import POSFeature from rb.core.pos_features.ro_pos_features.ro_features_name import RoFeaturesName from rb.core.lang import Lang from rb.core.pos import POS from typing import List import re class RoPronTypeEnum(Enum): ART = auto() DEM = auto()...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/core/pos_features/ro_pos_features/ro_pos_feature_pron_type.py
0.462959
0.288319
ro_pos_feature_pron_type.py
pypi