<commit_before># opening_hours-statistics

Simple visualization of the [opening_hours][Key:opening_hours] values in [OpenStreetMap](http://openstreetmap.org).
The purpose of this statistic is to show the data quality and grow over time. Because of this, the [library][oh-lib] version which parses the opening_hours is pinned to [v3.0.0](https://github.com/ypid/opening_hours.js/releases/tag/v3.0.0).

See [announcement blog post in ypid’s OSM diary](https://www.openstreetmap.org/user/ypid/diary/23881).

Note that [certain](https://github.com/ypid/opening_hours.js/blob/1c4b908e6d67f913e6e3eccdacfb243fde017acc/real_test.js#L39) [values](https://github.com/ypid/opening_hours.js/blob/1c4b908e6d67f913e6e3eccdacfb243fde017acc/real_test.js#L80) are being ignored in this statistic (it appears as if those values where not in OSM at all). So it is possible that the numbers do not quite match up with [taginfo]. It was implemented this way because [the script][real_test.js] used to generate the statistics was originally created to test the [library][oh-lib] against all values in OSM and some values where not interesting in this regard. A second reason is that those values are mapped to different values by the [opening_hours_map]. That the number of total values does not contain them can be considered as a bug but I will leave it like this for now.

## Internals

The data is downloaded once a day from [taginfo][] and then parsed with [opening_hours.js][oh-lib] (see real_test.js which exports the csv files).

For visualization the [flot JavaScript library][flot-lib] is used.<commit_msg>Issue is fixed. See #2.<commit_after># opening_hours-statistics

Simple visualization of the [opening_hours][Key:opening_hours] values in [OpenStreetMap](http://openstreetmap.org).
The purpose of this statistic is to show the data quality and grow over time. Because of this, the [library][oh-lib] version which parses the opening_hours is pinned to [v3.0.0](https://github.com/ypid/opening_hours.js/releases/tag/v3.0.0).

See [announcement blog post in ypid’s OSM diary](https://www.openstreetmap.org/user/ypid/diary/23881).

## Internals

The data is downloaded once a day from [taginfo][] and then parsed with [opening_hours.js][oh-lib] (see real_test.js which exports the csv files).

For visualization the [flot JavaScript library][flot-lib] is used.
{'fraction_non_alphanumeric': 0.09361702127659574, 'fraction_numerical': 0.027659574468085105, 'mean_word_length': 5.170603674540683, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7261378', 'n_tokens_mistral': 788, 'n_tokens_neox': 710, 'n_words': 267}