code stringlengths 1.36k 41.2k | apis list | extract_api stringlengths 328 40.6k |
|---|---|---|
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.proto_compatibility.basic_meta_pb2.Endpoint",
"fate_flow.utils.proto_compatibility.proxy_pb2.Conf",
"fate_flow.tests.grpc.xthread.ThreadPoolExecutor",
"fate_flow.utils.proto_compatibility.proxy_pb2.Command",
"fate_flow.settings.stat_logger.info",
"fate_flow.utils.proto_compatibility.proxy... | [((3486, 3519), 'fate_flow.tests.grpc.xthread.ThreadPoolExecutor', 'ThreadPoolExecutor', ([], {'max_workers': '(5)'}), '(max_workers=5)\n', (3504, 3519), False, 'from fate_flow.tests.grpc.xthread import ThreadPoolExecutor\n'), ((3613, 3773), 'grpc.server', 'grpc.server', (['thread_pool_executor'], {'options': '[(cygrpc... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.service_utils.ServiceUtils.register_service",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.api_utils.get_json_result"
] | [((911, 926), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (916, 926), False, 'from flask import Flask, request\n'), ((990, 1014), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1011, 1014), False, 'from fate_flow.settings import stat_logger\n'), ((1377, 1420)... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.data_utils.get_header_schema",
"fate_flow.utils.data_utils.list_to_str",
"fate_flow.entity.metric.MetricMeta",
"fate_flow.utils.job_utils.generate_session_id",
"fate_flow.entity.metric.Metric",
"fate_flow.scheduling_apps.client.ControllerClient.update_job"
] | [((981, 996), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (994, 996), False, 'from fate_arch.common import log, file_utils, EngineType\n'), ((2170, 2209), 'os.path.exists', 'os.path.exists', (["self.parameters['file']"], {}), "(self.parameters['file'])\n", (2184, 2209), False, 'import os\n'), (... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.MachineLearningModelInfo.get_or_none",
"fate_flow.utils.config_adapter.JobRuntimeConfigAdapter",
"fate_flow.utils.model_utils.compare_version",
"fate_flow.pipelined_model.pipelined_model.PipelinedModel",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.settings.stat_logge... | [((2493, 2596), 'fate_flow.pipelined_model.pipelined_model.PipelinedModel', 'pipelined_model.PipelinedModel', ([], {'model_id': "config['model_id']", 'model_version': "config['model_version']"}), "(model_id=config['model_id'], model_version=\n config['model_version'])\n", (2523, 2596), False, 'from fate_flow.pipelin... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.run_subprocess",
"fate_flow.utils.detect_utils.check_config",
"fate_flow.utils.job_utils.generate_job_id",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.utils.job_utils.get_job_directory"
] | [((1174, 1189), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1179, 1189), False, 'from flask import Flask, request\n'), ((1253, 1277), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1274, 1277), False, 'from fate_flow.settings import stat_logger, CLUSTER_STAN... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_saver.JobSaver.update_job_status",
"fate_flow.utils.data_utils.get_input_data_min_partitions",
"fate_flow.manager.resource_manager.ResourceManager.adapt_engine_parameters",
"fate_flow.manager.resource_manager.ResourceManager.get_engine_registration_info",
"fate_flow.utils.schedule_u... | [((2404, 2516), 'fate_flow.utils.schedule_utils.get_job_dsl_parser', 'schedule_utils.get_job_dsl_parser', ([], {'dsl': 'dsl', 'runtime_conf': 'runtime_conf', 'train_runtime_conf': 'train_runtime_conf'}), '(dsl=dsl, runtime_conf=runtime_conf,\n train_runtime_conf=train_runtime_conf)\n', (2437, 2516), False, 'from fat... |
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applica... | [
"fate_flow.utils.base_utils.get_fate_flow_directory",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_models.Job.select",
"fate_flow.db.db_models.Job.f_create_time.desc",
"fate_flow.db.db_models.Task.select",
"fate_flow.entity.JobConfiguration",
"fate_flow.db.service_registry.ServiceReg... | [((8246, 8269), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (8267, 8269), False, 'from fate_flow.db.db_models import DB, Job, Task\n'), ((10386, 10409), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (10407, 10409), False, 'from ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.grpc_utils.forward_grpc_packet",
"fate_flow.utils.grpc_utils.get_proxy_data_channel",
"fate_flow.utils.service_utils.ServiceUtils.get_item",
"fate_flow.utils.grpc_utils.wrap_grpc_packet"
] | [((1588, 1605), 'flask.jsonify', 'jsonify', (['response'], {}), '(response)\n', (1595, 1605), False, 'from flask import jsonify\n'), ((2856, 2975), 'fate_flow.utils.grpc_utils.wrap_grpc_packet', 'wrap_grpc_packet', (['json_body', 'method', 'endpoint', 'src_party_id', 'dest_party_id', 'job_id'], {'overall_timeout': 'ove... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.job_pipeline_component_name",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_utils.get_dynamic_db_model",
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.entity.Metric"
] | [((1340, 1363), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (1361, 1363), False, 'from fate_flow.db.db_models import DB, TrackingMetric\n'), ((1647, 1670), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (1668, 1670), False, 'from... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.or... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.entity.metric.Metric"
] | [((3203, 3224), 'arch.api.utils.log_utils.getLogger', 'log_utils.getLogger', ([], {}), '()\n', (3222, 3224), False, 'from arch.api.utils import log_utils\n'), ((4045, 4063), 'federatedml.tree.tree_core.predict_cache.PredictDataCache', 'PredictDataCache', ([], {}), '()\n', (4061, 4063), False, 'from federatedml.tree.tre... |
import hashlib
import json
import os
import random
import threading
import sys
import time
import uuid
import functools
import pandas as pd
import numpy as np
from fate_test._config import Config
from fate_test._io import echo, LOGGER
def import_fate():
from fate_arch import storage
from fate_flow.utils impo... | [
"fate_flow.manager.data_manager.DataTableTracker.create_table_tracker"
] | [((716, 746), 'sys.setrecursionlimit', 'sys.setrecursionlimit', (['(1000000)'], {}), '(1000000)\n', (737, 746), False, 'import sys\n'), ((1916, 1931), 'os.remove', 'os.remove', (['path'], {}), '(path)\n', (1925, 1931), False, 'import os\n'), ((14545, 14573), 'os.path.isfile', 'os.path.isfile', (['include_path'], {}), '... |
import json
import os
import time
import unittest
import requests
from fate_flow.entity.run_status import EndStatus, JobStatus
from fate_arch.common.file_utils import load_json_conf
from fate_flow.utils.base_utils import get_fate_flow_python_directory
from fate_flow.settings import API_VERSION, HOST, HTTP_PORT,IS_STA... | [
"fate_flow.utils.base_utils.get_fate_flow_python_directory",
"fate_flow.entity.run_status.EndStatus.contains"
] | [((4254, 4269), 'unittest.main', 'unittest.main', ([], {}), '()\n', (4267, 4269), False, 'import unittest\n'), ((2581, 2629), 'os.makedirs', 'os.makedirs', (['self.success_job_dir'], {'exist_ok': '(True)'}), '(self.success_job_dir, exist_ok=True)\n', (2592, 2629), False, 'import os\n'), ((1221, 1233), 'json.load', 'jso... |
#
# Copyright 2021 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.info",
"fate_flow.model.Locker",
"fate_flow.utils.base_utils.get_fate_flow_directory",
"fate_flow.utils.model_utils.gen_party_model_id"
] | [((1895, 1912), 'datetime.datetime.utcnow', 'datetime.utcnow', ([], {}), '()\n', (1910, 1912), False, 'from datetime import datetime\n'), ((2925, 2986), 'fate_flow.settings.stat_logger.info', 'stat_logger.info', (['f"""Checkpoint saved. path: {self.directory}"""'], {}), "(f'Checkpoint saved. path: {self.directory}')\n"... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_saver.JobSaver.update_task_status",
"fate_flow.utils.job_utils.get_job_parameters",
"fate_flow.operation.job_saver.JobSaver.create_task",
"fate_flow.utils.job_utils.get_job_dsl",
"fate_flow.operation.job_tracker.Tracker",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_... | [((1970, 2000), 'fate_arch.common.base_utils.current_timestamp', 'base_utils.current_timestamp', ([], {}), '()\n', (1998, 2000), False, 'from fate_arch.common import base_utils\n'), ((2327, 2368), 'fate_flow.operation.job_saver.JobSaver.create_task', 'JobSaver.create_task', ([], {'task_info': 'task_info'}), '(task_info... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.query_job",
"fate_flow.settings.detect_logger.exception",
"fate_flow.settings.detect_logger.info"
] | [((3609, 3656), 'fate_flow.settings.detect_logger.info', 'detect_logger.info', (['"""finish detect running job"""'], {}), "('finish detect running job')\n", (3627, 3656), False, 'from fate_flow.settings import detect_logger, API_VERSION\n'), ((2331, 2365), 'fate_flow.utils.job_utils.query_job', 'job_utils.query_job', (... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.run_subprocess",
"fate_flow.utils.job_utils.kill_task_executor_process",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.utils.job_utils.start_session_stop",
"fate_flow.utils.job_utils.get_job_directory"
] | [((2123, 2160), 'os.path.dirname', 'os.path.dirname', (['task_parameters_path'], {}), '(task_parameters_path)\n', (2138, 2160), False, 'import os\n'), ((2173, 2307), 'fate_flow.utils.job_utils.run_subprocess', 'job_utils.run_subprocess', ([], {'job_id': 'job_id', 'config_dir': 'task_dir', 'process_cmd': 'process_cmd', ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.manager.model_manager.publish_model.download_model",
"fate_flow.settings.stat_logger.exception",
"fate_flow.manager.model_manager.publish_model.bind_model_service",
"fate_flow.manager.model_manager.publish_model.load_model",
"fate_flow.driver.job_controller.JobController.submit_job",
"fate_flow... | [((1442, 1457), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1447, 1457), False, 'from flask import Flask, request, send_file\n'), ((1521, 1545), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1542, 1545), False, 'from fate_flow.settings import stat_logger, A... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_tracker.Tracker",
"fate_flow.manager.data_manager.delete_tables_by_table_infos",
"fate_flow.operation.job_saver.JobSaver.query_task",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.job_utils.start_session_stop",
"fate_flow.manager.data_manager.delete_metric_data"
] | [((1177, 1265), 'fate_flow.operation.job_tracker.Tracker', 'Tracker', ([], {'job_id': 'job_id', 'role': 'role', 'party_id': 'party_id', 'component_name': 'component_name'}), '(job_id=job_id, role=role, party_id=party_id, component_name=\n component_name)\n', (1184, 1265), False, 'from fate_flow.operation.job_tracker... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.exception",
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.request_stop_job",
"fate_flow.utils.api_utils.error_response",
"fate_flow.scheduler.dag_scheduler.DAGScheduler.update_parameters",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.scheduler... | [((6527, 6566), 'fate_flow.utils.detect_utils.validate_request', 'detect_utils.validate_request', (['"""job_id"""'], {}), "('job_id')\n", (6556, 6566), False, 'from fate_flow.utils import job_utils, detect_utils, schedule_utils, log_utils\n'), ((8377, 8416), 'fate_flow.utils.detect_utils.validate_request', 'detect_util... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.getLogger",
"fate_flow.components._base.ComponentMeta.get_meta"
] | [((860, 871), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (869, 871), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1085, 1121), 'importlib.import_module', 'importlib.import_module', (['module_name'], {}), '(module_name)\n', (1108, 1121), False, 'import importlib\n'), ((2310, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.service_registry.ServiceRegistry.LINKIS_SPARK_CONFIG.get",
"fate_flow.settings.detect_logger.exception",
"fate_flow.settings.detect_logger.info",
"fate_flow.utils.log_utils.schedule_logger"
] | [((1933, 1987), 'fate_flow.db.service_registry.ServiceRegistry.LINKIS_SPARK_CONFIG.get', 'ServiceRegistry.LINKIS_SPARK_CONFIG.get', (['"""python_path"""'], {}), "('python_path')\n", (1972, 1987), False, 'from fate_flow.db.service_registry import ServiceRegistry\n'), ((2859, 2889), 'copy.deepcopy', 'deepcopy', (['LINKIS... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.grpc_utils.get_command_federation_channel",
"fate_flow.utils.grpc_utils.forward_grpc_packet",
"fate_flow.settings.HEADERS.copy",
"fate_flow.utils.grpc_utils.gen_routing_metadata",
"fate_flow.utils.service_utils.ServiceUtils.get_item",
"fate_flow.settings.stat_logger.exception",
"fate_fl... | [((1853, 1870), 'flask.jsonify', 'jsonify', (['response'], {}), '(response)\n', (1860, 1870), False, 'from flask import jsonify\n'), ((1907, 1931), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1928, 1931), False, 'from fate_flow.settings import DEFAULT_REMOTE_REQUEST_TIMEO... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.entity.metric.Metric"
] | [((1558, 1584), 'arch.api.utils.log_utils.LoggerFactory.get_logger', 'LoggerFactory.get_logger', ([], {}), '()\n', (1582, 1584), False, 'from arch.api.utils.log_utils import LoggerFactory\n'), ((2055, 2068), 'federatedml.param.homo_nn_param.HomoNNParam', 'HomoNNParam', ([], {}), '()\n', (2066, 2068), False, 'from feder... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.RunParameters",
"fate_flow.worker.task_executor.TaskExecutor.get_task_run_args",
"fate_flow.operation.job_tracker.Tracker.query_output_data_infos",
"fate_flow.utils.schedule_utils.get_job_dsl_parser",
"fate_flow.worker.task_executor.TaskExecutor.get_job_args_on_party",
"fate_flow.manager... | [((2169, 2227), 'fate_flow.utils.detect_utils.validate_request', 'validate_request', (['"""engine"""', '"""address"""', '"""namespace"""', '"""name"""'], {}), "('engine', 'address', 'namespace', 'name')\n", (2185, 2227), False, 'from fate_flow.utils.detect_utils import validate_request\n'), ((7675, 7721), 'fate_flow.ut... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.service_registry.ServiceRegistry.FATE_ON_EGGROLL.get",
"fate_flow.utils.grpc_utils.gen_routing_metadata",
"fate_flow.db.service_registry.ServiceRegistry.FATE_ON_SPARK.get",
"fate_flow.settings.stat_logger.exception",
"fate_flow.db.service_registry.ServiceRegistry.FATEMANAGER.get",
"fate_flow... | [((1920, 1937), 'flask.jsonify', 'jsonify', (['response'], {}), '(response)\n', (1927, 1937), False, 'from flask import Response, jsonify\n'), ((1974, 1998), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1995, 1998), False, 'from fate_flow.settings import API_VERSION, CHECK... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lice... | [
"fate_flow.components._base.ComponentMeta",
"fate_flow.manager.data_manager.DataTableTracker.create_table_tracker",
"fate_flow.entity.Metric",
"fate_flow.manager.data_manager.TableStorage.copy_table"
] | [((1123, 1138), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (1136, 1138), False, 'from fate_arch.common import log\n'), ((1158, 1181), 'fate_flow.components._base.ComponentMeta', 'ComponentMeta', (['"""Writer"""'], {}), "('Writer')\n", (1171, 1181), False, 'from fate_flow.components._base impor... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_saver.JobSaver.update_job",
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.sync_job_status",
"fate_flow.entity.types.EndStatus.contains",
"fate_flow.db.db_models.Job",
"fate_flow.utils.job_utils.get_board_url",
"fate_flow.operation.job_saver.JobSaver.get_tasks_asc",
... | [((27653, 27676), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (27674, 27676), False, 'from fate_flow.db.db_models import DB, Job\n'), ((28380, 28403), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (28401, 28403), False, 'from fa... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.DB.execute_sql",
"fate_flow.settings.stat_logger.warning",
"fate_flow.settings.stat_logger.info",
"fate_flow.db.db_models.DataTableTracking",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_models.DataTableTracking.select",
"fate_flow.db.db_models.DataTableTracki... | [((12627, 12650), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (12648, 12650), False, 'from fate_flow.db.db_models import DB, TrackingMetric, DataTableTracking\n'), ((12932, 12955), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (... |
import numpy as np
from fate_arch.session import computing_session as session
from federatedml.util import consts
from federatedml.transfer_learning.hetero_ftl.ftl_base import FTL
from federatedml.statistic.intersect import intersect_guest
from federatedml.util import LOGGER
from federatedml.transfer_learning.hetero_ft... | [
"fate_flow.entity.metric.Metric",
"fate_flow.entity.metric.MetricMeta"
] | [((1408, 1466), 'federatedml.statistic.intersect.intersect_guest.RsaIntersectionGuest', 'intersect_guest.RsaIntersectionGuest', (['self.intersect_param'], {}), '(self.intersect_param)\n', (1444, 1466), False, 'from federatedml.statistic.intersect import intersect_guest\n'), ((1641, 1671), 'federatedml.util.LOGGER.debug... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.api_utils.local_api"
] | [((697, 712), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (710, 712), False, 'from fate_arch.common import log\n'), ((823, 959), 'fate_flow.utils.api_utils.local_api', 'api_utils.local_api', ([], {'job_id': 'job_id', 'method': '"""POST"""', 'endpoint': '"""/operation/job_config/get"""', 'json_b... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.entity.run_status.JobStatus.StateTransitionRule.if_pass",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_models.Task.select",
"fate_flow.entity.run_status.EndStatus.contains",
"fate_flow.utils.schedule_utils.fill_inference_dsl",
"... | [((1317, 1340), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (1338, 1340), False, 'from fate_flow.db.db_models import DB, Job, Task, DataBaseModel\n'), ((4363, 4386), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (4384, 4386), Fa... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.utils.job_utils.job_pipeline_component_name",
"fate_flow.db.db_models.Job.get_or_none",
"fate_flow.manager.cache_manager.CacheManager.load",
"fate_flow.db.db_models.MachineLearningModelInfo.get_or_none",
"fate_flow.manager.cache_manager.CacheManager.... | [((4422, 4445), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (4443, 4445), False, 'from fate_flow.db.db_models import DB, Job, TrackingOutputDataInfo, ComponentSummary, MachineLearningModelInfo as MLModel\n'), ((5274, 5297), 'fate_flow.db.db_models.DB.connection_context', '... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.detect_utils.check_config",
"fate_flow.driver.job_controller.JobController.submit_job",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.api_utils.get_json_result"
] | [((906, 921), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (911, 921), False, 'from flask import Flask, request\n'), ((985, 1009), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1006, 1009), False, 'from fate_flow.settings import stat_logger\n'), ((1542, 1627)... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lic... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.entity.metric.Metric"
] | [((976, 997), 'arch.api.utils.log_utils.getLogger', 'log_utils.getLogger', ([], {}), '()\n', (995, 997), False, 'from arch.api.utils import log_utils\n'), ((1824, 1909), 'fate_flow.entity.metric.MetricMeta', 'MetricMeta', ([], {'name': '"""train"""', 'metric_type': '"""LOSS"""', 'extra_metas': "{'unit_name': 'iters'}"}... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.query_job",
"fate_flow.utils.job_utils.check_pipeline_job_runtime_conf",
"fate_flow.utils.detect_utils.check_config",
"fate_flow.utils.job_utils.get_job_dsl_parser",
"fate_flow.utils.job_utils.query_task",
"fate_flow.utils.job_controller_utils.job_quantity_constraint",
"fate_f... | [((2048, 2107), 'fate_flow.utils.job_utils.check_pipeline_job_runtime_conf', 'job_utils.check_pipeline_job_runtime_conf', (['job_runtime_conf'], {}), '(job_runtime_conf)\n', (2089, 2107), False, 'from fate_flow.utils import detect_utils, job_utils, job_controller_utils\n'), ((3203, 3346), 'fate_flow.utils.job_utils.sav... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.utils.job_utils.job_pipeline_component_name",
"fate_flow.operation.job_saver.JobSaver.update_job",
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.sync_job_status",
"fate_flow.entity.run_status.EndStatus.contains",
"fate_flow.utils.log_ut... | [((31042, 31065), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (31063, 31065), False, 'from fate_flow.db.db_models import DB, Job, Task\n'), ((31769, 31792), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (31790, 31792), False, 'f... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.detect_utils.check_config",
"fate_flow.utils.data_utils.dataset_to_list",
"fate_flow.manager.data_manager.delete_metric_data",
"fate_flow.settings.stat_logger.warning",
"fate_flow.utils.schedule_utils.get_job_dsl_parser",
"fate_flow.utils.api_utils.error_response",
"fate_flow.operation.... | [((1468, 1483), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1473, 1483), False, 'from flask import Flask, request, send_file, jsonify\n'), ((21332, 21355), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (21353, 21355), False, 'from fate_flow.db.db_models impo... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.process_utils.run_subprocess",
"fate_flow.scheduling_apps.client.ControllerClient.update_job",
"fate_flow.components._base.ComponentMeta",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.utils.base_utils.get_fate_flow_directory",
"fate_flow.utils.job_utils.get_job_directory"... | [((1510, 1525), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (1523, 1525), False, 'from fate_arch.common import EngineType, file_utils, log, path_utils\n'), ((1545, 1568), 'fate_flow.components._base.ComponentMeta', 'ComponentMeta', (['"""Upload"""'], {}), "('Upload')\n", (1558, 1568), False, 'f... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.get_job_parameters",
"fate_flow.entity.types.RunParameters",
"fate_flow.utils.detect_utils.check_config",
"fate_flow.utils.schedule_utils.get_job_dsl_parser",
"fate_flow.operation.Tracker.query_output_data_infos",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.ap... | [((1013, 1028), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1018, 1028), False, 'from flask import Flask, request\n'), ((1092, 1116), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1113, 1116), False, 'from fate_flow.settings import stat_logger\n'), ((1268, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.query_job",
"fate_flow.driver.job_controller.JobController.clean_job",
"fate_flow.driver.job_controller.JobController.submit_job",
"fate_flow.utils.job_utils.query_task",
"fate_flow.driver.job_controller.JobController.update_task_status",
"fate_flow.settings.stat_logger.exceptio... | [((1048, 1063), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1053, 1063), False, 'from flask import Flask, request, send_file\n'), ((1127, 1151), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1148, 1151), False, 'from fate_flow.settings import stat_logger\n'... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.metric.Metric",
"fate_flow.entity.metric.MetricMeta"
] | [((1340, 1353), 'federatedml.param.hetero_kmeans_param.KmeansParam', 'KmeansParam', ([], {}), '()\n', (1351, 1353), False, 'from federatedml.param.hetero_kmeans_param import KmeansParam\n'), ((1595, 1648), 'federatedml.framework.hetero.procedure.table_aggregator.Server', 'table_aggregator.Server', ([], {'enable_secure_... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.runtime_config.RuntimeConfig.get_env",
"fate_flow.db.job_default_config.JobDefaultConfig.get_all",
"fate_flow.db.config_manager.ConfigManager.load",
"fate_flow.db.service_registry.ServiceRegistry.get",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.db.service_registry.ServiceRegistr... | [((1096, 1128), 'flask.request.json.get', 'request.json.get', (['"""module"""', 'None'], {}), "('module', None)\n", (1112, 1128), False, 'from flask import request\n'), ((1302, 1331), 'fate_flow.utils.api_utils.get_json_result', 'get_json_result', ([], {'data': 'version'}), '(data=version)\n', (1317, 1331), False, 'fro... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.manager.dependence_manager.DependenceManager.kill_upload_process",
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.request_stop_job",
"fate_flow.db.db_models.DependenciesStorageMeta.select",
"fate_flow.utils.job_utils.check_job_is_timeout",
"fate_flow.utils.log_utils.detect_logger",
... | [((4949, 4972), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (4970, 4972), False, 'from fate_flow.db.db_models import DB, Job, DependenciesStorageMeta\n'), ((6593, 6616), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (6614, 6616)... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.kill_task_executor_process",
"fate_flow.utils.job_utils.get_job_directory",
"fate_flow.utils.job_utils.run_subprocess",
"fate_flow.utils.job_utils.start_session_stop",
"fate_flow.utils.job_utils.get_job_log_directory"
] | [((1623, 1667), 'os.path.join', 'os.path.join', (['spark_home', '"""bin/spark-submit"""'], {}), "(spark_home, 'bin/spark-submit')\n", (1635, 1667), False, 'import os\n'), ((3015, 3052), 'os.path.dirname', 'os.path.dirname', (['task_parameters_path'], {}), '(task_parameters_path)\n', (3030, 3052), False, 'import os\n'),... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.scheduler.FederatedScheduler.request_stop_job",
"fate_flow.utils.job_utils.check_job_is_timeout",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.operation.JobSaver.query_task",
"fate_flow.db.db_models.Job.select",
"fate_flow.manager.ResourceManager.return_job_resource",
"fate_flow... | [((3926, 3949), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (3947, 3949), False, 'from fate_flow.db.db_models import DB, Job\n'), ((5689, 5761), 'fate_arch.storage.StorageSessionBase.query_expired_sessions_record', 'StorageSessionBase.query_expired_sessions_record', ([], {... |
#
# Copyright 2021 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.info",
"fate_flow.settings.stat_logger.debug"
] | [((3739, 3777), 'kfserving.KFServingClient', 'kfserving.KFServingClient', (['config_file'], {}), '(config_file)\n', (3764, 3777), False, 'import kfserving\n'), ((7059, 7106), 'fate_flow.settings.stat_logger.info', 'stat_logger.info', (['"""InferenceService spec ready"""'], {}), "('InferenceService spec ready')\n", (707... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.driver.job_controller.JobController.clean_job",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.driver.task_scheduler.TaskScheduler.start_task",
"fate_flow.driver.job_controller.JobController.update_task_status"
] | [((1002, 1017), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1007, 1017), False, 'from flask import Flask, request\n'), ((1081, 1105), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1102, 1105), False, 'from fate_flow.settings import stat_logger\n'), ((1476, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.db.db_services.service_db",
"fate_flow.db.db_models.init_database_tables",
"fate_flow.utils.grpc_utils.UnaryService",
"fate_flow.settings.stat_logger.info",
"fate_flow.db.runtime_config.RuntimeConfig.set_process_role",
"fate_flow.db.runtime_config.... | [((2492, 2506), 'fate_flow.db.db_models.init_database_tables', 'init_flow_db', ([], {}), '()\n', (2504, 2506), True, 'from fate_flow.db.db_models import init_database_tables as init_flow_db\n'), ((2511, 2525), 'fate_arch.metastore.db_models.init_database_tables', 'init_arch_db', ([], {}), '()\n', (2523, 2525), True, 'f... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.controller.job_controller.JobController.gen_updated_parameters",
"fate_flow.utils.base_utils.jprint",
"fate_flow.utils.job_utils.get_job_configuration"
] | [((3931, 3946), 'unittest.main', 'unittest.main', ([], {}), '()\n', (3944, 3946), False, 'import unittest\n'), ((2202, 2302), 'fate_flow.utils.job_utils.get_job_configuration', 'job_utils.get_job_configuration', ([], {'job_id': 'job_id', 'role': 'initiator_role', 'party_id': 'initiator_party_id'}), '(job_id=job_id, rol... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.utils.log_utils.audit_logger",
"fate_flow.utils.proto_compatibility.proxy_pb2_grpc.DataTransferServiceStub",
"fate_flow.utils.grpc_utils.gen_routing_metadata",
"fate_flow.utils.grpc_utils.wrap_grpc_packet"
] | [((1035, 1082), 'fate_flow.utils.proto_compatibility.proxy_pb2_grpc.DataTransferServiceStub', 'proxy_pb2_grpc.DataTransferServiceStub', (['channel'], {}), '(channel)\n', (1073, 1082), False, 'from fate_flow.utils.proto_compatibility import proxy_pb2_grpc\n'), ((1424, 1543), 'fate_flow.utils.grpc_utils.wrap_grpc_packet'... |
import os
import time
import unittest
from unittest.mock import patch
from kazoo.client import KazooClient
from kazoo.exceptions import NodeExistsError, NoNodeError
from fate_flow.db import db_services
from fate_flow.errors.error_services import *
from fate_flow.db.db_models import DB, MachineLearningModelInfo as MLM... | [
"fate_flow.db.db_services.service_db",
"fate_flow.db.db_services.get_model_download_url",
"fate_flow.db.db_services.models_group_by_party_model_id_and_model_version",
"fate_flow.db.db_models.MachineLearningModelInfo.create_table",
"fate_flow.db.db_models.MachineLearningModelInfo"
] | [((6336, 6351), 'unittest.main', 'unittest.main', ([], {}), '()\n', (6349, 6351), False, 'import unittest\n'), ((1017, 1053), 'os.environ.get', 'os.environ.get', (['"""ZOOKEEPER_USERNAME"""'], {}), "('ZOOKEEPER_USERNAME')\n", (1031, 1053), False, 'import os\n'), ((1073, 1109), 'os.environ.get', 'os.environ.get', (['"""... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.model_utils.compare_version",
"fate_flow.utils.schedule_utils.get_dsl_parser_by_version",
"fate_flow.utils.config_adapter.JobRuntimeConfigAdapter",
"fate_flow.utils.model_utils.save_model_info",
"fate_flow.model.checkpoint.CheckpointManager",
"fate_flow.pipelined_model.pipelined_model.Pip... | [((1675, 1754), 'fate_flow.utils.model_utils.gen_party_model_id', 'gen_party_model_id', ([], {'model_id': 'model_id', 'role': 'local_role', 'party_id': 'local_party_id'}), '(model_id=model_id, role=local_role, party_id=local_party_id)\n', (1693, 1754), False, 'from fate_flow.utils.model_utils import gen_party_model_id,... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.metric.MetricMeta"
] | [((983, 1004), 'arch.api.utils.log_utils.getLogger', 'log_utils.getLogger', ([], {}), '()\n', (1002, 1004), False, 'from arch.api.utils import log_utils\n'), ((5839, 5881), 'numpy.hstack', 'np.hstack', (['(host_gradient, guest_gradient)'], {}), '((host_gradient, guest_gradient))\n', (5848, 5881), True, 'import numpy as... |
#
# Copyright 2021 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.HTTP_APP_KEY.encode",
"fate_flow.settings.HTTP_SECRET_KEY.encode"
] | [((958, 1010), 'functools.partial', 'functools.partial', (['json.dumps'], {'cls': 'CustomJSONEncoder'}), '(json.dumps, cls=CustomJSONEncoder)\n', (975, 1010), False, 'import functools\n'), ((1047, 1065), 'requests.Session', 'requests.Session', ([], {}), '()\n', (1063, 1065), False, 'import requests\n'), ((1127, 1153), ... |
import unittest
from unittest.mock import patch
import os
import io
import shutil
import hashlib
import concurrent.futures
from pathlib import Path
from copy import deepcopy
from zipfile import ZipFile
from ruamel import yaml
from fate_flow.pipelined_model.pipelined_model import PipelinedModel
from fate_flow.setting... | [
"fate_flow.pipelined_model.pipelined_model.PipelinedModel"
] | [((447, 465), 'ruamel.yaml.safe_load', 'yaml.safe_load', (['_f'], {}), '(_f)\n', (461, 465), False, 'from ruamel import yaml\n'), ((7513, 7528), 'unittest.main', 'unittest.main', ([], {}), '()\n', (7526, 7528), False, 'import unittest\n'), ((707, 742), 'shutil.rmtree', 'shutil.rmtree', (['TEMP_DIRECTORY', '(True)'], {}... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.DATABASE.copy",
"fate_flow.entity.runtime_config.RuntimeConfig.init_config",
"fate_flow.settings.stat_logger.info"
] | [((1261, 1276), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (1274, 1276), False, 'from fate_arch.common import log\n'), ((2311, 2346), 'os.path.realpath', 'os.path.realpath', (['__main__.__file__'], {}), '(__main__.__file__)\n', (2327, 2346), False, 'import os\n'), ((2909, 2967), 'inspect.getme... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.warning",
"fate_flow.settings.stat_logger.exception"
] | [((1433, 1481), 'os.path.join', 'os.path.join', (['self.model_path', '"""define"""', '"""proto"""'], {}), "(self.model_path, 'define', 'proto')\n", (1445, 1481), False, 'import os\n'), ((1514, 1573), 'os.path.join', 'os.path.join', (['self.model_path', '"""define"""', '"""define_meta.yaml"""'], {}), "(self.model_path, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.utils.authentication_utils.modify_permission"
] | [((840, 855), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (845, 855), False, 'from flask import Flask, request\n'), ((919, 943), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (940, 943), False, 'from fate_flow.settings import stat_logger\n'), ((1082, 1113), '... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.get_job_conf",
"fate_flow.entity.runtime_config.RuntimeConfig.init_config",
"fate_flow.utils.schedule_utils.get_job_dsl_parser",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.operation.Tracker",
"fate_flow.utils.job_utils.generate_task_version_id",
"fate_flow.o... | [((1424, 1435), 'fate_arch.common.log.getLogger', 'getLogger', ([], {}), '()\n', (1433, 1435), False, 'from fate_arch.common.log import schedule_logger, getLogger\n'), ((19376, 19425), 'fate_flow.scheduling_apps.client.ControllerClient.report_task', 'ControllerClient.report_task', ([], {'task_info': 'task_info'}), '(ta... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.start_task",
"fate_flow.scheduler.federated_scheduler.FederatedScheduler.stop_task",
"fate_flow.entity.types.EndStatus.status_list",
"fate_flow.entity.types.EndStatus.contains",
"fate_flow.operation.job_saver.JobSaver.update_task",
"fate_flow.sch... | [((1308, 1398), 'fate_flow.operation.job_saver.JobSaver.get_tasks_asc', 'JobSaver.get_tasks_asc', ([], {'job_id': 'job.f_job_id', 'role': 'job.f_role', 'party_id': 'job.f_party_id'}), '(job_id=job.f_job_id, role=job.f_role, party_id=job.\n f_party_id)\n', (1330, 1398), False, 'from fate_flow.operation.job_saver impo... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.successful_log",
"fate_flow.controller.task_controller.TaskController.create_task",
"fate_flow.manager.provider_manager.ProviderManager.get_component_parameters",
"fate_flow.utils.schedule_utils.get_job_dsl_parser",
"fate_flow.utils.log_utils.getLogger",
"fate_flow.utils.log_uti... | [((1007, 1018), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (1016, 1018), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1117, 1301), 'fate_flow.utils.schedule_utils.get_job_dsl_parser', 'schedule_utils.get_job_dsl_parser', ([], {'dsl': 'self.args.dsl', 'runtime_conf': 'self.ar... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.runtime_config.RuntimeConfig.init_config",
"fate_flow.settings.stat_logger.info",
"fate_flow.settings.DATABASE.copy"
] | [((1152, 1173), 'arch.api.utils.log_utils.getLogger', 'log_utils.getLogger', ([], {}), '()\n', (1171, 1173), False, 'from arch.api.utils import log_utils\n'), ((3456, 3480), 'peewee.CharField', 'CharField', ([], {'max_length': '(32)'}), '(max_length=32)\n', (3465, 3480), False, 'from peewee import Model, CharField, Int... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_saver.JobSaver.update_job",
"fate_flow.operation.job_saver.JobSaver.query_job",
"fate_flow.utils.log_utils.getLogger",
"fate_flow.controller.job_controller.JobController.job_reload"
] | [((918, 929), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (927, 929), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((996, 1094), 'fate_flow.operation.job_saver.JobSaver.query_job', 'JobSaver.query_job', ([], {'job_id': 'self.args.job_id', 'role': 'self.args.role', 'party_id': '... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.exception"
] | [((914, 929), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (919, 929), False, 'from flask import Flask, request\n'), ((992, 1016), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1013, 1016), False, 'from fate_flow.settings import stat_logger\n'), ((1610, 1635)... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.getLogger",
"fate_flow.db.component_registry.ComponentRegistry.register_provider",
"fate_flow.db.component_registry.ComponentRegistry.register_components",
"fate_flow.db.component_registry.ComponentRegistry.dump"
] | [((929, 940), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (938, 940), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1102, 1147), 'fate_flow.db.component_registry.ComponentRegistry.register_provider', 'ComponentRegistry.register_provider', (['provider'], {}), '(provider)\n', (1... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.Job",
"fate_flow.utils.session_utils.session_detect",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.utils.job_utils.generate_session_id",
"fate_flow.db.db_models.DB.create_tables",
"fate_flow.db.db_models.Task",
"fate_flow.db.db_models.DataView",
"fate_flow.db.db_m... | [((10421, 10451), 'fate_flow.utils.session_utils.session_detect', 'session_utils.session_detect', ([], {}), '()\n', (10449, 10451), False, 'from fate_flow.utils import job_utils, api_utils, model_utils, session_utils\n'), ((12799, 12829), 'fate_flow.utils.session_utils.session_detect', 'session_utils.session_detect', (... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.service_utils.ServiceUtils.get",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.manager.model_manager.publish_model.bind_model_service",
"fate_flow.settings.stat_logger.exception",
"fate_flow.driver.job_controller.JobController.submit_job",
"fate_flow.manager.model_manager.publis... | [((1337, 1352), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1342, 1352), False, 'from flask import Flask, request, send_file\n'), ((1416, 1440), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1437, 1440), False, 'from fate_flow.settings import stat_logger, A... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.metric.Metric",
"fate_flow.entity.metric.MetricMeta"
] | [((1478, 1499), 'arch.api.utils.log_utils.getLogger', 'log_utils.getLogger', ([], {}), '()\n', (1497, 1499), False, 'from arch.api.utils import log_utils\n'), ((4293, 4308), 'federatedml.param.EvaluateParam', 'EvaluateParam', ([], {}), '()\n', (4306, 4308), False, 'from federatedml.param import EvaluateParam\n'), ((433... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.getLogger",
"fate_flow.components._base.ComponentMeta"
] | [((953, 964), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (962, 964), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1609, 1636), 'fate_flow.components._base.ComponentMeta', 'ComponentMeta', (['"""ModelStore"""'], {}), "('ModelStore')\n", (1622, 1636), False, 'from fate_flow.co... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lic... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.entity.metric.Metric"
] | [((1880, 1901), 'federatedml.param.boosting_param.HeteroBoostingParam', 'HeteroBoostingParam', ([], {}), '()\n', (1899, 1901), False, 'from federatedml.param.boosting_param import HeteroBoostingParam\n'), ((1935, 1967), 'federatedml.transfer_variable.transfer_class.hetero_boosting_transfer_variable.HeteroBoostingTransf... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.settings.stat_logger.error",
"fate_flow.settings.stat_logger.info",
"fate_flow.settings.stat_logger.exception"
] | [((2711, 2805), 'arch.api.session.table', 'session.table', ([], {'namespace': 'DETECT_TABLE[0]', 'name': 'DETECT_TABLE[1]', 'partition': 'DETECT_TABLE[2]'}), '(namespace=DETECT_TABLE[0], name=DETECT_TABLE[1], partition=\n DETECT_TABLE[2])\n', (2724, 2805), False, 'from arch.api import session\n'), ((2847, 2941), 'ar... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.entity.types.RunParameters",
"fate_flow.settings.SUPPORT_BACKENDS_ENTRANCE.items",
"fate_flow.utils.job_utils.get_job_parameters",
"fate_flow.db.db_models.EngineRegistry.select",
"fate_flow.db.db_models.EngineRegistry.update",
"fate_flow.setting... | [((2496, 2519), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (2517, 2519), False, 'from fate_flow.db.db_models import DB, EngineRegistry, Job\n'), ((5847, 5870), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (5868, 5870), False, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.manager.data_manager.DataTableTracker.create_table_tracker",
"fate_flow.operation.job_saver.JobSaver.query_job",
"fate_flow.worker.task_executor.TaskExecutor.get_job_args_on_party",
"fate_flow.entity.RunParameters",
"fate_flow.worker.task_executor.TaskExecutor.get_task_run_args",
"fate_flow.uti... | [((1326, 1384), 'fate_flow.utils.detect_utils.validate_request', 'validate_request', (['"""engine"""', '"""address"""', '"""namespace"""', '"""name"""'], {}), "('engine', 'address', 'namespace', 'name')\n", (1342, 1384), False, 'from fate_flow.utils.detect_utils import validate_request\n'), ((5186, 5232), 'fate_flow.ut... |
#
# Copyright 2021 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.getLogger",
"fate_flow.model.checkpoint.CheckpointManager",
"fate_flow.entity.MetricMeta",
"fate_flow.utils.model_utils.gen_party_model_id",
"fate_flow.scheduling_apps.client.operation_client.OperationClient",
"fate_flow.entity.JobConfiguration",
"fate_flow.components._base.Co... | [((1190, 1201), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (1199, 1201), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1226, 1254), 'fate_flow.components._base.ComponentMeta', 'ComponentMeta', (['"""ModelLoader"""'], {}), "('ModelLoader')\n", (1239, 1254), False, 'from fate_f... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.ModelTag.delete",
"fate_flow.db.db_models.Tag",
"fate_flow.scheduler.DAGScheduler.submit",
"fate_flow.pipelined_model.publish_model.generate_publish_model_info",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_models.ModelTag.filter",
"fate_flow.db.db_models.Tag.... | [((1655, 1670), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1660, 1670), False, 'from flask import Flask, request, send_file\n'), ((19860, 19883), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (19881, 19883), False, 'from fate_flow.db.db_models import Tag, D... |
from fate_arch.common import EngineType, engine_utils
from fate_flow.utils.log_utils import schedule_logger
from fate_arch.computing import ComputingEngine
from fate_flow.db.dependence_registry import DependenceRegistry
from fate_flow.entity import ComponentProvider
from fate_flow.entity.types import FateDependenceName... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.settings.ENGINES.get",
"fate_flow.db.dependence_registry.DependenceRegistry.save_dependencies_storage_meta",
"fate_flow.db.dependence_registry.DependenceRegistry.get_modify_time",
"fate_flow.db.dependence_registry.DependenceRegistry.get_dependencies_st... | [((5040, 5073), 'fate_flow.settings.ENGINES.get', 'ENGINES.get', (['EngineType.COMPUTING'], {}), '(EngineType.COMPUTING)\n', (5051, 5073), False, 'from fate_flow.settings import DEPENDENT_DISTRIBUTION, FATE_FLOW_UPDATE_CHECK, ENGINES\n'), ((5252, 5383), 'fate_flow.utils.schedule_utils.get_job_dsl_parser', 'schedule_uti... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.entity.DataCache",
"fate_flow.utils.base_utils.new_unique_id",
"fate_flow.db.db_models.CacheRecord",
"fate_flow.db.db_models.CacheRecord.query"
] | [((2669, 2692), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (2690, 2692), False, 'from fate_flow.db.db_models import DB, CacheRecord\n'), ((3780, 3803), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (3801, 3803), False, 'from fa... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.job_server_routing",
"fate_flow.utils.job_utils.get_job_dsl_parser_by_job_id",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.settings.stat_logger.warning",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.db.db_models.Job.select",
"fate_flow.settings.stat_l... | [((1331, 1346), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1336, 1346), False, 'from flask import Flask, request, send_file, make_response\n'), ((2872, 2905), 'fate_flow.utils.job_utils.job_server_routing', 'job_utils.job_server_routing', (['(307)'], {}), '(307)\n', (2900, 2905), False, 'from fate_flo... |
import os
import sys
from fate_arch import storage
from fate_arch.common import EngineType
from fate_flow.controller.job_controller import JobController
from fate_flow.entity.run_status import JobInheritanceStatus, TaskStatus
from fate_flow.operation.job_saver import JobSaver
from fate_flow.utils.log_utils import sche... | [
"fate_flow.utils.log_utils.schedule_logger",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.utils.job_utils.get_job_directory",
"fate_flow.settings.ENGINES.get",
"fate_flow.db.dependence_registry.DependenceRegistry.save_dependencies_storage_meta",
"fate_flow.db.dependence_registry.Dependenc... | [((2674, 2712), 'fate_flow.controller.job_controller.JobController.load_task_tracker', 'JobController.load_task_tracker', (['tasks'], {}), '(tasks)\n', (2705, 2712), False, 'from fate_flow.controller.job_controller import JobController\n'), ((3541, 3704), 'fate_flow.operation.job_saver.JobSaver.update_job', 'JobSaver.u... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.runtime_config.RuntimeConfig.set_process_role",
"fate_flow.db.db_models.init_database_tables",
"fate_flow.utils.xthread.ThreadPoolExecutor",
"fate_flow.scheduler.detector.Detector",
"fate_flow.scheduler.dag_scheduler.DAGScheduler",
"fate_flow.utils.authentication_utils.PrivilegeAuth.init... | [((2712, 2727), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (2717, 2727), False, 'from flask import Flask\n'), ((2791, 2815), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (2812, 2815), False, 'from fate_flow.settings import IP, HTTP_PORT, GRPC_PORT, _ONE_DAY... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.MetricMeta",
"fate_flow.operation.job_tracker.Tracker",
"fate_flow.utils.log_utils.getLogger",
"fate_flow.components._base.ComponentMeta"
] | [((890, 901), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (899, 901), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((927, 955), 'fate_flow.components._base.ComponentMeta', 'ComponentMeta', (['"""CacheLoader"""'], {}), "('CacheLoader')\n", (940, 955), False, 'from fate_flow.comp... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.MetricMeta.from_dict",
"fate_flow.utils.log_utils.getLogger",
"fate_flow.operation.job_tracker.Tracker",
"fate_flow.entity.Metric.from_dict"
] | [((1083, 1094), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (1092, 1094), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1999, 2215), 'fate_flow.operation.job_tracker.Tracker', 'Tracker', ([], {'job_id': 'job_id', 'role': 'role', 'party_id': 'party_id', 'component_name': 'compo... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.pipelined_model.pipelined_model.PipelinedModel",
"fate_flow.settings.stat_logger.exception",
"fate_flow.db.db_models.MachineLearningModelInfo",
"fate_flow.db.db_models.MachineLearningModelInfo.select",
"fate_flow.settings.stat_logger.info"
] | [((2168, 2191), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (2189, 2191), False, 'from fate_flow.db.db_models import DB, MachineLearningModelInfo as MLModel\n'), ((7075, 7098), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (7096... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.get_job_directory",
"fate_flow.utils.job_utils.get_job_configuration",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.scheduler.DAGScheduler.submit",
"fate_flow.utils.detect_utils.check_config",
"fate_flow.settings.stat_logger.exception",
"fate_flow.operation.JobSaver... | [((1021, 1036), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1026, 1036), False, 'from flask import Flask, request\n'), ((1100, 1124), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1121, 1124), False, 'from fate_flow.settings import stat_logger, UPLOAD_DATA_... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.schedule_logger"
] | [((798, 823), 'argparse.ArgumentParser', 'argparse.ArgumentParser', ([], {}), '()\n', (821, 823), False, 'import argparse\n'), ((1484, 1512), 'fate_flow.utils.log_utils.schedule_logger', 'schedule_logger', (['fate_job_id'], {}), '(fate_job_id)\n', (1499, 1512), False, 'from fate_flow.utils.log_utils import schedule_log... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.detect_utils.validate_request",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.manager.resource_manager.ResourceManager.query_resource"
] | [((1248, 1274), 'fate_flow.utils.detect_utils.validate_request', 'validate_request', (['"""job_id"""'], {}), "('job_id')\n", (1264, 1274), False, 'from fate_flow.utils.detect_utils import validate_request\n'), ((935, 981), 'fate_flow.manager.resource_manager.ResourceManager.query_resource', 'ResourceManager.query_resou... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.runtime_config.RuntimeConfig.init_config",
"fate_flow.utils.setting_utils.CenterConfig.get_settings"
] | [((988, 1019), 'arch.api.utils.conf_utils.get_base_config', 'get_base_config', (['"""work_mode"""', '(0)'], {}), "('work_mode', 0)\n", (1003, 1019), False, 'from arch.api.utils.conf_utils import get_base_config\n'), ((1530, 1561), 'arch.api.utils.conf_utils.get_base_config', 'get_base_config', (['"""database"""', '{}']... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.Job",
"fate_flow.driver.dsl_parser.DSLParser",
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.settings.stat_logger.warning",
"fate_flow.db.db_models.Job.select",
"fate_flow.utils.api_utils.request_execute_server",
"fate_flow.settings.stat_logger.info",
"fate_flow.en... | [((1275, 1292), 'threading.RLock', 'threading.RLock', ([], {}), '()\n', (1290, 1292), False, 'import threading\n'), ((2380, 2465), 'fate_flow.utils.detect_utils.check_config', 'detect_utils.check_config', (['runtime_conf', "['initiator', 'job_parameters', 'role']"], {}), "(runtime_conf, ['initiator', 'job_parameters', ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.DB.connection_context",
"fate_flow.db.db_models.DataView.select",
"fate_flow.db.db_models.DB.execute_sql",
"fate_flow.settings.stat_logger.info",
"fate_flow.settings.stat_logger.exception",
"fate_flow.utils.session_utils.session_detect"
] | [((1283, 1313), 'fate_flow.utils.session_utils.session_detect', 'session_utils.session_detect', ([], {}), '()\n', (1311, 1313), False, 'from fate_flow.utils import session_utils\n'), ((853, 876), 'fate_flow.db.db_models.DB.connection_context', 'DB.connection_context', ([], {}), '()\n', (874, 876), False, 'from fate_flo... |
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/lic... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.entity.metric.Metric"
] | [((1111, 1130), 'federatedml.param.sample_weight_param.SampleWeightParam', 'SampleWeightParam', ([], {}), '()\n', (1128, 1130), False, 'from federatedml.param.sample_weight_param import SampleWeightParam\n'), ((1633, 1664), 'federatedml.statistic.data_overview.get_label_count', 'get_label_count', (['data_instances'], {... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.config_adapter.JobRuntimeConfigAdapter",
"fate_flow.utils.model_utils.check_before_deploy",
"fate_flow.pipelined_model.pipelined_model.PipelinedModel",
"fate_flow.utils.model_utils.save_model_info",
"fate_flow.utils.model_utils.gen_party_model_id",
"fate_flow.utils.model_utils.compare_ver... | [((1446, 1542), 'fate_flow.utils.model_utils.gen_party_model_id', 'model_utils.gen_party_model_id', ([], {'model_id': 'model_id', 'role': 'local_role', 'party_id': 'local_party_id'}), '(model_id=model_id, role=local_role, party_id\n =local_party_id)\n', (1476, 1542), False, 'from fate_flow.utils import model_utils, ... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.job_default_config.JobDefaultConfig.default_component_provider_path.split",
"fate_flow.db.component_registry.ComponentRegistry.get_provider_components",
"fate_flow.db.component_registry.ComponentRegistry.get_default_class_path",
"fate_flow.db.component_registry.ComponentRegistry.get_providers",
... | [((1704, 1830), 'fate_flow.manager.worker_manager.WorkerManager.start_general_worker', 'WorkerManager.start_general_worker', ([], {'worker_name': 'WorkerName.PROVIDER_REGISTRAR', 'provider': 'provider', 'run_in_subprocess': '(False)'}), '(worker_name=WorkerName.\n PROVIDER_REGISTRAR, provider=provider, run_in_subpro... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.log_utils.getLogger",
"fate_flow.db.dependence_registry.DependenceRegistry.get_modify_time",
"fate_flow.db.db_models.ComponentProviderInfo.get_or_none",
"fate_flow.db.dependence_registry.DependenceRegistry.save_dependencies_storage_meta",
"fate_flow.utils.base_utils.get_fate_flow_python_dir... | [((1229, 1240), 'fate_flow.utils.log_utils.getLogger', 'getLogger', ([], {}), '()\n', (1238, 1240), False, 'from fate_flow.utils.log_utils import getLogger\n'), ((1278, 1299), 'functools.wraps', 'functools.wraps', (['func'], {}), '(func)\n', (1293, 1299), False, 'import functools\n'), ((5091, 5138), 'fate_flow.db.depen... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.entity.metric.MetricMeta",
"fate_flow.utils.job_utils.generate_session_id",
"fate_flow.scheduling_apps.client.ControllerClient.update_job"
] | [((918, 933), 'fate_arch.common.log.getLogger', 'log.getLogger', ([], {}), '()\n', (931, 933), False, 'from fate_arch.common import log\n'), ((3794, 3845), 'fate_flow.entity.metric.MetricMeta', 'MetricMeta', ([], {'name': '"""download"""', 'metric_type': '"""DOWNLOAD"""'}), "(name='download', metric_type='DOWNLOAD')\n"... |
#
# Copyright 2021 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.component_registry.ComponentRegistry.load",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.db.component_registry.ComponentRegistry.get_default_class_path",
"fate_flow.utils.api_utils.error_response",
"fate_flow.db.component_registry.ComponentRegistry.get_providers",
"fate_flow.utils... | [((1081, 1124), 'fate_flow.utils.detect_utils.validate_request', 'validate_request', (['"""name"""', '"""version"""', '"""path"""'], {}), "('name', 'version', 'path')\n", (1097, 1124), False, 'from fate_flow.utils.detect_utils import validate_request\n'), ((1573, 1674), 'fate_flow.manager.worker_manager.WorkerManager.s... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.operation.job_saver.JobSaver.update_task",
"fate_flow.operation.job_saver.JobSaver.update_status",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.scheduler.dag_scheduler.DAGScheduler.stop_job",
"fate_flow.settings.stat_logger.exception"
] | [((985, 1000), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (990, 1000), False, 'from flask import Flask, request\n'), ((1064, 1088), 'fate_flow.settings.stat_logger.exception', 'stat_logger.exception', (['e'], {}), '(e)\n', (1085, 1088), False, 'from fate_flow.settings import stat_logger\n'), ((1390, 14... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.component_registry.ComponentRegistry.get_default_class_path",
"fate_flow.db.component_registry.ComponentRegistry.get_provider_components"
] | [((2700, 2797), 'fate_flow.db.component_registry.ComponentRegistry.get_provider_components', 'ComponentRegistry.get_provider_components', (['provider.provider_name', 'provider.provider_version'], {}), '(provider.provider_name, provider.\n provider_version)\n', (2741, 2797), False, 'from fate_flow.db.component_regist... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.db.db_models.Job",
"fate_flow.utils.job_utils.get_job_directory",
"fate_flow.settings.schedule_logger.exception",
"fate_flow.utils.job_utils.run_subprocess",
"fate_flow.utils.job_utils.get_job_dsl_parser",
"fate_flow.utils.job_utils.query_job",
"fate_flow.settings.schedule_logger.info",
"fa... | [((2396, 2496), 'fate_flow.utils.job_utils.get_job_configuration', 'job_utils.get_job_configuration', ([], {'job_id': 'job_id', 'role': 'initiator_role', 'party_id': 'initiator_party_id'}), '(job_id=job_id, role=initiator_role,\n party_id=initiator_party_id)\n', (2427, 2496), False, 'from fate_flow.utils import job_... |
#
# Copyright 2019 The FATE Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by appli... | [
"fate_flow.utils.job_utils.job_server_routing",
"fate_flow.utils.job_utils.get_job_log_directory",
"fate_flow.driver.job_controller.JobController.submit_job",
"fate_flow.utils.api_utils.get_json_result",
"fate_flow.utils.detect_utils.check_config",
"fate_flow.settings.stat_logger.exception",
"fate_flow.... | [((1188, 1203), 'flask.Flask', 'Flask', (['__name__'], {}), '(__name__)\n', (1193, 1203), False, 'from flask import Flask, request, send_file\n'), ((2671, 2701), 'fate_flow.utils.job_utils.job_server_routing', 'job_utils.job_server_routing', ([], {}), '()\n', (2699, 2701), False, 'from fate_flow.utils import job_utils,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.