<commit_before># opening_hours_server.js

A little server daemon answering query‘s for [opening_hours][Key:opening_hours] and check if they can be evaluated. It was created to integrate opening_hours validation support into the [qat_script][] (see [pull request for integration](https://github.com/simone-f/qat_script/pull/5)).

It works by querying the requested data from the [OverpassAPI][], then fed it to [opening_hours.js][oh-lib] to see if it can be evaluated.

## Example query

http://localhost:8080/api/oh_interpreter?tag=opening_hours&s=51.249&w=7.149&n=51.251&e=7.151&filter=errorOnly

http://localhost:8080/api/get_license

<!-- Security {{{ -->
## Security

Security is a key factor for this little program. All user input must be validated before processing it.

<!-- }}} -->
<!-- Authors {{{ -->
## Authors

* [<NAME>](https://github.com/ypid): Initial author and current maintainer.

<!-- }}} --><commit_msg>Started test instance.<commit_after># opening_hours_server.js

A little server daemon answering query‘s for [opening_hours][Key:opening_hours] and check if they can be evaluated. It was created to integrate opening_hours validation support into the [qat_script][] (see [pull request for integration](https://github.com/simone-f/qat_script/pull/5)).

It works by querying the requested data from the [OverpassAPI][], then fed it to [opening_hours.js][oh-lib] to see if it can be evaluated.

## Example query

http://openingh.openstreetmap.de:12355/api/oh_interpreter?&tag=opening_hours&s=48.7785984&w=2.2257825&n=48.9165552&e=2.438069

http://openingh.openstreetmap.de:12355/api/get_license

<!-- Security {{{ -->
## Security

Security is a key factor for this little program. All user input must be validated before processing it.

<!-- }}} -->
<!-- Authors {{{ -->
## Authors

* [<NAME>](https://github.com/ypid): Initial author and current maintainer.

<!-- }}} -->
{'fraction_non_alphanumeric': 0.14376321353065538, 'fraction_numerical': 0.037526427061310784, 'mean_word_length': 4.736363636363636, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, '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': '7332691', 'n_tokens_mistral': 647, 'n_tokens_neox': 582, 'n_words': 176}