<commit_before>import unittest2

from google.appengine.ext import db
from google.appengine.ext import testbed

from helpers.match_manipulator import MatchManipulator
from models.event import Event
from models.match import Match

class TestTeamManipulator(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()

        self.event = Event(
          key_name = "2012ct",
          event_short = "ct",
          year = 2012
        )

        self.old_match = Match(
            key_name = "<KEY>",
            alliances_json = """{"blue": {"score": -1, "teams": ["frc3464", "frc20", "frc1073"]}, "red": {"score": -1, "teams": ["frc69", "frc571", "frc176"]}}""",
            comp_level = "qm",
            event = self.event,
            game = "frc_2011_logo",
            set_number = 1,
            match_number = 1,
            team_key_names = [u'frc69', u'frc571', u'frc176', u'frc3464', u'frc20', u'frc1073']
        )

        self.new_match = Match(
            key_name = "<KEY>",
            alliances_json = """{"blue": {"score": 57, "teams": ["frc3464", "frc20", "frc1073"]}, "red": {"score": 74, "teams": ["frc69", "frc571", "frc176"]}}""",
            comp_level = "qm",
            event = self.event,
            game = "frc_2011_logo",
            set_number = 1,<commit_msg>Fix naming of test class.<commit_after>import unittest2

from google.appengine.ext import db
from google.appengine.ext import testbed

from helpers.match_manipulator import MatchManipulator
from models.event import Event
from models.match import Match

class TestMatchManipulator(unittest2.TestCase):
    def setUp(self):
        self.testbed = testbed.Testbed()
        self.testbed.activate()
        self.testbed.init_datastore_v3_stub()

        self.event = Event(
          key_name = "2012ct",
          event_short = "ct",
          year = 2012
        )

        self.old_match = Match(
            key_name = "<KEY>",
            alliances_json = """{"blue": {"score": -1, "teams": ["frc3464", "frc20", "frc1073"]}, "red": {"score": -1, "teams": ["frc69", "frc571", "frc176"]}}""",
            comp_level = "qm",
            event = self.event,
            game = "frc_2011_logo",
            set_number = 1,
            match_number = 1,
            team_key_names = [u'frc69', u'frc571', u'frc176', u'frc3464', u'frc20', u'frc1073']
        )

        self.new_match = Match(
            key_name = "<KEY>",
            alliances_json = """{"blue": {"score": 57, "teams": ["frc3464", "frc20", "frc1073"]}, "red": {"score": 74, "teams": ["frc69", "frc571", "frc176"]}}""",
            comp_level = "qm",
            event = self.event,
            game = "frc_2011_logo",
            set_number = 1,
{'fraction_non_alphanumeric': 0.15853224082650516, 'fraction_numerical': 0.05842536515853224, 'mean_word_length': 2.350835322195704, 'pattern_counts': {'":': 24, '<': 7, '<?xml version=': 0, '>': 7, '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': '1533423', 'n_tokens_mistral': 1056, 'n_tokens_neox': 950, 'n_words': 205}