Dataset Viewer
Auto-converted to Parquet Duplicate
code
stringclasses
16 values
apis
sequence
extract_api
stringclasses
16 values
import sys import os # We have to append user's current path to sys path so the modules can be resolved # Otherwise we will got "no module named feathr" error sys.path.append(os.path.abspath(os.getcwd())) from feathrcli.cli import init from click.testing import CliRunner from feathr.client import FeathrClient def in...
[ "feathr.client.FeathrClient" ]
[((775, 786), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (784, 786), False, 'from click.testing import CliRunner\n'), ((544, 558), 'feathr.client.FeathrClient', 'FeathrClient', ([], {}), '()\n', (556, 558), False, 'from feathr.client import FeathrClient\n'), ((909, 942), 'os.chdir', 'os.chdir', (['"""fea...
import os from datetime import datetime, timedelta from pathlib import Path from feathr.client import FeathrClient from feathr import ValueType from feathr.job_utils import get_result_df from feathr import (BackfillTime, MaterializationSettings) from feathr import FeatureQuery from feathr import ObservationSettings fr...
[ "feathr.TypedKey", "feathr.MaterializationSettings", "feathr.RedisSink", "feathr.ObservationSettings", "feathr.FeatureQuery" ]
[((875, 925), 'feathr.RedisSink', 'RedisSink', ([], {'table_name': '"""snowflakeSampleDemoFeature"""'}), "(table_name='snowflakeSampleDemoFeature')\n", (884, 925), False, 'from feathr import RedisSink\n'), ((941, 1148), 'feathr.MaterializationSettings', 'MaterializationSettings', ([], {'name': '"""snowflakeSampleDemoFe...
from feathr import Feature from feathr import ExpressionTransformation from feathr import DerivedFeature from feathr import BOOLEAN, FLOAT, FLOAT_VECTOR, ValueType from feathr import TypedKey import pytest def assert_config_equals(one, another): assert one.translate(str.maketrans('', '', ' \n\t\r')) == another.tra...
[ "feathr.Feature", "feathr.TypedKey", "feathr.DerivedFeature", "feathr.ExpressionTransformation" ]
[((493, 622), 'feathr.TypedKey', 'TypedKey', ([], {'full_name': '"""mockdata.user"""', 'key_column': '"""user_id"""', 'key_column_type': 'ValueType.INT32', 'description': '"""An user identifier"""'}), "(full_name='mockdata.user', key_column='user_id', key_column_type=\n ValueType.INT32, description='An user identifi...
import glob import os import time from datetime import datetime, timedelta from pathlib import Path import pytest from click.testing import CliRunner from feathr import (FeatureAnchor, FeatureQuery, ObservationSettings, TypedKey, ValueType) from feathr._feature_registry import _FeatureRegistry from...
[ "feathr._feature_registry._FeatureRegistry", "feathr.client.FeathrClient", "feathr.TypedKey", "feathr.ObservationSettings" ]
[((5374, 5506), 'pytest.mark.skip', 'pytest.mark.skip', ([], {'reason': '"""Add back get_features is not supported in feature registry for now and needs further discussion"""'}), "(reason=\n 'Add back get_features is not supported in feature registry for now and needs further discussion'\n )\n", (5390, 5506), Fal...
from feathrcli.cli import init from click.testing import CliRunner from feathr.client import FeathrClient import os import glob import pandavro as pdx import pandas as pd import tempfile def test_feathr_online_store_databricks(): """ Test FeathrClient() online_get_features and batch_get can get data correctly...
[ "feathr.client.FeathrClient" ]
[((343, 354), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (352, 354), False, 'from click.testing import CliRunner\n'), ((1950, 1961), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (1959, 1961), False, 'from click.testing import CliRunner\n'), ((434, 467), 'os.chdir', 'os.chdir', (['"""feathr_u...
from feathrcli.cli import init from click.testing import CliRunner from feathr.client import FeathrClient import os def test_feathr_feature_register(): """ Test FeathrClient() can register features correctly. """ runner = CliRunner() with runner.isolated_filesystem(): runner.invoke(init, [...
[ "feathr.client.FeathrClient" ]
[((240, 251), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (249, 251), False, 'from click.testing import CliRunner\n'), ((331, 364), 'os.chdir', 'os.chdir', (['"""feathr_user_workspace"""'], {}), "('feathr_user_workspace')\n", (339, 364), False, 'import os\n'), ((382, 396), 'feathr.client.FeathrClient', 'F...
from feathr import FeatureAnchor from feathr.client import FeathrClient from feathr import BOOLEAN, FLOAT, INT32, STRING, ValueType from feathr import Feature from feathr import DerivedFeature from feathr import INPUT_CONTEXT, HdfsSource from feathr import WindowAggTransformation from feathr import TypedKey def basic...
[ "feathr.WindowAggTransformation", "feathr.Feature", "feathr.TypedKey", "feathr.client.FeathrClient", "feathr.DerivedFeature", "feathr.HdfsSource", "feathr.FeatureAnchor" ]
[((365, 402), 'feathr.client.FeathrClient', 'FeathrClient', ([], {'config_path': 'config_path'}), '(config_path=config_path)\n', (377, 402), False, 'from feathr.client import FeathrClient\n'), ((422, 677), 'feathr.HdfsSource', 'HdfsSource', ([], {'name': '"""nycTaxiBatchSource"""', 'path': '"""abfss://feathrazuretest3f...
import sys import os # We have to append user's current path to sys path so the modules can be resolved # Otherwise we will got "no module named feathr" error sys.path.append(os.path.abspath(os.getcwd())) from feathrcli.cli import init from click.testing import CliRunner from feathr.client import FeathrClient def c...
[ "feathr.client.FeathrClient" ]
[((584, 595), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (593, 595), False, 'from click.testing import CliRunner\n'), ((432, 446), 'feathr.client.FeathrClient', 'FeathrClient', ([], {}), '()\n', (444, 446), False, 'from feathr.client import FeathrClient\n'), ((718, 751), 'os.chdir', 'os.chdir', (['"""fea...
import os from datetime import datetime from pathlib import Path from unittest import result from click.testing import CliRunner from feathr import (BOOLEAN, FLOAT, INT32, FeatureQuery, ObservationSettings, SparkExecutionConfiguration, TypedKey, ValueType) from feathr.job_utils import get_result_df...
[ "feathr.FeatureQuery", "feathr.job_utils.get_result_df", "feathr.ObservationSettings", "feathr.TypedKey", "feathr.SparkExecutionConfiguration" ]
[((789, 857), 'feathr.TypedKey', 'TypedKey', ([], {'key_column': '"""DOLocationID"""', 'key_column_type': 'ValueType.INT32'}), "(key_column='DOLocationID', key_column_type=ValueType.INT32)\n", (797, 857), False, 'from feathr import BOOLEAN, FLOAT, INT32, FeatureQuery, ObservationSettings, SparkExecutionConfiguration, T...
from datetime import datetime, timedelta from feathr._materialization_utils import _to_materialization_config from feathr import (BackfillTime, MaterializationSettings) from feathr import RedisSink def test_feature_materialization_config(): backfill_time = BackfillTime(start=datetime(2020, 5, 20), end=datetime(2...
[ "feathr.RedisSink", "feathr._materialization_utils._to_materialization_config", "feathr.MaterializationSettings" ]
[((372, 414), 'feathr.RedisSink', 'RedisSink', ([], {'table_name': '"""nycTaxiDemoFeature"""'}), "(table_name='nycTaxiDemoFeature')\n", (381, 414), False, 'from feathr import RedisSink\n'), ((430, 584), 'feathr.MaterializationSettings', 'MaterializationSettings', (['"""nycTaxiTable"""'], {'sinks': '[redisSink]', 'featu...
import os from pathlib import Path import pytest from feathr import (BackfillTime, MaterializationSettings) from feathr import RedisSink from test_fixture import kafka_test_setup @pytest.mark.skipif(os.environ.get('SPARK_CONFIG__SPARK_CLUSTER') != "azure_synapse", reason="skip for databricks, as it...
[ "feathr.RedisSink", "feathr.MaterializationSettings" ]
[((699, 791), 'feathr.RedisSink', 'RedisSink', ([], {'table_name': '"""kafkaSampleDemoFeature"""', 'streaming': '(True)', 'streamingTimeoutMs': '(10000)'}), "(table_name='kafkaSampleDemoFeature', streaming=True,\n streamingTimeoutMs=10000)\n", (708, 791), False, 'from feathr import RedisSink\n'), ((803, 919), 'feath...
import os from datetime import datetime, timedelta from pathlib import Path from click.testing import CliRunner from feathr import BOOLEAN, FLOAT, INT32, ValueType from feathr.client import FeathrClient from feathr import ValueType from feathr.job_utils import get_result_df from feathr import (BackfillTime, Materializ...
[ "feathr.RedisSink", "feathr.FeatureQuery", "feathr.job_utils.get_result_df", "feathr.ObservationSettings", "feathr.TypedKey", "feathr.MaterializationSettings" ]
[((3010, 3097), 'pytest.mark.skip', 'pytest.mark.skip', ([], {'reason': '"""Add back when complex types are supported in python API"""'}), "(reason=\n 'Add back when complex types are supported in python API')\n", (3026, 3097), False, 'import pytest\n'), ((918, 932), 'datetime.datetime.now', 'datetime.now', ([], {})...
from feathr import AvroJsonSchema from feathr import KafKaSource from feathr import KafkaConfig from typing import List import os import random from datetime import datetime, timedelta from feathr import (BOOLEAN, FLOAT, INPUT_CONTEXT, INT32, STRING, DerivedFeature, Feature, FeatureAnchor, HdfsSour...
[ "feathr.AvroJsonSchema", "feathr.Feature", "feathr.HdfsSource", "feathr.KafkaConfig", "feathr.client.FeathrClient", "feathr.DerivedFeature", "feathr.FeatureAnchor", "feathr.TypedKey", "feathr.WindowAggTransformation" ]
[((516, 530), 'datetime.datetime.now', 'datetime.now', ([], {}), '()\n', (528, 530), False, 'from datetime import datetime, timedelta\n'), ((1058, 1095), 'feathr.client.FeathrClient', 'FeathrClient', ([], {'config_path': 'config_path'}), '(config_path=config_path)\n', (1070, 1095), False, 'from feathr.client import Fea...
from feathrcli.cli import init from click.testing import CliRunner import os from feathr.client import FeathrClient def test_configuration_loading(): """ Test CLI init() is working properly. """ runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke(init, []) ...
[ "feathr.client.FeathrClient" ]
[((222, 233), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (231, 233), False, 'from click.testing import CliRunner\n'), ((368, 408), 'os.path.isdir', 'os.path.isdir', (['"""./feathr_user_workspace"""'], {}), "('./feathr_user_workspace')\n", (381, 408), False, 'import os\n'), ((427, 497), 'feathr.client.Fea...
import click from py4j.java_gateway import JavaGateway import pathlib import os from pathlib import Path import distutils.dir_util import subprocess import urllib.request from feathr.client import FeathrClient @click.group() @click.pass_context def cli(ctx: click.Context): """ Feathr CLI tool. Visit https://g...
[ "feathr.client.FeathrClient" ]
[((213, 226), 'click.group', 'click.group', ([], {}), '()\n', (224, 226), False, 'import click\n'), ((1106, 1202), 'click.option', 'click.option', (['"""--name"""'], {'default': '"""feathr_user_workspace"""', 'help': '"""Specify the workspace name."""'}), "('--name', default='feathr_user_workspace', help=\n 'Specify...
from feathrcli.cli import init from click.testing import CliRunner import os from feathr.client import FeathrClient def test_configuration_loading(): """ Test the configuration can be overwritten by envs """ runner = CliRunner() with runner.isolated_filesystem(): result = runner.invoke(in...
[ "feathr.client.FeathrClient" ]
[((235, 246), 'click.testing.CliRunner', 'CliRunner', ([], {}), '()\n', (244, 246), False, 'from click.testing import CliRunner\n'), ((381, 421), 'os.path.isdir', 'os.path.isdir', (['"""./feathr_user_workspace"""'], {}), "('./feathr_user_workspace')\n", (394, 421), False, 'import os\n'), ((440, 510), 'feathr.client.Fea...
README.md exists but content is empty.
Downloads last month
3