<commit_before>import torch


class TorchFunctions(object):

    def add(self, x, y):
        "routes to correct addition"

    def add_mpc(self, x, y):
        "stuff here"

    def add_normal(self, x, y):
        "stuff here"

    def add_fixed_prec(self, x, y):
        "stuff here"


class MPCTorch(object):

    @staticmethod
    def add(x, y):
        result = []
        shares = x.shares

        for i in range(shares):
            res = torch.add(x.shares[i], y.shares[i])
            result.append(res)

        # z = MPCTensor(result)

        # return z<commit_msg>renamed  MPCTensor -> SPDZTensor in syft/core/frameworks/torch/functions.py<commit_after>import torch


class TorchFunctions(object):

    def add(self, x, y):
        "routes to correct addition"

    def add_spdz(self, x, y):
        "stuff here"

    def add_normal(self, x, y):
        "stuff here"

    def add_fixed_prec(self, x, y):
        "stuff here"


class SPDZTorch(object):

    @staticmethod
    def add(x, y):
        result = []
        shares = x.shares

        for i in range(shares):
            res = torch.add(x.shares[i], y.shares[i])
            result.append(res)

        # z = SPDZTensor(result)

        # return z
{'fraction_non_alphanumeric': 0.11875511875511875, 'fraction_numerical': 0.0, 'mean_word_length': 2.0473815461346634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5987683', 'n_tokens_mistral': 432, 'n_tokens_neox': 410, 'n_words': 105}