<commit_before>import BaseProvider from './provider';

export default class Provider extends BaseProvider {
  endpoint({ query, protocol } = {}) {
    const { params } = this.options;

    const paramString = this.getParamString({
      ...params,
      format: 'json',
      q: query,
    });

    return `${protocol}//nominatim.openstreetmap.org/search?${paramString}`;
  }

  endpointReverse({ data, protocol } = {}) {
    const { params } = this.options;<commit_msg>Fixes #161: Moving OSM provider to HTTPS<commit_after>import BaseProvider from './provider';

export default class Provider extends BaseProvider {
  endpoint({ query, protocol } = {}) {
    const { params } = this.options;

    const paramString = this.getParamString({
      ...params,
      format: 'json',
      q: query,
    });

    return `https://nominatim.openstreetmap.org/search?${paramString}`;
  }

  endpointReverse({ data, protocol } = {}) {
    const { params } = this.options;
{'fraction_non_alphanumeric': 0.14553014553014554, 'fraction_numerical': 0.0031185031185031187, 'mean_word_length': 3.2422907488986783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '4317883', 'n_tokens_mistral': 290, 'n_tokens_neox': 280, 'n_words': 69}