<commit_before># Author: <NAME> CERN  06/2018

################################################################################
# Copyright (C) 1995-2018, <NAME> and <NAME>.                      #
# All rights reserved.                                                         #
#                                                                              #
# For the licensing terms see $ROOTSYS/LICENSE.                                #
# For the list of contributors see $ROOTSYS/README/CREDITS.                    #
################################################################################

from libROOTPython import AddPrettyPrintingPyz
from ROOT import pythonization

def add_len(klass, getter_name):
	# Parameters:
    # klass: class to be pythonized
    # getter_name: name of the method to be associated with `len` in `klass`

    klass.__len__ = getattr(klass, getter_name)

@pythonization()
def pythonizegeneric(klass, name):
    # Parameters:
    # klass: class to be pythonized
    # name: string containing the name of the class

    # Add pretty printing via setting the __str__ special function
    AddPrettyPrintingPyz(klass)

    return True<commit_msg>[Exp PyROOT] Watch out with comment alignment<commit_after># Author: <NAME> CERN  06/2018

################################################################################
# Copyright (C) 1995-2018, <NAME> and <NAME>.                      #
# All rights reserved.                                                         #
#                                                                              #
# For the licensing terms see $ROOTSYS/LICENSE.                                #
# For the list of contributors see $ROOTSYS/README/CREDITS.                    #
################################################################################

from libROOTPython import AddPrettyPrintingPyz
from ROOT import pythonization

def add_len(klass, getter_name):
    # Parameters:
    # klass: class to be pythonized
    # getter_name: name of the method to be associated with `len` in `klass`

    klass.__len__ = getattr(klass, getter_name)

@pythonization()
def pythonizegeneric(klass, name):
    # Parameters:
    # klass: class to be pythonized
    # name: string containing the name of the class

    # Add pretty printing via setting the __str__ special function
    AddPrettyPrintingPyz(klass)

    return True
{'fraction_non_alphanumeric': 0.19306310071040536, 'fraction_numerical': 0.011700793982448809, 'mean_word_length': 2.217741935483871, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 10, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3874470', 'n_tokens_mistral': 576, 'n_tokens_neox': 536, 'n_words': 183}