<commit_before>'''
Helper class for checking whether 2 distributions are same or not
Author: <NAME> <tusharmakkar08[at]gmail.com>
Date: 29.01.2015
'''
<commit_msg>Comments added<commit_after>'''
Helper class for checking whether 2 distributions are same or not
Author: <NAME> <tusharmakkar08[at]gmail.com>
Date: 29.01.2015
'''

from scipy import stats

def WilcoxonTest(Original_input, Symbiotic_output, Modified_GA_output):
    '''
    Returns the most similar output to Original_input out of 
    Symbiotic_output and GA_output using Wilcoxon Rank Sum Test.
    Args:
        Original_input: Data with N features
        Symbiotic_output: Data with N-1 features extracted using 
                          symbiotic algorithm
        Modified_GA_output: Data with N-1 features extracted using 
                            Modified Genetic algorithm
    Returns:
        The best suited N-1 features for a given distribution
    '''

{'fraction_non_alphanumeric': 0.06430868167202572, 'fraction_numerical': 0.02679528403001072, 'mean_word_length': 3.151111111111111, 'pattern_counts': {'":': 0, '<': 7, '<?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': '713280', 'n_tokens_mistral': 278, 'n_tokens_neox': 247, 'n_words': 95}