<commit_before>import unittest
import services

class TestDigitransitAPIService(unittest.TestCase):

    def setUp(self):
        self.digitransitAPIService = services.DigitransitAPIService()

    def test_get_stops(self):
        stops = self.digitransitAPIService.get_stops(60.203978, 24.9633573, 160)
        self.assertTrue("stops" in stops)

        all_stops = stops["stops"]
        self.assertEqual(len(all_stops), 1)

        stop = all_stops[0]
        self.assertTrue("stop" in stop)

        stop_data = stop["stop"]
        self.assertTrue("stop_code" in stop_data)
        self.assertTrue("stop_name" in stop_data)
        self.assertTrue("schedule" in stop_data)

        schedule = stop_data["schedule"]
        self.assertNotEqual(len(schedule), 0)


    def test_get_stops_near_coordinates(self):
        self.assertEqual('foo', 'foo')


    def test_get_busses_by_stop_id(self):
        return


if __name__ == '__main__':
    unittest.main()<commit_msg>added tests for get_stop_near_coordinates<commit_after>import unittest
import services

class TestDigitransitAPIService(unittest.TestCase):

    def setUp(self):
        self.digitransitAPIService = services.DigitransitAPIService()

    def test_get_stops(self):
        stops = self.digitransitAPIService.get_stops(60.203978, 24.9633573, 160)
        self.assertTrue("stops" in stops)

        all_stops = stops["stops"]
        self.assertEqual(len(all_stops), 1)

        stop = all_stops[0]
        self.assertTrue("stop" in stop)

        stop_data = stop["stop"]
        self.assertTrue("stop_code" in stop_data)
        self.assertTrue("stop_name" in stop_data)
        self.assertTrue("schedule" in stop_data)

        schedule = stop_data["schedule"]
        self.assertNotEqual(len(schedule), 0)


    def test_get_stops_near_coordinates(self):
        stoplist_return_two = self.digitransitAPIService.get_stops_near_coordinates(60.203978, 24.9633573, 200)
        test_list_two = ['HSL:1240133', 'HSL:1240118']
        self.assertEqual(stoplist_return_two, test_list_two)

        stoplist_return_one = self.digitransitAPIService.get_stops_near_coordinates(60.203978, 24.9633573)
        self.assertEqual(stoplist_return_one, ['HSL:1240133'])

        stoplist_return_none = self.digitransitAPIService.get_stops_near_coordinates(60.203978, 24.9633573, 10)
        self.assertEqual(stoplist_return_none, [])


    def test_get_busses_by_stop_id(self):
        return


if __name__ == '__main__':
    unittest.main()
{'fraction_non_alphanumeric': 0.10208166533226581, 'fraction_numerical': 0.04923939151321057, 'mean_word_length': 3.56021897810219, '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': '1974911', 'n_tokens_mistral': 939, 'n_tokens_neox': 836, 'n_words': 127}