<commit_before>﻿// <copyright file="Program.cs" company="ConfigR contributors">
//  Copyright (c) ConfigR contributors. (<EMAIL>)
// </copyright>

namespace ConfigR.Samples.ConsoleApplication
{
    using System;
    using System.IO;
    using Common.Logging;
    using Common.Logging.Simple;
    using ConfigR;

    public static class Program
    {
        public static void Main(string[] args)
        {
            LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter(LogLevel.Debug, false, true, true, null);

            // you can retreive settings as their underlying type
            var count = Config.Global.Get<int>("Count");
            var uri = Config.Global.Get<Uri>("Uri");

            Console.WriteLine("Count: {0}", count);
            Console.WriteLine("Uri: {0}", uri);

            // reset to original state for the samples below
            Config.Global.Unload();

            // you can also have cascading configuration using multiple files
            Config.Global.LoadScriptFile("Custom1.csx").LoadScriptFile("Custom2.csx"); // Custom2.csx uses #load to get its data and does a nested load on Custom3.csx!
            count = Config.Global.Get<int>("Count");
            uri = Config.Global.Get<Uri>("Uri");
            var fromCustom1File = Config.Global.Get<bool>("FromCustom1File");
            var fromCustom2File = Config.Global.Get<bool>("FromCustom2File");<commit_msg>reduced ConsoleApplication logging to INFO<commit_after>﻿// <copyright file="Program.cs" company="ConfigR contributors">
//  Copyright (c) ConfigR contributors. (<EMAIL>)
// </copyright>

namespace ConfigR.Samples.ConsoleApplication
{
    using System;
    using System.IO;
    using Common.Logging;
    using Common.Logging.Simple;
    using ConfigR;

    public static class Program
    {
        public static void Main(string[] args)
        {
            LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter(LogLevel.Info, false, true, true, null);

            // you can retreive settings as their underlying type
            var count = Config.Global.Get<int>("Count");
            var uri = Config.Global.Get<Uri>("Uri");

            Console.WriteLine("Count: {0}", count);
            Console.WriteLine("Uri: {0}", uri);

            // reset to original state for the samples below
            Config.Global.Unload();

            // you can also have cascading configuration using multiple files
            Config.Global.LoadScriptFile("Custom1.csx").LoadScriptFile("Custom2.csx"); // Custom2.csx uses #load to get its data and does a nested load on Custom3.csx!
            count = Config.Global.Get<int>("Count");
            uri = Config.Global.Get<Uri>("Uri");
            var fromCustom1File = Config.Global.Get<bool>("FromCustom1File");
            var fromCustom2File = Config.Global.Get<bool>("FromCustom2File");
{'fraction_non_alphanumeric': 0.11806043569922699, 'fraction_numerical': 0.007027406886858749, 'mean_word_length': 2.683053040103493, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5824700', 'n_tokens_mistral': 753, 'n_tokens_neox': 747, 'n_words': 207}