<commit_before>import math


def calculatePolsby(district):
    ppScore = 4 * math.pi * district.area / district.perimeter**2
    return ppScore


def calculateConvexHull(district):
    chScore = district.area / district.convex_hull.area
    return chScore<commit_msg>Update metrics.py<commit_after>import math
import utils

def calculatePolsby(district):
    ppScore = 4 * math.pi * district.area / district.perimeter**2
    return ppScore


def calculateConvexHull(district):
    chScore = district.area / district.convex_hull.area
    return chScore

def calculateReock(district):
    mbcArea = utils.getMinBoundingCircleArea(district)
    reockScore = district.area /mbcArea
    return reockScore
{'fraction_non_alphanumeric': 0.08142857142857143, 'fraction_numerical': 0.005714285714285714, 'mean_word_length': 4.2706766917293235, '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': '1827926', 'n_tokens_mistral': 228, 'n_tokens_neox': 212, 'n_words': 47}