<commit_before>
var fs = require('fs');

var CONFIG_FILENAME = 'selenium.conf.json';

var CWD = fs.realpathSync('.');
var CWD_CONFIG_FOLDER_PATH = CWD+'/config';


var readConfigFrom = function(path) {
  
  var seleniumConfig;

  try {
    seleniumConfig = JSON.parse(fs.readFileSync(
      path, 
      { encoding: String() }
    ));

  } catch(err) {
    
  }
  
  return seleniumConfig;
}

var getConfig = function() {
  
  var config0 = CWD+'/'+CONFIG_FILENAME;
  var config1 = CWD_CONFIG_FOLDER_PATH+'/'+CONFIG_FILENAME;<commit_msg>Changed the way of obtaining CWD<commit_after>
var fs = require('fs');

var CONFIG_FILENAME = 'selenium.conf.json';

var CWD = process.cwd();
var CWD_CONFIG_FOLDER_PATH = CWD+'/config';


var readConfigFrom = function(path) {
  
  var seleniumConfig;

  try {
    seleniumConfig = JSON.parse(fs.readFileSync(
      path, 
      { encoding: String() }
    ));

  } catch(err) {
    
  }
  
  return seleniumConfig;
}

var getConfig = function() {
  
  var config0 = CWD+'/'+CONFIG_FILENAME;
  var config1 = CWD_CONFIG_FOLDER_PATH+'/'+CONFIG_FILENAME;
{'fraction_non_alphanumeric': 0.13351749539594843, 'fraction_numerical': 0.003683241252302026, 'mean_word_length': 3.4732510288065845, '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': '292208', 'n_tokens_mistral': 417, 'n_tokens_neox': 390, 'n_words': 76}