<commit_before>'use strict'

var resolve = require('path').resolve
var normalize = require('path').normalize

exports.endpoints = [

  // www - administrator dashboard
  { method: 'GET', path: '/administrator/{param*}', handler: { directory: { defaultExtension: 'html', path: normalize(resolve(__dirname, '../www')) } } },

  // auto routing
  { method: 'GET', path: '/redirect/campaign/affect/{sealed}', config: require('./handlers/redirect/campaign/affect') },

  // individuals
  { method: 'POST', path: '/v1/individuals/autologin', config: require('./handlers/individuals/autologin') },
  { method: 'POST', path: '/v1/individuals/login', config: require('./handlers/individuals/login') },
  { method: 'POST', path: '/v1/individuals/register', config: require('./handlers/individuals/register') },
  { method: 'GET', path: '/v1/auth/global/informations', config: require('./handlers/individuals/auth/globalInformations') },
  { method: 'PATCH', path: '/v1/auth/charity', config: require('./handlers/individuals/auth/charity/update') },
  { method: 'GET', path: '/v1/auth/surveys/{urn}', config: require('./handlers/individuals/auth/surveys/read') },
  { method: 'POST', path: '/v1/auth/surveys/{urn}/answers', config: require('./handlers/individuals/auth/surveys/answer') },

  // administrators
  { method: 'POST', path: '/v1/administrators/login', config: require('./handlers/administrators/login') },
  { method: 'POST', path: '/v1/administrators/register', config: require('./handlers/administrators/register') },

  // entities
  { method: 'GET', path: '/v1/entities/charity', config: require('./handlers/entities/charity') },
  { method: 'GET', path: '/v1/entities', config: require('./handlers/entities/list') },
  { method: 'POST', path: '/v1/entities', config: require('./handlers/entities/create') },
  { method: 'GET', path: '/v1/entities/{urn}', config: require('./handlers/entities/read') },
  { method: 'PATCH', path: '/v1/entities/{urn}', config: require('./handlers/entities/update') },
  { method: 'GET', path: '/v1/entities/{urn}/campaigns', config: require('./handlers/entities/campaigns/list') },

  // campaigns<commit_msg>[autologin] copy/paste badRequest!<commit_after>'use strict'

var resolve = require('path').resolve
var normalize = require('path').normalize

exports.endpoints = [

  // www - administrator dashboard
  { method: 'GET', path: '/administrator/{param*}', handler: { directory: { defaultExtension: 'html', path: normalize(resolve(__dirname, '../www')) } } },

  // auto routing
  { method: 'GET', path: '/redirect/campaign/affect/{sealed}', config: require('./handlers/redirect/campaign/affect') },

  // individuals
  { method: 'POST', path: '/v1/individuals/autologin/{fingerprint}', config: require('./handlers/individuals/autologin') },
  { method: 'POST', path: '/v1/individuals/login', config: require('./handlers/individuals/login') },
  { method: 'POST', path: '/v1/individuals/register', config: require('./handlers/individuals/register') },
  { method: 'GET', path: '/v1/auth/global/informations', config: require('./handlers/individuals/auth/globalInformations') },
  { method: 'PATCH', path: '/v1/auth/charity', config: require('./handlers/individuals/auth/charity/update') },
  { method: 'GET', path: '/v1/auth/surveys/{urn}', config: require('./handlers/individuals/auth/surveys/read') },
  { method: 'POST', path: '/v1/auth/surveys/{urn}/answers', config: require('./handlers/individuals/auth/surveys/answer') },

  // administrators
  { method: 'POST', path: '/v1/administrators/login', config: require('./handlers/administrators/login') },
  { method: 'POST', path: '/v1/administrators/register', config: require('./handlers/administrators/register') },

  // entities
  { method: 'GET', path: '/v1/entities/charity', config: require('./handlers/entities/charity') },
  { method: 'GET', path: '/v1/entities', config: require('./handlers/entities/list') },
  { method: 'POST', path: '/v1/entities', config: require('./handlers/entities/create') },
  { method: 'GET', path: '/v1/entities/{urn}', config: require('./handlers/entities/read') },
  { method: 'PATCH', path: '/v1/entities/{urn}', config: require('./handlers/entities/update') },
  { method: 'GET', path: '/v1/entities/{urn}/campaigns', config: require('./handlers/entities/campaigns/list') },

  // campaigns
{'fraction_non_alphanumeric': 0.21552321552321552, 'fraction_numerical': 0.00693000693000693, 'mean_word_length': 4.765645805592543, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '6572201', 'n_tokens_mistral': 1386, 'n_tokens_neox': 1357, 'n_words': 251}