<commit_before>import ENVIRONMENT, { ENVIRONMENTS } from '../../environment';

const baseConfig = {
  RADIUS: 50, // Thumbnail search radius
  THUMBNAIL_WIDTH: 240,
  STRAATBEELD_THUMB_URL: 'panorama/thumbnail/',
  AUTH_HEADER_PREFIX: 'Bearer ',
  // Allows sanity checking input of root keys based on white listing
  ROOT_KEYS: ['API_ROOT']
};

const environmentConfig = {
  [ENVIRONMENTS.PRODUCTION]: {
    API_ROOT: 'https://data.amsterdam.nl/',
    ROOT: 'https://data.amsterdam.nl/'
  },
  [ENVIRONMENTS.ACCEPTANCE]: {
    API_ROOT: 'https://acc.api.data.amsterdam.nl/',
    ROOT: 'https://acc.data.amsterdam.nl/'
  },
  [ENVIRONMENTS.DEVELOPMENT]: {
    API_ROOT: 'https://acc.api.data.amsterdam.nl/',
    ROOT: 'https://acc.data.amsterdam.nl/'
  }
};

const SHARED_CONFIG = {
  ...baseConfig,
  ...environmentConfig[ENVIRONMENT]
};

export default SHARED_CONFIG;
<commit_msg>Fix production api root<commit_after>import ENVIRONMENT, { ENVIRONMENTS } from '../../environment';

const baseConfig = {
  RADIUS: 50, // Thumbnail search radius
  THUMBNAIL_WIDTH: 240,
  STRAATBEELD_THUMB_URL: 'panorama/thumbnail/',
  AUTH_HEADER_PREFIX: 'Bearer ',
  // Allows sanity checking input of root keys based on white listing
  ROOT_KEYS: ['API_ROOT']
};

const environmentConfig = {
  [ENVIRONMENTS.PRODUCTION]: {
    API_ROOT: 'https://api.data.amsterdam.nl/',
    ROOT: 'https://data.amsterdam.nl/'
  },
  [ENVIRONMENTS.ACCEPTANCE]: {
    API_ROOT: 'https://acc.api.data.amsterdam.nl/',
    ROOT: 'https://acc.data.amsterdam.nl/'
  },
  [ENVIRONMENTS.DEVELOPMENT]: {
    API_ROOT: 'https://acc.api.data.amsterdam.nl/',
    ROOT: 'https://acc.data.amsterdam.nl/'
  }
};

const SHARED_CONFIG = {
  ...baseConfig,
  ...environmentConfig[ENVIRONMENT]
};

export default SHARED_CONFIG;

{'fraction_non_alphanumeric': 0.16141732283464566, 'fraction_numerical': 0.00562429696287964, 'mean_word_length': 3.6692913385826773, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, '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': '5622832', 'n_tokens_mistral': 692, 'n_tokens_neox': 655, 'n_words': 113}