<commit_before>module.exports = {
	
	main: function main(callback) {
	    var menu = require('terminal-menu')({
	        width: 29,
	        x: 4,
	        y: 2,
	        bg: 'black',
	        fg: 'cyan'
	    });
	    menu.reset();
	    menu.write('SETTINGS\n');
	    menu.write('-------------------------\n');
	    menu.add('CHANGE THEME');
	    menu.add('CHANGE PASSWORD');
	    menu.add('DELETE ACCOUNT');
	    menu.write('------------------------------\n');
	    menu.add('EXIT');
	    menu.on('select', function(setting) {
	        menu.close();
	        console.log('SELECTED: ' + setting);
	        if (setting === 'EXIT') {
	            return;
	        }
	        callback(setting);
	    });

        process.stdin.pipe(menu.createStream())
                            .pipe(process.stdout); //create key stream
        process.stdin.setRawMode(true); //listen for keys
	},

	theme: function theme(callback) {
	    var menu = require('terminal-menu')({
	        width: 29,
	        x: 4,
	        y: 2,
	        bg: 'black',
	        fg: 'cyan'
	    });
	    menu.reset();
	    menu.write('SETTINGS\n');
	    menu.write('-------------------------\n');
	    menu.add('flat');
	    menu.add('modern');
	    menu.add('elegant');
	    menu.write('------------------------------\n');
	    menu.add('EXIT');
	    menu.on('select', function(theme) {
	        menu.close();
	        console.log('SELECTED: ' + theme);
	        if (theme === 'EXIT') {
	            return;
	        }
	        callback(theme);
	    });

        process.stdin.pipe(menu.createStream())
                            .pipe(process.stdout);
        process.stdin.setRawMode(true); //listen for keys
	}
};<commit_msg>small formatting change plus beautify with two space indentation.<commit_after>exports.main = function(callback) {
  var menu = require('terminal-menu')({
    width: 29,
    x: 4,
    y: 2,
    bg: 'black',
    fg: 'cyan'
  });
  menu.reset();
  menu.write('SETTINGS\n');
  menu.write('-------------------------\n');
  menu.add('CHANGE THEME');
  menu.add('CHANGE PASSWORD');
  menu.add('DELETE ACCOUNT');
  menu.write('------------------------------\n');
  menu.add('EXIT');
  menu.on('select', function(setting) {
    menu.close();
    console.log('SELECTED: ' + setting);
    if (setting === 'EXIT') {
      return;
    }
    callback(setting);
  });

  process.stdin
    .pipe(menu.createStream())
    .pipe(process.stdout); //create key stream
  process.stdin.setRawMode(true); //listen for keys
};

exports.theme = function(callback) {
  var menu = require('terminal-menu')({
    width: 29,
    x: 4,
    y: 2,
    bg: 'black',
    fg: 'cyan'
  });
  menu.reset();
  menu.write('SETTINGS\n');
  menu.write('-------------------------\n');
  menu.add('flat');
  menu.add('modern');
  menu.add('elegant');
  menu.write('------------------------------\n');
  menu.add('EXIT');
  menu.on('select', function(theme) {
    menu.close();
    console.log('SELECTED: ' + theme);
    if (theme === 'EXIT') {
      return;
    }
    callback(theme);
  });

  process.stdin
    .pipe(menu.createStream())
    .pipe(process.stdout);
  process.stdin.setRawMode(true); //listen for keys
};
{'fraction_non_alphanumeric': 0.24369482976040352, 'fraction_numerical': 0.005044136191677175, 'mean_word_length': 1.7760279965004375, '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': '4078982', 'n_tokens_mistral': 1048, 'n_tokens_neox': 987, 'n_words': 181}