<commit_before>[service.mvt]
viewer = false

[datasource]
type = "postgis"
url = "postgresql://localhost/maps"

[grid]
predefined = "web_mercator"

[[tileset]]
name = "surface_quality"

[[tileset.layer]]
name = "surface_mini_segments"
table_name = "mini_segments"
geometry_field = "polyline"
geometry_type = "LINESTRING"
buffer_size = 1
simplify = true
[[tileset.layer.query]]
sql = """SELECT ST_Transform(polyline,3857) AS polyline,"id"::TEXT,"traffic_rating"::FLOAT8,"surface_rating"::FLOAT8,"surface","path_type","weight", (SELECT surfaceRatingColour(surface_rating))::text as colour FROM mini_segments"""
[tileset.layer.style]
  type = "line"
  [tileset.layer.style.paint.line-color]
    type = "identity"
    property = "colour"

[[tileset]]
name = "traffic"

[[tileset.layer]]
name = "traffic_mini_segments"
table_name = "mini_segments"
geometry_field = "polyline"
geometry_type = "LINESTRING"
buffer_size = 1
simplify = true
[[tileset.layer.query]]
sql = """SELECT ST_Transform(polyline,3857) AS polyline,"id"::TEXT,"traffic_rating"::FLOAT8,"surface_rating"::FLOAT8,"surface","path_type","weight", (SELECT trafficRatingColour(traffic_rating))::text as colour FROM mini_segments"""
[tileset.layer.style]
  type = "line"
  [tileset.layer.style.paint.line-color]
    type = "identity"
    property = "colour"

[cache.file]
base = "/tile-cache"

[webserver]
bind = "0.0.0.0"
port = 8080
threads = 4
<commit_msg>Only rendering ratings tiles between 10 and 17 zoom levels<commit_after>[service.mvt]
viewer = false

[datasource]
type = "postgis"
url = "postgresql://localhost/maps"

[grid]
predefined = "web_mercator"

[[tileset]]
name = "surface_quality"

[[tileset.layer]]
name = "surface_mini_segments"
table_name = "mini_segments"
geometry_field = "polyline"
geometry_type = "LINESTRING"
buffer_size = 1
simplify = true
[[tileset.layer.query]]
minzoom = 10
maxzoom = 17
sql = """SELECT ST_Transform(polyline,3857) AS polyline,"id"::TEXT,"traffic_rating"::FLOAT8,"surface_rating"::FLOAT8,"surface","path_type","weight", (SELECT surfaceRatingColour(surface_rating))::text as colour FROM mini_segments"""
[tileset.layer.style]
  type = "line"
  [tileset.layer.style.paint.line-color]
    type = "identity"
    property = "colour"

[[tileset]]
name = "traffic"

[[tileset.layer]]
name = "traffic_mini_segments"
table_name = "mini_segments"
geometry_field = "polyline"
geometry_type = "LINESTRING"
buffer_size = 1
simplify = true
[[tileset.layer.query]]
minzoom = 10
maxzoom = 17
sql = """SELECT ST_Transform(polyline,3857) AS polyline,"id"::TEXT,"traffic_rating"::FLOAT8,"surface_rating"::FLOAT8,"surface","path_type","weight", (SELECT trafficRatingColour(traffic_rating))::text as colour FROM mini_segments"""
[tileset.layer.style]
  type = "line"
  [tileset.layer.style.paint.line-color]
    type = "identity"
    property = "colour"

[cache.file]
base = "/tile-cache"

[webserver]
bind = "0.0.0.0"
port = 8080
threads = 4

{'fraction_non_alphanumeric': 0.15726495726495726, 'fraction_numerical': 0.01982905982905983, 'mean_word_length': 6.464285714285714, 'pattern_counts': {'":': 12, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6322919', 'n_tokens_mistral': 1110, 'n_tokens_neox': 1053, 'n_words': 203}