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

import unittest
import config


class testconfig(unittest.TestCase):
    def testconfig(self):
        conf = config.ConfigRead()
        self.assertEqual('43.134694', conf.read('lat'))
        self.assertEqual('141.248194', conf.read('lon'))
        self.assertEqual('50', conf.read('height'))
        self.assertEqual('RAC805', conf.read('antenna'))
        self.assertEqual('IC910', conf.read('radio'))
        self.assertEqual('/dev/tty.USB', conf.read('antennaport'))
        self.assertEqual('9600', conf.read('antennabaudrate'))
        self.assertEqual('/dev/tty.USB2', conf.read('radioport'))
        self.assertEqual('38400', conf.read('radiobaudrate'))
        data = conf.read()
        self.assertEqual('43.134694', data['lat'])
        self.assertEqual('141.248194', data['lon'])
        self.assertEqual('RAC805', data['antenna'])
        self.assertEqual('50', data['height'])
        self.assertEqual('IC910', data['radio'])
        self.assertEqual('/dev/tty.USB', data['antennaport'])
        self.assertEqual('9600', data['antennabaudrate'])
        self.assertEqual('/dev/tty.USB2', data['radioport'])
        self.assertEqual('38400', data['radiobaudrate'])

unittest.main()<commit_msg>revision configtest<commit_after># -*- coding: utf-8 -*-

import unittest
import config


class testconfig(unittest.TestCase):
    def testconfig(self):
        conf = config.ConfigRead()
        self.assertEqual('43.134694', conf.read('lat'))
        self.assertEqual('141.248194', conf.read('lon'))
        self.assertEqual('50', conf.read('height'))
        self.assertEqual('RAC805', conf.read('antenna'))
        self.assertEqual('IC910', conf.read('radio'))
        self.assertEqual('/dev/tty.USB2', conf.read('antennaport'))
        self.assertEqual('9600', conf.read('antennabaudrate'))
        self.assertEqual('/dev/tty.USB1', conf.read('radioport'))
        self.assertEqual('19200', conf.read('radiobaudrate'))
        data = conf.read()
        self.assertEqual('43.134694', data['lat'])
        self.assertEqual('141.248194', data['lon'])
        self.assertEqual('RAC805', data['antenna'])
        self.assertEqual('50', data['height'])
        self.assertEqual('IC910', data['radio'])
        self.assertEqual('/dev/tty.USB', data['antennaport'])
        self.assertEqual('9600', data['antennabaudrate'])
        self.assertEqual('/dev/tty.USB2', data['radioport'])
        self.assertEqual('38400', data['radiobaudrate'])

unittest.main()
{'fraction_non_alphanumeric': 0.18777467039552537, 'fraction_numerical': 0.05713144226927687, 'mean_word_length': 3.536231884057971, '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': '5470990', 'n_tokens_mistral': 829, 'n_tokens_neox': 742, 'n_words': 104}