<commit_before>import math
from skimage import morphology

def non_maximal_suppression(img, kernel):
    max_dst = morphology.dilation(img, kernel)
    img = img * (img == max_dst)
    return img


def to_polar_coordinates(x, y):
    """Convert the 2D pixel coordinates to polar coordinates

    :param x: x coordinate of the point
    :param y: y coordinate of the point
    :returns: tuple -- (r,phi) of the point as polar coordinates
    """
    theta = math.atan2(y, x)
    if theta < 0: theta = theta + 2 * math.pi
    return math.hypot(x, y), theta<commit_msg>refs #1 remove prototype NMS code<commit_after>import math
from skimage import morphology

def to_polar_coordinates(x, y):
    """Convert the 2D pixel coordinates to polar coordinates

    :param x: x coordinate of the point
    :param y: y coordinate of the point
    :returns: tuple -- (r,phi) of the point as polar coordinates
    """
    theta = math.atan2(y, x)
    if theta < 0: theta = theta + 2 * math.pi
    return math.hypot(x, y), theta
{'fraction_non_alphanumeric': 0.0947680157946693, 'fraction_numerical': 0.008884501480750246, 'mean_word_length': 3.3148936170212764, 'pattern_counts': {'":': 0, '<': 5, '<?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': '884355', 'n_tokens_mistral': 336, 'n_tokens_neox': 308, 'n_words': 124}