<commit_before>#coding=utf8
from __future__ import division

from math import pi, cos, sin, hypot
from robofab.world import RGlyph

_LETTERFORMS = {
        'interpolation':[
            (296, 322), (201, 322),
            (201, 352), (231, 352),
            (231, 397), (201, 397),
            (201, 427), (296, 427),
            (296, 397), (266, 397),
            (266, 352), (296, 352)
        ],
        'none':[
            (231, 322), (201, 322),
            (201, 427), (236, 427),
            (266, 374), (266, 427),
            (296, 427), (296, 322),
            (261, 322), (231, 375)
        ]
    }

class ErrorGlyph(RGlyph):

    letters = {
        'interpolation':[
            (296, 322), (201, 322),
            (201, 352), (231, 352),
            (231, 397), (201, 397),
            (201, 427), (296, 427),
            (296, 397), (266, 397),
            (266, 352), (296, 352)
        ],
        'none':[
            (231, 322), (201, 322),
            (201, 427), (236, 427),
            (266, 374), (266, 427),
            (296, 427), (296, 322),
            (261, 322), (231, 375)
        ]
    }

    def __new__(cls, errorName=None, report=None, size=500, upm=1000):
        newGlyph = super(ErrorGlyph, cls).__new__(cls)
        newGlyph.__init__(errorName, report, size, upm)
        return newGlyph

    def __init__(self, errorName=None, report=None, size=500, upm=1000):
        super(ErrorGlyph, self).__init__()
        self.note = report
        self.name = '_error_'
        self.upm = upm
        self.pen = self.getPen()
        size = 300
        self._setSize(size)
        self.width = 500
        self._drawError(errorName)
        scale = upm / 1000
        self.scale((scale, scale))

    def _setSize(self, size):
        self.si = size
        self.st = (
            250 - (size / 4),
            (750 / 2) - (size / 2)
            )
        self.le = hypot(size, size) / 4

    def _drawError(self, errorName):<commit_msg>removing double letter definitions<commit_after>#coding=utf8
from __future__ import division

from math import pi, cos, sin, hypot
from robofab.world import RGlyph

_LETTERFORMS = {
        'interpolation':[
            (296, 322), (201, 322),
            (201, 352), (231, 352),
            (231, 397), (201, 397),
            (201, 427), (296, 427),
            (296, 397), (266, 397),
            (266, 352), (296, 352)
        ],
        'none':[
            (231, 322), (201, 322),
            (201, 427), (236, 427),
            (266, 374), (266, 427),
            (296, 427), (296, 322),
            (261, 322), (231, 375)
        ]
    }

class ErrorGlyph(RGlyph):

    def __new__(cls, errorName=None, report=None, size=500, upm=1000):
        newGlyph = super(ErrorGlyph, cls).__new__(cls)
        newGlyph.__init__(errorName, report, size, upm)
        return newGlyph

    def __init__(self, errorName=None, report=None, size=500, upm=1000):
        super(ErrorGlyph, self).__init__()
        self.note = report
        self.name = '_error_'
        self.upm = upm
        self.pen = self.getPen()
        size = 300
        self._setSize(size)
        self.width = 500
        self._drawError(errorName)
        scale = upm / 1000
        self.scale((scale, scale))

    def _setSize(self, size):
        self.si = size
        self.st = (
            250 - (size / 4),
            (750 / 2) - (size / 2)
            )
        self.le = hypot(size, size) / 4

    def _drawError(self, errorName):
{'fraction_non_alphanumeric': 0.15238642898217367, 'fraction_numerical': 0.1339850488786659, 'mean_word_length': 1.6699923254029163, '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': '6873053', 'n_tokens_mistral': 1539, 'n_tokens_neox': 1146, 'n_words': 303}