<commit_before>import importme
import unittest
from Team import Team
from Task import Task
from Module import Module

class TestTask(unittest.TestCase):

    def setUp(self):
        pass

    def test_constructor(self):
        team = Team('test_team', 30, 25, 10)
        self.assertTrue(team.name == 'test_team' and team.efficiency == 30 and team.salary == 25 and team.size == 10)

    def test_calc_progress(self):
        team = Team('test_team', 30, 25, 10)
        module = Module('test_module', 800)
        team.task = module.get_task('design')

        while not team.task.completed:
            team.calc_progress(1)

        self.assertTrue(module.completed_tasks and module.completed_tasks[0] == team.task)

    def test_random_element(self):
        team = Team('test_team', 30, 25, 10)
        
        for i in range(30):
            val = team.random_element(i)
            self.assertTrue(val >= i*0.75 and val <= i*1.25)

if __name__ == '__main__':
    unittest.main()
<commit_msg>Fixed unit test broken by removing of task from assigned team task when it is completed.<commit_after>import importme
import unittest
from Team import Team
from Task import Task
from Module import Module

class TestTask(unittest.TestCase):

    def setUp(self):
        pass

    def test_constructor(self):
        team = Team('test_team', 30, 25, 10)
        self.assertTrue(team.name == 'test_team' and team.efficiency == 30 and team.salary == 25 and team.size == 10)

    def test_calc_progress(self):
        team = Team('test_team', 30, 25, 10)
        module = Module('test_module', 800)
        task = module.get_task('design')
        team.task = task

        while team.task and not team.task.completed:
            team.calc_progress(1)

        self.assertTrue(module.completed_tasks and module.completed_tasks[0] == task)

    def test_random_element(self):
        team = Team('test_team', 30, 25, 10)
        
        for i in range(30):
            val = team.random_element(i)
            self.assertTrue(val >= i*0.75 and val <= i*1.25)

if __name__ == '__main__':
    unittest.main()

{'fraction_non_alphanumeric': 0.11026615969581749, 'fraction_numerical': 0.03517110266159696, 'mean_word_length': 2.7190812720848054, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1845534', 'n_tokens_mistral': 707, 'n_tokens_neox': 632, 'n_words': 181}