<commit_before>(function (global) {
  'use strict';

  // Class ------------------------------------------------
  function DocomoTts(apiKey) {
    this.apiKey = apiKey;
  }

  // Header -----------------------------------------------
  DocomoTts.prototype.speak = speak; // DocomoTts#speak(speechText, callback):void
  DocomoTts.prototype.save = save; // DocomoTts#save(saveFile, speechText):void

  // Implementation ---------------------------------------
  function speak(speechText, callback) {
    var https = require('https');

    var json = '{' +
      '  "Command": "AP_Synth",' +
      '  "SpeechRate": "1.15",' +
      '  "AudioFileFormat": "0",' +
      '  "TextData": "' + speechText + '"' +
      '}';

    var options = {
      hostname: 'api.apigw.smt.docomo.ne.jp',
      path: '/virtualNarrator/v1/textToSpeech?APIKEY=' + this.apiKey,
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      }
    };

    var req = https.request(options, function (res) {
      res.setEncoding('binary');
      var responseData = '';
      res.on('data', function (chunk) {
        responseData += chunk;
      });
      res.on('end', function () {
        callback(responseData);
      });
    });

    req.write(json);
    req.end();

  }

  function save(saveFile, speechText) {
    var https = require('https');
    var fs = require('fs');

    var json = '{' +
      '  "Command": "AP_Synth",' +
      '  "SpeechRate": "1.15",' +
      '  "AudioFileFormat": "0",' +
      '  "TextData": "' + speechText + '"' +
      '}';

    var options = {
      hostname: 'api.apigw.smt.docomo.ne.jp',
      path: '/virtualNarrator/v1/textToSpeech?APIKEY=' + this.apiKey,
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      }
    };
<commit_msg>Add supress jshint for this.apiKey<commit_after>(function (global) {
  'use strict';

  // Class ------------------------------------------------
  function DocomoTts(apiKey) {
    this.apiKey = apiKey;
  }

  // Header -----------------------------------------------
  DocomoTts.prototype.speak = speak; // DocomoTts#speak(speechText, callback):void
  DocomoTts.prototype.save = save; // DocomoTts#save(saveFile, speechText):void

  // Implementation ---------------------------------------
  function speak(speechText, callback) {
    var https = require('https');

    var json = '{' +
      '  "Command": "AP_Synth",' +
      '  "SpeechRate": "1.15",' +
      '  "AudioFileFormat": "0",' +
      '  "TextData": "' + speechText + '"' +
      '}';

    var options = {
      hostname: 'api.apigw.smt.docomo.ne.jp',
      /*jshint validthis: true */
      path: '/virtualNarrator/v1/textToSpeech?APIKEY=' + this.apiKey,
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      }
    };

    var req = https.request(options, function (res) {
      res.setEncoding('binary');
      var responseData = '';
      res.on('data', function (chunk) {
        responseData += chunk;
      });
      res.on('end', function () {
        callback(responseData);
      });
    });

    req.write(json);
    req.end();

  }

  function save(saveFile, speechText) {
    var https = require('https');
    var fs = require('fs');

    var json = '{' +
      '  "Command": "AP_Synth",' +
      '  "SpeechRate": "1.15",' +
      '  "AudioFileFormat": "0",' +
      '  "TextData": "' + speechText + '"' +
      '}';

    var options = {
      hostname: 'api.apigw.smt.docomo.ne.jp',
      /*jshint validthis: true */
      path: '/virtualNarrator/v1/textToSpeech?APIKEY=' + this.apiKey,
      method: 'POST',
      headers: {
        'Content-Type': 'application/json'
      }
    };

{'fraction_non_alphanumeric': 0.23845530650823657, 'fraction_numerical': 0.0054010261949770455, 'mean_word_length': 1.8492307692307692, 'pattern_counts': {'":': 16, '<': 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': '2662620', 'n_tokens_mistral': 1235, 'n_tokens_neox': 1202, 'n_words': 202}