<commit_before># third party
import petlib as pl

# syft relative
from ...generate_wrapper import GenerateWrapper
from ...proto.lib.petlib.bn_pb2 import Bn as Bn_PB


def object2proto_group(obj: pl.bn.Bn) -> Bn_PB:
    proto = Bn_PB()
    print("what do we have???", obj, obj.hex(), type(obj.hex()))
    proto.hex = obj.hex()
    return proto


def proto2object_group(proto: Bn_PB) -> pl.bn.Bn:<commit_msg>Removed unused print<commit_after># third party
import petlib as pl

# syft relative
from ...generate_wrapper import GenerateWrapper
from ...proto.lib.petlib.bn_pb2 import Bn as Bn_PB


def object2proto_group(obj: pl.bn.Bn) -> Bn_PB:
    proto = Bn_PB()
    proto.hex = obj.hex()
    return proto


def proto2object_group(proto: Bn_PB) -> pl.bn.Bn:
{'fraction_non_alphanumeric': 0.1246684350132626, 'fraction_numerical': 0.007957559681697613, 'mean_word_length': 3.778481012658228, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '2479004', 'n_tokens_mistral': 281, 'n_tokens_neox': 275, 'n_words': 74}