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/python/federatedml/components/hetero_sshe_linr.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,411
29.695652
113
py
FATE
FATE-master/python/federatedml/components/homo_secure_boost.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,324
30.547619
80
py
FATE
FATE-master/python/federatedml/components/secure_information_retrieval.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,542
32.543478
93
py
FATE
FATE-master/python/federatedml/components/hetero_secure_boost.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,310
30.214286
75
py
FATE
FATE-master/python/federatedml/components/dataio.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...
968
26.685714
75
py
FATE
FATE-master/python/federatedml/components/feature_scale.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,005
27.742857
75
py
FATE
FATE-master/python/federatedml/components/homo_onehot_encoder.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,305
30.095238
82
py
FATE
FATE-master/python/federatedml/components/scorecard.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,033
28.542857
75
py
FATE
FATE-master/python/federatedml/components/hetero_linr.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,650
30.75
130
py
FATE
FATE-master/python/federatedml/components/onehot_encoder.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,069
29.571429
75
py
FATE
FATE-master/python/federatedml/components/feldman_verifiable_sum.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,473
31.043478
91
py
FATE
FATE-master/python/federatedml/components/union.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...
973
26.828571
75
py
FATE
FATE-master/python/federatedml/components/column_expand.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,049
29
75
py
FATE
FATE-master/python/federatedml/components/hetero_fast_secure_boost.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,314
30.309524
75
py
FATE
FATE-master/python/federatedml/components/homo_data_split.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,301
28.590909
88
py
FATE
FATE-master/python/federatedml/components/feature_inputation.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,109
30.714286
81
py
FATE
FATE-master/python/federatedml/components/homo_feature_binning.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,402
29.5
79
py
FATE
FATE-master/python/federatedml/components/psi.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...
947
26.085714
75
py
FATE
FATE-master/python/federatedml/components/federated_sample.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,032
28.514286
75
py
FATE
FATE-master/python/federatedml/components/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...
5,958
28.944724
87
py
FATE
FATE-master/python/federatedml/components/hetero_poisson.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,716
32.019231
135
py
FATE
FATE-master/python/federatedml/components/ftl.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,122
25.738095
75
py
FATE
FATE-master/python/federatedml/components/homo_nn.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,149
26.380952
75
py
FATE
FATE-master/python/federatedml/components/spdz_test_cpn.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,022
29.088235
75
py
FATE
FATE-master/python/federatedml/components/positive_unlabeled.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,164
32.285714
120
py
FATE
FATE-master/python/federatedml/components/hetero_pearson.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,056
29.2
78
py
FATE
FATE-master/python/federatedml/components/data_statistics.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,059
29.285714
75
py
FATE
FATE-master/python/federatedml/components/homo_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 appl...
1,600
29.788462
127
py
FATE
FATE-master/python/federatedml/components/hetero_feature_binning.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,414
29.76087
81
py
FATE
FATE-master/python/federatedml/components/hetero_sshe_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 appl...
1,381
29.043478
113
py
FATE
FATE-master/python/federatedml/components/secure_add_example.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,285
29.619048
80
py
FATE
FATE-master/python/federatedml/components/cust_nn.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,176
27.02381
75
py
FATE
FATE-master/python/federatedml/components/local_baseline.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,075
29.742857
75
py
FATE
FATE-master/python/federatedml/components/sample_weight.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,053
29.114286
75
py
FATE
FATE-master/python/federatedml/components/label_transform.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,081
29.914286
75
py
FATE
FATE-master/python/federatedml/components/hetero_kmeans.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,585
27.836364
94
py
FATE
FATE-master/python/federatedml/components/hetero_data_split.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,346
28.282609
75
py
FATE
FATE-master/python/federatedml/components/__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 appl...
617
35.352941
75
py
FATE
FATE-master/python/federatedml/components/evaluation.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,028
28.4
75
py
FATE
FATE-master/python/federatedml/components/data_transform.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,056
29.2
75
py
FATE
FATE-master/python/federatedml/components/hetero_feature_selection.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,205
31.594595
85
py
FATE
FATE-master/python/federatedml/components/hetero_nn.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,159
26.619048
75
py
FATE
FATE-master/python/federatedml/components/hetero_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 appl...
1,642
30.596154
132
py
FATE
FATE-master/python/federatedml/local_baseline/local_baseline.py
#!/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...
11,763
37.953642
110
py
FATE
FATE-master/python/federatedml/local_baseline/__init__.py
#!/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...
661
35.777778
75
py
FATE
FATE-master/python/federatedml/local_baseline/test/local_baseline_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...
2,878
36.881579
95
py
FATE
FATE-master/python/federatedml/local_baseline/test/__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/federatedml/transfer_learning/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/ftl_dataloder.py
import numpy as np import tensorflow as tf from federatedml.util import LOGGER class FTLDataLoader(tf.keras.utils.Sequence): def __init__(self, non_overlap_samples, overlap_samples, batch_size, guest_side=True): self.batch_size = batch_size self.guest_side = guest_side self._overlap_ind...
3,111
31.416667
114
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/ftl_host.py
import numpy as np from federatedml.transfer_learning.hetero_ftl.ftl_base import FTL from federatedml.statistic.intersect import RsaIntersectionHost from federatedml.util import LOGGER from federatedml.transfer_learning.hetero_ftl.ftl_dataloder import FTLDataLoader from federatedml.util import consts from federatedml.s...
11,050
41.667954
120
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/ftl_guest.py
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.util import LOGGER from federatedml.transfer_learning.hetero_ftl.ftl_dataloder import FTLDataLoader from federatedml.statis...
18,034
42.880779
119
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/ftl_base.py
import copy import json import functools import numpy as np from federatedml.util import LOGGER from federatedml.transfer_learning.hetero_ftl.backend.nn_model import get_nn_builder from federatedml.model_base import ModelBase from federatedml.param.ftl_param import FTLParam from federatedml.transfer_learning.hetero_ftl...
12,882
37.804217
116
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/nn_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...
1,611
25
98
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/data_generator.py
#!/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...
1,238
25.361702
75
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/losses.py
#!/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...
1,019
33
75
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/nn_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...
9,949
33.548611
102
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/data_generator.py
#!/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...
1,238
25.361702
75
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/__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/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/layers/pooling.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,149
39.291262
79
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/layers/baisc.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,881
43.809524
117
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/layers/util.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,052
30.909091
75
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/layers/__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...
1,583
29.461538
107
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/backend/tf_keras/layers/conv.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,710
41.655172
118
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/test/test_ftl_modules.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,947
44.906977
705
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/test/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/transfer_learning/hetero_ftl/test/test_paillier_tensor.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,450
34.014286
102
py
FATE
FATE-master/python/federatedml/secureprotol/paillier_tensor.py
#!/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...
9,312
36.103586
119
py
FATE
FATE-master/python/federatedml/secureprotol/gmpy_math.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,784
19.62963
75
py
FATE
FATE-master/python/federatedml/secureprotol/elliptic_curve_encryption.py
#!/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...
5,609
33.62963
102
py
FATE
FATE-master/python/federatedml/secureprotol/random.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,583
33.434783
87
py
FATE
FATE-master/python/federatedml/secureprotol/fixedpoint.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,822
31.303279
101
py
FATE
FATE-master/python/federatedml/secureprotol/encrypt.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,519
29.990099
116
py
FATE
FATE-master/python/federatedml/secureprotol/__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...
876
40.761905
93
py
FATE
FATE-master/python/federatedml/secureprotol/encode.py
import base64 import hashlib from federatedml.util import LOGGER class Encode: def __init__(self, method, base64=0): self.method = method self.base64 = base64 self.dist_encode_function = { "md5": self.__compute_md5, "sha1": self.__compute_sha1, "sha224...
2,703
36.041096
106
py
FATE
FATE-master/python/federatedml/secureprotol/encrypt_mode.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,520
32.533333
109
py
FATE
FATE-master/python/federatedml/secureprotol/diffie_hellman.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...
10,705
40.657588
100
py
FATE
FATE-master/python/federatedml/secureprotol/fate_paillier.py
"""Paillier encryption library for partially homomorphic encryption.""" # # 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 # # ...
12,222
34.531977
116
py
FATE
FATE-master/python/federatedml/secureprotol/hash/hash_factory.py
import base64 import hashlib from fate_crypto.hash import sm3_hash from federatedml.util import consts SUPPORT_METHOD = [consts.MD5, consts.SHA1, consts.SHA224, consts.SHA256, consts.SHA384, consts.SHA512, consts.SM3, "none"] def compute_md5(value): return hashlib.md5(bytes(value, encoding='ut...
4,552
26.427711
98
py
FATE
FATE-master/python/federatedml/secureprotol/hash/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/__init__.py
#!/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...
663
33.947368
75
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/base_random_oracle.py
#!/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...
774
28.807692
75
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/hash_function/sha256.py
#!/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...
1,030
30.242424
91
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/hash_function/__init__.py
#!/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...
663
33.947368
75
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/hash_function/hash_function.py
#!/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...
1,115
28.368421
82
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/message_authentication_code/hash_mac.py
#!/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...
1,184
30.184211
108
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/message_authentication_code/sha256_mac.py
#!/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...
1,232
30.615385
89
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/message_authentication_code/__init__.py
#!/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...
663
33.947368
75
py
FATE
FATE-master/python/federatedml/secureprotol/random_oracle/message_authentication_code/mac.py
#!/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...
902
30.137931
82
py
FATE
FATE-master/python/federatedml/secureprotol/test/fixedpoint_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...
6,296
29.717073
75
py
FATE
FATE-master/python/federatedml/secureprotol/test/fate_paillier_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...
2,751
30.632184
78
py
FATE
FATE-master/python/federatedml/secureprotol/test/__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/federatedml/secureprotol/test/encrypt_mode_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...
3,784
41.055556
97
py
FATE
FATE-master/python/federatedml/secureprotol/test/encode_test.py
import unittest from federatedml.secureprotol.encode import Encode class TestEncode(unittest.TestCase): def test_compute(self): value_list = ["12345", "54321", "111111"] pre_salt = "" postfit_salt = "12345" sha256_base64_value_list = [ "5KCpDlrAfVQ1xvJcTPfMVlvst5e7W4PF...
10,159
47.61244
143
py
FATE
FATE-master/python/federatedml/secureprotol/secret_sharing/verifiable_secret_sharing/feldman_verifiable_secret_sharing.py
import random from federatedml.secureprotol import gmpy_math from gmpy2 import mpz class FeldmanVerifiableSecretSharing(object): def __init__(self): self.Q_n = 6 self.p = None self.g = None self.q = None self.share_amount = -1 self.commitments = [] def set_shar...
4,278
36.535088
94
py
FATE
FATE-master/python/federatedml/secureprotol/secret_sharing/verifiable_secret_sharing/__init__.py
0
0
0
py
FATE
FATE-master/python/federatedml/secureprotol/number_theory/__init__.py
#!/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...
663
33.947368
75
py
FATE
FATE-master/python/federatedml/secureprotol/number_theory/group/cyclc_group.py
#!/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...
1,246
28.690476
97
py
FATE
FATE-master/python/federatedml/secureprotol/number_theory/group/base_group.py
#!/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...
1,291
19.507937
75
py
FATE
FATE-master/python/federatedml/secureprotol/number_theory/group/__init__.py
#!/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...
663
33.947368
75
py