repo stringlengths 2 99 | file stringlengths 13 225 | code stringlengths 0 18.3M | file_length int64 0 18.3M | avg_line_length float64 0 1.36M | max_line_length int64 0 4.26M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
FATE | FATE-master/examples/experiment_template/pipeline/hetero_lr/pipeline_train_lr.py | #
# 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... | 8,439 | 40.170732 | 109 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_lr/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_lr/pipeline_train_pearson_lr.py | #
# 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... | 8,646 | 40.373206 | 109 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_test_sbt.py | #
# 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... | 9,961 | 42.502183 | 113 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_one_hot_sbt.py | #
# 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... | 9,077 | 40.452055 | 109 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_sbt.py | #
# 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... | 8,335 | 39.076923 | 113 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_union_sbt.py | #
# 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... | 9,315 | 40.963964 | 113 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_pearson_sbt.py | #
# 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... | 8,523 | 39.207547 | 113 | py |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/examples/experiment_template/pipeline/hetero_secureboost/pipeline_train_manually_sbt.py | #
# 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... | 8,452 | 38.872642 | 113 | py |
FATE | FATE-master/python/__init__.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/fate_arch/relation_ship.py | #
# 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... | 4,172 | 41.151515 | 117 | py |
FATE | FATE-master/python/fate_arch/__init__.py | #
# 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... | 616 | 37.5625 | 75 | py |
FATE | FATE-master/python/fate_arch/_standalone.py | #
# 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... | 40,195 | 33.355556 | 123 | py |
FATE | FATE-master/python/fate_arch/common/base_utils.py | #
# 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... | 4,988 | 27.672414 | 106 | py |
FATE | FATE-master/python/fate_arch/common/string_utils.py | #
# 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... | 942 | 31.517241 | 75 | py |
FATE | FATE-master/python/fate_arch/common/_types.py |
class EngineType(object):
COMPUTING = "computing"
STORAGE = "storage"
FEDERATION = "federation"
class CoordinationProxyService(object):
ROLLSITE = "rollsite"
NGINX = "nginx"
FATEFLOW = "fateflow"
FIREWORK = "firework"
class CoordinationCommunicationProtocol(object):
HTTP = "http"
... | 2,814 | 23.478261 | 83 | py |
FATE | FATE-master/python/fate_arch/common/_parties.py | #
# 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... | 4,396 | 29.324138 | 101 | py |
FATE | FATE-master/python/fate_arch/common/path_utils.py | #
# 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... | 1,253 | 32.891892 | 78 | py |
FATE | FATE-master/python/fate_arch/common/profile.py | #
# 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... | 12,471 | 35.682353 | 118 | py |
FATE | FATE-master/python/fate_arch/common/data_utils.py | import os
import uuid
from fate_arch.common import file_utils
from fate_arch.storage import StorageEngine
def default_output_info(task_id, task_version, output_type):
return f"output_{output_type}_{task_id}_{task_version}", uuid.uuid1().hex
def default_input_fs_path(name, namespace, prefix=None, storage_engine... | 1,336 | 37.2 | 103 | py |
FATE | FATE-master/python/fate_arch/common/versions.py | #
# 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... | 1,076 | 28.916667 | 75 | py |
FATE | FATE-master/python/fate_arch/common/log.py | #
# 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... | 8,142 | 37.051402 | 140 | py |
FATE | FATE-master/python/fate_arch/common/address.py | from fate_arch.abc import AddressABC
from fate_arch.metastore.db_utils import StorageConnector
class AddressBase(AddressABC):
def __init__(self, connector_name=None):
self.connector_name = connector_name
if connector_name:
connector = StorageConnector(connector_name=connector_name)
... | 6,524 | 29.490654 | 115 | py |
FATE | FATE-master/python/fate_arch/common/hdfs_utils.py | #
# 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... | 861 | 27.733333 | 75 | py |
FATE | FATE-master/python/fate_arch/common/engine_utils.py | #
# 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... | 4,582 | 39.557522 | 102 | py |
FATE | FATE-master/python/fate_arch/common/hive_utils.py | #
# 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... | 1,161 | 26.023256 | 75 | py |
FATE | FATE-master/python/fate_arch/common/remote_status.py | #
# 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... | 1,193 | 26.767442 | 86 | py |
FATE | FATE-master/python/fate_arch/common/file_utils.py | #
# 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... | 4,382 | 28.816327 | 91 | py |
FATE | FATE-master/python/fate_arch/common/encrypt_utils.py | import base64
from Crypto import Random
from Crypto.PublicKey import RSA
from Crypto.Cipher import PKCS1_v1_5 as PKCS1_cipher
def rsa_key_generate():
random_generator = Random.new().read
rsa = RSA.generate(2048, random_generator)
private_pem = rsa.exportKey().decode()
public_pem = rsa.publickey().exp... | 1,189 | 29.512821 | 78 | py |
FATE | FATE-master/python/fate_arch/common/__init__.py | from fate_arch.common._types import FederatedMode, FederatedCommunicationType, EngineType, CoordinationProxyService, \
CoordinationCommunicationProtocol
from fate_arch.common._types import BaseType, Party, DTable
| 217 | 53.5 | 118 | py |
FATE | FATE-master/python/fate_arch/common/conf_utils.py | #
# 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... | 3,148 | 34.382022 | 84 | py |
FATE | FATE-master/python/fate_arch/abc/_computing.py | #
# 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... | 16,794 | 25.829073 | 134 | py |
FATE | FATE-master/python/fate_arch/abc/_path.py | from abc import ABCMeta
class PathABC(metaclass=ABCMeta):
...
| 68 | 10.5 | 33 | py |
FATE | FATE-master/python/fate_arch/abc/_federation.py | import abc
import typing
from abc import ABCMeta
from fate_arch.abc._gc import GarbageCollectionABC
from fate_arch.common import Party
__all__ = ["FederationABC"]
class FederationABC(metaclass=ABCMeta):
"""
federation, get or remote objects and tables
"""
@property
@abc.abstractmethod
def s... | 2,039 | 21.417582 | 92 | py |
FATE | FATE-master/python/fate_arch/abc/_gc.py | import abc
class GarbageCollectionABC(metaclass=abc.ABCMeta):
def add_gc_action(self, tag: str, obj, method, args_dict):
...
| 140 | 16.625 | 62 | py |
FATE | FATE-master/python/fate_arch/abc/_components.py | #
# 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 appl... | 1,215 | 24.333333 | 75 | py |
FATE | FATE-master/python/fate_arch/abc/__init__.py |
from fate_arch.abc._gc import GarbageCollectionABC
from fate_arch.abc._address import AddressABC
from fate_arch.abc._computing import CTableABC, CSessionABC
from fate_arch.abc._storage import StorageTableABC, StorageSessionABC, StorageTableMetaABC
from fate_arch.abc._federation import FederationABC
from fate_arch.abc.... | 365 | 44.75 | 90 | py |
FATE | FATE-master/python/fate_arch/abc/_storage.py | #
# 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... | 5,179 | 19.155642 | 120 | py |
FATE | FATE-master/python/fate_arch/abc/_address.py | import abc
class AddressABC(metaclass=abc.ABCMeta):
...
| 62 | 9.5 | 40 | py |
FATE | FATE-master/python/fate_arch/computing/_util.py | #
# Copyright 2019 The Eggroll 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 ap... | 712 | 30 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/non_distributed.py | #
# 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... | 1,013 | 26.405405 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/__init__.py | #
# Copyright 2019 The Eggroll 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 ap... | 765 | 33.818182 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/_type.py | #
# Copyright 2019 The Eggroll 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 ap... | 760 | 32.086957 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/standalone/_table.py | #
# Copyright 2019 The Eggroll 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 ap... | 6,013 | 29.07 | 90 | py |
FATE | FATE-master/python/fate_arch/computing/standalone/__init__.py | #
# 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... | 768 | 35.619048 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/standalone/_csession.py | #
# Copyright 2019 The Eggroll 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 ap... | 3,439 | 35.595745 | 92 | py |
FATE | FATE-master/python/fate_arch/computing/eggroll/_table.py | #
# 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... | 5,946 | 33.575581 | 115 | py |
FATE | FATE-master/python/fate_arch/computing/eggroll/__init__.py | #
# 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... | 762 | 35.333333 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/eggroll/_csession.py | #
# 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... | 4,390 | 35.591667 | 92 | py |
FATE | FATE-master/python/fate_arch/computing/spark/_materialize.py | #
# 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... | 932 | 25.657143 | 75 | py |
FATE | FATE-master/python/fate_arch/computing/spark/_table.py | #
# 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... | 11,978 | 29.403553 | 105 | py |
FATE | FATE-master/python/fate_arch/computing/spark/__init__.py | #
# 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... | 987 | 41.956522 | 96 | py |
FATE | FATE-master/python/fate_arch/computing/spark/_csession.py | #
# 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... | 3,335 | 31.705882 | 89 | py |
FATE | FATE-master/python/fate_arch/session/__init__.py | #
# 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... | 997 | 31.193548 | 114 | py |
FATE | FATE-master/python/fate_arch/session/_session.py | #
# 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... | 23,317 | 43.5 | 157 | py |
FATE | FATE-master/python/fate_arch/tests/test_arch_api.py | #
# 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... | 1,500 | 27.865385 | 101 | py |
FATE | FATE-master/python/fate_arch/tests/__init__.py | #
# 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... | 616 | 37.5625 | 75 | py |
FATE | FATE-master/python/fate_arch/tests/computing/spark_test.py | #
# 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... | 877 | 32.769231 | 75 | py |
FATE | FATE-master/python/fate_arch/tests/storage/metastore_test.py | #
# 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... | 1,704 | 41.625 | 113 | py |
FATE | FATE-master/python/fate_arch/storage/_types.py | #
# 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... | 2,398 | 21.009174 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/_utils.py | 0 | 0 | 0 | py | |
FATE | FATE-master/python/fate_arch/storage/_table.py | #
# 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... | 12,935 | 30.862069 | 113 | py |
FATE | FATE-master/python/fate_arch/storage/__init__.py | from fate_arch.storage._types import StorageTableMetaType, StorageEngine
from fate_arch.storage._types import StandaloneStoreType, EggRollStoreType, \
HDFSStoreType, MySQLStoreType, \
PathStoreType, HiveStoreType, LinkisHiveStoreType, LocalFSStoreType, ApiStoreType
from fate_arch.storage._types import DEFAULT_... | 483 | 59.5 | 85 | py |
FATE | FATE-master/python/fate_arch/storage/_session.py | #
# 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... | 7,181 | 40.755814 | 122 | py |
FATE | FATE-master/python/fate_arch/storage/linkis_hive/_table.py | #
# 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... | 5,327 | 33.597403 | 111 | py |
FATE | FATE-master/python/fate_arch/storage/linkis_hive/__init__.py | from fate_arch.storage.linkis_hive._table import StorageTable
from fate_arch.storage.linkis_hive._session import StorageSession
__all__ = ["StorageTable", "StorageSession"]
| 174 | 34 | 65 | py |
FATE | FATE-master/python/fate_arch/storage/linkis_hive/_session.py | #
# 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... | 1,865 | 36.32 | 103 | py |
FATE | FATE-master/python/fate_arch/storage/linkis_hive/_settings.py | # token
Token_Code = ""
Token_User = "fate"
# uri
EXECUTE_URI = "/api/rest_j/v1/entrance/execute"
STATUS_URI = "/api/rest_j/v1/entrance/exec_id/status"
| 153 | 18.25 | 53 | py |
FATE | FATE-master/python/fate_arch/storage/api/_table.py | #
# 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... | 3,030 | 33.443182 | 108 | py |
FATE | FATE-master/python/fate_arch/storage/api/__init__.py | #
# 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... | 774 | 37.75 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/api/_session.py | #
# 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... | 2,334 | 36.66129 | 111 | py |
FATE | FATE-master/python/fate_arch/storage/standalone/_table.py | #
# 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... | 2,383 | 30.368421 | 84 | py |
FATE | FATE-master/python/fate_arch/storage/standalone/__init__.py | #
# 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... | 788 | 38.45 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/standalone/_session.py | #
# 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... | 1,865 | 42.395349 | 111 | py |
FATE | FATE-master/python/fate_arch/storage/eggroll/_table.py | #
# 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... | 2,265 | 30.472222 | 79 | py |
FATE | FATE-master/python/fate_arch/storage/eggroll/__init__.py | #
# 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... | 782 | 38.15 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/eggroll/_session.py | #
# 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... | 2,234 | 43.7 | 101 | py |
FATE | FATE-master/python/fate_arch/storage/localfs/_table.py | #
# 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... | 6,373 | 33.454054 | 96 | py |
FATE | FATE-master/python/fate_arch/storage/localfs/__init__.py | from fate_arch.storage.localfs._table import StorageTable
from fate_arch.storage.localfs._session import StorageSession
__all__ = ["StorageTable", "StorageSession"]
| 166 | 32.4 | 61 | py |
FATE | FATE-master/python/fate_arch/storage/localfs/_session.py | #
# 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... | 1,596 | 37.95122 | 113 | py |
FATE | FATE-master/python/fate_arch/storage/path/_table.py | #
# 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... | 1,689 | 27.166667 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/path/__init__.py | #
# 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... | 776 | 37.85 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/path/_session.py | #
# 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... | 1,578 | 37.512195 | 111 | py |
FATE | FATE-master/python/fate_arch/storage/mysql/_table.py | #
# 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... | 5,363 | 34.289474 | 96 | py |
FATE | FATE-master/python/fate_arch/storage/mysql/__init__.py | #
# 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... | 778 | 37.95 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/mysql/_session.py | #
# 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... | 3,378 | 38.290698 | 101 | py |
FATE | FATE-master/python/fate_arch/storage/hive/_table.py | #
# 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... | 5,809 | 35.086957 | 133 | py |
FATE | FATE-master/python/fate_arch/storage/hive/__init__.py | from fate_arch.storage.hive._table import StorageTable
from fate_arch.storage.hive._session import StorageSession
__all__ = ["StorageTable", "StorageSession"]
| 160 | 31.2 | 58 | py |
FATE | FATE-master/python/fate_arch/storage/hive/_session.py | #
# 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... | 3,512 | 38.920455 | 101 | py |
FATE | FATE-master/python/fate_arch/storage/hdfs/_table.py | #
# 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... | 6,540 | 33.246073 | 91 | py |
FATE | FATE-master/python/fate_arch/storage/hdfs/__init__.py | #
# 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... | 776 | 37.85 | 75 | py |
FATE | FATE-master/python/fate_arch/storage/hdfs/_session.py | #
# 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... | 1,578 | 37.512195 | 111 | py |
FATE | FATE-master/python/fate_arch/metastore/db_utils.py | import operator
from fate_arch.common.base_utils import current_timestamp
from fate_arch.metastore.db_models import DB, StorageConnectorModel
class StorageConnector:
def __init__(self, connector_name, engine=None, connector_info=None):
self.name = connector_name
self.engine = engine
self.... | 1,238 | 31.605263 | 86 | py |
FATE | FATE-master/python/fate_arch/metastore/base_model.py | #
# 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... | 8,513 | 36.506608 | 158 | py |
FATE | FATE-master/python/fate_arch/metastore/db_models.py | #
# 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... | 4,947 | 32.659864 | 108 | py |
FATE | FATE-master/python/fate_arch/metastore/__init__.py | #
# 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... | 616 | 37.5625 | 75 | py |
FATE | FATE-master/python/fate_arch/protobuf/python/default_empty_fill_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: default-empty-fill.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _messag... | 1,532 | 41.583333 | 286 | py |
FATE | FATE-master/python/fate_arch/protobuf/python/inference_service_pb2.py | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: inference_service.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import descriptor_pool as _descriptor_pool
from google.protobuf import message as _message... | 2,047 | 51.512821 | 724 | py |
FATE | FATE-master/python/fate_arch/protobuf/python/inference_service_pb2_grpc.py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import inference_service_pb2 as inference__service__pb2
class InferenceServiceStub(object):
"""Missing associated documentation comment in .proto file."""
... | 5,990 | 44.045113 | 132 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.