<commit_before>'use strict';

var fs = require('fs');
var path = require('path');

exports.getApiConfig = function() {
  return {
    port: process.env.SERVER_PORT || 4002,
    heartbeat: process.env.HEARTBEAT === 'true',
    logLevel: process.env.LOG_LEVEL || 'info',
    api: {
      apiURL: process.env.API_URL || 'https://openhim-core:8080',
      username: process.env.API_USERNAME || '<EMAIL>',
      password: process.env.API_PASSWORD || '<PASSWORD>',
      trustSelfSigned: process.env.TRUST_SELF_SIGNED === 'true'
    }
  };<commit_msg>Freeze the original api config object<commit_after>'use strict';

var fs = require('fs');
var path = require('path');

exports.getApiConfig = function() {
  return Object.freeze({
    port: process.env.SERVER_PORT || 4002,
    heartbeat: process.env.HEARTBEAT === 'true',
    logLevel: process.env.LOG_LEVEL || 'info',
    api: Object.freeze({
      apiURL: process.env.API_URL || 'https://openhim-core:8080',
      username: process.env.API_USERNAME || '<EMAIL>',
      password: process.env.API_PASSWORD || '<PASSWORD>',
      trustSelfSigned: process.env.TRUST_SELF_SIGNED === 'true'
    })
  });
{'fraction_non_alphanumeric': 0.16783216783216784, 'fraction_numerical': 0.013986013986013986, 'mean_word_length': 3.810924369747899, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '451291', 'n_tokens_mistral': 391, 'n_tokens_neox': 382, 'n_words': 73}