<commit_before>﻿using System;
using System.IO;

namespace Quandl.Excel.Console
{
    internal class Program
    {
        // Installation package will handle the case which disable second re-install
        // RegisterExcelAddIn function will handle the case when the Quandl excel add-in registry key created before install
        private static void Main(string[] args)
        {
            try
            {
                if (args.Length == 0) return;
                if (args[0].Equals("register"))
                {
                    SetupHelp.RegisterExcelAddin();
                    return;
                }
                if (args[0].Equals("unregister"))
                {
                    SetupHelp.UnRegisterExcelAddin();
                    return;
                }
            }
            catch (Exception e)
            {
                using (StreamWriter w = File.AppendText(GetTempPath() + @".\quandl_excel_install_error_log.txt"))
                {
                    Log(e.Message, w);
                }<commit_msg>Console: exit on thrown exception<commit_after>﻿using System;
using System.IO;

namespace Quandl.Excel.Console
{
    internal class Program
    {
        // Installation package will handle the case which disable second re-install
        // RegisterExcelAddIn function will handle the case when the Quandl excel add-in registry key created before install
        private static void Main(string[] args)
        {
            try
            {
                if (args.Length == 0) return;
                if (args[0].Equals("register"))
                {
                    SetupHelp.RegisterExcelAddin();
                    return;
                }
                if (args[0].Equals("unregister"))
                {
                    SetupHelp.UnRegisterExcelAddin();
                    return;
                }
            }
            catch (Exception e)
            {
                using (StreamWriter w = File.AppendText(GetTempPath() + @".\quandl_excel_install_error_log.txt"))
                {
                    Log(e.Message, w);
                    return;
                }
{'fraction_non_alphanumeric': 0.08193668528864059, 'fraction_numerical': 0.002793296089385475, 'mean_word_length': 1.2764830508474576, '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': '7565051', 'n_tokens_mistral': 537, 'n_tokens_neox': 494, 'n_words': 131}