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
# pytype: skip-file from __future__ import absolute_import from __future__ import print_function def regex_matches(test=None): # [START regex_matches] import apache_beam as beam # Matches a named group 'icon', and then two comma-separated groups. regex = r'(?P<icon>[^\s,]+), *(\w+), *(\w+)' with beam.Pip...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/snippets/transforms/elementwise/regex.py
0.630344
0.343273
regex.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function def combineglobally_function(test=None): # [START combineglobally_function] import apache_beam as beam def get_common_items(sets): # set.intersection() takes multiple sets as s...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/snippets/transforms/aggregation/combineglobally.py
0.737631
0.446676
combineglobally.py
pypi
from __future__ import absolute_import from __future__ import print_function def top_largest(test=None): # [START top_largest] import apache_beam as beam with beam.Pipeline() as pipeline: largest_elements = ( pipeline | 'Create numbers' >> beam.Create([3, 4, 1, 2]) | 'Largest N val...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/snippets/transforms/aggregation/top.py
0.604983
0.39636
top.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function def combineperkey_simple(test=None): # [START combineperkey_simple] import apache_beam as beam with beam.Pipeline() as pipeline: total = ( pipeline | 'Create pl...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/snippets/transforms/aggregation/combineperkey.py
0.706292
0.487185
combineperkey.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function def combinevalues_simple(test=None): # [START combinevalues_simple] import apache_beam as beam with beam.Pipeline() as pipeline: total = ( pipeline | 'Create pr...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/snippets/transforms/aggregation/combinevalues.py
0.665193
0.624694
combinevalues.py
pypi
# pytype: skip-file from __future__ import absolute_import import argparse import logging import re from builtins import range import apache_beam as beam from apache_beam.io import ReadFromText from apache_beam.io import WriteToText from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.op...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/complete/autocomplete.py
0.55254
0.211987
autocomplete.py
pypi
# pytype: skip-file from __future__ import absolute_import import argparse import json import logging import apache_beam as beam from apache_beam import combiners from apache_beam.io import ReadFromText from apache_beam.io import WriteToText from apache_beam.options.pipeline_options import PipelineOptions from apach...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/complete/top_wikipedia_sessions.py
0.678433
0.322846
top_wikipedia_sessions.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import argparse import json import logging import random from builtins import object from builtins import range from typing import Any from typing import Iterable from typing import Tuple import apache_beam as beam from apache...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/complete/estimate_pi.py
0.753104
0.470676
estimate_pi.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import argparse import csv import logging import apache_beam as beam from apache_beam.metrics.metric import Metrics from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options imp...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/complete/game/user_score.py
0.5083
0.340677
user_score.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import csv import logging import sys import time from datetime import datetime import apache_beam as beam from apache_beam.metrics.metric import Metrics from apache_beam.op...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/examples/complete/game/hourly_team_score.py
0.49585
0.291419
hourly_team_score.py
pypi
# pytype: skip-file from __future__ import absolute_import from past.builtins import long from past.builtins import unicode from apache_beam.options.value_provider import ValueProvider # Protect against environments where apitools library is not available. # pylint: disable=wrong-import-order, wrong-import-position...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/internal/gcp/json_value.py
0.850236
0.270943
json_value.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging import socket import threading from oauth2client.client import GoogleCredentials from apache_beam.utils import retry # Protect against environments where apitools library is not available. try: from apitools.base.py.credentials_lib import ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/internal/gcp/auth.py
0.751283
0.17892
auth.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from builtins import object from typing import TYPE_CHECKING from typing import Optional from apache_beam.metrics.cells import MetricAggregator from apache_beam.metrics.cells import MetricCell from apache_beam.metrics.cells im...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/internal/metrics/cells.py
0.812682
0.547706
cells.py
pypi
# pytype: skip-file # mypy: disallow-untyped-defs from __future__ import absolute_import import datetime import logging import threading import time from builtins import object from typing import TYPE_CHECKING from typing import Dict from typing import Optional from typing import Type from typing import Union from a...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/internal/metrics/metric.py
0.880232
0.270787
metric.py
pypi
# pytype: skip-file from __future__ import absolute_import import inspect import itertools import logging import sys import traceback import types from builtins import next from builtins import object from builtins import zip from typing import Any from typing import Callable from typing import Dict from typing impor...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/typehints/decorators.py
0.639061
0.199308
decorators.py
pypi
# pytype: skip-file from __future__ import absolute_import from six import with_metaclass from apache_beam import coders from apache_beam.typehints import typehints from apache_beam.utils.sharded_key import ShardedKey class ShardedKeyTypeConstraint(with_metaclass(typehints.GetitemConstructor, ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/typehints/sharded_key_type.py
0.62681
0.203609
sharded_key_type.py
pypi
# pytype: skip-file from __future__ import absolute_import import collections import inspect import types from future.utils import raise_with_traceback from past.builtins import unicode from apache_beam import pipeline from apache_beam.pvalue import TaggedOutput from apache_beam.transforms import core from apache_b...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/typehints/typecheck.py
0.581303
0.191706
typecheck.py
pypi
# pytype: skip-file from __future__ import absolute_import import collections import copy import logging import sys import types import typing from builtins import next from builtins import zip from future.utils import with_metaclass __all__ = [ 'Any', 'Union', 'Optional', 'Tuple', 'List', '...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/typehints/typehints.py
0.73659
0.30379
typehints.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import print_function import collections import dis import inspect import pprint import sys import traceback import types from builtins import object from builtins import zip from functools import reduce from apache_beam import pvalue from ap...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/typehints/trivial_inference.py
0.47244
0.245221
trivial_inference.py
pypi
# pytype: skip-file from __future__ import absolute_import from abc import ABCMeta from abc import abstractmethod from builtins import object from future.utils import with_metaclass from apache_beam.portability.api import beam_runner_api_pb2 __all__ = [ 'TimeDomain', ] class TimeDomain(object): """Time dom...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/timeutil.py
0.871803
0.196248
timeutil.py
pypi
from __future__ import absolute_import from __future__ import division import math import time import apache_beam as beam import apache_beam.runners.sdf_utils as sdf_utils from apache_beam.io.restriction_trackers import OffsetRange from apache_beam.io.restriction_trackers import OffsetRestrictionTracker from apache_...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/periodicsequence.py
0.857828
0.464659
periodicsequence.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from builtins import map from builtins import next from builtins import range from apache_beam.io import iobase from apache_beam.transforms.core import Create class _CreateSource(iobase.BoundedSource): """Internal source ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/create_source.py
0.656108
0.200695
create_source.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import print_function import contextlib import copy import functools import sys import threading from typing import ByteString from typing import Dict import grpc from apache_beam import pvalue from apache_beam.coders import RowCoder from ap...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/external.py
0.602763
0.243749
external.py
pypi
from __future__ import absolute_import import argparse import logging import subprocess import sys import grpc from mock import patch from past.builtins import unicode import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.testing.test_pipeline import TestPipelin...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/external_java.py
0.510252
0.242452
external_java.py
pypi
# cython: language_level=3 """A library of basic cythonized CombineFn subclasses. For internal use only; no backwards-compatibility guarantees. """ # pytype: skip-file from __future__ import absolute_import from __future__ import division import operator from builtins import object from apache_beam.transforms im...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/cy_combiners.py
0.632957
0.414247
cy_combiners.py
pypi
# pytype: skip-file """a collection of ptransforms for deduplicating elements.""" from __future__ import absolute_import from __future__ import division import typing from apache_beam import typehints from apache_beam.coders.coders import BooleanCoder from apache_beam.transforms import core from apache_beam.transf...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/deduplicate.py
0.875121
0.486332
deduplicate.py
pypi
# pytype: skip-file from __future__ import absolute_import from builtins import object from builtins import range globals()['INT64_MAX'] = 2**63 - 1 globals()['INT64_MIN'] = -2**63 POWER_TEN = [ 10e-1, 10e0, 10e1, 10e2, 10e3, 10e4, 10e5, 10e6, 10e7, 10e8, 10e9, 10e10,...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/py_dataflow_distribution_counter.py
0.59514
0.479321
py_dataflow_distribution_counter.py
pypi
# pytype: skip-file from __future__ import absolute_import import json import logging import sys import tempfile from typing import TYPE_CHECKING from typing import Any from typing import Callable from typing import Dict from typing import Iterable from typing import Iterator from typing import List from typing impor...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/environments.py
0.711331
0.196036
environments.py
pypi
# pytype: skip-file from __future__ import absolute_import import typing from past.builtins import unicode from apache_beam.transforms.external import BeamJarExpansionService from apache_beam.transforms.external import ExternalTransform from apache_beam.transforms.external import NamedTupleBasedPayloadBuilder __al...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/sql.py
0.872252
0.466724
sql.py
pypi
# pytype: skip-file from __future__ import absolute_import import calendar import inspect import json from builtins import object from datetime import datetime from datetime import timedelta from typing import TYPE_CHECKING from typing import List from past.builtins import unicode if TYPE_CHECKING: from apache_be...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/display.py
0.902408
0.383295
display.py
pypi
# pytype: skip-file from __future__ import absolute_import import abc from builtins import object from builtins import range from functools import total_ordering from typing import Any from typing import Iterable from typing import List from typing import Optional from future.utils import with_metaclass from google....
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/window.py
0.753557
0.200362
window.py
pypi
# pytype: skip-file from __future__ import absolute_import import copy import itertools import logging import operator import os import sys import threading from builtins import hex from builtins import object from builtins import zip from functools import reduce from functools import wraps from typing import TYPE_CH...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/ptransform.py
0.628635
0.156362
ptransform.py
pypi
# pytype: skip-file from typing import Set from typing import Tuple import apache_beam as beam from apache_beam.options.pipeline_options import TypeOptions from apache_beam.testing.util import assert_that from apache_beam.testing.util import equal_to from apache_beam.transforms import combiners from apache_beam.tran...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/combinefn_lifecycle_pipeline.py
0.860969
0.606178
combinefn_lifecycle_pipeline.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import copy import heapq import operator import random import sys import warnings from builtins import object from builtins import zip from typing import Any from typing import Dict from typing import Iterable from typing impor...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/transforms/combiners.py
0.745769
0.331552
combiners.py
pypi
from __future__ import absolute_import import random from typing import Any from typing import Iterable from typing import Tuple from typing import TypeVar import pandas as pd Frame = TypeVar('Frame', bound=pd.core.generic.NDFrame) class Partitioning(object): """A class representing a (consistent) partitioning ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/dataframe/partitionings.py
0.799677
0.370168
partitionings.py
pypi
from __future__ import absolute_import import contextlib import random import threading from typing import Any from typing import Callable from typing import Iterable from typing import Optional from typing import TypeVar from apache_beam.dataframe import partitionings class Session(object): """A session represe...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/dataframe/expressions.py
0.875175
0.346072
expressions.py
pypi
from __future__ import absolute_import import itertools import re from io import BytesIO from io import StringIO from io import TextIOWrapper import pandas as pd import apache_beam as beam from apache_beam import io from apache_beam.dataframe import frame_base from apache_beam.io import fileio _DEFAULT_LINES_CHUNK...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/dataframe/io.py
0.477067
0.158923
io.py
pypi
from __future__ import absolute_import from typing import List from typing import Optional from typing import Tuple from typing import Union from future.utils import binary_type from future.utils import text_type from apache_beam import typehints from apache_beam.metrics import Metrics from apache_beam.transforms im...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/ml/gcp/visionml.py
0.957906
0.302494
visionml.py
pypi
from __future__ import absolute_import from typing import Mapping from typing import Optional from typing import Sequence from typing import Tuple from typing import Union import apache_beam as beam from apache_beam.metrics import Metrics try: from google.cloud import language from google.cloud.language import ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/ml/gcp/naturallanguageml.py
0.908623
0.212661
naturallanguageml.py
pypi
from __future__ import absolute_import from typing import Optional from typing import Tuple from typing import Union from future.utils import binary_type from future.utils import text_type from apache_beam import typehints from apache_beam.metrics import Metrics from apache_beam.transforms import DoFn from apache_be...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/ml/gcp/videointelligenceml.py
0.889409
0.217524
videointelligenceml.py
pypi
from __future__ import absolute_import import logging from google.cloud import dlp_v2 from apache_beam.options.pipeline_options import GoogleCloudOptions from apache_beam.transforms import DoFn from apache_beam.transforms import ParDo from apache_beam.transforms import PTransform from apache_beam.utils.annotations i...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/ml/gcp/cloud_dlp.py
0.726037
0.179746
cloud_dlp.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging import os import re import time import uuid from builtins import range from builtins import zip from future.utils import iteritems from past.builtins import unicode from apache_beam.internal import util from apache_beam.io import iobase from ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/filebasedsink.py
0.695855
0.19454
filebasedsink.py
pypi
"""`iobase.RestrictionTracker` implementations provided with Apache Beam.""" # pytype: skip-file from __future__ import absolute_import from __future__ import division from builtins import object from typing import Tuple from apache_beam.io.iobase import RestrictionProgress from apache_beam.io.iobase import Restric...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/restriction_trackers.py
0.843025
0.235185
restriction_trackers.py
pypi
# pytype: skip-file from __future__ import absolute_import import typing from past.builtins import unicode from apache_beam.transforms.external import BeamJarExpansionService from apache_beam.transforms.external import ExternalTransform from apache_beam.transforms.external import NamedTupleBasedPayloadBuilder Read...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/kafka.py
0.857887
0.278876
kafka.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import bisect import threading from builtins import range from apache_beam.io import iobase class ConcatSource(iobase.BoundedSource): """For internal use only; no backwards-compatibility guarantees. A ``BoundedSource`` ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/concat_source.py
0.761184
0.271677
concat_source.py
pypi
# pytype: skip-file from __future__ import absolute_import import typing from past.builtins import unicode from apache_beam.coders import RowCoder from apache_beam.transforms.external import BeamJarExpansionService from apache_beam.transforms.external import ExternalTransform from apache_beam.transforms.external im...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/jdbc.py
0.687735
0.211376
jdbc.py
pypi
# pytype: skip-file from __future__ import absolute_import from apache_beam.io.iobase import WatermarkEstimator from apache_beam.transforms.core import WatermarkEstimatorProvider from apache_beam.utils.timestamp import Timestamp class MonotonicWatermarkEstimator(WatermarkEstimator): """A WatermarkEstimator which ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/watermark_estimators.py
0.681939
0.66609
watermark_estimators.py
pypi
# pytype: skip-file from __future__ import absolute_import from typing import List from typing import NamedTuple from typing import Optional from past.builtins import unicode import apache_beam as beam from apache_beam.transforms.external import BeamJarExpansionService from apache_beam.transforms.external import Ex...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/snowflake.py
0.900709
0.239694
snowflake.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging import time from typing import Mapping from typing import NamedTuple from typing import Optional from past.builtins import unicode from apache_beam import BeamJarExpansionService from apache_beam import ExternalTransform from apache_beam impo...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/kinesis.py
0.915276
0.258256
kinesis.py
pypi
# pytype: skip-file from __future__ import absolute_import import abc import io import os from builtins import object from future.utils import with_metaclass __all__ = [ 'Downloader', 'Uploader', 'DownloaderStream', 'UploaderStream', 'PipeStream' ] class Downloader(with_metaclass(abc.ABCMeta, ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/filesystemio.py
0.856272
0.32958
filesystemio.py
pypi
# pytype: skip-file from __future__ import absolute_import import io import os import shutil from builtins import zip from typing import BinaryIO # pylint: disable=unused-import from apache_beam.io.filesystem import BeamIOError from apache_beam.io.filesystem import CompressedFile from apache_beam.io.filesystem impo...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/localfilesystem.py
0.75101
0.36591
localfilesystem.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import codecs import logging import math import threading from builtins import zip from past.builtins import long from apache_beam.io import iobase __all__ = [ 'OffsetRangeTracker', 'LexicographicKeyRangeTracker', ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/range_trackers.py
0.857171
0.319068
range_trackers.py
pypi
# pytype: skip-file from __future__ import absolute_import import errno import io import logging import os import re import tempfile import time from builtins import object from apache_beam.io.filesystemio import Downloader from apache_beam.io.filesystemio import DownloaderStream from apache_beam.io.filesystemio imp...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/azure/blobstorageio.py
0.713032
0.175892
blobstorageio.py
pypi
from __future__ import absolute_import from future.utils import iteritems from apache_beam.io.azure import blobstorageio from apache_beam.io.filesystem import BeamIOError from apache_beam.io.filesystem import CompressedFile from apache_beam.io.filesystem import CompressionTypes from apache_beam.io.filesystem import F...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/azure/blobstoragefilesystem.py
0.769297
0.280894
blobstoragefilesystem.py
pypi
# pytype: skip-file from __future__ import absolute_import import re from builtins import object from typing import Any from typing import List from typing import NamedTuple from typing import Optional from future.utils import iteritems from past.builtins import unicode from apache_beam import coders from apache_be...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/pubsub.py
0.792223
0.281097
pubsub.py
pypi
# pytype: skip-file from __future__ import absolute_import from builtins import zip from typing import BinaryIO # pylint: disable=unused-import from future.utils import iteritems from apache_beam.io.filesystem import BeamIOError from apache_beam.io.filesystem import CompressedFile from apache_beam.io.filesystem im...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/gcsfilesystem.py
0.844762
0.344182
gcsfilesystem.py
pypi
# pytype: skip-file from __future__ import absolute_import import argparse import apache_beam as beam from apache_beam.options.pipeline_options import PipelineOptions from apache_beam.options.pipeline_options import StandardOptions def run_pipeline(argv, with_attributes, id_label, timestamp_attribute): """Build ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/pubsub_it_pipeline.py
0.638385
0.156201
pubsub_it_pipeline.py
pypi
import collections import decimal import json import logging import random import time import uuid from typing import TYPE_CHECKING from typing import Any from typing import Dict from typing import Iterable from typing import List from typing import Optional from typing import Union import apache_beam as beam from apa...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigquery_read_internal.py
0.631253
0.156878
bigquery_read_internal.py
pypi
# pytype: skip-file from __future__ import absolute_import import hashlib import logging import random import uuid from future.utils import iteritems import apache_beam as beam from apache_beam import pvalue from apache_beam.io import filesystems as fs from apache_beam.io.gcp import bigquery_tools from apache_beam....
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigquery_file_loads.py
0.685318
0.171321
bigquery_file_loads.py
pypi
# pytype: skip-file from __future__ import absolute_import import argparse import logging import random import time import apache_beam as beam from apache_beam.io.gcp.bigquery import ReadFromBigQuery from apache_beam.options.pipeline_options import GoogleCloudOptions from apache_beam.options.pipeline_options import ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigquery_io_read_pipeline.py
0.560493
0.26078
bigquery_io_read_pipeline.py
pypi
# pytype: skip-file from __future__ import absolute_import from concurrent.futures import ThreadPoolExecutor from concurrent.futures import as_completed import apache_beam as beam from apache_beam.io.gcp.dicomclient import DicomApiHttpClient from apache_beam.transforms import PTransform class DicomSearch(PTransform...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/dicomio.py
0.805479
0.359505
dicomio.py
pypi
# pytype: skip-file from __future__ import absolute_import from enum import Enum from enum import auto from typing import NamedTuple from typing import Optional from past.builtins import unicode from apache_beam.transforms.external import BeamJarExpansionService from apache_beam.transforms.external import ExternalT...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/spanner.py
0.888819
0.271541
spanner.py
pypi
# pytype: skip-file from __future__ import absolute_import import re from apache_beam.io.gcp import gce_metadata_util _VALID_CLOUD_LABEL_PATTERN = re.compile(r'^[a-z0-9\_\-]{1,63}$') def _sanitize_value(value): """Sanitizes a value into a valid BigQuery label value.""" return re.sub(r'[^\w-]+', '', value.lowe...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigquery_io_metadata.py
0.80954
0.401043
bigquery_io_metadata.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging import apache_beam as beam from apache_beam.metrics import Metrics from apache_beam.transforms.display import DisplayDataItem _LOGGER = logging.getLogger(__name__) try: from google.cloud.bigtable import Client except ImportError: _LOGGER...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigtableio.py
0.713232
0.24817
bigtableio.py
pypi
# pytype: skip-file from __future__ import absolute_import import collections import itertools import json import logging import random import time import uuid from builtins import object from builtins import zip from typing import Dict from typing import Union from future.utils import itervalues from past.builtins ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/bigquery.py
0.743354
0.169303
bigquery.py
pypi
# pytype: skip-file from __future__ import absolute_import import copy from typing import Iterable from typing import List from typing import Optional from typing import Text from typing import Union from google.cloud.datastore import entity from google.cloud.datastore import key from google.cloud.datastore import q...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/datastore/v1new/types.py
0.911601
0.312265
types.py
pypi
# pytype: skip-file from __future__ import absolute_import import argparse import hashlib import logging import uuid import apache_beam as beam from apache_beam.io.gcp.datastore.v1new.datastoreio import DeleteFromDatastore from apache_beam.io.gcp.datastore.v1new.datastoreio import ReadFromDatastore from apache_beam....
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/gcp/datastore/v1new/datastore_write_it_pipeline.py
0.756627
0.379608
datastore_write_it_pipeline.py
pypi
# pytype: skip-file from __future__ import absolute_import import typing from past.builtins import unicode import apache_beam as beam from apache_beam.io.gcp import pubsub from apache_beam.transforms import Map from apache_beam.transforms.external import ExternalTransform from apache_beam.transforms.external impor...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/external/gcp/pubsub.py
0.906894
0.337504
pubsub.py
pypi
# pytype: skip-file from __future__ import absolute_import from future.utils import iteritems from apache_beam.io.aws import s3io from apache_beam.io.filesystem import BeamIOError from apache_beam.io.filesystem import CompressedFile from apache_beam.io.filesystem import CompressionTypes from apache_beam.io.filesyste...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/io/aws/s3filesystem.py
0.85376
0.305995
s3filesystem.py
pypi
# pytype: skip-file from __future__ import absolute_import from builtins import object from functools import wraps from typing import Set from apache_beam import error __all__ = [ 'ValueProvider', 'StaticValueProvider', 'RuntimeValueProvider', 'NestedValueProvider', 'check_accessible', ] class...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/options/value_provider.py
0.746509
0.215062
value_provider.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging import re from builtins import object from past.builtins import unicode from apache_beam.internal import pickler from apache_beam.options.pipeline_options import DebugOptions from apache_beam.options.pipeline_options import GoogleCloudOptions...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/options/pipeline_options_validator.py
0.700383
0.183027
pipeline_options_validator.py
pypi
from __future__ import absolute_import from __future__ import division import logging import math import threading from collections import Counter _LOGGER = logging.getLogger(__name__) class Histogram(object): """A histogram that supports estimated percentile with linear interpolation. This class is considere...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/utils/histogram.py
0.916637
0.357988
histogram.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from typing import Type from typing import TypeVar from typing import Union from typing import overload from google.protobuf import any_pb2 from google.protobuf import duration_pb2 from google.protobuf import message from goog...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/utils/proto_utils.py
0.834778
0.154217
proto_utils.py
pypi
# pytype: skip-file # mypy: disallow-untyped-defs from __future__ import absolute_import from __future__ import division import datetime import time from builtins import object from typing import Any from typing import Union from typing import overload import dateutil.parser import pytz from google.protobuf import d...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/utils/timestamp.py
0.84858
0.373733
timestamp.py
pypi
# pytype: skip-file from __future__ import absolute_import import logging _LOGGER = logging.getLogger(__name__) def is_in_ipython(): """Determines if current code is executed within an ipython session.""" try: from IPython import get_ipython # pylint: disable=import-error if get_ipython(): retur...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/utils/interactive_utils.py
0.739046
0.232005
interactive_utils.py
pypi
# pytype: skip-file from __future__ import absolute_import import functools import logging import random import sys import time import traceback from builtins import next from builtins import object from builtins import range from future.utils import raise_with_traceback from apache_beam.io.filesystem import BeamIO...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/utils/retry.py
0.561455
0.154472
retry.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import logging import random from builtins import range import apache_beam as beam import apache_beam.typehints.typehints as typehints from apache_beam.coders import VarInt...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/tools/fn_api_runner_microbenchmark.py
0.5769
0.178097
fn_api_runner_microbenchmark.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import print_function import argparse import logging import random import re import string import sys from past.builtins import unicode from apache_beam.coders import proto2_coder_test_messages_pb2 as test_message from apache_beam.coders imp...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/tools/coders_microbenchmark.py
0.431345
0.162845
coders_microbenchmark.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import gc import importlib import os import time import numpy def check_compiled(module): """Check whether given module has been compiled. Args: module: string...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/tools/utils.py
0.841793
0.306187
utils.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging from builtins import range from collections import defaultdict from time import time from typing import Iterable from typing import Tuple from typing import Union import apa...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/tools/runtime_type_check_microbenchmark.py
0.756178
0.235141
runtime_type_check_microbenchmark.py
pypi
# pytype: skip-file from __future__ import absolute_import from __future__ import division import threading import time from builtins import object from datetime import datetime from typing import Any from typing import Optional from typing import SupportsInt try: import cython except ImportError: class fake_cy...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/metrics/cells.py
0.89865
0.22863
cells.py
pypi
# pytype: skip-file from __future__ import absolute_import import threading from builtins import object from typing import TYPE_CHECKING from typing import Any from typing import Dict from typing import FrozenSet from typing import Optional from typing import Type from typing import Union from typing import cast fro...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/metrics/execution.py
0.888493
0.31948
execution.py
pypi
# pytype: skip-file from __future__ import absolute_import from builtins import object from typing import Dict from typing import Optional __all__ = [ 'Metric', 'Counter', 'Distribution', 'Gauge', 'Histogram', 'MetricName' ] class MetricName(object): """The name of a metric. The name of a metric consists ...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/metrics/metricbase.py
0.869188
0.482307
metricbase.py
pypi
# pytype: skip-file # mypy: disallow-untyped-defs from __future__ import absolute_import import logging from builtins import object from typing import TYPE_CHECKING from typing import Dict from typing import FrozenSet from typing import Iterable from typing import List from typing import Optional from typing import S...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/metrics/metric.py
0.93196
0.324637
metric.py
pypi
# pytype: skip-file from __future__ import absolute_import from apache_beam.portability.api.beam_runner_api_pb2_urns import BeamConstants from apache_beam.portability.api.beam_runner_api_pb2_urns import StandardArtifacts from apache_beam.portability.api.beam_runner_api_pb2_urns import StandardCoders from apache_beam....
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/portability/common_urns.py
0.521227
0.223716
common_urns.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" from __future__ import absolute_import from builtins import object import grpc from . import beam_provision_api_pb2 as beam__provision__api__pb2 class ProvisionServiceStub(object): """A service to provide runtime provisioning information...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/portability/api/beam_provision_api_pb2_grpc.py
0.855685
0.181028
beam_provision_api_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" from __future__ import absolute_import from builtins import object import grpc from . import beam_expansion_api_pb2 as beam__expansion__api__pb2 class ExpansionServiceStub(object): """Job Service for constructing pipelines """ d...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/portability/api/beam_expansion_api_pb2_grpc.py
0.797044
0.157008
beam_expansion_api_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" from __future__ import absolute_import from builtins import object import grpc from . import beam_fn_api_pb2 as beam__fn__api__pb2 class BeamFnControlStub(object): """ Control Plane API Progress reporting and splitting still nee...
/rflow-apache-beam-2.28.0.tar.gz/rflow-apache-beam-2.28.0/apache_beam/portability/api/beam_fn_api_pb2_grpc.py
0.809389
0.159119
beam_fn_api_pb2_grpc.py
pypi
from datetime import timedelta from uuid import uuid4 from django.conf import settings from django.utils.module_loading import import_string from django.utils.translation import gettext_lazy as _ from .exceptions import TokenBackendError, TokenError from .settings import api_settings from .token_blacklist.models impo...
/rflow_djangorestframework_simplejwt-5.1.0.tar.gz/rflow_djangorestframework_simplejwt-5.1.0/rest_framework_simplejwt/tokens.py
0.701304
0.188007
tokens.py
pypi
from django.contrib.auth import get_user_model from django.utils.translation import gettext_lazy as _ from rest_framework import HTTP_HEADER_ENCODING, authentication from .exceptions import AuthenticationFailed, InvalidToken, TokenError from .settings import api_settings AUTH_HEADER_TYPES = api_settings.AUTH_HEADER_T...
/rflow_djangorestframework_simplejwt-5.1.0.tar.gz/rflow_djangorestframework_simplejwt-5.1.0/rest_framework_simplejwt/authentication.py
0.72662
0.197116
authentication.py
pypi
import jwt from django.utils.translation import gettext_lazy as _ from jwt import InvalidAlgorithmError, InvalidTokenError, algorithms from .exceptions import TokenBackendError from .utils import format_lazy try: from jwt import PyJWKClient JWK_CLIENT_AVAILABLE = True except ImportError: JWK_CLIENT_AVAIL...
/rflow_djangorestframework_simplejwt-5.1.0.tar.gz/rflow_djangorestframework_simplejwt-5.1.0/rest_framework_simplejwt/backends.py
0.660172
0.165593
backends.py
pypi
from django.contrib.auth import models as auth_models from django.db.models.manager import EmptyManager from django.utils.functional import cached_property from .compat import CallableFalse, CallableTrue from .settings import api_settings class TokenUser: """ A dummy user class modeled after django.contrib.a...
/rflow_djangorestframework_simplejwt-5.1.0.tar.gz/rflow_djangorestframework_simplejwt-5.1.0/rest_framework_simplejwt/models.py
0.866557
0.220615
models.py
pypi
from time import time from tokenize import group from unittest import result import grpc from dpc.base.consumer import ConsumeBase from dpc.protos.kafkapixy_pb2 import ConsNAckRq, AckRq from dpc.protos.kafkapixy_pb2_grpc import KafkaPixyStub from dpc.tools import utils import logging class Consumer(ConsumeBase): ...
/rflow_dpc-0.0.1.tar.gz/rflow_dpc-0.0.1/src/dpc/consumer.py
0.621196
0.152726
consumer.py
pypi
from __future__ import annotations from abc import ABCMeta, abstractmethod from typing import List, ByteString, Dict from dpc.protos.kafkapixy_pb2 import ProdRs class ProduceBase(metaclass=ABCMeta): """Produce abstract base class""" def __init__( self, cluster: str, topic: str, ...
/rflow_dpc-0.0.1.tar.gz/rflow_dpc-0.0.1/src/dpc/base/producer.py
0.879192
0.231908
producer.py
pypi
"""Experimental Resolver for getting the artifacts based on Span.""" from typing import Dict, List, Optional, Text from tfx import types from tfx.components.example_gen import utils from tfx.dsl.components.common import resolver from tfx.orchestration import data_types from tfx.orchestration import metadata from tfx....
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/experimental/spans_resolver.py
0.945851
0.257654
spans_resolver.py
pypi
"""Utils for TFX component types. Intended for internal usage only.""" from typing import Any, Callable, Dict, Optional, Text from tfx import types from tfx.dsl.components.base import base_component from tfx.dsl.components.base import executor_spec as base_executor_spec from tfx.types import component_spec def creat...
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/component/experimental/component_utils.py
0.880393
0.37419
component_utils.py
pypi
"""Functions for creating container components.""" from typing import Any, Callable, Dict, List, Text from tfx.dsl.component.experimental import component_utils from tfx.dsl.component.experimental import executor_specs from tfx.dsl.component.experimental import placeholders from tfx.dsl.components.base import base_co...
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/component/experimental/container_component.py
0.840521
0.356895
container_component.py
pypi
"""Command-line placeholders for use in container component definitions.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from typing import List, Text, Union from tfx.utils import json_utils class InputValuePlaceholder(json_utils.Jsonable): """Repre...
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/component/experimental/placeholders.py
0.936008
0.315225
placeholders.py
pypi
# TODO(ccy): Remove pytype "disable=attribute-error" and "disable=module-attr" # overrides after Python 2 support is removed from TFX. from __future__ import absolute_import from __future__ import division from __future__ import print_function import enum import inspect import types from typing import Any, Dict, Opti...
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/component/experimental/function_parser.py
0.656878
0.288203
function_parser.py
pypi
from __future__ import absolute_import from __future__ import division from __future__ import print_function import inspect from typing import Text, Type, Union from six import with_metaclass from tfx.types import artifact class _ArtifactGenericMeta(type): """Metaclass for _ArtifactGeneric, to enable class indexi...
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/dsl/component/experimental/annotations.py
0.890112
0.158109
annotations.py
pypi