<commit_before>// AWS IoT Device app that continuously scans for and reports detected iBeacons

var version = "0.2.2";



//
// Parse command line arguments
//

var commandLineArgs = require('command-line-args');

var args = commandLineArgs([
  { name: 'verbose', alias: 'v', type: Boolean, defaultValue: false },
  { name: 'throttle', alias: 't', type: Boolean, defaultValue: true },
  { name: 'led', alias: 'l', type: Boolean, defaultValue: false },
])
function GetFormattedDate() {
    var todayTime = new Date();
    var month = todayTime .getMonth() + 1;
    var day = todayTime .getDate();
    var year = todayTime .getFullYear();
    var hours = todayTime .getHours();
    var minutes = todayTime .getMinutes();
    return month + "-" + day + "-" + year+"-"+hours+"_00";

}

function addLog(message) {
	var today = GetFormattedDate();
	var logFile = '/opt/aws-iot-ble-sensor-log/logs/pi-'+sensor+'-log-'+today+'.log';
	var stream = fs.createWriteStream(logFile, {'flags': 'a'});
	stream.write(message+"\n");
	stream.end();
}
var options = args.parse()

const fs = require('fs');

//
// Status LED blinking
//
<commit_msg>pi log name updated<commit_after>// AWS IoT Device app that continuously scans for and reports detected iBeacons

var version = "0.2.2";



//
// Parse command line arguments
//

var commandLineArgs = require('command-line-args');

var args = commandLineArgs([
  { name: 'verbose', alias: 'v', type: Boolean, defaultValue: false },
  { name: 'throttle', alias: 't', type: Boolean, defaultValue: true },
  { name: 'led', alias: 'l', type: Boolean, defaultValue: false },
])
function GetFormattedDate() {
    var todayTime = new Date();
    var month = todayTime .getMonth() + 1;
    var day = todayTime .getDate();
    var year = todayTime .getFullYear();
    var hours = todayTime .getHours();
    var minutes = todayTime .getMinutes();
    return month + "-" + day + "-" + year+"-"+hours+"_00";

}

function addLog(message) {
	var today = GetFormattedDate();
	var logFile = '/opt/aws-iot-ble-sensor-log/logs/'+sensor+'-log-'+today+'.log';
	var stream = fs.createWriteStream(logFile, {'flags': 'a'});
	stream.write(message+"\n");
	stream.end();
}
var options = args.parse()

const fs = require('fs');

//
// Status LED blinking
//

{'fraction_non_alphanumeric': 0.17485613103142983, 'fraction_numerical': 0.005312084993359893, 'mean_word_length': 3.778012684989429, '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': '5356142', 'n_tokens_mistral': 752, 'n_tokens_neox': 735, 'n_words': 213}