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 typing import Dict, List, Tuple from datetime import datetime, timedelta from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.text_element_type import TextElementType from rb.core.cscl.contribution import Contribution from rb.core.cscl.conversation import Conversation from rb.co...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/core/cscl/community.py
0.691289
0.154599
community.py
pypi
from typing import Dict, List from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.text_element_type import TextElementType from rb.utils.rblogger import Logger import csv class Participant: def __init__(self, participant_id: str): self.participant_id = participant_id ...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/core/cscl/participant.py
0.798894
0.230119
participant.py
pypi
from rb.core.word import Word from rb.comprehension.utils.distance_strategies.abstract_distance_strategy import DistanceStrategy from rb.comprehension.utils.graph.cm_node_type import CmNodeType from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO fr...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/comprehension/cm_word_distance_indexer.py
0.526586
0.350616
cm_word_distance_indexer.py
pypi
from rb.comprehension.utils.graph.cm_node_do import CmNodeDO, CmNodeType from rb.comprehension.utils.memory.word_activation import WordActivation from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.graph_metrics import GraphMetrics import numpy as np from typing import Dic...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/comprehension/utils/memory/history_keeper.py
0.854733
0.33835
history_keeper.py
pypi
from rb.core.sentence import Sentence from rb.core.word import Word from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO from rb.comprehension.utils.graph.cm_node_type import CmNodeType from rb.comprehension.utils.graph.cm_edge_do import CmEdgeDO, C...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/comprehension/utils/graph/cm_dependency_graph_do.py
0.574992
0.229449
cm_dependency_graph_do.py
pypi
from typing import Dict from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO ActivationMap = Dict[CmNodeDO, float] class PageRank(): def __init__(self): self.max_iter = 100000 self.eps = 0.0001 self.prob = 0.85 ...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/comprehension/utils/page_rank/page_rank.py
0.547222
0.335623
page_rank.py
pypi
from rb.core.lang import Lang from rb.core.sentence import Sentence from rb.core.word import Word from rb.core.document import Document from rb.comprehension.utils.distance_strategies.cm_syntactic_graph import CmSyntacticGraph from copy import deepcopy from typing import Tuple, List Dependency = Tuple[Word, Word, st...
/rbpy-rb-german-0.0.10.tar.gz/rbpy-rb-german-0.0.10/rb/comprehension/utils/distance_strategies/cm_coref_indexer.py
0.510252
0.210624
cm_coref_indexer.py
pypi
import abc 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, maximum) from rb.core.document...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/complexity_index.py
0.605333
0.303829
complexity_index.py
pypi
from statistics import mean 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 MeasureFu...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/word/aoa.py
0.590779
0.261583
aoa.py
pypi
from statistics import mean 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 MeasureFu...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/word/aoe.py
0.595493
0.253491
aoe.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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/word/valence.py
0.578091
0.21794
valence.py
pypi
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 # dependencies need to be putted ...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/word/factory.py
0.412057
0.24726
factory.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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/surface/ch_entropy.py
0.69451
0.186947
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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/surface/no_cacophonies.py
0.748536
0.169337
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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/surface/no_common_errors.py
0.466359
0.166845
no_common_errors.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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/morphology/pron.py
0.582372
0.182371
pron.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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/rhythm/syllab.py
0.753376
0.212334
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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/complexity/rhythm/rhythm_utils.py
0.795499
0.340211
rhythm_utils.py
pypi
from threading import Lock from typing import Callable, List, Tuple, Union from nltk.corpus import wordnet as wn from nltk.corpus.reader import CorpusReader, WordNetCorpusReader from nltk.corpus.reader.wordnet import Synset from nltk.corpus.util import LazyCorpusLoader from rb.core.lang import Lang from rb.core.word ...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/similarity/wordnet.py
0.746416
0.197677
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 from rb.similarity.wordnet import WordNet from typing import List from typing import Dict def create_semantic_models(lang: L...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/similarity/similar_concepts.py
0.800926
0.351255
similar_concepts.py
pypi
import os from enum import Enum from rb.similarity.vector_model import VectorModel, VectorModelType 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.ve...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/similarity/word_vector_model.py
0.520009
0.264851
word_vector_model.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.transformers_encoder import TransformersEncoder from rb.similarity.vector import Vector from rb.similarity.vector_model import (...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/similarity/vector_model_factory.py
0.52975
0.390302
vector_model_factory.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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/processings/text_classifier/text_classifier.py
0.571647
0.185486
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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/processings/cscl/participant_evaluation.py
0.651355
0.219003
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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/processings/scoring/essay_scoring.py
0.47317
0.162879
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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/cna/cna_graph.py
0.676192
0.259826
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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/docs_processing/metrics.py
0.695338
0.438545
metrics.py
pypi
from rb.core.lang import Lang from rb.core.document import Document from rb.docs_processing.author import Author from typing import List import datetime class Article: def __init__(self, title: str, abstract: str, source: str, authors: List[str], date: str, lang: Lang, additional_info: dict): self.tit...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/docs_processing/article.py
0.712232
0.155495
article.py
pypi
import weakref from typing import List from spacy.tokens import Token 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 class Word(TextElement): MODAL_VERBS ...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/word.py
0.757974
0.203391
word.py
pypi
import weakref from typing import Dict, List import numpy as np from rb.core.lang import Lang from rb.core.text_element_type import TextElementType class TextElement: """General class of TextElement Each node from the document's tree is a TextElement Attributes ---------- lang : Lang la...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/text_element.py
0.809803
0.447098
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-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/pos_features/ro_pos_features/ro_pos_feature_pron_type.py
0.462959
0.288319
ro_pos_feature_pron_type.py
pypi
from typing import Dict, List, Tuple from datetime import datetime, timedelta from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.text_element_type import TextElementType from rb.core.cscl.contribution import Contribution from rb.core.cscl.conversation import Conversation from rb.co...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/cscl/community.py
0.691289
0.154599
community.py
pypi
from typing import Dict, List from rb.core.lang import Lang from rb.core.text_element import TextElement from rb.core.text_element_type import TextElementType from rb.utils.rblogger import Logger import csv class Participant: def __init__(self, participant_id: str): self.participant_id = participant_id ...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/cscl/participant.py
0.798894
0.230119
participant.py
pypi
from rb.core.word import Word from rb.comprehension.utils.distance_strategies.abstract_distance_strategy import DistanceStrategy from rb.comprehension.utils.graph.cm_node_type import CmNodeType from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO fr...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/comprehension/cm_word_distance_indexer.py
0.526586
0.350616
cm_word_distance_indexer.py
pypi
from rb.comprehension.utils.graph.cm_node_do import CmNodeDO, CmNodeType from rb.comprehension.utils.memory.word_activation import WordActivation from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.graph_metrics import GraphMetrics import numpy as np from typing import Dic...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/comprehension/utils/memory/history_keeper.py
0.854551
0.341171
history_keeper.py
pypi
from rb.core.sentence import Sentence from rb.core.word import Word from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO from rb.comprehension.utils.graph.cm_node_type import CmNodeType from rb.comprehension.utils.graph.cm_edge_do import CmEdgeDO, C...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/comprehension/utils/graph/cm_dependency_graph_do.py
0.583797
0.252062
cm_dependency_graph_do.py
pypi
from typing import Dict from rb.comprehension.utils.graph.cm_graph_do import CmGraphDO from rb.comprehension.utils.graph.cm_node_do import CmNodeDO ActivationMap = Dict[CmNodeDO, float] class PageRank(): def __init__(self): self.max_iter = 100000 self.eps = 0.0001 self.prob = 0.85 ...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/comprehension/utils/page_rank/page_rank.py
0.547222
0.335623
page_rank.py
pypi
from rb.core.lang import Lang from rb.core.sentence import Sentence from rb.core.word import Word from rb.core.document import Document from rb.comprehension.utils.distance_strategies.cm_syntactic_graph import CmSyntacticGraph from copy import deepcopy from typing import Tuple, List Dependency = Tuple[Word, Word, st...
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/comprehension/utils/distance_strategies/cm_coref_indexer.py
0.510252
0.210624
cm_coref_indexer.py
pypi
import logging from enum import Enum from typing import Any, List, TypeVar, Generic, Union, Dict, Optional from rbs_tui_dom.error import AlreadyExistError from rbs_tui_dom.event_emitter import EventEmitter T = TypeVar('T') LOGGER = logging.getLogger("rbs_tui_dom.entity") class EntityEventType(Enum): ENTITY_CHAN...
/rbs_tui_dom-1.0.2-py3-none-any.whl/rbs_tui_dom/entity.py
0.866979
0.176122
entity.py
pypi
from typing import List HORIZONTAL_CHAR = "─" VERTICAL_CHAR = "│" class ASCIITreeNode: def __init__(self, value: str, children: List["ASCIITreeNode"]=None): self.value = value self.children = children or [] def is_leaf(self): return len(self.children) == 0 def ladderize(self, r...
/rbs_tui_dom-1.0.2-py3-none-any.whl/rbs_tui_dom/extra/tree.py
0.680135
0.274734
tree.py
pypi
from rbtools.commands import Command, CommandError, Option from rbtools.utils.filesystem import make_tempfile, load_config, get_config_value import collections import email import json import urllib2 class Github(Command): """Extension to review and apply patches from Github""" name = 'github' author = 'Jake Far...
/rbt-github-0.2.0.tar.gz/rbt-github-0.2.0/rbt_github/command.py
0.408277
0.158728
command.py
pypi
import requests class OAuth2: """Authorization object using OAuth2 to define API info.""" def __init__(self, base_url: str, client_id: str, client_secret: str, scope: str): """ A constructor function. It is called when an object of the class is created. :param base_url: https...
/rby_uipath-0.0.1.tar.gz/rby_uipath-0.0.1/rby_uipath/OAuth2.py
0.826537
0.214177
OAuth2.py
pypi
from .OAuth2 import OAuth2 from typing import Tuple, Any import requests import json class QueueDefinitions: def __init__(self, auth: OAuth2, folder_id: str): """ This function is used to initialize the class :param auth: OAuth2 :type auth: OAuth2 :param folder_i...
/rby_uipath-0.0.1.tar.gz/rby_uipath-0.0.1/rby_uipath/QueueDefinitions.py
0.838911
0.186188
QueueDefinitions.py
pypi
from .OAuth2 import OAuth2 import requests import json class QueueItems: def __init__(self, auth: OAuth2, folder_id: str): """ This function is used to initialize the class :param auth: OAuth2 :type auth: OAuth2 :param folder_id: The ID of the folder you want to ...
/rby_uipath-0.0.1.tar.gz/rby_uipath-0.0.1/rby_uipath/QueueItems.py
0.630002
0.179387
QueueItems.py
pypi
from urllib.parse import urljoin import requests from ..logger import Logger class ProjectsApi(Logger): def __init__(self, config, api_url): super().__init__(config) self.projects_api_url = urljoin(api_url, 'projects/') self.namespace_api_url = urljoin(api_url, 'namespaces') def crea...
/rc_cli-0.4.1-py3-none-any.whl/rc_cli/gitlab/projects_api.py
0.602529
0.187932
projects_api.py
pypi
from urllib.parse import urljoin import requests from ..logger import Logger class GroupsApi(Logger): def __init__(self, config, api_url): super().__init__(config) self.groups_api_url = urljoin(api_url, 'groups/') self.namespace_api_url = urljoin(api_url, 'namespaces') def search_gr...
/rc_cli-0.4.1-py3-none-any.whl/rc_cli/gitlab/groups_api.py
0.586049
0.152631
groups_api.py
pypi
import os import pathlib import shutil import click from ..logger import Logger class Remover(Logger): def __init__(self, config, file_pattern, search_directories, force, interactive): super().__init__(config) self.file_pattern = file_pattern self.search_directory_paths = list(map(lambd...
/rc_cli-0.4.1-py3-none-any.whl/rc_cli/utils/remover.py
0.461745
0.206334
remover.py
pypi
import collections def searcher_channel(*sub_urls): """ Helper method to construct the `channel` name for threat lookup searchers. :samp:`lookup_channel("sub", "url")` ==> channel for searcher at :samp:`/<root>/sub/url` """ return "cts_search." + ".".join(sub_urls) # Standard artifact types in ...
/rc-cts-45.1.3279.tar.gz/rc-cts-45.1.3279/rc_cts/lib/threat_models.py
0.8321
0.263801
threat_models.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 ...
/rc_distributions-0.3.tar.gz/rc_distributions-0.3/rc_distributions/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
import inspect import typing from typing import ( Any, Callable, Dict, Generic, List, NamedTuple, Optional, Type, TypeVar, Union, cast, ) T = TypeVar("T") PRIMITIVE_TYPES = { bytes, dict, float, int, list, set, str, tuple, } class InjectorE...
/rc_injector-0.0.2-py3-none-any.whl/rc_injector/injector.py
0.794106
0.497376
injector.py
pypi
import hashlib import json from datetime import datetime, timezone def wrap_str(v): if isinstance(v, bool): return str(v).lower() return str(v) def validate_checksum( request: dict, checksum: str, shared_secret: str, salt: str = "", time_delta: int = 5, ...
/rc-protocol-1.0.0.tar.gz/rc-protocol-1.0.0/rc_protocol/rc_protocol.py
0.7478
0.361869
rc_protocol.py
pypi
"""Module where all interfaces, events and exceptions live.""" from rc.tiles.collection import _ from plone.app.vocabularies.catalog import CatalogSource as CatalogSourceBase from plone.supermodel import model from zope import schema from zope.interface import Interface from zope.publisher.interfaces.browser import IDe...
/rc.tiles.collection-1.1.6.tar.gz/rc.tiles.collection-1.1.6/src/rc/tiles/collection/interfaces.py
0.900229
0.228264
interfaces.py
pypi
# RC2 (also known as ARC2) encryption algorithm in pure python. ECB and CBC modes are supported. # Original source code : https://github.com/0xEBFE/RC2-python/blob/master/rc2.py # Backporting Python 2.7.x to Python 3 Code by koha <kkoha@msn.com> import array #--------------------- RC2_BLOCK_SIZE = 8 MODE_ECB = 0 MOD...
/rc2-0.11.zip/rc2-0.11/rc2.py
0.654011
0.651355
rc2.py
pypi
import pyqrcode import random import base64 import json from typing import Callable from hashlib import sha1 __all__ = ['encrypt', 'decrypt', 'encrypt_json', 'decrypt_json'] def from_qrcode(filepath: str) -> str: qr = qrtools.QR() qr.decode(filepath) def crypt(data: str, key: bytes) -> str: """RC4 algo...
/rc4-python3-1.1.3.tar.gz/rc4-python3-1.1.3/rc4/rc4.py
0.591487
0.339198
rc4.py
pypi
from typing import Optional from RCC.types.rcc_player import RCCPlayer from RCC.types.response import RCCResponse from RCC.api.abc import ABCAPI from RCC.exceptions import ReasonLenError class APIMethods(ABCAPI): async def start_check( self, player_steamid: int, moder_steamid: Optional[in...
/rcc_api-0.1.0-py3-none-any.whl/RCC/methods.py
0.800263
0.329972
methods.py
pypi
import re import pandas as pd import numpy as np from itertools import chain from typing import List, Any from .checker import check_column_align def normalize_col_name(lst_col_name, pattern=r"(\d){2}.(\d){2}.(\d){4}"): lst_space_norm = [re.sub("\s\s+", " ", col_name).strip().lower() for col_name in lst_col_name]...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/pandas_manager/normalizer.py
0.5794
0.300861
normalizer.py
pypi
import os import shutil class FileOperator: """ Class FileOperator. Use this class to manupilate directory path or files. Parameters: path (str): The path of a directory. Examples: >>> from rcd_pyutils import file_manager >>> fo = file_manage...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/file_manager/file_operator.py
0.532911
0.221803
file_operator.py
pypi
import os import json import certifi import pandas as pd from datetime import datetime from typing import Any, Generator from elasticsearch import Elasticsearch from elasticsearch.exceptions import ConnectionTimeout from elasticsearch.helpers import parallel_bulk, bulk from .. import decorator_manager def index_json_...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/database_manager/elasticsearch_operator.py
0.699973
0.165054
elasticsearch_operator.py
pypi
import os import numpy as np import pandas as pd from typing import Any, List, Dict, Tuple, Set from sqlalchemy import create_engine, inspect, text from sqlalchemy import Table, MetaData, Column, Integer, SmallInteger, BigInteger, String, Float, Boolean, \ Date from .s3_operator import S3Operator from ..pandas_mana...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/database_manager/redshift_operator.py
0.770724
0.207998
redshift_operator.py
pypi
import os from typing import List from google.cloud import storage from ..decorator_manager import timeit from ..file_manager import detect_all_files, detect_path @timeit(program_name="Upload data folder to gcloud") def upload_to_gcloud(local_folder_path: str, uuid: str, bucket: str = os.environ.get("OPEN_DATA_SOURCE...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/database_manager/gcloud_operator.py
0.712632
0.166879
gcloud_operator.py
pypi
import os import pandas as pd from abc import ABC, abstractmethod from typing import Optional from ..database_manager import MysqlOperator, download_from_gcloud, upload_to_gcloud from ..file_manager import detect_path class RawDataFile(ABC): source_name: str = NotImplemented source_url: str = NotImplemented ...
/rcd_pyutils-0.1.32-py3-none-any.whl/rcd_pyutils/dataclass_manager/raw_data_file.py
0.686685
0.163612
raw_data_file.py
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 of...
/rcdesign-0.4.13.tar.gz/rcdesign-0.4.13/CODE_OF_CONDUCT.md
0.558327
0.693496
CODE_OF_CONDUCT.md
pypi
# rciam-federation-registry-agent **RCIAM Federation Registry Agent** main objective is to sync data between RCIAM Federation Registry and different identity and access management solutions, such as Keycloak, SATOSA, SimpleSAMLphp and MITREid Connect. This python library includes a module named `ServiceRegistryAms/` t...
/rciam-federation-registry-agent-3.2.0.tar.gz/rciam-federation-registry-agent-3.2.0/README.md
0.47317
0.749615
README.md
pypi
import requests """ Manages all clients on MITREid Connect """ class mitreidClientApi: """ Class constructor Parameters: issuer (str): The URI of the Authorization Server token (str): An access token with admin privileges """ def __init__(self, issuer, token): self.i...
/rciam-federation-registry-agent-3.2.0.tar.gz/rciam-federation-registry-agent-3.2.0/MitreidConnect/MitreidClientApi.py
0.715623
0.201912
MitreidClientApi.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 ...
/rck-distributions-0.1.tar.gz/rck-distributions-0.1/distributions/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
# rclip - AI-Powered Command-Line Photo Search Tool <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --> [![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors-) <!-- ALL-CONTRIBUTORS-BADGE:END --> [[Blog]](https://mikhalevi.ch/rclip-an...
/rclip-1.7.2.tar.gz/rclip-1.7.2/README.md
0.738009
0.803752
README.md
pypi
import base64 from .eme import Decrypt, Encrypt from Crypto.Util.Padding import unpad, pad from Crypto.Cipher._mode_ecb import EcbMode class Name: """ rclone文件名加密/解密,支持standard和obfuscate形式 :param `nameKey`: 通过passwd生成的nameKey :param `nameTweak`: 通过passwd生成的nameTweak :param `aes_cipher`: ECB模式的AES C...
/rclone-crypt-1.1.0.tar.gz/rclone-crypt-1.1.0/src/rclone/name_cipher.py
0.425963
0.2174
name_cipher.py
pypi
DIRECTION_ENCRYPT = 0 DIRECTION_DECRYPT = 1 """ References: https://github.com/fweinb/rclone-js/blob/master/src/ciphers/eme/index.js https://github.com/rfjakob/eme/blob/master/eme.go """ # multByTwo - GF multiplication as specified in the EME-32 draft def multByTwo(out_bytes: bytes) -> bytes: if not len(out_bytes...
/rclone-crypt-1.1.0.tar.gz/rclone-crypt-1.1.0/src/rclone/eme.py
0.67694
0.574395
eme.py
pypi
from datetime import datetime from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.schedulers.blocking import BlockingScheduler from apscheduler.triggers.cron import CronTrigger from . import task as task_module __all__ = ['RCloneSchedule'] class RCloneSchedule: """ It schedul...
/rclone-manager-1.0.1.tar.gz/rclone-manager-1.0.1/rclone_manager/schedule.py
0.857679
0.452959
schedule.py
pypi
import subprocess from .base import exceptions __all__ = ['RClone'] class RClone: """ Basic rclone command line tool wrapper. This class is used to create and use rclone commands. If you want to use rclone as a python library, use this. :param src: Source path :param dst: Destination path :...
/rclone-manager-1.0.1.tar.gz/rclone-manager-1.0.1/rclone_manager/rclone.py
0.609175
0.173253
rclone.py
pypi
import time from . import job as job_module from . import schedule as schedule_module from .base import logger __all__ = ['RCloneTask'] class RCloneTask: """ This is a wrapper for the RCloneJob class. It is used to schedule jobs to run at a specific time. :param job: RCloneJob object :type job: RCl...
/rclone-manager-1.0.1.tar.gz/rclone-manager-1.0.1/rclone_manager/task.py
0.713332
0.199347
task.py
pypi
import json import threading from . import rclone from .base import logger __all__ = ['RCloneJob'] class RCloneJob(rclone.RClone): """ This class is a subclass of the RClone class, and it is used to create a job object that can be used to run a job on the cluster. It has a thread that updates the job pr...
/rclone-manager-1.0.1.tar.gz/rclone-manager-1.0.1/rclone_manager/job.py
0.696887
0.202502
job.py
pypi
inst[![PyPI](https://img.shields.io/pypi/v/rcm-station-client)](https://pypi.org/project/rcm-station-client/) ![Python Version](https://img.shields.io/pypi/pyversions/rcm-station-client) [![Downloads](https://pepy.tech/badge/rcm-station-client)](https://pepy.tech/project/rcm-station-client) # Station client Scripts t...
/rcm-station-client-0.5.0.tar.gz/rcm-station-client-0.5.0/README.md
0.910378
0.930205
README.md
pypi
import logging import psutil from .sensor import Sensor from ..constants import SENSOR_SYS class SYS(Sensor): """Concrete implementation of the system sensor.""" @property def name(self): return SENSOR_SYS @staticmethod def _get_temps(): """Returns a dict with temperature senso...
/rcm-station-client-0.5.0.tar.gz/rcm-station-client-0.5.0/rcm/sensors/sys.py
0.778986
0.175786
sys.py
pypi
import logging import os import sys import time import adafruit_sgp30 from .sensor import Sensor from .tmp_hum_sensor import TmpHumSensor from ..constants import MODE_WRITE, MODE_READ, LINE_SEP, SENSOR_SGP30, UTF_8 from ..settings import sgp30_baseline_file SECONDS_IN_HOUR = 60 * 60 TWELVE_HOURS_IN_SECONDS = 12 * SE...
/rcm-station-client-0.5.0.tar.gz/rcm-station-client-0.5.0/rcm/sensors/sgp30.py
0.634543
0.2799
sgp30.py
pypi
import logging import time import adafruit_sht31d from .tmp_hum_sensor import TmpHumSensor from ..constants import SENSOR_SHT31_D from ..util.bool import strtobool _PRIMARY_ADDRESS = 0x44 _SECONDARY_ADDRESS = 0x45 _SETTING_SECONDARY_ADDRESS = 'secondary_address' _SETTING_HEATER_ENABLED = 'heater_enabled' _SETTING_HE...
/rcm-station-client-0.5.0.tar.gz/rcm-station-client-0.5.0/rcm/sensors/sht31d.py
0.679817
0.215351
sht31d.py
pypi
import time import torch import pandas as pd import numpy as np import ray from matplotlib import pyplot as plt from tqdm.auto import tqdm, trange from xitorch.interpolate import Interp1D from pathlib import Path from rcmodel import * from rcmodel.optimisation import dataset_creator from rcmodel.reinforce import Poli...
/rcmodel-0.3.0.tar.gz/rcmodel-0.3.0/src/main.py
0.704465
0.37843
main.py
pypi
<!-- ===================================== generator=datazen version=3.1.2 hash=8bb20a7e710e9071d4cf11a5f065e18e ===================================== --> # rcmpy ([1.5.0](https://pypi.org/project/rcmpy/)) [![python](https://img.shields.io/pypi/pyversions/rcmpy.svg)](https://pypi.org/project/rcmpy...
/rcmpy-1.5.0.tar.gz/rcmpy-1.5.0/README.md
0.451327
0.807423
README.md
pypi
import networkx as nx from pyvis.network import Network from rcn_py import data_storage # pyvis def pyvis_network_by_datafile(orcid_id): node_data = data_storage.assign_group_node(orcid_id) edge_data, link = data_storage.get_links_from_coauthor_rel(orcid_id) all_node_in_link = ( edge_data["source...
/rcn_py-0.1.0-py3-none-any.whl/rcn_py/visual.py
0.421909
0.468547
visual.py
pypi
import requests from rcn_py import orcid from rcn_py import scopus # Get Scopus Author ID from ORCID # This function is able to solve the problem of overlap between the RSD and Scopus databases # And also return author's preferred name # MYAPIKEY = "3d120b6ddb7d069272dfc2bc68af4028" def get_scopus_result(author...
/rcn_py-0.1.0-py3-none-any.whl/rcn_py/neo4j_rsd.py
0.722331
0.348257
neo4j_rsd.py
pypi
# Mask R-CNN for Object Detection and Segmentation > [NEW FEATURE] Install this package using PIP: >``` bash >pip install rcnnmasks >``` This is an implementation of [Mask R-CNN](https://arxiv.org/abs/1703.06870) on Python 3, Keras, and TensorFlow. The model generates bounding boxes and segmentation masks for each i...
/rcnnmasks-0.0.6.tar.gz/rcnnmasks-0.0.6/README.md
0.958905
0.990235
README.md
pypi
import matplotlib.pyplot as plt import networkx as nx from networkx import Graph class PrintGraph(Graph): """ Example subclass of the Graph class. Prints activity log to file or standard output. """ def __init__(self, data=None, name="", file=None, **attr): Graph.__init__(self, data=data...
/rcnnmasks-0.0.6.tar.gz/rcnnmasks-0.0.6/.env/share/doc/networkx-2.5/examples/subclass/plot_printgraph.py
0.422981
0.472988
plot_printgraph.py
pypi
import networkx as nx nmax = 10000 p = 3 def digitsrep(n, b=10): """Return list of digits comprising n represented in base b. n must be a nonnegative integer""" if n <= 0: return [0] dlist = [] while n > 0: # Prepend next least-significant digit dlist = [n % b] + dlist ...
/rcnnmasks-0.0.6.tar.gz/rcnnmasks-0.0.6/.env/share/doc/networkx-2.5/examples/advanced/plot_iterated_dynamical_systems.py
0.794505
0.424531
plot_iterated_dynamical_systems.py
pypi
import matplotlib.pyplot as plt import networkx as nx # tag names specifying what game info should be # stored in the dict on each digraph edge game_details = ["Event", "Date", "Result", "ECO", "Site"] def chess_pgn_graph(pgn_file="chess_masters_WCC.pgn.bz2"): """Read chess games in pgn format in pgn_file. ...
/rcnnmasks-0.0.6.tar.gz/rcnnmasks-0.0.6/.env/share/doc/networkx-2.5/examples/drawing/plot_chess_masters.py
0.642993
0.652601
plot_chess_masters.py
pypi
from .rcon_packet import RCONPacket class RCONMessage: """ A RCONMessage represents a message which may consist of multiple packets. """ def __init__(self, packet=None, id=None, type=None, body=None): """ creates a new RCONMessage object. A RCONMessage is a higher abstraction...
/rcon_server-0.1.3.tar.gz/rcon_server-0.1.3/rcon_server/rcon_message.py
0.877424
0.62498
rcon_message.py
pypi
import asyncio import logging from .rcon_packet import RCONPacket logger = logging.getLogger(name="RCONServer") class RCONConnection(asyncio.Protocol): def __init__(self, rcon_server): """Initializes a new connection with a client. :param rcon_server: The RCONServer which handles the commands ...
/rcon_server-0.1.3.tar.gz/rcon_server-0.1.3/rcon_server/rcon_connection.py
0.68721
0.27981
rcon_connection.py
pypi
from .util import to_int32, from_int32, check_int32 class RCONPacket(): # The number 2 is there in two cases. # this is intended by the protocol. # AUTH_RESPONSE is only send server -> client # and EXECCOMMAND is only send client -> server # Therefore there should be no case in which # a packe...
/rcon_server-0.1.3.tar.gz/rcon_server-0.1.3/rcon_server/rcon_packet.py
0.518302
0.430088
rcon_packet.py
pypi
from textual import on from textual.app import App, ComposeResult from textual.color import Color from textual.containers import Horizontal, Vertical, ScrollableContainer from textual.reactive import reactive from textual.widgets import Input, Static, Label, TabbedContent, TabPane, Footer, Button, OptionList, Switch, M...
/rcp-colors-0.113.tar.gz/rcp-colors-0.113/rcp_colors/rcp.py
0.780328
0.1844
rcp.py
pypi