<commit_before>#!/usr/bin/python2.5
"""Tests for the templateparser module."""
__author__ = '<NAME> <<EMAIL>>'
__version__ = '1.4'

# Too many public methods
# pylint: disable=R0904

# Standard modules
import os
import re
import time
import unittest

# Unittest target
import templateparser as templateparser


class Parser(unittest.TestCase):
  """Basic tests for the Parser class and equality of Template objects."""
  def setUp(self):
    """Creates a template file and a similar instance attribute."""
    self.name = 'tmp_template'
    self.raw = 'This is a basic [noun]'
    self.template = templateparser.Template(self.raw)
    with file(self.name, 'w') as template:
      template.write('This is a basic [noun]')
      template.flush()

  def tearDown(self):
    """Removes the template file from the filesystem."""<commit_msg>No need to import templateparser -as- templateparser, same name.<commit_after>#!/usr/bin/python2.5
"""Tests for the templateparser module."""
__author__ = '<NAME> <<EMAIL>>'
__version__ = '1.4'

# Too many public methods
# pylint: disable=R0904

# Standard modules
import os
import re
import time
import unittest

# Unittest target
import templateparser


class Parser(unittest.TestCase):
  """Basic tests for the Parser class and equality of Template objects."""
  def setUp(self):
    """Creates a template file and a similar instance attribute."""
    self.name = 'tmp_template'
    self.raw = 'This is a basic [noun]'
    self.template = templateparser.Template(self.raw)
    with file(self.name, 'w') as template:
      template.write('This is a basic [noun]')
      template.flush()

  def tearDown(self):
    """Removes the template file from the filesystem."""
{'fraction_non_alphanumeric': 0.11861421021726365, 'fraction_numerical': 0.009395184967704051, 'mean_word_length': 4.132530120481928, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '5250074', 'n_tokens_mistral': 515, 'n_tokens_neox': 498, 'n_words': 179}