<commit_before># -*- coding: utf-8 -*-

import unittest
from datetime import timedelta

import jenkins
from cabot.cabotapp import jenkins as cabot_jenkins
from cabot.cabotapp.models import JenkinsConfig
from django.utils import timezone
from freezegun import freeze_time
from mock import create_autospec, patch


class TestGetStatus(unittest.TestCase):

    def setUp(self):
        self.job = {
            u'inQueue': False,
            u'queueItem': None,
            u'lastCompletedBuild': {
                u'number': 12,
            },
            u'lastBuild': {
                u'number': 12,
            },
            u'color': 'blue'
        }


        self.build = {
            u'number': 12,
            u'result': u'SUCCESS'

        }

        self.mock_client = create_autospec(jenkins.Jenkins)
        self.mock_client.get_job_info.return_value = self.job
        self.mock_client.get_build_info.return_value = self.build

        self.mock_config = create_autospec(JenkinsConfig)
<commit_msg>Fix linting error<commit_after># -*- coding: utf-8 -*-

import unittest
from datetime import timedelta

import jenkins
from cabot.cabotapp import jenkins as cabot_jenkins
from cabot.cabotapp.models import JenkinsConfig
from django.utils import timezone
from freezegun import freeze_time
from mock import create_autospec, patch


class TestGetStatus(unittest.TestCase):

    def setUp(self):
        self.job = {
            u'inQueue': False,
            u'queueItem': None,
            u'lastCompletedBuild': {
                u'number': 12,
            },
            u'lastBuild': {
                u'number': 12,
            },
            u'color': 'blue'
        }

        self.build = {
            u'number': 12,
            u'result': u'SUCCESS'

        }

        self.mock_client = create_autospec(jenkins.Jenkins)
        self.mock_client.get_job_info.return_value = self.job
        self.mock_client.get_build_info.return_value = self.build

        self.mock_config = create_autospec(JenkinsConfig)

{'fraction_non_alphanumeric': 0.09176122348297977, 'fraction_numerical': 0.006906758756783424, 'mean_word_length': 2.1490683229813663, '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': '6523866', 'n_tokens_mistral': 642, 'n_tokens_neox': 606, 'n_words': 130}