<commit_before>﻿using Microsoft.SqlServer.TransactSql.ScriptDom;
using System;
using System.Collections.Generic;
using System.IO;

namespace Prequel
{
    public class Checker
    {
        private Arguments arguments;

        public Checker(Arguments arguments)
        {
            this.arguments = arguments;
        }

        public CheckResults Run()
        {

            var parser = new TSql120Parser(false);

            TextReader reader = new StringReader("Select * from");

            IList<ParseError> errors;
            TSqlFragment sqlFragment = parser.Parse(reader, out errors);

            return new CheckResults();
        }
    }
}<commit_msg>tweak checker class<commit_after>﻿using Microsoft.SqlServer.TransactSql.ScriptDom;
using System;
using System.Collections.Generic;
using System.IO;

namespace Prequel
{
    public class Checker
    {
        private Arguments arguments;

        public Checker(Arguments arguments)
        {
            this.arguments = arguments;
        }

        public CheckResults Run()
        {
            var parser = (TSqlParser)Activator.CreateInstance(arguments.SqlParserType,new object[] { false });

            TextReader reader = new StringReader("Select * from");

            IList<ParseError> errors;
            TSqlFragment sqlFragment = parser.Parse(reader, out errors);

            return new CheckResults();
        }
    }
}
{'fraction_non_alphanumeric': 0.08185053380782918, 'fraction_numerical': 0.002135231316725979, 'mean_word_length': 2.2927400468384076, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6228909', 'n_tokens_mistral': 365, 'n_tokens_neox': 350, 'n_words': 89}