<commit_before># https://www.openstreetmap.org/way/417389551
#   lcn_ref=45
# https://www.openstreetmap.org/relation/32310
#   type=route, route=bicycle, network=lcn, ref=45
assert_has_feature(
    16, 10481, 25336, 'roads',
    { 'id': 417389551,
      'bicycle_network': 'lcn',
      'bicycle_shield_text': '45',
      'all_bicycle_networks': ['lcn'],
      'all_bicycle_shield_texts': ['45'] })

# make sure the all_* lists are gone by zoom 12 on major roads, but the "most
# important", singular network & shield text remain at earlier zooms
assert_has_feature(
    10, 163, 395, 'roads',
    { 'bicycle_network': 'lcn',
      'bicycle_shield_text': '45' })

assert_no_matching_feature(
    12, 655, 1583, 'roads',
    { 'all_bicycle_networks': None })
assert_no_matching_feature(
    12, 655, 1583, 'roads',
    { 'all_bicycle_shield_texts': None })
<commit_msg>make bike network test resiliant to data changes<commit_after># https://www.openstreetmap.org/way/417389551
#   lcn_ref=45
# https://www.openstreetmap.org/relation/32310
#   type=route, route=bicycle, network=lcn, ref=45
assert_has_feature(
    16, 10481, 25336, 'roads',
    { 'id': 417389551,
      'bicycle_network': None,
      'bicycle_shield_text': '45',
      'all_bicycle_networks': None,
      'all_bicycle_shield_texts': ['45'] })

# make sure the all_* lists are gone by zoom 12 on major roads, but the "most
# important", singular network & shield text remain at earlier zooms
assert_has_feature(
    10, 163, 395, 'roads',
    { 'bicycle_network': 'lcn',
      'bicycle_shield_text': '45' })

assert_no_matching_feature(
    12, 655, 1583, 'roads',
    { 'all_bicycle_networks': None })
assert_no_matching_feature(
    12, 655, 1583, 'roads',
    { 'all_bicycle_shield_texts': None })

{'fraction_non_alphanumeric': 0.13824362606232293, 'fraction_numerical': 0.08271954674220963, 'mean_word_length': 4.224852071005917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 4, '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': '5314642', 'n_tokens_mistral': 776, 'n_tokens_neox': 649, 'n_words': 149}