<commit_before># Released under The MIT License (MIT)
# http://opensource.org/licenses/MIT
# Copyright (c) 2013 SCoT Development Team

import unittest

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.image import AxesImage
from matplotlib.figure import Figure

from scot.eegtopo.topoplot import Topoplot
from scot import plotting as sp
from scot.varbase import VARBase


class TestFunctionality(unittest.TestCase):
    def setUp(self):
        self.locs = [[0, 0, 1], [1, 0, 0], [0, 1, 0], [-1, 0, 0], [0, -1, 0]]
        self.vals = [[1, 0, 0, 0, 0], [0, 0, 0, 0, 0], [1, 1, 1, 1, 1] ]

        self.topo = Topoplot()
        self.topo.set_locations(self.locs)
        self.maps = sp.prepare_topoplots(self.topo, self.vals)

    def tearDown(self):
        pass

    def test_topoplots(self):<commit_msg>closing all pyplot windows on test tear-down<commit_after># Released under The MIT License (MIT)
# http://opensource.org/licenses/MIT
# Copyright (c) 2013 SCoT Development Team

import unittest

import numpy as np
import matplotlib.pyplot as plt
from matplotlib.image import AxesImage
from matplotlib.figure import Figure

from scot.eegtopo.topoplot import Topoplot
from scot import plotting as sp
from scot.varbase import VARBase


class TestFunctionality(unittest.TestCase):
    def setUp(self):
        self.locs = [[0, 0, 1], [1, 0, 0], [0, 1, 0], [-1, 0, 0], [0, -1, 0]]
        self.vals = [[1, 0, 0, 0, 0], [0, 0, 0, 0, 0], [1, 1, 1, 1, 1] ]

        self.topo = Topoplot()
        self.topo.set_locations(self.locs)
        self.maps = sp.prepare_topoplots(self.topo, self.vals)

    def tearDown(self):
        plt.close('all')

    def test_topoplots(self):
{'fraction_non_alphanumeric': 0.12891780011827322, 'fraction_numerical': 0.04021289178001183, 'mean_word_length': 3.3273657289002556, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5487997', 'n_tokens_mistral': 666, 'n_tokens_neox': 604, 'n_words': 191}