<commit_before>import util
import numpy as np
import scipy.stats as stats
import operator

import config as cfg

def compute(individual, data, recallPercentileRankDict, simScoreMatDict):
    individualStr = util.expandFuncStr(str(individual))
    assert individualStr in simScoreMatDict, 'individualStr NOT in simScoreMatDict'
    assert individualStr in recallPercentileRankDict, 'individualStr NOT in recallPercentileRankDict'
    simScoreMat = simScoreMatDict[individualStr]

    recallFitness = getRecallFitness(individualStr,recallPercentileRankDict)
    inRangeFitness = getInRangeFitness(simScoreMat)<commit_msg>fix for import time<commit_after>import util
import numpy as np
import scipy.stats as stats
import operator
import time

import config as cfg

def compute(individual, data, recallPercentileRankDict, simScoreMatDict):
    individualStr = util.expandFuncStr(str(individual))
    assert individualStr in simScoreMatDict, 'individualStr NOT in simScoreMatDict'
    assert individualStr in recallPercentileRankDict, 'individualStr NOT in recallPercentileRankDict'
    simScoreMat = simScoreMatDict[individualStr]

    recallFitness = getRecallFitness(individualStr,recallPercentileRankDict)
    inRangeFitness = getInRangeFitness(simScoreMat)
{'fraction_non_alphanumeric': 0.050955414012738856, 'fraction_numerical': 0.0, 'mean_word_length': 6.85625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3086611', 'n_tokens_mistral': 363, 'n_tokens_neox': 335, 'n_words': 94}