<commit_before>﻿using System;

/**
 * Using as a reference:
 * https://kb.paessler.com/en/topic/69346-how-can-i-monitor-the-number-of-users-logged-in-to-windows
 * 
 * This custom sensor is to run on my dedicated email-server where
 * vbscript/bat/PowerShell, via windows scheduler, together generate
 * 3x back-up files for the email installation:
 * 
 * - settings
 * - MySQL dump
 * - 7z of eml files etc.
 * 
 * I want this sensor to alert me if the last back-ups are more than 
 * 24-hours old.
 * 
 */

/* Initially this will be crude. Just installed Vis Studio 2017 on my laptop.
 * .Net Core
 * As I revise .Net which I learned 11.5 to over 7-months ago, I'll iteratively
 * re-factor and improve this tiny app.
 */
 
namespace BackUpsInDate
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}<commit_msg>Improved initial comments explaining purpose<commit_after>﻿using System;

/**
 * Using as a reference:
 * https://kb.paessler.com/en/topic/74481-can-the-customer-sensor-exe-be-a-ui-application
 * 
 * Extract from linked page:
 * ____________________
 * | value  :  message |
 *  --------------------
 * 
 * Value has to be a 64-bit integer or float. 
 * It will be used as the resulting value for this sensor 
 * (for example, bytes, milliseconds) and stored in the database. 
 * The message can be any string (maximum length: 2000 characters).
 * 
 * 
 * The EXIT CODE of the EXE has to be one of the following values:
 * 
 * Value | Description
 *   0   | OK
 *   1   | WARNING
 *   2   | System Error (e.g. a network/socket error)
 *   3   | Protocol Error (e.g. web server returns a 404)
 *   4   | Content Error (e.g. a web page does not contain a required word)

 * This custom sensor is to run on my dedicated email-server where
 * vbscript/bat/PowerShell, via windows scheduler, together generate
 * 3x back-up files for the email installation:
 * https://github.com/xarta/hmailserver-backup-scripts
 * 
 * - settings                   e.g. 20170711-0500HMsettings.7z     127 KB 
 * - MySQL dump                 e.g. 20170711hmdump.sql.7z       10,858 KB
 * - 7z of eml files etc.       e.g. 20170711hmdata.7z          981,900 KB
 * 
 * I want this sensor to alert me if the last back-ups are more than 
 * 24-hours old.
 * 
 */

/* Initially this will be crude. Just installed Vis Studio 2017 on my laptop.
 * .Net Core
 * As I revise .Net which I learned 11.5 to over 7-months ago, I'll iteratively
 * re-factor and improve this tiny app.
 */

namespace BackUpsInDate
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
        }
    }
}
{'fraction_non_alphanumeric': 0.1025735294117647, 'fraction_numerical': 0.03419117647058824, 'mean_word_length': 2.422641509433962, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '83592', 'n_tokens_mistral': 921, 'n_tokens_neox': 809, 'n_words': 311}