<commit_before>Config options can be set by using {{{@config config_option config_value;}}} in the MapCSS file or as parameters to pgmapcss, by using {{{-c}}} or {{{--config}}}, e.g. {{{pgmapcss --config option1=value1 option2=value2}}}.

The following config options are supported:

|= Config option |= Description |= Possible values
| josm_classes | when 'true', a {{{set foo;}}} statement will also set the class foo (synonymous to {{{set .foo;}}}) | 'true' or 'false' (default)
| angular_system | choose which angular system will be used for trigonometric functions | 'degrees' (default), 'radians'
| db.srs | Spatial Reference System used in the database. Autodetected. | Usual values: 4326 (WGS-84), 900913 resp. 3857 (Spherical Mercator for Web Maps)
| unit.srs | Spatial Reference System to use for distances. If other values than 900913 are used, unexpected behaviour might happen. | 900913
| srs | Default Spatial Reference System to use on the frontend side | 900913 when using with renderer (mode 'database-function'), 4326 otherwise
| offline | When compiling standalone mode, do not make any requests to the database. | true/**false**
| debug.profiler | during execution, show some statistics about query/processing time and count of objects. | true/**false**
| debug.context | show bounding box and scale denominator of requests. | true/**false**
| debug.rusage | show resource usage at end of processing. | true/**false**
| debug.explain_queries | Print queries, their plans and count of executions to stderr (standalone mode only). | true/**false**<commit_msg>DB/osm2pgsql: document config options<commit_after>Config options can be set by using {{{@config config_option config_value;}}} in the MapCSS file or as parameters to pgmapcss, by using {{{-c}}} or {{{--config}}}, e.g. {{{pgmapcss --config option1=value1 option2=value2}}}.

The following config options are supported:

|= Config option |= Description |= Possible values
| josm_classes | when 'true', a {{{set foo;}}} statement will also set the class foo (synonymous to {{{set .foo;}}}) | 'true' or 'false' (default)
| angular_system | choose which angular system will be used for trigonometric functions | 'degrees' (default), 'radians'
| db.srs | Spatial Reference System used in the database. Autodetected. | Usual values: 4326 (WGS-84), 900913 resp. 3857 (Spherical Mercator for Web Maps)
| unit.srs | Spatial Reference System to use for distances. If other values than 900913 are used, unexpected behaviour might happen. | 900913
| srs | Default Spatial Reference System to use on the frontend side | 900913 when using with renderer (mode 'database-function'), 4326 otherwise
| db.hstore-only | osm2pgsql only: Do not use the separate tag columns, only use the hstore 'tags' column. Might be faster on large databases in combination with a multicolumn index on way and tags: e.g. create index planet_osm_point_way_tags on planet_osm_point using gist(way, tags). Requires --hstore-all on osm2pgsql when importing the database. | true/**false**
| offline | When compiling standalone mode, do not make any requests to the database. | true/**false**
| debug.profiler | during execution, show some statistics about query/processing time and count of objects. | true/**false**
| debug.context | show bounding box and scale denominator of requests. | true/**false**
| debug.rusage | show resource usage at end of processing. | true/**false**
| debug.explain_queries | Print queries, their plans and count of executions to stderr (standalone mode only). | true/**false**

Advances options:
|= Config option |= Description |= Possible values
| db.columns.node | osm2pgsql only: Specify comma-separated list of database tag columns for planet_osm_point. Usually autodetected. Needed when using offline mode. |
| db.columns.way | osm2pgsql only: Specify comma-separated list of database tag columns for planet_osm_line and planet_osm_polygon. Usually autodetected. Needed when using offline mode. |
| db.columns | osm2pgsql only: Use the specified list for db.columns.node and db.columns.way |
| db.has-hstore | osm2pgsql only: Additional tags can be read from the 'tags' column (of type hstore). Usually autodetected. Needed when using offline mode. |
{'fraction_non_alphanumeric': 0.09966856060606061, 'fraction_numerical': 0.021543560606060608, 'mean_word_length': 4.892608089260809, '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': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2186098', 'n_tokens_mistral': 1255, 'n_tokens_neox': 1152, 'n_words': 528}