<commit_before>var Client = require('node-rest-client').Client,
    clientOptions = {
      connection: {
        rejectUnauthorized: true,
        requestCert: true,
      }
    },
    client = new Client(clientOptions),

    token = process.argv[2],
    client_secret = process.argv[3],

    params = {
      headers: {
        'Content-Type' : 'application/json',
        'Authorization' : 'Bearer ' + token
      },
      data: {
        'client_secret' : client_secret,
        'description' : 'A dummy client',
        'scope' : 'user:name'
      }
    };

client.post('https://api.fronter.com/clients', params, function (data, response) {
  console.log(JSON.parse(data));
}).on('error', function (err) {
  console.log('err: ', err);
});<commit_msg>Removed redundant JSON.parse<commit_after>var Client = require('node-rest-client').Client,
    clientOptions = {
      connection: {
        rejectUnauthorized: true,
        requestCert: true,
      }
    },
    client = new Client(clientOptions),

    token = process.argv[2],
    client_secret = process.argv[3],

    params = {
      headers: {
        'Content-Type' : 'application/json',
        'Authorization' : 'Bearer ' + token
      },
      data: {
        'client_secret' : client_secret,
        'description' : 'A dummy client',
        'scope' : 'user:name'
      }
    };

client.post('https://api.fronter.com/clients', params, function (data, response) {
  console.log(data);
}).on('error', function (err) {
  console.log('err: ', err);
});
{'fraction_non_alphanumeric': 0.1599471249173827, 'fraction_numerical': 0.0026437541308658294, 'mean_word_length': 2.5291375291375293, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '571695', 'n_tokens_mistral': 474, 'n_tokens_neox': 471, 'n_words': 88}