<commit_before>@routing  @guidance @staggered-intersections
Feature: Staggered Intersections

    Background:
        Given the profile "bicycle"
        Given a grid size of 1 meters
        # Note the one meter grid size: staggered intersections make zig-zags of a couple of meters only

    Scenario: Staggered Intersection - pushing in the middle
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | abc    | residential | Oak St   |        |
            | efg    | residential | Oak St   |        |
            | ihedcj | residential | Cedar Dr | yes    |

        When I route I should get
            | waypoints | route         | turns         |
            | a,g       | Oak St,Oak St | depart,arrive |
            | g,a       | Oak St,Oak St | depart,arrive |

    Scenario: Staggered Intersection - pushing at start
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | cba    | residential | Oak St   | yes    |
            | efg    | residential | Oak St   |        |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route         | turns         |
            | a,g       | Oak St,Oak St | depart,arrive |
            | g,a       | Oak St,Oak St | depart,arrive |

    Scenario: Staggered Intersection - pushing at end
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | abc    | residential | Oak St   |        |
            | gfe    | residential | Oak St   | yes    |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route         | turns         |
            | a,g       | Oak St,Oak St | depart,arrive |
            | g,a       | Oak St,Oak St | depart,arrive |

    Scenario: Staggered Intersection - pushing at start and end
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | cba    | residential | Oak St   | yes    |
            | gfe    | residential | Oak St   | yes    |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route         | turns         |
            | a,g       | Oak St,Oak St | depart,arrive |
            | g,a       | Oak St,Oak St | depart,arrive |<commit_msg>add modes columns to bike tests<commit_after>@routing  @guidance @staggered-intersections
Feature: Staggered Intersections

    Background:
        Given the profile "bicycle"
        Given a grid size of 1 meters
        # Note the one meter grid size: staggered intersections make zig-zags of a couple of meters only

    Scenario: Staggered Intersection - pushing in the middle
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | abc    | residential | Oak St   |        |
            | efg    | residential | Oak St   |        |
            | ihedcj | residential | Cedar Dr | yes    |

        When I route I should get
            | waypoints | route                         | turns                              | modes                                |
            | a,g       | Oak St,Cedar Dr,Oak St,Oak St | depart,turn right,turn left,arrive | cycling,pushing bike,cycling,cycling |
            | g,a       | Oak St,Oak St                 | depart,arrive                      | cycling,cycling                      |

    Scenario: Staggered Intersection - pushing at start
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | cba    | residential | Oak St   | yes    |
            | efg    | residential | Oak St   |        |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route                         | turns                              | modes                                |
            | a,g       | Oak St,Cedar Dr,Oak St,Oak St | depart,turn right,turn left,arrive | pushing bike,cycling,cycling,cycling |
            | g,a       | Oak St,Oak St                 | depart,arrive                      | cycling,cycling                      |

    Scenario: Staggered Intersection - pushing at end
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | abc    | residential | Oak St   |        |
            | gfe    | residential | Oak St   | yes    |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route         | turns                                              | modes                                     |
            | a,g       | Oak St,Cedar Dr,Oak St,Oak St | depart,turn right,turn left,arrive | cycling,cycling,pushing bike,pushing bike |
            | g,a       | Oak St,Oak St | depart,arrive                                      | cycling,cycling                           |

    Scenario: Staggered Intersection - pushing at start and end
        Given the node map
            """
                j
            a b c
                d
                e f g
                h
                i
            """

        And the ways
            | nodes  | highway     | name     | oneway |
            | cba    | residential | Oak St   | yes    |
            | gfe    | residential | Oak St   | yes    |
            | ihedcj | residential | Cedar Dr |        |

        When I route I should get
            | waypoints | route                         | turns                              | modes                                          |
            | a,g       | Oak St,Cedar Dr,Oak St,Oak St | depart,turn right,turn left,arrive | pushing bike,cycling,pushing bike,pushing bike |
            | g,a       | Oak St,Oak St                 | depart,arrive                      | cycling,cycling                                |
{'fraction_non_alphanumeric': 0.062032990272099256, 'fraction_numerical': 0.00028196813760045117, 'mean_word_length': 0.8478770513154468, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1082623', 'n_tokens_mistral': 1820, 'n_tokens_neox': 1714, 'n_words': 588}