<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autofac;
using System.Reflection;
using Lucene.Net.Orm;
using Lucene.Net.Orm.Mappers;

namespace FilesIndexer
{
    class Program
    {
        static IContainer _container;

        static void Main(string[] args)
        {
            Register();
            IndexFiles();
            SearchCycle();
        }

        private static void Register()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.Register(c => new Lucene.Net.Orm.FluentMappingsService(Assembly.GetExecutingAssembly()))
                .As<IMappingsService>().SingleInstance();

            _container = builder.Build();
        }

        private static void IndexFiles()
        {
            throw new NotImplementedException();
        }

        private static void SearchCycle()
        {
            throw new NotImplementedException();
        }
    }
}<commit_msg>#demo: minor changes<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Autofac;
using System.Reflection;
using Lucene.Net.Orm;
using Lucene.Net.Orm.Mappers;
using System.IO;
using FilesIndexer.Models;

namespace FilesIndexer
{
    /// <summary>
    /// Demo application. This application demonstrates basic principles of Object-Document Mapping (ODM).
    /// It is an analogue of ORM (Object relational mapping) for document-orientired database, like Lucene.
    /// </summary>
    class Program
    {
        // Limits for demo - we demonstrate principle only.
        /// <summary>
        /// Maximal files quantity for processing.
        /// </summary>
        const int MaxFilesCount = 1000;
        /// <summary>
        /// Maximal size of text in single file (in characters).
        /// </summary>
        const int MaxTextSize = 1024 * 1024;
        
        static IContainer _container;

        static void Main(string[] args)
        {
            Register();
            IndexFiles();
            SearchCycle();
        }

        private static void Register()
        {
            ContainerBuilder builder = new ContainerBuilder();

            builder.Register(c => new Lucene.Net.Orm.FluentMappingsService(Assembly.GetExecutingAssembly()))
                .As<IMappingsService>().SingleInstance();

            _container = builder.Build();
        }

        private static void IndexFiles()
        {
            string pathForIndexing = new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath;
            pathForIndexing = Path.Combine(Path.GetDirectoryName(pathForIndexing), "Samples");
            IEnumerable<FileItem> itemsToIndexing = ItemsInPath(pathForIndexing);
        }

        private static IEnumerable<FileItem> ItemsInPath(string pathForIndexing)
        {
            throw new NotImplementedException();
        }

        private static void SearchCycle()
        {
            throw new NotImplementedException();
        }
    }
}
{'fraction_non_alphanumeric': 0.09498680738786279, 'fraction_numerical': 0.00395778364116095, 'mean_word_length': 2.1528066528066527, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, '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': '2246860', 'n_tokens_mistral': 793, 'n_tokens_neox': 761, 'n_words': 198}