<commit_before>const _ = require('lodash');
const debug = require('debug')('purge-cache');
const APIBuilder = require('taskcluster-lib-api');
const taskcluster = require('taskcluster-client');
const Entity = require('azure-entities');

// Common schema prefix
const SCHEMA_PREFIX_CONST = 'http://schemas.taskcluster.net/purge-cache/v1/';

// Common patterns URL parameters
const GENERIC_ID_PATTERN = /^[a-zA-Z0-9-_]{1,22}$/;

/** API end-point for version v1/ */
const builder = new APIBuilder({
  title:        'Purge Cache API',
  context: [
    'cfg',              // A typed-env-config instance
    'CachePurge',      // A data.CachePurge instance
    'cachePurgeCache', // An Promise for cacheing cachepurge responses
  ],
  params: {
    provisionerId:    GENERIC_ID_PATTERN,
    workerType:       GENERIC_ID_PATTERN,
  },
  description: [
    'The purge-cache service, typically available at',
    '`purge-cache.taskcluster.net`, is responsible for publishing a pulse',
    'message for workers, so they can purge cache upon request.',
    '',
    'This document describes the API end-point for publishing the pulse',
    'message. This is mainly intended to be used by tools.',
  ].join('\n'),<commit_msg>Bug 1509186 - remove references to taskcluster.net from API description<commit_after>const _ = require('lodash');
const debug = require('debug')('purge-cache');
const APIBuilder = require('taskcluster-lib-api');
const taskcluster = require('taskcluster-client');
const Entity = require('azure-entities');

// Common patterns URL parameters
const GENERIC_ID_PATTERN = /^[a-zA-Z0-9-_]{1,22}$/;

/** API end-point for version v1/ */
const builder = new APIBuilder({
  title:        'Purge Cache API',
  context: [
    'cfg',              // A typed-env-config instance
    'CachePurge',      // A data.CachePurge instance
    'cachePurgeCache', // An Promise for cacheing cachepurge responses
  ],
  params: {
    provisionerId:    GENERIC_ID_PATTERN,
    workerType:       GENERIC_ID_PATTERN,
  },
  description: [
    'The purge-cache service is responsible for publishing a pulse',
    'message for workers, so they can purge cache upon request.',
    '',
    'This document describes the API end-point for publishing the pulse',
    'message. This is mainly intended to be used by tools.',
  ].join('\n'),
{'fraction_non_alphanumeric': 0.12721000431220353, 'fraction_numerical': 0.008624407072013798, 'mean_word_length': 3.4787644787644787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '590458', 'n_tokens_mistral': 714, 'n_tokens_neox': 690, 'n_words': 209}