<commit_before>from . import FixtureTest


class EarlyUnclassifiedRoads(FixtureTest):

    def test_early_track_road_z11_grade1_paved(self):

        # asphalt, grade1, track (default zoom 11, no demotion)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/329375413',
        ])

        self.assert_has_feature(
            11, 396, 781, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})

    def test_early_track_road_z12_grade1_private(self):

        # private, grade1, track (since private demoted from zoom 11)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/10611894',
        ])

        self.assert_no_matching_feature(
          11, 330, 781, 'roads',
          { 'kind': 'path',
            'kind_detail': 'track'})
  
          self.assert_has_feature(
            12, 661, 1562, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})

    def test_early_track_road_z12_grade1_dirt(self):

        # dirt, grade1, track (since dirt demoted from zoom 11)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/286309045',
        ])

        self.assert_no_matching_feature(
          11, 399, 782, 'roads',
          { 'kind': 'path',
            'kind_detail': 'track'})
  
        self.assert_has_feature(
            12, 799, 1565, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})

    def test_early_track_road_z12_grade2_dirt(self):

        # dirt, grade2, track (default zoom 12, no demotion)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/330951783',
        ])

        self.assert_has_feature(
            12, 778, 1575, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})<commit_msg>indent (tabs!)<commit_after>from . import FixtureTest


class EarlyUnclassifiedRoads(FixtureTest):

    def test_early_track_road_z11_grade1_paved(self):

        # asphalt, grade1, track (default zoom 11, no demotion)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/329375413',
        ])

        self.assert_has_feature(
            11, 396, 781, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})

    def test_early_track_road_z12_grade1_private(self):

        # private, grade1, track (since private demoted from zoom 11)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/10611894',
        ])

        self.assert_no_matching_feature(
          11, 330, 781, 'roads',
          { 'kind': 'path',
            'kind_detail': 'track'})
  
        self.assert_has_feature(
        12, 661, 1562, 'roads',
        {'kind': 'path',
         'kind_detail': 'track'})

    def test_early_track_road_z12_grade1_dirt(self):

        # dirt, grade1, track (since dirt demoted from zoom 11)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/286309045',
        ])

        self.assert_no_matching_feature(
          11, 399, 782, 'roads',
          { 'kind': 'path',
            'kind_detail': 'track'})
  
        self.assert_has_feature(
            12, 799, 1565, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})

    def test_early_track_road_z12_grade2_dirt(self):

        # dirt, grade2, track (default zoom 12, no demotion)
        self.load_fixtures([
            'https://www.openstreetmap.org/way/330951783',
        ])

        self.assert_has_feature(
            12, 778, 1575, 'roads',
            {'kind': 'path',
             'kind_detail': 'track'})
{'fraction_non_alphanumeric': 0.1301693033583125, 'fraction_numerical': 0.06106022758812101, 'mean_word_length': 2.0542372881355933, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 8, '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': '1203232', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1149, 'n_words': 218}